From 09f8a2d1dc6be07c5c86b2f0789c6c00c805ac31 Mon Sep 17 00:00:00 2001 From: nby Date: Mon, 4 Oct 2021 22:35:13 +0200 Subject: [PATCH 01/25] [BLD] Add gitignore --- .gitignore | 7 + .../OpenDis.Demo/obj/x86/Debug/App.g.i.cs | 68 ----- ...gnTimeResolveAssemblyReferencesInput.cache | Bin 6446 -> 0 bytes .../obj/x86/Debug/MainWindow.g.i.cs | 234 ------------------ ...gnTimeResolveAssemblyReferencesInput.cache | Bin 5767 -> 0 bytes 5 files changed, 7 insertions(+), 302 deletions(-) create mode 100644 .gitignore delete mode 100644 CsharpDis6/OpenDis.Demo/obj/x86/Debug/App.g.i.cs delete mode 100644 CsharpDis6/OpenDis.Demo/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache delete mode 100644 CsharpDis6/OpenDis.Demo/obj/x86/Debug/MainWindow.g.i.cs delete mode 100644 CsharpDis6/OpenDis/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..aab5d79 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +obj/ +bin/ +x86/ +v16/ +Release/ +*.cache +*.i.cs diff --git a/CsharpDis6/OpenDis.Demo/obj/x86/Debug/App.g.i.cs b/CsharpDis6/OpenDis.Demo/obj/x86/Debug/App.g.i.cs deleted file mode 100644 index fe82268..0000000 --- a/CsharpDis6/OpenDis.Demo/obj/x86/Debug/App.g.i.cs +++ /dev/null @@ -1,68 +0,0 @@ -#pragma checksum "..\..\..\App.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "AD751E87B884BF2956E97D7D533B3ABE" -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.1 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -using System; -using System.Diagnostics; -using System.Windows; -using System.Windows.Automation; -using System.Windows.Controls; -using System.Windows.Controls.Primitives; -using System.Windows.Data; -using System.Windows.Documents; -using System.Windows.Ink; -using System.Windows.Input; -using System.Windows.Markup; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Effects; -using System.Windows.Media.Imaging; -using System.Windows.Media.Media3D; -using System.Windows.Media.TextFormatting; -using System.Windows.Navigation; -using System.Windows.Shapes; -using System.Windows.Shell; - - -namespace OpenDis.Demo { - - - /// - /// App - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] - public partial class App : System.Windows.Application { - - /// - /// InitializeComponent - /// - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public void InitializeComponent() { - - #line 4 "..\..\..\App.xaml" - this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative); - - #line default - #line hidden - } - - /// - /// Application Entry Point. - /// - [System.STAThreadAttribute()] - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public static void Main() { - OpenDis.Demo.App app = new OpenDis.Demo.App(); - app.InitializeComponent(); - app.Run(); - } - } -} - diff --git a/CsharpDis6/OpenDis.Demo/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/CsharpDis6/OpenDis.Demo/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache deleted file mode 100644 index 42afc614c41a20ac96471fe17ed962d879a7bf44..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6446 zcmeHL+fo}x5S2iz5!i`E9Be~uuM_72Q8p-mxm0*C5;#D`^E7a2_NT4-7>!%%v}9d#1Z57LUbZ|6-%R)NT(TabI&s`pPeB zYm2LZc?BJ~+_$oRwd#wF+*;b)0;#w!Rx&eI_>(rXfu{orD*^&7nU^*7cY^t8gS1gc^g85^lRIa)oLKEJd+!u7HBn&n;$aI z^N+xNp%he0UVZIYgCMQc9bBFDMVVLDxd-D86E1g|hW1JtRg>kw^VTJ+!jUfz+EYbV z!nu2A=GJ}BMSCC9V3ElR=xAFZC@IiykcoQ6E5etMgEB)XHiXisUq`zp0PFWb}D^N%^a8DXkT(rcWbU@vH(mv`a{QU0m!Ep59he5d8|$X&u?t`)ns$yrt}?9%9k%tS+3Cp z^sv?zaPxuCyb7%?=Q%Y&QO1BVXc)2B0Md9oPQOV18YQqzg)J9P_5a&)j(iu**lzTcdZ;$ecLbnZXYi`w{uVmDo7Ou;UY$kJSg8g zjIx3}ltF^Ph+{d-*@xsOr0}Omrp_wUPJTkAFh)`ITxl707neVw+FYYbD$!ptS?7!Q!cVRqTZMHNhl%rHMPzeByI>iw3?6R_jeI{$6K@U;3=)LTANDgIApv<|;5wlBNoN}0!TZKC(`-9Y` z1ck?hQDTzCq%xHK1YMzs7b)OPe%Y;mkjYC`x=- zz~5Bo^xk&qLqae7{+gFQJG;Zf$*<9&+AT$e3cWxY-yq3%|MpK&5flpe7CVV`d^(I% zJrq_+XEdP#iCQWwlCWb;A$icqUifNxVoc-gSmPHiG(F#~OME27Gjd{lkK+@K;>B-t z^%EnF^W7-9en38V8hLg^RRX=?ofsAlO<$f*H>)s8s+$#9iprJ{n;)^mx)1)j!Xrh+ c6t!C+@Fbbq;NLfw$j2V-Z!VGOA$E84KZK-lRsaA1 diff --git a/CsharpDis6/OpenDis.Demo/obj/x86/Debug/MainWindow.g.i.cs b/CsharpDis6/OpenDis.Demo/obj/x86/Debug/MainWindow.g.i.cs deleted file mode 100644 index e51d433..0000000 --- a/CsharpDis6/OpenDis.Demo/obj/x86/Debug/MainWindow.g.i.cs +++ /dev/null @@ -1,234 +0,0 @@ -#pragma checksum "..\..\..\MainWindow.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "82DFBDDFBC29EF428350DE84095F598B" -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.1 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -using OpenDis.Demo; -using System; -using System.Diagnostics; -using System.Windows; -using System.Windows.Automation; -using System.Windows.Controls; -using System.Windows.Controls.Primitives; -using System.Windows.Data; -using System.Windows.Documents; -using System.Windows.Ink; -using System.Windows.Input; -using System.Windows.Markup; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Media.Effects; -using System.Windows.Media.Imaging; -using System.Windows.Media.Media3D; -using System.Windows.Media.TextFormatting; -using System.Windows.Navigation; -using System.Windows.Shapes; -using System.Windows.Shell; - - -namespace OpenDis.Demo { - - - /// - /// MainWindow - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] - public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector { - - - #line 4 "..\..\..\MainWindow.xaml" - [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] - internal OpenDis.Demo.MainWindow mainWindow; - - #line default - #line hidden - - - #line 54 "..\..\..\MainWindow.xaml" - [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] - internal System.Windows.Controls.Primitives.ToggleButton toggleEntityTree; - - #line default - #line hidden - - - #line 55 "..\..\..\MainWindow.xaml" - [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] - internal System.Windows.Controls.Primitives.ToggleButton toggleEntityGrid; - - #line default - #line hidden - - - #line 58 "..\..\..\MainWindow.xaml" - [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] - internal System.Windows.Controls.Primitives.ToggleButton toggleCet2006; - - #line default - #line hidden - - - #line 59 "..\..\..\MainWindow.xaml" - [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] - internal System.Windows.Controls.Primitives.ToggleButton toggleCet2010; - - #line default - #line hidden - - - #line 62 "..\..\..\MainWindow.xaml" - [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] - internal System.Windows.Controls.TreeView treeViewEntityTypes; - - #line default - #line hidden - - - #line 63 "..\..\..\MainWindow.xaml" - [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] - internal System.Windows.Controls.DataGrid dataGridEntityTypes; - - #line default - #line hidden - - - #line 114 "..\..\..\MainWindow.xaml" - [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] - internal System.Windows.Controls.Primitives.ToggleButton toggleAggregate2006; - - #line default - #line hidden - - - #line 115 "..\..\..\MainWindow.xaml" - [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] - internal System.Windows.Controls.Primitives.ToggleButton toggleAggregate2010; - - #line default - #line hidden - - - #line 118 "..\..\..\MainWindow.xaml" - [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] - internal System.Windows.Controls.TreeView treeViewAggregateTypes; - - #line default - #line hidden - - - #line 126 "..\..\..\MainWindow.xaml" - [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] - internal System.Windows.Controls.TreeView treeViewEnumerations; - - #line default - #line hidden - - private bool _contentLoaded; - - /// - /// InitializeComponent - /// - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public void InitializeComponent() { - if (_contentLoaded) { - return; - } - _contentLoaded = true; - System.Uri resourceLocater = new System.Uri("/OpenDis.Demo;component/mainwindow.xaml", System.UriKind.Relative); - - #line 1 "..\..\..\MainWindow.xaml" - System.Windows.Application.LoadComponent(this, resourceLocater); - - #line default - #line hidden - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")] - [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")] - [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")] - void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { - switch (connectionId) - { - case 1: - this.mainWindow = ((OpenDis.Demo.MainWindow)(target)); - return; - case 2: - this.toggleEntityTree = ((System.Windows.Controls.Primitives.ToggleButton)(target)); - - #line 54 "..\..\..\MainWindow.xaml" - this.toggleEntityTree.Click += new System.Windows.RoutedEventHandler(this.toggleEntityTree_Click); - - #line default - #line hidden - return; - case 3: - this.toggleEntityGrid = ((System.Windows.Controls.Primitives.ToggleButton)(target)); - - #line 55 "..\..\..\MainWindow.xaml" - this.toggleEntityGrid.Click += new System.Windows.RoutedEventHandler(this.toggleEntityGrid_Click); - - #line default - #line hidden - return; - case 4: - this.toggleCet2006 = ((System.Windows.Controls.Primitives.ToggleButton)(target)); - - #line 58 "..\..\..\MainWindow.xaml" - this.toggleCet2006.Click += new System.Windows.RoutedEventHandler(this.toggleCet2006_Click); - - #line default - #line hidden - return; - case 5: - this.toggleCet2010 = ((System.Windows.Controls.Primitives.ToggleButton)(target)); - - #line 59 "..\..\..\MainWindow.xaml" - this.toggleCet2010.Click += new System.Windows.RoutedEventHandler(this.toggleCet2010_Click); - - #line default - #line hidden - return; - case 6: - this.treeViewEntityTypes = ((System.Windows.Controls.TreeView)(target)); - return; - case 7: - this.dataGridEntityTypes = ((System.Windows.Controls.DataGrid)(target)); - return; - case 8: - this.toggleAggregate2006 = ((System.Windows.Controls.Primitives.ToggleButton)(target)); - - #line 114 "..\..\..\MainWindow.xaml" - this.toggleAggregate2006.Click += new System.Windows.RoutedEventHandler(this.toggleAggregate2006_Click); - - #line default - #line hidden - return; - case 9: - this.toggleAggregate2010 = ((System.Windows.Controls.Primitives.ToggleButton)(target)); - - #line 115 "..\..\..\MainWindow.xaml" - this.toggleAggregate2010.Click += new System.Windows.RoutedEventHandler(this.toggleAggregate2010_Click); - - #line default - #line hidden - return; - case 10: - this.treeViewAggregateTypes = ((System.Windows.Controls.TreeView)(target)); - return; - case 11: - this.treeViewEnumerations = ((System.Windows.Controls.TreeView)(target)); - return; - } - this._contentLoaded = true; - } - } -} - diff --git a/CsharpDis6/OpenDis/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/CsharpDis6/OpenDis/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache deleted file mode 100644 index 52acc8e54227e017495f90a2110f553059d01b66..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5767 zcmeHLZBH9V5VpZwFoYJHFI;{-KHk!{gRoJH1mW3%O6+}%B} zi})@51yz4yJ9D;=mk_6wIEfEl%j5OT&d%)I+|IL`NG1}Af3VRnwYwuo?04J}zVsW) z*yA!_PDKSa_l<(@y1utl+|KHIASCy_&3w)XKUuvHI4TgZ=|P|bbF%twPWMgD1>CX8-j1h0_^n?AYqdZaWhQpKR-oi8DnDe7 zoRVNJocQ9XFRHRS z%I;l~m3+s>^*$zMm5C;(NUajoC8+l}iG0SJo-d#X4ThoE@uWik&b{kS{9^E+?sVOu z_xbfxJo<=#QA>Alol;$Kv&aQl$`>5ubjwyuRDcQVaF?k=IoT3^0|P>fm=VzAQi;yF zJdNv6KoOfmy^CwVFzM_S(L3McM5DCNmMdHW zW>`-J>~i2K?m|!H>P+3BNNq$L)wD!n1Zgsvq%YDx$0{AEz{M29XJjc#8sjy1Ah>0` z#Rz=J@9z&7f?2)CoB(zi7av|mLn}&fubI_dY5Bt8_4D^+=|8_FtE+6;T3*SoFD^lD zZM~Kq&&G5IaesT+QQ2q~mTkxZmh)Ey&&J8dF; z2MMvq=}(%-1QKl$NkY4eamNes%6u;_ddC zHih$)UvHRIa9ifjE%30a92_t8yQW|N&1|o&m_?`uO{5YlZxzc$8KmzVM^K;)4G`dA znK3M89YXpGa`H<-BOdZcn@0IG$@R!leM!q8HxD3L7TY_$God zJ;Y@Ca}3&o89fxe_uvt?Tu6{8=9g2&q&S=X+8c)T8#Gdn!AJxR1cY`Tp&b>Uog!1r zAW{K!j&eiGkK7DwLSa*VlO z8y`e0SKQoi|pH$!MMH1G^NsS@7NBnfziaP*QVghZ)jLNtmU?Rz8- zP7Bvw51na0pmgT+4fhn?lavJBM&Ubhraedg+-ddt%aG2Qwt(`RK)5e(o~hF^J0WO9 zmnCP~kH}gW0IurXy8wDKgk{6fWU&)R>&CYq)8A?lyF|X+$?%waI@0 D)9-ZT From a07d08cdf29ec33136594276159ee4c87ff28a1d Mon Sep 17 00:00:00 2001 From: Nicolas Baudrey Date: Sat, 9 Oct 2021 10:02:17 +0200 Subject: [PATCH 02/25] [BLD] Add an empty solution --- OpenDis.sln | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 OpenDis.sln diff --git a/OpenDis.sln b/OpenDis.sln new file mode 100644 index 0000000..22c11f0 --- /dev/null +++ b/OpenDis.sln @@ -0,0 +1,13 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.31727.386 +MinimumVisualStudioVersion = 10.0.40219.1 +Global + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {4E0885B8-C82C-47CC-B3D4-9E09D28C4C26} + EndGlobalSection +EndGlobal From 54045d339d156b382e88906b7e67b0814fdbf790 Mon Sep 17 00:00:00 2001 From: Nicolas Baudrey Date: Sat, 9 Oct 2021 10:07:36 +0200 Subject: [PATCH 03/25] [BLD] Move to a sub-folder CSharpDis6 --- .../CsharpDis6}/EspduReceiver/EspduReceiver.cs | 0 .../EspduReceiver/OpenDis.EspduReceiver.csproj | 0 .../EspduReceiver/Properties/AssemblyInfo.cs | 0 .../CsharpDis6}/EspduSender/EspduSender.cs | 0 .../EspduSender/OpenDis.EspduSender.csproj | 0 .../EspduSender/Properties/AssemblyInfo.cs | 0 .../CsharpDis6}/OpenDis.Demo/App.xaml | 0 .../CsharpDis6}/OpenDis.Demo/App.xaml.cs | 0 .../CsharpDis6}/OpenDis.Demo/MainWindow.xaml | 0 .../CsharpDis6}/OpenDis.Demo/MainWindow.xaml.cs | 0 .../CsharpDis6}/OpenDis.Demo/OpenDis.Demo.csproj | 0 .../OpenDis.Demo/Properties/AssemblyInfo.cs | 0 .../OpenDis.Demo/Properties/Resources.Designer.cs | 0 .../OpenDis.Demo/Properties/Resources.resx | 0 .../OpenDis.Demo/Properties/Settings.Designer.cs | 0 .../OpenDis.Demo/Properties/Settings.settings | 0 .../OpenDis.Demo/bin/Debug/OpenDis.Demo.vshost.exe | Bin .../bin/Debug/OpenDis.Demo.vshost.exe.manifest | 0 .../x86/Debug/OpenDis.Demo_MarkupCompile.i.cache | 0 .../obj/x86/Debug/OpenDis.Demo_MarkupCompile.i.lref | 0 {CsharpDis6 => Libs/CsharpDis6}/OpenDis.sln | 0 {CsharpDis6 => Libs/CsharpDis6}/OpenDis.suo | Bin .../CsharpDis6}/OpenDis/Core/CetBase.cs | 0 .../CsharpDis6}/OpenDis/Core/DisTime.cs | 0 .../CsharpDis6}/OpenDis/Core/EndianTypes.cs | 0 .../CsharpDis6}/OpenDis/Core/EnumHelper.cs | 0 .../OpenDis/Core/EnumNotFoundException.cs | 0 .../CsharpDis6}/OpenDis/Core/ICetItem.cs | 0 .../CsharpDis6}/OpenDis/Core/IPdu.cs | 0 .../OpenDis/Core/InternetDomainCodeAttribute.cs | 0 .../CsharpDis6}/OpenDis/Core/PduBase.cs | 0 .../OpenDis/Core/PduExceptionEventArgs.cs | 0 .../CsharpDis6}/OpenDis/Core/PduFactory.cs | 0 .../CsharpDis6}/OpenDis/Dis1995/EntityID.cs | 0 .../OpenDis/Dis1995/Generated/AcknowledgePdu.cs | 0 .../OpenDis/Dis1995/Generated/ActionRequestPdu.cs | 0 .../OpenDis/Dis1995/Generated/ActionResponsePdu.cs | 0 .../Dis1995/Generated/AngularVelocityVector.cs | 0 .../OpenDis/Dis1995/Generated/AntennaLocation.cs | 0 .../Dis1995/Generated/ArticulationParameter.cs | 0 .../OpenDis/Dis1995/Generated/BeamAntennaPattern.cs | 0 .../OpenDis/Dis1995/Generated/BurstDescriptor.cs | 0 .../OpenDis/Dis1995/Generated/ClockTime.cs | 0 .../OpenDis/Dis1995/Generated/CollisionPdu.cs | 0 .../OpenDis/Dis1995/Generated/CommentPdu.cs | 0 .../OpenDis/Dis1995/Generated/CreateEntityPdu.cs | 0 .../OpenDis/Dis1995/Generated/DataPdu.cs | 0 .../OpenDis/Dis1995/Generated/DataQueryPdu.cs | 0 .../Dis1995/Generated/DeadReckoningParameter.cs | 0 .../OpenDis/Dis1995/Generated/DesignatorPdu.cs | 0 .../OpenDis/Dis1995/Generated/DetonationPdu.cs | 0 .../Dis1995/Generated/DistributedEmissionsPdu.cs | 0 .../OpenDis/Dis1995/Generated/EightByteChunk.cs | 0 .../Dis1995/Generated/ElectronicEmmisionsPdu.cs | 0 .../OpenDis/Dis1995/Generated/EmitterSystem.cs | 0 .../OpenDis/Dis1995/Generated/EntityID.cs | 0 .../Dis1995/Generated/EntityInformationPdu.cs | 0 .../OpenDis/Dis1995/Generated/EntityStatePdu.cs | 0 .../OpenDis/Dis1995/Generated/EntityType.cs | 0 .../OpenDis/Dis1995/Generated/EventID.cs | 0 .../OpenDis/Dis1995/Generated/EventReportPdu.cs | 0 .../OpenDis/Dis1995/Generated/FirePdu.cs | 0 .../OpenDis/Dis1995/Generated/FixedDatum.cs | 0 .../Dis1995/Generated/FundamentalParameterData.cs | 0 .../OpenDis/Dis1995/Generated/LogisticsPdu.cs | 0 .../OpenDis/Dis1995/Generated/ModulationType.cs | 0 .../OpenDis/Dis1995/Generated/Orientation.cs | 0 .../CsharpDis6}/OpenDis/Dis1995/Generated/Pdu.cs | 0 .../Dis1995/Generated/RadioCommunicationsPdu.cs | 0 .../OpenDis/Dis1995/Generated/RadioEntityType.cs | 0 .../OpenDis/Dis1995/Generated/ReceiverPdu.cs | 0 .../OpenDis/Dis1995/Generated/RemoveEntityPdu.cs | 0 .../OpenDis/Dis1995/Generated/RepairCompletePdu.cs | 0 .../OpenDis/Dis1995/Generated/RepairResponsePdu.cs | 0 .../OpenDis/Dis1995/Generated/ResupplyCancelPdu.cs | 0 .../OpenDis/Dis1995/Generated/ResupplyOfferPdu.cs | 0 .../Dis1995/Generated/ResupplyReceivedPdu.cs | 0 .../OpenDis/Dis1995/Generated/ServiceRequestPdu.cs | 0 .../OpenDis/Dis1995/Generated/SetDataPdu.cs | 0 .../OpenDis/Dis1995/Generated/SignalPdu.cs | 0 .../OpenDis/Dis1995/Generated/SimulationAddress.cs | 0 .../Dis1995/Generated/SimulationManagementPdu.cs | 0 .../Generated/SphericalHarmonicAntennaPattern.cs | 0 .../OpenDis/Dis1995/Generated/StartResumePdu.cs | 0 .../OpenDis/Dis1995/Generated/StopFreezePdu.cs | 0 .../OpenDis/Dis1995/Generated/SupplyQuantity.cs | 0 .../OpenDis/Dis1995/Generated/TransmitterPdu.cs | 0 .../OpenDis/Dis1995/Generated/VariableDatum.cs | 0 .../OpenDis/Dis1995/Generated/Vector3Double.cs | 0 .../OpenDis/Dis1995/Generated/Vector3Float.cs | 0 .../OpenDis/Dis1995/Generated/Warfare.cs | 0 .../CsharpDis6}/OpenDis/Dis1995/PduFactory.cs | 0 .../CsharpDis6}/OpenDis/Dis1995/Vector3Double.cs | 0 .../CsharpDis6}/OpenDis/Dis1995/Vector3Float.cs | 0 .../CsharpDis6}/OpenDis/Dis1998/EntityID.cs | 0 .../OpenDis/Dis1998/Generated/AcknowledgePdu.cs | 0 .../Dis1998/Generated/AcknowledgeReliablePdu.cs | 0 .../OpenDis/Dis1998/Generated/AcousticBeamData.cs | 0 .../Generated/AcousticBeamFundamentalParameter.cs | 0 .../OpenDis/Dis1998/Generated/AcousticEmitter.cs | 0 .../Dis1998/Generated/AcousticEmitterSystem.cs | 0 .../Dis1998/Generated/AcousticEmitterSystemData.cs | 0 .../OpenDis/Dis1998/Generated/ActionRequestPdu.cs | 0 .../Dis1998/Generated/ActionRequestReliablePdu.cs | 0 .../OpenDis/Dis1998/Generated/ActionResponsePdu.cs | 0 .../Dis1998/Generated/ActionResponseReliablePdu.cs | 0 .../OpenDis/Dis1998/Generated/AggregateID.cs | 0 .../OpenDis/Dis1998/Generated/AggregateMarking.cs | 0 .../OpenDis/Dis1998/Generated/AggregateStatePdu.cs | 0 .../OpenDis/Dis1998/Generated/AggregateType.cs | 0 .../Dis1998/Generated/AngularVelocityVector.cs | 0 .../OpenDis/Dis1998/Generated/AntennaLocation.cs | 0 .../OpenDis/Dis1998/Generated/ApaData.cs | 0 .../Dis1998/Generated/ArealObjectStatePdu.cs | 0 .../Dis1998/Generated/ArticulationParameter.cs | 0 .../OpenDis/Dis1998/Generated/BeamAntennaPattern.cs | 0 .../OpenDis/Dis1998/Generated/BeamData.cs | 0 .../OpenDis/Dis1998/Generated/BurstDescriptor.cs | 0 .../OpenDis/Dis1998/Generated/ClockTime.cs | 0 .../Dis1998/Generated/CollisionElasticPdu.cs | 0 .../OpenDis/Dis1998/Generated/CollisionPdu.cs | 0 .../OpenDis/Dis1998/Generated/CommentPdu.cs | 0 .../OpenDis/Dis1998/Generated/CommentReliablePdu.cs | 0 .../OpenDis/Dis1998/Generated/CreateEntityPdu.cs | 0 .../Dis1998/Generated/CreateEntityReliablePdu.cs | 0 .../OpenDis/Dis1998/Generated/DataPdu.cs | 0 .../OpenDis/Dis1998/Generated/DataQueryPdu.cs | 0 .../Dis1998/Generated/DataQueryReliablePdu.cs | 0 .../OpenDis/Dis1998/Generated/DataReliablePdu.cs | 0 .../Dis1998/Generated/DeadReckoningParameter.cs | 0 .../OpenDis/Dis1998/Generated/DesignatorPdu.cs | 0 .../OpenDis/Dis1998/Generated/DetonationPdu.cs | 0 .../Generated/DistributedEmissionsFamilyPdu.cs | 0 .../OpenDis/Dis1998/Generated/EightByteChunk.cs | 0 .../Dis1998/Generated/ElectronicEmissionBeamData.cs | 0 .../Generated/ElectronicEmissionSystemData.cs | 0 .../Dis1998/Generated/ElectronicEmissionsPdu.cs | 0 .../OpenDis/Dis1998/Generated/EmitterSystem.cs | 0 .../OpenDis/Dis1998/Generated/EntityID.cs | 0 .../Dis1998/Generated/EntityInformationFamilyPdu.cs | 0 .../Dis1998/Generated/EntityManagementFamilyPdu.cs | 0 .../OpenDis/Dis1998/Generated/EntityStatePdu.cs | 0 .../Dis1998/Generated/EntityStateUpdatePdu.cs | 0 .../OpenDis/Dis1998/Generated/EntityType.cs | 0 .../OpenDis/Dis1998/Generated/Environment.cs | 0 .../Dis1998/Generated/EnvironmentalProcessPdu.cs | 0 .../OpenDis/Dis1998/Generated/EventID.cs | 0 .../OpenDis/Dis1998/Generated/EventReportPdu.cs | 0 .../Dis1998/Generated/EventReportReliablePdu.cs | 0 .../OpenDis/Dis1998/Generated/FastEntityStatePdu.cs | 0 .../OpenDis/Dis1998/Generated/FirePdu.cs | 0 .../OpenDis/Dis1998/Generated/FixedDatum.cs | 0 .../OpenDis/Dis1998/Generated/FourByteChunk.cs | 0 .../Dis1998/Generated/FundamentalParameterData.cs | 0 .../Generated/FundamentalParameterDataIff.cs | 0 .../OpenDis/Dis1998/Generated/GridAxisRecord.cs | 0 .../Generated/GridAxisRecordRepresentation0.cs | 0 .../Generated/GridAxisRecordRepresentation1.cs | 0 .../Generated/GridAxisRecordRepresentation2.cs | 0 .../OpenDis/Dis1998/Generated/GriddedDataPdu.cs | 0 .../Dis1998/Generated/IffAtcNavAidsLayer1Pdu.cs | 0 .../Dis1998/Generated/IffAtcNavAidsLayer2Pdu.cs | 0 .../OpenDis/Dis1998/Generated/IffFundamentalData.cs | 0 .../Generated/IntercomCommunicationsParameters.cs | 0 .../OpenDis/Dis1998/Generated/IntercomControlPdu.cs | 0 .../OpenDis/Dis1998/Generated/IntercomSignalPdu.cs | 0 .../OpenDis/Dis1998/Generated/IsGroupOfPdu.cs | 0 .../OpenDis/Dis1998/Generated/IsPartOfPdu.cs | 0 .../OpenDis/Dis1998/Generated/LayerHeader.cs | 0 .../Dis1998/Generated/LinearObjectStatePdu.cs | 0 .../Dis1998/Generated/LinearSegmentParameter.cs | 0 .../OpenDis/Dis1998/Generated/LogisticsFamilyPdu.cs | 0 .../OpenDis/Dis1998/Generated/Marking.cs | 0 .../OpenDis/Dis1998/Generated/MinefieldDataPdu.cs | 0 .../OpenDis/Dis1998/Generated/MinefieldFamilyPdu.cs | 0 .../OpenDis/Dis1998/Generated/MinefieldQueryPdu.cs | 0 .../Dis1998/Generated/MinefieldResponseNackPdu.cs | 0 .../OpenDis/Dis1998/Generated/MinefieldStatePdu.cs | 0 .../OpenDis/Dis1998/Generated/ModulationType.cs | 0 .../OpenDis/Dis1998/Generated/NamedLocation.cs | 0 .../OpenDis/Dis1998/Generated/ObjectType.cs | 0 .../OpenDis/Dis1998/Generated/OneByteChunk.cs | 0 .../OpenDis/Dis1998/Generated/Orientation.cs | 0 .../CsharpDis6}/OpenDis/Dis1998/Generated/Pdu.cs | 0 .../OpenDis/Dis1998/Generated/PduContainer.cs | 0 .../CsharpDis6}/OpenDis/Dis1998/Generated/Point.cs | 0 .../Dis1998/Generated/PointObjectStatePdu.cs | 0 .../Dis1998/Generated/PropulsionSystemData.cs | 0 .../Generated/RadioCommunicationsFamilyPdu.cs | 0 .../OpenDis/Dis1998/Generated/RadioEntityType.cs | 0 .../OpenDis/Dis1998/Generated/ReceiverPdu.cs | 0 .../Dis1998/Generated/RecordQueryReliablePdu.cs | 0 .../OpenDis/Dis1998/Generated/RecordSet.cs | 0 .../OpenDis/Dis1998/Generated/Relationship.cs | 0 .../OpenDis/Dis1998/Generated/RemoveEntityPdu.cs | 0 .../Dis1998/Generated/RemoveEntityReliablePdu.cs | 0 .../OpenDis/Dis1998/Generated/RepairCompletePdu.cs | 0 .../OpenDis/Dis1998/Generated/RepairResponsePdu.cs | 0 .../OpenDis/Dis1998/Generated/ResupplyCancelPdu.cs | 0 .../OpenDis/Dis1998/Generated/ResupplyOfferPdu.cs | 0 .../Dis1998/Generated/ResupplyReceivedPdu.cs | 0 .../OpenDis/Dis1998/Generated/SeesPdu.cs | 0 .../OpenDis/Dis1998/Generated/ServiceRequestPdu.cs | 0 .../OpenDis/Dis1998/Generated/SetDataPdu.cs | 0 .../OpenDis/Dis1998/Generated/SetDataReliablePdu.cs | 0 .../Dis1998/Generated/SetRecordReliablePdu.cs | 0 .../OpenDis/Dis1998/Generated/ShaftRPMs.cs | 0 .../OpenDis/Dis1998/Generated/SignalPdu.cs | 0 .../OpenDis/Dis1998/Generated/SimulationAddress.cs | 0 .../Generated/SimulationManagementFamilyPdu.cs | 0 .../SimulationManagementWithReliabilityFamilyPdu.cs | 0 .../OpenDis/Dis1998/Generated/SixByteChunk.cs | 0 .../Generated/SphericalHarmonicAntennaPattern.cs | 0 .../OpenDis/Dis1998/Generated/StartResumePdu.cs | 0 .../Dis1998/Generated/StartResumeReliablePdu.cs | 0 .../OpenDis/Dis1998/Generated/StopFreezePdu.cs | 0 .../Dis1998/Generated/StopFreezeReliablePdu.cs | 0 .../OpenDis/Dis1998/Generated/SupplyQuantity.cs | 0 .../Generated/SyntheticEnvironmentFamilyPdu.cs | 0 .../OpenDis/Dis1998/Generated/SystemID.cs | 0 .../OpenDis/Dis1998/Generated/TrackJamTarget.cs | 0 .../Dis1998/Generated/TransferControlRequestPdu.cs | 0 .../OpenDis/Dis1998/Generated/TransmitterPdu.cs | 0 .../OpenDis/Dis1998/Generated/TwoByteChunk.cs | 0 .../CsharpDis6}/OpenDis/Dis1998/Generated/UaPdu.cs | 0 .../OpenDis/Dis1998/Generated/VariableDatum.cs | 0 .../OpenDis/Dis1998/Generated/Vector3Double.cs | 0 .../OpenDis/Dis1998/Generated/Vector3Float.cs | 0 .../Dis1998/Generated/VectoringNozzleSystemData.cs | 0 .../OpenDis/Dis1998/Generated/WarfareFamilyPdu.cs | 0 .../CsharpDis6}/OpenDis/Dis1998/PduFactory.cs | 0 .../CsharpDis6}/OpenDis/Dis1998/Vector3Double.cs | 0 .../CsharpDis6}/OpenDis/Dis1998/Vector3Float.cs | 0 .../OpenDis/Enumerations/Cet2006/AggregateTypes.xml | 0 .../OpenDis/Enumerations/Cet2006/Category.cs | 0 .../CsharpDis6}/OpenDis/Enumerations/Cet2006/Cet.cs | 0 .../OpenDis/Enumerations/Cet2006/CetFactory.cs | 0 .../OpenDis/Enumerations/Cet2006/CetItem.cs | 0 .../OpenDis/Enumerations/Cet2006/Entity.cs | 0 .../OpenDis/Enumerations/Cet2006/EntityTypes.xml | 0 .../OpenDis/Enumerations/Cet2006/Extra.cs | 0 .../OpenDis/Enumerations/Cet2006/GenericEntry.cs | 0 .../OpenDis/Enumerations/Cet2006/GenericTable.cs | 0 .../OpenDis/Enumerations/Cet2006/Specific.cs | 0 .../OpenDis/Enumerations/Cet2006/Subcategory.cs | 0 .../OpenDis/Enumerations/Cet2006/cet.xsd | 0 .../OpenDis/Enumerations/Cet2010/AggregateTypes.xml | 0 .../OpenDis/Enumerations/Cet2010/Category.cs | 0 .../OpenDis/Enumerations/Cet2010/CategoryRange.cs | 0 .../CsharpDis6}/OpenDis/Enumerations/Cet2010/Cet.cs | 0 .../OpenDis/Enumerations/Cet2010/CetFactory.cs | 0 .../OpenDis/Enumerations/Cet2010/CetItem.cs | 0 .../CsharpDis6}/OpenDis/Enumerations/Cet2010/Cr.cs | 0 .../OpenDis/Enumerations/Cet2010/CrRange.cs | 0 .../OpenDis/Enumerations/Cet2010/Entity.cs | 0 .../OpenDis/Enumerations/Cet2010/EntityTypes.xml | 0 .../OpenDis/Enumerations/Cet2010/Extra.cs | 0 .../OpenDis/Enumerations/Cet2010/ExtraRange.cs | 0 .../OpenDis/Enumerations/Cet2010/GenericEntry.cs | 0 .../Enumerations/Cet2010/GenericEntryDescription.cs | 0 .../Enumerations/Cet2010/GenericEntryRange.cs | 0 .../Enumerations/Cet2010/GenericEntrySingle.cs | 0 .../Enumerations/Cet2010/GenericEntryStatus.cs | 0 .../Enumerations/Cet2010/GenericEntryString.cs | 0 .../OpenDis/Enumerations/Cet2010/GenericTable.cs | 0 .../Cet2010/ICategoryOrCategoryRange.cs | 0 .../Enumerations/Cet2010/IExtraOrExtraRange.cs | 0 .../OpenDis/Enumerations/Cet2010/IGenericEntry.cs | 0 .../Cet2010/IGenericEntryDescription.cs | 0 .../Cet2010/ISpecificOrSpecificRange.cs | 0 .../Cet2010/ISubcategoryOrSubcategoryRange.cs | 0 .../OpenDis/Enumerations/Cet2010/Specific.cs | 0 .../OpenDis/Enumerations/Cet2010/SpecificRange.cs | 0 .../OpenDis/Enumerations/Cet2010/Subcategory.cs | 0 .../Enumerations/Cet2010/SubcategoryRange.cs | 0 .../OpenDis/Enumerations/Cet2010/cet.xsd | 0 .../CsharpDis6}/OpenDis/Enumerations/Country.cs | 0 .../DistributedEmission.Iff/InformationLayers.cs | 0 .../LayerSpecificInformation.cs | 0 .../DistributedEmission.Iff/SystemMode.cs | 0 .../DistributedEmission.Iff/SystemName.cs | 0 .../DistributedEmission.Iff/SystemStatus.cs | 0 .../DistributedEmission.Iff/SystemType.cs | 0 .../Type1AlternateParameter4.cs | 0 .../DistributedEmission.Iff/Type1ChangeOptions.cs | 0 .../DistributedEmission.Iff/Type1Modifier.cs | 0 .../Type1OperationalParameter1.cs | 0 .../Type1OperationalParameter2.cs | 0 .../Type1Parameter1Mode1CodeStatus.cs | 0 .../Type1Parameter2Mode2CodeStatus.cs | 0 .../Type1Parameter3Mode3CodeStatus.cs | 0 .../Type1Parameter4Mode4CodeStatus.cs | 0 .../Type1Parameter5ModeCCodeStatus.cs | 0 .../Type1Parameter6ModeSCodeStatus.cs | 0 .../Type2AlternateParameter4.cs | 0 .../DistributedEmission.Iff/Type2ChangeOptions.cs | 0 .../Type2OperationalParameter1.cs | 0 .../Type2OperationalParameter2.cs | 0 .../Type2Parameter1Mode1InterrogatorStatus.cs | 0 .../Type2Parameter2Mode2InterrogatorStatus.cs | 0 .../Type2Parameter3Mode3InterrogatorStatus.cs | 0 .../Type2Parameter4Mode4InterrogatorStatus.cs | 0 .../Type2Parameter5ModeCInterrogatorStatus.cs | 0 .../Type2Parameter6ModeSCodeStatus.cs | 0 .../DistributedEmission.Iff/Type3ChangeOptions.cs | 0 .../Type3OperationalParameter1.cs | 0 .../Type3OperationalParameter2.cs | 0 .../Type3Parameter1Mode1CodeStatus.cs | 0 .../Type3Parameter2Mode2CodeStatus.cs | 0 .../Type3Parameter3Mode3CodeStatus.cs | 0 .../Type3Parameter4Mode4CodeStatus.cs | 0 .../Type3Parameter5ModeCCodeStatus.cs | 0 .../Type3Parameter6Mode1CodeStatus.cs | 0 .../DistributedEmission.Iff/Type4ChangeOptions.cs | 0 .../Type4OperationalParameter1.cs | 0 .../Type4OperationalParameter2.cs | 0 .../DistributedEmission.Iff/Type4Parameter1.cs | 0 .../DistributedEmission.Iff/Type4Parameter2.cs | 0 .../DistributedEmission.Iff/Type4Parameter3.cs | 0 .../DistributedEmission.Iff/Type4Parameter4.cs | 0 .../DistributedEmission.Iff/Type4Parameter5.cs | 0 .../DistributedEmission.Iff/Type4Parameter6.cs | 0 .../DistributedEmission.Iff/Type5ChangeOptions.cs | 0 .../Type5OperationalParameter1.cs | 0 .../Type5OperationalParameter2.cs | 0 .../Type5Parameter1RRBResponse.cs | 0 .../ActiveEmissionParameterIndex.cs | 0 .../AdditionalPassiveActivityParameterIndex.cs | 0 .../EmitterFunction.cs | 0 .../PassiveParameterIndex.cs | 0 .../PropulsionPlantConfiguration.cs | 0 .../ScanPattern.cs | 0 .../StateChangeUpdateIndicator.cs | 0 .../SystemName.cs | 0 .../DistributedEmission/AircraftEnginePower.cs | 0 .../DistributedEmission/DesignatorCode.cs | 0 .../DistributedEmission/DesignatorCodeName.cs | 0 .../DistributedEmission/ElectromagneticEmitters.cs | 0 .../DistributedEmission/EmissionBeamFunction.cs | 0 .../DistributedEmission/EmissionFunction.cs | 0 .../DistributedEmission/HelicopterEnginePower.cs | 0 .../DistributedEmission/HighDensityTrackOrJam.cs | 0 .../DistributedEmission/StateUpdateIndicator.cs | 0 .../DistributedEmission/TankEnginePower.cs | 0 .../Entity.Information.Minefield/Appearance.cs | 0 .../Entity.Information.Minefield/DataFilter.cs | 0 .../Entity.Information.Minefield/FlirSensor.cs | 0 .../Entity.Information.Minefield/Fusing.cs | 0 .../Entity.Information.Minefield/LaserSensor.cs | 0 .../Entity.Information.Minefield/MagneticSensor.cs | 0 .../MultispectralSensor.cs | 0 .../Entity.Information.Minefield/OpticalSensor.cs | 0 .../Entity.Information.Minefield/PaintScheme.cs | 0 .../Entity.Information.Minefield/PhysicalSensor.cs | 0 .../Entity.Information.Minefield/ProtocolMode.cs | 0 .../Entity.Information.Minefield/RadarSensor.cs | 0 .../Entity.Information.Minefield/SensorTypes.cs | 0 .../Entity.Information.Minefield/SonarSensor.cs | 0 .../Entity.Information/EntityCollisionType.cs | 0 .../Entity.Management/AggregateFormation.cs | 0 .../Enumerations/Entity.Management/AggregateKind.cs | 0 .../Entity.Management/AggregateSpecific.cs | 0 .../Entity.Management/AggregateState.cs | 0 .../Entity.Management/AggregateSubcategory.cs | 0 .../GroupOfGroupedEntityCategory.cs | 0 .../Entity.Management/GroupOfRestStatus.cs | 0 .../Enumerations/Entity.Management/PartOfNature.cs | 0 .../Entity.Management/PartOfPosition.cs | 0 .../Entity.Management/PartOfStationName.cs | 0 .../Enumerations/Entity.Management/TransferType.cs | 0 .../EntityState.Appearance/AirPlatformAppearance.cs | 0 .../EntityState.Appearance/CulturalAppearance.cs | 0 .../EnvironmentalAppearance.cs | 0 .../LandPlatformAppearance.cs | 0 .../EntityState.Appearance/LifeFormAppearance.cs | 0 .../EntityState.Appearance/MunitionAppearance.cs | 0 .../SensorEmitterAppearance.cs | 0 .../SpacePlatformAppearance.cs | 0 .../SubsurfacePlatformAppearance.cs | 0 .../SurfacePlatformAppearance.cs | 0 .../EntityState.Marking/ArmyMarkingCompany.cs | 0 .../ArmyMarkingDivisionCorpsDesignation.cs | 0 .../ArmyMarkingHighLevelUnitFor1stCavalry.cs | 0 .../ArmyMarkingHighLevelUnitFor1stInfantry.cs | 0 .../EntityState.Marking/ArmyMarkingMarkingCodes.cs | 0 .../EntityState.Marking/ArmyMarkingPlatoon.cs | 0 .../EntityState.Marking/ArmyMarkingPlatoonCodes.cs | 0 .../EntityState.Marking/ArmyMarkingVehicle.cs | 0 .../EntityState.Marking/DigitChevronMarkingCodes.cs | 0 .../EntityState.Marking/EntityMarkingText.cs | 0 .../Enumerations/EntityState.Type/AirPlatform.cs | 0 .../CISWeaponsForLifeFormsSubcategory.cs | 0 .../Enumerations/EntityState.Type/EntityKind.cs | 0 .../EntityState.Type/EnvironmentalSubcategory.cs | 0 .../EntityState.Type/ExpendableAirCategory.cs | 0 .../ExpendableSubsurfaceCategory.cs | 0 .../EntityState.Type/ExpendableSurfaceCategory.cs | 0 .../EntityState.Type/FrenchWeaponsForLifeForms.cs | 0 .../EntityState.Type/GermanWeaponsForLifeForms.cs | 0 .../Enumerations/EntityState.Type/LandPlatform.cs | 0 .../Enumerations/EntityState.Type/Munition.cs | 0 .../EntityState.Type/MunitionCategory.cs | 0 .../Enumerations/EntityState.Type/Platform.cs | 0 .../Enumerations/EntityState.Type/RadioCategory.cs | 0 .../EntityState.Type/RadioNomenclature.cs | 0 .../EntityState.Type/RadioNomenclatureVersion.cs | 0 .../EntityState.Type/SensorEmitterCategory.cs | 0 .../Enumerations/EntityState.Type/SpacePlatform.cs | 0 .../EntityState.Type/SubsufracePlatform.cs | 0 .../EntityState.Type/SurfacePlatform.cs | 0 .../EntityState.Type/UKWeaponsForLifeForms.cs | 0 .../EntityState.Type/USWeaponsForLifeForms.cs | 0 .../EntityState/ArticulatedPartIndex.cs | 0 .../EntityState/ArticulatedPartOffset.cs | 0 .../Enumerations/EntityState/AttachedParts.cs | 0 .../EntityState/DeadReckoningAlgorithm.cs | 0 .../Enumerations/EntityState/EntityCapabilities.cs | 0 .../Enumerations/EntityState/EntityForceId.cs | 0 .../EntityState/ParameterTypeDesignator.cs | 0 .../Environment.Gridded/ConstantGrid.cs | 0 .../Environment.Gridded/CoordinateSystem.cs | 0 .../Environment.Gridded/DataRepresentationType.cs | 0 .../AirBurstAndGroundBurst.cs | 0 .../ArealObjectStatePDUModificationField.cs | 0 .../Enumerations/Environment.ObjectState/Crater.cs | 0 .../Environment.ObjectState/ExhaustSmoke.cs | 0 .../Environment.ObjectState/GeneralAppearance.cs | 0 .../LinearObjectStatePDUModificationField.cs | 0 ...tisVehicleDefiladeAndInfantryFightingPosition.cs | 0 .../Environment.ObjectState/Minefield.cs | 0 .../Environment.ObjectState/MinefieldLaneMarker.cs | 0 .../Environment.ObjectState/ObjectKind.cs | 0 .../PointObjectStatePDUModificationField.cs | 0 .../Environment.ObjectState/RibbonBridge.cs | 0 .../TankDitchAndConcertinaWire.cs | 0 .../Environment.Process/EnvironmentStatus.cs | 0 .../EnvironmentalProcessTypesForGeometryRecord.cs | 0 .../EnvironmentalProcessTypesForStateRecord.cs | 0 .../Logistics/AuxilaryCraftRepairCode.cs | 0 .../Enumerations/Logistics/DriveTrainRepairCode.cs | 0 .../Enumerations/Logistics/ElectronicsRepairCode.cs | 0 .../Enumerations/Logistics/FuelSystemRepairCode.cs | 0 .../Enumerations/Logistics/GeneralRepairCode.cs | 0 .../Logistics/HullAirframeBodyRepairCode.cs | 0 .../Logistics/HydraulicSystemsAndActuators.cs | 0 .../InterfacesWithEnvironmentRepairCode.cs | 0 .../Enumerations/Logistics/LifeSupportRepairCode.cs | 0 .../Enumerations/Logistics/ResponseResultCode.cs | 0 .../Enumerations/Logistics/ServiceRequestType.cs | 0 .../Enumerations/Logistics/WeaponRepairCode.cs | 0 .../CsharpDis6}/OpenDis/Enumerations/PduType.cs | 0 .../OpenDis/Enumerations/ProtocolFamily.cs | 0 .../OpenDis/Enumerations/ProtocolVersion.cs | 0 .../OpenDis/Enumerations/Radio.Intercom/Command.cs | 0 .../Radio.Intercom/CommunicationsType.cs | 0 .../Enumerations/Radio.Intercom/ControlType.cs | 0 .../Radio.Intercom/DestinationLineStateCommand.cs | 0 .../Enumerations/Radio.Intercom/RecordType.cs | 0 .../Radio.Intercom/TransmitLineState.cs | 0 .../Radio.Transmitter/AntennaPatternType.cs | 0 .../Enumerations/Radio.Transmitter/ClearChannel.cs | 0 .../Enumerations/Radio.Transmitter/CryptoSystem.cs | 0 ...ailedModulationForAmplitudeAndAngleModulation.cs | 0 .../DetailedModulationForAmplitudeModulation.cs | 0 .../DetailedModulationForAngleModulation.cs | 0 .../DetailedModulationForCarrierPhaseShift.cs | 0 .../DetailedModulationForCombinationModulation.cs | 0 .../DetailedModulationForPulseModulation.cs | 0 .../DetailedModulationForUnmodulatedModulation.cs | 0 .../Enumerations/Radio.Transmitter/InputSource.cs | 0 .../Radio.Transmitter/JtidsSynchronizationState.cs | 0 .../JtidsTransmittingTerminalPrimaryMode.cs | 0 .../JtidsTransmittingTerminalSecondaryMode.cs | 0 .../Radio.Transmitter/MajorModulation.cs | 0 .../Radio.Transmitter/RadioSignalEncoding.cs | 0 .../Radio.Transmitter/ReferenceSystem.cs | 0 .../Radio.Transmitter/SpreadSpectrum.cs | 0 .../Radio.Transmitter/StartOfMessage.cs | 0 .../Enumerations/Radio.Transmitter/TDLType.cs | 0 .../Enumerations/Radio.Transmitter/TransmitState.cs | 0 .../TransmitterModulationSystemType.cs | 0 .../UserProtocolIdentificationNumber.cs | 0 .../OpenDis/Enumerations/Radio/ReceiverState.cs | 0 .../SimulationManagement/AcknowledgeFlag.cs | 0 .../Enumerations/SimulationManagement/ActionId.cs | 0 .../ActionResponseRequestStatus.cs | 0 .../DatumSpecificationRecord.cs | 0 .../Enumerations/SimulationManagement/EventType.cs | 0 .../SimulationManagement/FrozenBehavior.cs | 0 .../RequiredReliabilityService.cs | 0 .../SimulationManagement/ResponseFlag.cs | 0 .../SimulationManagement/StopFreezeReason.cs | 0 .../Enumerations/Warfare/DetonationResult.cs | 0 .../OpenDis/Enumerations/Warfare/Fuse.cs | 0 .../OpenDis/Enumerations/Warfare/Warhead.cs | 0 .../OpenDis/FxCop OpenDis Analysis.FxCop | 0 .../CsharpDis6}/OpenDis/FxCopCustomDictionary.xml | 0 .../CsharpDis6}/OpenDis/OpenDis.build.bat | 0 .../CsharpDis6}/OpenDis/OpenDis.build.csproj | 0 .../CsharpDis6}/OpenDis/OpenDis.csproj | 0 .../CsharpDis6}/OpenDis/OpenDis.csproj.user | 0 .../CsharpDis6}/OpenDis/Properties/AssemblyInfo.cs | 0 .../CsharpDis6}/OpenDis/Properties/Version.cs | 0 .../CsharpDis6}/OpenDis/Settings.StyleCop | 0 .../OpenDis/Utilities/ChunkConverters.cs | 0 .../CsharpDis6}/OpenDis/Utilities/Conversion.cs | 0 .../OpenDis/Utilities/CoordinateConversions.cs | 0 .../OpenDis/Utilities/DataInputStream.cs | 0 .../OpenDis/Utilities/DataOutputStream.cs | 0 .../CsharpDis6}/OpenDis/Utilities/DataStream.cs | 0 .../CsharpDis6}/OpenDis/Utilities/PDUProcessor.cs | 0 {CsharpDis6 => Libs/CsharpDis6}/OpenDis/key.snk | Bin 512 files changed, 0 insertions(+), 0 deletions(-) rename {CsharpDis6 => Libs/CsharpDis6}/EspduReceiver/EspduReceiver.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/EspduReceiver/OpenDis.EspduReceiver.csproj (100%) rename {CsharpDis6 => Libs/CsharpDis6}/EspduReceiver/Properties/AssemblyInfo.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/EspduSender/EspduSender.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/EspduSender/OpenDis.EspduSender.csproj (100%) rename {CsharpDis6 => Libs/CsharpDis6}/EspduSender/Properties/AssemblyInfo.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis.Demo/App.xaml (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis.Demo/App.xaml.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis.Demo/MainWindow.xaml (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis.Demo/MainWindow.xaml.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis.Demo/OpenDis.Demo.csproj (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis.Demo/Properties/AssemblyInfo.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis.Demo/Properties/Resources.Designer.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis.Demo/Properties/Resources.resx (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis.Demo/Properties/Settings.Designer.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis.Demo/Properties/Settings.settings (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis.Demo/bin/Debug/OpenDis.Demo.vshost.exe (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis.Demo/bin/Debug/OpenDis.Demo.vshost.exe.manifest (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis.Demo/obj/x86/Debug/OpenDis.Demo_MarkupCompile.i.cache (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis.Demo/obj/x86/Debug/OpenDis.Demo_MarkupCompile.i.lref (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis.sln (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis.suo (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Core/CetBase.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Core/DisTime.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Core/EndianTypes.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Core/EnumHelper.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Core/EnumNotFoundException.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Core/ICetItem.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Core/IPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Core/InternetDomainCodeAttribute.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Core/PduBase.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Core/PduExceptionEventArgs.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Core/PduFactory.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/EntityID.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/AcknowledgePdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/ActionRequestPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/ActionResponsePdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/AngularVelocityVector.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/AntennaLocation.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/ArticulationParameter.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/BeamAntennaPattern.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/BurstDescriptor.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/ClockTime.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/CollisionPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/CommentPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/CreateEntityPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/DataPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/DataQueryPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/DeadReckoningParameter.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/DesignatorPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/DetonationPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/DistributedEmissionsPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/EightByteChunk.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/ElectronicEmmisionsPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/EmitterSystem.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/EntityID.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/EntityInformationPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/EntityStatePdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/EntityType.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/EventID.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/EventReportPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/FirePdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/FixedDatum.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/FundamentalParameterData.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/LogisticsPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/ModulationType.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/Orientation.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/Pdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/RadioCommunicationsPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/RadioEntityType.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/ReceiverPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/RemoveEntityPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/RepairCompletePdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/RepairResponsePdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/ResupplyCancelPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/ResupplyOfferPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/ResupplyReceivedPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/ServiceRequestPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/SetDataPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/SignalPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/SimulationAddress.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/SimulationManagementPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/SphericalHarmonicAntennaPattern.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/StartResumePdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/StopFreezePdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/SupplyQuantity.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/TransmitterPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/VariableDatum.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/Vector3Double.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/Vector3Float.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Generated/Warfare.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/PduFactory.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Vector3Double.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1995/Vector3Float.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/EntityID.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/AcknowledgePdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/AcknowledgeReliablePdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/AcousticBeamData.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/AcousticBeamFundamentalParameter.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/AcousticEmitter.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/AcousticEmitterSystem.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/AcousticEmitterSystemData.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/ActionRequestPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/ActionRequestReliablePdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/ActionResponsePdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/ActionResponseReliablePdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/AggregateID.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/AggregateMarking.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/AggregateStatePdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/AggregateType.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/AngularVelocityVector.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/AntennaLocation.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/ApaData.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/ArealObjectStatePdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/ArticulationParameter.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/BeamAntennaPattern.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/BeamData.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/BurstDescriptor.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/ClockTime.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/CollisionElasticPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/CollisionPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/CommentPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/CommentReliablePdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/CreateEntityPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/CreateEntityReliablePdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/DataPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/DataQueryPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/DataQueryReliablePdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/DataReliablePdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/DeadReckoningParameter.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/DesignatorPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/DetonationPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/DistributedEmissionsFamilyPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/EightByteChunk.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/ElectronicEmissionBeamData.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/ElectronicEmissionSystemData.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/ElectronicEmissionsPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/EmitterSystem.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/EntityID.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/EntityInformationFamilyPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/EntityManagementFamilyPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/EntityStatePdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/EntityStateUpdatePdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/EntityType.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/Environment.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/EnvironmentalProcessPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/EventID.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/EventReportPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/EventReportReliablePdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/FastEntityStatePdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/FirePdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/FixedDatum.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/FourByteChunk.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/FundamentalParameterData.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/FundamentalParameterDataIff.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/GridAxisRecord.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/GridAxisRecordRepresentation0.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/GridAxisRecordRepresentation1.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/GridAxisRecordRepresentation2.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/GriddedDataPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/IffAtcNavAidsLayer1Pdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/IffAtcNavAidsLayer2Pdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/IffFundamentalData.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/IntercomCommunicationsParameters.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/IntercomControlPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/IntercomSignalPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/IsGroupOfPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/IsPartOfPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/LayerHeader.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/LinearObjectStatePdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/LinearSegmentParameter.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/LogisticsFamilyPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/Marking.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/MinefieldDataPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/MinefieldFamilyPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/MinefieldQueryPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/MinefieldResponseNackPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/MinefieldStatePdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/ModulationType.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/NamedLocation.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/ObjectType.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/OneByteChunk.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/Orientation.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/Pdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/PduContainer.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/Point.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/PointObjectStatePdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/PropulsionSystemData.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/RadioCommunicationsFamilyPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/RadioEntityType.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/ReceiverPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/RecordQueryReliablePdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/RecordSet.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/Relationship.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/RemoveEntityPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/RemoveEntityReliablePdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/RepairCompletePdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/RepairResponsePdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/ResupplyCancelPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/ResupplyOfferPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/ResupplyReceivedPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/SeesPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/ServiceRequestPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/SetDataPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/SetDataReliablePdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/SetRecordReliablePdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/ShaftRPMs.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/SignalPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/SimulationAddress.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/SimulationManagementFamilyPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/SimulationManagementWithReliabilityFamilyPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/SixByteChunk.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/SphericalHarmonicAntennaPattern.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/StartResumePdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/StartResumeReliablePdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/StopFreezePdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/StopFreezeReliablePdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/SupplyQuantity.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/SyntheticEnvironmentFamilyPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/SystemID.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/TrackJamTarget.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/TransferControlRequestPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/TransmitterPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/TwoByteChunk.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/UaPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/VariableDatum.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/Vector3Double.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/Vector3Float.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/VectoringNozzleSystemData.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Generated/WarfareFamilyPdu.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/PduFactory.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Vector3Double.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Dis1998/Vector3Float.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Cet2006/AggregateTypes.xml (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Cet2006/Category.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Cet2006/Cet.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Cet2006/CetFactory.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Cet2006/CetItem.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Cet2006/Entity.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Cet2006/EntityTypes.xml (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Cet2006/Extra.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Cet2006/GenericEntry.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Cet2006/GenericTable.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Cet2006/Specific.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Cet2006/Subcategory.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Cet2006/cet.xsd (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Cet2010/AggregateTypes.xml (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Cet2010/Category.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Cet2010/CategoryRange.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Cet2010/Cet.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Cet2010/CetFactory.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Cet2010/CetItem.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Cet2010/Cr.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Cet2010/CrRange.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Cet2010/Entity.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Cet2010/EntityTypes.xml (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Cet2010/Extra.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Cet2010/ExtraRange.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Cet2010/GenericEntry.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Cet2010/GenericEntryDescription.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Cet2010/GenericEntryRange.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Cet2010/GenericEntrySingle.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Cet2010/GenericEntryStatus.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Cet2010/GenericEntryString.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Cet2010/GenericTable.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Cet2010/ICategoryOrCategoryRange.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Cet2010/IExtraOrExtraRange.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Cet2010/IGenericEntry.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Cet2010/IGenericEntryDescription.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Cet2010/ISpecificOrSpecificRange.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Cet2010/ISubcategoryOrSubcategoryRange.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Cet2010/Specific.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Cet2010/SpecificRange.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Cet2010/Subcategory.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Cet2010/SubcategoryRange.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Cet2010/cet.xsd (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Country.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/InformationLayers.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/LayerSpecificInformation.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/SystemMode.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/SystemName.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/SystemStatus.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/SystemType.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/Type1AlternateParameter4.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/Type1ChangeOptions.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/Type1Modifier.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/Type1OperationalParameter1.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/Type1OperationalParameter2.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter1Mode1CodeStatus.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter2Mode2CodeStatus.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter3Mode3CodeStatus.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter4Mode4CodeStatus.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter5ModeCCodeStatus.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter6ModeSCodeStatus.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/Type2AlternateParameter4.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/Type2ChangeOptions.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/Type2OperationalParameter1.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/Type2OperationalParameter2.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter1Mode1InterrogatorStatus.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter2Mode2InterrogatorStatus.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter3Mode3InterrogatorStatus.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter4Mode4InterrogatorStatus.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter5ModeCInterrogatorStatus.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter6ModeSCodeStatus.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/Type3ChangeOptions.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/Type3OperationalParameter1.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/Type3OperationalParameter2.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter1Mode1CodeStatus.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter2Mode2CodeStatus.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter3Mode3CodeStatus.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter4Mode4CodeStatus.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter5ModeCCodeStatus.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter6Mode1CodeStatus.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/Type4ChangeOptions.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/Type4OperationalParameter1.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/Type4OperationalParameter2.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter1.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter2.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter3.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter4.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter5.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter6.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/Type5ChangeOptions.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/Type5OperationalParameter1.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/Type5OperationalParameter2.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.Iff/Type5Parameter1RRBResponse.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/ActiveEmissionParameterIndex.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/AdditionalPassiveActivityParameterIndex.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/EmitterFunction.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/PassiveParameterIndex.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/PropulsionPlantConfiguration.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/ScanPattern.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/StateChangeUpdateIndicator.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/SystemName.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission/AircraftEnginePower.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission/DesignatorCode.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission/DesignatorCodeName.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission/ElectromagneticEmitters.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission/EmissionBeamFunction.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission/EmissionFunction.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission/HelicopterEnginePower.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission/HighDensityTrackOrJam.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission/StateUpdateIndicator.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/DistributedEmission/TankEnginePower.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Entity.Information.Minefield/Appearance.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Entity.Information.Minefield/DataFilter.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Entity.Information.Minefield/FlirSensor.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Entity.Information.Minefield/Fusing.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Entity.Information.Minefield/LaserSensor.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Entity.Information.Minefield/MagneticSensor.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Entity.Information.Minefield/MultispectralSensor.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Entity.Information.Minefield/OpticalSensor.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Entity.Information.Minefield/PaintScheme.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Entity.Information.Minefield/PhysicalSensor.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Entity.Information.Minefield/ProtocolMode.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Entity.Information.Minefield/RadarSensor.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Entity.Information.Minefield/SensorTypes.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Entity.Information.Minefield/SonarSensor.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Entity.Information/EntityCollisionType.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Entity.Management/AggregateFormation.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Entity.Management/AggregateKind.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Entity.Management/AggregateSpecific.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Entity.Management/AggregateState.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Entity.Management/AggregateSubcategory.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Entity.Management/GroupOfGroupedEntityCategory.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Entity.Management/GroupOfRestStatus.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Entity.Management/PartOfNature.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Entity.Management/PartOfPosition.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Entity.Management/PartOfStationName.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Entity.Management/TransferType.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState.Appearance/AirPlatformAppearance.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState.Appearance/CulturalAppearance.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState.Appearance/EnvironmentalAppearance.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState.Appearance/LandPlatformAppearance.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState.Appearance/LifeFormAppearance.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState.Appearance/MunitionAppearance.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState.Appearance/SensorEmitterAppearance.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState.Appearance/SpacePlatformAppearance.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState.Appearance/SubsurfacePlatformAppearance.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState.Appearance/SurfacePlatformAppearance.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingCompany.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingDivisionCorpsDesignation.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingHighLevelUnitFor1stCavalry.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingHighLevelUnitFor1stInfantry.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingMarkingCodes.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingPlatoon.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingPlatoonCodes.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingVehicle.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState.Marking/DigitChevronMarkingCodes.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState.Marking/EntityMarkingText.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState.Type/AirPlatform.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState.Type/CISWeaponsForLifeFormsSubcategory.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState.Type/EntityKind.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState.Type/EnvironmentalSubcategory.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState.Type/ExpendableAirCategory.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState.Type/ExpendableSubsurfaceCategory.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState.Type/ExpendableSurfaceCategory.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState.Type/FrenchWeaponsForLifeForms.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState.Type/GermanWeaponsForLifeForms.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState.Type/LandPlatform.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState.Type/Munition.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState.Type/MunitionCategory.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState.Type/Platform.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState.Type/RadioCategory.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState.Type/RadioNomenclature.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState.Type/RadioNomenclatureVersion.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState.Type/SensorEmitterCategory.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState.Type/SpacePlatform.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState.Type/SubsufracePlatform.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState.Type/SurfacePlatform.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState.Type/UKWeaponsForLifeForms.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState.Type/USWeaponsForLifeForms.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState/ArticulatedPartIndex.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState/ArticulatedPartOffset.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState/AttachedParts.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState/DeadReckoningAlgorithm.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState/EntityCapabilities.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState/EntityForceId.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/EntityState/ParameterTypeDesignator.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Environment.Gridded/ConstantGrid.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Environment.Gridded/CoordinateSystem.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Environment.Gridded/DataRepresentationType.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Environment.ObjectState/AirBurstAndGroundBurst.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Environment.ObjectState/ArealObjectStatePDUModificationField.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Environment.ObjectState/Crater.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Environment.ObjectState/ExhaustSmoke.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Environment.ObjectState/GeneralAppearance.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Environment.ObjectState/LinearObjectStatePDUModificationField.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Environment.ObjectState/LogCribAbatisVehicleDefiladeAndInfantryFightingPosition.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Environment.ObjectState/Minefield.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Environment.ObjectState/MinefieldLaneMarker.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Environment.ObjectState/ObjectKind.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Environment.ObjectState/PointObjectStatePDUModificationField.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Environment.ObjectState/RibbonBridge.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Environment.ObjectState/TankDitchAndConcertinaWire.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Environment.Process/EnvironmentStatus.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Environment.Process/EnvironmentalProcessTypesForGeometryRecord.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Environment.Process/EnvironmentalProcessTypesForStateRecord.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Logistics/AuxilaryCraftRepairCode.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Logistics/DriveTrainRepairCode.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Logistics/ElectronicsRepairCode.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Logistics/FuelSystemRepairCode.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Logistics/GeneralRepairCode.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Logistics/HullAirframeBodyRepairCode.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Logistics/HydraulicSystemsAndActuators.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Logistics/InterfacesWithEnvironmentRepairCode.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Logistics/LifeSupportRepairCode.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Logistics/ResponseResultCode.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Logistics/ServiceRequestType.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Logistics/WeaponRepairCode.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/PduType.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/ProtocolFamily.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/ProtocolVersion.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Radio.Intercom/Command.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Radio.Intercom/CommunicationsType.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Radio.Intercom/ControlType.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Radio.Intercom/DestinationLineStateCommand.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Radio.Intercom/RecordType.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Radio.Intercom/TransmitLineState.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Radio.Transmitter/AntennaPatternType.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Radio.Transmitter/ClearChannel.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Radio.Transmitter/CryptoSystem.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForAmplitudeAndAngleModulation.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForAmplitudeModulation.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForAngleModulation.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForCarrierPhaseShift.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForCombinationModulation.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForPulseModulation.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForUnmodulatedModulation.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Radio.Transmitter/InputSource.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Radio.Transmitter/JtidsSynchronizationState.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Radio.Transmitter/JtidsTransmittingTerminalPrimaryMode.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Radio.Transmitter/JtidsTransmittingTerminalSecondaryMode.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Radio.Transmitter/MajorModulation.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Radio.Transmitter/RadioSignalEncoding.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Radio.Transmitter/ReferenceSystem.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Radio.Transmitter/SpreadSpectrum.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Radio.Transmitter/StartOfMessage.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Radio.Transmitter/TDLType.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Radio.Transmitter/TransmitState.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Radio.Transmitter/TransmitterModulationSystemType.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Radio.Transmitter/UserProtocolIdentificationNumber.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Radio/ReceiverState.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/SimulationManagement/AcknowledgeFlag.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/SimulationManagement/ActionId.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/SimulationManagement/ActionResponseRequestStatus.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/SimulationManagement/DatumSpecificationRecord.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/SimulationManagement/EventType.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/SimulationManagement/FrozenBehavior.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/SimulationManagement/RequiredReliabilityService.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/SimulationManagement/ResponseFlag.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/SimulationManagement/StopFreezeReason.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Warfare/DetonationResult.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Warfare/Fuse.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Enumerations/Warfare/Warhead.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/FxCop OpenDis Analysis.FxCop (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/FxCopCustomDictionary.xml (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/OpenDis.build.bat (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/OpenDis.build.csproj (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/OpenDis.csproj (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/OpenDis.csproj.user (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Properties/AssemblyInfo.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Properties/Version.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Settings.StyleCop (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Utilities/ChunkConverters.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Utilities/Conversion.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Utilities/CoordinateConversions.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Utilities/DataInputStream.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Utilities/DataOutputStream.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Utilities/DataStream.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/Utilities/PDUProcessor.cs (100%) rename {CsharpDis6 => Libs/CsharpDis6}/OpenDis/key.snk (100%) diff --git a/CsharpDis6/EspduReceiver/EspduReceiver.cs b/Libs/CsharpDis6/EspduReceiver/EspduReceiver.cs similarity index 100% rename from CsharpDis6/EspduReceiver/EspduReceiver.cs rename to Libs/CsharpDis6/EspduReceiver/EspduReceiver.cs diff --git a/CsharpDis6/EspduReceiver/OpenDis.EspduReceiver.csproj b/Libs/CsharpDis6/EspduReceiver/OpenDis.EspduReceiver.csproj similarity index 100% rename from CsharpDis6/EspduReceiver/OpenDis.EspduReceiver.csproj rename to Libs/CsharpDis6/EspduReceiver/OpenDis.EspduReceiver.csproj diff --git a/CsharpDis6/EspduReceiver/Properties/AssemblyInfo.cs b/Libs/CsharpDis6/EspduReceiver/Properties/AssemblyInfo.cs similarity index 100% rename from CsharpDis6/EspduReceiver/Properties/AssemblyInfo.cs rename to Libs/CsharpDis6/EspduReceiver/Properties/AssemblyInfo.cs diff --git a/CsharpDis6/EspduSender/EspduSender.cs b/Libs/CsharpDis6/EspduSender/EspduSender.cs similarity index 100% rename from CsharpDis6/EspduSender/EspduSender.cs rename to Libs/CsharpDis6/EspduSender/EspduSender.cs diff --git a/CsharpDis6/EspduSender/OpenDis.EspduSender.csproj b/Libs/CsharpDis6/EspduSender/OpenDis.EspduSender.csproj similarity index 100% rename from CsharpDis6/EspduSender/OpenDis.EspduSender.csproj rename to Libs/CsharpDis6/EspduSender/OpenDis.EspduSender.csproj diff --git a/CsharpDis6/EspduSender/Properties/AssemblyInfo.cs b/Libs/CsharpDis6/EspduSender/Properties/AssemblyInfo.cs similarity index 100% rename from CsharpDis6/EspduSender/Properties/AssemblyInfo.cs rename to Libs/CsharpDis6/EspduSender/Properties/AssemblyInfo.cs diff --git a/CsharpDis6/OpenDis.Demo/App.xaml b/Libs/CsharpDis6/OpenDis.Demo/App.xaml similarity index 100% rename from CsharpDis6/OpenDis.Demo/App.xaml rename to Libs/CsharpDis6/OpenDis.Demo/App.xaml diff --git a/CsharpDis6/OpenDis.Demo/App.xaml.cs b/Libs/CsharpDis6/OpenDis.Demo/App.xaml.cs similarity index 100% rename from CsharpDis6/OpenDis.Demo/App.xaml.cs rename to Libs/CsharpDis6/OpenDis.Demo/App.xaml.cs diff --git a/CsharpDis6/OpenDis.Demo/MainWindow.xaml b/Libs/CsharpDis6/OpenDis.Demo/MainWindow.xaml similarity index 100% rename from CsharpDis6/OpenDis.Demo/MainWindow.xaml rename to Libs/CsharpDis6/OpenDis.Demo/MainWindow.xaml diff --git a/CsharpDis6/OpenDis.Demo/MainWindow.xaml.cs b/Libs/CsharpDis6/OpenDis.Demo/MainWindow.xaml.cs similarity index 100% rename from CsharpDis6/OpenDis.Demo/MainWindow.xaml.cs rename to Libs/CsharpDis6/OpenDis.Demo/MainWindow.xaml.cs diff --git a/CsharpDis6/OpenDis.Demo/OpenDis.Demo.csproj b/Libs/CsharpDis6/OpenDis.Demo/OpenDis.Demo.csproj similarity index 100% rename from CsharpDis6/OpenDis.Demo/OpenDis.Demo.csproj rename to Libs/CsharpDis6/OpenDis.Demo/OpenDis.Demo.csproj diff --git a/CsharpDis6/OpenDis.Demo/Properties/AssemblyInfo.cs b/Libs/CsharpDis6/OpenDis.Demo/Properties/AssemblyInfo.cs similarity index 100% rename from CsharpDis6/OpenDis.Demo/Properties/AssemblyInfo.cs rename to Libs/CsharpDis6/OpenDis.Demo/Properties/AssemblyInfo.cs diff --git a/CsharpDis6/OpenDis.Demo/Properties/Resources.Designer.cs b/Libs/CsharpDis6/OpenDis.Demo/Properties/Resources.Designer.cs similarity index 100% rename from CsharpDis6/OpenDis.Demo/Properties/Resources.Designer.cs rename to Libs/CsharpDis6/OpenDis.Demo/Properties/Resources.Designer.cs diff --git a/CsharpDis6/OpenDis.Demo/Properties/Resources.resx b/Libs/CsharpDis6/OpenDis.Demo/Properties/Resources.resx similarity index 100% rename from CsharpDis6/OpenDis.Demo/Properties/Resources.resx rename to Libs/CsharpDis6/OpenDis.Demo/Properties/Resources.resx diff --git a/CsharpDis6/OpenDis.Demo/Properties/Settings.Designer.cs b/Libs/CsharpDis6/OpenDis.Demo/Properties/Settings.Designer.cs similarity index 100% rename from CsharpDis6/OpenDis.Demo/Properties/Settings.Designer.cs rename to Libs/CsharpDis6/OpenDis.Demo/Properties/Settings.Designer.cs diff --git a/CsharpDis6/OpenDis.Demo/Properties/Settings.settings b/Libs/CsharpDis6/OpenDis.Demo/Properties/Settings.settings similarity index 100% rename from CsharpDis6/OpenDis.Demo/Properties/Settings.settings rename to Libs/CsharpDis6/OpenDis.Demo/Properties/Settings.settings diff --git a/CsharpDis6/OpenDis.Demo/bin/Debug/OpenDis.Demo.vshost.exe b/Libs/CsharpDis6/OpenDis.Demo/bin/Debug/OpenDis.Demo.vshost.exe similarity index 100% rename from CsharpDis6/OpenDis.Demo/bin/Debug/OpenDis.Demo.vshost.exe rename to Libs/CsharpDis6/OpenDis.Demo/bin/Debug/OpenDis.Demo.vshost.exe diff --git a/CsharpDis6/OpenDis.Demo/bin/Debug/OpenDis.Demo.vshost.exe.manifest b/Libs/CsharpDis6/OpenDis.Demo/bin/Debug/OpenDis.Demo.vshost.exe.manifest similarity index 100% rename from CsharpDis6/OpenDis.Demo/bin/Debug/OpenDis.Demo.vshost.exe.manifest rename to Libs/CsharpDis6/OpenDis.Demo/bin/Debug/OpenDis.Demo.vshost.exe.manifest diff --git a/CsharpDis6/OpenDis.Demo/obj/x86/Debug/OpenDis.Demo_MarkupCompile.i.cache b/Libs/CsharpDis6/OpenDis.Demo/obj/x86/Debug/OpenDis.Demo_MarkupCompile.i.cache similarity index 100% rename from CsharpDis6/OpenDis.Demo/obj/x86/Debug/OpenDis.Demo_MarkupCompile.i.cache rename to Libs/CsharpDis6/OpenDis.Demo/obj/x86/Debug/OpenDis.Demo_MarkupCompile.i.cache diff --git a/CsharpDis6/OpenDis.Demo/obj/x86/Debug/OpenDis.Demo_MarkupCompile.i.lref b/Libs/CsharpDis6/OpenDis.Demo/obj/x86/Debug/OpenDis.Demo_MarkupCompile.i.lref similarity index 100% rename from CsharpDis6/OpenDis.Demo/obj/x86/Debug/OpenDis.Demo_MarkupCompile.i.lref rename to Libs/CsharpDis6/OpenDis.Demo/obj/x86/Debug/OpenDis.Demo_MarkupCompile.i.lref diff --git a/CsharpDis6/OpenDis.sln b/Libs/CsharpDis6/OpenDis.sln similarity index 100% rename from CsharpDis6/OpenDis.sln rename to Libs/CsharpDis6/OpenDis.sln diff --git a/CsharpDis6/OpenDis.suo b/Libs/CsharpDis6/OpenDis.suo similarity index 100% rename from CsharpDis6/OpenDis.suo rename to Libs/CsharpDis6/OpenDis.suo diff --git a/CsharpDis6/OpenDis/Core/CetBase.cs b/Libs/CsharpDis6/OpenDis/Core/CetBase.cs similarity index 100% rename from CsharpDis6/OpenDis/Core/CetBase.cs rename to Libs/CsharpDis6/OpenDis/Core/CetBase.cs diff --git a/CsharpDis6/OpenDis/Core/DisTime.cs b/Libs/CsharpDis6/OpenDis/Core/DisTime.cs similarity index 100% rename from CsharpDis6/OpenDis/Core/DisTime.cs rename to Libs/CsharpDis6/OpenDis/Core/DisTime.cs diff --git a/CsharpDis6/OpenDis/Core/EndianTypes.cs b/Libs/CsharpDis6/OpenDis/Core/EndianTypes.cs similarity index 100% rename from CsharpDis6/OpenDis/Core/EndianTypes.cs rename to Libs/CsharpDis6/OpenDis/Core/EndianTypes.cs diff --git a/CsharpDis6/OpenDis/Core/EnumHelper.cs b/Libs/CsharpDis6/OpenDis/Core/EnumHelper.cs similarity index 100% rename from CsharpDis6/OpenDis/Core/EnumHelper.cs rename to Libs/CsharpDis6/OpenDis/Core/EnumHelper.cs diff --git a/CsharpDis6/OpenDis/Core/EnumNotFoundException.cs b/Libs/CsharpDis6/OpenDis/Core/EnumNotFoundException.cs similarity index 100% rename from CsharpDis6/OpenDis/Core/EnumNotFoundException.cs rename to Libs/CsharpDis6/OpenDis/Core/EnumNotFoundException.cs diff --git a/CsharpDis6/OpenDis/Core/ICetItem.cs b/Libs/CsharpDis6/OpenDis/Core/ICetItem.cs similarity index 100% rename from CsharpDis6/OpenDis/Core/ICetItem.cs rename to Libs/CsharpDis6/OpenDis/Core/ICetItem.cs diff --git a/CsharpDis6/OpenDis/Core/IPdu.cs b/Libs/CsharpDis6/OpenDis/Core/IPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Core/IPdu.cs rename to Libs/CsharpDis6/OpenDis/Core/IPdu.cs diff --git a/CsharpDis6/OpenDis/Core/InternetDomainCodeAttribute.cs b/Libs/CsharpDis6/OpenDis/Core/InternetDomainCodeAttribute.cs similarity index 100% rename from CsharpDis6/OpenDis/Core/InternetDomainCodeAttribute.cs rename to Libs/CsharpDis6/OpenDis/Core/InternetDomainCodeAttribute.cs diff --git a/CsharpDis6/OpenDis/Core/PduBase.cs b/Libs/CsharpDis6/OpenDis/Core/PduBase.cs similarity index 100% rename from CsharpDis6/OpenDis/Core/PduBase.cs rename to Libs/CsharpDis6/OpenDis/Core/PduBase.cs diff --git a/CsharpDis6/OpenDis/Core/PduExceptionEventArgs.cs b/Libs/CsharpDis6/OpenDis/Core/PduExceptionEventArgs.cs similarity index 100% rename from CsharpDis6/OpenDis/Core/PduExceptionEventArgs.cs rename to Libs/CsharpDis6/OpenDis/Core/PduExceptionEventArgs.cs diff --git a/CsharpDis6/OpenDis/Core/PduFactory.cs b/Libs/CsharpDis6/OpenDis/Core/PduFactory.cs similarity index 100% rename from CsharpDis6/OpenDis/Core/PduFactory.cs rename to Libs/CsharpDis6/OpenDis/Core/PduFactory.cs diff --git a/CsharpDis6/OpenDis/Dis1995/EntityID.cs b/Libs/CsharpDis6/OpenDis/Dis1995/EntityID.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/EntityID.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/EntityID.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/AcknowledgePdu.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/AcknowledgePdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/AcknowledgePdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/AcknowledgePdu.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/ActionRequestPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/ActionRequestPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/ActionRequestPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/ActionRequestPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/ActionResponsePdu.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/ActionResponsePdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/ActionResponsePdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/ActionResponsePdu.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/AngularVelocityVector.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/AngularVelocityVector.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/AngularVelocityVector.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/AngularVelocityVector.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/AntennaLocation.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/AntennaLocation.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/AntennaLocation.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/AntennaLocation.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/ArticulationParameter.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/ArticulationParameter.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/ArticulationParameter.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/ArticulationParameter.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/BeamAntennaPattern.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/BeamAntennaPattern.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/BeamAntennaPattern.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/BeamAntennaPattern.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/BurstDescriptor.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/BurstDescriptor.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/BurstDescriptor.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/BurstDescriptor.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/ClockTime.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/ClockTime.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/ClockTime.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/ClockTime.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/CollisionPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/CollisionPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/CollisionPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/CollisionPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/CommentPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/CommentPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/CommentPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/CommentPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/CreateEntityPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/CreateEntityPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/CreateEntityPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/CreateEntityPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/DataPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/DataPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/DataPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/DataPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/DataQueryPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/DataQueryPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/DataQueryPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/DataQueryPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/DeadReckoningParameter.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/DeadReckoningParameter.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/DeadReckoningParameter.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/DeadReckoningParameter.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/DesignatorPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/DesignatorPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/DesignatorPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/DesignatorPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/DetonationPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/DetonationPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/DetonationPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/DetonationPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/DistributedEmissionsPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/DistributedEmissionsPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/DistributedEmissionsPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/DistributedEmissionsPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/EightByteChunk.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/EightByteChunk.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/EightByteChunk.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/EightByteChunk.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/ElectronicEmmisionsPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/ElectronicEmmisionsPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/ElectronicEmmisionsPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/ElectronicEmmisionsPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/EmitterSystem.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/EmitterSystem.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/EmitterSystem.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/EmitterSystem.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/EntityID.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/EntityID.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/EntityID.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/EntityID.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/EntityInformationPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/EntityInformationPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/EntityInformationPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/EntityInformationPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/EntityStatePdu.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/EntityStatePdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/EntityStatePdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/EntityStatePdu.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/EntityType.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/EntityType.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/EntityType.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/EntityType.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/EventID.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/EventID.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/EventID.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/EventID.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/EventReportPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/EventReportPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/EventReportPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/EventReportPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/FirePdu.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/FirePdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/FirePdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/FirePdu.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/FixedDatum.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/FixedDatum.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/FixedDatum.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/FixedDatum.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/FundamentalParameterData.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/FundamentalParameterData.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/FundamentalParameterData.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/FundamentalParameterData.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/LogisticsPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/LogisticsPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/LogisticsPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/LogisticsPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/ModulationType.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/ModulationType.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/ModulationType.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/ModulationType.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/Orientation.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/Orientation.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/Orientation.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/Orientation.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/Pdu.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/Pdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/Pdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/Pdu.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/RadioCommunicationsPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/RadioCommunicationsPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/RadioCommunicationsPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/RadioCommunicationsPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/RadioEntityType.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/RadioEntityType.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/RadioEntityType.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/RadioEntityType.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/ReceiverPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/ReceiverPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/ReceiverPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/ReceiverPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/RemoveEntityPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/RemoveEntityPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/RemoveEntityPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/RemoveEntityPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/RepairCompletePdu.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/RepairCompletePdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/RepairCompletePdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/RepairCompletePdu.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/RepairResponsePdu.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/RepairResponsePdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/RepairResponsePdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/RepairResponsePdu.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/ResupplyCancelPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/ResupplyCancelPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/ResupplyCancelPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/ResupplyCancelPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/ResupplyOfferPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/ResupplyOfferPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/ResupplyOfferPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/ResupplyOfferPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/ResupplyReceivedPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/ResupplyReceivedPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/ResupplyReceivedPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/ResupplyReceivedPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/ServiceRequestPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/ServiceRequestPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/ServiceRequestPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/ServiceRequestPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/SetDataPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/SetDataPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/SetDataPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/SetDataPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/SignalPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/SignalPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/SignalPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/SignalPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/SimulationAddress.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/SimulationAddress.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/SimulationAddress.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/SimulationAddress.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/SimulationManagementPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/SimulationManagementPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/SimulationManagementPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/SimulationManagementPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/SphericalHarmonicAntennaPattern.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/SphericalHarmonicAntennaPattern.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/SphericalHarmonicAntennaPattern.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/SphericalHarmonicAntennaPattern.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/StartResumePdu.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/StartResumePdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/StartResumePdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/StartResumePdu.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/StopFreezePdu.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/StopFreezePdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/StopFreezePdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/StopFreezePdu.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/SupplyQuantity.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/SupplyQuantity.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/SupplyQuantity.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/SupplyQuantity.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/TransmitterPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/TransmitterPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/TransmitterPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/TransmitterPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/VariableDatum.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/VariableDatum.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/VariableDatum.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/VariableDatum.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/Vector3Double.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/Vector3Double.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/Vector3Double.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/Vector3Double.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/Vector3Float.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/Vector3Float.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/Vector3Float.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/Vector3Float.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Generated/Warfare.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Generated/Warfare.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Generated/Warfare.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Generated/Warfare.cs diff --git a/CsharpDis6/OpenDis/Dis1995/PduFactory.cs b/Libs/CsharpDis6/OpenDis/Dis1995/PduFactory.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/PduFactory.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/PduFactory.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Vector3Double.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Vector3Double.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Vector3Double.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Vector3Double.cs diff --git a/CsharpDis6/OpenDis/Dis1995/Vector3Float.cs b/Libs/CsharpDis6/OpenDis/Dis1995/Vector3Float.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1995/Vector3Float.cs rename to Libs/CsharpDis6/OpenDis/Dis1995/Vector3Float.cs diff --git a/CsharpDis6/OpenDis/Dis1998/EntityID.cs b/Libs/CsharpDis6/OpenDis/Dis1998/EntityID.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/EntityID.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/EntityID.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/AcknowledgePdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/AcknowledgePdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/AcknowledgePdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/AcknowledgePdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/AcknowledgeReliablePdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/AcknowledgeReliablePdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/AcknowledgeReliablePdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/AcknowledgeReliablePdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/AcousticBeamData.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/AcousticBeamData.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/AcousticBeamData.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/AcousticBeamData.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/AcousticBeamFundamentalParameter.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/AcousticBeamFundamentalParameter.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/AcousticBeamFundamentalParameter.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/AcousticBeamFundamentalParameter.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/AcousticEmitter.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/AcousticEmitter.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/AcousticEmitter.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/AcousticEmitter.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/AcousticEmitterSystem.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/AcousticEmitterSystem.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/AcousticEmitterSystem.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/AcousticEmitterSystem.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/AcousticEmitterSystemData.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/AcousticEmitterSystemData.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/AcousticEmitterSystemData.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/AcousticEmitterSystemData.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/ActionRequestPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ActionRequestPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/ActionRequestPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/ActionRequestPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/ActionRequestReliablePdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ActionRequestReliablePdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/ActionRequestReliablePdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/ActionRequestReliablePdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/ActionResponsePdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ActionResponsePdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/ActionResponsePdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/ActionResponsePdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/ActionResponseReliablePdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ActionResponseReliablePdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/ActionResponseReliablePdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/ActionResponseReliablePdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/AggregateID.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/AggregateID.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/AggregateID.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/AggregateID.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/AggregateMarking.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/AggregateMarking.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/AggregateMarking.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/AggregateMarking.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/AggregateStatePdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/AggregateStatePdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/AggregateStatePdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/AggregateStatePdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/AggregateType.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/AggregateType.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/AggregateType.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/AggregateType.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/AngularVelocityVector.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/AngularVelocityVector.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/AngularVelocityVector.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/AngularVelocityVector.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/AntennaLocation.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/AntennaLocation.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/AntennaLocation.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/AntennaLocation.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/ApaData.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ApaData.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/ApaData.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/ApaData.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/ArealObjectStatePdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ArealObjectStatePdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/ArealObjectStatePdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/ArealObjectStatePdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/ArticulationParameter.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ArticulationParameter.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/ArticulationParameter.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/ArticulationParameter.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/BeamAntennaPattern.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/BeamAntennaPattern.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/BeamAntennaPattern.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/BeamAntennaPattern.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/BeamData.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/BeamData.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/BeamData.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/BeamData.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/BurstDescriptor.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/BurstDescriptor.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/BurstDescriptor.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/BurstDescriptor.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/ClockTime.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ClockTime.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/ClockTime.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/ClockTime.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/CollisionElasticPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/CollisionElasticPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/CollisionElasticPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/CollisionElasticPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/CollisionPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/CollisionPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/CollisionPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/CollisionPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/CommentPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/CommentPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/CommentPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/CommentPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/CommentReliablePdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/CommentReliablePdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/CommentReliablePdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/CommentReliablePdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/CreateEntityPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/CreateEntityPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/CreateEntityPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/CreateEntityPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/CreateEntityReliablePdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/CreateEntityReliablePdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/CreateEntityReliablePdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/CreateEntityReliablePdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/DataPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/DataPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/DataPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/DataPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/DataQueryPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/DataQueryPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/DataQueryPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/DataQueryPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/DataQueryReliablePdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/DataQueryReliablePdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/DataQueryReliablePdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/DataQueryReliablePdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/DataReliablePdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/DataReliablePdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/DataReliablePdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/DataReliablePdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/DeadReckoningParameter.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/DeadReckoningParameter.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/DeadReckoningParameter.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/DeadReckoningParameter.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/DesignatorPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/DesignatorPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/DesignatorPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/DesignatorPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/DetonationPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/DetonationPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/DetonationPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/DetonationPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/DistributedEmissionsFamilyPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/DistributedEmissionsFamilyPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/DistributedEmissionsFamilyPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/DistributedEmissionsFamilyPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/EightByteChunk.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/EightByteChunk.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/EightByteChunk.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/EightByteChunk.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/ElectronicEmissionBeamData.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ElectronicEmissionBeamData.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/ElectronicEmissionBeamData.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/ElectronicEmissionBeamData.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/ElectronicEmissionSystemData.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ElectronicEmissionSystemData.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/ElectronicEmissionSystemData.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/ElectronicEmissionSystemData.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/ElectronicEmissionsPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ElectronicEmissionsPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/ElectronicEmissionsPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/ElectronicEmissionsPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/EmitterSystem.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/EmitterSystem.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/EmitterSystem.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/EmitterSystem.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/EntityID.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/EntityID.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/EntityID.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/EntityID.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/EntityInformationFamilyPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/EntityInformationFamilyPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/EntityInformationFamilyPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/EntityInformationFamilyPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/EntityManagementFamilyPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/EntityManagementFamilyPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/EntityManagementFamilyPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/EntityManagementFamilyPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/EntityStatePdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/EntityStatePdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/EntityStatePdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/EntityStatePdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/EntityStateUpdatePdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/EntityStateUpdatePdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/EntityStateUpdatePdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/EntityStateUpdatePdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/EntityType.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/EntityType.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/EntityType.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/EntityType.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/Environment.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/Environment.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/Environment.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/Environment.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/EnvironmentalProcessPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/EnvironmentalProcessPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/EnvironmentalProcessPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/EnvironmentalProcessPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/EventID.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/EventID.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/EventID.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/EventID.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/EventReportPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/EventReportPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/EventReportPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/EventReportPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/EventReportReliablePdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/EventReportReliablePdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/EventReportReliablePdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/EventReportReliablePdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/FastEntityStatePdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/FastEntityStatePdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/FastEntityStatePdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/FastEntityStatePdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/FirePdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/FirePdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/FirePdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/FirePdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/FixedDatum.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/FixedDatum.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/FixedDatum.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/FixedDatum.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/FourByteChunk.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/FourByteChunk.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/FourByteChunk.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/FourByteChunk.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/FundamentalParameterData.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/FundamentalParameterData.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/FundamentalParameterData.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/FundamentalParameterData.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/FundamentalParameterDataIff.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/FundamentalParameterDataIff.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/FundamentalParameterDataIff.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/FundamentalParameterDataIff.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/GridAxisRecord.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/GridAxisRecord.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/GridAxisRecord.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/GridAxisRecord.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/GridAxisRecordRepresentation0.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/GridAxisRecordRepresentation0.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/GridAxisRecordRepresentation0.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/GridAxisRecordRepresentation0.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/GridAxisRecordRepresentation1.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/GridAxisRecordRepresentation1.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/GridAxisRecordRepresentation1.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/GridAxisRecordRepresentation1.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/GridAxisRecordRepresentation2.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/GridAxisRecordRepresentation2.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/GridAxisRecordRepresentation2.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/GridAxisRecordRepresentation2.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/GriddedDataPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/GriddedDataPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/GriddedDataPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/GriddedDataPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/IffAtcNavAidsLayer1Pdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/IffAtcNavAidsLayer1Pdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/IffAtcNavAidsLayer1Pdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/IffAtcNavAidsLayer1Pdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/IffAtcNavAidsLayer2Pdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/IffAtcNavAidsLayer2Pdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/IffAtcNavAidsLayer2Pdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/IffAtcNavAidsLayer2Pdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/IffFundamentalData.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/IffFundamentalData.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/IffFundamentalData.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/IffFundamentalData.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/IntercomCommunicationsParameters.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/IntercomCommunicationsParameters.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/IntercomCommunicationsParameters.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/IntercomCommunicationsParameters.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/IntercomControlPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/IntercomControlPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/IntercomControlPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/IntercomControlPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/IntercomSignalPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/IntercomSignalPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/IntercomSignalPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/IntercomSignalPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/IsGroupOfPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/IsGroupOfPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/IsGroupOfPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/IsGroupOfPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/IsPartOfPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/IsPartOfPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/IsPartOfPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/IsPartOfPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/LayerHeader.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/LayerHeader.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/LayerHeader.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/LayerHeader.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/LinearObjectStatePdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/LinearObjectStatePdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/LinearObjectStatePdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/LinearObjectStatePdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/LinearSegmentParameter.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/LinearSegmentParameter.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/LinearSegmentParameter.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/LinearSegmentParameter.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/LogisticsFamilyPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/LogisticsFamilyPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/LogisticsFamilyPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/LogisticsFamilyPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/Marking.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/Marking.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/Marking.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/Marking.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/MinefieldDataPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/MinefieldDataPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/MinefieldDataPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/MinefieldDataPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/MinefieldFamilyPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/MinefieldFamilyPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/MinefieldFamilyPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/MinefieldFamilyPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/MinefieldQueryPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/MinefieldQueryPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/MinefieldQueryPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/MinefieldQueryPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/MinefieldResponseNackPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/MinefieldResponseNackPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/MinefieldResponseNackPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/MinefieldResponseNackPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/MinefieldStatePdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/MinefieldStatePdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/MinefieldStatePdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/MinefieldStatePdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/ModulationType.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ModulationType.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/ModulationType.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/ModulationType.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/NamedLocation.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/NamedLocation.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/NamedLocation.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/NamedLocation.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/ObjectType.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ObjectType.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/ObjectType.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/ObjectType.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/OneByteChunk.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/OneByteChunk.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/OneByteChunk.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/OneByteChunk.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/Orientation.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/Orientation.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/Orientation.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/Orientation.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/Pdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/Pdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/Pdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/Pdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/PduContainer.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/PduContainer.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/PduContainer.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/PduContainer.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/Point.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/Point.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/Point.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/Point.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/PointObjectStatePdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/PointObjectStatePdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/PointObjectStatePdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/PointObjectStatePdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/PropulsionSystemData.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/PropulsionSystemData.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/PropulsionSystemData.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/PropulsionSystemData.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/RadioCommunicationsFamilyPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/RadioCommunicationsFamilyPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/RadioCommunicationsFamilyPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/RadioCommunicationsFamilyPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/RadioEntityType.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/RadioEntityType.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/RadioEntityType.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/RadioEntityType.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/ReceiverPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ReceiverPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/ReceiverPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/ReceiverPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/RecordQueryReliablePdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/RecordQueryReliablePdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/RecordQueryReliablePdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/RecordQueryReliablePdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/RecordSet.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/RecordSet.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/RecordSet.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/RecordSet.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/Relationship.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/Relationship.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/Relationship.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/Relationship.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/RemoveEntityPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/RemoveEntityPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/RemoveEntityPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/RemoveEntityPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/RemoveEntityReliablePdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/RemoveEntityReliablePdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/RemoveEntityReliablePdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/RemoveEntityReliablePdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/RepairCompletePdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/RepairCompletePdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/RepairCompletePdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/RepairCompletePdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/RepairResponsePdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/RepairResponsePdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/RepairResponsePdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/RepairResponsePdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/ResupplyCancelPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ResupplyCancelPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/ResupplyCancelPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/ResupplyCancelPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/ResupplyOfferPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ResupplyOfferPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/ResupplyOfferPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/ResupplyOfferPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/ResupplyReceivedPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ResupplyReceivedPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/ResupplyReceivedPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/ResupplyReceivedPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/SeesPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/SeesPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/SeesPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/SeesPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/ServiceRequestPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ServiceRequestPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/ServiceRequestPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/ServiceRequestPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/SetDataPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/SetDataPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/SetDataPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/SetDataPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/SetDataReliablePdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/SetDataReliablePdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/SetDataReliablePdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/SetDataReliablePdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/SetRecordReliablePdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/SetRecordReliablePdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/SetRecordReliablePdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/SetRecordReliablePdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/ShaftRPMs.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ShaftRPMs.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/ShaftRPMs.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/ShaftRPMs.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/SignalPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/SignalPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/SignalPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/SignalPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/SimulationAddress.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/SimulationAddress.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/SimulationAddress.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/SimulationAddress.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/SimulationManagementFamilyPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/SimulationManagementFamilyPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/SimulationManagementFamilyPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/SimulationManagementFamilyPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/SimulationManagementWithReliabilityFamilyPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/SimulationManagementWithReliabilityFamilyPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/SimulationManagementWithReliabilityFamilyPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/SimulationManagementWithReliabilityFamilyPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/SixByteChunk.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/SixByteChunk.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/SixByteChunk.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/SixByteChunk.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/SphericalHarmonicAntennaPattern.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/SphericalHarmonicAntennaPattern.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/SphericalHarmonicAntennaPattern.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/SphericalHarmonicAntennaPattern.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/StartResumePdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/StartResumePdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/StartResumePdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/StartResumePdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/StartResumeReliablePdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/StartResumeReliablePdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/StartResumeReliablePdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/StartResumeReliablePdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/StopFreezePdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/StopFreezePdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/StopFreezePdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/StopFreezePdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/StopFreezeReliablePdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/StopFreezeReliablePdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/StopFreezeReliablePdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/StopFreezeReliablePdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/SupplyQuantity.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/SupplyQuantity.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/SupplyQuantity.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/SupplyQuantity.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/SyntheticEnvironmentFamilyPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/SyntheticEnvironmentFamilyPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/SyntheticEnvironmentFamilyPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/SyntheticEnvironmentFamilyPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/SystemID.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/SystemID.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/SystemID.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/SystemID.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/TrackJamTarget.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/TrackJamTarget.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/TrackJamTarget.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/TrackJamTarget.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/TransferControlRequestPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/TransferControlRequestPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/TransferControlRequestPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/TransferControlRequestPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/TransmitterPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/TransmitterPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/TransmitterPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/TransmitterPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/TwoByteChunk.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/TwoByteChunk.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/TwoByteChunk.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/TwoByteChunk.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/UaPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/UaPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/UaPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/UaPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/VariableDatum.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/VariableDatum.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/VariableDatum.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/VariableDatum.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/Vector3Double.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/Vector3Double.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/Vector3Double.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/Vector3Double.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/Vector3Float.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/Vector3Float.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/Vector3Float.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/Vector3Float.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/VectoringNozzleSystemData.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/VectoringNozzleSystemData.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/VectoringNozzleSystemData.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/VectoringNozzleSystemData.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Generated/WarfareFamilyPdu.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Generated/WarfareFamilyPdu.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Generated/WarfareFamilyPdu.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Generated/WarfareFamilyPdu.cs diff --git a/CsharpDis6/OpenDis/Dis1998/PduFactory.cs b/Libs/CsharpDis6/OpenDis/Dis1998/PduFactory.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/PduFactory.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/PduFactory.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Vector3Double.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Vector3Double.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Vector3Double.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Vector3Double.cs diff --git a/CsharpDis6/OpenDis/Dis1998/Vector3Float.cs b/Libs/CsharpDis6/OpenDis/Dis1998/Vector3Float.cs similarity index 100% rename from CsharpDis6/OpenDis/Dis1998/Vector3Float.cs rename to Libs/CsharpDis6/OpenDis/Dis1998/Vector3Float.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Cet2006/AggregateTypes.xml b/Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/AggregateTypes.xml similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Cet2006/AggregateTypes.xml rename to Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/AggregateTypes.xml diff --git a/CsharpDis6/OpenDis/Enumerations/Cet2006/Category.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/Category.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Cet2006/Category.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/Category.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Cet2006/Cet.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/Cet.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Cet2006/Cet.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/Cet.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Cet2006/CetFactory.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/CetFactory.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Cet2006/CetFactory.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/CetFactory.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Cet2006/CetItem.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/CetItem.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Cet2006/CetItem.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/CetItem.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Cet2006/Entity.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/Entity.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Cet2006/Entity.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/Entity.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Cet2006/EntityTypes.xml b/Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/EntityTypes.xml similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Cet2006/EntityTypes.xml rename to Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/EntityTypes.xml diff --git a/CsharpDis6/OpenDis/Enumerations/Cet2006/Extra.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/Extra.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Cet2006/Extra.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/Extra.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Cet2006/GenericEntry.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/GenericEntry.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Cet2006/GenericEntry.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/GenericEntry.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Cet2006/GenericTable.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/GenericTable.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Cet2006/GenericTable.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/GenericTable.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Cet2006/Specific.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/Specific.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Cet2006/Specific.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/Specific.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Cet2006/Subcategory.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/Subcategory.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Cet2006/Subcategory.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/Subcategory.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Cet2006/cet.xsd b/Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/cet.xsd similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Cet2006/cet.xsd rename to Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/cet.xsd diff --git a/CsharpDis6/OpenDis/Enumerations/Cet2010/AggregateTypes.xml b/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/AggregateTypes.xml similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Cet2010/AggregateTypes.xml rename to Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/AggregateTypes.xml diff --git a/CsharpDis6/OpenDis/Enumerations/Cet2010/Category.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/Category.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Cet2010/Category.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/Category.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Cet2010/CategoryRange.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/CategoryRange.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Cet2010/CategoryRange.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/CategoryRange.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Cet2010/Cet.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/Cet.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Cet2010/Cet.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/Cet.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Cet2010/CetFactory.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/CetFactory.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Cet2010/CetFactory.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/CetFactory.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Cet2010/CetItem.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/CetItem.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Cet2010/CetItem.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/CetItem.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Cet2010/Cr.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/Cr.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Cet2010/Cr.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/Cr.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Cet2010/CrRange.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/CrRange.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Cet2010/CrRange.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/CrRange.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Cet2010/Entity.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/Entity.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Cet2010/Entity.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/Entity.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Cet2010/EntityTypes.xml b/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/EntityTypes.xml similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Cet2010/EntityTypes.xml rename to Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/EntityTypes.xml diff --git a/CsharpDis6/OpenDis/Enumerations/Cet2010/Extra.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/Extra.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Cet2010/Extra.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/Extra.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Cet2010/ExtraRange.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/ExtraRange.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Cet2010/ExtraRange.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/ExtraRange.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Cet2010/GenericEntry.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/GenericEntry.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Cet2010/GenericEntry.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/GenericEntry.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Cet2010/GenericEntryDescription.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/GenericEntryDescription.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Cet2010/GenericEntryDescription.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/GenericEntryDescription.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Cet2010/GenericEntryRange.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/GenericEntryRange.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Cet2010/GenericEntryRange.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/GenericEntryRange.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Cet2010/GenericEntrySingle.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/GenericEntrySingle.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Cet2010/GenericEntrySingle.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/GenericEntrySingle.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Cet2010/GenericEntryStatus.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/GenericEntryStatus.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Cet2010/GenericEntryStatus.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/GenericEntryStatus.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Cet2010/GenericEntryString.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/GenericEntryString.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Cet2010/GenericEntryString.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/GenericEntryString.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Cet2010/GenericTable.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/GenericTable.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Cet2010/GenericTable.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/GenericTable.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Cet2010/ICategoryOrCategoryRange.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/ICategoryOrCategoryRange.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Cet2010/ICategoryOrCategoryRange.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/ICategoryOrCategoryRange.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Cet2010/IExtraOrExtraRange.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/IExtraOrExtraRange.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Cet2010/IExtraOrExtraRange.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/IExtraOrExtraRange.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Cet2010/IGenericEntry.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/IGenericEntry.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Cet2010/IGenericEntry.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/IGenericEntry.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Cet2010/IGenericEntryDescription.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/IGenericEntryDescription.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Cet2010/IGenericEntryDescription.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/IGenericEntryDescription.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Cet2010/ISpecificOrSpecificRange.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/ISpecificOrSpecificRange.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Cet2010/ISpecificOrSpecificRange.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/ISpecificOrSpecificRange.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Cet2010/ISubcategoryOrSubcategoryRange.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/ISubcategoryOrSubcategoryRange.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Cet2010/ISubcategoryOrSubcategoryRange.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/ISubcategoryOrSubcategoryRange.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Cet2010/Specific.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/Specific.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Cet2010/Specific.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/Specific.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Cet2010/SpecificRange.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/SpecificRange.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Cet2010/SpecificRange.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/SpecificRange.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Cet2010/Subcategory.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/Subcategory.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Cet2010/Subcategory.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/Subcategory.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Cet2010/SubcategoryRange.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/SubcategoryRange.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Cet2010/SubcategoryRange.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/SubcategoryRange.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Cet2010/cet.xsd b/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/cet.xsd similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Cet2010/cet.xsd rename to Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/cet.xsd diff --git a/CsharpDis6/OpenDis/Enumerations/Country.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Country.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Country.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Country.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/InformationLayers.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/InformationLayers.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/InformationLayers.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/InformationLayers.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/LayerSpecificInformation.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/LayerSpecificInformation.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/LayerSpecificInformation.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/LayerSpecificInformation.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/SystemMode.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/SystemMode.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/SystemMode.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/SystemMode.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/SystemName.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/SystemName.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/SystemName.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/SystemName.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/SystemStatus.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/SystemStatus.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/SystemStatus.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/SystemStatus.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/SystemType.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/SystemType.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/SystemType.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/SystemType.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1AlternateParameter4.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1AlternateParameter4.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1AlternateParameter4.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1AlternateParameter4.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1ChangeOptions.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1ChangeOptions.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1ChangeOptions.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1ChangeOptions.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Modifier.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Modifier.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Modifier.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Modifier.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1OperationalParameter1.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1OperationalParameter1.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1OperationalParameter1.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1OperationalParameter1.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1OperationalParameter2.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1OperationalParameter2.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1OperationalParameter2.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1OperationalParameter2.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter1Mode1CodeStatus.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter1Mode1CodeStatus.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter1Mode1CodeStatus.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter1Mode1CodeStatus.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter2Mode2CodeStatus.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter2Mode2CodeStatus.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter2Mode2CodeStatus.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter2Mode2CodeStatus.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter3Mode3CodeStatus.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter3Mode3CodeStatus.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter3Mode3CodeStatus.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter3Mode3CodeStatus.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter4Mode4CodeStatus.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter4Mode4CodeStatus.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter4Mode4CodeStatus.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter4Mode4CodeStatus.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter5ModeCCodeStatus.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter5ModeCCodeStatus.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter5ModeCCodeStatus.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter5ModeCCodeStatus.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter6ModeSCodeStatus.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter6ModeSCodeStatus.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter6ModeSCodeStatus.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter6ModeSCodeStatus.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2AlternateParameter4.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2AlternateParameter4.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2AlternateParameter4.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2AlternateParameter4.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2ChangeOptions.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2ChangeOptions.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2ChangeOptions.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2ChangeOptions.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2OperationalParameter1.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2OperationalParameter1.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2OperationalParameter1.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2OperationalParameter1.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2OperationalParameter2.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2OperationalParameter2.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2OperationalParameter2.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2OperationalParameter2.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter1Mode1InterrogatorStatus.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter1Mode1InterrogatorStatus.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter1Mode1InterrogatorStatus.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter1Mode1InterrogatorStatus.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter2Mode2InterrogatorStatus.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter2Mode2InterrogatorStatus.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter2Mode2InterrogatorStatus.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter2Mode2InterrogatorStatus.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter3Mode3InterrogatorStatus.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter3Mode3InterrogatorStatus.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter3Mode3InterrogatorStatus.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter3Mode3InterrogatorStatus.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter4Mode4InterrogatorStatus.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter4Mode4InterrogatorStatus.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter4Mode4InterrogatorStatus.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter4Mode4InterrogatorStatus.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter5ModeCInterrogatorStatus.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter5ModeCInterrogatorStatus.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter5ModeCInterrogatorStatus.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter5ModeCInterrogatorStatus.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter6ModeSCodeStatus.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter6ModeSCodeStatus.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter6ModeSCodeStatus.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter6ModeSCodeStatus.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3ChangeOptions.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3ChangeOptions.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3ChangeOptions.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3ChangeOptions.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3OperationalParameter1.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3OperationalParameter1.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3OperationalParameter1.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3OperationalParameter1.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3OperationalParameter2.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3OperationalParameter2.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3OperationalParameter2.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3OperationalParameter2.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter1Mode1CodeStatus.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter1Mode1CodeStatus.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter1Mode1CodeStatus.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter1Mode1CodeStatus.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter2Mode2CodeStatus.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter2Mode2CodeStatus.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter2Mode2CodeStatus.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter2Mode2CodeStatus.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter3Mode3CodeStatus.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter3Mode3CodeStatus.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter3Mode3CodeStatus.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter3Mode3CodeStatus.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter4Mode4CodeStatus.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter4Mode4CodeStatus.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter4Mode4CodeStatus.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter4Mode4CodeStatus.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter5ModeCCodeStatus.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter5ModeCCodeStatus.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter5ModeCCodeStatus.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter5ModeCCodeStatus.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter6Mode1CodeStatus.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter6Mode1CodeStatus.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter6Mode1CodeStatus.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter6Mode1CodeStatus.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4ChangeOptions.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4ChangeOptions.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4ChangeOptions.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4ChangeOptions.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4OperationalParameter1.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4OperationalParameter1.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4OperationalParameter1.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4OperationalParameter1.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4OperationalParameter2.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4OperationalParameter2.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4OperationalParameter2.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4OperationalParameter2.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter1.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter1.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter1.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter1.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter2.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter2.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter2.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter2.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter3.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter3.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter3.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter3.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter4.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter4.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter4.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter4.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter5.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter5.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter5.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter5.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter6.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter6.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter6.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter6.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type5ChangeOptions.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type5ChangeOptions.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type5ChangeOptions.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type5ChangeOptions.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type5OperationalParameter1.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type5OperationalParameter1.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type5OperationalParameter1.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type5OperationalParameter1.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type5OperationalParameter2.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type5OperationalParameter2.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type5OperationalParameter2.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type5OperationalParameter2.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type5Parameter1RRBResponse.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type5Parameter1RRBResponse.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type5Parameter1RRBResponse.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type5Parameter1RRBResponse.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/ActiveEmissionParameterIndex.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/ActiveEmissionParameterIndex.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/ActiveEmissionParameterIndex.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/ActiveEmissionParameterIndex.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/AdditionalPassiveActivityParameterIndex.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/AdditionalPassiveActivityParameterIndex.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/AdditionalPassiveActivityParameterIndex.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/AdditionalPassiveActivityParameterIndex.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/EmitterFunction.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/EmitterFunction.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/EmitterFunction.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/EmitterFunction.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/PassiveParameterIndex.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/PassiveParameterIndex.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/PassiveParameterIndex.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/PassiveParameterIndex.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/PropulsionPlantConfiguration.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/PropulsionPlantConfiguration.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/PropulsionPlantConfiguration.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/PropulsionPlantConfiguration.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/ScanPattern.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/ScanPattern.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/ScanPattern.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/ScanPattern.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/StateChangeUpdateIndicator.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/StateChangeUpdateIndicator.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/StateChangeUpdateIndicator.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/StateChangeUpdateIndicator.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/SystemName.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/SystemName.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/SystemName.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/SystemName.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission/AircraftEnginePower.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/AircraftEnginePower.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission/AircraftEnginePower.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/AircraftEnginePower.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission/DesignatorCode.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/DesignatorCode.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission/DesignatorCode.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/DesignatorCode.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission/DesignatorCodeName.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/DesignatorCodeName.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission/DesignatorCodeName.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/DesignatorCodeName.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission/ElectromagneticEmitters.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/ElectromagneticEmitters.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission/ElectromagneticEmitters.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/ElectromagneticEmitters.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission/EmissionBeamFunction.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/EmissionBeamFunction.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission/EmissionBeamFunction.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/EmissionBeamFunction.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission/EmissionFunction.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/EmissionFunction.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission/EmissionFunction.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/EmissionFunction.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission/HelicopterEnginePower.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/HelicopterEnginePower.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission/HelicopterEnginePower.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/HelicopterEnginePower.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission/HighDensityTrackOrJam.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/HighDensityTrackOrJam.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission/HighDensityTrackOrJam.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/HighDensityTrackOrJam.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission/StateUpdateIndicator.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/StateUpdateIndicator.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission/StateUpdateIndicator.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/StateUpdateIndicator.cs diff --git a/CsharpDis6/OpenDis/Enumerations/DistributedEmission/TankEnginePower.cs b/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/TankEnginePower.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/DistributedEmission/TankEnginePower.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/TankEnginePower.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/Appearance.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/Appearance.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/Appearance.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/Appearance.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/DataFilter.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/DataFilter.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/DataFilter.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/DataFilter.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/FlirSensor.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/FlirSensor.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/FlirSensor.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/FlirSensor.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/Fusing.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/Fusing.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/Fusing.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/Fusing.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/LaserSensor.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/LaserSensor.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/LaserSensor.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/LaserSensor.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/MagneticSensor.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/MagneticSensor.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/MagneticSensor.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/MagneticSensor.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/MultispectralSensor.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/MultispectralSensor.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/MultispectralSensor.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/MultispectralSensor.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/OpticalSensor.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/OpticalSensor.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/OpticalSensor.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/OpticalSensor.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/PaintScheme.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/PaintScheme.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/PaintScheme.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/PaintScheme.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/PhysicalSensor.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/PhysicalSensor.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/PhysicalSensor.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/PhysicalSensor.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/ProtocolMode.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/ProtocolMode.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/ProtocolMode.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/ProtocolMode.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/RadarSensor.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/RadarSensor.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/RadarSensor.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/RadarSensor.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/SensorTypes.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/SensorTypes.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/SensorTypes.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/SensorTypes.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/SonarSensor.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/SonarSensor.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/SonarSensor.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/SonarSensor.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Entity.Information/EntityCollisionType.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information/EntityCollisionType.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Entity.Information/EntityCollisionType.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information/EntityCollisionType.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Entity.Management/AggregateFormation.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/AggregateFormation.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Entity.Management/AggregateFormation.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/AggregateFormation.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Entity.Management/AggregateKind.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/AggregateKind.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Entity.Management/AggregateKind.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/AggregateKind.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Entity.Management/AggregateSpecific.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/AggregateSpecific.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Entity.Management/AggregateSpecific.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/AggregateSpecific.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Entity.Management/AggregateState.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/AggregateState.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Entity.Management/AggregateState.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/AggregateState.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Entity.Management/AggregateSubcategory.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/AggregateSubcategory.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Entity.Management/AggregateSubcategory.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/AggregateSubcategory.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Entity.Management/GroupOfGroupedEntityCategory.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/GroupOfGroupedEntityCategory.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Entity.Management/GroupOfGroupedEntityCategory.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/GroupOfGroupedEntityCategory.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Entity.Management/GroupOfRestStatus.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/GroupOfRestStatus.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Entity.Management/GroupOfRestStatus.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/GroupOfRestStatus.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Entity.Management/PartOfNature.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/PartOfNature.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Entity.Management/PartOfNature.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/PartOfNature.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Entity.Management/PartOfPosition.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/PartOfPosition.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Entity.Management/PartOfPosition.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/PartOfPosition.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Entity.Management/PartOfStationName.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/PartOfStationName.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Entity.Management/PartOfStationName.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/PartOfStationName.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Entity.Management/TransferType.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/TransferType.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Entity.Management/TransferType.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/TransferType.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/AirPlatformAppearance.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/AirPlatformAppearance.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/AirPlatformAppearance.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/AirPlatformAppearance.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/CulturalAppearance.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/CulturalAppearance.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/CulturalAppearance.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/CulturalAppearance.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/EnvironmentalAppearance.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/EnvironmentalAppearance.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/EnvironmentalAppearance.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/EnvironmentalAppearance.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/LandPlatformAppearance.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/LandPlatformAppearance.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/LandPlatformAppearance.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/LandPlatformAppearance.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/LifeFormAppearance.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/LifeFormAppearance.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/LifeFormAppearance.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/LifeFormAppearance.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/MunitionAppearance.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/MunitionAppearance.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/MunitionAppearance.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/MunitionAppearance.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/SensorEmitterAppearance.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/SensorEmitterAppearance.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/SensorEmitterAppearance.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/SensorEmitterAppearance.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/SpacePlatformAppearance.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/SpacePlatformAppearance.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/SpacePlatformAppearance.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/SpacePlatformAppearance.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/SubsurfacePlatformAppearance.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/SubsurfacePlatformAppearance.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/SubsurfacePlatformAppearance.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/SubsurfacePlatformAppearance.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/SurfacePlatformAppearance.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/SurfacePlatformAppearance.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/SurfacePlatformAppearance.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/SurfacePlatformAppearance.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingCompany.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingCompany.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingCompany.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingCompany.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingDivisionCorpsDesignation.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingDivisionCorpsDesignation.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingDivisionCorpsDesignation.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingDivisionCorpsDesignation.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingHighLevelUnitFor1stCavalry.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingHighLevelUnitFor1stCavalry.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingHighLevelUnitFor1stCavalry.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingHighLevelUnitFor1stCavalry.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingHighLevelUnitFor1stInfantry.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingHighLevelUnitFor1stInfantry.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingHighLevelUnitFor1stInfantry.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingHighLevelUnitFor1stInfantry.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingMarkingCodes.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingMarkingCodes.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingMarkingCodes.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingMarkingCodes.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingPlatoon.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingPlatoon.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingPlatoon.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingPlatoon.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingPlatoonCodes.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingPlatoonCodes.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingPlatoonCodes.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingPlatoonCodes.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingVehicle.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingVehicle.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingVehicle.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingVehicle.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/DigitChevronMarkingCodes.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/DigitChevronMarkingCodes.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState.Marking/DigitChevronMarkingCodes.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/DigitChevronMarkingCodes.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/EntityMarkingText.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/EntityMarkingText.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState.Marking/EntityMarkingText.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/EntityMarkingText.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState.Type/AirPlatform.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/AirPlatform.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState.Type/AirPlatform.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/AirPlatform.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState.Type/CISWeaponsForLifeFormsSubcategory.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/CISWeaponsForLifeFormsSubcategory.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState.Type/CISWeaponsForLifeFormsSubcategory.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/CISWeaponsForLifeFormsSubcategory.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState.Type/EntityKind.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/EntityKind.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState.Type/EntityKind.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/EntityKind.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState.Type/EnvironmentalSubcategory.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/EnvironmentalSubcategory.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState.Type/EnvironmentalSubcategory.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/EnvironmentalSubcategory.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState.Type/ExpendableAirCategory.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/ExpendableAirCategory.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState.Type/ExpendableAirCategory.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/ExpendableAirCategory.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState.Type/ExpendableSubsurfaceCategory.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/ExpendableSubsurfaceCategory.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState.Type/ExpendableSubsurfaceCategory.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/ExpendableSubsurfaceCategory.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState.Type/ExpendableSurfaceCategory.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/ExpendableSurfaceCategory.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState.Type/ExpendableSurfaceCategory.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/ExpendableSurfaceCategory.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState.Type/FrenchWeaponsForLifeForms.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/FrenchWeaponsForLifeForms.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState.Type/FrenchWeaponsForLifeForms.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/FrenchWeaponsForLifeForms.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState.Type/GermanWeaponsForLifeForms.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/GermanWeaponsForLifeForms.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState.Type/GermanWeaponsForLifeForms.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/GermanWeaponsForLifeForms.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState.Type/LandPlatform.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/LandPlatform.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState.Type/LandPlatform.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/LandPlatform.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState.Type/Munition.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/Munition.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState.Type/Munition.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/Munition.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState.Type/MunitionCategory.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/MunitionCategory.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState.Type/MunitionCategory.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/MunitionCategory.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState.Type/Platform.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/Platform.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState.Type/Platform.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/Platform.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState.Type/RadioCategory.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/RadioCategory.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState.Type/RadioCategory.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/RadioCategory.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState.Type/RadioNomenclature.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/RadioNomenclature.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState.Type/RadioNomenclature.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/RadioNomenclature.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState.Type/RadioNomenclatureVersion.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/RadioNomenclatureVersion.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState.Type/RadioNomenclatureVersion.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/RadioNomenclatureVersion.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState.Type/SensorEmitterCategory.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/SensorEmitterCategory.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState.Type/SensorEmitterCategory.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/SensorEmitterCategory.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState.Type/SpacePlatform.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/SpacePlatform.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState.Type/SpacePlatform.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/SpacePlatform.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState.Type/SubsufracePlatform.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/SubsufracePlatform.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState.Type/SubsufracePlatform.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/SubsufracePlatform.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState.Type/SurfacePlatform.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/SurfacePlatform.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState.Type/SurfacePlatform.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/SurfacePlatform.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState.Type/UKWeaponsForLifeForms.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/UKWeaponsForLifeForms.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState.Type/UKWeaponsForLifeForms.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/UKWeaponsForLifeForms.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState.Type/USWeaponsForLifeForms.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/USWeaponsForLifeForms.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState.Type/USWeaponsForLifeForms.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/USWeaponsForLifeForms.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState/ArticulatedPartIndex.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState/ArticulatedPartIndex.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState/ArticulatedPartIndex.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState/ArticulatedPartIndex.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState/ArticulatedPartOffset.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState/ArticulatedPartOffset.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState/ArticulatedPartOffset.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState/ArticulatedPartOffset.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState/AttachedParts.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState/AttachedParts.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState/AttachedParts.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState/AttachedParts.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState/DeadReckoningAlgorithm.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState/DeadReckoningAlgorithm.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState/DeadReckoningAlgorithm.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState/DeadReckoningAlgorithm.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState/EntityCapabilities.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState/EntityCapabilities.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState/EntityCapabilities.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState/EntityCapabilities.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState/EntityForceId.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState/EntityForceId.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState/EntityForceId.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState/EntityForceId.cs diff --git a/CsharpDis6/OpenDis/Enumerations/EntityState/ParameterTypeDesignator.cs b/Libs/CsharpDis6/OpenDis/Enumerations/EntityState/ParameterTypeDesignator.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/EntityState/ParameterTypeDesignator.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/EntityState/ParameterTypeDesignator.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Environment.Gridded/ConstantGrid.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Environment.Gridded/ConstantGrid.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Environment.Gridded/ConstantGrid.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Environment.Gridded/ConstantGrid.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Environment.Gridded/CoordinateSystem.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Environment.Gridded/CoordinateSystem.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Environment.Gridded/CoordinateSystem.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Environment.Gridded/CoordinateSystem.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Environment.Gridded/DataRepresentationType.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Environment.Gridded/DataRepresentationType.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Environment.Gridded/DataRepresentationType.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Environment.Gridded/DataRepresentationType.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/AirBurstAndGroundBurst.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/AirBurstAndGroundBurst.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/AirBurstAndGroundBurst.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/AirBurstAndGroundBurst.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/ArealObjectStatePDUModificationField.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/ArealObjectStatePDUModificationField.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/ArealObjectStatePDUModificationField.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/ArealObjectStatePDUModificationField.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/Crater.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/Crater.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/Crater.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/Crater.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/ExhaustSmoke.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/ExhaustSmoke.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/ExhaustSmoke.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/ExhaustSmoke.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/GeneralAppearance.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/GeneralAppearance.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/GeneralAppearance.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/GeneralAppearance.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/LinearObjectStatePDUModificationField.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/LinearObjectStatePDUModificationField.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/LinearObjectStatePDUModificationField.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/LinearObjectStatePDUModificationField.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/LogCribAbatisVehicleDefiladeAndInfantryFightingPosition.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/LogCribAbatisVehicleDefiladeAndInfantryFightingPosition.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/LogCribAbatisVehicleDefiladeAndInfantryFightingPosition.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/LogCribAbatisVehicleDefiladeAndInfantryFightingPosition.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/Minefield.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/Minefield.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/Minefield.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/Minefield.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/MinefieldLaneMarker.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/MinefieldLaneMarker.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/MinefieldLaneMarker.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/MinefieldLaneMarker.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/ObjectKind.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/ObjectKind.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/ObjectKind.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/ObjectKind.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/PointObjectStatePDUModificationField.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/PointObjectStatePDUModificationField.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/PointObjectStatePDUModificationField.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/PointObjectStatePDUModificationField.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/RibbonBridge.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/RibbonBridge.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/RibbonBridge.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/RibbonBridge.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/TankDitchAndConcertinaWire.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/TankDitchAndConcertinaWire.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/TankDitchAndConcertinaWire.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/TankDitchAndConcertinaWire.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Environment.Process/EnvironmentStatus.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Environment.Process/EnvironmentStatus.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Environment.Process/EnvironmentStatus.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Environment.Process/EnvironmentStatus.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Environment.Process/EnvironmentalProcessTypesForGeometryRecord.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Environment.Process/EnvironmentalProcessTypesForGeometryRecord.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Environment.Process/EnvironmentalProcessTypesForGeometryRecord.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Environment.Process/EnvironmentalProcessTypesForGeometryRecord.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Environment.Process/EnvironmentalProcessTypesForStateRecord.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Environment.Process/EnvironmentalProcessTypesForStateRecord.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Environment.Process/EnvironmentalProcessTypesForStateRecord.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Environment.Process/EnvironmentalProcessTypesForStateRecord.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Logistics/AuxilaryCraftRepairCode.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Logistics/AuxilaryCraftRepairCode.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Logistics/AuxilaryCraftRepairCode.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Logistics/AuxilaryCraftRepairCode.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Logistics/DriveTrainRepairCode.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Logistics/DriveTrainRepairCode.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Logistics/DriveTrainRepairCode.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Logistics/DriveTrainRepairCode.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Logistics/ElectronicsRepairCode.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Logistics/ElectronicsRepairCode.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Logistics/ElectronicsRepairCode.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Logistics/ElectronicsRepairCode.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Logistics/FuelSystemRepairCode.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Logistics/FuelSystemRepairCode.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Logistics/FuelSystemRepairCode.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Logistics/FuelSystemRepairCode.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Logistics/GeneralRepairCode.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Logistics/GeneralRepairCode.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Logistics/GeneralRepairCode.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Logistics/GeneralRepairCode.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Logistics/HullAirframeBodyRepairCode.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Logistics/HullAirframeBodyRepairCode.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Logistics/HullAirframeBodyRepairCode.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Logistics/HullAirframeBodyRepairCode.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Logistics/HydraulicSystemsAndActuators.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Logistics/HydraulicSystemsAndActuators.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Logistics/HydraulicSystemsAndActuators.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Logistics/HydraulicSystemsAndActuators.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Logistics/InterfacesWithEnvironmentRepairCode.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Logistics/InterfacesWithEnvironmentRepairCode.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Logistics/InterfacesWithEnvironmentRepairCode.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Logistics/InterfacesWithEnvironmentRepairCode.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Logistics/LifeSupportRepairCode.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Logistics/LifeSupportRepairCode.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Logistics/LifeSupportRepairCode.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Logistics/LifeSupportRepairCode.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Logistics/ResponseResultCode.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Logistics/ResponseResultCode.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Logistics/ResponseResultCode.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Logistics/ResponseResultCode.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Logistics/ServiceRequestType.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Logistics/ServiceRequestType.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Logistics/ServiceRequestType.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Logistics/ServiceRequestType.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Logistics/WeaponRepairCode.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Logistics/WeaponRepairCode.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Logistics/WeaponRepairCode.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Logistics/WeaponRepairCode.cs diff --git a/CsharpDis6/OpenDis/Enumerations/PduType.cs b/Libs/CsharpDis6/OpenDis/Enumerations/PduType.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/PduType.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/PduType.cs diff --git a/CsharpDis6/OpenDis/Enumerations/ProtocolFamily.cs b/Libs/CsharpDis6/OpenDis/Enumerations/ProtocolFamily.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/ProtocolFamily.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/ProtocolFamily.cs diff --git a/CsharpDis6/OpenDis/Enumerations/ProtocolVersion.cs b/Libs/CsharpDis6/OpenDis/Enumerations/ProtocolVersion.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/ProtocolVersion.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/ProtocolVersion.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Radio.Intercom/Command.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Intercom/Command.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Radio.Intercom/Command.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Radio.Intercom/Command.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Radio.Intercom/CommunicationsType.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Intercom/CommunicationsType.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Radio.Intercom/CommunicationsType.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Radio.Intercom/CommunicationsType.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Radio.Intercom/ControlType.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Intercom/ControlType.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Radio.Intercom/ControlType.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Radio.Intercom/ControlType.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Radio.Intercom/DestinationLineStateCommand.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Intercom/DestinationLineStateCommand.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Radio.Intercom/DestinationLineStateCommand.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Radio.Intercom/DestinationLineStateCommand.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Radio.Intercom/RecordType.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Intercom/RecordType.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Radio.Intercom/RecordType.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Radio.Intercom/RecordType.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Radio.Intercom/TransmitLineState.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Intercom/TransmitLineState.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Radio.Intercom/TransmitLineState.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Radio.Intercom/TransmitLineState.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/AntennaPatternType.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/AntennaPatternType.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/AntennaPatternType.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/AntennaPatternType.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/ClearChannel.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/ClearChannel.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/ClearChannel.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/ClearChannel.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/CryptoSystem.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/CryptoSystem.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/CryptoSystem.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/CryptoSystem.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForAmplitudeAndAngleModulation.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForAmplitudeAndAngleModulation.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForAmplitudeAndAngleModulation.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForAmplitudeAndAngleModulation.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForAmplitudeModulation.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForAmplitudeModulation.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForAmplitudeModulation.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForAmplitudeModulation.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForAngleModulation.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForAngleModulation.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForAngleModulation.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForAngleModulation.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForCarrierPhaseShift.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForCarrierPhaseShift.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForCarrierPhaseShift.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForCarrierPhaseShift.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForCombinationModulation.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForCombinationModulation.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForCombinationModulation.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForCombinationModulation.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForPulseModulation.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForPulseModulation.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForPulseModulation.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForPulseModulation.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForUnmodulatedModulation.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForUnmodulatedModulation.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForUnmodulatedModulation.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForUnmodulatedModulation.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/InputSource.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/InputSource.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/InputSource.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/InputSource.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/JtidsSynchronizationState.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/JtidsSynchronizationState.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/JtidsSynchronizationState.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/JtidsSynchronizationState.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/JtidsTransmittingTerminalPrimaryMode.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/JtidsTransmittingTerminalPrimaryMode.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/JtidsTransmittingTerminalPrimaryMode.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/JtidsTransmittingTerminalPrimaryMode.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/JtidsTransmittingTerminalSecondaryMode.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/JtidsTransmittingTerminalSecondaryMode.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/JtidsTransmittingTerminalSecondaryMode.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/JtidsTransmittingTerminalSecondaryMode.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/MajorModulation.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/MajorModulation.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/MajorModulation.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/MajorModulation.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/RadioSignalEncoding.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/RadioSignalEncoding.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/RadioSignalEncoding.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/RadioSignalEncoding.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/ReferenceSystem.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/ReferenceSystem.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/ReferenceSystem.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/ReferenceSystem.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/SpreadSpectrum.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/SpreadSpectrum.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/SpreadSpectrum.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/SpreadSpectrum.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/StartOfMessage.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/StartOfMessage.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/StartOfMessage.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/StartOfMessage.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/TDLType.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/TDLType.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/TDLType.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/TDLType.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/TransmitState.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/TransmitState.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/TransmitState.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/TransmitState.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/TransmitterModulationSystemType.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/TransmitterModulationSystemType.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/TransmitterModulationSystemType.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/TransmitterModulationSystemType.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/UserProtocolIdentificationNumber.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/UserProtocolIdentificationNumber.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/UserProtocolIdentificationNumber.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/UserProtocolIdentificationNumber.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Radio/ReceiverState.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Radio/ReceiverState.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Radio/ReceiverState.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Radio/ReceiverState.cs diff --git a/CsharpDis6/OpenDis/Enumerations/SimulationManagement/AcknowledgeFlag.cs b/Libs/CsharpDis6/OpenDis/Enumerations/SimulationManagement/AcknowledgeFlag.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/SimulationManagement/AcknowledgeFlag.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/SimulationManagement/AcknowledgeFlag.cs diff --git a/CsharpDis6/OpenDis/Enumerations/SimulationManagement/ActionId.cs b/Libs/CsharpDis6/OpenDis/Enumerations/SimulationManagement/ActionId.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/SimulationManagement/ActionId.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/SimulationManagement/ActionId.cs diff --git a/CsharpDis6/OpenDis/Enumerations/SimulationManagement/ActionResponseRequestStatus.cs b/Libs/CsharpDis6/OpenDis/Enumerations/SimulationManagement/ActionResponseRequestStatus.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/SimulationManagement/ActionResponseRequestStatus.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/SimulationManagement/ActionResponseRequestStatus.cs diff --git a/CsharpDis6/OpenDis/Enumerations/SimulationManagement/DatumSpecificationRecord.cs b/Libs/CsharpDis6/OpenDis/Enumerations/SimulationManagement/DatumSpecificationRecord.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/SimulationManagement/DatumSpecificationRecord.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/SimulationManagement/DatumSpecificationRecord.cs diff --git a/CsharpDis6/OpenDis/Enumerations/SimulationManagement/EventType.cs b/Libs/CsharpDis6/OpenDis/Enumerations/SimulationManagement/EventType.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/SimulationManagement/EventType.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/SimulationManagement/EventType.cs diff --git a/CsharpDis6/OpenDis/Enumerations/SimulationManagement/FrozenBehavior.cs b/Libs/CsharpDis6/OpenDis/Enumerations/SimulationManagement/FrozenBehavior.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/SimulationManagement/FrozenBehavior.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/SimulationManagement/FrozenBehavior.cs diff --git a/CsharpDis6/OpenDis/Enumerations/SimulationManagement/RequiredReliabilityService.cs b/Libs/CsharpDis6/OpenDis/Enumerations/SimulationManagement/RequiredReliabilityService.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/SimulationManagement/RequiredReliabilityService.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/SimulationManagement/RequiredReliabilityService.cs diff --git a/CsharpDis6/OpenDis/Enumerations/SimulationManagement/ResponseFlag.cs b/Libs/CsharpDis6/OpenDis/Enumerations/SimulationManagement/ResponseFlag.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/SimulationManagement/ResponseFlag.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/SimulationManagement/ResponseFlag.cs diff --git a/CsharpDis6/OpenDis/Enumerations/SimulationManagement/StopFreezeReason.cs b/Libs/CsharpDis6/OpenDis/Enumerations/SimulationManagement/StopFreezeReason.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/SimulationManagement/StopFreezeReason.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/SimulationManagement/StopFreezeReason.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Warfare/DetonationResult.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Warfare/DetonationResult.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Warfare/DetonationResult.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Warfare/DetonationResult.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Warfare/Fuse.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Warfare/Fuse.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Warfare/Fuse.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Warfare/Fuse.cs diff --git a/CsharpDis6/OpenDis/Enumerations/Warfare/Warhead.cs b/Libs/CsharpDis6/OpenDis/Enumerations/Warfare/Warhead.cs similarity index 100% rename from CsharpDis6/OpenDis/Enumerations/Warfare/Warhead.cs rename to Libs/CsharpDis6/OpenDis/Enumerations/Warfare/Warhead.cs diff --git a/CsharpDis6/OpenDis/FxCop OpenDis Analysis.FxCop b/Libs/CsharpDis6/OpenDis/FxCop OpenDis Analysis.FxCop similarity index 100% rename from CsharpDis6/OpenDis/FxCop OpenDis Analysis.FxCop rename to Libs/CsharpDis6/OpenDis/FxCop OpenDis Analysis.FxCop diff --git a/CsharpDis6/OpenDis/FxCopCustomDictionary.xml b/Libs/CsharpDis6/OpenDis/FxCopCustomDictionary.xml similarity index 100% rename from CsharpDis6/OpenDis/FxCopCustomDictionary.xml rename to Libs/CsharpDis6/OpenDis/FxCopCustomDictionary.xml diff --git a/CsharpDis6/OpenDis/OpenDis.build.bat b/Libs/CsharpDis6/OpenDis/OpenDis.build.bat similarity index 100% rename from CsharpDis6/OpenDis/OpenDis.build.bat rename to Libs/CsharpDis6/OpenDis/OpenDis.build.bat diff --git a/CsharpDis6/OpenDis/OpenDis.build.csproj b/Libs/CsharpDis6/OpenDis/OpenDis.build.csproj similarity index 100% rename from CsharpDis6/OpenDis/OpenDis.build.csproj rename to Libs/CsharpDis6/OpenDis/OpenDis.build.csproj diff --git a/CsharpDis6/OpenDis/OpenDis.csproj b/Libs/CsharpDis6/OpenDis/OpenDis.csproj similarity index 100% rename from CsharpDis6/OpenDis/OpenDis.csproj rename to Libs/CsharpDis6/OpenDis/OpenDis.csproj diff --git a/CsharpDis6/OpenDis/OpenDis.csproj.user b/Libs/CsharpDis6/OpenDis/OpenDis.csproj.user similarity index 100% rename from CsharpDis6/OpenDis/OpenDis.csproj.user rename to Libs/CsharpDis6/OpenDis/OpenDis.csproj.user diff --git a/CsharpDis6/OpenDis/Properties/AssemblyInfo.cs b/Libs/CsharpDis6/OpenDis/Properties/AssemblyInfo.cs similarity index 100% rename from CsharpDis6/OpenDis/Properties/AssemblyInfo.cs rename to Libs/CsharpDis6/OpenDis/Properties/AssemblyInfo.cs diff --git a/CsharpDis6/OpenDis/Properties/Version.cs b/Libs/CsharpDis6/OpenDis/Properties/Version.cs similarity index 100% rename from CsharpDis6/OpenDis/Properties/Version.cs rename to Libs/CsharpDis6/OpenDis/Properties/Version.cs diff --git a/CsharpDis6/OpenDis/Settings.StyleCop b/Libs/CsharpDis6/OpenDis/Settings.StyleCop similarity index 100% rename from CsharpDis6/OpenDis/Settings.StyleCop rename to Libs/CsharpDis6/OpenDis/Settings.StyleCop diff --git a/CsharpDis6/OpenDis/Utilities/ChunkConverters.cs b/Libs/CsharpDis6/OpenDis/Utilities/ChunkConverters.cs similarity index 100% rename from CsharpDis6/OpenDis/Utilities/ChunkConverters.cs rename to Libs/CsharpDis6/OpenDis/Utilities/ChunkConverters.cs diff --git a/CsharpDis6/OpenDis/Utilities/Conversion.cs b/Libs/CsharpDis6/OpenDis/Utilities/Conversion.cs similarity index 100% rename from CsharpDis6/OpenDis/Utilities/Conversion.cs rename to Libs/CsharpDis6/OpenDis/Utilities/Conversion.cs diff --git a/CsharpDis6/OpenDis/Utilities/CoordinateConversions.cs b/Libs/CsharpDis6/OpenDis/Utilities/CoordinateConversions.cs similarity index 100% rename from CsharpDis6/OpenDis/Utilities/CoordinateConversions.cs rename to Libs/CsharpDis6/OpenDis/Utilities/CoordinateConversions.cs diff --git a/CsharpDis6/OpenDis/Utilities/DataInputStream.cs b/Libs/CsharpDis6/OpenDis/Utilities/DataInputStream.cs similarity index 100% rename from CsharpDis6/OpenDis/Utilities/DataInputStream.cs rename to Libs/CsharpDis6/OpenDis/Utilities/DataInputStream.cs diff --git a/CsharpDis6/OpenDis/Utilities/DataOutputStream.cs b/Libs/CsharpDis6/OpenDis/Utilities/DataOutputStream.cs similarity index 100% rename from CsharpDis6/OpenDis/Utilities/DataOutputStream.cs rename to Libs/CsharpDis6/OpenDis/Utilities/DataOutputStream.cs diff --git a/CsharpDis6/OpenDis/Utilities/DataStream.cs b/Libs/CsharpDis6/OpenDis/Utilities/DataStream.cs similarity index 100% rename from CsharpDis6/OpenDis/Utilities/DataStream.cs rename to Libs/CsharpDis6/OpenDis/Utilities/DataStream.cs diff --git a/CsharpDis6/OpenDis/Utilities/PDUProcessor.cs b/Libs/CsharpDis6/OpenDis/Utilities/PDUProcessor.cs similarity index 100% rename from CsharpDis6/OpenDis/Utilities/PDUProcessor.cs rename to Libs/CsharpDis6/OpenDis/Utilities/PDUProcessor.cs diff --git a/CsharpDis6/OpenDis/key.snk b/Libs/CsharpDis6/OpenDis/key.snk similarity index 100% rename from CsharpDis6/OpenDis/key.snk rename to Libs/CsharpDis6/OpenDis/key.snk From 924bb259bdd87dd7ec386f761aa1daba324cc2f6 Mon Sep 17 00:00:00 2001 From: Nicolas Baudrey Date: Sat, 9 Oct 2021 10:08:36 +0200 Subject: [PATCH 04/25] [BLD] Move to a sub-folder CSharpDis7 --- {CSharpDis7 => Libs/CSharpDis7}/AcknowledgePdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/AcknowledgeReliablePdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/AcousticEmitter.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/ActionRequestPdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/ActionRequestReliablePdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/ActionResponsePdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/ActionResponseReliablePdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/AggregateIdentifier.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/AggregateMarking.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/AggregateType.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/AngleDeception.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/AngularVelocityVector.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/AntennaLocation.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/ArealObjectStatePdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/ArticulatedParts.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/Association.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/AttachedParts.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/Attribute.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/AttributePdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/BeamAntennaPattern.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/BeamData.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/BeamStatus.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/BlankingSector.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/ChangeOptions.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/ClockTime.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/CollisionElasticPdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/CollisionPdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/CommentPdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/CommentReliablePdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/CommunicationsNodeID.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/CreateEntityPdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/CreateEntityReliablePdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/DataPdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/DataQueryDatumSpecification.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/DataQueryPdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/DataQueryReliablePdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/DataReliablePdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/DatumSpecification.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/DeadReckoningParameters.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/DesignatorPdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/DetonationPdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/DirectedEnergyAreaAimpoint.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/DirectedEnergyDamage.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/DirectedEnergyFirePdu.cs | 0 .../CSharpDis7}/DirectedEnergyPrecisionAimpoint.cs | 0 .../CSharpDis7}/DirectedEnergyTargetEnergyDeposition.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/DistributedEmissionsFamilyPdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/EEFundamentalParameterData.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/EightByteChunk.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/ElectronicEmissionsPdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/EmitterSystem.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/EngineFuel.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/EngineFuelReload.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/EntityAssociation.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/EntityDamageStatusPdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/EntityID.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/EntityInformationFamilyPdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/EntityManagementFamilyPdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/EntityMarking.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/EntityStatePdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/EntityStateUpdatePdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/EntityType.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/EntityTypeVP.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/Environment.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/EnvironmentGeneral.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/EnvironmentType.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/EulerAngles.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/EventIdentifier.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/EventIdentifierLiveEntity.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/EventReportPdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/EventReportReliablePdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/Expendable.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/ExpendableDescriptor.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/ExpendableReload.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/ExplosionDescriptor.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/FalseTargetsAttribute.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/FastEntityStatePdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/FirePdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/FixedDatum.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/FourByteChunk.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/FundamentalOperationalData.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/GridAxis.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/GroupIdentifier.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/IFFFundamentalParameterData.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/IOCommunicationsNode.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/IOEffect.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/IffDataSpecification.cs | 0 .../CSharpDis7}/IntercomCommunicationsParameters.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/IntercomIdentifier.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/IntercomSignalPdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/IsPartOfPdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/JammingTechnique.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/LaunchedMunitionRecord.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/LayerHeader.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/LinearObjectStatePdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/LinearSegmentParameter.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/LiveEntityIdentifier.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/LiveEntityPdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/LiveSimulationAddress.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/LogisticsFamilyPdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/MineEntityIdentifier.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/MinefieldFamilyPdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/MinefieldIdentifier.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/MinefieldResponseNackPdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/MinefieldStatePdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/ModulationParameters.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/ModulationType.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/Munition.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/MunitionDescriptor.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/MunitionReload.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/NamedLocationIdentification.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/ObjectIdentifier.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/ObjectType.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/OneByteChunk.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/OwnershipStatus.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/Pdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/PduContainer.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/PduHeader.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/PduStatus.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/PduSuperclass.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/PointObjectStatePdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/PropulsionSystemData.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/RadioCommunicationsFamilyPdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/RadioIdentifier.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/RadioType.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/ReceiverPdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/RecordQueryReliablePdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/RecordQuerySpecification.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/RecordSpecification.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/RecordSpecificationElement.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/Relationship.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/RemoveEntityPdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/RemoveEntityReliablePdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/RepairCompletePdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/RepairResponsePdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/ResupplyOfferPdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/ResupplyReceivedPdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/SecondaryOperationalData.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/SeesPdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/Sensor.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/SeparationVP.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/ServiceRequestPdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/SetDataPdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/SetDataReliablePdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/SimulationAddress.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/SimulationIdentifier.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/SimulationManagementFamilyPdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/SimulationManagementPduHeader.cs | 0 .../CSharpDis7}/SimulationManagementWithReliabilityFamilyPdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/StandardVariableSpecification.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/StartResumePdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/StartResumeReliablePdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/StopFreezePdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/StopFreezeReliablePdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/StorageFuel.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/StorageFuelReload.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/SupplyQuantity.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/SyntheticEnvironmentFamilyPdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/SystemIdentifier.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/TotalRecordSets.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/TrackJamData.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/TwoByteChunk.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/UAFundamentalParameter.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/UaPdu.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/UnattachedIdentifier.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/UnsignedDISInteger.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/VariableDatum.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/VariableParameter.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/VariableTransmitterParameters.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/Vector2Float.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/Vector3Double.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/Vector3Float.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/VectoringNozzleSystem.cs | 0 {CSharpDis7 => Libs/CSharpDis7}/WarfareFamilyPdu.cs | 0 174 files changed, 0 insertions(+), 0 deletions(-) rename {CSharpDis7 => Libs/CSharpDis7}/AcknowledgePdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/AcknowledgeReliablePdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/AcousticEmitter.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/ActionRequestPdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/ActionRequestReliablePdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/ActionResponsePdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/ActionResponseReliablePdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/AggregateIdentifier.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/AggregateMarking.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/AggregateType.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/AngleDeception.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/AngularVelocityVector.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/AntennaLocation.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/ArealObjectStatePdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/ArticulatedParts.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/Association.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/AttachedParts.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/Attribute.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/AttributePdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/BeamAntennaPattern.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/BeamData.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/BeamStatus.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/BlankingSector.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/ChangeOptions.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/ClockTime.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/CollisionElasticPdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/CollisionPdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/CommentPdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/CommentReliablePdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/CommunicationsNodeID.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/CreateEntityPdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/CreateEntityReliablePdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/DataPdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/DataQueryDatumSpecification.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/DataQueryPdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/DataQueryReliablePdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/DataReliablePdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/DatumSpecification.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/DeadReckoningParameters.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/DesignatorPdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/DetonationPdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/DirectedEnergyAreaAimpoint.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/DirectedEnergyDamage.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/DirectedEnergyFirePdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/DirectedEnergyPrecisionAimpoint.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/DirectedEnergyTargetEnergyDeposition.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/DistributedEmissionsFamilyPdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/EEFundamentalParameterData.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/EightByteChunk.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/ElectronicEmissionsPdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/EmitterSystem.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/EngineFuel.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/EngineFuelReload.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/EntityAssociation.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/EntityDamageStatusPdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/EntityID.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/EntityInformationFamilyPdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/EntityManagementFamilyPdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/EntityMarking.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/EntityStatePdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/EntityStateUpdatePdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/EntityType.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/EntityTypeVP.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/Environment.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/EnvironmentGeneral.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/EnvironmentType.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/EulerAngles.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/EventIdentifier.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/EventIdentifierLiveEntity.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/EventReportPdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/EventReportReliablePdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/Expendable.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/ExpendableDescriptor.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/ExpendableReload.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/ExplosionDescriptor.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/FalseTargetsAttribute.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/FastEntityStatePdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/FirePdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/FixedDatum.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/FourByteChunk.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/FundamentalOperationalData.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/GridAxis.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/GroupIdentifier.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/IFFFundamentalParameterData.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/IOCommunicationsNode.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/IOEffect.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/IffDataSpecification.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/IntercomCommunicationsParameters.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/IntercomIdentifier.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/IntercomSignalPdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/IsPartOfPdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/JammingTechnique.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/LaunchedMunitionRecord.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/LayerHeader.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/LinearObjectStatePdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/LinearSegmentParameter.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/LiveEntityIdentifier.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/LiveEntityPdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/LiveSimulationAddress.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/LogisticsFamilyPdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/MineEntityIdentifier.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/MinefieldFamilyPdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/MinefieldIdentifier.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/MinefieldResponseNackPdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/MinefieldStatePdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/ModulationParameters.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/ModulationType.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/Munition.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/MunitionDescriptor.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/MunitionReload.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/NamedLocationIdentification.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/ObjectIdentifier.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/ObjectType.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/OneByteChunk.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/OwnershipStatus.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/Pdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/PduContainer.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/PduHeader.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/PduStatus.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/PduSuperclass.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/PointObjectStatePdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/PropulsionSystemData.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/RadioCommunicationsFamilyPdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/RadioIdentifier.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/RadioType.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/ReceiverPdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/RecordQueryReliablePdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/RecordQuerySpecification.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/RecordSpecification.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/RecordSpecificationElement.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/Relationship.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/RemoveEntityPdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/RemoveEntityReliablePdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/RepairCompletePdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/RepairResponsePdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/ResupplyOfferPdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/ResupplyReceivedPdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/SecondaryOperationalData.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/SeesPdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/Sensor.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/SeparationVP.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/ServiceRequestPdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/SetDataPdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/SetDataReliablePdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/SimulationAddress.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/SimulationIdentifier.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/SimulationManagementFamilyPdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/SimulationManagementPduHeader.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/SimulationManagementWithReliabilityFamilyPdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/StandardVariableSpecification.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/StartResumePdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/StartResumeReliablePdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/StopFreezePdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/StopFreezeReliablePdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/StorageFuel.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/StorageFuelReload.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/SupplyQuantity.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/SyntheticEnvironmentFamilyPdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/SystemIdentifier.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/TotalRecordSets.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/TrackJamData.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/TwoByteChunk.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/UAFundamentalParameter.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/UaPdu.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/UnattachedIdentifier.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/UnsignedDISInteger.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/VariableDatum.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/VariableParameter.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/VariableTransmitterParameters.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/Vector2Float.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/Vector3Double.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/Vector3Float.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/VectoringNozzleSystem.cs (100%) rename {CSharpDis7 => Libs/CSharpDis7}/WarfareFamilyPdu.cs (100%) diff --git a/CSharpDis7/AcknowledgePdu.cs b/Libs/CSharpDis7/AcknowledgePdu.cs similarity index 100% rename from CSharpDis7/AcknowledgePdu.cs rename to Libs/CSharpDis7/AcknowledgePdu.cs diff --git a/CSharpDis7/AcknowledgeReliablePdu.cs b/Libs/CSharpDis7/AcknowledgeReliablePdu.cs similarity index 100% rename from CSharpDis7/AcknowledgeReliablePdu.cs rename to Libs/CSharpDis7/AcknowledgeReliablePdu.cs diff --git a/CSharpDis7/AcousticEmitter.cs b/Libs/CSharpDis7/AcousticEmitter.cs similarity index 100% rename from CSharpDis7/AcousticEmitter.cs rename to Libs/CSharpDis7/AcousticEmitter.cs diff --git a/CSharpDis7/ActionRequestPdu.cs b/Libs/CSharpDis7/ActionRequestPdu.cs similarity index 100% rename from CSharpDis7/ActionRequestPdu.cs rename to Libs/CSharpDis7/ActionRequestPdu.cs diff --git a/CSharpDis7/ActionRequestReliablePdu.cs b/Libs/CSharpDis7/ActionRequestReliablePdu.cs similarity index 100% rename from CSharpDis7/ActionRequestReliablePdu.cs rename to Libs/CSharpDis7/ActionRequestReliablePdu.cs diff --git a/CSharpDis7/ActionResponsePdu.cs b/Libs/CSharpDis7/ActionResponsePdu.cs similarity index 100% rename from CSharpDis7/ActionResponsePdu.cs rename to Libs/CSharpDis7/ActionResponsePdu.cs diff --git a/CSharpDis7/ActionResponseReliablePdu.cs b/Libs/CSharpDis7/ActionResponseReliablePdu.cs similarity index 100% rename from CSharpDis7/ActionResponseReliablePdu.cs rename to Libs/CSharpDis7/ActionResponseReliablePdu.cs diff --git a/CSharpDis7/AggregateIdentifier.cs b/Libs/CSharpDis7/AggregateIdentifier.cs similarity index 100% rename from CSharpDis7/AggregateIdentifier.cs rename to Libs/CSharpDis7/AggregateIdentifier.cs diff --git a/CSharpDis7/AggregateMarking.cs b/Libs/CSharpDis7/AggregateMarking.cs similarity index 100% rename from CSharpDis7/AggregateMarking.cs rename to Libs/CSharpDis7/AggregateMarking.cs diff --git a/CSharpDis7/AggregateType.cs b/Libs/CSharpDis7/AggregateType.cs similarity index 100% rename from CSharpDis7/AggregateType.cs rename to Libs/CSharpDis7/AggregateType.cs diff --git a/CSharpDis7/AngleDeception.cs b/Libs/CSharpDis7/AngleDeception.cs similarity index 100% rename from CSharpDis7/AngleDeception.cs rename to Libs/CSharpDis7/AngleDeception.cs diff --git a/CSharpDis7/AngularVelocityVector.cs b/Libs/CSharpDis7/AngularVelocityVector.cs similarity index 100% rename from CSharpDis7/AngularVelocityVector.cs rename to Libs/CSharpDis7/AngularVelocityVector.cs diff --git a/CSharpDis7/AntennaLocation.cs b/Libs/CSharpDis7/AntennaLocation.cs similarity index 100% rename from CSharpDis7/AntennaLocation.cs rename to Libs/CSharpDis7/AntennaLocation.cs diff --git a/CSharpDis7/ArealObjectStatePdu.cs b/Libs/CSharpDis7/ArealObjectStatePdu.cs similarity index 100% rename from CSharpDis7/ArealObjectStatePdu.cs rename to Libs/CSharpDis7/ArealObjectStatePdu.cs diff --git a/CSharpDis7/ArticulatedParts.cs b/Libs/CSharpDis7/ArticulatedParts.cs similarity index 100% rename from CSharpDis7/ArticulatedParts.cs rename to Libs/CSharpDis7/ArticulatedParts.cs diff --git a/CSharpDis7/Association.cs b/Libs/CSharpDis7/Association.cs similarity index 100% rename from CSharpDis7/Association.cs rename to Libs/CSharpDis7/Association.cs diff --git a/CSharpDis7/AttachedParts.cs b/Libs/CSharpDis7/AttachedParts.cs similarity index 100% rename from CSharpDis7/AttachedParts.cs rename to Libs/CSharpDis7/AttachedParts.cs diff --git a/CSharpDis7/Attribute.cs b/Libs/CSharpDis7/Attribute.cs similarity index 100% rename from CSharpDis7/Attribute.cs rename to Libs/CSharpDis7/Attribute.cs diff --git a/CSharpDis7/AttributePdu.cs b/Libs/CSharpDis7/AttributePdu.cs similarity index 100% rename from CSharpDis7/AttributePdu.cs rename to Libs/CSharpDis7/AttributePdu.cs diff --git a/CSharpDis7/BeamAntennaPattern.cs b/Libs/CSharpDis7/BeamAntennaPattern.cs similarity index 100% rename from CSharpDis7/BeamAntennaPattern.cs rename to Libs/CSharpDis7/BeamAntennaPattern.cs diff --git a/CSharpDis7/BeamData.cs b/Libs/CSharpDis7/BeamData.cs similarity index 100% rename from CSharpDis7/BeamData.cs rename to Libs/CSharpDis7/BeamData.cs diff --git a/CSharpDis7/BeamStatus.cs b/Libs/CSharpDis7/BeamStatus.cs similarity index 100% rename from CSharpDis7/BeamStatus.cs rename to Libs/CSharpDis7/BeamStatus.cs diff --git a/CSharpDis7/BlankingSector.cs b/Libs/CSharpDis7/BlankingSector.cs similarity index 100% rename from CSharpDis7/BlankingSector.cs rename to Libs/CSharpDis7/BlankingSector.cs diff --git a/CSharpDis7/ChangeOptions.cs b/Libs/CSharpDis7/ChangeOptions.cs similarity index 100% rename from CSharpDis7/ChangeOptions.cs rename to Libs/CSharpDis7/ChangeOptions.cs diff --git a/CSharpDis7/ClockTime.cs b/Libs/CSharpDis7/ClockTime.cs similarity index 100% rename from CSharpDis7/ClockTime.cs rename to Libs/CSharpDis7/ClockTime.cs diff --git a/CSharpDis7/CollisionElasticPdu.cs b/Libs/CSharpDis7/CollisionElasticPdu.cs similarity index 100% rename from CSharpDis7/CollisionElasticPdu.cs rename to Libs/CSharpDis7/CollisionElasticPdu.cs diff --git a/CSharpDis7/CollisionPdu.cs b/Libs/CSharpDis7/CollisionPdu.cs similarity index 100% rename from CSharpDis7/CollisionPdu.cs rename to Libs/CSharpDis7/CollisionPdu.cs diff --git a/CSharpDis7/CommentPdu.cs b/Libs/CSharpDis7/CommentPdu.cs similarity index 100% rename from CSharpDis7/CommentPdu.cs rename to Libs/CSharpDis7/CommentPdu.cs diff --git a/CSharpDis7/CommentReliablePdu.cs b/Libs/CSharpDis7/CommentReliablePdu.cs similarity index 100% rename from CSharpDis7/CommentReliablePdu.cs rename to Libs/CSharpDis7/CommentReliablePdu.cs diff --git a/CSharpDis7/CommunicationsNodeID.cs b/Libs/CSharpDis7/CommunicationsNodeID.cs similarity index 100% rename from CSharpDis7/CommunicationsNodeID.cs rename to Libs/CSharpDis7/CommunicationsNodeID.cs diff --git a/CSharpDis7/CreateEntityPdu.cs b/Libs/CSharpDis7/CreateEntityPdu.cs similarity index 100% rename from CSharpDis7/CreateEntityPdu.cs rename to Libs/CSharpDis7/CreateEntityPdu.cs diff --git a/CSharpDis7/CreateEntityReliablePdu.cs b/Libs/CSharpDis7/CreateEntityReliablePdu.cs similarity index 100% rename from CSharpDis7/CreateEntityReliablePdu.cs rename to Libs/CSharpDis7/CreateEntityReliablePdu.cs diff --git a/CSharpDis7/DataPdu.cs b/Libs/CSharpDis7/DataPdu.cs similarity index 100% rename from CSharpDis7/DataPdu.cs rename to Libs/CSharpDis7/DataPdu.cs diff --git a/CSharpDis7/DataQueryDatumSpecification.cs b/Libs/CSharpDis7/DataQueryDatumSpecification.cs similarity index 100% rename from CSharpDis7/DataQueryDatumSpecification.cs rename to Libs/CSharpDis7/DataQueryDatumSpecification.cs diff --git a/CSharpDis7/DataQueryPdu.cs b/Libs/CSharpDis7/DataQueryPdu.cs similarity index 100% rename from CSharpDis7/DataQueryPdu.cs rename to Libs/CSharpDis7/DataQueryPdu.cs diff --git a/CSharpDis7/DataQueryReliablePdu.cs b/Libs/CSharpDis7/DataQueryReliablePdu.cs similarity index 100% rename from CSharpDis7/DataQueryReliablePdu.cs rename to Libs/CSharpDis7/DataQueryReliablePdu.cs diff --git a/CSharpDis7/DataReliablePdu.cs b/Libs/CSharpDis7/DataReliablePdu.cs similarity index 100% rename from CSharpDis7/DataReliablePdu.cs rename to Libs/CSharpDis7/DataReliablePdu.cs diff --git a/CSharpDis7/DatumSpecification.cs b/Libs/CSharpDis7/DatumSpecification.cs similarity index 100% rename from CSharpDis7/DatumSpecification.cs rename to Libs/CSharpDis7/DatumSpecification.cs diff --git a/CSharpDis7/DeadReckoningParameters.cs b/Libs/CSharpDis7/DeadReckoningParameters.cs similarity index 100% rename from CSharpDis7/DeadReckoningParameters.cs rename to Libs/CSharpDis7/DeadReckoningParameters.cs diff --git a/CSharpDis7/DesignatorPdu.cs b/Libs/CSharpDis7/DesignatorPdu.cs similarity index 100% rename from CSharpDis7/DesignatorPdu.cs rename to Libs/CSharpDis7/DesignatorPdu.cs diff --git a/CSharpDis7/DetonationPdu.cs b/Libs/CSharpDis7/DetonationPdu.cs similarity index 100% rename from CSharpDis7/DetonationPdu.cs rename to Libs/CSharpDis7/DetonationPdu.cs diff --git a/CSharpDis7/DirectedEnergyAreaAimpoint.cs b/Libs/CSharpDis7/DirectedEnergyAreaAimpoint.cs similarity index 100% rename from CSharpDis7/DirectedEnergyAreaAimpoint.cs rename to Libs/CSharpDis7/DirectedEnergyAreaAimpoint.cs diff --git a/CSharpDis7/DirectedEnergyDamage.cs b/Libs/CSharpDis7/DirectedEnergyDamage.cs similarity index 100% rename from CSharpDis7/DirectedEnergyDamage.cs rename to Libs/CSharpDis7/DirectedEnergyDamage.cs diff --git a/CSharpDis7/DirectedEnergyFirePdu.cs b/Libs/CSharpDis7/DirectedEnergyFirePdu.cs similarity index 100% rename from CSharpDis7/DirectedEnergyFirePdu.cs rename to Libs/CSharpDis7/DirectedEnergyFirePdu.cs diff --git a/CSharpDis7/DirectedEnergyPrecisionAimpoint.cs b/Libs/CSharpDis7/DirectedEnergyPrecisionAimpoint.cs similarity index 100% rename from CSharpDis7/DirectedEnergyPrecisionAimpoint.cs rename to Libs/CSharpDis7/DirectedEnergyPrecisionAimpoint.cs diff --git a/CSharpDis7/DirectedEnergyTargetEnergyDeposition.cs b/Libs/CSharpDis7/DirectedEnergyTargetEnergyDeposition.cs similarity index 100% rename from CSharpDis7/DirectedEnergyTargetEnergyDeposition.cs rename to Libs/CSharpDis7/DirectedEnergyTargetEnergyDeposition.cs diff --git a/CSharpDis7/DistributedEmissionsFamilyPdu.cs b/Libs/CSharpDis7/DistributedEmissionsFamilyPdu.cs similarity index 100% rename from CSharpDis7/DistributedEmissionsFamilyPdu.cs rename to Libs/CSharpDis7/DistributedEmissionsFamilyPdu.cs diff --git a/CSharpDis7/EEFundamentalParameterData.cs b/Libs/CSharpDis7/EEFundamentalParameterData.cs similarity index 100% rename from CSharpDis7/EEFundamentalParameterData.cs rename to Libs/CSharpDis7/EEFundamentalParameterData.cs diff --git a/CSharpDis7/EightByteChunk.cs b/Libs/CSharpDis7/EightByteChunk.cs similarity index 100% rename from CSharpDis7/EightByteChunk.cs rename to Libs/CSharpDis7/EightByteChunk.cs diff --git a/CSharpDis7/ElectronicEmissionsPdu.cs b/Libs/CSharpDis7/ElectronicEmissionsPdu.cs similarity index 100% rename from CSharpDis7/ElectronicEmissionsPdu.cs rename to Libs/CSharpDis7/ElectronicEmissionsPdu.cs diff --git a/CSharpDis7/EmitterSystem.cs b/Libs/CSharpDis7/EmitterSystem.cs similarity index 100% rename from CSharpDis7/EmitterSystem.cs rename to Libs/CSharpDis7/EmitterSystem.cs diff --git a/CSharpDis7/EngineFuel.cs b/Libs/CSharpDis7/EngineFuel.cs similarity index 100% rename from CSharpDis7/EngineFuel.cs rename to Libs/CSharpDis7/EngineFuel.cs diff --git a/CSharpDis7/EngineFuelReload.cs b/Libs/CSharpDis7/EngineFuelReload.cs similarity index 100% rename from CSharpDis7/EngineFuelReload.cs rename to Libs/CSharpDis7/EngineFuelReload.cs diff --git a/CSharpDis7/EntityAssociation.cs b/Libs/CSharpDis7/EntityAssociation.cs similarity index 100% rename from CSharpDis7/EntityAssociation.cs rename to Libs/CSharpDis7/EntityAssociation.cs diff --git a/CSharpDis7/EntityDamageStatusPdu.cs b/Libs/CSharpDis7/EntityDamageStatusPdu.cs similarity index 100% rename from CSharpDis7/EntityDamageStatusPdu.cs rename to Libs/CSharpDis7/EntityDamageStatusPdu.cs diff --git a/CSharpDis7/EntityID.cs b/Libs/CSharpDis7/EntityID.cs similarity index 100% rename from CSharpDis7/EntityID.cs rename to Libs/CSharpDis7/EntityID.cs diff --git a/CSharpDis7/EntityInformationFamilyPdu.cs b/Libs/CSharpDis7/EntityInformationFamilyPdu.cs similarity index 100% rename from CSharpDis7/EntityInformationFamilyPdu.cs rename to Libs/CSharpDis7/EntityInformationFamilyPdu.cs diff --git a/CSharpDis7/EntityManagementFamilyPdu.cs b/Libs/CSharpDis7/EntityManagementFamilyPdu.cs similarity index 100% rename from CSharpDis7/EntityManagementFamilyPdu.cs rename to Libs/CSharpDis7/EntityManagementFamilyPdu.cs diff --git a/CSharpDis7/EntityMarking.cs b/Libs/CSharpDis7/EntityMarking.cs similarity index 100% rename from CSharpDis7/EntityMarking.cs rename to Libs/CSharpDis7/EntityMarking.cs diff --git a/CSharpDis7/EntityStatePdu.cs b/Libs/CSharpDis7/EntityStatePdu.cs similarity index 100% rename from CSharpDis7/EntityStatePdu.cs rename to Libs/CSharpDis7/EntityStatePdu.cs diff --git a/CSharpDis7/EntityStateUpdatePdu.cs b/Libs/CSharpDis7/EntityStateUpdatePdu.cs similarity index 100% rename from CSharpDis7/EntityStateUpdatePdu.cs rename to Libs/CSharpDis7/EntityStateUpdatePdu.cs diff --git a/CSharpDis7/EntityType.cs b/Libs/CSharpDis7/EntityType.cs similarity index 100% rename from CSharpDis7/EntityType.cs rename to Libs/CSharpDis7/EntityType.cs diff --git a/CSharpDis7/EntityTypeVP.cs b/Libs/CSharpDis7/EntityTypeVP.cs similarity index 100% rename from CSharpDis7/EntityTypeVP.cs rename to Libs/CSharpDis7/EntityTypeVP.cs diff --git a/CSharpDis7/Environment.cs b/Libs/CSharpDis7/Environment.cs similarity index 100% rename from CSharpDis7/Environment.cs rename to Libs/CSharpDis7/Environment.cs diff --git a/CSharpDis7/EnvironmentGeneral.cs b/Libs/CSharpDis7/EnvironmentGeneral.cs similarity index 100% rename from CSharpDis7/EnvironmentGeneral.cs rename to Libs/CSharpDis7/EnvironmentGeneral.cs diff --git a/CSharpDis7/EnvironmentType.cs b/Libs/CSharpDis7/EnvironmentType.cs similarity index 100% rename from CSharpDis7/EnvironmentType.cs rename to Libs/CSharpDis7/EnvironmentType.cs diff --git a/CSharpDis7/EulerAngles.cs b/Libs/CSharpDis7/EulerAngles.cs similarity index 100% rename from CSharpDis7/EulerAngles.cs rename to Libs/CSharpDis7/EulerAngles.cs diff --git a/CSharpDis7/EventIdentifier.cs b/Libs/CSharpDis7/EventIdentifier.cs similarity index 100% rename from CSharpDis7/EventIdentifier.cs rename to Libs/CSharpDis7/EventIdentifier.cs diff --git a/CSharpDis7/EventIdentifierLiveEntity.cs b/Libs/CSharpDis7/EventIdentifierLiveEntity.cs similarity index 100% rename from CSharpDis7/EventIdentifierLiveEntity.cs rename to Libs/CSharpDis7/EventIdentifierLiveEntity.cs diff --git a/CSharpDis7/EventReportPdu.cs b/Libs/CSharpDis7/EventReportPdu.cs similarity index 100% rename from CSharpDis7/EventReportPdu.cs rename to Libs/CSharpDis7/EventReportPdu.cs diff --git a/CSharpDis7/EventReportReliablePdu.cs b/Libs/CSharpDis7/EventReportReliablePdu.cs similarity index 100% rename from CSharpDis7/EventReportReliablePdu.cs rename to Libs/CSharpDis7/EventReportReliablePdu.cs diff --git a/CSharpDis7/Expendable.cs b/Libs/CSharpDis7/Expendable.cs similarity index 100% rename from CSharpDis7/Expendable.cs rename to Libs/CSharpDis7/Expendable.cs diff --git a/CSharpDis7/ExpendableDescriptor.cs b/Libs/CSharpDis7/ExpendableDescriptor.cs similarity index 100% rename from CSharpDis7/ExpendableDescriptor.cs rename to Libs/CSharpDis7/ExpendableDescriptor.cs diff --git a/CSharpDis7/ExpendableReload.cs b/Libs/CSharpDis7/ExpendableReload.cs similarity index 100% rename from CSharpDis7/ExpendableReload.cs rename to Libs/CSharpDis7/ExpendableReload.cs diff --git a/CSharpDis7/ExplosionDescriptor.cs b/Libs/CSharpDis7/ExplosionDescriptor.cs similarity index 100% rename from CSharpDis7/ExplosionDescriptor.cs rename to Libs/CSharpDis7/ExplosionDescriptor.cs diff --git a/CSharpDis7/FalseTargetsAttribute.cs b/Libs/CSharpDis7/FalseTargetsAttribute.cs similarity index 100% rename from CSharpDis7/FalseTargetsAttribute.cs rename to Libs/CSharpDis7/FalseTargetsAttribute.cs diff --git a/CSharpDis7/FastEntityStatePdu.cs b/Libs/CSharpDis7/FastEntityStatePdu.cs similarity index 100% rename from CSharpDis7/FastEntityStatePdu.cs rename to Libs/CSharpDis7/FastEntityStatePdu.cs diff --git a/CSharpDis7/FirePdu.cs b/Libs/CSharpDis7/FirePdu.cs similarity index 100% rename from CSharpDis7/FirePdu.cs rename to Libs/CSharpDis7/FirePdu.cs diff --git a/CSharpDis7/FixedDatum.cs b/Libs/CSharpDis7/FixedDatum.cs similarity index 100% rename from CSharpDis7/FixedDatum.cs rename to Libs/CSharpDis7/FixedDatum.cs diff --git a/CSharpDis7/FourByteChunk.cs b/Libs/CSharpDis7/FourByteChunk.cs similarity index 100% rename from CSharpDis7/FourByteChunk.cs rename to Libs/CSharpDis7/FourByteChunk.cs diff --git a/CSharpDis7/FundamentalOperationalData.cs b/Libs/CSharpDis7/FundamentalOperationalData.cs similarity index 100% rename from CSharpDis7/FundamentalOperationalData.cs rename to Libs/CSharpDis7/FundamentalOperationalData.cs diff --git a/CSharpDis7/GridAxis.cs b/Libs/CSharpDis7/GridAxis.cs similarity index 100% rename from CSharpDis7/GridAxis.cs rename to Libs/CSharpDis7/GridAxis.cs diff --git a/CSharpDis7/GroupIdentifier.cs b/Libs/CSharpDis7/GroupIdentifier.cs similarity index 100% rename from CSharpDis7/GroupIdentifier.cs rename to Libs/CSharpDis7/GroupIdentifier.cs diff --git a/CSharpDis7/IFFFundamentalParameterData.cs b/Libs/CSharpDis7/IFFFundamentalParameterData.cs similarity index 100% rename from CSharpDis7/IFFFundamentalParameterData.cs rename to Libs/CSharpDis7/IFFFundamentalParameterData.cs diff --git a/CSharpDis7/IOCommunicationsNode.cs b/Libs/CSharpDis7/IOCommunicationsNode.cs similarity index 100% rename from CSharpDis7/IOCommunicationsNode.cs rename to Libs/CSharpDis7/IOCommunicationsNode.cs diff --git a/CSharpDis7/IOEffect.cs b/Libs/CSharpDis7/IOEffect.cs similarity index 100% rename from CSharpDis7/IOEffect.cs rename to Libs/CSharpDis7/IOEffect.cs diff --git a/CSharpDis7/IffDataSpecification.cs b/Libs/CSharpDis7/IffDataSpecification.cs similarity index 100% rename from CSharpDis7/IffDataSpecification.cs rename to Libs/CSharpDis7/IffDataSpecification.cs diff --git a/CSharpDis7/IntercomCommunicationsParameters.cs b/Libs/CSharpDis7/IntercomCommunicationsParameters.cs similarity index 100% rename from CSharpDis7/IntercomCommunicationsParameters.cs rename to Libs/CSharpDis7/IntercomCommunicationsParameters.cs diff --git a/CSharpDis7/IntercomIdentifier.cs b/Libs/CSharpDis7/IntercomIdentifier.cs similarity index 100% rename from CSharpDis7/IntercomIdentifier.cs rename to Libs/CSharpDis7/IntercomIdentifier.cs diff --git a/CSharpDis7/IntercomSignalPdu.cs b/Libs/CSharpDis7/IntercomSignalPdu.cs similarity index 100% rename from CSharpDis7/IntercomSignalPdu.cs rename to Libs/CSharpDis7/IntercomSignalPdu.cs diff --git a/CSharpDis7/IsPartOfPdu.cs b/Libs/CSharpDis7/IsPartOfPdu.cs similarity index 100% rename from CSharpDis7/IsPartOfPdu.cs rename to Libs/CSharpDis7/IsPartOfPdu.cs diff --git a/CSharpDis7/JammingTechnique.cs b/Libs/CSharpDis7/JammingTechnique.cs similarity index 100% rename from CSharpDis7/JammingTechnique.cs rename to Libs/CSharpDis7/JammingTechnique.cs diff --git a/CSharpDis7/LaunchedMunitionRecord.cs b/Libs/CSharpDis7/LaunchedMunitionRecord.cs similarity index 100% rename from CSharpDis7/LaunchedMunitionRecord.cs rename to Libs/CSharpDis7/LaunchedMunitionRecord.cs diff --git a/CSharpDis7/LayerHeader.cs b/Libs/CSharpDis7/LayerHeader.cs similarity index 100% rename from CSharpDis7/LayerHeader.cs rename to Libs/CSharpDis7/LayerHeader.cs diff --git a/CSharpDis7/LinearObjectStatePdu.cs b/Libs/CSharpDis7/LinearObjectStatePdu.cs similarity index 100% rename from CSharpDis7/LinearObjectStatePdu.cs rename to Libs/CSharpDis7/LinearObjectStatePdu.cs diff --git a/CSharpDis7/LinearSegmentParameter.cs b/Libs/CSharpDis7/LinearSegmentParameter.cs similarity index 100% rename from CSharpDis7/LinearSegmentParameter.cs rename to Libs/CSharpDis7/LinearSegmentParameter.cs diff --git a/CSharpDis7/LiveEntityIdentifier.cs b/Libs/CSharpDis7/LiveEntityIdentifier.cs similarity index 100% rename from CSharpDis7/LiveEntityIdentifier.cs rename to Libs/CSharpDis7/LiveEntityIdentifier.cs diff --git a/CSharpDis7/LiveEntityPdu.cs b/Libs/CSharpDis7/LiveEntityPdu.cs similarity index 100% rename from CSharpDis7/LiveEntityPdu.cs rename to Libs/CSharpDis7/LiveEntityPdu.cs diff --git a/CSharpDis7/LiveSimulationAddress.cs b/Libs/CSharpDis7/LiveSimulationAddress.cs similarity index 100% rename from CSharpDis7/LiveSimulationAddress.cs rename to Libs/CSharpDis7/LiveSimulationAddress.cs diff --git a/CSharpDis7/LogisticsFamilyPdu.cs b/Libs/CSharpDis7/LogisticsFamilyPdu.cs similarity index 100% rename from CSharpDis7/LogisticsFamilyPdu.cs rename to Libs/CSharpDis7/LogisticsFamilyPdu.cs diff --git a/CSharpDis7/MineEntityIdentifier.cs b/Libs/CSharpDis7/MineEntityIdentifier.cs similarity index 100% rename from CSharpDis7/MineEntityIdentifier.cs rename to Libs/CSharpDis7/MineEntityIdentifier.cs diff --git a/CSharpDis7/MinefieldFamilyPdu.cs b/Libs/CSharpDis7/MinefieldFamilyPdu.cs similarity index 100% rename from CSharpDis7/MinefieldFamilyPdu.cs rename to Libs/CSharpDis7/MinefieldFamilyPdu.cs diff --git a/CSharpDis7/MinefieldIdentifier.cs b/Libs/CSharpDis7/MinefieldIdentifier.cs similarity index 100% rename from CSharpDis7/MinefieldIdentifier.cs rename to Libs/CSharpDis7/MinefieldIdentifier.cs diff --git a/CSharpDis7/MinefieldResponseNackPdu.cs b/Libs/CSharpDis7/MinefieldResponseNackPdu.cs similarity index 100% rename from CSharpDis7/MinefieldResponseNackPdu.cs rename to Libs/CSharpDis7/MinefieldResponseNackPdu.cs diff --git a/CSharpDis7/MinefieldStatePdu.cs b/Libs/CSharpDis7/MinefieldStatePdu.cs similarity index 100% rename from CSharpDis7/MinefieldStatePdu.cs rename to Libs/CSharpDis7/MinefieldStatePdu.cs diff --git a/CSharpDis7/ModulationParameters.cs b/Libs/CSharpDis7/ModulationParameters.cs similarity index 100% rename from CSharpDis7/ModulationParameters.cs rename to Libs/CSharpDis7/ModulationParameters.cs diff --git a/CSharpDis7/ModulationType.cs b/Libs/CSharpDis7/ModulationType.cs similarity index 100% rename from CSharpDis7/ModulationType.cs rename to Libs/CSharpDis7/ModulationType.cs diff --git a/CSharpDis7/Munition.cs b/Libs/CSharpDis7/Munition.cs similarity index 100% rename from CSharpDis7/Munition.cs rename to Libs/CSharpDis7/Munition.cs diff --git a/CSharpDis7/MunitionDescriptor.cs b/Libs/CSharpDis7/MunitionDescriptor.cs similarity index 100% rename from CSharpDis7/MunitionDescriptor.cs rename to Libs/CSharpDis7/MunitionDescriptor.cs diff --git a/CSharpDis7/MunitionReload.cs b/Libs/CSharpDis7/MunitionReload.cs similarity index 100% rename from CSharpDis7/MunitionReload.cs rename to Libs/CSharpDis7/MunitionReload.cs diff --git a/CSharpDis7/NamedLocationIdentification.cs b/Libs/CSharpDis7/NamedLocationIdentification.cs similarity index 100% rename from CSharpDis7/NamedLocationIdentification.cs rename to Libs/CSharpDis7/NamedLocationIdentification.cs diff --git a/CSharpDis7/ObjectIdentifier.cs b/Libs/CSharpDis7/ObjectIdentifier.cs similarity index 100% rename from CSharpDis7/ObjectIdentifier.cs rename to Libs/CSharpDis7/ObjectIdentifier.cs diff --git a/CSharpDis7/ObjectType.cs b/Libs/CSharpDis7/ObjectType.cs similarity index 100% rename from CSharpDis7/ObjectType.cs rename to Libs/CSharpDis7/ObjectType.cs diff --git a/CSharpDis7/OneByteChunk.cs b/Libs/CSharpDis7/OneByteChunk.cs similarity index 100% rename from CSharpDis7/OneByteChunk.cs rename to Libs/CSharpDis7/OneByteChunk.cs diff --git a/CSharpDis7/OwnershipStatus.cs b/Libs/CSharpDis7/OwnershipStatus.cs similarity index 100% rename from CSharpDis7/OwnershipStatus.cs rename to Libs/CSharpDis7/OwnershipStatus.cs diff --git a/CSharpDis7/Pdu.cs b/Libs/CSharpDis7/Pdu.cs similarity index 100% rename from CSharpDis7/Pdu.cs rename to Libs/CSharpDis7/Pdu.cs diff --git a/CSharpDis7/PduContainer.cs b/Libs/CSharpDis7/PduContainer.cs similarity index 100% rename from CSharpDis7/PduContainer.cs rename to Libs/CSharpDis7/PduContainer.cs diff --git a/CSharpDis7/PduHeader.cs b/Libs/CSharpDis7/PduHeader.cs similarity index 100% rename from CSharpDis7/PduHeader.cs rename to Libs/CSharpDis7/PduHeader.cs diff --git a/CSharpDis7/PduStatus.cs b/Libs/CSharpDis7/PduStatus.cs similarity index 100% rename from CSharpDis7/PduStatus.cs rename to Libs/CSharpDis7/PduStatus.cs diff --git a/CSharpDis7/PduSuperclass.cs b/Libs/CSharpDis7/PduSuperclass.cs similarity index 100% rename from CSharpDis7/PduSuperclass.cs rename to Libs/CSharpDis7/PduSuperclass.cs diff --git a/CSharpDis7/PointObjectStatePdu.cs b/Libs/CSharpDis7/PointObjectStatePdu.cs similarity index 100% rename from CSharpDis7/PointObjectStatePdu.cs rename to Libs/CSharpDis7/PointObjectStatePdu.cs diff --git a/CSharpDis7/PropulsionSystemData.cs b/Libs/CSharpDis7/PropulsionSystemData.cs similarity index 100% rename from CSharpDis7/PropulsionSystemData.cs rename to Libs/CSharpDis7/PropulsionSystemData.cs diff --git a/CSharpDis7/RadioCommunicationsFamilyPdu.cs b/Libs/CSharpDis7/RadioCommunicationsFamilyPdu.cs similarity index 100% rename from CSharpDis7/RadioCommunicationsFamilyPdu.cs rename to Libs/CSharpDis7/RadioCommunicationsFamilyPdu.cs diff --git a/CSharpDis7/RadioIdentifier.cs b/Libs/CSharpDis7/RadioIdentifier.cs similarity index 100% rename from CSharpDis7/RadioIdentifier.cs rename to Libs/CSharpDis7/RadioIdentifier.cs diff --git a/CSharpDis7/RadioType.cs b/Libs/CSharpDis7/RadioType.cs similarity index 100% rename from CSharpDis7/RadioType.cs rename to Libs/CSharpDis7/RadioType.cs diff --git a/CSharpDis7/ReceiverPdu.cs b/Libs/CSharpDis7/ReceiverPdu.cs similarity index 100% rename from CSharpDis7/ReceiverPdu.cs rename to Libs/CSharpDis7/ReceiverPdu.cs diff --git a/CSharpDis7/RecordQueryReliablePdu.cs b/Libs/CSharpDis7/RecordQueryReliablePdu.cs similarity index 100% rename from CSharpDis7/RecordQueryReliablePdu.cs rename to Libs/CSharpDis7/RecordQueryReliablePdu.cs diff --git a/CSharpDis7/RecordQuerySpecification.cs b/Libs/CSharpDis7/RecordQuerySpecification.cs similarity index 100% rename from CSharpDis7/RecordQuerySpecification.cs rename to Libs/CSharpDis7/RecordQuerySpecification.cs diff --git a/CSharpDis7/RecordSpecification.cs b/Libs/CSharpDis7/RecordSpecification.cs similarity index 100% rename from CSharpDis7/RecordSpecification.cs rename to Libs/CSharpDis7/RecordSpecification.cs diff --git a/CSharpDis7/RecordSpecificationElement.cs b/Libs/CSharpDis7/RecordSpecificationElement.cs similarity index 100% rename from CSharpDis7/RecordSpecificationElement.cs rename to Libs/CSharpDis7/RecordSpecificationElement.cs diff --git a/CSharpDis7/Relationship.cs b/Libs/CSharpDis7/Relationship.cs similarity index 100% rename from CSharpDis7/Relationship.cs rename to Libs/CSharpDis7/Relationship.cs diff --git a/CSharpDis7/RemoveEntityPdu.cs b/Libs/CSharpDis7/RemoveEntityPdu.cs similarity index 100% rename from CSharpDis7/RemoveEntityPdu.cs rename to Libs/CSharpDis7/RemoveEntityPdu.cs diff --git a/CSharpDis7/RemoveEntityReliablePdu.cs b/Libs/CSharpDis7/RemoveEntityReliablePdu.cs similarity index 100% rename from CSharpDis7/RemoveEntityReliablePdu.cs rename to Libs/CSharpDis7/RemoveEntityReliablePdu.cs diff --git a/CSharpDis7/RepairCompletePdu.cs b/Libs/CSharpDis7/RepairCompletePdu.cs similarity index 100% rename from CSharpDis7/RepairCompletePdu.cs rename to Libs/CSharpDis7/RepairCompletePdu.cs diff --git a/CSharpDis7/RepairResponsePdu.cs b/Libs/CSharpDis7/RepairResponsePdu.cs similarity index 100% rename from CSharpDis7/RepairResponsePdu.cs rename to Libs/CSharpDis7/RepairResponsePdu.cs diff --git a/CSharpDis7/ResupplyOfferPdu.cs b/Libs/CSharpDis7/ResupplyOfferPdu.cs similarity index 100% rename from CSharpDis7/ResupplyOfferPdu.cs rename to Libs/CSharpDis7/ResupplyOfferPdu.cs diff --git a/CSharpDis7/ResupplyReceivedPdu.cs b/Libs/CSharpDis7/ResupplyReceivedPdu.cs similarity index 100% rename from CSharpDis7/ResupplyReceivedPdu.cs rename to Libs/CSharpDis7/ResupplyReceivedPdu.cs diff --git a/CSharpDis7/SecondaryOperationalData.cs b/Libs/CSharpDis7/SecondaryOperationalData.cs similarity index 100% rename from CSharpDis7/SecondaryOperationalData.cs rename to Libs/CSharpDis7/SecondaryOperationalData.cs diff --git a/CSharpDis7/SeesPdu.cs b/Libs/CSharpDis7/SeesPdu.cs similarity index 100% rename from CSharpDis7/SeesPdu.cs rename to Libs/CSharpDis7/SeesPdu.cs diff --git a/CSharpDis7/Sensor.cs b/Libs/CSharpDis7/Sensor.cs similarity index 100% rename from CSharpDis7/Sensor.cs rename to Libs/CSharpDis7/Sensor.cs diff --git a/CSharpDis7/SeparationVP.cs b/Libs/CSharpDis7/SeparationVP.cs similarity index 100% rename from CSharpDis7/SeparationVP.cs rename to Libs/CSharpDis7/SeparationVP.cs diff --git a/CSharpDis7/ServiceRequestPdu.cs b/Libs/CSharpDis7/ServiceRequestPdu.cs similarity index 100% rename from CSharpDis7/ServiceRequestPdu.cs rename to Libs/CSharpDis7/ServiceRequestPdu.cs diff --git a/CSharpDis7/SetDataPdu.cs b/Libs/CSharpDis7/SetDataPdu.cs similarity index 100% rename from CSharpDis7/SetDataPdu.cs rename to Libs/CSharpDis7/SetDataPdu.cs diff --git a/CSharpDis7/SetDataReliablePdu.cs b/Libs/CSharpDis7/SetDataReliablePdu.cs similarity index 100% rename from CSharpDis7/SetDataReliablePdu.cs rename to Libs/CSharpDis7/SetDataReliablePdu.cs diff --git a/CSharpDis7/SimulationAddress.cs b/Libs/CSharpDis7/SimulationAddress.cs similarity index 100% rename from CSharpDis7/SimulationAddress.cs rename to Libs/CSharpDis7/SimulationAddress.cs diff --git a/CSharpDis7/SimulationIdentifier.cs b/Libs/CSharpDis7/SimulationIdentifier.cs similarity index 100% rename from CSharpDis7/SimulationIdentifier.cs rename to Libs/CSharpDis7/SimulationIdentifier.cs diff --git a/CSharpDis7/SimulationManagementFamilyPdu.cs b/Libs/CSharpDis7/SimulationManagementFamilyPdu.cs similarity index 100% rename from CSharpDis7/SimulationManagementFamilyPdu.cs rename to Libs/CSharpDis7/SimulationManagementFamilyPdu.cs diff --git a/CSharpDis7/SimulationManagementPduHeader.cs b/Libs/CSharpDis7/SimulationManagementPduHeader.cs similarity index 100% rename from CSharpDis7/SimulationManagementPduHeader.cs rename to Libs/CSharpDis7/SimulationManagementPduHeader.cs diff --git a/CSharpDis7/SimulationManagementWithReliabilityFamilyPdu.cs b/Libs/CSharpDis7/SimulationManagementWithReliabilityFamilyPdu.cs similarity index 100% rename from CSharpDis7/SimulationManagementWithReliabilityFamilyPdu.cs rename to Libs/CSharpDis7/SimulationManagementWithReliabilityFamilyPdu.cs diff --git a/CSharpDis7/StandardVariableSpecification.cs b/Libs/CSharpDis7/StandardVariableSpecification.cs similarity index 100% rename from CSharpDis7/StandardVariableSpecification.cs rename to Libs/CSharpDis7/StandardVariableSpecification.cs diff --git a/CSharpDis7/StartResumePdu.cs b/Libs/CSharpDis7/StartResumePdu.cs similarity index 100% rename from CSharpDis7/StartResumePdu.cs rename to Libs/CSharpDis7/StartResumePdu.cs diff --git a/CSharpDis7/StartResumeReliablePdu.cs b/Libs/CSharpDis7/StartResumeReliablePdu.cs similarity index 100% rename from CSharpDis7/StartResumeReliablePdu.cs rename to Libs/CSharpDis7/StartResumeReliablePdu.cs diff --git a/CSharpDis7/StopFreezePdu.cs b/Libs/CSharpDis7/StopFreezePdu.cs similarity index 100% rename from CSharpDis7/StopFreezePdu.cs rename to Libs/CSharpDis7/StopFreezePdu.cs diff --git a/CSharpDis7/StopFreezeReliablePdu.cs b/Libs/CSharpDis7/StopFreezeReliablePdu.cs similarity index 100% rename from CSharpDis7/StopFreezeReliablePdu.cs rename to Libs/CSharpDis7/StopFreezeReliablePdu.cs diff --git a/CSharpDis7/StorageFuel.cs b/Libs/CSharpDis7/StorageFuel.cs similarity index 100% rename from CSharpDis7/StorageFuel.cs rename to Libs/CSharpDis7/StorageFuel.cs diff --git a/CSharpDis7/StorageFuelReload.cs b/Libs/CSharpDis7/StorageFuelReload.cs similarity index 100% rename from CSharpDis7/StorageFuelReload.cs rename to Libs/CSharpDis7/StorageFuelReload.cs diff --git a/CSharpDis7/SupplyQuantity.cs b/Libs/CSharpDis7/SupplyQuantity.cs similarity index 100% rename from CSharpDis7/SupplyQuantity.cs rename to Libs/CSharpDis7/SupplyQuantity.cs diff --git a/CSharpDis7/SyntheticEnvironmentFamilyPdu.cs b/Libs/CSharpDis7/SyntheticEnvironmentFamilyPdu.cs similarity index 100% rename from CSharpDis7/SyntheticEnvironmentFamilyPdu.cs rename to Libs/CSharpDis7/SyntheticEnvironmentFamilyPdu.cs diff --git a/CSharpDis7/SystemIdentifier.cs b/Libs/CSharpDis7/SystemIdentifier.cs similarity index 100% rename from CSharpDis7/SystemIdentifier.cs rename to Libs/CSharpDis7/SystemIdentifier.cs diff --git a/CSharpDis7/TotalRecordSets.cs b/Libs/CSharpDis7/TotalRecordSets.cs similarity index 100% rename from CSharpDis7/TotalRecordSets.cs rename to Libs/CSharpDis7/TotalRecordSets.cs diff --git a/CSharpDis7/TrackJamData.cs b/Libs/CSharpDis7/TrackJamData.cs similarity index 100% rename from CSharpDis7/TrackJamData.cs rename to Libs/CSharpDis7/TrackJamData.cs diff --git a/CSharpDis7/TwoByteChunk.cs b/Libs/CSharpDis7/TwoByteChunk.cs similarity index 100% rename from CSharpDis7/TwoByteChunk.cs rename to Libs/CSharpDis7/TwoByteChunk.cs diff --git a/CSharpDis7/UAFundamentalParameter.cs b/Libs/CSharpDis7/UAFundamentalParameter.cs similarity index 100% rename from CSharpDis7/UAFundamentalParameter.cs rename to Libs/CSharpDis7/UAFundamentalParameter.cs diff --git a/CSharpDis7/UaPdu.cs b/Libs/CSharpDis7/UaPdu.cs similarity index 100% rename from CSharpDis7/UaPdu.cs rename to Libs/CSharpDis7/UaPdu.cs diff --git a/CSharpDis7/UnattachedIdentifier.cs b/Libs/CSharpDis7/UnattachedIdentifier.cs similarity index 100% rename from CSharpDis7/UnattachedIdentifier.cs rename to Libs/CSharpDis7/UnattachedIdentifier.cs diff --git a/CSharpDis7/UnsignedDISInteger.cs b/Libs/CSharpDis7/UnsignedDISInteger.cs similarity index 100% rename from CSharpDis7/UnsignedDISInteger.cs rename to Libs/CSharpDis7/UnsignedDISInteger.cs diff --git a/CSharpDis7/VariableDatum.cs b/Libs/CSharpDis7/VariableDatum.cs similarity index 100% rename from CSharpDis7/VariableDatum.cs rename to Libs/CSharpDis7/VariableDatum.cs diff --git a/CSharpDis7/VariableParameter.cs b/Libs/CSharpDis7/VariableParameter.cs similarity index 100% rename from CSharpDis7/VariableParameter.cs rename to Libs/CSharpDis7/VariableParameter.cs diff --git a/CSharpDis7/VariableTransmitterParameters.cs b/Libs/CSharpDis7/VariableTransmitterParameters.cs similarity index 100% rename from CSharpDis7/VariableTransmitterParameters.cs rename to Libs/CSharpDis7/VariableTransmitterParameters.cs diff --git a/CSharpDis7/Vector2Float.cs b/Libs/CSharpDis7/Vector2Float.cs similarity index 100% rename from CSharpDis7/Vector2Float.cs rename to Libs/CSharpDis7/Vector2Float.cs diff --git a/CSharpDis7/Vector3Double.cs b/Libs/CSharpDis7/Vector3Double.cs similarity index 100% rename from CSharpDis7/Vector3Double.cs rename to Libs/CSharpDis7/Vector3Double.cs diff --git a/CSharpDis7/Vector3Float.cs b/Libs/CSharpDis7/Vector3Float.cs similarity index 100% rename from CSharpDis7/Vector3Float.cs rename to Libs/CSharpDis7/Vector3Float.cs diff --git a/CSharpDis7/VectoringNozzleSystem.cs b/Libs/CSharpDis7/VectoringNozzleSystem.cs similarity index 100% rename from CSharpDis7/VectoringNozzleSystem.cs rename to Libs/CSharpDis7/VectoringNozzleSystem.cs diff --git a/CSharpDis7/WarfareFamilyPdu.cs b/Libs/CSharpDis7/WarfareFamilyPdu.cs similarity index 100% rename from CSharpDis7/WarfareFamilyPdu.cs rename to Libs/CSharpDis7/WarfareFamilyPdu.cs From 8e8462a52de0887ee50c139cb97b6824082e32a6 Mon Sep 17 00:00:00 2001 From: Nicolas Baudrey Date: Sat, 9 Oct 2021 10:10:00 +0200 Subject: [PATCH 05/25] [BLD] Move all samples to a dedicated directory --- .../bin/Debug/OpenDis.Demo.vshost.exe | Bin 11600 -> 0 bytes .../Debug/OpenDis.Demo.vshost.exe.manifest | 11 - .../Debug/OpenDis.Demo_MarkupCompile.i.cache | 20 - .../Debug/OpenDis.Demo_MarkupCompile.i.lref | 4 - .../EspduReceiver/EspduReceiver.cs | 350 +++++++-------- .../OpenDis.EspduReceiver.csproj | 124 +++--- .../EspduReceiver/Properties/AssemblyInfo.cs | 72 +-- .../EspduSender/EspduSender.cs | 418 +++++++++--------- .../EspduSender/OpenDis.EspduSender.csproj | 124 +++--- .../EspduSender/Properties/AssemblyInfo.cs | 72 +-- .../OpenDis.Demo/App.xaml | 16 +- .../OpenDis.Demo/App.xaml.cs | 32 +- .../OpenDis.Demo/MainWindow.xaml | 262 +++++------ .../OpenDis.Demo/MainWindow.xaml.cs | 294 ++++++------ .../OpenDis.Demo/OpenDis.Demo.csproj | 216 ++++----- .../OpenDis.Demo/Properties/AssemblyInfo.cs | 110 ++--- .../Properties/Resources.Designer.cs | 142 +++--- .../OpenDis.Demo/Properties/Resources.resx | 232 +++++----- .../Properties/Settings.Designer.cs | 60 +-- .../OpenDis.Demo/Properties/Settings.settings | 12 +- 20 files changed, 1268 insertions(+), 1303 deletions(-) delete mode 100644 Libs/CsharpDis6/OpenDis.Demo/bin/Debug/OpenDis.Demo.vshost.exe delete mode 100644 Libs/CsharpDis6/OpenDis.Demo/bin/Debug/OpenDis.Demo.vshost.exe.manifest delete mode 100644 Libs/CsharpDis6/OpenDis.Demo/obj/x86/Debug/OpenDis.Demo_MarkupCompile.i.cache delete mode 100644 Libs/CsharpDis6/OpenDis.Demo/obj/x86/Debug/OpenDis.Demo_MarkupCompile.i.lref rename {Libs/CsharpDis6 => Samples}/EspduReceiver/EspduReceiver.cs (97%) rename {Libs/CsharpDis6 => Samples}/EspduReceiver/OpenDis.EspduReceiver.csproj (97%) rename {Libs/CsharpDis6 => Samples}/EspduReceiver/Properties/AssemblyInfo.cs (97%) rename {Libs/CsharpDis6 => Samples}/EspduSender/EspduSender.cs (97%) rename {Libs/CsharpDis6 => Samples}/EspduSender/OpenDis.EspduSender.csproj (97%) rename {Libs/CsharpDis6 => Samples}/EspduSender/Properties/AssemblyInfo.cs (97%) rename {Libs/CsharpDis6 => Samples}/OpenDis.Demo/App.xaml (97%) rename {Libs/CsharpDis6 => Samples}/OpenDis.Demo/App.xaml.cs (94%) rename {Libs/CsharpDis6 => Samples}/OpenDis.Demo/MainWindow.xaml (98%) rename {Libs/CsharpDis6 => Samples}/OpenDis.Demo/MainWindow.xaml.cs (97%) rename {Libs/CsharpDis6 => Samples}/OpenDis.Demo/OpenDis.Demo.csproj (97%) rename {Libs/CsharpDis6 => Samples}/OpenDis.Demo/Properties/AssemblyInfo.cs (97%) rename {Libs/CsharpDis6 => Samples}/OpenDis.Demo/Properties/Resources.Designer.cs (97%) rename {Libs/CsharpDis6 => Samples}/OpenDis.Demo/Properties/Resources.resx (97%) rename {Libs/CsharpDis6 => Samples}/OpenDis.Demo/Properties/Settings.Designer.cs (97%) rename {Libs/CsharpDis6 => Samples}/OpenDis.Demo/Properties/Settings.settings (97%) diff --git a/Libs/CsharpDis6/OpenDis.Demo/bin/Debug/OpenDis.Demo.vshost.exe b/Libs/CsharpDis6/OpenDis.Demo/bin/Debug/OpenDis.Demo.vshost.exe deleted file mode 100644 index bb84a51ac4f20534146c09f2fd9c928d15a903b2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 11600 zcmeG?2~<)?tG75|5OPOMcC{DsnWb(K|p-9Gz zCYX{WA(Jm;dIfQqiJ};SrLL}G(n&hl8zFy;j>apOj_;bS1<^27Oc^0Hz(7W(Czb%1 z@VUW90w!d%4!)s8@lWO`4L-o%@Fz33`3PxI|9bMyD%lrO3DBh`b_0^65V}%-gn|b^ zWm*RtcF<41tL^XP%x>1H-pWw-?KO@iBWB8={z?S^v{7pXzI!Jo%+8WXB|Jbhzz%$;+6FHiiU_~N3I z3EN^9UtHuj{7z%|8vGH<%)(m1Ea7^jMXH#Y>ya2$DiaMPF|c+I&NvSYVbqF9*~#r#ILj8dWjm251tb7C6J%*T7omHQ z|3QZ`M<(G55b{zd>0OBcT-q z$5D_+!Bh&aq+kUFn<&Vjy~Gre83lc5nD5M>aGT=)?fZgOM>nV`Kqv zI0bDf=!~2J||60WgZ0+&DGHhBHk2136`;HfS!lVrq~L;Qp?LLw4#2#K5zlOj)1BCy1d77#r{JpDO<77O@Xp{xhn!4xZ$h!p@= zFfDSIN{Pg1K}r~3)_Zst+KZ6#Bz!U1wTDViV=OmGAajRFq+hp^({qI>UpIiLVv=~h zxay+kDH5kh_;K;yXzG;G*Tj7I0^&~_{e-b1Ng|izo-6pOSGO>vq9h3^M-Ep;2n2i? z;VA;Ob9u6_h6EBx&>#pUI*0gkg>gyTxL$JaT8kGU;HGf+ao-Tzcp`=5x@Rq2jC5KA zDL81CbnCa%R49SU_|be|v6omoM|<(PaYE7-c~ay>L?^|?aX&MN4jh;n*m;M|z$BDt zLV?wpRH>I1yLLe*EkY6~5>Aj35>FW2!};IZ6RZg`l4U+2WpPr3Jg{aVFJ1yBKdala z!{Q|bH-_8;-f}`H`;N<(`ErFZ0s_H?nELq^^AiFst^h{IAPxchk}HJW2r40D)L?1| zN5+-NKyKu|BH5O9=>_$oO%{WM1RNkt$|LX>+U#yGW4SL{W#Dq<^-?pWTs_=s z+sMi))7<${{lWc@(;pS&e4xt(nf|K_4fiC?yA3+_%vvY*l!4@4iv}=BM|c$3*(8Ejv=a+B_=Ss*JEQXuIqpixQ3a_4(W> zyEKm#xtQrM)b=Fwn2Ghv>;fV#EMt&fQn_Nx)Omd`sf+@qw7IY%8d=~wU}z94&^xT# z?O1hMy$gBFV<=2Rx4X%UFBOAX2ZDn_3e*V(5c0klQtL7p%59=S80yz;986D8eMaINL%0wc8G%|*e$MEHmK74Q% z!Aa2qJ`Z*(ODar2$dFuS7_I+z60R6Fg7-`wLHR_mTT!wUQ^u&61Y`_zfv7uESG-PI zL=b$z5K9F^02Rvd;_$Xby>8#V-GB3vXN;}hekVw2b}%EC!sUQGG$K1h+L_tfM2e!P zOCtHUjw8EKEOAUULMMT4SGq-(nO(Kd^R74+p{XEA@0kR39#JP2L9k*3WE=-K98<(} zqe}k)-;w}E#jg-2r+wZ^?F0lS_7$G&N8TMKx*>Foia|&WS+)ZhjyMosg(Ghi3MD_V zlt8Ha0ra7)2BA8})Ao*tk&JOg@{U+nBp*Xj>4k4odB9b z6pKVuFB2+W3WHWIV5QK`MKb6of?7waV3?3D4|tM6FFxSozD0@ZgTuNz{_IdRDFbAO z)M2bA&`X3r0!GVV7PvbAj0da~>bA%RB0vJogpW-A5a@S}5mS7nfE2jYc(OeJxZnXV z z&=#?g6V$=wK;MbkDI7SI!WeQ^CS`v~K!cP!6Ls~m0g03HCzBh+@8@%Usja`( zRUhEh9p)q@kq8zn0BMtae6H~x8XbD4CjSrk|1SY%$D7f!QUCv!`kxhkEdlC{lSV^$ z#(*)3eJrzmv)`&?O0<%U0XU$nXc)#;#rr5K4A-F31}PvsUQuPZBF4Zn9B3G$Bm$p^ z+xEg};-+*Al`u;U)AZq(Ape5E<&Z}jc}SDTg)8}o8}*{e(B;nwSKrv~9H~AQdwjF4 zytOrcZE;D4HXF}iOv5wi{v~u8Mx&{)%KP37{uH^cp}uRh0dOQ{563MO=@S^LIzzi} z*-Ueu1(WUMCW9mBJY@F8S7T}Q7cHV+lSJGOh0EM6pm>nUzHKpl6$ z9c>`lvT>V;0qSfUsM-S(QUsnti42G+>d+=|*gAM$lA^MX%6D98JY3pjA|YD~*C3Hf zI!d8LOrl5_)5VyI&Yv)5j2m?@HmHX&^2W*}Z{k3e8SLqfXJA8d^=>_4m;$0_V49#^ zOof(#VW>J~&gG~|Z>JyZwzIFlH?{XmuKzHk_$TifPtW_@znJ%9f`4fAtJSn01FrfB ztW8{r!)J`EReh`HB{h53l@(|NA2%KTqU3jV<00qWP1>SYpB?DEdD*xjtD7pVhyFNj zM5^doKSSp{CoQMuI*V7a&Lc3JPwm5ex9k;QIcq=E?BUJJcpq7ko;81Q#f$yRH=cFe z5b>h8C`l0N{0;jDkyEj#=T`F^;m(Gk`yGp8_z3auXm&^k}+WEW& zt7|si1E186D{>Cz=$(lTNh#Zrb28j@eMWGuP+_y>1}xWTU-akX<*7w!&MZO!KM`yl<0Iky_CdajPx~l`pPt| z$>+pR`I2Jekh!{h0v3O2*dY1m?JYwS9YKpmkIwCT-t`Ud(QP+eljKnc!#*(-a5`kT z0g2FH^k?Wc8k~_M@#J04uOACs6XM0%=*4@6tCG!{3|R?3Oanu+%XiKlXZGUE z!9ZE*#9=baq{{4%<^IcOqJRgdAL`xYAJ-^NeM$2?aXP2*9jEc=`nqt@GoIHrFZ877 z5D5;-{if^h*b5Dr3*JQX3MwLMovuvFn~*ig_O zk_@%dsf#MDsyA$ID8J6!cNiZypQ)>Ec`)>qd&?C3ZlO6p=ZN^1ms`uvq8sKAQ zfscvq^f6rQtSjXuHGA(P1@JTf#$8Q194GKG4mLJ+xQ!F(aM-wQcNI_1{9o}n>XhMt zUu6UY1&4MyDEgl`sDJ5u>hJ|0yd^(y5{efDA>;Z(7Y$r?PjYj7DP5Xj_FIuQ;#||u z&=`HjptkOe`hci{cqM?Z7vhf99GoD>l0v+ePeXBU3qPaY&~t<=wFG+B6+ z#7wd_Toon!sa($~gE+SJV0lvRz}B3Vx@ML0%;cLcIyzbFJj7-Qx%H5C{?KB zV)bs>V(P#!&?I*~Y-FW0>YOq#X6WJl)4sj!y~u4pgyDia<4z?GCHC32@iLisl(jWa zB48zUKl$@SiPqu-K8dx4=Na<-T59ddf#ZY)DBQQpJ7O4PG(HMRG=3gh!hRVYf4>Vg|mrXkTWVH8ZMCy}ER7;eB(l^wQ%yM`u5I9&Q(rmhn*QiiF;(9r&nOJ#V&GkQz7Xqj0TK z^O@lhdg@LU(>`AR#3-X}yxO*SV{P4$>0!?7srRge4bKBC^T#* z8ujN(wwQ*TObBqI$!owPV^5*ifid&vi=Rmq1C#e1#Vx2JfMM)~-!tV!vGuFB3ApEfFq{p}!dMD5Lx^n8<%5`h3 zY-+WGLQiHscD23c$1XJAw=||@NN`ro(edZ!DZG1{bZF5}KU~_$7st*V7JGkR_0#zW znx2$>)ZU~zX{d$uS+{H9jKT7~i7|=e!frG_zjb(h=1*z2=lRndmcOnqRt`6eAKP@T zULI*ZXP+sfDtz*Eecq?E)X`5aF-!xTl4VL!MXRyOUndaGYI)>Z zu(EiD##GB7z36E+#TPOIhYyX6_g-|%I!h~f&-=ZD@&!*!zt?%!pmk-w#;XjubmWN@ zvq~GMDLzuD$hNJ1w|sJzd)CDH%Y_v~tb7|qYdu@0-=Al;IHAMeWMJmtnN7asag_gW zL_1oFeLAlk{V+0wLA}Bq(fzv%BYsbNImS0lGAXnxP6jvn0VS z#1pxH9tnLFM)iuE;l!sL)bfD7?4zl{wS5Y+0p(P_1#@O>=Il@ACm``x-gY^mDc=9xt-l|Et>xj!WIP z1-I_UI^@3^TC}#YA~`H%)Mbg+9^*IQpvu5O6?TP3ipxh(;ZdJ2UDH1o9)0Bq$neM! zq9J>5O*U-GN0Gr1RM}(|Pp|wZ!lPlhDV(|55w>#zR?u zTwZiW!KDt92M?pa%c}05oj>hRl!evkvztGzim*2b>R<18)sQ>JWn^WzZolLe&RT7# zV%aZI4&}pYc~-u<=@ae>TDJ{fk)NwEcO%-IY@)QvQcT}(X|iO^t>dLb#~=2eq?jBg z@vLx-X0QbUz#${W|Dpclw{v_*5rdhcl@VV|HTHR zycK$~{f}QRhRQV}l%a z_&OAc+Zt`Rn&<6T-6zvAudYnGW7+4IMM1Y$jagZ3r=8xa)ogIHCgyBlu(SWdj{}=c zcU~&WX&ry;*JtnD2Si~HzssE?pY^M#J%_n{+1k7{ho=rI>4%%Nl+NWYHL$Sw(QnBp z&&&l+Ze7Z34zjX${@vXjD?@6kFE0BHKI4%;yW-`D{3we%hw|qw?I*9A_Ca@8nMj-G zVLoxxLgz(p_o|OK7JjGi6P{4eP#6%dfKI=|-Mj;D56rE5t@W&V&~0MpNl^k?eUsD@or(o=%<5Y<=i#wO)^B40xI9 zd0bOvYv8?G`+?W!9>`$BRsYAMOGaLJDR*7+mp%W0d-Wor22q<`$)Gg7 zKl^2B1Kb=sBlyp*1HDZPo{$(B7^<@0ds1VI&%VctZnxQM6_;AD?KkZ_-IB+AQuFR- z*T@4KKV+yLG;cjqr21gk0kg5c?SFGQ1q0uRBF8snjVnaH&pIK9b_#y4rru^YJE+h7&5x zs9AY=_}k`&Dd{i6GvD}@ZFQneOa0+~>&jEiPnP;qT3sG&zv|har+8omHf8dz22H=; z|G3?jRGN1{Sif4WDVp0bTj*@RtN(Vr;u|t(L+}jR;2s?)vNLFEfKvX)jqS?= z5R9$oSXSzMt1XGb^?I14vsJq*N*EYgw<#&GH6ftVGuOHLi0kD!oT# zDkga({4jf8)|P2o8}DIStxW-pd_APHW6y?rQ=9OU`%I(z6l^RuzPlq2jlZ((H}0Xz zol`F;9lGF}@iatK!0=jeLS@HJSJ!c7;z64O-#&Dg&#>pd-(SCc=u5RdrFLto)@OT1 zr0ohy+M*GwvZH-+f&1KvF_Z3; - - - - - - - - - - diff --git a/Libs/CsharpDis6/OpenDis.Demo/obj/x86/Debug/OpenDis.Demo_MarkupCompile.i.cache b/Libs/CsharpDis6/OpenDis.Demo/obj/x86/Debug/OpenDis.Demo_MarkupCompile.i.cache deleted file mode 100644 index 5aea8fe..0000000 --- a/Libs/CsharpDis6/OpenDis.Demo/obj/x86/Debug/OpenDis.Demo_MarkupCompile.i.cache +++ /dev/null @@ -1,20 +0,0 @@ -OpenDis.Demo - - -winexe -C# -.cs -G:\Temp\OpenDis_v4\OpenDis.Demo\obj\x86\Debug\ -OpenDis.Demo -none -false -DEBUG;TRACE -G:\Temp\OpenDis_v4\OpenDis.Demo\App.xaml -11151548125 - -61412217032 -13151655058 -MainWindow.xaml; - -True - diff --git a/Libs/CsharpDis6/OpenDis.Demo/obj/x86/Debug/OpenDis.Demo_MarkupCompile.i.lref b/Libs/CsharpDis6/OpenDis.Demo/obj/x86/Debug/OpenDis.Demo_MarkupCompile.i.lref deleted file mode 100644 index d143884..0000000 --- a/Libs/CsharpDis6/OpenDis.Demo/obj/x86/Debug/OpenDis.Demo_MarkupCompile.i.lref +++ /dev/null @@ -1,4 +0,0 @@ - - -FG:\Temp\OpenDis_v4\OpenDis.Demo\MainWindow.xaml - diff --git a/Libs/CsharpDis6/EspduReceiver/EspduReceiver.cs b/Samples/EspduReceiver/EspduReceiver.cs similarity index 97% rename from Libs/CsharpDis6/EspduReceiver/EspduReceiver.cs rename to Samples/EspduReceiver/EspduReceiver.cs index 0b6f61f..0f68af7 100644 --- a/Libs/CsharpDis6/EspduReceiver/EspduReceiver.cs +++ b/Samples/EspduReceiver/EspduReceiver.cs @@ -1,175 +1,175 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Net; -using System.Net.Sockets; -using System.Text; -using System.IO; -using System.Threading; -using OpenDis.Dis1998; -using OpenDis.Core; -using OpenDis.Enumerations; - -namespace EspduReceiver -{ - class EspduReceiver - { - private static IPAddress mcastAddress; - private static int mcastPort, broadcastPort; - private static Socket mcastSocket; - private static MulticastOption mcastOption; - private static EndPoint remoteEP; - - private static void MulticastOptionProperties() - { - Console.WriteLine("Current multicast group is: " + mcastOption.Group); - Console.WriteLine("Current multicast local address is: " + mcastOption.LocalAddress); - } - - private static void StartMulticast() - { - try - { - mcastSocket = new Socket(AddressFamily.InterNetwork, - SocketType.Dgram, - ProtocolType.Udp); - - //Console.Write("Enter the local IP address: "); //In case multiple NICs - //IPAddress localIPAddr = IPAddress.Parse(Console.ReadLine()); - //IPAddress localIPAddr = IPAddress.Parse("x.x.x.x"); //Easier than entering each time - - IPAddress localIPAddr = IPAddress.Any; //Easiest - - EndPoint localEP = (EndPoint)new IPEndPoint(localIPAddr, 0); - - try - { - mcastSocket.Bind(localEP); - } - catch (System.Net.Sockets.SocketException e) //If port busy - { - Console.WriteLine(e.ToString()); - mcastSocket.Close(); - Console.Write("Unable to Bind port ----> HIT ENTER TO EXIT"); - Console.ReadLine(); - System.Environment.Exit(1); - } - - // Define a MulticastOption object specifying the multicast group - // address and the local IPAddress. - // The multicast group address is the same as the address used by the server. - mcastOption = new MulticastOption(mcastAddress, localIPAddr); - - mcastSocket.SetSocketOption(SocketOptionLevel.IP, - SocketOptionName.AddMembership, - mcastOption); - - - // Display MulticastOption properties. - MulticastOptionProperties(); - - //remoteEP = new IPEndPoint(mcastAddress, mcastPort); - remoteEP = (EndPoint)new IPEndPoint(IPAddress.Any, mcastPort); //Good for general Multicast - - } - - catch (Exception e) - { - Console.WriteLine(e.ToString()); - } - } - - private static void StartBroadcast() - { - try - { - remoteEP = (EndPoint)new IPEndPoint(IPAddress.Any, broadcastPort); - - mcastSocket = new Socket(AddressFamily.InterNetwork, - SocketType.Dgram, - ProtocolType.Udp); - - mcastSocket.ExclusiveAddressUse = false; - - mcastSocket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, true); - - mcastSocket.Bind(remoteEP); - - Console.WriteLine("Receive Broadcat UDP on Port: " + broadcastPort); - Console.WriteLine("----------------------------" ); - } - catch (Exception e) - { - Console.WriteLine(e.ToString()); - Console.Write("Error ----> HIT ENTER TO EXIT"); - Console.ReadLine(); - } - } - - private static void ReceiveBroadcastMessages() - { - bool done = false; - byte[] bytes = new Byte[10000]; - int length = 0; - - PduProcessor pduProcessor = new PduProcessor(); //PduProcessor could use some work and move towards all static methods (PduXmlDecode is instance method) - pduProcessor.Endian = Endian.Big; //DIS use Big Endian format - List pduList; - - try - { - while (!done) - { - Console.WriteLine("Waiting for packets......."); - Console.WriteLine("Enter ^C to terminate."); - - length = mcastSocket.ReceiveFrom(bytes, ref remoteEP); - - Console.WriteLine("Received broadcast from {0} :\n Bytes:{1}\n", remoteEP.ToString(),length); - Console.WriteLine("________________________________\n"); - - //Decode only 1 PDU - //Pdu pdu = PduProcessor.ConvertByteArrayToPdu1998(bytes[2], bytes, Endian.Big); - //Console.WriteLine("Received PDU Info {0} :\n ", pduProcessor.XmlDecodePdu(pdu)); - //Console.WriteLine("*******************************\n"); - - //Could be many PDU received in datagram packet so be safe and get list - - pduList = pduProcessor.ProcessPdu(bytes, Endian.Big); - Console.WriteLine("Received PDU List Size:[{0}]\n ", pduList.Count); - Console.WriteLine("________________________________\n"); - foreach (object pduObj in pduList) - { - //Both of below work fine - //Console.WriteLine("Received PDU List Info {0} :\n ", PduProcessor.DecodePdu(pduObj).ToString()); - Console.WriteLine("Received PDU List XML Info {0} :\n ", pduProcessor.XmlDecodePdu(pduObj)); - Console.WriteLine("*******************************\n"); - } - - - } - - mcastSocket.Close(); - } - - catch (Exception e) - { - Console.WriteLine(e.ToString()); - } - } - - static void Main(string[] args) - { - mcastAddress = IPAddress.Parse("239.1.2.3"); - mcastPort = 62040; - broadcastPort = 62040; //3000 is default for DisMapper / VBS - - // Start a multicast or broadcast. - //StartMulticast(); // Mulicast only - StartBroadcast(); //Works with DisMapper and EspduSender when they are set to 'Broadcast' - - // Process Incomming messages. - ReceiveBroadcastMessages(); - } - } -} +using System; +using System.Collections.Generic; +using System.Linq; +using System.Net; +using System.Net.Sockets; +using System.Text; +using System.IO; +using System.Threading; +using OpenDis.Dis1998; +using OpenDis.Core; +using OpenDis.Enumerations; + +namespace EspduReceiver +{ + class EspduReceiver + { + private static IPAddress mcastAddress; + private static int mcastPort, broadcastPort; + private static Socket mcastSocket; + private static MulticastOption mcastOption; + private static EndPoint remoteEP; + + private static void MulticastOptionProperties() + { + Console.WriteLine("Current multicast group is: " + mcastOption.Group); + Console.WriteLine("Current multicast local address is: " + mcastOption.LocalAddress); + } + + private static void StartMulticast() + { + try + { + mcastSocket = new Socket(AddressFamily.InterNetwork, + SocketType.Dgram, + ProtocolType.Udp); + + //Console.Write("Enter the local IP address: "); //In case multiple NICs + //IPAddress localIPAddr = IPAddress.Parse(Console.ReadLine()); + //IPAddress localIPAddr = IPAddress.Parse("x.x.x.x"); //Easier than entering each time + + IPAddress localIPAddr = IPAddress.Any; //Easiest + + EndPoint localEP = (EndPoint)new IPEndPoint(localIPAddr, 0); + + try + { + mcastSocket.Bind(localEP); + } + catch (System.Net.Sockets.SocketException e) //If port busy + { + Console.WriteLine(e.ToString()); + mcastSocket.Close(); + Console.Write("Unable to Bind port ----> HIT ENTER TO EXIT"); + Console.ReadLine(); + System.Environment.Exit(1); + } + + // Define a MulticastOption object specifying the multicast group + // address and the local IPAddress. + // The multicast group address is the same as the address used by the server. + mcastOption = new MulticastOption(mcastAddress, localIPAddr); + + mcastSocket.SetSocketOption(SocketOptionLevel.IP, + SocketOptionName.AddMembership, + mcastOption); + + + // Display MulticastOption properties. + MulticastOptionProperties(); + + //remoteEP = new IPEndPoint(mcastAddress, mcastPort); + remoteEP = (EndPoint)new IPEndPoint(IPAddress.Any, mcastPort); //Good for general Multicast + + } + + catch (Exception e) + { + Console.WriteLine(e.ToString()); + } + } + + private static void StartBroadcast() + { + try + { + remoteEP = (EndPoint)new IPEndPoint(IPAddress.Any, broadcastPort); + + mcastSocket = new Socket(AddressFamily.InterNetwork, + SocketType.Dgram, + ProtocolType.Udp); + + mcastSocket.ExclusiveAddressUse = false; + + mcastSocket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, true); + + mcastSocket.Bind(remoteEP); + + Console.WriteLine("Receive Broadcat UDP on Port: " + broadcastPort); + Console.WriteLine("----------------------------" ); + } + catch (Exception e) + { + Console.WriteLine(e.ToString()); + Console.Write("Error ----> HIT ENTER TO EXIT"); + Console.ReadLine(); + } + } + + private static void ReceiveBroadcastMessages() + { + bool done = false; + byte[] bytes = new Byte[10000]; + int length = 0; + + PduProcessor pduProcessor = new PduProcessor(); //PduProcessor could use some work and move towards all static methods (PduXmlDecode is instance method) + pduProcessor.Endian = Endian.Big; //DIS use Big Endian format + List pduList; + + try + { + while (!done) + { + Console.WriteLine("Waiting for packets......."); + Console.WriteLine("Enter ^C to terminate."); + + length = mcastSocket.ReceiveFrom(bytes, ref remoteEP); + + Console.WriteLine("Received broadcast from {0} :\n Bytes:{1}\n", remoteEP.ToString(),length); + Console.WriteLine("________________________________\n"); + + //Decode only 1 PDU + //Pdu pdu = PduProcessor.ConvertByteArrayToPdu1998(bytes[2], bytes, Endian.Big); + //Console.WriteLine("Received PDU Info {0} :\n ", pduProcessor.XmlDecodePdu(pdu)); + //Console.WriteLine("*******************************\n"); + + //Could be many PDU received in datagram packet so be safe and get list + + pduList = pduProcessor.ProcessPdu(bytes, Endian.Big); + Console.WriteLine("Received PDU List Size:[{0}]\n ", pduList.Count); + Console.WriteLine("________________________________\n"); + foreach (object pduObj in pduList) + { + //Both of below work fine + //Console.WriteLine("Received PDU List Info {0} :\n ", PduProcessor.DecodePdu(pduObj).ToString()); + Console.WriteLine("Received PDU List XML Info {0} :\n ", pduProcessor.XmlDecodePdu(pduObj)); + Console.WriteLine("*******************************\n"); + } + + + } + + mcastSocket.Close(); + } + + catch (Exception e) + { + Console.WriteLine(e.ToString()); + } + } + + static void Main(string[] args) + { + mcastAddress = IPAddress.Parse("239.1.2.3"); + mcastPort = 62040; + broadcastPort = 62040; //3000 is default for DisMapper / VBS + + // Start a multicast or broadcast. + //StartMulticast(); // Mulicast only + StartBroadcast(); //Works with DisMapper and EspduSender when they are set to 'Broadcast' + + // Process Incomming messages. + ReceiveBroadcastMessages(); + } + } +} diff --git a/Libs/CsharpDis6/EspduReceiver/OpenDis.EspduReceiver.csproj b/Samples/EspduReceiver/OpenDis.EspduReceiver.csproj similarity index 97% rename from Libs/CsharpDis6/EspduReceiver/OpenDis.EspduReceiver.csproj rename to Samples/EspduReceiver/OpenDis.EspduReceiver.csproj index 359f94d..63684e3 100644 --- a/Libs/CsharpDis6/EspduReceiver/OpenDis.EspduReceiver.csproj +++ b/Samples/EspduReceiver/OpenDis.EspduReceiver.csproj @@ -1,63 +1,63 @@ - - - - Debug - x86 - 8.0.30703 - 2.0 - {70F94942-1466-4E6C-A2A3-89DB19C20159} - Exe - Properties - EspduReceiver - EspduReceiver - v4.0 - Client - 512 - - - x86 - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - x86 - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - - - - - - - {628EE35F-450A-49B2-BA46-04FABB66D0BF} - OpenDis - - - - + + + + Debug + x86 + 8.0.30703 + 2.0 + {70F94942-1466-4E6C-A2A3-89DB19C20159} + Exe + Properties + EspduReceiver + EspduReceiver + v4.0 + Client + 512 + + + x86 + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + x86 + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + {628EE35F-450A-49B2-BA46-04FABB66D0BF} + OpenDis + + + + \ No newline at end of file diff --git a/Libs/CsharpDis6/EspduReceiver/Properties/AssemblyInfo.cs b/Samples/EspduReceiver/Properties/AssemblyInfo.cs similarity index 97% rename from Libs/CsharpDis6/EspduReceiver/Properties/AssemblyInfo.cs rename to Samples/EspduReceiver/Properties/AssemblyInfo.cs index aebf68e..d9985b5 100644 --- a/Libs/CsharpDis6/EspduReceiver/Properties/AssemblyInfo.cs +++ b/Samples/EspduReceiver/Properties/AssemblyInfo.cs @@ -1,36 +1,36 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("EspduReceiver")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("EspduReceiver")] -[assembly: AssemblyCopyright("Copyright © 2017")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("b895fb76-1cfa-4ca3-a2ca-6eb63c18250f")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("EspduReceiver")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("EspduReceiver")] +[assembly: AssemblyCopyright("Copyright © 2017")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("b895fb76-1cfa-4ca3-a2ca-6eb63c18250f")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Libs/CsharpDis6/EspduSender/EspduSender.cs b/Samples/EspduSender/EspduSender.cs similarity index 97% rename from Libs/CsharpDis6/EspduSender/EspduSender.cs rename to Samples/EspduSender/EspduSender.cs index e6ffe60..f5982dd 100644 --- a/Libs/CsharpDis6/EspduSender/EspduSender.cs +++ b/Samples/EspduSender/EspduSender.cs @@ -1,210 +1,210 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Net; -using System.Net.Sockets; -using System.Text; -using System.IO; -using System.Threading; -using OpenDis.Dis1998; -using OpenDis.Core; -using OpenDis.Enumerations; - -namespace EspduSender -{ - class EspduSender - { - private static IPAddress mcastAddress; - private static int mcastPort, broadcastPort; - private static Socket mcastSocket; - private static MulticastOption mcastOption; - private static IPEndPoint endPoint; - - private static void MulticastOptionProperties() - { - Console.WriteLine("Current multicast group is: " + mcastOption.Group); - Console.WriteLine("Current multicast local address is: " + mcastOption.LocalAddress); - } - - private static void JoinMulticast() - { - try - { - mcastSocket = new Socket(AddressFamily.InterNetwork, - SocketType.Dgram, - ProtocolType.Udp); - - //Console.Write("Enter the local IP address: "); //In case multiple NICs - - //IPAddress localIPAddr = IPAddress.Parse(Console.ReadLine()); - IPAddress localIPAddr = IPAddress.Any; - - IPEndPoint localEP = new IPEndPoint(localIPAddr, 0); //Don't need to fully join, so can use on same computer as port already in use by receive. - - mcastSocket.Bind(localEP); - - // Define a MulticastOption object specifying the multicast group - // address and the local IPAddress. - // The multicast group address is the same as the address used by the server. - mcastOption = new MulticastOption(mcastAddress, localIPAddr); - - mcastSocket.SetSocketOption(SocketOptionLevel.IP, - SocketOptionName.AddMembership, - mcastOption); - - endPoint = new IPEndPoint(mcastAddress, mcastPort); - - // Display MulticastOption properties. - MulticastOptionProperties(); - } - - catch (Exception e) - { - Console.WriteLine(e.ToString()); - } - } - - private static void StartMulticast() - { - try - { - mcastSocket = new Socket(AddressFamily.InterNetwork, - SocketType.Dgram, - ProtocolType.Udp); - - //Console.Write("Enter the local IP address: "); - - //IPAddress localIPAddr = IPAddress.Parse(Console.ReadLine()); - IPAddress localIPAddr = IPAddress.Parse("172.19.36.86"); - - //IPAddress localIP = IPAddress.Any; - EndPoint localEP = (EndPoint)new IPEndPoint(localIPAddr, mcastPort); - - mcastSocket.Bind(localEP); - - // Define a MulticastOption object specifying the multicast group - // address and the local IPAddress. - // The multicast group address is the same as the address used by the server. - mcastOption = new MulticastOption(mcastAddress, localIPAddr); - - mcastSocket.SetSocketOption(SocketOptionLevel.IP, - SocketOptionName.AddMembership, - mcastOption); - - endPoint = new IPEndPoint(mcastAddress, mcastPort); - - // Display MulticastOption properties. - MulticastOptionProperties(); - } - - catch (Exception e) - { - Console.WriteLine(e.ToString()); - } - } - - private static void StartBroadcast() //Used to connect to DISMap or other broadcast receivers - { - try - { - mcastSocket = new Socket(AddressFamily.InterNetwork, - SocketType.Dgram, - ProtocolType.Udp); - - // Define a BroadcastOption object - mcastSocket.SetSocketOption(SocketOptionLevel.Socket, - SocketOptionName.Broadcast, - 1); - IPAddress localIPAddr = IPAddress.Parse("172.19.36.255"); - - endPoint = new IPEndPoint(IPAddress.Broadcast, broadcastPort); - //endPoint = new IPEndPoint(localIPAddr, broadcastPort); - } - - catch (Exception e) - { - Console.WriteLine(e.ToString()); - } - } - - private static void SendMessages(byte[] buf) - { - try - { - //Send multicast packets to the listener. - mcastSocket.SendTo(buf, endPoint); - - Console.WriteLine("Sent multicast packets......./n"); - } - catch (Exception e) - { - Console.WriteLine(e.ToString()); - } - } - - - static void Main(string[] args) - { - mcastAddress = IPAddress.Parse("239.1.2.3"); - mcastPort = 62040; - broadcastPort = 62040; //3000 for DisMapper default - OpenDis.Dis1998.EntityStatePdu espdu = new OpenDis.Dis1998.EntityStatePdu(); //Could use factory but easier this way - - //Alcatraz - double lat = 37.827; - double lon = -122.425; - - // Configure socket. - //JoinMulticast(); //Used to talk to C# receiver. No need to connect as we are just sending multicast - //StartMulticast(); //Least preffered - StartBroadcast(); //Used for DisMapper - - //Setup EntityState PDU - espdu.ExerciseID = 1; - EntityID eid = espdu.EntityID; - eid.Site = 0; - eid.Application = 1; - eid.Entity = 2; - // Set the entity type. SISO has a big list of enumerations, so that by - // specifying various numbers we can say this is an M1A2 American tank, - // the USS Enterprise, and so on. We'll make this a tank. There is a - // separate project elsehwhere in this project that implements DIS - // enumerations in C++ and Java, but to keep things simple we just use - // numbers here. - EntityType entityType = espdu.EntityType; - entityType.EntityKind = 1; // Platform (vs lifeform, munition, sensor, etc.) - entityType.Country = 255; // USA - entityType.Domain = 1; // Land (vs air, surface, subsurface, space) - entityType.Category = 1; // Tank - entityType.Subcategory = 1; // M1 Abrams - entityType.Specific = 3; // M1A2 Abrams - - for (int i = 0; i < 100; i++) - { - lon = lon + (i / 1000.0); - - double[] disCoordinates = CoordinateConversions.getXYZfromLatLonDegrees(lat, lon, 0.0); - - Vector3Double location = espdu.EntityLocation; - location.X = disCoordinates[0]; - location.Y = disCoordinates[1]; - location.Z = disCoordinates[2]; - espdu.Timestamp = DisTime.DisRelativeTimestamp; - - //Prepare output - DataOutputStream dos = new DataOutputStream(Endian.Big); - espdu.MarshalAutoLengthSet(dos); - - // Transmit broadcast messages - SendMessages(dos.ConvertToBytes()); - Console.Write("Message sent with TimeStamp [{0}] Time Of[{1}]", espdu.Timestamp, (espdu.Timestamp >> 1)); - - //Thread.Sleep(1000); - Console.Write("Hit Enter for Next PDU. Ctrl-C to Exit"); - Console.ReadLine(); - } - - mcastSocket.Close(); - } - } +using System; +using System.Collections.Generic; +using System.Linq; +using System.Net; +using System.Net.Sockets; +using System.Text; +using System.IO; +using System.Threading; +using OpenDis.Dis1998; +using OpenDis.Core; +using OpenDis.Enumerations; + +namespace EspduSender +{ + class EspduSender + { + private static IPAddress mcastAddress; + private static int mcastPort, broadcastPort; + private static Socket mcastSocket; + private static MulticastOption mcastOption; + private static IPEndPoint endPoint; + + private static void MulticastOptionProperties() + { + Console.WriteLine("Current multicast group is: " + mcastOption.Group); + Console.WriteLine("Current multicast local address is: " + mcastOption.LocalAddress); + } + + private static void JoinMulticast() + { + try + { + mcastSocket = new Socket(AddressFamily.InterNetwork, + SocketType.Dgram, + ProtocolType.Udp); + + //Console.Write("Enter the local IP address: "); //In case multiple NICs + + //IPAddress localIPAddr = IPAddress.Parse(Console.ReadLine()); + IPAddress localIPAddr = IPAddress.Any; + + IPEndPoint localEP = new IPEndPoint(localIPAddr, 0); //Don't need to fully join, so can use on same computer as port already in use by receive. + + mcastSocket.Bind(localEP); + + // Define a MulticastOption object specifying the multicast group + // address and the local IPAddress. + // The multicast group address is the same as the address used by the server. + mcastOption = new MulticastOption(mcastAddress, localIPAddr); + + mcastSocket.SetSocketOption(SocketOptionLevel.IP, + SocketOptionName.AddMembership, + mcastOption); + + endPoint = new IPEndPoint(mcastAddress, mcastPort); + + // Display MulticastOption properties. + MulticastOptionProperties(); + } + + catch (Exception e) + { + Console.WriteLine(e.ToString()); + } + } + + private static void StartMulticast() + { + try + { + mcastSocket = new Socket(AddressFamily.InterNetwork, + SocketType.Dgram, + ProtocolType.Udp); + + //Console.Write("Enter the local IP address: "); + + //IPAddress localIPAddr = IPAddress.Parse(Console.ReadLine()); + IPAddress localIPAddr = IPAddress.Parse("172.19.36.86"); + + //IPAddress localIP = IPAddress.Any; + EndPoint localEP = (EndPoint)new IPEndPoint(localIPAddr, mcastPort); + + mcastSocket.Bind(localEP); + + // Define a MulticastOption object specifying the multicast group + // address and the local IPAddress. + // The multicast group address is the same as the address used by the server. + mcastOption = new MulticastOption(mcastAddress, localIPAddr); + + mcastSocket.SetSocketOption(SocketOptionLevel.IP, + SocketOptionName.AddMembership, + mcastOption); + + endPoint = new IPEndPoint(mcastAddress, mcastPort); + + // Display MulticastOption properties. + MulticastOptionProperties(); + } + + catch (Exception e) + { + Console.WriteLine(e.ToString()); + } + } + + private static void StartBroadcast() //Used to connect to DISMap or other broadcast receivers + { + try + { + mcastSocket = new Socket(AddressFamily.InterNetwork, + SocketType.Dgram, + ProtocolType.Udp); + + // Define a BroadcastOption object + mcastSocket.SetSocketOption(SocketOptionLevel.Socket, + SocketOptionName.Broadcast, + 1); + IPAddress localIPAddr = IPAddress.Parse("172.19.36.255"); + + endPoint = new IPEndPoint(IPAddress.Broadcast, broadcastPort); + //endPoint = new IPEndPoint(localIPAddr, broadcastPort); + } + + catch (Exception e) + { + Console.WriteLine(e.ToString()); + } + } + + private static void SendMessages(byte[] buf) + { + try + { + //Send multicast packets to the listener. + mcastSocket.SendTo(buf, endPoint); + + Console.WriteLine("Sent multicast packets......./n"); + } + catch (Exception e) + { + Console.WriteLine(e.ToString()); + } + } + + + static void Main(string[] args) + { + mcastAddress = IPAddress.Parse("239.1.2.3"); + mcastPort = 62040; + broadcastPort = 62040; //3000 for DisMapper default + OpenDis.Dis1998.EntityStatePdu espdu = new OpenDis.Dis1998.EntityStatePdu(); //Could use factory but easier this way + + //Alcatraz + double lat = 37.827; + double lon = -122.425; + + // Configure socket. + //JoinMulticast(); //Used to talk to C# receiver. No need to connect as we are just sending multicast + //StartMulticast(); //Least preffered + StartBroadcast(); //Used for DisMapper + + //Setup EntityState PDU + espdu.ExerciseID = 1; + EntityID eid = espdu.EntityID; + eid.Site = 0; + eid.Application = 1; + eid.Entity = 2; + // Set the entity type. SISO has a big list of enumerations, so that by + // specifying various numbers we can say this is an M1A2 American tank, + // the USS Enterprise, and so on. We'll make this a tank. There is a + // separate project elsehwhere in this project that implements DIS + // enumerations in C++ and Java, but to keep things simple we just use + // numbers here. + EntityType entityType = espdu.EntityType; + entityType.EntityKind = 1; // Platform (vs lifeform, munition, sensor, etc.) + entityType.Country = 255; // USA + entityType.Domain = 1; // Land (vs air, surface, subsurface, space) + entityType.Category = 1; // Tank + entityType.Subcategory = 1; // M1 Abrams + entityType.Specific = 3; // M1A2 Abrams + + for (int i = 0; i < 100; i++) + { + lon = lon + (i / 1000.0); + + double[] disCoordinates = CoordinateConversions.getXYZfromLatLonDegrees(lat, lon, 0.0); + + Vector3Double location = espdu.EntityLocation; + location.X = disCoordinates[0]; + location.Y = disCoordinates[1]; + location.Z = disCoordinates[2]; + espdu.Timestamp = DisTime.DisRelativeTimestamp; + + //Prepare output + DataOutputStream dos = new DataOutputStream(Endian.Big); + espdu.MarshalAutoLengthSet(dos); + + // Transmit broadcast messages + SendMessages(dos.ConvertToBytes()); + Console.Write("Message sent with TimeStamp [{0}] Time Of[{1}]", espdu.Timestamp, (espdu.Timestamp >> 1)); + + //Thread.Sleep(1000); + Console.Write("Hit Enter for Next PDU. Ctrl-C to Exit"); + Console.ReadLine(); + } + + mcastSocket.Close(); + } + } } \ No newline at end of file diff --git a/Libs/CsharpDis6/EspduSender/OpenDis.EspduSender.csproj b/Samples/EspduSender/OpenDis.EspduSender.csproj similarity index 97% rename from Libs/CsharpDis6/EspduSender/OpenDis.EspduSender.csproj rename to Samples/EspduSender/OpenDis.EspduSender.csproj index e002aea..e521ff6 100644 --- a/Libs/CsharpDis6/EspduSender/OpenDis.EspduSender.csproj +++ b/Samples/EspduSender/OpenDis.EspduSender.csproj @@ -1,63 +1,63 @@ - - - - Debug - x86 - 8.0.30703 - 2.0 - {AEF2FB06-9CCF-491A-9727-FE6E4C4CF664} - Exe - Properties - EspduSender - EspduSender - v4.0 - Client - 512 - - - x86 - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - x86 - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - - - - - - - {628EE35F-450A-49B2-BA46-04FABB66D0BF} - OpenDis - - - - + + + + Debug + x86 + 8.0.30703 + 2.0 + {AEF2FB06-9CCF-491A-9727-FE6E4C4CF664} + Exe + Properties + EspduSender + EspduSender + v4.0 + Client + 512 + + + x86 + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + x86 + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + {628EE35F-450A-49B2-BA46-04FABB66D0BF} + OpenDis + + + + \ No newline at end of file diff --git a/Libs/CsharpDis6/EspduSender/Properties/AssemblyInfo.cs b/Samples/EspduSender/Properties/AssemblyInfo.cs similarity index 97% rename from Libs/CsharpDis6/EspduSender/Properties/AssemblyInfo.cs rename to Samples/EspduSender/Properties/AssemblyInfo.cs index 36bafe1..52e76c6 100644 --- a/Libs/CsharpDis6/EspduSender/Properties/AssemblyInfo.cs +++ b/Samples/EspduSender/Properties/AssemblyInfo.cs @@ -1,36 +1,36 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("EspduSender")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("EspduSender")] -[assembly: AssemblyCopyright("Copyright © 2017")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("fa71ba03-ced4-4464-bcd3-b05ddf61f29f")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("EspduSender")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("EspduSender")] +[assembly: AssemblyCopyright("Copyright © 2017")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("fa71ba03-ced4-4464-bcd3-b05ddf61f29f")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Libs/CsharpDis6/OpenDis.Demo/App.xaml b/Samples/OpenDis.Demo/App.xaml similarity index 97% rename from Libs/CsharpDis6/OpenDis.Demo/App.xaml rename to Samples/OpenDis.Demo/App.xaml index 66eed85..7b6b1f6 100644 --- a/Libs/CsharpDis6/OpenDis.Demo/App.xaml +++ b/Samples/OpenDis.Demo/App.xaml @@ -1,8 +1,8 @@ - - - - - + + + + + diff --git a/Libs/CsharpDis6/OpenDis.Demo/App.xaml.cs b/Samples/OpenDis.Demo/App.xaml.cs similarity index 94% rename from Libs/CsharpDis6/OpenDis.Demo/App.xaml.cs rename to Samples/OpenDis.Demo/App.xaml.cs index f8ebf2a..601d51b 100644 --- a/Libs/CsharpDis6/OpenDis.Demo/App.xaml.cs +++ b/Samples/OpenDis.Demo/App.xaml.cs @@ -1,16 +1,16 @@ -using System; -using System.Collections.Generic; -using System.Configuration; -using System.Data; -using System.Linq; -using System.Windows; - -namespace OpenDis.Demo -{ - /// - /// Interaction logic for App.xaml - /// - public partial class App : Application - { - } -} +using System; +using System.Collections.Generic; +using System.Configuration; +using System.Data; +using System.Linq; +using System.Windows; + +namespace OpenDis.Demo +{ + /// + /// Interaction logic for App.xaml + /// + public partial class App : Application + { + } +} diff --git a/Libs/CsharpDis6/OpenDis.Demo/MainWindow.xaml b/Samples/OpenDis.Demo/MainWindow.xaml similarity index 98% rename from Libs/CsharpDis6/OpenDis.Demo/MainWindow.xaml rename to Samples/OpenDis.Demo/MainWindow.xaml index bcc2511..1bd69ea 100644 --- a/Libs/CsharpDis6/OpenDis.Demo/MainWindow.xaml +++ b/Samples/OpenDis.Demo/MainWindow.xaml @@ -1,131 +1,131 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Tree - Grid - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Tree + Grid + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Libs/CsharpDis6/OpenDis.Demo/MainWindow.xaml.cs b/Samples/OpenDis.Demo/MainWindow.xaml.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis.Demo/MainWindow.xaml.cs rename to Samples/OpenDis.Demo/MainWindow.xaml.cs index 0afc086..db23d0c 100644 --- a/Libs/CsharpDis6/OpenDis.Demo/MainWindow.xaml.cs +++ b/Samples/OpenDis.Demo/MainWindow.xaml.cs @@ -1,147 +1,147 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.Reflection; -using System.Text; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Data; -using System.Windows.Documents; -using System.Windows.Input; -using System.Windows.Media; -using System.Windows.Media.Imaging; -using System.Windows.Navigation; -using System.Windows.Shapes; -using OpenDis.Core; -using Cet2006 = OpenDis.Enumerations.Cet2006; -using Cet2010 = OpenDis.Enumerations.Cet2010; - -namespace OpenDis.Demo -{ - /// - /// Interaction logic for MainWindow.xaml - /// - public partial class MainWindow : Window - { - private static Cet2006.Cet cet2006EntityTypes = Cet2006.CetFactory.CreateEntityTypes(); - private static Cet2006.Cet cet2006AggregateTypes = Cet2006.CetFactory.CreateAggregateTypes(); - private static Cet2010.Cet cet2010EntityTypes = Cet2010.CetFactory.CreateEntityTypes(); - private static Cet2010.Cet cet2010AggregateTypes = Cet2010.CetFactory.CreateAggregateTypes(); - - private static List cet2006EntityTypesList; - private static List cet2010EntityTypesList; - - private static IEnumerable enumerations; - - private static ListCollectionView cet2006View; - private static ListCollectionView cet2010View; - - public static string GetDescription(T value) - { - return ""; - } - - static MainWindow() - { - GetDescription(Orientation.Vertical); - - cet2006EntityTypes = Cet2006.CetFactory.CreateEntityTypes(); - cet2006AggregateTypes = Cet2006.CetFactory.CreateAggregateTypes(); - cet2010EntityTypes = Cet2010.CetFactory.CreateEntityTypes(); - cet2010AggregateTypes = Cet2010.CetFactory.CreateAggregateTypes(); - - cet2006EntityTypesList = Cet2006.CetFactory.Transform(cet2006EntityTypes); - cet2010EntityTypesList = Cet2010.CetFactory.Transform(cet2010EntityTypes); - - cet2006View = new ListCollectionView(cet2006EntityTypesList); - cet2006View.GroupDescriptions.Add(new PropertyGroupDescription("Country")); - - cet2010View = new ListCollectionView(cet2010EntityTypesList); - cet2010View.GroupDescriptions.Add(new PropertyGroupDescription("Country")); - - IEnumerable types = from a in - Assembly.GetAssembly(typeof(IPdu)).GetTypes() - where a.IsEnum && a.Namespace.Contains("Enumerations") - select a; - enumerations = - from n in - (from m in types select m.Namespace).Distinct() - select new - { - Namespace = n, - Enums = from t in types - select new - { - Name = t.Name, - Values = from r in Enum.GetNames(t) select new { Name = r, Value = Convert.ChangeType(Enum.Parse(t, r), Enum.GetUnderlyingType(t)) } - } - }; - } - - public MainWindow() - { - InitializeComponent(); - - treeViewEntityTypes.DataContext = cet2006EntityTypes.Entities; - dataGridEntityTypes.DataContext = cet2006View; - treeViewAggregateTypes.DataContext = cet2006AggregateTypes.Entities; - this.treeViewEnumerations.DataContext = enumerations; - } - - private void toggleEntityGrid_Click(object sender, RoutedEventArgs e) - { - this.toggleEntityTree.IsChecked = false; - this.toggleEntityGrid.IsChecked = true; - this.treeViewEntityTypes.Visibility = Visibility.Hidden; - this.dataGridEntityTypes.Visibility = Visibility.Visible; - } - - private void toggleEntityTree_Click(object sender, RoutedEventArgs e) - { - this.toggleEntityTree.IsChecked = true; - this.toggleEntityGrid.IsChecked = false; - this.treeViewEntityTypes.Visibility = Visibility.Visible; - this.dataGridEntityTypes.Visibility = Visibility.Hidden; - } - - private void toggleCet2010_Click(object sender, RoutedEventArgs e) - { - Cursor = Cursors.Wait; - treeViewEntityTypes.DataContext = cet2010EntityTypes.Entities; - dataGridEntityTypes.DataContext = cet2010View; - this.toggleCet2010.IsChecked = true; - this.toggleCet2006.IsChecked = false; - Cursor = Cursors.Arrow; - } - - private void toggleCet2006_Click(object sender, RoutedEventArgs e) - { - Cursor = Cursors.Wait; - treeViewEntityTypes.DataContext = cet2006EntityTypes.Entities; - dataGridEntityTypes.DataContext = cet2006View; - this.toggleCet2010.IsChecked = false; - this.toggleCet2006.IsChecked = true; - Cursor = Cursors.Arrow; - } - - private void toggleAggregate2010_Click(object sender, RoutedEventArgs e) - { - Cursor = Cursors.Wait; - treeViewAggregateTypes.DataContext = cet2010AggregateTypes.Entities; - this.toggleAggregate2010.IsChecked = true; - this.toggleAggregate2006.IsChecked = false; - Cursor = Cursors.Arrow; - } - - private void toggleAggregate2006_Click(object sender, RoutedEventArgs e) - { - Cursor = Cursors.Wait; - treeViewAggregateTypes.DataContext = cet2006AggregateTypes.Entities; - this.toggleAggregate2010.IsChecked = false; - this.toggleAggregate2006.IsChecked = true; - Cursor = Cursors.Arrow; - } - } -} +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Reflection; +using System.Text; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; +using OpenDis.Core; +using Cet2006 = OpenDis.Enumerations.Cet2006; +using Cet2010 = OpenDis.Enumerations.Cet2010; + +namespace OpenDis.Demo +{ + /// + /// Interaction logic for MainWindow.xaml + /// + public partial class MainWindow : Window + { + private static Cet2006.Cet cet2006EntityTypes = Cet2006.CetFactory.CreateEntityTypes(); + private static Cet2006.Cet cet2006AggregateTypes = Cet2006.CetFactory.CreateAggregateTypes(); + private static Cet2010.Cet cet2010EntityTypes = Cet2010.CetFactory.CreateEntityTypes(); + private static Cet2010.Cet cet2010AggregateTypes = Cet2010.CetFactory.CreateAggregateTypes(); + + private static List cet2006EntityTypesList; + private static List cet2010EntityTypesList; + + private static IEnumerable enumerations; + + private static ListCollectionView cet2006View; + private static ListCollectionView cet2010View; + + public static string GetDescription(T value) + { + return ""; + } + + static MainWindow() + { + GetDescription(Orientation.Vertical); + + cet2006EntityTypes = Cet2006.CetFactory.CreateEntityTypes(); + cet2006AggregateTypes = Cet2006.CetFactory.CreateAggregateTypes(); + cet2010EntityTypes = Cet2010.CetFactory.CreateEntityTypes(); + cet2010AggregateTypes = Cet2010.CetFactory.CreateAggregateTypes(); + + cet2006EntityTypesList = Cet2006.CetFactory.Transform(cet2006EntityTypes); + cet2010EntityTypesList = Cet2010.CetFactory.Transform(cet2010EntityTypes); + + cet2006View = new ListCollectionView(cet2006EntityTypesList); + cet2006View.GroupDescriptions.Add(new PropertyGroupDescription("Country")); + + cet2010View = new ListCollectionView(cet2010EntityTypesList); + cet2010View.GroupDescriptions.Add(new PropertyGroupDescription("Country")); + + IEnumerable types = from a in + Assembly.GetAssembly(typeof(IPdu)).GetTypes() + where a.IsEnum && a.Namespace.Contains("Enumerations") + select a; + enumerations = + from n in + (from m in types select m.Namespace).Distinct() + select new + { + Namespace = n, + Enums = from t in types + select new + { + Name = t.Name, + Values = from r in Enum.GetNames(t) select new { Name = r, Value = Convert.ChangeType(Enum.Parse(t, r), Enum.GetUnderlyingType(t)) } + } + }; + } + + public MainWindow() + { + InitializeComponent(); + + treeViewEntityTypes.DataContext = cet2006EntityTypes.Entities; + dataGridEntityTypes.DataContext = cet2006View; + treeViewAggregateTypes.DataContext = cet2006AggregateTypes.Entities; + this.treeViewEnumerations.DataContext = enumerations; + } + + private void toggleEntityGrid_Click(object sender, RoutedEventArgs e) + { + this.toggleEntityTree.IsChecked = false; + this.toggleEntityGrid.IsChecked = true; + this.treeViewEntityTypes.Visibility = Visibility.Hidden; + this.dataGridEntityTypes.Visibility = Visibility.Visible; + } + + private void toggleEntityTree_Click(object sender, RoutedEventArgs e) + { + this.toggleEntityTree.IsChecked = true; + this.toggleEntityGrid.IsChecked = false; + this.treeViewEntityTypes.Visibility = Visibility.Visible; + this.dataGridEntityTypes.Visibility = Visibility.Hidden; + } + + private void toggleCet2010_Click(object sender, RoutedEventArgs e) + { + Cursor = Cursors.Wait; + treeViewEntityTypes.DataContext = cet2010EntityTypes.Entities; + dataGridEntityTypes.DataContext = cet2010View; + this.toggleCet2010.IsChecked = true; + this.toggleCet2006.IsChecked = false; + Cursor = Cursors.Arrow; + } + + private void toggleCet2006_Click(object sender, RoutedEventArgs e) + { + Cursor = Cursors.Wait; + treeViewEntityTypes.DataContext = cet2006EntityTypes.Entities; + dataGridEntityTypes.DataContext = cet2006View; + this.toggleCet2010.IsChecked = false; + this.toggleCet2006.IsChecked = true; + Cursor = Cursors.Arrow; + } + + private void toggleAggregate2010_Click(object sender, RoutedEventArgs e) + { + Cursor = Cursors.Wait; + treeViewAggregateTypes.DataContext = cet2010AggregateTypes.Entities; + this.toggleAggregate2010.IsChecked = true; + this.toggleAggregate2006.IsChecked = false; + Cursor = Cursors.Arrow; + } + + private void toggleAggregate2006_Click(object sender, RoutedEventArgs e) + { + Cursor = Cursors.Wait; + treeViewAggregateTypes.DataContext = cet2006AggregateTypes.Entities; + this.toggleAggregate2010.IsChecked = false; + this.toggleAggregate2006.IsChecked = true; + Cursor = Cursors.Arrow; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis.Demo/OpenDis.Demo.csproj b/Samples/OpenDis.Demo/OpenDis.Demo.csproj similarity index 97% rename from Libs/CsharpDis6/OpenDis.Demo/OpenDis.Demo.csproj rename to Samples/OpenDis.Demo/OpenDis.Demo.csproj index 25352fc..e69fe66 100644 --- a/Libs/CsharpDis6/OpenDis.Demo/OpenDis.Demo.csproj +++ b/Samples/OpenDis.Demo/OpenDis.Demo.csproj @@ -1,109 +1,109 @@ - - - - Debug - x86 - 8.0.30703 - 2.0 - {0FC1409E-A9F2-4409-85A3-D989A36C3CB8} - WinExe - Properties - OpenDis.Demo - OpenDis.Demo - v4.0 - Client - 512 - {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - 4 - - - x86 - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - x86 - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - 4.0 - - - - - - - - MSBuild:Compile - Designer - - - MSBuild:Compile - Designer - - - App.xaml - Code - - - MainWindow.xaml - Code - - - - - Code - - - True - True - Resources.resx - - - True - Settings.settings - True - - - ResXFileCodeGenerator - Resources.Designer.cs - - - SettingsSingleFileGenerator - Settings.Designer.cs - - - - - - {628EE35F-450A-49B2-BA46-04FABB66D0BF} - OpenDis - - - - + + + + Debug + x86 + 8.0.30703 + 2.0 + {0FC1409E-A9F2-4409-85A3-D989A36C3CB8} + WinExe + Properties + OpenDis.Demo + OpenDis.Demo + v4.0 + Client + 512 + {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + 4 + + + x86 + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + x86 + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + 4.0 + + + + + + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + App.xaml + Code + + + MainWindow.xaml + Code + + + + + Code + + + True + True + Resources.resx + + + True + Settings.settings + True + + + ResXFileCodeGenerator + Resources.Designer.cs + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + + + + {628EE35F-450A-49B2-BA46-04FABB66D0BF} + OpenDis + + + + \ No newline at end of file diff --git a/Libs/CsharpDis6/OpenDis.Demo/Properties/AssemblyInfo.cs b/Samples/OpenDis.Demo/Properties/AssemblyInfo.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis.Demo/Properties/AssemblyInfo.cs rename to Samples/OpenDis.Demo/Properties/AssemblyInfo.cs index 2ccdf9f..6b2a115 100644 --- a/Libs/CsharpDis6/OpenDis.Demo/Properties/AssemblyInfo.cs +++ b/Samples/OpenDis.Demo/Properties/AssemblyInfo.cs @@ -1,55 +1,55 @@ -using System.Reflection; -using System.Resources; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Windows; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("OpenDis.Demo")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Microsoft")] -[assembly: AssemblyProduct("OpenDis.Demo")] -[assembly: AssemblyCopyright("Copyright © Microsoft 2011")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -//In order to begin building localizable applications, set -//CultureYouAreCodingWith in your .csproj file -//inside a . For example, if you are using US english -//in your source files, set the to en-US. Then uncomment -//the NeutralResourceLanguage attribute below. Update the "en-US" in -//the line below to match the UICulture setting in the project file. - -//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)] - - -[assembly: ThemeInfo( - ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located - //(used if a resource is not found in the page, - // or application resource dictionaries) - ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located - //(used if a resource is not found in the page, - // app, or any theme specific resource dictionaries) -)] - - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] +using System.Reflection; +using System.Resources; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using System.Windows; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("OpenDis.Demo")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Microsoft")] +[assembly: AssemblyProduct("OpenDis.Demo")] +[assembly: AssemblyCopyright("Copyright © Microsoft 2011")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +//In order to begin building localizable applications, set +//CultureYouAreCodingWith in your .csproj file +//inside a . For example, if you are using US english +//in your source files, set the to en-US. Then uncomment +//the NeutralResourceLanguage attribute below. Update the "en-US" in +//the line below to match the UICulture setting in the project file. + +//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)] + + +[assembly: ThemeInfo( + ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located + //(used if a resource is not found in the page, + // or application resource dictionaries) + ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located + //(used if a resource is not found in the page, + // app, or any theme specific resource dictionaries) +)] + + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Libs/CsharpDis6/OpenDis.Demo/Properties/Resources.Designer.cs b/Samples/OpenDis.Demo/Properties/Resources.Designer.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis.Demo/Properties/Resources.Designer.cs rename to Samples/OpenDis.Demo/Properties/Resources.Designer.cs index 3c8a087..ddeb03b 100644 --- a/Libs/CsharpDis6/OpenDis.Demo/Properties/Resources.Designer.cs +++ b/Samples/OpenDis.Demo/Properties/Resources.Designer.cs @@ -1,71 +1,71 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.1 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace OpenDis.Demo.Properties -{ - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Resources - { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Resources() - { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager - { - get - { - if ((resourceMan == null)) - { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("OpenDis.Demo.Properties.Resources", typeof(Resources).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture - { - get - { - return resourceCulture; - } - set - { - resourceCulture = value; - } - } - } -} +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.1 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace OpenDis.Demo.Properties +{ + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("OpenDis.Demo.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/Libs/CsharpDis6/OpenDis.Demo/Properties/Resources.resx b/Samples/OpenDis.Demo/Properties/Resources.resx similarity index 97% rename from Libs/CsharpDis6/OpenDis.Demo/Properties/Resources.resx rename to Samples/OpenDis.Demo/Properties/Resources.resx index ffecec8..af7dbeb 100644 --- a/Libs/CsharpDis6/OpenDis.Demo/Properties/Resources.resx +++ b/Samples/OpenDis.Demo/Properties/Resources.resx @@ -1,117 +1,117 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + \ No newline at end of file diff --git a/Libs/CsharpDis6/OpenDis.Demo/Properties/Settings.Designer.cs b/Samples/OpenDis.Demo/Properties/Settings.Designer.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis.Demo/Properties/Settings.Designer.cs rename to Samples/OpenDis.Demo/Properties/Settings.Designer.cs index 5429c3f..00f6e1d 100644 --- a/Libs/CsharpDis6/OpenDis.Demo/Properties/Settings.Designer.cs +++ b/Samples/OpenDis.Demo/Properties/Settings.Designer.cs @@ -1,30 +1,30 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.1 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace OpenDis.Demo.Properties -{ - - - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")] - internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase - { - - private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); - - public static Settings Default - { - get - { - return defaultInstance; - } - } - } -} +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.1 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace OpenDis.Demo.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/Libs/CsharpDis6/OpenDis.Demo/Properties/Settings.settings b/Samples/OpenDis.Demo/Properties/Settings.settings similarity index 97% rename from Libs/CsharpDis6/OpenDis.Demo/Properties/Settings.settings rename to Samples/OpenDis.Demo/Properties/Settings.settings index 8f2fd95..033d7a5 100644 --- a/Libs/CsharpDis6/OpenDis.Demo/Properties/Settings.settings +++ b/Samples/OpenDis.Demo/Properties/Settings.settings @@ -1,7 +1,7 @@ - - - - - - + + + + + + \ No newline at end of file From 32fcbf868c48a4611974e845985471556164afee Mon Sep 17 00:00:00 2001 From: Nicolas Baudrey Date: Sat, 9 Oct 2021 13:25:31 +0200 Subject: [PATCH 06/25] [BLD] Re-organize all the repo --- .vs/OpenDis/DesignTimeBuild/.dtbcache.v2 | Bin 0 -> 84205 bytes Libs/CSharpDis7/AcknowledgePdu.cs | 414 - Libs/CSharpDis7/AcknowledgeReliablePdu.cs | 345 - Libs/CSharpDis7/AcousticEmitter.cs | 341 - Libs/CSharpDis7/ActionRequestPdu.cs | 588 - Libs/CSharpDis7/ActionRequestReliablePdu.cs | 615 - Libs/CSharpDis7/ActionResponsePdu.cs | 588 - Libs/CSharpDis7/ActionResponseReliablePdu.cs | 519 - Libs/CSharpDis7/AggregateIdentifier.cs | 312 - Libs/CSharpDis7/AggregateMarking.cs | 335 - Libs/CSharpDis7/AggregateType.cs | 463 - Libs/CSharpDis7/AngleDeception.cs | 661 - Libs/CSharpDis7/AngularVelocityVector.cs | 341 - Libs/CSharpDis7/AntennaLocation.cs | 315 - Libs/CSharpDis7/ArealObjectStatePdu.cs | 685 - Libs/CSharpDis7/ArticulatedParts.cs | 405 - Libs/CSharpDis7/Association.cs | 367 - Libs/CSharpDis7/AttachedParts.cs | 405 - Libs/CSharpDis7/Attribute.cs | 323 - Libs/CSharpDis7/AttributePdu.cs | 539 - Libs/CSharpDis7/BeamAntennaPattern.cs | 538 - Libs/CSharpDis7/BeamData.cs | 405 - Libs/CSharpDis7/BeamStatus.cs | 277 - Libs/CSharpDis7/BlankingSector.cs | 505 - Libs/CSharpDis7/ChangeOptions.cs | 245 - Libs/CSharpDis7/ClockTime.cs | 309 - Libs/CSharpDis7/CollisionElasticPdu.cs | 745 - Libs/CSharpDis7/CollisionPdu.cs | 519 - Libs/CSharpDis7/CommentPdu.cs | 455 - Libs/CSharpDis7/CommentReliablePdu.cs | 455 - Libs/CSharpDis7/CommunicationsNodeID.cs | 300 - Libs/CSharpDis7/CreateEntityPdu.cs | 350 - Libs/CSharpDis7/CreateEntityReliablePdu.cs | 377 - Libs/CSharpDis7/DataPdu.cs | 519 - .../CSharpDis7/DataQueryDatumSpecification.cs | 451 - Libs/CSharpDis7/DataQueryPdu.cs | 519 - Libs/CSharpDis7/DataQueryReliablePdu.cs | 615 - Libs/CSharpDis7/DataReliablePdu.cs | 583 - Libs/CSharpDis7/DatumSpecification.cs | 451 - Libs/CSharpDis7/DeadReckoningParameters.cs | 404 - Libs/CSharpDis7/DesignatorPdu.cs | 646 - Libs/CSharpDis7/DetonationPdu.cs | 625 - Libs/CSharpDis7/DirectedEnergyAreaAimpoint.cs | 547 - Libs/CSharpDis7/DirectedEnergyDamage.cs | 635 - Libs/CSharpDis7/DirectedEnergyFirePdu.cs | 809 - .../DirectedEnergyPrecisionAimpoint.cs | 674 - .../DirectedEnergyTargetEnergyDeposition.cs | 344 - .../DistributedEmissionsFamilyPdu.cs | 248 - Libs/CSharpDis7/EEFundamentalParameterData.cs | 405 - Libs/CSharpDis7/EightByteChunk.cs | 303 - Libs/CSharpDis7/ElectronicEmissionsPdu.cs | 620 - Libs/CSharpDis7/EmitterSystem.cs | 341 - Libs/CSharpDis7/EngineFuel.cs | 405 - Libs/CSharpDis7/EngineFuelReload.cs | 469 - Libs/CSharpDis7/EntityAssociation.cs | 536 - Libs/CSharpDis7/EntityDamageStatusPdu.cs | 451 - Libs/CSharpDis7/EntityID.cs | 312 - Libs/CSharpDis7/EntityInformationFamilyPdu.cs | 248 - Libs/CSharpDis7/EntityManagementFamilyPdu.cs | 248 - Libs/CSharpDis7/EntityMarking.cs | 335 - Libs/CSharpDis7/EntityStatePdu.cs | 721 - Libs/CSharpDis7/EntityStateUpdatePdu.cs | 557 - Libs/CSharpDis7/EntityType.cs | 463 - Libs/CSharpDis7/EntityTypeVP.cs | 408 - Libs/CSharpDis7/Environment.cs | 373 - Libs/CSharpDis7/EnvironmentGeneral.cs | 437 - Libs/CSharpDis7/EnvironmentType.cs | 463 - Libs/CSharpDis7/EulerAngles.cs | 323 - Libs/CSharpDis7/EventIdentifier.cs | 306 - Libs/CSharpDis7/EventIdentifierLiveEntity.cs | 323 - Libs/CSharpDis7/EventReportPdu.cs | 519 - Libs/CSharpDis7/EventReportReliablePdu.cs | 519 - Libs/CSharpDis7/Expendable.cs | 384 - Libs/CSharpDis7/ExpendableDescriptor.cs | 312 - Libs/CSharpDis7/ExpendableReload.cs | 410 - Libs/CSharpDis7/ExplosionDescriptor.cs | 376 - Libs/CSharpDis7/FalseTargetsAttribute.cs | 609 - Libs/CSharpDis7/FastEntityStatePdu.cs | 1590 - Libs/CSharpDis7/FirePdu.cs | 488 - Libs/CSharpDis7/FixedDatum.cs | 309 - Libs/CSharpDis7/FourByteChunk.cs | 303 - Libs/CSharpDis7/FundamentalOperationalData.cs | 565 - Libs/CSharpDis7/GridAxis.cs | 469 - Libs/CSharpDis7/GroupIdentifier.cs | 312 - .../CSharpDis7/IFFFundamentalParameterData.cs | 495 - Libs/CSharpDis7/IOCommunicationsNode.cs | 404 - Libs/CSharpDis7/IOEffect.cs | 482 - Libs/CSharpDis7/IffDataSpecification.cs | 280 - .../IntercomCommunicationsParameters.cs | 341 - Libs/CSharpDis7/IntercomIdentifier.cs | 349 - Libs/CSharpDis7/IntercomSignalPdu.cs | 525 - Libs/CSharpDis7/IsPartOfPdu.cs | 458 - Libs/CSharpDis7/JammingTechnique.cs | 349 - Libs/CSharpDis7/LaunchedMunitionRecord.cs | 437 - Libs/CSharpDis7/LayerHeader.cs | 335 - Libs/CSharpDis7/LinearObjectStatePdu.cs | 589 - Libs/CSharpDis7/LinearSegmentParameter.cs | 571 - Libs/CSharpDis7/LiveEntityIdentifier.cs | 312 - Libs/CSharpDis7/LiveEntityPdu.cs | 301 - Libs/CSharpDis7/LiveSimulationAddress.cs | 309 - Libs/CSharpDis7/LogisticsFamilyPdu.cs | 248 - Libs/CSharpDis7/MineEntityIdentifier.cs | 312 - Libs/CSharpDis7/MinefieldFamilyPdu.cs | 248 - Libs/CSharpDis7/MinefieldIdentifier.cs | 312 - Libs/CSharpDis7/MinefieldResponseNackPdu.cs | 453 - Libs/CSharpDis7/MinefieldStatePdu.cs | 723 - Libs/CSharpDis7/ModulationParameters.cs | 245 - Libs/CSharpDis7/ModulationType.cs | 373 - Libs/CSharpDis7/Munition.cs | 408 - Libs/CSharpDis7/MunitionDescriptor.cs | 408 - Libs/CSharpDis7/MunitionReload.cs | 440 - .../CSharpDis7/NamedLocationIdentification.cs | 309 - Libs/CSharpDis7/ObjectIdentifier.cs | 312 - Libs/CSharpDis7/ObjectType.cs | 373 - Libs/CSharpDis7/OneByteChunk.cs | 303 - Libs/CSharpDis7/OwnershipStatus.cs | 344 - Libs/CSharpDis7/Pdu.cs | 301 - Libs/CSharpDis7/PduContainer.cs | 348 - Libs/CSharpDis7/PduHeader.cs | 501 - Libs/CSharpDis7/PduStatus.cs | 277 - Libs/CSharpDis7/PduSuperclass.cs | 437 - Libs/CSharpDis7/PointObjectStatePdu.cs | 652 - Libs/CSharpDis7/PropulsionSystemData.cs | 309 - .../RadioCommunicationsFamilyPdu.cs | 316 - Libs/CSharpDis7/RadioIdentifier.cs | 373 - Libs/CSharpDis7/RadioType.cs | 457 - Libs/CSharpDis7/ReceiverPdu.cs | 412 - Libs/CSharpDis7/RecordQueryReliablePdu.cs | 544 - Libs/CSharpDis7/RecordQuerySpecification.cs | 345 - Libs/CSharpDis7/RecordSpecification.cs | 348 - Libs/CSharpDis7/RecordSpecificationElement.cs | 437 - Libs/CSharpDis7/Relationship.cs | 309 - Libs/CSharpDis7/RemoveEntityPdu.cs | 350 - Libs/CSharpDis7/RemoveEntityReliablePdu.cs | 377 - Libs/CSharpDis7/RepairCompletePdu.cs | 382 - Libs/CSharpDis7/RepairResponsePdu.cs | 414 - Libs/CSharpDis7/ResupplyOfferPdu.cs | 485 - Libs/CSharpDis7/ResupplyReceivedPdu.cs | 485 - Libs/CSharpDis7/SecondaryOperationalData.cs | 341 - Libs/CSharpDis7/SeesPdu.cs | 586 - Libs/CSharpDis7/Sensor.cs | 437 - Libs/CSharpDis7/SeparationVP.cs | 472 - Libs/CSharpDis7/ServiceRequestPdu.cs | 479 - Libs/CSharpDis7/SetDataPdu.cs | 519 - Libs/CSharpDis7/SetDataReliablePdu.cs | 583 - Libs/CSharpDis7/SimulationAddress.cs | 309 - Libs/CSharpDis7/SimulationIdentifier.cs | 312 - .../SimulationManagementFamilyPdu.cs | 318 - .../SimulationManagementPduHeader.cs | 349 - ...ationManagementWithReliabilityFamilyPdu.cs | 318 - .../StandardVariableSpecification.cs | 348 - Libs/CSharpDis7/StartResumePdu.cs | 419 - Libs/CSharpDis7/StartResumeReliablePdu.cs | 446 - Libs/CSharpDis7/StopFreezePdu.cs | 481 - Libs/CSharpDis7/StopFreezeReliablePdu.cs | 444 - Libs/CSharpDis7/StorageFuel.cs | 405 - Libs/CSharpDis7/StorageFuelReload.cs | 501 - Libs/CSharpDis7/SupplyQuantity.cs | 312 - .../SyntheticEnvironmentFamilyPdu.cs | 248 - Libs/CSharpDis7/SystemIdentifier.cs | 376 - Libs/CSharpDis7/TotalRecordSets.cs | 309 - Libs/CSharpDis7/TrackJamData.cs | 344 - Libs/CSharpDis7/TwoByteChunk.cs | 303 - Libs/CSharpDis7/UAFundamentalParameter.cs | 437 - Libs/CSharpDis7/UaPdu.cs | 756 - Libs/CSharpDis7/UnattachedIdentifier.cs | 312 - Libs/CSharpDis7/UnsignedDISInteger.cs | 277 - Libs/CSharpDis7/VariableDatum.cs | 373 - Libs/CSharpDis7/VariableParameter.cs | 405 - .../VariableTransmitterParameters.cs | 309 - Libs/CSharpDis7/Vector2Float.cs | 309 - Libs/CSharpDis7/Vector3Double.cs | 341 - Libs/CSharpDis7/Vector3Float.cs | 341 - Libs/CSharpDis7/VectoringNozzleSystem.cs | 309 - Libs/CSharpDis7/WarfareFamilyPdu.cs | 318 - Libs/CsharpDis6/{OpenDis => }/Core/CetBase.cs | 72 +- Libs/CsharpDis6/{OpenDis => }/Core/DisTime.cs | 0 .../{OpenDis => }/Core/EndianTypes.cs | 116 +- .../{OpenDis => }/Core/EnumHelper.cs | 434 +- .../Core/EnumNotFoundException.cs | 164 +- .../CsharpDis6/{OpenDis => }/Core/ICetItem.cs | 130 +- Libs/CsharpDis6/{OpenDis => }/Core/IPdu.cs | 68 +- .../Core/InternetDomainCodeAttribute.cs | 150 +- Libs/CsharpDis6/{OpenDis => }/Core/PduBase.cs | 50 +- .../Core/PduExceptionEventArgs.cs | 44 +- .../{OpenDis => }/Core/PduFactory.cs | 100 +- .../{OpenDis => }/Dis1995/EntityID.cs | 30 +- .../Dis1995/Generated/AcknowledgePdu.cs | 736 +- .../Dis1995/Generated/ActionRequestPdu.cs | 1096 +- .../Dis1995/Generated/ActionResponsePdu.cs | 1096 +- .../Generated/AngularVelocityVector.cs | 728 +- .../Dis1995/Generated/AntennaLocation.cs | 676 +- .../Generated/ArticulationParameter.cs | 826 +- .../Dis1995/Generated/BeamAntennaPattern.cs | 1030 +- .../Dis1995/Generated/BurstDescriptor.cs | 862 +- .../Dis1995/Generated/ClockTime.cs | 664 +- .../Dis1995/Generated/CollisionPdu.cs | 1084 +- .../Dis1995/Generated/CommentPdu.cs | 968 +- .../Dis1995/Generated/CreateEntityPdu.cs | 608 +- .../Dis1995/Generated/DataPdu.cs | 1096 +- .../Dis1995/Generated/DataQueryPdu.cs | 1096 +- .../Generated/DeadReckoningParameter.cs | 862 +- .../Dis1995/Generated/DesignatorPdu.cs | 1338 +- .../Dis1995/Generated/DetonationPdu.cs | 1228 +- .../Generated/DistributedEmissionsPdu.cs | 542 +- .../Dis1995/Generated/EightByteChunk.cs | 648 +- .../Generated/ElectronicEmmisionsPdu.cs | 1470 +- .../Dis1995/Generated/EmitterSystem.cs | 728 +- .../Dis1995/Generated/EntityID.cs | 728 +- .../Dis1995/Generated/EntityInformationPdu.cs | 542 +- .../Dis1995/Generated/EntityStatePdu.cs | 1548 +- .../Dis1995/Generated/EntityType.cs | 978 +- .../Dis1995/Generated/EventID.cs | 728 +- .../Dis1995/Generated/EventReportPdu.cs | 1096 +- .../Dis1995/Generated/FirePdu.cs | 1016 +- .../Dis1995/Generated/FixedDatum.cs | 664 +- .../Generated/FundamentalParameterData.cs | 1176 +- .../Dis1995/Generated/LogisticsPdu.cs | 542 +- .../Dis1995/Generated/ModulationType.cs | 792 +- .../Dis1995/Generated/Orientation.cs | 710 +- .../{OpenDis => }/Dis1995/Generated/Pdu.cs | 984 +- .../Generated/RadioCommunicationsPdu.cs | 678 +- .../Dis1995/Generated/RadioEntityType.cs | 978 +- .../Dis1995/Generated/ReceiverPdu.cs | 870 +- .../Dis1995/Generated/RemoveEntityPdu.cs | 608 +- .../Dis1995/Generated/RepairCompletePdu.cs | 810 +- .../Dis1995/Generated/RepairResponsePdu.cs | 874 +- .../Dis1995/Generated/ResupplyCancelPdu.cs | 682 +- .../Dis1995/Generated/ResupplyOfferPdu.cs | 1016 +- .../Dis1995/Generated/ResupplyReceivedPdu.cs | 1016 +- .../Dis1995/Generated/ServiceRequestPdu.cs | 1016 +- .../Dis1995/Generated/SetDataPdu.cs | 1096 +- .../Dis1995/Generated/SignalPdu.cs | 864 +- .../Dis1995/Generated/SimulationAddress.cs | 664 +- .../Generated/SimulationManagementPdu.cs | 682 +- .../SphericalHarmonicAntennaPattern.cs | 594 +- .../Dis1995/Generated/StartResumePdu.cs | 746 +- .../Dis1995/Generated/StopFreezePdu.cs | 870 +- .../Dis1995/Generated/SupplyQuantity.cs | 670 +- .../Dis1995/Generated/TransmitterPdu.cs | 1950 +- .../Dis1995/Generated/VariableDatum.cs | 812 +- .../Dis1995/Generated/Vector3Double.cs | 728 +- .../Dis1995/Generated/Vector3Float.cs | 728 +- .../Dis1995/Generated/Warfare.cs | 682 +- .../{OpenDis => }/Dis1995/PduFactory.cs | 244 +- .../{OpenDis => }/Dis1995/Vector3Double.cs | 38 +- .../{OpenDis => }/Dis1995/Vector3Float.cs | 38 +- .../{OpenDis => }/Dis1998/EntityID.cs | 42 +- .../Dis1998/Generated/AcknowledgePdu.cs | 736 +- .../Generated/AcknowledgeReliablePdu.cs | 736 +- .../Dis1998/Generated/AcousticBeamData.cs | 798 +- .../AcousticBeamFundamentalParameter.cs | 920 +- .../Dis1998/Generated/AcousticEmitter.cs | 728 +- .../Generated/AcousticEmitterSystem.cs | 728 +- .../Generated/AcousticEmitterSystemData.cs | 1016 +- .../Dis1998/Generated/ActionRequestPdu.cs | 1096 +- .../Generated/ActionRequestReliablePdu.cs | 1288 +- .../Dis1998/Generated/ActionResponsePdu.cs | 1096 +- .../Generated/ActionResponseReliablePdu.cs | 1096 +- .../Dis1998/Generated/AggregateID.cs | 728 +- .../Dis1998/Generated/AggregateMarking.cs | 718 +- .../Dis1998/Generated/AggregateStatePdu.cs | 2360 +- .../Dis1998/Generated/AggregateType.cs | 978 +- .../Generated/AngularVelocityVector.cs | 728 +- .../Dis1998/Generated/AntennaLocation.cs | 676 +- .../Dis1998/Generated/ApaData.cs | 664 +- .../Dis1998/Generated/ArealObjectStatePdu.cs | 1364 +- .../Generated/ArticulationParameter.cs | 826 +- .../Dis1998/Generated/BeamAntennaPattern.cs | 1030 +- .../Dis1998/Generated/BeamData.cs | 856 +- .../Dis1998/Generated/BurstDescriptor.cs | 862 +- .../Dis1998/Generated/ClockTime.cs | 664 +- .../Dis1998/Generated/CollisionElasticPdu.cs | 1536 +- .../Dis1998/Generated/CollisionPdu.cs | 1084 +- .../Dis1998/Generated/CommentPdu.cs | 968 +- .../Dis1998/Generated/CommentReliablePdu.cs | 968 +- .../Dis1998/Generated/CreateEntityPdu.cs | 608 +- .../Generated/CreateEntityReliablePdu.cs | 800 +- .../Dis1998/Generated/DataPdu.cs | 1096 +- .../Dis1998/Generated/DataQueryPdu.cs | 1096 +- .../Dis1998/Generated/DataQueryReliablePdu.cs | 1288 +- .../Dis1998/Generated/DataReliablePdu.cs | 1224 +- .../Generated/DeadReckoningParameter.cs | 862 +- .../Dis1998/Generated/DesignatorPdu.cs | 1338 +- .../Dis1998/Generated/DetonationPdu.cs | 1296 +- .../DistributedEmissionsFamilyPdu.cs | 542 +- .../Dis1998/Generated/EightByteChunk.cs | 648 +- .../Generated/ElectronicEmissionBeamData.cs | 1266 +- .../Generated/ElectronicEmissionSystemData.cs | 1016 +- .../Generated/ElectronicEmissionsPdu.cs | 1024 +- .../Dis1998/Generated/EmitterSystem.cs | 728 +- .../Dis1998/Generated/EntityID.cs | 728 +- .../Generated/EntityInformationFamilyPdu.cs | 542 +- .../Generated/EntityManagementFamilyPdu.cs | 542 +- .../Dis1998/Generated/EntityStatePdu.cs | 1500 +- .../Dis1998/Generated/EntityStateUpdatePdu.cs | 1160 +- .../Dis1998/Generated/EntityType.cs | 978 +- .../Dis1998/Generated/Environment.cs | 920 +- .../Generated/EnvironmentalProcessPdu.cs | 1088 +- .../Dis1998/Generated/EventID.cs | 728 +- .../Dis1998/Generated/EventReportPdu.cs | 1096 +- .../Generated/EventReportReliablePdu.cs | 1096 +- .../Dis1998/Generated/FastEntityStatePdu.cs | 3278 +- .../Dis1998/Generated/FirePdu.cs | 1016 +- .../Dis1998/Generated/FixedDatum.cs | 664 +- .../Dis1998/Generated/FourByteChunk.cs | 648 +- .../Generated/FundamentalParameterData.cs | 1176 +- .../Generated/FundamentalParameterDataIff.cs | 1048 +- .../Dis1998/Generated/GridAxisRecord.cs | 664 +- .../GridAxisRecordRepresentation0.cs | 692 +- .../GridAxisRecordRepresentation1.cs | 860 +- .../GridAxisRecordRepresentation2.cs | 732 +- .../Dis1998/Generated/GriddedDataPdu.cs | 1606 +- .../Generated/IffAtcNavAidsLayer1Pdu.cs | 958 +- .../Generated/IffAtcNavAidsLayer2Pdu.cs | 888 +- .../Dis1998/Generated/IffFundamentalData.cs | 1176 +- .../IntercomCommunicationsParameters.cs | 728 +- .../Dis1998/Generated/IntercomControlPdu.cs | 1406 +- .../Dis1998/Generated/IntercomSignalPdu.cs | 1106 +- .../Dis1998/Generated/IsGroupOfPdu.cs | 1082 +- .../Dis1998/Generated/IsPartOfPdu.cs | 962 +- .../Dis1998/Generated/LayerHeader.cs | 728 +- .../Dis1998/Generated/LinearObjectStatePdu.cs | 1230 +- .../Generated/LinearSegmentParameter.cs | 1130 +- .../Dis1998/Generated/LogisticsFamilyPdu.cs | 542 +- .../Dis1998/Generated/Marking.cs | 718 +- .../Dis1998/Generated/MinefieldDataPdu.cs | 1630 +- .../Dis1998/Generated/MinefieldFamilyPdu.cs | 542 +- .../Dis1998/Generated/MinefieldQueryPdu.cs | 1368 +- .../Generated/MinefieldResponseNackPdu.cs | 958 +- .../Dis1998/Generated/MinefieldStatePdu.cs | 1504 +- .../Dis1998/Generated/ModulationType.cs | 792 +- .../Dis1998/Generated/NamedLocation.cs | 664 +- .../Dis1998/Generated/ObjectType.cs | 856 +- .../Dis1998/Generated/OneByteChunk.cs | 648 +- .../Dis1998/Generated/Orientation.cs | 710 +- .../{OpenDis => }/Dis1998/Generated/Pdu.cs | 984 +- .../Dis1998/Generated/PduContainer.cs | 748 +- .../{OpenDis => }/Dis1998/Generated/Point.cs | 664 +- .../Dis1998/Generated/PointObjectStatePdu.cs | 1350 +- .../Dis1998/Generated/PropulsionSystemData.cs | 664 +- .../Generated/RadioCommunicationsFamilyPdu.cs | 678 +- .../Dis1998/Generated/RadioEntityType.cs | 914 +- .../Dis1998/Generated/ReceiverPdu.cs | 870 +- .../Generated/RecordQueryReliablePdu.cs | 1140 +- .../Dis1998/Generated/RecordSet.cs | 920 +- .../Dis1998/Generated/Relationship.cs | 664 +- .../Dis1998/Generated/RemoveEntityPdu.cs | 608 +- .../Generated/RemoveEntityReliablePdu.cs | 800 +- .../Dis1998/Generated/RepairCompletePdu.cs | 810 +- .../Dis1998/Generated/RepairResponsePdu.cs | 874 +- .../Dis1998/Generated/ResupplyCancelPdu.cs | 682 +- .../Dis1998/Generated/ResupplyOfferPdu.cs | 1016 +- .../Dis1998/Generated/ResupplyReceivedPdu.cs | 1016 +- .../Dis1998/Generated/SeesPdu.cs | 1230 +- .../Dis1998/Generated/ServiceRequestPdu.cs | 1016 +- .../Dis1998/Generated/SetDataPdu.cs | 1096 +- .../Dis1998/Generated/SetDataReliablePdu.cs | 1224 +- .../Dis1998/Generated/SetRecordReliablePdu.cs | 1012 +- .../Dis1998/Generated/ShaftRPMs.cs | 728 +- .../Dis1998/Generated/SignalPdu.cs | 968 +- .../Dis1998/Generated/SimulationAddress.cs | 664 +- .../SimulationManagementFamilyPdu.cs | 682 +- ...ationManagementWithReliabilityFamilyPdu.cs | 682 +- .../Dis1998/Generated/SixByteChunk.cs | 648 +- .../SphericalHarmonicAntennaPattern.cs | 594 +- .../Dis1998/Generated/StartResumePdu.cs | 746 +- .../Generated/StartResumeReliablePdu.cs | 938 +- .../Dis1998/Generated/StopFreezePdu.cs | 870 +- .../Generated/StopFreezeReliablePdu.cs | 934 +- .../Dis1998/Generated/SupplyQuantity.cs | 670 +- .../SyntheticEnvironmentFamilyPdu.cs | 542 +- .../Dis1998/Generated/SystemID.cs | 792 +- .../Dis1998/Generated/TrackJamTarget.cs | 734 +- .../Generated/TransferControlRequestPdu.cs | 1154 +- .../Dis1998/Generated/TransmitterPdu.cs | 1952 +- .../Dis1998/Generated/TwoByteChunk.cs | 648 +- .../{OpenDis => }/Dis1998/Generated/UaPdu.cs | 1570 +- .../Dis1998/Generated/VariableDatum.cs | 812 +- .../Dis1998/Generated/Vector3Double.cs | 728 +- .../Dis1998/Generated/Vector3Float.cs | 728 +- .../Generated/VectoringNozzleSystemData.cs | 664 +- .../Dis1998/Generated/WarfareFamilyPdu.cs | 682 +- .../{OpenDis => }/Dis1998/PduFactory.cs | 478 +- .../{OpenDis => }/Dis1998/Vector3Double.cs | 38 +- .../{OpenDis => }/Dis1998/Vector3Float.cs | 38 +- .../Enumerations/Cet2006/AggregateTypes.xml | 30 +- .../Enumerations/Cet2006/Category.cs | 168 +- .../{OpenDis => }/Enumerations/Cet2006/Cet.cs | 82 +- .../Enumerations/Cet2006/CetFactory.cs | 248 +- .../Enumerations/Cet2006/CetItem.cs | 298 +- .../Enumerations/Cet2006/Entity.cs | 562 +- .../Enumerations/Cet2006/EntityTypes.xml | 30510 +++++++-------- .../Enumerations/Cet2006/Extra.cs | 124 +- .../Enumerations/Cet2006/GenericEntry.cs | 354 +- .../Enumerations/Cet2006/GenericTable.cs | 354 +- .../Enumerations/Cet2006/Specific.cs | 244 +- .../Enumerations/Cet2006/Subcategory.cs | 244 +- .../Enumerations/Cet2006/cet.xsd | 0 .../Enumerations/Cet2010/AggregateTypes.xml | 32 +- .../Enumerations/Cet2010/Category.cs | 190 +- .../Enumerations/Cet2010/CategoryRange.cs | 190 +- .../{OpenDis => }/Enumerations/Cet2010/Cet.cs | 88 +- .../Enumerations/Cet2010/CetFactory.cs | 250 +- .../Enumerations/Cet2010/CetItem.cs | 298 +- .../{OpenDis => }/Enumerations/Cet2010/Cr.cs | 186 +- .../Enumerations/Cet2010/CrRange.cs | 186 +- .../Enumerations/Cet2010/Entity.cs | 438 +- .../Enumerations/Cet2010/EntityTypes.xml | 32170 ++++++++-------- .../Enumerations/Cet2010/Extra.cs | 140 +- .../Enumerations/Cet2010/ExtraRange.cs | 140 +- .../Enumerations/Cet2010/GenericEntry.cs | 774 +- .../Cet2010/GenericEntryDescription.cs | 210 +- .../Enumerations/Cet2010/GenericEntryRange.cs | 150 +- .../Cet2010/GenericEntrySingle.cs | 104 +- .../Cet2010/GenericEntryStatus.cs | 46 +- .../Cet2010/GenericEntryString.cs | 94 +- .../Enumerations/Cet2010/GenericTable.cs | 582 +- .../Cet2010/ICategoryOrCategoryRange.cs | 24 +- .../Cet2010/IExtraOrExtraRange.cs | 24 +- .../Enumerations/Cet2010/IGenericEntry.cs | 44 +- .../Cet2010/IGenericEntryDescription.cs | 22 +- .../Cet2010/ISpecificOrSpecificRange.cs | 24 +- .../Cet2010/ISubcategoryOrSubcategoryRange.cs | 24 +- .../Enumerations/Cet2010/Specific.cs | 190 +- .../Enumerations/Cet2010/SpecificRange.cs | 190 +- .../Enumerations/Cet2010/Subcategory.cs | 190 +- .../Enumerations/Cet2010/SubcategoryRange.cs | 190 +- .../Enumerations/Cet2010/cet.xsd | 0 .../{OpenDis => }/Enumerations/Country.cs | 6468 ++-- .../InformationLayers.cs | 100 +- .../LayerSpecificInformation.cs | 78 +- .../DistributedEmission.Iff/SystemMode.cs | 78 +- .../DistributedEmission.Iff/SystemName.cs | 258 +- .../DistributedEmission.Iff/SystemStatus.cs | 220 +- .../DistributedEmission.Iff/SystemType.cs | 178 +- .../Type1AlternateParameter4.cs | 138 +- .../Type1ChangeOptions.cs | 120 +- .../DistributedEmission.Iff/Type1Modifier.cs | 140 +- .../Type1OperationalParameter1.cs | 78 +- .../Type1OperationalParameter2.cs | 78 +- .../Type1Parameter1Mode1CodeStatus.cs | 722 +- .../Type1Parameter2Mode2CodeStatus.cs | 798 +- .../Type1Parameter3Mode3CodeStatus.cs | 798 +- .../Type1Parameter4Mode4CodeStatus.cs | 726 +- .../Type1Parameter5ModeCCodeStatus.cs | 806 +- .../Type1Parameter6ModeSCodeStatus.cs | 140 +- .../Type2AlternateParameter4.cs | 138 +- .../Type2ChangeOptions.cs | 120 +- .../Type2OperationalParameter1.cs | 78 +- .../Type2OperationalParameter2.cs | 78 +- .../Type2Parameter1Mode1InterrogatorStatus.cs | 120 +- .../Type2Parameter2Mode2InterrogatorStatus.cs | 120 +- .../Type2Parameter3Mode3InterrogatorStatus.cs | 120 +- .../Type2Parameter4Mode4InterrogatorStatus.cs | 726 +- .../Type2Parameter5ModeCInterrogatorStatus.cs | 120 +- .../Type2Parameter6ModeSCodeStatus.cs | 140 +- .../Type3ChangeOptions.cs | 80 +- .../Type3OperationalParameter1.cs | 78 +- .../Type3OperationalParameter2.cs | 78 +- .../Type3Parameter1Mode1CodeStatus.cs | 120 +- .../Type3Parameter2Mode2CodeStatus.cs | 120 +- .../Type3Parameter3Mode3CodeStatus.cs | 120 +- .../Type3Parameter4Mode4CodeStatus.cs | 120 +- .../Type3Parameter5ModeCCodeStatus.cs | 120 +- .../Type3Parameter6Mode1CodeStatus.cs | 120 +- .../Type4ChangeOptions.cs | 80 +- .../Type4OperationalParameter1.cs | 78 +- .../Type4OperationalParameter2.cs | 78 +- .../Type4Parameter1.cs | 120 +- .../Type4Parameter2.cs | 120 +- .../Type4Parameter3.cs | 120 +- .../Type4Parameter4.cs | 120 +- .../Type4Parameter5.cs | 120 +- .../Type4Parameter6.cs | 120 +- .../Type5ChangeOptions.cs | 80 +- .../Type5OperationalParameter1.cs | 78 +- .../Type5OperationalParameter2.cs | 78 +- .../Type5Parameter1RRBResponse.cs | 844 +- .../ActiveEmissionParameterIndex.cs | 78 +- ...AdditionalPassiveActivityParameterIndex.cs | 104 +- .../EmitterFunction.cs | 158 +- .../PassiveParameterIndex.cs | 78 +- .../PropulsionPlantConfiguration.cs | 636 +- .../ScanPattern.cs | 178 +- .../StateChangeUpdateIndicator.cs | 98 +- .../SystemName.cs | 258 +- .../AircraftEnginePower.cs | 158 +- .../DistributedEmission/DesignatorCode.cs | 78 +- .../DistributedEmission/DesignatorCodeName.cs | 78 +- .../ElectromagneticEmitters.cs | 23678 ++++++------ .../EmissionBeamFunction.cs | 418 +- .../DistributedEmission/EmissionFunction.cs | 1418 +- .../HelicopterEnginePower.cs | 118 +- .../HighDensityTrackOrJam.cs | 98 +- .../StateUpdateIndicator.cs | 98 +- .../DistributedEmission/TankEnginePower.cs | 118 +- .../Appearance.cs | 746 +- .../DataFilter.cs | 280 +- .../FlirSensor.cs | 258 +- .../Entity.Information.Minefield/Fusing.cs | 746 +- .../LaserSensor.cs | 98 +- .../MagneticSensor.cs | 138 +- .../MultispectralSensor.cs | 78 +- .../OpticalSensor.cs | 298 +- .../PaintScheme.cs | 756 +- .../PhysicalSensor.cs | 118 +- .../ProtocolMode.cs | 496 +- .../RadarSensor.cs | 178 +- .../SensorTypes.cs | 238 +- .../SonarSensor.cs | 78 +- .../Entity.Information/EntityCollisionType.cs | 98 +- .../Entity.Management/AggregateFormation.cs | 178 +- .../Entity.Management/AggregateKind.cs | 178 +- .../Entity.Management/AggregateSpecific.cs | 98 +- .../Entity.Management/AggregateState.cs | 178 +- .../Entity.Management/AggregateSubcategory.cs | 518 +- .../GroupOfGroupedEntityCategory.cs | 258 +- .../Entity.Management/GroupOfRestStatus.cs | 238 +- .../Entity.Management/PartOfNature.cs | 278 +- .../Entity.Management/PartOfPosition.cs | 118 +- .../Entity.Management/PartOfStationName.cs | 398 +- .../Entity.Management/TransferType.cs | 218 +- .../AirPlatformAppearance.cs | 1856 +- .../CulturalAppearance.cs | 1156 +- .../EnvironmentalAppearance.cs | 766 +- .../LandPlatformAppearance.cs | 2536 +- .../LifeFormAppearance.cs | 1726 +- .../MunitionAppearance.cs | 1186 +- .../SensorEmitterAppearance.cs | 1846 +- .../SpacePlatformAppearance.cs | 1076 +- .../SubsurfacePlatformAppearance.cs | 1266 +- .../SurfacePlatformAppearance.cs | 1426 +- .../EntityState.Marking/ArmyMarkingCompany.cs | 398 +- .../ArmyMarkingDivisionCorpsDesignation.cs | 138 +- .../ArmyMarkingHighLevelUnitFor1stCavalry.cs | 838 +- .../ArmyMarkingHighLevelUnitFor1stInfantry.cs | 818 +- .../ArmyMarkingMarkingCodes.cs | 598 +- .../EntityState.Marking/ArmyMarkingPlatoon.cs | 258 +- .../ArmyMarkingPlatoonCodes.cs | 178 +- .../EntityState.Marking/ArmyMarkingVehicle.cs | 278 +- .../DigitChevronMarkingCodes.cs | 718 +- .../EntityState.Marking/EntityMarkingText.cs | 118 +- .../EntityState.Type/AirPlatform.cs | 418 +- .../CISWeaponsForLifeFormsSubcategory.cs | 998 +- .../EntityState.Type/EntityKind.cs | 258 +- .../EnvironmentalSubcategory.cs | 178 +- .../EntityState.Type/ExpendableAirCategory.cs | 198 +- .../ExpendableSubsurfaceCategory.cs | 118 +- .../ExpendableSurfaceCategory.cs | 138 +- .../FrenchWeaponsForLifeForms.cs | 218 +- .../GermanWeaponsForLifeForms.cs | 238 +- .../EntityState.Type/LandPlatform.cs | 878 +- .../Enumerations/EntityState.Type/Munition.cs | 318 +- .../EntityState.Type/MunitionCategory.cs | 138 +- .../Enumerations/EntityState.Type/Platform.cs | 178 +- .../EntityState.Type/RadioCategory.cs | 478 +- .../EntityState.Type/RadioNomenclature.cs | 158 +- .../RadioNomenclatureVersion.cs | 138 +- .../EntityState.Type/SensorEmitterCategory.cs | 398 +- .../EntityState.Type/SpacePlatform.cs | 138 +- .../EntityState.Type/SubsufracePlatform.cs | 218 +- .../EntityState.Type/SurfacePlatform.cs | 718 +- .../EntityState.Type/UKWeaponsForLifeForms.cs | 298 +- .../EntityState.Type/USWeaponsForLifeForms.cs | 2498 +- .../EntityState/ArticulatedPartIndex.cs | 2838 +- .../EntityState/ArticulatedPartOffset.cs | 378 +- .../Enumerations/EntityState/AttachedParts.cs | 20538 +++++----- .../EntityState/DeadReckoningAlgorithm.cs | 258 +- .../EntityState/EntityCapabilities.cs | 160 +- .../Enumerations/EntityState/EntityForceId.cs | 678 +- .../EntityState/ParameterTypeDesignator.cs | 98 +- .../Environment.Gridded/ConstantGrid.cs | 98 +- .../Environment.Gridded/CoordinateSystem.cs | 138 +- .../DataRepresentationType.cs | 118 +- .../AirBurstAndGroundBurst.cs | 658 +- .../ArealObjectStatePDUModificationField.cs | 80 +- .../Environment.ObjectState/Crater.cs | 444 +- .../Environment.ObjectState/ExhaustSmoke.cs | 624 +- .../GeneralAppearance.cs | 864 +- .../LinearObjectStatePDUModificationField.cs | 100 +- ...icleDefiladeAndInfantryFightingPosition.cs | 506 +- .../Environment.ObjectState/Minefield.cs | 544 +- .../MinefieldLaneMarker.cs | 506 +- .../Environment.ObjectState/ObjectKind.cs | 218 +- .../PointObjectStatePDUModificationField.cs | 100 +- .../Environment.ObjectState/RibbonBridge.cs | 444 +- .../TankDitchAndConcertinaWire.cs | 624 +- .../Environment.Process/EnvironmentStatus.cs | 100 +- ...ironmentalProcessTypesForGeometryRecord.cs | 398 +- ...EnvironmentalProcessTypesForStateRecord.cs | 98 +- .../Logistics/AuxilaryCraftRepairCode.cs | 118 +- .../Logistics/DriveTrainRepairCode.cs | 358 +- .../Logistics/ElectronicsRepairCode.cs | 538 +- .../Logistics/FuelSystemRepairCode.cs | 138 +- .../Logistics/GeneralRepairCode.cs | 98 +- .../Logistics/HullAirframeBodyRepairCode.cs | 178 +- .../Logistics/HydraulicSystemsAndActuators.cs | 178 +- .../InterfacesWithEnvironmentRepairCode.cs | 158 +- .../Logistics/LifeSupportRepairCode.cs | 198 +- .../Logistics/ResponseResultCode.cs | 158 +- .../Logistics/ServiceRequestType.cs | 118 +- .../Logistics/WeaponRepairCode.cs | 298 +- .../{OpenDis => }/Enumerations/PduType.cs | 1418 +- .../Enumerations/ProtocolFamily.cs | 338 +- .../Enumerations/ProtocolVersion.cs | 208 +- .../Enumerations/Radio.Intercom/Command.cs | 198 +- .../Radio.Intercom/CommunicationsType.cs | 144 +- .../Radio.Intercom/ControlType.cs | 164 +- .../DestinationLineStateCommand.cs | 138 +- .../Enumerations/Radio.Intercom/RecordType.cs | 118 +- .../Radio.Intercom/TransmitLineState.cs | 118 +- .../Radio.Transmitter/AntennaPatternType.cs | 118 +- .../Radio.Transmitter/ClearChannel.cs | 98 +- .../Radio.Transmitter/CryptoSystem.cs | 158 +- ...odulationForAmplitudeAndAngleModulation.cs | 98 +- ...etailedModulationForAmplitudeModulation.cs | 278 +- .../DetailedModulationForAngleModulation.cs | 138 +- .../DetailedModulationForCarrierPhaseShift.cs | 78 +- ...ailedModulationForCombinationModulation.cs | 98 +- .../DetailedModulationForPulseModulation.cs | 138 +- ...ailedModulationForUnmodulatedModulation.cs | 98 +- .../Radio.Transmitter/InputSource.cs | 258 +- .../JtidsSynchronizationState.cs | 98 +- .../JtidsTransmittingTerminalPrimaryMode.cs | 98 +- .../JtidsTransmittingTerminalSecondaryMode.cs | 138 +- .../Radio.Transmitter/MajorModulation.cs | 218 +- .../Radio.Transmitter/RadioSignalEncoding.cs | 626 +- .../Radio.Transmitter/ReferenceSystem.cs | 98 +- .../Radio.Transmitter/SpreadSpectrum.cs | 120 +- .../Radio.Transmitter/StartOfMessage.cs | 98 +- .../Enumerations/Radio.Transmitter/TDLType.cs | 1518 +- .../Radio.Transmitter/TransmitState.cs | 118 +- .../TransmitterModulationSystemType.cs | 238 +- .../UserProtocolIdentificationNumber.cs | 618 +- .../Enumerations/Radio/ReceiverState.cs | 118 +- .../SimulationManagement/AcknowledgeFlag.cs | 158 +- .../SimulationManagement/ActionId.cs | 1038 +- .../ActionResponseRequestStatus.cs | 338 +- .../DatumSpecificationRecord.cs | 14658 +++---- .../SimulationManagement/EventType.cs | 378 +- .../SimulationManagement/FrozenBehavior.cs | 120 +- .../RequiredReliabilityService.cs | 98 +- .../SimulationManagement/ResponseFlag.cs | 118 +- .../SimulationManagement/StopFreezeReason.cs | 238 +- .../Enumerations/Warfare/DetonationResult.cs | 738 +- .../Enumerations/Warfare/Fuse.cs | 1978 +- .../Enumerations/Warfare/Warhead.cs | 1418 +- .../FxCop OpenDis Analysis.FxCop | 14646 +++---- .../{OpenDis => }/FxCopCustomDictionary.xml | 50 +- Libs/CsharpDis6/OpenDis.csproj | 9 + .../{OpenDis => }/OpenDis.csproj.user | 11 +- Libs/CsharpDis6/OpenDis.sln | 47 - Libs/CsharpDis6/OpenDis.suo | Bin 286208 -> 0 bytes Libs/CsharpDis6/OpenDis/OpenDis.build.bat | 2 - Libs/CsharpDis6/OpenDis/OpenDis.build.csproj | 12 - Libs/CsharpDis6/OpenDis/OpenDis.csproj | 826 - .../OpenDis/Properties/AssemblyInfo.cs | 25 - Libs/CsharpDis6/OpenDis/Properties/Version.cs | 4 - .../{OpenDis => }/Settings.StyleCop | 288 +- .../Utilities/ChunkConverters.cs | 652 +- .../{OpenDis => }/Utilities/Conversion.cs | 220 +- .../Utilities/CoordinateConversions.cs | 284 +- .../Utilities/DataInputStream.cs | 640 +- .../Utilities/DataOutputStream.cs | 648 +- .../{OpenDis => }/Utilities/DataStream.cs | 392 +- .../{OpenDis => }/Utilities/PDUProcessor.cs | 1330 +- Libs/CsharpDis6/{OpenDis => }/key.snk | Bin OpenDis.sln | 69 + .../OpenDis.EspduReceiver.csproj | 64 +- .../EspduReceiver/Properties/AssemblyInfo.cs | 36 - .../EspduSender/OpenDis.EspduSender.csproj | 64 +- Samples/OpenDis.Demo/OpenDis.Demo.csproj | 7 +- 673 files changed, 207532 insertions(+), 282462 deletions(-) create mode 100644 .vs/OpenDis/DesignTimeBuild/.dtbcache.v2 delete mode 100644 Libs/CSharpDis7/AcknowledgePdu.cs delete mode 100644 Libs/CSharpDis7/AcknowledgeReliablePdu.cs delete mode 100644 Libs/CSharpDis7/AcousticEmitter.cs delete mode 100644 Libs/CSharpDis7/ActionRequestPdu.cs delete mode 100644 Libs/CSharpDis7/ActionRequestReliablePdu.cs delete mode 100644 Libs/CSharpDis7/ActionResponsePdu.cs delete mode 100644 Libs/CSharpDis7/ActionResponseReliablePdu.cs delete mode 100644 Libs/CSharpDis7/AggregateIdentifier.cs delete mode 100644 Libs/CSharpDis7/AggregateMarking.cs delete mode 100644 Libs/CSharpDis7/AggregateType.cs delete mode 100644 Libs/CSharpDis7/AngleDeception.cs delete mode 100644 Libs/CSharpDis7/AngularVelocityVector.cs delete mode 100644 Libs/CSharpDis7/AntennaLocation.cs delete mode 100644 Libs/CSharpDis7/ArealObjectStatePdu.cs delete mode 100644 Libs/CSharpDis7/ArticulatedParts.cs delete mode 100644 Libs/CSharpDis7/Association.cs delete mode 100644 Libs/CSharpDis7/AttachedParts.cs delete mode 100644 Libs/CSharpDis7/Attribute.cs delete mode 100644 Libs/CSharpDis7/AttributePdu.cs delete mode 100644 Libs/CSharpDis7/BeamAntennaPattern.cs delete mode 100644 Libs/CSharpDis7/BeamData.cs delete mode 100644 Libs/CSharpDis7/BeamStatus.cs delete mode 100644 Libs/CSharpDis7/BlankingSector.cs delete mode 100644 Libs/CSharpDis7/ChangeOptions.cs delete mode 100644 Libs/CSharpDis7/ClockTime.cs delete mode 100644 Libs/CSharpDis7/CollisionElasticPdu.cs delete mode 100644 Libs/CSharpDis7/CollisionPdu.cs delete mode 100644 Libs/CSharpDis7/CommentPdu.cs delete mode 100644 Libs/CSharpDis7/CommentReliablePdu.cs delete mode 100644 Libs/CSharpDis7/CommunicationsNodeID.cs delete mode 100644 Libs/CSharpDis7/CreateEntityPdu.cs delete mode 100644 Libs/CSharpDis7/CreateEntityReliablePdu.cs delete mode 100644 Libs/CSharpDis7/DataPdu.cs delete mode 100644 Libs/CSharpDis7/DataQueryDatumSpecification.cs delete mode 100644 Libs/CSharpDis7/DataQueryPdu.cs delete mode 100644 Libs/CSharpDis7/DataQueryReliablePdu.cs delete mode 100644 Libs/CSharpDis7/DataReliablePdu.cs delete mode 100644 Libs/CSharpDis7/DatumSpecification.cs delete mode 100644 Libs/CSharpDis7/DeadReckoningParameters.cs delete mode 100644 Libs/CSharpDis7/DesignatorPdu.cs delete mode 100644 Libs/CSharpDis7/DetonationPdu.cs delete mode 100644 Libs/CSharpDis7/DirectedEnergyAreaAimpoint.cs delete mode 100644 Libs/CSharpDis7/DirectedEnergyDamage.cs delete mode 100644 Libs/CSharpDis7/DirectedEnergyFirePdu.cs delete mode 100644 Libs/CSharpDis7/DirectedEnergyPrecisionAimpoint.cs delete mode 100644 Libs/CSharpDis7/DirectedEnergyTargetEnergyDeposition.cs delete mode 100644 Libs/CSharpDis7/DistributedEmissionsFamilyPdu.cs delete mode 100644 Libs/CSharpDis7/EEFundamentalParameterData.cs delete mode 100644 Libs/CSharpDis7/EightByteChunk.cs delete mode 100644 Libs/CSharpDis7/ElectronicEmissionsPdu.cs delete mode 100644 Libs/CSharpDis7/EmitterSystem.cs delete mode 100644 Libs/CSharpDis7/EngineFuel.cs delete mode 100644 Libs/CSharpDis7/EngineFuelReload.cs delete mode 100644 Libs/CSharpDis7/EntityAssociation.cs delete mode 100644 Libs/CSharpDis7/EntityDamageStatusPdu.cs delete mode 100644 Libs/CSharpDis7/EntityID.cs delete mode 100644 Libs/CSharpDis7/EntityInformationFamilyPdu.cs delete mode 100644 Libs/CSharpDis7/EntityManagementFamilyPdu.cs delete mode 100644 Libs/CSharpDis7/EntityMarking.cs delete mode 100644 Libs/CSharpDis7/EntityStatePdu.cs delete mode 100644 Libs/CSharpDis7/EntityStateUpdatePdu.cs delete mode 100644 Libs/CSharpDis7/EntityType.cs delete mode 100644 Libs/CSharpDis7/EntityTypeVP.cs delete mode 100644 Libs/CSharpDis7/Environment.cs delete mode 100644 Libs/CSharpDis7/EnvironmentGeneral.cs delete mode 100644 Libs/CSharpDis7/EnvironmentType.cs delete mode 100644 Libs/CSharpDis7/EulerAngles.cs delete mode 100644 Libs/CSharpDis7/EventIdentifier.cs delete mode 100644 Libs/CSharpDis7/EventIdentifierLiveEntity.cs delete mode 100644 Libs/CSharpDis7/EventReportPdu.cs delete mode 100644 Libs/CSharpDis7/EventReportReliablePdu.cs delete mode 100644 Libs/CSharpDis7/Expendable.cs delete mode 100644 Libs/CSharpDis7/ExpendableDescriptor.cs delete mode 100644 Libs/CSharpDis7/ExpendableReload.cs delete mode 100644 Libs/CSharpDis7/ExplosionDescriptor.cs delete mode 100644 Libs/CSharpDis7/FalseTargetsAttribute.cs delete mode 100644 Libs/CSharpDis7/FastEntityStatePdu.cs delete mode 100644 Libs/CSharpDis7/FirePdu.cs delete mode 100644 Libs/CSharpDis7/FixedDatum.cs delete mode 100644 Libs/CSharpDis7/FourByteChunk.cs delete mode 100644 Libs/CSharpDis7/FundamentalOperationalData.cs delete mode 100644 Libs/CSharpDis7/GridAxis.cs delete mode 100644 Libs/CSharpDis7/GroupIdentifier.cs delete mode 100644 Libs/CSharpDis7/IFFFundamentalParameterData.cs delete mode 100644 Libs/CSharpDis7/IOCommunicationsNode.cs delete mode 100644 Libs/CSharpDis7/IOEffect.cs delete mode 100644 Libs/CSharpDis7/IffDataSpecification.cs delete mode 100644 Libs/CSharpDis7/IntercomCommunicationsParameters.cs delete mode 100644 Libs/CSharpDis7/IntercomIdentifier.cs delete mode 100644 Libs/CSharpDis7/IntercomSignalPdu.cs delete mode 100644 Libs/CSharpDis7/IsPartOfPdu.cs delete mode 100644 Libs/CSharpDis7/JammingTechnique.cs delete mode 100644 Libs/CSharpDis7/LaunchedMunitionRecord.cs delete mode 100644 Libs/CSharpDis7/LayerHeader.cs delete mode 100644 Libs/CSharpDis7/LinearObjectStatePdu.cs delete mode 100644 Libs/CSharpDis7/LinearSegmentParameter.cs delete mode 100644 Libs/CSharpDis7/LiveEntityIdentifier.cs delete mode 100644 Libs/CSharpDis7/LiveEntityPdu.cs delete mode 100644 Libs/CSharpDis7/LiveSimulationAddress.cs delete mode 100644 Libs/CSharpDis7/LogisticsFamilyPdu.cs delete mode 100644 Libs/CSharpDis7/MineEntityIdentifier.cs delete mode 100644 Libs/CSharpDis7/MinefieldFamilyPdu.cs delete mode 100644 Libs/CSharpDis7/MinefieldIdentifier.cs delete mode 100644 Libs/CSharpDis7/MinefieldResponseNackPdu.cs delete mode 100644 Libs/CSharpDis7/MinefieldStatePdu.cs delete mode 100644 Libs/CSharpDis7/ModulationParameters.cs delete mode 100644 Libs/CSharpDis7/ModulationType.cs delete mode 100644 Libs/CSharpDis7/Munition.cs delete mode 100644 Libs/CSharpDis7/MunitionDescriptor.cs delete mode 100644 Libs/CSharpDis7/MunitionReload.cs delete mode 100644 Libs/CSharpDis7/NamedLocationIdentification.cs delete mode 100644 Libs/CSharpDis7/ObjectIdentifier.cs delete mode 100644 Libs/CSharpDis7/ObjectType.cs delete mode 100644 Libs/CSharpDis7/OneByteChunk.cs delete mode 100644 Libs/CSharpDis7/OwnershipStatus.cs delete mode 100644 Libs/CSharpDis7/Pdu.cs delete mode 100644 Libs/CSharpDis7/PduContainer.cs delete mode 100644 Libs/CSharpDis7/PduHeader.cs delete mode 100644 Libs/CSharpDis7/PduStatus.cs delete mode 100644 Libs/CSharpDis7/PduSuperclass.cs delete mode 100644 Libs/CSharpDis7/PointObjectStatePdu.cs delete mode 100644 Libs/CSharpDis7/PropulsionSystemData.cs delete mode 100644 Libs/CSharpDis7/RadioCommunicationsFamilyPdu.cs delete mode 100644 Libs/CSharpDis7/RadioIdentifier.cs delete mode 100644 Libs/CSharpDis7/RadioType.cs delete mode 100644 Libs/CSharpDis7/ReceiverPdu.cs delete mode 100644 Libs/CSharpDis7/RecordQueryReliablePdu.cs delete mode 100644 Libs/CSharpDis7/RecordQuerySpecification.cs delete mode 100644 Libs/CSharpDis7/RecordSpecification.cs delete mode 100644 Libs/CSharpDis7/RecordSpecificationElement.cs delete mode 100644 Libs/CSharpDis7/Relationship.cs delete mode 100644 Libs/CSharpDis7/RemoveEntityPdu.cs delete mode 100644 Libs/CSharpDis7/RemoveEntityReliablePdu.cs delete mode 100644 Libs/CSharpDis7/RepairCompletePdu.cs delete mode 100644 Libs/CSharpDis7/RepairResponsePdu.cs delete mode 100644 Libs/CSharpDis7/ResupplyOfferPdu.cs delete mode 100644 Libs/CSharpDis7/ResupplyReceivedPdu.cs delete mode 100644 Libs/CSharpDis7/SecondaryOperationalData.cs delete mode 100644 Libs/CSharpDis7/SeesPdu.cs delete mode 100644 Libs/CSharpDis7/Sensor.cs delete mode 100644 Libs/CSharpDis7/SeparationVP.cs delete mode 100644 Libs/CSharpDis7/ServiceRequestPdu.cs delete mode 100644 Libs/CSharpDis7/SetDataPdu.cs delete mode 100644 Libs/CSharpDis7/SetDataReliablePdu.cs delete mode 100644 Libs/CSharpDis7/SimulationAddress.cs delete mode 100644 Libs/CSharpDis7/SimulationIdentifier.cs delete mode 100644 Libs/CSharpDis7/SimulationManagementFamilyPdu.cs delete mode 100644 Libs/CSharpDis7/SimulationManagementPduHeader.cs delete mode 100644 Libs/CSharpDis7/SimulationManagementWithReliabilityFamilyPdu.cs delete mode 100644 Libs/CSharpDis7/StandardVariableSpecification.cs delete mode 100644 Libs/CSharpDis7/StartResumePdu.cs delete mode 100644 Libs/CSharpDis7/StartResumeReliablePdu.cs delete mode 100644 Libs/CSharpDis7/StopFreezePdu.cs delete mode 100644 Libs/CSharpDis7/StopFreezeReliablePdu.cs delete mode 100644 Libs/CSharpDis7/StorageFuel.cs delete mode 100644 Libs/CSharpDis7/StorageFuelReload.cs delete mode 100644 Libs/CSharpDis7/SupplyQuantity.cs delete mode 100644 Libs/CSharpDis7/SyntheticEnvironmentFamilyPdu.cs delete mode 100644 Libs/CSharpDis7/SystemIdentifier.cs delete mode 100644 Libs/CSharpDis7/TotalRecordSets.cs delete mode 100644 Libs/CSharpDis7/TrackJamData.cs delete mode 100644 Libs/CSharpDis7/TwoByteChunk.cs delete mode 100644 Libs/CSharpDis7/UAFundamentalParameter.cs delete mode 100644 Libs/CSharpDis7/UaPdu.cs delete mode 100644 Libs/CSharpDis7/UnattachedIdentifier.cs delete mode 100644 Libs/CSharpDis7/UnsignedDISInteger.cs delete mode 100644 Libs/CSharpDis7/VariableDatum.cs delete mode 100644 Libs/CSharpDis7/VariableParameter.cs delete mode 100644 Libs/CSharpDis7/VariableTransmitterParameters.cs delete mode 100644 Libs/CSharpDis7/Vector2Float.cs delete mode 100644 Libs/CSharpDis7/Vector3Double.cs delete mode 100644 Libs/CSharpDis7/Vector3Float.cs delete mode 100644 Libs/CSharpDis7/VectoringNozzleSystem.cs delete mode 100644 Libs/CSharpDis7/WarfareFamilyPdu.cs rename Libs/CsharpDis6/{OpenDis => }/Core/CetBase.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Core/DisTime.cs (100%) rename Libs/CsharpDis6/{OpenDis => }/Core/EndianTypes.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Core/EnumHelper.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Core/EnumNotFoundException.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Core/ICetItem.cs (96%) rename Libs/CsharpDis6/{OpenDis => }/Core/IPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Core/InternetDomainCodeAttribute.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Core/PduBase.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Core/PduExceptionEventArgs.cs (96%) rename Libs/CsharpDis6/{OpenDis => }/Core/PduFactory.cs (92%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/EntityID.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/AcknowledgePdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/ActionRequestPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/ActionResponsePdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/AngularVelocityVector.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/AntennaLocation.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/ArticulationParameter.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/BeamAntennaPattern.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/BurstDescriptor.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/ClockTime.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/CollisionPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/CommentPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/CreateEntityPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/DataPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/DataQueryPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/DeadReckoningParameter.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/DesignatorPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/DetonationPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/DistributedEmissionsPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/EightByteChunk.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/ElectronicEmmisionsPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/EmitterSystem.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/EntityID.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/EntityInformationPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/EntityStatePdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/EntityType.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/EventID.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/EventReportPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/FirePdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/FixedDatum.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/FundamentalParameterData.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/LogisticsPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/ModulationType.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/Orientation.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/Pdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/RadioCommunicationsPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/RadioEntityType.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/ReceiverPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/RemoveEntityPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/RepairCompletePdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/RepairResponsePdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/ResupplyCancelPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/ResupplyOfferPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/ResupplyReceivedPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/ServiceRequestPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/SetDataPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/SignalPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/SimulationAddress.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/SimulationManagementPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/SphericalHarmonicAntennaPattern.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/StartResumePdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/StopFreezePdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/SupplyQuantity.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/TransmitterPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/VariableDatum.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/Vector3Double.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/Vector3Float.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Generated/Warfare.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/PduFactory.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Vector3Double.cs (96%) rename Libs/CsharpDis6/{OpenDis => }/Dis1995/Vector3Float.cs (96%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/EntityID.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/AcknowledgePdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/AcknowledgeReliablePdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/AcousticBeamData.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/AcousticBeamFundamentalParameter.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/AcousticEmitter.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/AcousticEmitterSystem.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/AcousticEmitterSystemData.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/ActionRequestPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/ActionRequestReliablePdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/ActionResponsePdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/ActionResponseReliablePdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/AggregateID.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/AggregateMarking.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/AggregateStatePdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/AggregateType.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/AngularVelocityVector.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/AntennaLocation.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/ApaData.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/ArealObjectStatePdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/ArticulationParameter.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/BeamAntennaPattern.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/BeamData.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/BurstDescriptor.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/ClockTime.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/CollisionElasticPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/CollisionPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/CommentPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/CommentReliablePdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/CreateEntityPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/CreateEntityReliablePdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/DataPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/DataQueryPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/DataQueryReliablePdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/DataReliablePdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/DeadReckoningParameter.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/DesignatorPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/DetonationPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/DistributedEmissionsFamilyPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/EightByteChunk.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/ElectronicEmissionBeamData.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/ElectronicEmissionSystemData.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/ElectronicEmissionsPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/EmitterSystem.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/EntityID.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/EntityInformationFamilyPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/EntityManagementFamilyPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/EntityStatePdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/EntityStateUpdatePdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/EntityType.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/Environment.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/EnvironmentalProcessPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/EventID.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/EventReportPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/EventReportReliablePdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/FastEntityStatePdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/FirePdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/FixedDatum.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/FourByteChunk.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/FundamentalParameterData.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/FundamentalParameterDataIff.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/GridAxisRecord.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/GridAxisRecordRepresentation0.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/GridAxisRecordRepresentation1.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/GridAxisRecordRepresentation2.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/GriddedDataPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/IffAtcNavAidsLayer1Pdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/IffAtcNavAidsLayer2Pdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/IffFundamentalData.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/IntercomCommunicationsParameters.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/IntercomControlPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/IntercomSignalPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/IsGroupOfPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/IsPartOfPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/LayerHeader.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/LinearObjectStatePdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/LinearSegmentParameter.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/LogisticsFamilyPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/Marking.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/MinefieldDataPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/MinefieldFamilyPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/MinefieldQueryPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/MinefieldResponseNackPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/MinefieldStatePdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/ModulationType.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/NamedLocation.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/ObjectType.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/OneByteChunk.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/Orientation.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/Pdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/PduContainer.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/Point.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/PointObjectStatePdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/PropulsionSystemData.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/RadioCommunicationsFamilyPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/RadioEntityType.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/ReceiverPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/RecordQueryReliablePdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/RecordSet.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/Relationship.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/RemoveEntityPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/RemoveEntityReliablePdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/RepairCompletePdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/RepairResponsePdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/ResupplyCancelPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/ResupplyOfferPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/ResupplyReceivedPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/SeesPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/ServiceRequestPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/SetDataPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/SetDataReliablePdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/SetRecordReliablePdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/ShaftRPMs.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/SignalPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/SimulationAddress.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/SimulationManagementFamilyPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/SimulationManagementWithReliabilityFamilyPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/SixByteChunk.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/SphericalHarmonicAntennaPattern.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/StartResumePdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/StartResumeReliablePdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/StopFreezePdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/StopFreezeReliablePdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/SupplyQuantity.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/SyntheticEnvironmentFamilyPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/SystemID.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/TrackJamTarget.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/TransferControlRequestPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/TransmitterPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/TwoByteChunk.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/UaPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/VariableDatum.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/Vector3Double.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/Vector3Float.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/VectoringNozzleSystemData.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Generated/WarfareFamilyPdu.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/PduFactory.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Vector3Double.cs (96%) rename Libs/CsharpDis6/{OpenDis => }/Dis1998/Vector3Float.cs (96%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Cet2006/AggregateTypes.xml (97%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Cet2006/Category.cs (95%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Cet2006/Cet.cs (95%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Cet2006/CetFactory.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Cet2006/CetItem.cs (96%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Cet2006/Entity.cs (96%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Cet2006/EntityTypes.xml (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Cet2006/Extra.cs (95%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Cet2006/GenericEntry.cs (95%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Cet2006/GenericTable.cs (96%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Cet2006/Specific.cs (95%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Cet2006/Subcategory.cs (95%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Cet2006/cet.xsd (100%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Cet2010/AggregateTypes.xml (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Cet2010/Category.cs (96%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Cet2010/CategoryRange.cs (96%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Cet2010/Cet.cs (95%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Cet2010/CetFactory.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Cet2010/CetItem.cs (96%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Cet2010/Cr.cs (96%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Cet2010/CrRange.cs (95%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Cet2010/Entity.cs (96%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Cet2010/EntityTypes.xml (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Cet2010/Extra.cs (96%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Cet2010/ExtraRange.cs (96%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Cet2010/GenericEntry.cs (96%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Cet2010/GenericEntryDescription.cs (96%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Cet2010/GenericEntryRange.cs (96%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Cet2010/GenericEntrySingle.cs (95%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Cet2010/GenericEntryStatus.cs (96%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Cet2010/GenericEntryString.cs (95%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Cet2010/GenericTable.cs (96%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Cet2010/ICategoryOrCategoryRange.cs (96%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Cet2010/IExtraOrExtraRange.cs (95%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Cet2010/IGenericEntry.cs (96%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Cet2010/IGenericEntryDescription.cs (95%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Cet2010/ISpecificOrSpecificRange.cs (96%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Cet2010/ISubcategoryOrSubcategoryRange.cs (96%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Cet2010/Specific.cs (96%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Cet2010/SpecificRange.cs (96%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Cet2010/Subcategory.cs (96%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Cet2010/SubcategoryRange.cs (96%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Cet2010/cet.xsd (100%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Country.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/InformationLayers.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/LayerSpecificInformation.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/SystemMode.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/SystemName.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/SystemStatus.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/SystemType.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/Type1AlternateParameter4.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/Type1ChangeOptions.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/Type1Modifier.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/Type1OperationalParameter1.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/Type1OperationalParameter2.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/Type1Parameter1Mode1CodeStatus.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/Type1Parameter2Mode2CodeStatus.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/Type1Parameter3Mode3CodeStatus.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/Type1Parameter4Mode4CodeStatus.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/Type1Parameter5ModeCCodeStatus.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/Type1Parameter6ModeSCodeStatus.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/Type2AlternateParameter4.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/Type2ChangeOptions.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/Type2OperationalParameter1.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/Type2OperationalParameter2.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/Type2Parameter1Mode1InterrogatorStatus.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/Type2Parameter2Mode2InterrogatorStatus.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/Type2Parameter3Mode3InterrogatorStatus.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/Type2Parameter4Mode4InterrogatorStatus.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/Type2Parameter5ModeCInterrogatorStatus.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/Type2Parameter6ModeSCodeStatus.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/Type3ChangeOptions.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/Type3OperationalParameter1.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/Type3OperationalParameter2.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/Type3Parameter1Mode1CodeStatus.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/Type3Parameter2Mode2CodeStatus.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/Type3Parameter3Mode3CodeStatus.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/Type3Parameter4Mode4CodeStatus.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/Type3Parameter5ModeCCodeStatus.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/Type3Parameter6Mode1CodeStatus.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/Type4ChangeOptions.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/Type4OperationalParameter1.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/Type4OperationalParameter2.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/Type4Parameter1.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/Type4Parameter2.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/Type4Parameter3.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/Type4Parameter4.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/Type4Parameter5.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/Type4Parameter6.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/Type5ChangeOptions.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/Type5OperationalParameter1.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/Type5OperationalParameter2.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.Iff/Type5Parameter1RRBResponse.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.UnderwaterAcoustic/ActiveEmissionParameterIndex.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.UnderwaterAcoustic/AdditionalPassiveActivityParameterIndex.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.UnderwaterAcoustic/EmitterFunction.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.UnderwaterAcoustic/PassiveParameterIndex.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.UnderwaterAcoustic/PropulsionPlantConfiguration.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.UnderwaterAcoustic/ScanPattern.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.UnderwaterAcoustic/StateChangeUpdateIndicator.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission.UnderwaterAcoustic/SystemName.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission/AircraftEnginePower.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission/DesignatorCode.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission/DesignatorCodeName.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission/ElectromagneticEmitters.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission/EmissionBeamFunction.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission/EmissionFunction.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission/HelicopterEnginePower.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission/HighDensityTrackOrJam.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission/StateUpdateIndicator.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/DistributedEmission/TankEnginePower.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Entity.Information.Minefield/Appearance.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Entity.Information.Minefield/DataFilter.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Entity.Information.Minefield/FlirSensor.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Entity.Information.Minefield/Fusing.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Entity.Information.Minefield/LaserSensor.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Entity.Information.Minefield/MagneticSensor.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Entity.Information.Minefield/MultispectralSensor.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Entity.Information.Minefield/OpticalSensor.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Entity.Information.Minefield/PaintScheme.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Entity.Information.Minefield/PhysicalSensor.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Entity.Information.Minefield/ProtocolMode.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Entity.Information.Minefield/RadarSensor.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Entity.Information.Minefield/SensorTypes.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Entity.Information.Minefield/SonarSensor.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Entity.Information/EntityCollisionType.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Entity.Management/AggregateFormation.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Entity.Management/AggregateKind.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Entity.Management/AggregateSpecific.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Entity.Management/AggregateState.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Entity.Management/AggregateSubcategory.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Entity.Management/GroupOfGroupedEntityCategory.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Entity.Management/GroupOfRestStatus.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Entity.Management/PartOfNature.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Entity.Management/PartOfPosition.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Entity.Management/PartOfStationName.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Entity.Management/TransferType.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState.Appearance/AirPlatformAppearance.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState.Appearance/CulturalAppearance.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState.Appearance/EnvironmentalAppearance.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState.Appearance/LandPlatformAppearance.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState.Appearance/LifeFormAppearance.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState.Appearance/MunitionAppearance.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState.Appearance/SensorEmitterAppearance.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState.Appearance/SpacePlatformAppearance.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState.Appearance/SubsurfacePlatformAppearance.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState.Appearance/SurfacePlatformAppearance.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState.Marking/ArmyMarkingCompany.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState.Marking/ArmyMarkingDivisionCorpsDesignation.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState.Marking/ArmyMarkingHighLevelUnitFor1stCavalry.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState.Marking/ArmyMarkingHighLevelUnitFor1stInfantry.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState.Marking/ArmyMarkingMarkingCodes.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState.Marking/ArmyMarkingPlatoon.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState.Marking/ArmyMarkingPlatoonCodes.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState.Marking/ArmyMarkingVehicle.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState.Marking/DigitChevronMarkingCodes.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState.Marking/EntityMarkingText.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState.Type/AirPlatform.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState.Type/CISWeaponsForLifeFormsSubcategory.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState.Type/EntityKind.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState.Type/EnvironmentalSubcategory.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState.Type/ExpendableAirCategory.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState.Type/ExpendableSubsurfaceCategory.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState.Type/ExpendableSurfaceCategory.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState.Type/FrenchWeaponsForLifeForms.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState.Type/GermanWeaponsForLifeForms.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState.Type/LandPlatform.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState.Type/Munition.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState.Type/MunitionCategory.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState.Type/Platform.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState.Type/RadioCategory.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState.Type/RadioNomenclature.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState.Type/RadioNomenclatureVersion.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState.Type/SensorEmitterCategory.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState.Type/SpacePlatform.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState.Type/SubsufracePlatform.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState.Type/SurfacePlatform.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState.Type/UKWeaponsForLifeForms.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState.Type/USWeaponsForLifeForms.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState/ArticulatedPartIndex.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState/ArticulatedPartOffset.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState/AttachedParts.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState/DeadReckoningAlgorithm.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState/EntityCapabilities.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState/EntityForceId.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/EntityState/ParameterTypeDesignator.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Environment.Gridded/ConstantGrid.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Environment.Gridded/CoordinateSystem.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Environment.Gridded/DataRepresentationType.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Environment.ObjectState/AirBurstAndGroundBurst.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Environment.ObjectState/ArealObjectStatePDUModificationField.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Environment.ObjectState/Crater.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Environment.ObjectState/ExhaustSmoke.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Environment.ObjectState/GeneralAppearance.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Environment.ObjectState/LinearObjectStatePDUModificationField.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Environment.ObjectState/LogCribAbatisVehicleDefiladeAndInfantryFightingPosition.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Environment.ObjectState/Minefield.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Environment.ObjectState/MinefieldLaneMarker.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Environment.ObjectState/ObjectKind.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Environment.ObjectState/PointObjectStatePDUModificationField.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Environment.ObjectState/RibbonBridge.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Environment.ObjectState/TankDitchAndConcertinaWire.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Environment.Process/EnvironmentStatus.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Environment.Process/EnvironmentalProcessTypesForGeometryRecord.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Environment.Process/EnvironmentalProcessTypesForStateRecord.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Logistics/AuxilaryCraftRepairCode.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Logistics/DriveTrainRepairCode.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Logistics/ElectronicsRepairCode.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Logistics/FuelSystemRepairCode.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Logistics/GeneralRepairCode.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Logistics/HullAirframeBodyRepairCode.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Logistics/HydraulicSystemsAndActuators.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Logistics/InterfacesWithEnvironmentRepairCode.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Logistics/LifeSupportRepairCode.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Logistics/ResponseResultCode.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Logistics/ServiceRequestType.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Logistics/WeaponRepairCode.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/PduType.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/ProtocolFamily.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/ProtocolVersion.cs (89%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Radio.Intercom/Command.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Radio.Intercom/CommunicationsType.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Radio.Intercom/ControlType.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Radio.Intercom/DestinationLineStateCommand.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Radio.Intercom/RecordType.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Radio.Intercom/TransmitLineState.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Radio.Transmitter/AntennaPatternType.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Radio.Transmitter/ClearChannel.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Radio.Transmitter/CryptoSystem.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Radio.Transmitter/DetailedModulationForAmplitudeAndAngleModulation.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Radio.Transmitter/DetailedModulationForAmplitudeModulation.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Radio.Transmitter/DetailedModulationForAngleModulation.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Radio.Transmitter/DetailedModulationForCarrierPhaseShift.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Radio.Transmitter/DetailedModulationForCombinationModulation.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Radio.Transmitter/DetailedModulationForPulseModulation.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Radio.Transmitter/DetailedModulationForUnmodulatedModulation.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Radio.Transmitter/InputSource.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Radio.Transmitter/JtidsSynchronizationState.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Radio.Transmitter/JtidsTransmittingTerminalPrimaryMode.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Radio.Transmitter/JtidsTransmittingTerminalSecondaryMode.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Radio.Transmitter/MajorModulation.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Radio.Transmitter/RadioSignalEncoding.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Radio.Transmitter/ReferenceSystem.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Radio.Transmitter/SpreadSpectrum.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Radio.Transmitter/StartOfMessage.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Radio.Transmitter/TDLType.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Radio.Transmitter/TransmitState.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Radio.Transmitter/TransmitterModulationSystemType.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Radio.Transmitter/UserProtocolIdentificationNumber.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Radio/ReceiverState.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/SimulationManagement/AcknowledgeFlag.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/SimulationManagement/ActionId.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/SimulationManagement/ActionResponseRequestStatus.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/SimulationManagement/DatumSpecificationRecord.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/SimulationManagement/EventType.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/SimulationManagement/FrozenBehavior.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/SimulationManagement/RequiredReliabilityService.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/SimulationManagement/ResponseFlag.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/SimulationManagement/StopFreezeReason.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Warfare/DetonationResult.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Warfare/Fuse.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Enumerations/Warfare/Warhead.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/FxCop OpenDis Analysis.FxCop (97%) rename Libs/CsharpDis6/{OpenDis => }/FxCopCustomDictionary.xml (96%) create mode 100644 Libs/CsharpDis6/OpenDis.csproj rename Libs/CsharpDis6/{OpenDis => }/OpenDis.csproj.user (50%) delete mode 100644 Libs/CsharpDis6/OpenDis.sln delete mode 100644 Libs/CsharpDis6/OpenDis.suo delete mode 100644 Libs/CsharpDis6/OpenDis/OpenDis.build.bat delete mode 100644 Libs/CsharpDis6/OpenDis/OpenDis.build.csproj delete mode 100644 Libs/CsharpDis6/OpenDis/OpenDis.csproj delete mode 100644 Libs/CsharpDis6/OpenDis/Properties/AssemblyInfo.cs delete mode 100644 Libs/CsharpDis6/OpenDis/Properties/Version.cs rename Libs/CsharpDis6/{OpenDis => }/Settings.StyleCop (97%) rename Libs/CsharpDis6/{OpenDis => }/Utilities/ChunkConverters.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Utilities/Conversion.cs (98%) rename Libs/CsharpDis6/{OpenDis => }/Utilities/CoordinateConversions.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Utilities/DataInputStream.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Utilities/DataOutputStream.cs (96%) rename Libs/CsharpDis6/{OpenDis => }/Utilities/DataStream.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/Utilities/PDUProcessor.cs (97%) rename Libs/CsharpDis6/{OpenDis => }/key.snk (100%) delete mode 100644 Samples/EspduReceiver/Properties/AssemblyInfo.cs diff --git a/.vs/OpenDis/DesignTimeBuild/.dtbcache.v2 b/.vs/OpenDis/DesignTimeBuild/.dtbcache.v2 new file mode 100644 index 0000000000000000000000000000000000000000..67a8723c82645f90697b0d236a68e4f4a091bd8e GIT binary patch literal 84205 zcmd6Q349!7{r)WXePg)_C8b<#bEi#;71A7S=oPX_%dt=yA|mpC-fL&xnRkkvN zQa*2Gim@d~p~|E6l$Xua3(qykza+jE&HSiUEEog9M{OK3N#w>3mFQ=8Wm72><)PeQ z7De3Z8nfc-`!Xnd-Buwvni)){Eo1h8Rmi3`Se=D}l^#xw51>3l(YRG`kxun05=&%@ zD15P;8DC#;rN^qC!LDrHs_)F@>Jd^5r4!{dk58hgx}=ZN(#^`swj-?SMZKQ$W{DJC z%)+T}oHwhhlq#0;*5Zs+D(219yjlIF;Z!od+!`OuuD3FahZ|c)+C~Tr@) z2aotrp@wV;BOlf#GcC>a{rO}%Sxj!Q3M?N^b#(ChJBrj^yoLhHhIApG&8L#XOzP$G znxB!=ws_lurjC|YtFgVqI5998QHcvhGm|j$2`1($*AI@Q&Gk)FlQbS* zINa1SG7?WTClZOaCgZfgB#n+2idLH1A==hkn~F@{LEq1g)U}s^Q-YRyNofQ|n3vxZ zgvjEz8szn*@)<$PE7}<}eFYf6Oq@5BEX7Y3;_E3jXyY^R>%!EATEQW|3PH%73{&nt zbYF_*aEiA@>--wjR~SL)5^9NBmCY=*GFBd~E6omFiE=1GXtO@doQdYFIEEa_vn*~x zO-%>30|LcE}KDbcx5(WrRqB~nQYN4vg%KBC{ac&JDHpO%gX1|m>$1Vh7p*+A<0E>t6k-sXnZaw8 z8A*{*K69C>T6_rZ-cDk&<4)2m!R zIFe31WxZpfz-^b1B=aiHJ35<{O=7!^|Bz5h~_X`!XY0mQR)@ zpFF%8^zyZ3!Oi$-VsFftgM}?D{I_82tA@f*CE=0>Ekjx^3~qU3VamNoi{hiw3VX> z@mnqOdSBU%1f8BzUeCZfCX0no$MJTwsJ)jJ4_u4!jG4wH=s+n`#G6}IvQLsKsD44n ze|pgJ_h$2H6MfvyLZ*oczeWh}_NYN}Uk@s9JGnHK9i~&Ze8k^nrY!mjj9YwZC#!I3 z(8t$v3Va4bm6ci>IfJ421R;AW=u)IeSnnCJ4vP|1jTD4NfsX|HR?~TdTps;bx_D$s zK3hyBSp|_JK`o;eUA(g(fzL8~B&9`5&N8cBK}a9?Jgh2WJskvz0!0;(^RQJ}j!w0= z)q#&LJkp+=%u%&i@sgtpJ;l*x>TRI6e60z(_Cr*f6)Qxx^sTN%N^gH7aQg}=J!MDQ zSH&j?*#mFu6bb9Q^H@kznJJKMT@_9c`UKuysIod;JXVfmdr^%PghpYs7p~H^)+}N{ zD<4z4+6zA;2wej2nIqx*@InHM6BE&5HgAq{%Orc|e(xZ(7z@EFt+dkF{P;>Um$MQy z?Rn?$w2Gao_Ys27Bo=}u{mGn=e!!8Q{TPJAVbt%TOxnz#=p=X=M~ivOOnd9MmK20W zfxp98k<6UQq?hk7=np|inh3hIFiCqh$*wCe^Cyc^zW zYQ-lA*#qxuGYL;9S^4qGLND3ZR=t9d{^X#`4zH^$$@@i#;XlBsnn`Z@+~tM-7=*-u_ZVri(ybh9+e(QpI%I`L_89%% zHE7|RfeU<8&cw8e8?$+A$QfZ1qf!$&D%Vqj&?b~p)GuEMxJwcJF$jqRZ#!w?dd7mX z?Nq&jkUsF4bSmP2b!N#bh$SO(Cf)7v|E=Uv3mXKmwT{(Wx8%|z2+2dS^-(LoAsM&& zv)B~Mq<7nTw`UC+_*$#LSE$j#5zWTeV-F7#UhZpf{a%CIK3f?|4`Hn}+?7gV(Jzx+ z_R*>26`vYp_oaE@vuQ%YWtN$+^3EO@riGkMtHP;4A75UCVtJ6_SZ=e)Uw@@X4U+qE zBJf!=k;<|HxJr|pHPbR`(8ZSvp|oB|Y^jU;EsLr|5Yh+VTPUUJW*%;YD!m2qqa*Ru zM^)ap4#C@gDe)TYrp}5NzZKi>@pLq(eUufr?O#1i&otoMb!c&sw%_%85ON1TyN5mG zbO$@_8{_nY9G&ZSY>%A1uSN<&qri8hx`d?}A$O!YKL;Uo;A>AD@#=f9yPCCMa_x!7 zF9`VqU)}4GvA%Bw+fwLk;gG9)Cn5%+S>UUCy#lXDj*b;KTJ%55CHV$>0$vb$1>Rn} z@*Co0nU1=4~1l=k^E5BTqsPPX%k1+GZGkDhIiNgp&m%!J0xYC?% zIrA(el50JxvVzbl@O}!N6QlbT3YZMMe)}O;oYG}#c((J^F#K&odIHZivym;%9<6VOmzWKYr=e%S&Tam5wY~&jo)vE^SeKU5!_W?w0UnM7t zXcemT%sie!Xb^ngUkC{!z>cqRhR&6~zmDPPQu};fXzjhK3*UwUOULVnx4o}Mb~LPg zzAx|-dSsPQg{~~IkSFw1rv;(aH07H!(A4(R)Fg1oL1-BK_(xZV>Q7Ab1sav{Pc>E$ zItAVflCO2^yHaK{%`2De1$q2}kU#KJ=g62J&lR&cNH#Y%Uf-D-&EhTgm{3Ssi^<4A zXc%~@(+k~I;LFHlsjJEgLZ`q_jM7WnlZj^&a;1tqF=}FJ5ZX;snRJYsVhQ#7IpiQT zJS*tFx?boL+ZsE%aE4TJBpJu10d7okqMtssM}p8c@OPpW(P_U>z7v%{IucL459M9A z8ThC|3P+bwW#Y-4$(txSs_=U|TGZZ83cOca5tDteuysHh2idFDGJ?=0@G%BDI&^gs zf60sG0n7%-F^1RE(O}ADD*Q7Fg^=#UT;v!}^{PR7-xx3O*%EqsNqwb(>B7;N{n(Vk zO_ZE1slsvesl9FlzV1qul^Q0w?n?0qLiWJd4JZ;;+a+F&6of{B+gnB00$ujT>bJDF ze(xHz@Xg``ckaJvqM4YLVQAF*YY;MrQ?CcC(NfCHdpA2N_1e#=K_8!;3ce(bVSgO! z1b2;@nT#clE~=CypLY#fOhZYkh)FF|r6kE;YmnKO@`3LY9hB15uf{>BDYjXZ)nd6% zR7VIxli=-ZMUz3Zu)a`Fk69c^Wj8Wy#c!i~l&zZ8%9$k9ppnl81l~(`WdN%~N-y2(8H5HQS}`teKTf}^ zV#ORn5SoNp=W(DGUt^-F^VBa0`2$~#k2CJD0D~=$<--iQo5tfKUS@n(<(%3rL*5ytz-uR!lkR06Dkf8MyO^w<9zRF^+Dk{^Yi@AeR3f{PS4_F) zM*QZ;JM}v0P4B?Vg?!5-%LTsIBB$4O1U^?vXD*(No zjs{aM%f4Pq;HTYEAu$E#dGjw%yY=}xI!wKMd&^DW^I25N6T7on6 z4=U1mO1|8Apz#kvkKoQk5)CH3>xU)#D%TH=q*JyszIPb%`cu4fpgZKS-rsloX|r*d z?jluwi?8dF)Wg`36dN$>A777&|85Ic_9k$XYErpM^#Bo8FYcqY==l#$l*Yc!U6rnj zRE@1WF&8mMY*@0QrCctHTXYhG?3UR|IGw4aSul3ZSVi0;X<=>&moOT;)+3-<^itAU z?5o?iN%h57$G2I1mVI^mD$nA+NA=lecgW54`06~1PO#gTeRcaPA-5pp?cfVbjC*aV zD)f^~!p@AD8b1r`wOpA{bvn7Fn#R$m{(rUM?d>uy{6 zMu$aNNaD&4etYdIt5}hOmCvf@=?5IYFX9=ZT*=ax-Iz&Xsbs;JDLlH+>fxL#;V&+M zC>S_fgJ%|QtT;qSGa!Ku_2R7iAz_UqGuEQPfzGa;W4e2m3@tqd z)sLcWT_bh6RuA-a_Vj%(=!H z4U9*x%U)EsMMZwHJF@GHV#slMZ>gr{tj@?zW2`K~u+>EW!FNe?oiQAWn(`87o|IN7 zaiDc{U&&l&tPdp`@upV2Pr1$*3o|m;HOO_w#xP?N?FZ_<_X6WOBQ;$Sv*N#Dx?-!` z|H}*Kv?Z@|RWFZt({w59x>T3Pe0I1oSG)U`M}FQkMowSOdTz1}%diVGLAx@p3xZk6 zo=%NDm%j2OKWiG3+*w@9<34v9<5q4^<Z1kV+!q1RXlSLeUBj>)b3`GTFUU9Kzoskc-8o1-FT!L9=gj(~J zI4gGqMk|+A)*0tam&)|ed(X|1VU1Zt?Q|>eS~47V^{FJY_qN75<*|iP7gDunUM^&4V5?Iv6u>B>LO$E z_K0$!Myg(i$2%qIFk^JzVaKBjwMM8HoGCZb)fu7o_SBeJ`56y0Vb%E5^FZp1P>0L7 zeTEKX^1h4NLLNPN;$>+Z>fpr_q3iA-7I&y~1D?2D_mkBb@h}S(B4*l!T3Zl_H#I}G z3u=7I?Ok<7sP$Bh*=y~?uBWaWnkPOiUJyXDd<2%{GftE{x|X8P2O6(Q#(+DVGz~8KYsQsdJxD zoskGLBD{H@hWbWhkr(-dTr?_C$$fbtmwp+a`_`N~BUI}}qm=hHuBcg=33cYt6`8y!A>?;J-Wa`C z8-)B0$Q!-q{(+Efkvn$fmVl7oJ-Om_pXfh*+Io9Jq0SGwwDq5rAF^ent7g4t+SeH& ztLsF`Ke-N}pEh-!tzvb?`Juj8l&64-1<1PN-Rq1C{%=HZoxmRQYD1X{tc?hD-cZKm zeVGw%!z9iOb)7{Xa)(%|={+`^CGe%wQk=X|3z0kreTO_F;7SMA`P(6nmSv>QaoJ%T zE>XVRCtQc!9BPljWyNcHtd-o($j`!7&yTJ%LS0`f^H&wYnZf(NNPy|>lV~%a?q>|Y zlV6#paZWT2yMc6~tbPb_$lW5n2;!9BIwREez52K-hb>M+o!3j?E%FzK+N|ki(4C1J z^0aS75SH+vc9tqpA*r2nWdI-Mbs=q76z_alq)rzk)P*iAF8_g> zyzvh=X)8w`x{uEcJ83JCvSJ(R3KQoLI`x#wke7Wp(W<9KPD6jr8#PPgP`mHm7`?_J zT)R{$OgyF4Wg(%yb#&=nIsGu?1ykNA<#B~|MyT^Gu4v`if+4>K#QJpQG{BIjHI(Qo zNBD*OF2^}qkDG;1SNhOH=9no6wV=>gJjdLHJku$T(3yr5tPICPeNRhcnWmL{G%D{& zZXs{Dp;4-{JgiKHx@?)osT`FSvaw|GsmGg5L#iTHnXvpovXDD*OiOuySjaCZowz*t z7|!}x*Qs3GtZa`HWQI$lb8%)0`>==}G-D2@EMvEZ5o{GSQ_0cHqPC`H97~hU6_e@Y zS=M}GPD8d-Tr}x%JoD)KPAwC^$5!Lqt?p!DKF+$KvOofUu+t)(e3Lix0~BZC??}`jXfIZ0WdhOy@1mp7IonGsWlDqbSQo{ z&&2Y|W4jV7qx9UNL{B1F%;vE%6{q^tTkH!D#`tK&8*tSlWu|bLl$5a$8>Z35cqB1- zfYl0XgOys>wyxV6F-xhUB1xU`F-Mf@=h{p`hyYI1sxvP9KM)3Mjg)h}>Wm#R*IOtw z)yE6Q?p@iu73;E!>{PnS4=8hk=;~3%-i*rzX)~E&2a^?X zbnU!=G^Qv6Vfi=CIynICn@3GZI)oX+OQX&8G$xu%YeHi%lp zS-gGSOcwcLrHscqiK@I7*@*gF9No%do3C)>t^d z39|7OR8+phbljqq$(XdeD$`gOA}$z<dTh*3(8zg0Jvpj04J4YGuSn&Bx9Y9TtI_hB4I>;T23(w zilh8IO*k;yydos9{;EJzsvts~?PvGkIIrT8@uJl=R?4iWIjqs6hb~;pLyLG%8bP{3 z)W}E|eW4JD88HMnQxmJJ4jon1J2R5ar`_7>kkV*s93!jwpb-a^ z#Y&>5AtKd_;E z*<5elvd)qmT|g`|PAHkoNKlP5BsPn~ZC3Tz)|fc?8-4dm71l_^o86Y~YzagfnWo+f zPA?87EmpBbYt8(KiBoqFz`im?A(*QxQmLiB7-z@_yzz+MOS`W3(jJ?r_aZ8O71Dr( zGk2k`NI6j@RC2aN#}TxbAPrg@7qc2oXA5a^2y>u&Of))_C3-Uxu$-o;zPcbvGbRPs z>PL;IT0w<?&xUV8bxEt8#|polCjdvucwE7 zAW3xsN}9Xr6_r98p=^Y7*)vJ^RSA!GG~L}-(HJYNoGG(Rm|w*gy}uM+{O^`tC)p(3 zV0WncZm{V5c!^RvO_8qNOLhmM^pZ6?((@cyPpt=oHdH@RL4`?DLXu2D5v_|#ardXi z5I{rlls}DfnvS<+YtD?xs7s3dIwbMt(~5urvm;d$NAN z61%1E_p2OFzrWdUxbTaw-`{Jdlc{l$IHK)yhwJbCH~0f~_x|~K!fnen>iZv%9mA%n zgwD+~O=)U-G&V&s&6K05WW1}%t(;CLJ^*n>7)nZM3@s1O>GLRjUCR2#C7OcA17$X7 zD3|aJVU(O=;YlN^vFtsW4M_~q*v%eD5>2ggG0+p_t6fCV(9|mbkVp|{gOx!SjZSHb zAav!xA$jVI#)S03Ou5pdx?ui+mRm4&prt81m}1H+<6TW-t?Piu^4RDv!qw<~BO|nQ zYD&k_d@|9wDOtb(Ae&E6lBPndBqTPvX88&mbnejAFpg@9+Xr<}Z$gV_}S)=JzvT4G2HtiXv$`Ljj<>F;TGY-l3)z`)61*_J*E>kZ^ZbHT^4|VbZv3iqGndrPwS@ z@zKxZxXY?gSQ9*a@H(c5iF7{6dw}1@^|KxFC>@%5n|(o_v@m06kcv|D0g#SYG^9Wy^S`IA&q&?do_dX{s5vaI>hqiEyV3J%Dxn@n(9EU3^8&iDsz6 zCNwesOiemEFY45kMj8JEs3x-qH)fU0)-(}AvPsuuK(+Z(w{pJOOpO@cc}CDkF-IP#78!CC?zY|%0_Q}4g2m}evK!?fOP&X|_%B7Z+V zA#0G%5!0yj$-yqB7)iz{W41Q7XlWR)m?~+e38tx0N!2<2U|fs=ENEf!XcC{&swO`7 zoH+40M<)IOdO_IRZ%xk8hw~NjG&u*tggHn3WzK0zkMyoYp~*LJyt&(;)xyn^@Ac8Q zquF@Wqz_aiIC@fQ6t$U`pDA!LKrXQscPd=$sA4nR6Q)9?^fqcG?US{6bzXj&M7KVc zL#y-5sc`j0w$Gi&G-ay@;ih@=qRJDp)~(LVPZd!X=oNLxL)qurDm6Zr=49<$zaZ`Gf z@uhmMaH#yvQwo7MV01&=<~~D*p7fd4&4`B%d3p8O9O>lHb!urs*-f1(x>AVFdCIwm zRx0bFDap!0pqr0It<`L)7|W5isXvS4OkyU2S>Yv9e+&yNc~kCMrNO4vwlEAf&DJ}0 zIVx$^M9W1JUH;}|TrJ@=({P%%Je(F9PRo{u(@Mi>-STkSXgFP49?k+9PE-wN>V>^| ziwk?Rudq+O#5D&{YPDgoQoCx(rMB5qYT4XrK8v@}*}PMFYYC5+-r&OHr8v0ocxetU zJYK5x;Z42vJNcn2-BUNjEn84FTLLJX+AucLqPBR-rdrddo~BMXTV_$6aJI~%I^k@Y zMRmg2GK=bj!^)he<(hh#Yu$n}*BU^X(}uyy+`=i_!&axv(VkB&57r!GORX`oPFgLZ zw$&Qrg3ap|wrxSlXbYfZXv1LnH1!s{%_$iJ154!OJWYq_q@`;pld$p|(XY;T#`(%S zY)L3$Q7u+Yu*Kk&u=~K=L<2pora%+exr4zz?Fl2?4Hk<9yAS-~Pi{UnLW@Nnc+Csx z`JBRvTI3Yc`K78UDV-Ns{n!*$#1tzwF_rk3fF|YSd8|=28aJ`YqOx=1gj&?39Vo2f zrz0Z1lmxj;S7q~U7M(Q(IbOh)8##!aw9dymllgcaZ#;T3qj-_npWVoZSCft-WBk5% zDl2VvX)>zw51L`Q=NT#FF_Y;T6Kj*w<|sA~(ftf;vjQ7Fwom@Bs6ur8le=I}I>3&} z%IAJ+(z%Bic1b1U*c)i&J!v|HN3pM?+sYJBA=yiV)p@)&ph-KqmaHgg3Q^0X=`(0% z)_WvXi;bAMbkBoS-p$8wvo;nl&=vMn&dqp`t|q|sH%O+heiMq? zTPlc&Lp3=kd}syTZ|Ov*memQLTq#Pc^RPPhocLjEZcG+(bO(=#-M&&=wXZc{2y}`C zYxtdKH$&-uEGj5Q<6{<|irNgN`^Ux$YP4#ppHO7j>0&mXP0?Yyztm6oC{_`eu58*2 zU3mi0xhai3nJ~^M+EG`Ws`>LjDc%57*7(ZlH`NY_=bSZ*u}-;Yn;+CDnpJgfe}bo$ zCo^oVnzo|oqLK5SGzZj4=m}zB=7&C^O$BW<&P+6Y?gNUQ^2a1rVll@`aDO>*PoJMm zJ@GucWkqM&qJEM{(f`2Ou2q;^56A{_GO^gZU%V@p zCFuPcHF$N{=#-S^Rz-AFYI#0~>tgjb4SA1U47BDmPr?vqDV+XQE&^j zUzNpL@Hk9?=%Y+h0)5Y{;YY+!@g^yON}J|Rfl1Vgy4x}ukFHbXN(NR=N9cX&?zGeO zy_AQP)@};w3@xuxx+Y16A)U>j@l}-&Eg{BYbf>nJpdG%-9A4GZ=6wQN(+hlgQ`OQI z>ns*c4B1!=%&u20J(!1a9dXf_!lE`TB4rZ|RkKo#Ud)_1Oc$CadD~H49A3>}SL0S+ z)d2|0z!=hmpH)IFj%?-m@ZOuI&UPuf(FU7YVwlY<6w&(9?=%;@!ztYpSo@u%s~Gqy z4f>SV8u_21^A+lL9x5$;*4rU;o^>s+r!5oPB-)ut(6LA+!M@Sw)frM(6H%``@7@2} zJ%n*G)w4YY0Siq@Mt=_p6TqhGWuASTG*T5 z?ewqo7&ZN){!KAe^j$Z#;IgA#IA5i67>QL7eHfe}l}wol3ppY?aJ}?k6-*Mjhj89X zs+YGiBS!PU+Z~(a5wuqp?dIsFUaJ)co;kAHF|{J(+wxH*NvBpM29m?W*~}7DJH9H@ z+t<=7O=laslg0QLQXN${ZoxEW%(Xa&g(lpps+lRaKEe!D!maFwq!p3&;Felw3(*bd zOZ{nh%eN>zW}TeCygk;6Ah_R?okH#wjy}tmWU1w+vMDRpS=xl+mmfz}#D)WL_6eW( zQtPnu2)h^^qyHq1F5qXSaK1Vj>i8tY@i-y_INg)99D8mPReu8lH2+ zkd#eT(Dw-2`XIS#lkDN5mq6_Xot>dA1*@qp(bR5<=UHB(Wi)CJ!$V~=ZFt*MiGwDf zTE6)cl88nXXBE1SRg>|kRnGrZ7Y>)q(|3UxD@9|Ol+P|yae6QVnp|^B)oo#`AWpbL zr$L+<1dG{;vzC&@5^DoH>2htym&%~di}+=pI7~Gx^?mYG!}80ttQI}H%skG_%J+}q zZBBG7Il}h+sg33oB|;$^76mT={ra)5(v#*jNi~#7^K5nJFU>)9r0mzRFN4!VqwJ@8Be){o6YzmK#V^mKMmOG2pKUVkX!;|GOd$>|0(aRcS2bR)iJefvAi1cKgfXQ;W zYB;#{B#S8$CnTMPstACZy3#x&n^&_@ZRGtaz<%Ky$9pnybinymgvnyURg@N;4RH-Q zbcV+*TogwKm|S>1HN!id4bvlHnmvZ^Lq zw~f+$1ZZ!{9Q9Y8Do@cSh!1epIrRzXPFLZ~lJY)E?aOFGz%aCwmapho{c}2~YLlUT zoE;D%lV6>O(eiuq*|V(75^K!dkmMusV-@?WeTZ&eM28-yXwq}W*tS&B-=V3hR+TCN z@E!j$Bh*T%eZ;*H)GY8>adoSS*fNO84|yyP@2XLm4pNkoOe`2+21)HPNnf~QsG#)m z15ik@$$(CZ#5xNFD?OYVr^_X%-@YzCS10SBp`w^ZiLpaGF&4rRil{5BQ#-@u%RK1r zdm37u+e1!c@MqZxpG+BtLnke`i7&#Kuo<42s_$xcesr|r?TVQ`?0D?&JlEen1f}S` zOQJ|*htEK=;@s>Q*5|aFTW#^-1szsvdq-<~OH*50 zN5{gBmiETsh3#z}t*r}3nwwi%7g&kbMC-!#c)ZbSZ(3*^I^ika>`d+>8>VoAH)9TX z55=ygVm%*2VQO&FleUkn8iqHCR&_6mA&bsH+fj)1qfljID4?172_$K}FlOd+u@%YT zLaYnB-Sasl^nw_AHEJG;EMVFkR5fOLQh9aXTw>TbsA|a6cjvysa%-HILSy${bgfeS z3q5e&*aHV-U|pJ-q8l@*)iZYDyQrD(4!syrvQOI&WV6NYWZu{TONy)v2AIZ%LUmoT|FOb=ufo)HY*B9Bsd{n=$sNbUr8r!5Vw^p!LM07tBpIM_YpePdNI~ z*kKtK|L|1BEyhW_a582{i_R0jA^^=jC!U>PEV9_aO;z7bT=Xf$*`6;Tu#DYh+a-PW z?kn`sQ3%e!PK~ovq)F0=mZJc%wqc>|DpH6R^I`$%gr!j_bDa6@)s@YS59J24Fjrz0 z&Dcd28?FXw0%rOwV^1zVo!_HJ$&BASgyEVSk=jk() zN58jOd%54WIcPsdHz+D8;aF2mY|NcGOFo^LX5+PfWt;sh3-ivH| zW#kI7T_@R|>_E07I|4hAoyjg_SF)RpFT0aH$ev^`viFsdPm+DEjQsaAWZxw=d7o{Q z8Dw9Z>}Oa0@Rj|M{RQCwvcF2$Ul0xygoDU|D&asum?;PclbI@ErXU<52(!o`D&Y`8 zI8+eo$e}9XP(he22#1l`Dq*%D%n^jc$sCn1M-Yw>gd@ojD&Yu0I7$$XCP%4+qXc2D zAj~6kRl;0Bm@f$RWWGw6F9;2S&`26oLW3YQ2|_bzQVC6h&>{$}q(vpP2tu16EFf(v zp-m7L3PL+ss1ge!4iZKVyOg65Jm-IjEt&;Q9(!w!Wkr~5|V9awMw~vVw4?AmquJD&b5)C;N_3&JIW@G)|UO1MN2E)|52lS@^? zrGjvoAbf&crV=g_gv$ltljL%haJe8{AqZEJD^$W2f^d}}e2QG960Q=2s|DfHsDx_-;aWlXEV))CTq_9I3Bu>dbt>UHLAYKJK2NS!3D*n44TA6ma)U~^ zK@e^fgfEgCRl<#eaFZZ>iQJ?TZW4r>1>wu&W|eTWAlxDdUm>@sgj)pRRzdhGxm6|H zDhRg;!q>=cD&aOkxLpvwPHtBTw+q4@g76J;hf26Z5bhL&Z<0Gz!kvO}mmqwL+@%uk z5`?=2;oIbHm2kHp+#?9zA@`_+dj#QLLHI7YS0&sl2=@uX_sD%J;XXmQUl6`e?pF!- z3&I0}@B{LIN_apJ9u$Nhk_T17gM#poApD3tq!Jzygog#;$K+v^@US2}A_zYrkEn!4 z1mRIZ_$hf*B|It!j|sxh$YUzuF+q4-5PnV`R|$^`!V`k<3-W|YctQ}K6og-rCso3e zg7B0e{E9rK5}p!-rv>5H-eq2)`lEsDx((;aNfWEqPWYJSzy#3BvElb1LCE zL3myeeovlP3C|0{3xeiM*r|UJ`_t1>w)+WtH%< zAiN?7e<81^gjWRNRYCYGc~vF6DhRI$!r#biD&aLjcwG?wPF`0DuM5H(foehMF?*R!oSH|D&Z|bcv}$uL*7;iZwtaZ zg79DRj!Jk(5Z)Dp|B-i9!n=a-9w(HI2zgIsyvG^kNJLP!ir}-tq2JkGd2319CW6l@ z3Ew$sTS?k3Qr^}>!go&EUXpf*l(+Yg@ST%(l%$;^dS9fx zuZM*1oHRp{_KTEfcu4rpN&8FE0g>|l9umHD(t(n6P^5gIhlKB(G*glej+AG5Nchf4 zhe*<_Ncj*C3Ew&CP)Vwbln?cg@ST%pOVVMH@@x+Y-#KZHBpn_p&+(A(os*7`q$4Bc zBRnL0=cJ<~>F7xLC=UtWIccsW&5M-hdPw-rN%JMCK2o0VA>lhGHAqrpq}<>k;X5Za zNm6s9+~gtQJ14bBQfs8#;vwNXC$&k^f=Ic|L&A4XS|~~Fk@7+h3Ew%XLy{In${ijO zzH`zslJx#a`4|rg-#KZqBz+)KUhE;^J0~40NykOX$9hQk&Pkn;v?NmQ^pNnKle#3S zJ5uiQkno+8dL*egQtt7P@ST&EMlfMmUdI0SvH!>8{}tusk*@NJNO>i`e5SlA(p_F1 zDfh!UAyOWI6OEJy;S5E}Yv8Pnluv|nQlxw`oKqs@7@Sih<tlSMVm{>Sm3PFMEYbfR*9IQ!e=KsX25WG0-MHaP^&AvQS_&Y?D$4QIAZ=D?X_ zlOy09VUwfa9A%TaaOT=%KAibBX@JvUlO{M#Hfe#=Vv{yFZ8lj5XQ53x;B?sJ7&yn+ zWHFq@HaQl~u{P<1(`l0~I9)dBfzxA?rEr$oqz_J?O_sx1Zj+U8R@!7WoYgit0nQ0F ziNcB6WC+fXP1eF$Ym<}UoMe+z;GANUQ{kLylXY;`*~Eln+9VDqZW9ZRWs^}jqc%yx zN!nyRob@(I!%5pD3ny!nGvSn#I9J)^ zYB*QhIQQA)emM8r zuiE4_IIr2{bvUovocC<>S9<9`8+{af*cuSkJBANvywFzR0~#o_NBDq72yG5NprJv#f)8j+(01Sh8Vs}#_<%+MZ2&&N z@WamI1B^RtIX=LE!(QV9j5KUAKEM#e?&1TCEo>`3z@Wl@;scB(Y$QIwFv1Sv1B_oe z0i#2$+)^9=$`*bZp>}DMS)?)cKZ*aJB0DUz?eZBB`hPw9pJM;hjFQ3scdy#2oQ)h; z&H-lvd7uCkffBF**a&O_#(}edvw?GfbAb;6=K<#f7XTjuE(AUdTm*asxES~-a0&1+ z;8Nh@z-7QEfXjhT0#^W60#^Z_0{9tM64JOca#cog_4@EGtj;BnyRz!ShPfG2@p0#5t$}TTZGr88?SUPD z9f6&Ioq=6|U4h+z-GM!TJ%PP|y@7pzeS!A@Gl2bo{ec631A&8pnZUuoA;2u)P@oQ& z4IBo{0S*U_0FDHX0*(ge0`q|RKt0d^Gy+XPGtdIG0&TzoU?I>BbO4KhV}SPqi-8XS z#{$Ozoxl>H3+M)VfL>rJungz}jt7z z7zfS*&IZl_&ILXQoCll_TmXCsxDfa-a1rnk;9}sTz$L)PfJ=do1D64x04@hU30whO z30wty3b-2hG;j^@8Q@yrv%q!0=YZ>h&jU9AUjS|dz6jg|dsx4?72?||ol z-vciIe*j(t{s_DT{0Vp&_%rYd@E71!;IF`Iz~6w^fxiQ900bxl{{U>@pTL{Izks)Z ze*OhD0QLj+2Mz!Z1P%gb0tW+!0JDHYfjVF|a2PNLI2 z%md~F^*{sA2s8oBKnu_cv;hl%g+M#d0W1QJ0p1TR20j2B3mgY@0!x4{pd07`dV!_D zGN2DQ9#{^n09FF4fYm@hZ~`y@M1etI2v`HG1x^G`0!{`_0b;$QhJiSc z04!hx7zM_FBya|>9!LRcAOmE99B?L(2MRzDC;=OQjld>g95@R&8#o6z7x*A>9&kQz z0q`N_$F`{ z@GanO;M>4Gz;}Rqf$swM0pA1e2fhzH0Q>-W5cnbR5bz`5Vc^HWBfw99M}eOLj{!de z9tVC7JOTUycoO&}@D%VX;A!C3z%#&afM - /// Section 7.5.6. Acknowledge the receipt of a start/resume, stop/freeze, or RemoveEntityPDU. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - public partial class AcknowledgePdu : SimulationManagementFamilyPdu, IEquatable - { - /// - /// Identifier for originating entity(or simulation) - /// - private EntityID _originatingID = new EntityID(); - - /// - /// Identifier for the receiving entity(or simulation) - /// - private EntityID _receivingID = new EntityID(); - - /// - /// type of message being acknowledged - /// - private ushort _acknowledgeFlag; - - /// - /// Whether or not the receiving entity was able to comply with the request - /// - private ushort _responseFlag; - - /// - /// Request ID that is unique - /// - private uint _requestID; - - /// - /// Initializes a new instance of the class. - /// - public AcknowledgePdu() - { - PduType = (byte)15; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(AcknowledgePdu left, AcknowledgePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(AcknowledgePdu left, AcknowledgePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._originatingID.GetMarshalledSize(); // this._originatingID - marshalSize += this._receivingID.GetMarshalledSize(); // this._receivingID - marshalSize += 2; // this._acknowledgeFlag - marshalSize += 2; // this._responseFlag - marshalSize += 4; // this._requestID - return marshalSize; - } - - /// - /// Gets or sets the Identifier for originating entity(or simulation) - /// - [XmlElement(Type = typeof(EntityID), ElementName = "originatingID")] - public EntityID OriginatingID - { - get - { - return this._originatingID; - } - - set - { - this._originatingID = value; - } - } - - /// - /// Gets or sets the Identifier for the receiving entity(or simulation) - /// - [XmlElement(Type = typeof(EntityID), ElementName = "receivingID")] - public EntityID ReceivingID - { - get - { - return this._receivingID; - } - - set - { - this._receivingID = value; - } - } - - /// - /// Gets or sets the type of message being acknowledged - /// - [XmlElement(Type = typeof(ushort), ElementName = "acknowledgeFlag")] - public ushort AcknowledgeFlag - { - get - { - return this._acknowledgeFlag; - } - - set - { - this._acknowledgeFlag = value; - } - } - - /// - /// Gets or sets the Whether or not the receiving entity was able to comply with the request - /// - [XmlElement(Type = typeof(ushort), ElementName = "responseFlag")] - public ushort ResponseFlag - { - get - { - return this._responseFlag; - } - - set - { - this._responseFlag = value; - } - } - - /// - /// Gets or sets the Request ID that is unique - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._originatingID.Marshal(dos); - this._receivingID.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._acknowledgeFlag); - dos.WriteUnsignedShort((ushort)this._responseFlag); - dos.WriteUnsignedInt((uint)this._requestID); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._originatingID.Unmarshal(dis); - this._receivingID.Unmarshal(dis); - this._acknowledgeFlag = dis.ReadUnsignedShort(); - this._responseFlag = dis.ReadUnsignedShort(); - this._requestID = dis.ReadUnsignedInt(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._originatingID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._receivingID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._acknowledgeFlag.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._responseFlag.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as AcknowledgePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(AcknowledgePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._originatingID.Equals(obj._originatingID)) - { - ivarsEqual = false; - } - - if (!this._receivingID.Equals(obj._receivingID)) - { - ivarsEqual = false; - } - - if (this._acknowledgeFlag != obj._acknowledgeFlag) - { - ivarsEqual = false; - } - - if (this._responseFlag != obj._responseFlag) - { - ivarsEqual = false; - } - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._originatingID.GetHashCode(); - result = GenerateHash(result) ^ this._receivingID.GetHashCode(); - result = GenerateHash(result) ^ this._acknowledgeFlag.GetHashCode(); - result = GenerateHash(result) ^ this._responseFlag.GetHashCode(); - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/AcknowledgeReliablePdu.cs b/Libs/CSharpDis7/AcknowledgeReliablePdu.cs deleted file mode 100644 index 515cd4d..0000000 --- a/Libs/CSharpDis7/AcknowledgeReliablePdu.cs +++ /dev/null @@ -1,345 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Section 5.3.12.5: Ack receipt of a start-resume, stop-freeze, create-entity or remove enitty (reliable) pdus. COMPLETE - /// - [Serializable] - [XmlRoot] - public partial class AcknowledgeReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable - { - /// - /// ack flags - /// - private ushort _acknowledgeFlag; - - /// - /// response flags - /// - private ushort _responseFlag; - - /// - /// Request ID - /// - private uint _requestID; - - /// - /// Initializes a new instance of the class. - /// - public AcknowledgeReliablePdu() - { - PduType = (byte)55; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(AcknowledgeReliablePdu left, AcknowledgeReliablePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(AcknowledgeReliablePdu left, AcknowledgeReliablePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 2; // this._acknowledgeFlag - marshalSize += 2; // this._responseFlag - marshalSize += 4; // this._requestID - return marshalSize; - } - - /// - /// Gets or sets the ack flags - /// - [XmlElement(Type = typeof(ushort), ElementName = "acknowledgeFlag")] - public ushort AcknowledgeFlag - { - get - { - return this._acknowledgeFlag; - } - - set - { - this._acknowledgeFlag = value; - } - } - - /// - /// Gets or sets the response flags - /// - [XmlElement(Type = typeof(ushort), ElementName = "responseFlag")] - public ushort ResponseFlag - { - get - { - return this._responseFlag; - } - - set - { - this._responseFlag = value; - } - } - - /// - /// Gets or sets the Request ID - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._acknowledgeFlag); - dos.WriteUnsignedShort((ushort)this._responseFlag); - dos.WriteUnsignedInt((uint)this._requestID); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._acknowledgeFlag = dis.ReadUnsignedShort(); - this._responseFlag = dis.ReadUnsignedShort(); - this._requestID = dis.ReadUnsignedInt(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._acknowledgeFlag.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._responseFlag.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as AcknowledgeReliablePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(AcknowledgeReliablePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._acknowledgeFlag != obj._acknowledgeFlag) - { - ivarsEqual = false; - } - - if (this._responseFlag != obj._responseFlag) - { - ivarsEqual = false; - } - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._acknowledgeFlag.GetHashCode(); - result = GenerateHash(result) ^ this._responseFlag.GetHashCode(); - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/AcousticEmitter.cs b/Libs/CSharpDis7/AcousticEmitter.cs deleted file mode 100644 index ea7d371..0000000 --- a/Libs/CSharpDis7/AcousticEmitter.cs +++ /dev/null @@ -1,341 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// information about a specific UA emmtter. Section 6.2.2. - /// - [Serializable] - [XmlRoot] - public partial class AcousticEmitter - { - /// - /// the system for a particular UA emitter, and an enumeration - /// - private ushort _acousticName; - - /// - /// The function of the acoustic system - /// - private byte _function; - - /// - /// The UA emitter identification number relative to a specific system - /// - private byte _acousticIdNumber; - - /// - /// Initializes a new instance of the class. - /// - public AcousticEmitter() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(AcousticEmitter left, AcousticEmitter right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(AcousticEmitter left, AcousticEmitter right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 2; // this._acousticName - marshalSize += 1; // this._function - marshalSize += 1; // this._acousticIdNumber - return marshalSize; - } - - /// - /// Gets or sets the the system for a particular UA emitter, and an enumeration - /// - [XmlElement(Type = typeof(ushort), ElementName = "acousticName")] - public ushort AcousticName - { - get - { - return this._acousticName; - } - - set - { - this._acousticName = value; - } - } - - /// - /// Gets or sets the The function of the acoustic system - /// - [XmlElement(Type = typeof(byte), ElementName = "function")] - public byte Function - { - get - { - return this._function; - } - - set - { - this._function = value; - } - } - - /// - /// Gets or sets the The UA emitter identification number relative to a specific system - /// - [XmlElement(Type = typeof(byte), ElementName = "acousticIdNumber")] - public byte AcousticIdNumber - { - get - { - return this._acousticIdNumber; - } - - set - { - this._acousticIdNumber = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._acousticName); - dos.WriteUnsignedByte((byte)this._function); - dos.WriteUnsignedByte((byte)this._acousticIdNumber); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._acousticName = dis.ReadUnsignedShort(); - this._function = dis.ReadUnsignedByte(); - this._acousticIdNumber = dis.ReadUnsignedByte(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._acousticName.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._function.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._acousticIdNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as AcousticEmitter; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(AcousticEmitter obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._acousticName != obj._acousticName) - { - ivarsEqual = false; - } - - if (this._function != obj._function) - { - ivarsEqual = false; - } - - if (this._acousticIdNumber != obj._acousticIdNumber) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._acousticName.GetHashCode(); - result = GenerateHash(result) ^ this._function.GetHashCode(); - result = GenerateHash(result) ^ this._acousticIdNumber.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/ActionRequestPdu.cs b/Libs/CSharpDis7/ActionRequestPdu.cs deleted file mode 100644 index 4622583..0000000 --- a/Libs/CSharpDis7/ActionRequestPdu.cs +++ /dev/null @@ -1,588 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Section 7.5.7. Request from simulation manager to a managed entity to perform a specified action. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(FixedDatum))] - [XmlInclude(typeof(VariableDatum))] - public partial class ActionRequestPdu : SimulationManagementFamilyPdu, IEquatable - { - /// - /// Identifier for originating entity(or simulation) - /// - private EntityID _originatingID = new EntityID(); - - /// - /// Identifier for the receiving entity(or simulation) - /// - private EntityID _receivingID = new EntityID(); - - /// - /// identifies the request being made by the simulaton manager - /// - private uint _requestID; - - /// - /// identifies the particular action being requested(see Section 7 of SISO-REF-010). - /// - private uint _actionID; - - /// - /// Number of fixed datum records - /// - private uint _numberOfFixedDatumRecords; - - /// - /// Number of variable datum records - /// - private uint _numberOfVariableDatumRecords; - - /// - /// variable length list of fixed datums - /// - private List _fixedDatums = new List(); - - /// - /// variable length list of variable length datums - /// - private List _variableDatums = new List(); - - /// - /// Initializes a new instance of the class. - /// - public ActionRequestPdu() - { - PduType = (byte)16; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ActionRequestPdu left, ActionRequestPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ActionRequestPdu left, ActionRequestPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._originatingID.GetMarshalledSize(); // this._originatingID - marshalSize += this._receivingID.GetMarshalledSize(); // this._receivingID - marshalSize += 4; // this._requestID - marshalSize += 4; // this._actionID - marshalSize += 4; // this._numberOfFixedDatumRecords - marshalSize += 4; // this._numberOfVariableDatumRecords - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - FixedDatum listElement = (FixedDatum)this._fixedDatums[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - VariableDatum listElement = (VariableDatum)this._variableDatums[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Identifier for originating entity(or simulation) - /// - [XmlElement(Type = typeof(EntityID), ElementName = "originatingID")] - public EntityID OriginatingID - { - get - { - return this._originatingID; - } - - set - { - this._originatingID = value; - } - } - - /// - /// Gets or sets the Identifier for the receiving entity(or simulation) - /// - [XmlElement(Type = typeof(EntityID), ElementName = "receivingID")] - public EntityID ReceivingID - { - get - { - return this._receivingID; - } - - set - { - this._receivingID = value; - } - } - - /// - /// Gets or sets the identifies the request being made by the simulaton manager - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Gets or sets the identifies the particular action being requested(see Section 7 of SISO-REF-010). - /// - [XmlElement(Type = typeof(uint), ElementName = "actionID")] - public uint ActionID - { - get - { - return this._actionID; - } - - set - { - this._actionID = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] - public uint NumberOfFixedDatumRecords - { - get - { - return this._numberOfFixedDatumRecords; - } - - set - { - this._numberOfFixedDatumRecords = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] - public uint NumberOfVariableDatumRecords - { - get - { - return this._numberOfVariableDatumRecords; - } - - set - { - this._numberOfVariableDatumRecords = value; - } - } - - /// - /// Gets or sets the variable length list of fixed datums - /// - [XmlElement(ElementName = "fixedDatumsList", Type = typeof(List))] - public List FixedDatums - { - get - { - return this._fixedDatums; - } - } - - /// - /// Gets or sets the variable length list of variable length datums - /// - [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] - public List VariableDatums - { - get - { - return this._variableDatums; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._originatingID.Marshal(dos); - this._receivingID.Marshal(dos); - dos.WriteUnsignedInt((uint)this._requestID); - dos.WriteUnsignedInt((uint)this._actionID); - dos.WriteUnsignedInt((uint)this._fixedDatums.Count); - dos.WriteUnsignedInt((uint)this._variableDatums.Count); - - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; - aFixedDatum.Marshal(dos); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; - aVariableDatum.Marshal(dos); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._originatingID.Unmarshal(dis); - this._receivingID.Unmarshal(dis); - this._requestID = dis.ReadUnsignedInt(); - this._actionID = dis.ReadUnsignedInt(); - this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); - this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); - for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) - { - FixedDatum anX = new FixedDatum(); - anX.Unmarshal(dis); - this._fixedDatums.Add(anX); - }; - - for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) - { - VariableDatum anX = new VariableDatum(); - anX.Unmarshal(dis); - this._variableDatums.Add(anX); - }; - - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._originatingID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._receivingID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._actionID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fixedDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - sb.AppendLine(""); - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; - aFixedDatum.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - sb.AppendLine(""); - VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; - aVariableDatum.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ActionRequestPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ActionRequestPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._originatingID.Equals(obj._originatingID)) - { - ivarsEqual = false; - } - - if (!this._receivingID.Equals(obj._receivingID)) - { - ivarsEqual = false; - } - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - if (this._actionID != obj._actionID) - { - ivarsEqual = false; - } - - if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) - { - ivarsEqual = false; - } - - if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) - { - ivarsEqual = false; - } - - if (this._fixedDatums.Count != obj._fixedDatums.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - if (!this._fixedDatums[idx].Equals(obj._fixedDatums[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._variableDatums.Count != obj._variableDatums.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._originatingID.GetHashCode(); - result = GenerateHash(result) ^ this._receivingID.GetHashCode(); - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - result = GenerateHash(result) ^ this._actionID.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); - - if (this._fixedDatums.Count > 0) - { - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - result = GenerateHash(result) ^ this._fixedDatums[idx].GetHashCode(); - } - } - - if (this._variableDatums.Count > 0) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); - } - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/ActionRequestReliablePdu.cs b/Libs/CSharpDis7/ActionRequestReliablePdu.cs deleted file mode 100644 index 0538f7a..0000000 --- a/Libs/CSharpDis7/ActionRequestReliablePdu.cs +++ /dev/null @@ -1,615 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Section 5.3.12.6: request from a simulation manager to a managed entity to perform a specified action. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(FixedDatum))] - [XmlInclude(typeof(VariableDatum))] - public partial class ActionRequestReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable - { - /// - /// level of reliability service used for this transaction - /// - private byte _requiredReliabilityService; - - /// - /// padding - /// - private ushort _pad1; - - /// - /// padding - /// - private byte _pad2; - - /// - /// request ID - /// - private uint _requestID; - - /// - /// request ID - /// - private uint _actionID; - - /// - /// Fixed datum record count - /// - private uint _numberOfFixedDatumRecords; - - /// - /// variable datum record count - /// - private uint _numberOfVariableDatumRecords; - - /// - /// Fixed datum records - /// - private List _fixedDatumRecords = new List(); - - /// - /// Variable datum records - /// - private List _variableDatumRecords = new List(); - - /// - /// Initializes a new instance of the class. - /// - public ActionRequestReliablePdu() - { - PduType = (byte)56; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ActionRequestReliablePdu left, ActionRequestReliablePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ActionRequestReliablePdu left, ActionRequestReliablePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 1; // this._requiredReliabilityService - marshalSize += 2; // this._pad1 - marshalSize += 1; // this._pad2 - marshalSize += 4; // this._requestID - marshalSize += 4; // this._actionID - marshalSize += 4; // this._numberOfFixedDatumRecords - marshalSize += 4; // this._numberOfVariableDatumRecords - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - FixedDatum listElement = (FixedDatum)this._fixedDatumRecords[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - VariableDatum listElement = (VariableDatum)this._variableDatumRecords[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the level of reliability service used for this transaction - /// - [XmlElement(Type = typeof(byte), ElementName = "requiredReliabilityService")] - public byte RequiredReliabilityService - { - get - { - return this._requiredReliabilityService; - } - - set - { - this._requiredReliabilityService = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(ushort), ElementName = "pad1")] - public ushort Pad1 - { - get - { - return this._pad1; - } - - set - { - this._pad1 = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "pad2")] - public byte Pad2 - { - get - { - return this._pad2; - } - - set - { - this._pad2 = value; - } - } - - /// - /// Gets or sets the request ID - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Gets or sets the request ID - /// - [XmlElement(Type = typeof(uint), ElementName = "actionID")] - public uint ActionID - { - get - { - return this._actionID; - } - - set - { - this._actionID = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] - public uint NumberOfFixedDatumRecords - { - get - { - return this._numberOfFixedDatumRecords; - } - - set - { - this._numberOfFixedDatumRecords = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] - public uint NumberOfVariableDatumRecords - { - get - { - return this._numberOfVariableDatumRecords; - } - - set - { - this._numberOfVariableDatumRecords = value; - } - } - - /// - /// Gets or sets the Fixed datum records - /// - [XmlElement(ElementName = "fixedDatumRecordsList", Type = typeof(List))] - public List FixedDatumRecords - { - get - { - return this._fixedDatumRecords; - } - } - - /// - /// Gets or sets the Variable datum records - /// - [XmlElement(ElementName = "variableDatumRecordsList", Type = typeof(List))] - public List VariableDatumRecords - { - get - { - return this._variableDatumRecords; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._requiredReliabilityService); - dos.WriteUnsignedShort((ushort)this._pad1); - dos.WriteUnsignedByte((byte)this._pad2); - dos.WriteUnsignedInt((uint)this._requestID); - dos.WriteUnsignedInt((uint)this._actionID); - dos.WriteUnsignedInt((uint)this._fixedDatumRecords.Count); - dos.WriteUnsignedInt((uint)this._variableDatumRecords.Count); - - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; - aFixedDatum.Marshal(dos); - } - - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; - aVariableDatum.Marshal(dos); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._requiredReliabilityService = dis.ReadUnsignedByte(); - this._pad1 = dis.ReadUnsignedShort(); - this._pad2 = dis.ReadUnsignedByte(); - this._requestID = dis.ReadUnsignedInt(); - this._actionID = dis.ReadUnsignedInt(); - this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); - this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); - for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) - { - FixedDatum anX = new FixedDatum(); - anX.Unmarshal(dis); - this._fixedDatumRecords.Add(anX); - }; - - for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) - { - VariableDatum anX = new VariableDatum(); - anX.Unmarshal(dis); - this._variableDatumRecords.Add(anX); - }; - - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._requiredReliabilityService.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._actionID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fixedDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - sb.AppendLine(""); - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; - aFixedDatum.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - sb.AppendLine(""); - VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; - aVariableDatum.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ActionRequestReliablePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ActionRequestReliablePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._requiredReliabilityService != obj._requiredReliabilityService) - { - ivarsEqual = false; - } - - if (this._pad1 != obj._pad1) - { - ivarsEqual = false; - } - - if (this._pad2 != obj._pad2) - { - ivarsEqual = false; - } - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - if (this._actionID != obj._actionID) - { - ivarsEqual = false; - } - - if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) - { - ivarsEqual = false; - } - - if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) - { - ivarsEqual = false; - } - - if (this._fixedDatumRecords.Count != obj._fixedDatumRecords.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - if (!this._fixedDatumRecords[idx].Equals(obj._fixedDatumRecords[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._variableDatumRecords.Count != obj._variableDatumRecords.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - if (!this._variableDatumRecords[idx].Equals(obj._variableDatumRecords[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._requiredReliabilityService.GetHashCode(); - result = GenerateHash(result) ^ this._pad1.GetHashCode(); - result = GenerateHash(result) ^ this._pad2.GetHashCode(); - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - result = GenerateHash(result) ^ this._actionID.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); - - if (this._fixedDatumRecords.Count > 0) - { - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - result = GenerateHash(result) ^ this._fixedDatumRecords[idx].GetHashCode(); - } - } - - if (this._variableDatumRecords.Count > 0) - { - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - result = GenerateHash(result) ^ this._variableDatumRecords[idx].GetHashCode(); - } - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/ActionResponsePdu.cs b/Libs/CSharpDis7/ActionResponsePdu.cs deleted file mode 100644 index 2a7fcd5..0000000 --- a/Libs/CSharpDis7/ActionResponsePdu.cs +++ /dev/null @@ -1,588 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Section 7.5.8. response to an action request PDU. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(FixedDatum))] - [XmlInclude(typeof(VariableDatum))] - public partial class ActionResponsePdu : SimulationManagementFamilyPdu, IEquatable - { - /// - /// Identifier for originating entity(or simulation) - /// - private EntityID _originatingID = new EntityID(); - - /// - /// Identifier for the receiving entity(or simulation) - /// - private EntityID _receivingID = new EntityID(); - - /// - /// Request ID that is unique - /// - private uint _requestID; - - /// - /// Status of response - /// - private uint _requestStatus; - - /// - /// Number of fixed datum records - /// - private uint _numberOfFixedDatumRecords; - - /// - /// Number of variable datum records - /// - private uint _numberOfVariableDatumRecords; - - /// - /// variable length list of fixed datums - /// - private List _fixedDatums = new List(); - - /// - /// variable length list of variable length datums - /// - private List _variableDatums = new List(); - - /// - /// Initializes a new instance of the class. - /// - public ActionResponsePdu() - { - PduType = (byte)17; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ActionResponsePdu left, ActionResponsePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ActionResponsePdu left, ActionResponsePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._originatingID.GetMarshalledSize(); // this._originatingID - marshalSize += this._receivingID.GetMarshalledSize(); // this._receivingID - marshalSize += 4; // this._requestID - marshalSize += 4; // this._requestStatus - marshalSize += 4; // this._numberOfFixedDatumRecords - marshalSize += 4; // this._numberOfVariableDatumRecords - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - FixedDatum listElement = (FixedDatum)this._fixedDatums[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - VariableDatum listElement = (VariableDatum)this._variableDatums[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Identifier for originating entity(or simulation) - /// - [XmlElement(Type = typeof(EntityID), ElementName = "originatingID")] - public EntityID OriginatingID - { - get - { - return this._originatingID; - } - - set - { - this._originatingID = value; - } - } - - /// - /// Gets or sets the Identifier for the receiving entity(or simulation) - /// - [XmlElement(Type = typeof(EntityID), ElementName = "receivingID")] - public EntityID ReceivingID - { - get - { - return this._receivingID; - } - - set - { - this._receivingID = value; - } - } - - /// - /// Gets or sets the Request ID that is unique - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Gets or sets the Status of response - /// - [XmlElement(Type = typeof(uint), ElementName = "requestStatus")] - public uint RequestStatus - { - get - { - return this._requestStatus; - } - - set - { - this._requestStatus = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] - public uint NumberOfFixedDatumRecords - { - get - { - return this._numberOfFixedDatumRecords; - } - - set - { - this._numberOfFixedDatumRecords = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] - public uint NumberOfVariableDatumRecords - { - get - { - return this._numberOfVariableDatumRecords; - } - - set - { - this._numberOfVariableDatumRecords = value; - } - } - - /// - /// Gets or sets the variable length list of fixed datums - /// - [XmlElement(ElementName = "fixedDatumsList", Type = typeof(List))] - public List FixedDatums - { - get - { - return this._fixedDatums; - } - } - - /// - /// Gets or sets the variable length list of variable length datums - /// - [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] - public List VariableDatums - { - get - { - return this._variableDatums; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._originatingID.Marshal(dos); - this._receivingID.Marshal(dos); - dos.WriteUnsignedInt((uint)this._requestID); - dos.WriteUnsignedInt((uint)this._requestStatus); - dos.WriteUnsignedInt((uint)this._fixedDatums.Count); - dos.WriteUnsignedInt((uint)this._variableDatums.Count); - - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; - aFixedDatum.Marshal(dos); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; - aVariableDatum.Marshal(dos); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._originatingID.Unmarshal(dis); - this._receivingID.Unmarshal(dis); - this._requestID = dis.ReadUnsignedInt(); - this._requestStatus = dis.ReadUnsignedInt(); - this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); - this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); - for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) - { - FixedDatum anX = new FixedDatum(); - anX.Unmarshal(dis); - this._fixedDatums.Add(anX); - }; - - for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) - { - VariableDatum anX = new VariableDatum(); - anX.Unmarshal(dis); - this._variableDatums.Add(anX); - }; - - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._originatingID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._receivingID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._requestStatus.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fixedDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - sb.AppendLine(""); - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; - aFixedDatum.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - sb.AppendLine(""); - VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; - aVariableDatum.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ActionResponsePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ActionResponsePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._originatingID.Equals(obj._originatingID)) - { - ivarsEqual = false; - } - - if (!this._receivingID.Equals(obj._receivingID)) - { - ivarsEqual = false; - } - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - if (this._requestStatus != obj._requestStatus) - { - ivarsEqual = false; - } - - if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) - { - ivarsEqual = false; - } - - if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) - { - ivarsEqual = false; - } - - if (this._fixedDatums.Count != obj._fixedDatums.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - if (!this._fixedDatums[idx].Equals(obj._fixedDatums[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._variableDatums.Count != obj._variableDatums.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._originatingID.GetHashCode(); - result = GenerateHash(result) ^ this._receivingID.GetHashCode(); - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - result = GenerateHash(result) ^ this._requestStatus.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); - - if (this._fixedDatums.Count > 0) - { - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - result = GenerateHash(result) ^ this._fixedDatums[idx].GetHashCode(); - } - } - - if (this._variableDatums.Count > 0) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); - } - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/ActionResponseReliablePdu.cs b/Libs/CSharpDis7/ActionResponseReliablePdu.cs deleted file mode 100644 index e6d6197..0000000 --- a/Libs/CSharpDis7/ActionResponseReliablePdu.cs +++ /dev/null @@ -1,519 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Section 5.3.12.7: Response from an entity to an action request PDU. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(FixedDatum))] - [XmlInclude(typeof(VariableDatum))] - public partial class ActionResponseReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable - { - /// - /// request ID - /// - private uint _requestID; - - /// - /// status of response - /// - private uint _responseStatus; - - /// - /// Fixed datum record count - /// - private uint _numberOfFixedDatumRecords; - - /// - /// variable datum record count - /// - private uint _numberOfVariableDatumRecords; - - /// - /// Fixed datum records - /// - private List _fixedDatumRecords = new List(); - - /// - /// Variable datum records - /// - private List _variableDatumRecords = new List(); - - /// - /// Initializes a new instance of the class. - /// - public ActionResponseReliablePdu() - { - PduType = (byte)57; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ActionResponseReliablePdu left, ActionResponseReliablePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ActionResponseReliablePdu left, ActionResponseReliablePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 4; // this._requestID - marshalSize += 4; // this._responseStatus - marshalSize += 4; // this._numberOfFixedDatumRecords - marshalSize += 4; // this._numberOfVariableDatumRecords - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - FixedDatum listElement = (FixedDatum)this._fixedDatumRecords[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - VariableDatum listElement = (VariableDatum)this._variableDatumRecords[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the request ID - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Gets or sets the status of response - /// - [XmlElement(Type = typeof(uint), ElementName = "responseStatus")] - public uint ResponseStatus - { - get - { - return this._responseStatus; - } - - set - { - this._responseStatus = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] - public uint NumberOfFixedDatumRecords - { - get - { - return this._numberOfFixedDatumRecords; - } - - set - { - this._numberOfFixedDatumRecords = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] - public uint NumberOfVariableDatumRecords - { - get - { - return this._numberOfVariableDatumRecords; - } - - set - { - this._numberOfVariableDatumRecords = value; - } - } - - /// - /// Gets or sets the Fixed datum records - /// - [XmlElement(ElementName = "fixedDatumRecordsList", Type = typeof(List))] - public List FixedDatumRecords - { - get - { - return this._fixedDatumRecords; - } - } - - /// - /// Gets or sets the Variable datum records - /// - [XmlElement(ElementName = "variableDatumRecordsList", Type = typeof(List))] - public List VariableDatumRecords - { - get - { - return this._variableDatumRecords; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._requestID); - dos.WriteUnsignedInt((uint)this._responseStatus); - dos.WriteUnsignedInt((uint)this._fixedDatumRecords.Count); - dos.WriteUnsignedInt((uint)this._variableDatumRecords.Count); - - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; - aFixedDatum.Marshal(dos); - } - - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; - aVariableDatum.Marshal(dos); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._requestID = dis.ReadUnsignedInt(); - this._responseStatus = dis.ReadUnsignedInt(); - this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); - this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); - for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) - { - FixedDatum anX = new FixedDatum(); - anX.Unmarshal(dis); - this._fixedDatumRecords.Add(anX); - }; - - for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) - { - VariableDatum anX = new VariableDatum(); - anX.Unmarshal(dis); - this._variableDatumRecords.Add(anX); - }; - - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._responseStatus.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fixedDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - sb.AppendLine(""); - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; - aFixedDatum.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - sb.AppendLine(""); - VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; - aVariableDatum.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ActionResponseReliablePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ActionResponseReliablePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - if (this._responseStatus != obj._responseStatus) - { - ivarsEqual = false; - } - - if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) - { - ivarsEqual = false; - } - - if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) - { - ivarsEqual = false; - } - - if (this._fixedDatumRecords.Count != obj._fixedDatumRecords.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - if (!this._fixedDatumRecords[idx].Equals(obj._fixedDatumRecords[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._variableDatumRecords.Count != obj._variableDatumRecords.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - if (!this._variableDatumRecords[idx].Equals(obj._variableDatumRecords[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - result = GenerateHash(result) ^ this._responseStatus.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); - - if (this._fixedDatumRecords.Count > 0) - { - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - result = GenerateHash(result) ^ this._fixedDatumRecords[idx].GetHashCode(); - } - } - - if (this._variableDatumRecords.Count > 0) - { - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - result = GenerateHash(result) ^ this._variableDatumRecords[idx].GetHashCode(); - } - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/AggregateIdentifier.cs b/Libs/CSharpDis7/AggregateIdentifier.cs deleted file mode 100644 index 4d02b8a..0000000 --- a/Libs/CSharpDis7/AggregateIdentifier.cs +++ /dev/null @@ -1,312 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// The unique designation of each aggrgate in an exercise is specified by an aggregate identifier record. The aggregate ID is not an entity and shall not be treated as such. Section 6.2.3. - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(SimulationAddress))] - public partial class AggregateIdentifier - { - /// - /// Simulation address, ie site and application, the first two fields of the entity ID - /// - private SimulationAddress _simulationAddress = new SimulationAddress(); - - /// - /// the aggregate ID - /// - private ushort _aggregateID; - - /// - /// Initializes a new instance of the class. - /// - public AggregateIdentifier() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(AggregateIdentifier left, AggregateIdentifier right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(AggregateIdentifier left, AggregateIdentifier right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += this._simulationAddress.GetMarshalledSize(); // this._simulationAddress - marshalSize += 2; // this._aggregateID - return marshalSize; - } - - /// - /// Gets or sets the Simulation address, ie site and application, the first two fields of the entity ID - /// - [XmlElement(Type = typeof(SimulationAddress), ElementName = "simulationAddress")] - public SimulationAddress SimulationAddress - { - get - { - return this._simulationAddress; - } - - set - { - this._simulationAddress = value; - } - } - - /// - /// Gets or sets the the aggregate ID - /// - [XmlElement(Type = typeof(ushort), ElementName = "aggregateID")] - public ushort AggregateID - { - get - { - return this._aggregateID; - } - - set - { - this._aggregateID = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - this._simulationAddress.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._aggregateID); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._simulationAddress.Unmarshal(dis); - this._aggregateID = dis.ReadUnsignedShort(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine(""); - this._simulationAddress.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._aggregateID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as AggregateIdentifier; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(AggregateIdentifier obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (!this._simulationAddress.Equals(obj._simulationAddress)) - { - ivarsEqual = false; - } - - if (this._aggregateID != obj._aggregateID) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._simulationAddress.GetHashCode(); - result = GenerateHash(result) ^ this._aggregateID.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/AggregateMarking.cs b/Libs/CSharpDis7/AggregateMarking.cs deleted file mode 100644 index 0bebe1a..0000000 --- a/Libs/CSharpDis7/AggregateMarking.cs +++ /dev/null @@ -1,335 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Specifies the character set used in the first byte, followed by up to 31 characters of text data. Section 6.2.4. - /// - [Serializable] - [XmlRoot] - public partial class AggregateMarking - { - /// - /// The character set - /// - private byte _characterSet; - - /// - /// The characters - /// - private byte[] _characters = new byte[31]; - - /// - /// Initializes a new instance of the class. - /// - public AggregateMarking() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(AggregateMarking left, AggregateMarking right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(AggregateMarking left, AggregateMarking right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._characterSet - marshalSize += 31 * 1; // _characters - return marshalSize; - } - - /// - /// Gets or sets the The character set - /// - [XmlElement(Type = typeof(byte), ElementName = "characterSet")] - public byte CharacterSet - { - get - { - return this._characterSet; - } - - set - { - this._characterSet = value; - } - } - - /// - /// Gets or sets the The characters - /// - [XmlArray(ElementName = "characters")] - public byte[] Characters - { - get - { - return this._characters; - } - - set - { - this._characters = value; - } -} - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._characterSet); - - for (int idx = 0; idx < this._characters.Length; idx++) - { - dos.WriteUnsignedByte(this._characters[idx]); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._characterSet = dis.ReadUnsignedByte(); - for (int idx = 0; idx < this._characters.Length; idx++) - { - this._characters[idx] = dis.ReadUnsignedByte(); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._characterSet.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._characters.Length; idx++) - { - sb.AppendLine("" + this._characters[idx] + ""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as AggregateMarking; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(AggregateMarking obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._characterSet != obj._characterSet) - { - ivarsEqual = false; - } - - if (obj._characters.Length != 31) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < 31; idx++) - { - if (this._characters[idx] != obj._characters[idx]) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._characterSet.GetHashCode(); - - for (int idx = 0; idx < 31; idx++) - { - result = GenerateHash(result) ^ this._characters[idx].GetHashCode(); - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/AggregateType.cs b/Libs/CSharpDis7/AggregateType.cs deleted file mode 100644 index 9caa34b..0000000 --- a/Libs/CSharpDis7/AggregateType.cs +++ /dev/null @@ -1,463 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Identifies the type and organization of an aggregate. Section 6.2.5 - /// - [Serializable] - [XmlRoot] - public partial class AggregateType - { - /// - /// Grouping criterion used to group the aggregate. Enumeration from EBV document - /// - private byte _aggregateKind; - - /// - /// Domain of entity (air, surface, subsurface, space, etc) Zero means domain does not apply. - /// - private byte _domain; - - /// - /// country to which the design of the entity is attributed - /// - private ushort _country; - - /// - /// category of entity - /// - private byte _category; - - /// - /// subcategory of entity - /// - private byte _subcategory; - - /// - /// specific info based on subcategory field - /// - private byte _specific; - - private byte _extra; - - /// - /// Initializes a new instance of the class. - /// - public AggregateType() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(AggregateType left, AggregateType right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(AggregateType left, AggregateType right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._aggregateKind - marshalSize += 1; // this._domain - marshalSize += 2; // this._country - marshalSize += 1; // this._category - marshalSize += 1; // this._subcategory - marshalSize += 1; // this._specific - marshalSize += 1; // this._extra - return marshalSize; - } - - /// - /// Gets or sets the Grouping criterion used to group the aggregate. Enumeration from EBV document - /// - [XmlElement(Type = typeof(byte), ElementName = "aggregateKind")] - public byte AggregateKind - { - get - { - return this._aggregateKind; - } - - set - { - this._aggregateKind = value; - } - } - - /// - /// Gets or sets the Domain of entity (air, surface, subsurface, space, etc) Zero means domain does not apply. - /// - [XmlElement(Type = typeof(byte), ElementName = "domain")] - public byte Domain - { - get - { - return this._domain; - } - - set - { - this._domain = value; - } - } - - /// - /// Gets or sets the country to which the design of the entity is attributed - /// - [XmlElement(Type = typeof(ushort), ElementName = "country")] - public ushort Country - { - get - { - return this._country; - } - - set - { - this._country = value; - } - } - - /// - /// Gets or sets the category of entity - /// - [XmlElement(Type = typeof(byte), ElementName = "category")] - public byte Category - { - get - { - return this._category; - } - - set - { - this._category = value; - } - } - - /// - /// Gets or sets the subcategory of entity - /// - [XmlElement(Type = typeof(byte), ElementName = "subcategory")] - public byte Subcategory - { - get - { - return this._subcategory; - } - - set - { - this._subcategory = value; - } - } - - /// - /// Gets or sets the specific info based on subcategory field - /// - [XmlElement(Type = typeof(byte), ElementName = "specific")] - public byte Specific - { - get - { - return this._specific; - } - - set - { - this._specific = value; - } - } - - [XmlElement(Type = typeof(byte), ElementName = "extra")] - public byte Extra - { - get - { - return this._extra; - } - - set - { - this._extra = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._aggregateKind); - dos.WriteUnsignedByte((byte)this._domain); - dos.WriteUnsignedShort((ushort)this._country); - dos.WriteUnsignedByte((byte)this._category); - dos.WriteUnsignedByte((byte)this._subcategory); - dos.WriteUnsignedByte((byte)this._specific); - dos.WriteUnsignedByte((byte)this._extra); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._aggregateKind = dis.ReadUnsignedByte(); - this._domain = dis.ReadUnsignedByte(); - this._country = dis.ReadUnsignedShort(); - this._category = dis.ReadUnsignedByte(); - this._subcategory = dis.ReadUnsignedByte(); - this._specific = dis.ReadUnsignedByte(); - this._extra = dis.ReadUnsignedByte(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._aggregateKind.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._domain.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._country.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._category.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._subcategory.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._specific.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._extra.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as AggregateType; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(AggregateType obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._aggregateKind != obj._aggregateKind) - { - ivarsEqual = false; - } - - if (this._domain != obj._domain) - { - ivarsEqual = false; - } - - if (this._country != obj._country) - { - ivarsEqual = false; - } - - if (this._category != obj._category) - { - ivarsEqual = false; - } - - if (this._subcategory != obj._subcategory) - { - ivarsEqual = false; - } - - if (this._specific != obj._specific) - { - ivarsEqual = false; - } - - if (this._extra != obj._extra) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._aggregateKind.GetHashCode(); - result = GenerateHash(result) ^ this._domain.GetHashCode(); - result = GenerateHash(result) ^ this._country.GetHashCode(); - result = GenerateHash(result) ^ this._category.GetHashCode(); - result = GenerateHash(result) ^ this._subcategory.GetHashCode(); - result = GenerateHash(result) ^ this._specific.GetHashCode(); - result = GenerateHash(result) ^ this._extra.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/AngleDeception.cs b/Libs/CSharpDis7/AngleDeception.cs deleted file mode 100644 index 9cd9d41..0000000 --- a/Libs/CSharpDis7/AngleDeception.cs +++ /dev/null @@ -1,661 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// The Angle Deception attribute record may be used to communicate discrete values that are associated with angle deception jamming that cannot be referenced to an emitter mode. The values provided in the record records (provided in the associated Electromagnetic Emission PDU). (The victim radar beams are those that are targeted by the jammer.) Section 6.2.12.2 - /// - [Serializable] - [XmlRoot] - public partial class AngleDeception - { - private uint _recordType = 3501; - - private ushort _recordLength = 48; - - private ushort _padding; - - private byte _emitterNumber; - - private byte _beamNumber; - - private byte _stateIndicator; - - private uint _padding2; - - private float _azimuthOffset; - - private float _azimuthWidth; - - private float _azimuthPullRate; - - private float _azimuthPullAcceleration; - - private float _elevationOffset; - - private float _elevationWidth; - - private float _elevationPullRate; - - private float _elevationPullAcceleration; - - private uint _padding3; - - /// - /// Initializes a new instance of the class. - /// - public AngleDeception() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(AngleDeception left, AngleDeception right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(AngleDeception left, AngleDeception right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._recordType - marshalSize += 2; // this._recordLength - marshalSize += 2; // this._padding - marshalSize += 1; // this._emitterNumber - marshalSize += 1; // this._beamNumber - marshalSize += 1; // this._stateIndicator - marshalSize += 4; // this._padding2 - marshalSize += 4; // this._azimuthOffset - marshalSize += 4; // this._azimuthWidth - marshalSize += 4; // this._azimuthPullRate - marshalSize += 4; // this._azimuthPullAcceleration - marshalSize += 4; // this._elevationOffset - marshalSize += 4; // this._elevationWidth - marshalSize += 4; // this._elevationPullRate - marshalSize += 4; // this._elevationPullAcceleration - marshalSize += 4; // this._padding3 - return marshalSize; - } - - [XmlElement(Type = typeof(uint), ElementName = "recordType")] - public uint RecordType - { - get - { - return this._recordType; - } - - set - { - this._recordType = value; - } - } - - [XmlElement(Type = typeof(ushort), ElementName = "recordLength")] - public ushort RecordLength - { - get - { - return this._recordLength; - } - - set - { - this._recordLength = value; - } - } - - [XmlElement(Type = typeof(ushort), ElementName = "padding")] - public ushort Padding - { - get - { - return this._padding; - } - - set - { - this._padding = value; - } - } - - [XmlElement(Type = typeof(byte), ElementName = "emitterNumber")] - public byte EmitterNumber - { - get - { - return this._emitterNumber; - } - - set - { - this._emitterNumber = value; - } - } - - [XmlElement(Type = typeof(byte), ElementName = "beamNumber")] - public byte BeamNumber - { - get - { - return this._beamNumber; - } - - set - { - this._beamNumber = value; - } - } - - [XmlElement(Type = typeof(byte), ElementName = "stateIndicator")] - public byte StateIndicator - { - get - { - return this._stateIndicator; - } - - set - { - this._stateIndicator = value; - } - } - - [XmlElement(Type = typeof(uint), ElementName = "padding2")] - public uint Padding2 - { - get - { - return this._padding2; - } - - set - { - this._padding2 = value; - } - } - - [XmlElement(Type = typeof(float), ElementName = "azimuthOffset")] - public float AzimuthOffset - { - get - { - return this._azimuthOffset; - } - - set - { - this._azimuthOffset = value; - } - } - - [XmlElement(Type = typeof(float), ElementName = "azimuthWidth")] - public float AzimuthWidth - { - get - { - return this._azimuthWidth; - } - - set - { - this._azimuthWidth = value; - } - } - - [XmlElement(Type = typeof(float), ElementName = "azimuthPullRate")] - public float AzimuthPullRate - { - get - { - return this._azimuthPullRate; - } - - set - { - this._azimuthPullRate = value; - } - } - - [XmlElement(Type = typeof(float), ElementName = "azimuthPullAcceleration")] - public float AzimuthPullAcceleration - { - get - { - return this._azimuthPullAcceleration; - } - - set - { - this._azimuthPullAcceleration = value; - } - } - - [XmlElement(Type = typeof(float), ElementName = "elevationOffset")] - public float ElevationOffset - { - get - { - return this._elevationOffset; - } - - set - { - this._elevationOffset = value; - } - } - - [XmlElement(Type = typeof(float), ElementName = "elevationWidth")] - public float ElevationWidth - { - get - { - return this._elevationWidth; - } - - set - { - this._elevationWidth = value; - } - } - - [XmlElement(Type = typeof(float), ElementName = "elevationPullRate")] - public float ElevationPullRate - { - get - { - return this._elevationPullRate; - } - - set - { - this._elevationPullRate = value; - } - } - - [XmlElement(Type = typeof(float), ElementName = "elevationPullAcceleration")] - public float ElevationPullAcceleration - { - get - { - return this._elevationPullAcceleration; - } - - set - { - this._elevationPullAcceleration = value; - } - } - - [XmlElement(Type = typeof(uint), ElementName = "padding3")] - public uint Padding3 - { - get - { - return this._padding3; - } - - set - { - this._padding3 = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._recordType); - dos.WriteUnsignedShort((ushort)this._recordLength); - dos.WriteUnsignedShort((ushort)this._padding); - dos.WriteUnsignedByte((byte)this._emitterNumber); - dos.WriteUnsignedByte((byte)this._beamNumber); - dos.WriteUnsignedByte((byte)this._stateIndicator); - dos.WriteUnsignedInt((uint)this._padding2); - dos.WriteFloat((float)this._azimuthOffset); - dos.WriteFloat((float)this._azimuthWidth); - dos.WriteFloat((float)this._azimuthPullRate); - dos.WriteFloat((float)this._azimuthPullAcceleration); - dos.WriteFloat((float)this._elevationOffset); - dos.WriteFloat((float)this._elevationWidth); - dos.WriteFloat((float)this._elevationPullRate); - dos.WriteFloat((float)this._elevationPullAcceleration); - dos.WriteUnsignedInt((uint)this._padding3); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._recordType = dis.ReadUnsignedInt(); - this._recordLength = dis.ReadUnsignedShort(); - this._padding = dis.ReadUnsignedShort(); - this._emitterNumber = dis.ReadUnsignedByte(); - this._beamNumber = dis.ReadUnsignedByte(); - this._stateIndicator = dis.ReadUnsignedByte(); - this._padding2 = dis.ReadUnsignedInt(); - this._azimuthOffset = dis.ReadFloat(); - this._azimuthWidth = dis.ReadFloat(); - this._azimuthPullRate = dis.ReadFloat(); - this._azimuthPullAcceleration = dis.ReadFloat(); - this._elevationOffset = dis.ReadFloat(); - this._elevationWidth = dis.ReadFloat(); - this._elevationPullRate = dis.ReadFloat(); - this._elevationPullAcceleration = dis.ReadFloat(); - this._padding3 = dis.ReadUnsignedInt(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._recordType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._recordLength.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._emitterNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._beamNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._stateIndicator.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._azimuthOffset.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._azimuthWidth.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._azimuthPullRate.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._azimuthPullAcceleration.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._elevationOffset.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._elevationWidth.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._elevationPullRate.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._elevationPullAcceleration.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding3.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as AngleDeception; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(AngleDeception obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._recordType != obj._recordType) - { - ivarsEqual = false; - } - - if (this._recordLength != obj._recordLength) - { - ivarsEqual = false; - } - - if (this._padding != obj._padding) - { - ivarsEqual = false; - } - - if (this._emitterNumber != obj._emitterNumber) - { - ivarsEqual = false; - } - - if (this._beamNumber != obj._beamNumber) - { - ivarsEqual = false; - } - - if (this._stateIndicator != obj._stateIndicator) - { - ivarsEqual = false; - } - - if (this._padding2 != obj._padding2) - { - ivarsEqual = false; - } - - if (this._azimuthOffset != obj._azimuthOffset) - { - ivarsEqual = false; - } - - if (this._azimuthWidth != obj._azimuthWidth) - { - ivarsEqual = false; - } - - if (this._azimuthPullRate != obj._azimuthPullRate) - { - ivarsEqual = false; - } - - if (this._azimuthPullAcceleration != obj._azimuthPullAcceleration) - { - ivarsEqual = false; - } - - if (this._elevationOffset != obj._elevationOffset) - { - ivarsEqual = false; - } - - if (this._elevationWidth != obj._elevationWidth) - { - ivarsEqual = false; - } - - if (this._elevationPullRate != obj._elevationPullRate) - { - ivarsEqual = false; - } - - if (this._elevationPullAcceleration != obj._elevationPullAcceleration) - { - ivarsEqual = false; - } - - if (this._padding3 != obj._padding3) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._recordType.GetHashCode(); - result = GenerateHash(result) ^ this._recordLength.GetHashCode(); - result = GenerateHash(result) ^ this._padding.GetHashCode(); - result = GenerateHash(result) ^ this._emitterNumber.GetHashCode(); - result = GenerateHash(result) ^ this._beamNumber.GetHashCode(); - result = GenerateHash(result) ^ this._stateIndicator.GetHashCode(); - result = GenerateHash(result) ^ this._padding2.GetHashCode(); - result = GenerateHash(result) ^ this._azimuthOffset.GetHashCode(); - result = GenerateHash(result) ^ this._azimuthWidth.GetHashCode(); - result = GenerateHash(result) ^ this._azimuthPullRate.GetHashCode(); - result = GenerateHash(result) ^ this._azimuthPullAcceleration.GetHashCode(); - result = GenerateHash(result) ^ this._elevationOffset.GetHashCode(); - result = GenerateHash(result) ^ this._elevationWidth.GetHashCode(); - result = GenerateHash(result) ^ this._elevationPullRate.GetHashCode(); - result = GenerateHash(result) ^ this._elevationPullAcceleration.GetHashCode(); - result = GenerateHash(result) ^ this._padding3.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/AngularVelocityVector.cs b/Libs/CSharpDis7/AngularVelocityVector.cs deleted file mode 100644 index 94e683c..0000000 --- a/Libs/CSharpDis7/AngularVelocityVector.cs +++ /dev/null @@ -1,341 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Angular velocity measured in radians per second out each of the entity's own coordinate axes. Order of measurement is angular velocity around the x, y, and z axis of the entity. The positive direction is determined by the right hand rule. Section 6.2.7 - /// - [Serializable] - [XmlRoot] - public partial class AngularVelocityVector - { - /// - /// velocity about the x axis - /// - private float _x; - - /// - /// velocity about the y axis - /// - private float _y; - - /// - /// velocity about the zaxis - /// - private float _z; - - /// - /// Initializes a new instance of the class. - /// - public AngularVelocityVector() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(AngularVelocityVector left, AngularVelocityVector right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(AngularVelocityVector left, AngularVelocityVector right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._x - marshalSize += 4; // this._y - marshalSize += 4; // this._z - return marshalSize; - } - - /// - /// Gets or sets the velocity about the x axis - /// - [XmlElement(Type = typeof(float), ElementName = "x")] - public float X - { - get - { - return this._x; - } - - set - { - this._x = value; - } - } - - /// - /// Gets or sets the velocity about the y axis - /// - [XmlElement(Type = typeof(float), ElementName = "y")] - public float Y - { - get - { - return this._y; - } - - set - { - this._y = value; - } - } - - /// - /// Gets or sets the velocity about the zaxis - /// - [XmlElement(Type = typeof(float), ElementName = "z")] - public float Z - { - get - { - return this._z; - } - - set - { - this._z = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteFloat((float)this._x); - dos.WriteFloat((float)this._y); - dos.WriteFloat((float)this._z); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._x = dis.ReadFloat(); - this._y = dis.ReadFloat(); - this._z = dis.ReadFloat(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._x.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._y.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._z.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as AngularVelocityVector; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(AngularVelocityVector obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._x != obj._x) - { - ivarsEqual = false; - } - - if (this._y != obj._y) - { - ivarsEqual = false; - } - - if (this._z != obj._z) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._x.GetHashCode(); - result = GenerateHash(result) ^ this._y.GetHashCode(); - result = GenerateHash(result) ^ this._z.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/AntennaLocation.cs b/Libs/CSharpDis7/AntennaLocation.cs deleted file mode 100644 index 295c55f..0000000 --- a/Libs/CSharpDis7/AntennaLocation.cs +++ /dev/null @@ -1,315 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Location of the radiating portion of the antenna, specified in world coordinates and entity coordinates. Section 6.2.8 - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(Vector3Double))] - [XmlInclude(typeof(Vector3Float))] - public partial class AntennaLocation - { - /// - /// Location of the radiating portion of the antenna in world coordinates - /// - private Vector3Double _antennaLocation = new Vector3Double(); - - /// - /// Location of the radiating portion of the antenna in entity coordinates - /// - private Vector3Float _relativeAntennaLocation = new Vector3Float(); - - /// - /// Initializes a new instance of the class. - /// - public AntennaLocation() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(AntennaLocation left, AntennaLocation right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(AntennaLocation left, AntennaLocation right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += this._antennaLocation.GetMarshalledSize(); // this._antennaLocation - marshalSize += this._relativeAntennaLocation.GetMarshalledSize(); // this._relativeAntennaLocation - return marshalSize; - } - - /// - /// Gets or sets the Location of the radiating portion of the antenna in world coordinates - /// - [XmlElement(Type = typeof(Vector3Double), ElementName = "antennaLocation")] - public Vector3Double AntennaLocation_ - { - get - { - return this._antennaLocation; - } - - set - { - this._antennaLocation = value; - } - } - - /// - /// Gets or sets the Location of the radiating portion of the antenna in entity coordinates - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "relativeAntennaLocation")] - public Vector3Float RelativeAntennaLocation - { - get - { - return this._relativeAntennaLocation; - } - - set - { - this._relativeAntennaLocation = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - this._antennaLocation.Marshal(dos); - this._relativeAntennaLocation.Marshal(dos); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._antennaLocation.Unmarshal(dis); - this._relativeAntennaLocation.Unmarshal(dis); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine(""); - this._antennaLocation.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._relativeAntennaLocation.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as AntennaLocation; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(AntennaLocation obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (!this._antennaLocation.Equals(obj._antennaLocation)) - { - ivarsEqual = false; - } - - if (!this._relativeAntennaLocation.Equals(obj._relativeAntennaLocation)) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._antennaLocation.GetHashCode(); - result = GenerateHash(result) ^ this._relativeAntennaLocation.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/ArealObjectStatePdu.cs b/Libs/CSharpDis7/ArealObjectStatePdu.cs deleted file mode 100644 index 5745e61..0000000 --- a/Libs/CSharpDis7/ArealObjectStatePdu.cs +++ /dev/null @@ -1,685 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Information about the addition/modification of an oobject that is geometrically anchored to the terrain with a set of three or more points that come to a closure. Section 7.10.6 COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(EntityType))] - [XmlInclude(typeof(SimulationAddress))] - [XmlInclude(typeof(Vector3Double))] - public partial class ArealObjectStatePdu : SyntheticEnvironmentFamilyPdu, IEquatable - { - /// - /// Object in synthetic environment - /// - private EntityID _objectID = new EntityID(); - - /// - /// Object with which this point object is associated - /// - private EntityID _referencedObjectID = new EntityID(); - - /// - /// unique update number of each state transition of an object - /// - private ushort _updateNumber; - - /// - /// force ID - /// - private byte _forceID; - - /// - /// modifications enumeration - /// - private byte _modifications; - - /// - /// Object type - /// - private EntityType _objectType = new EntityType(); - - /// - /// Object appearance - /// - private uint _specificObjectAppearance; - - /// - /// Object appearance - /// - private ushort _generalObjectAppearance; - - /// - /// Number of points - /// - private ushort _numberOfPoints; - - /// - /// requesterID - /// - private SimulationAddress _requesterID = new SimulationAddress(); - - /// - /// receiver ID - /// - private SimulationAddress _receivingID = new SimulationAddress(); - - /// - /// location of object - /// - private List _objectLocation = new List(); - - /// - /// Initializes a new instance of the class. - /// - public ArealObjectStatePdu() - { - PduType = (byte)45; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ArealObjectStatePdu left, ArealObjectStatePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ArealObjectStatePdu left, ArealObjectStatePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._objectID.GetMarshalledSize(); // this._objectID - marshalSize += this._referencedObjectID.GetMarshalledSize(); // this._referencedObjectID - marshalSize += 2; // this._updateNumber - marshalSize += 1; // this._forceID - marshalSize += 1; // this._modifications - marshalSize += this._objectType.GetMarshalledSize(); // this._objectType - marshalSize += 4; // this._specificObjectAppearance - marshalSize += 2; // this._generalObjectAppearance - marshalSize += 2; // this._numberOfPoints - marshalSize += this._requesterID.GetMarshalledSize(); // this._requesterID - marshalSize += this._receivingID.GetMarshalledSize(); // this._receivingID - for (int idx = 0; idx < this._objectLocation.Count; idx++) - { - Vector3Double listElement = (Vector3Double)this._objectLocation[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Object in synthetic environment - /// - [XmlElement(Type = typeof(EntityID), ElementName = "objectID")] - public EntityID ObjectID - { - get - { - return this._objectID; - } - - set - { - this._objectID = value; - } - } - - /// - /// Gets or sets the Object with which this point object is associated - /// - [XmlElement(Type = typeof(EntityID), ElementName = "referencedObjectID")] - public EntityID ReferencedObjectID - { - get - { - return this._referencedObjectID; - } - - set - { - this._referencedObjectID = value; - } - } - - /// - /// Gets or sets the unique update number of each state transition of an object - /// - [XmlElement(Type = typeof(ushort), ElementName = "updateNumber")] - public ushort UpdateNumber - { - get - { - return this._updateNumber; - } - - set - { - this._updateNumber = value; - } - } - - /// - /// Gets or sets the force ID - /// - [XmlElement(Type = typeof(byte), ElementName = "forceID")] - public byte ForceID - { - get - { - return this._forceID; - } - - set - { - this._forceID = value; - } - } - - /// - /// Gets or sets the modifications enumeration - /// - [XmlElement(Type = typeof(byte), ElementName = "modifications")] - public byte Modifications - { - get - { - return this._modifications; - } - - set - { - this._modifications = value; - } - } - - /// - /// Gets or sets the Object type - /// - [XmlElement(Type = typeof(EntityType), ElementName = "objectType")] - public EntityType ObjectType - { - get - { - return this._objectType; - } - - set - { - this._objectType = value; - } - } - - /// - /// Gets or sets the Object appearance - /// - [XmlElement(Type = typeof(uint), ElementName = "specificObjectAppearance")] - public uint SpecificObjectAppearance - { - get - { - return this._specificObjectAppearance; - } - - set - { - this._specificObjectAppearance = value; - } - } - - /// - /// Gets or sets the Object appearance - /// - [XmlElement(Type = typeof(ushort), ElementName = "generalObjectAppearance")] - public ushort GeneralObjectAppearance - { - get - { - return this._generalObjectAppearance; - } - - set - { - this._generalObjectAppearance = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfPoints method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(ushort), ElementName = "numberOfPoints")] - public ushort NumberOfPoints - { - get - { - return this._numberOfPoints; - } - - set - { - this._numberOfPoints = value; - } - } - - /// - /// Gets or sets the requesterID - /// - [XmlElement(Type = typeof(SimulationAddress), ElementName = "requesterID")] - public SimulationAddress RequesterID - { - get - { - return this._requesterID; - } - - set - { - this._requesterID = value; - } - } - - /// - /// Gets or sets the receiver ID - /// - [XmlElement(Type = typeof(SimulationAddress), ElementName = "receivingID")] - public SimulationAddress ReceivingID - { - get - { - return this._receivingID; - } - - set - { - this._receivingID = value; - } - } - - /// - /// Gets or sets the location of object - /// - [XmlElement(ElementName = "objectLocationList", Type = typeof(List))] - public List ObjectLocation - { - get - { - return this._objectLocation; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._objectID.Marshal(dos); - this._referencedObjectID.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._updateNumber); - dos.WriteUnsignedByte((byte)this._forceID); - dos.WriteUnsignedByte((byte)this._modifications); - this._objectType.Marshal(dos); - dos.WriteUnsignedInt((uint)this._specificObjectAppearance); - dos.WriteUnsignedShort((ushort)this._generalObjectAppearance); - dos.WriteUnsignedShort((ushort)this._objectLocation.Count); - this._requesterID.Marshal(dos); - this._receivingID.Marshal(dos); - - for (int idx = 0; idx < this._objectLocation.Count; idx++) - { - Vector3Double aVector3Double = (Vector3Double)this._objectLocation[idx]; - aVector3Double.Marshal(dos); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._objectID.Unmarshal(dis); - this._referencedObjectID.Unmarshal(dis); - this._updateNumber = dis.ReadUnsignedShort(); - this._forceID = dis.ReadUnsignedByte(); - this._modifications = dis.ReadUnsignedByte(); - this._objectType.Unmarshal(dis); - this._specificObjectAppearance = dis.ReadUnsignedInt(); - this._generalObjectAppearance = dis.ReadUnsignedShort(); - this._numberOfPoints = dis.ReadUnsignedShort(); - this._requesterID.Unmarshal(dis); - this._receivingID.Unmarshal(dis); - for (int idx = 0; idx < this.NumberOfPoints; idx++) - { - Vector3Double anX = new Vector3Double(); - anX.Unmarshal(dis); - this._objectLocation.Add(anX); - }; - - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._objectID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._referencedObjectID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._updateNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._forceID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._modifications.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._objectType.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._specificObjectAppearance.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._generalObjectAppearance.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._objectLocation.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._requesterID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._receivingID.Reflection(sb); - sb.AppendLine(""); - for (int idx = 0; idx < this._objectLocation.Count; idx++) - { - sb.AppendLine(""); - Vector3Double aVector3Double = (Vector3Double)this._objectLocation[idx]; - aVector3Double.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ArealObjectStatePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ArealObjectStatePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._objectID.Equals(obj._objectID)) - { - ivarsEqual = false; - } - - if (!this._referencedObjectID.Equals(obj._referencedObjectID)) - { - ivarsEqual = false; - } - - if (this._updateNumber != obj._updateNumber) - { - ivarsEqual = false; - } - - if (this._forceID != obj._forceID) - { - ivarsEqual = false; - } - - if (this._modifications != obj._modifications) - { - ivarsEqual = false; - } - - if (!this._objectType.Equals(obj._objectType)) - { - ivarsEqual = false; - } - - if (this._specificObjectAppearance != obj._specificObjectAppearance) - { - ivarsEqual = false; - } - - if (this._generalObjectAppearance != obj._generalObjectAppearance) - { - ivarsEqual = false; - } - - if (this._numberOfPoints != obj._numberOfPoints) - { - ivarsEqual = false; - } - - if (!this._requesterID.Equals(obj._requesterID)) - { - ivarsEqual = false; - } - - if (!this._receivingID.Equals(obj._receivingID)) - { - ivarsEqual = false; - } - - if (this._objectLocation.Count != obj._objectLocation.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._objectLocation.Count; idx++) - { - if (!this._objectLocation[idx].Equals(obj._objectLocation[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._objectID.GetHashCode(); - result = GenerateHash(result) ^ this._referencedObjectID.GetHashCode(); - result = GenerateHash(result) ^ this._updateNumber.GetHashCode(); - result = GenerateHash(result) ^ this._forceID.GetHashCode(); - result = GenerateHash(result) ^ this._modifications.GetHashCode(); - result = GenerateHash(result) ^ this._objectType.GetHashCode(); - result = GenerateHash(result) ^ this._specificObjectAppearance.GetHashCode(); - result = GenerateHash(result) ^ this._generalObjectAppearance.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfPoints.GetHashCode(); - result = GenerateHash(result) ^ this._requesterID.GetHashCode(); - result = GenerateHash(result) ^ this._receivingID.GetHashCode(); - - if (this._objectLocation.Count > 0) - { - for (int idx = 0; idx < this._objectLocation.Count; idx++) - { - result = GenerateHash(result) ^ this._objectLocation[idx].GetHashCode(); - } - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/ArticulatedParts.cs b/Libs/CSharpDis7/ArticulatedParts.cs deleted file mode 100644 index 2276f66..0000000 --- a/Libs/CSharpDis7/ArticulatedParts.cs +++ /dev/null @@ -1,405 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// articulated parts for movable parts and a combination of moveable/attached parts of an entity. Section 6.2.93.2 - /// - [Serializable] - [XmlRoot] - public partial class ArticulatedParts - { - /// - /// the identification of the Variable Parameter record. Enumeration from EBV - /// - private byte _recordType; - - /// - /// indicate the change of any parameter for any articulated part. Starts at zero, incremented for each change - /// - private byte _changeIndicator; - - /// - /// the identification of the articulated part to which this articulation parameter is attached. This field shall be specified by a 16-bit unsigned integer. This field shall contain the value zero if the articulated part is attached directly to the entity. - /// - private ushort _partAttachedTo; - - /// - /// the type of parameter represented, 32 bit enumeration - /// - private uint _parameterType; - - /// - /// The definition of the 64 bits shall be determined based on the type of parameter specified in the Parameter Type field - /// - private ulong _parameterValue; - - /// - /// Initializes a new instance of the class. - /// - public ArticulatedParts() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ArticulatedParts left, ArticulatedParts right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ArticulatedParts left, ArticulatedParts right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._recordType - marshalSize += 1; // this._changeIndicator - marshalSize += 2; // this._partAttachedTo - marshalSize += 4; // this._parameterType - marshalSize += 8; // this._parameterValue - return marshalSize; - } - - /// - /// Gets or sets the the identification of the Variable Parameter record. Enumeration from EBV - /// - [XmlElement(Type = typeof(byte), ElementName = "recordType")] - public byte RecordType - { - get - { - return this._recordType; - } - - set - { - this._recordType = value; - } - } - - /// - /// Gets or sets the indicate the change of any parameter for any articulated part. Starts at zero, incremented for each change - /// - [XmlElement(Type = typeof(byte), ElementName = "changeIndicator")] - public byte ChangeIndicator - { - get - { - return this._changeIndicator; - } - - set - { - this._changeIndicator = value; - } - } - - /// - /// Gets or sets the the identification of the articulated part to which this articulation parameter is attached. This field shall be specified by a 16-bit unsigned integer. This field shall contain the value zero if the articulated part is attached directly to the entity. - /// - [XmlElement(Type = typeof(ushort), ElementName = "partAttachedTo")] - public ushort PartAttachedTo - { - get - { - return this._partAttachedTo; - } - - set - { - this._partAttachedTo = value; - } - } - - /// - /// Gets or sets the the type of parameter represented, 32 bit enumeration - /// - [XmlElement(Type = typeof(uint), ElementName = "parameterType")] - public uint ParameterType - { - get - { - return this._parameterType; - } - - set - { - this._parameterType = value; - } - } - - /// - /// Gets or sets the The definition of the 64 bits shall be determined based on the type of parameter specified in the Parameter Type field - /// - [XmlElement(Type = typeof(ulong), ElementName = "parameterValue")] - public ulong ParameterValue - { - get - { - return this._parameterValue; - } - - set - { - this._parameterValue = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._recordType); - dos.WriteUnsignedByte((byte)this._changeIndicator); - dos.WriteUnsignedShort((ushort)this._partAttachedTo); - dos.WriteUnsignedInt((uint)this._parameterType); - dos.WriteUnsignedLong((ulong)this._parameterValue); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._recordType = dis.ReadUnsignedByte(); - this._changeIndicator = dis.ReadUnsignedByte(); - this._partAttachedTo = dis.ReadUnsignedShort(); - this._parameterType = dis.ReadUnsignedInt(); - this._parameterValue = dis.ReadUnsignedLong(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._recordType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._changeIndicator.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._partAttachedTo.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._parameterType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._parameterValue.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ArticulatedParts; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ArticulatedParts obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._recordType != obj._recordType) - { - ivarsEqual = false; - } - - if (this._changeIndicator != obj._changeIndicator) - { - ivarsEqual = false; - } - - if (this._partAttachedTo != obj._partAttachedTo) - { - ivarsEqual = false; - } - - if (this._parameterType != obj._parameterType) - { - ivarsEqual = false; - } - - if (this._parameterValue != obj._parameterValue) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._recordType.GetHashCode(); - result = GenerateHash(result) ^ this._changeIndicator.GetHashCode(); - result = GenerateHash(result) ^ this._partAttachedTo.GetHashCode(); - result = GenerateHash(result) ^ this._parameterType.GetHashCode(); - result = GenerateHash(result) ^ this._parameterValue.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/Association.cs b/Libs/CSharpDis7/Association.cs deleted file mode 100644 index 9e03f80..0000000 --- a/Libs/CSharpDis7/Association.cs +++ /dev/null @@ -1,367 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// An entity's associations with other entities and/or locations. For each association, this record shall specify the type of the association, the associated entity's EntityID and/or the associated location's world coordinates. This record may be used (optionally) in a transfer transaction to send internal state data from the divesting simulation to the acquiring simulation (see 5.9.4). This record may also be used for other purposes. Section 6.2.10 - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(Vector3Double))] - public partial class Association - { - private byte _associationType; - - private byte _padding4; - - /// - /// identity of associated entity. If none, NO_SPECIFIC_ENTITY - /// - private EntityID _associatedEntityID = new EntityID(); - - /// - /// location, in world coordinates - /// - private Vector3Double _associatedLocation = new Vector3Double(); - - /// - /// Initializes a new instance of the class. - /// - public Association() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(Association left, Association right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(Association left, Association right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._associationType - marshalSize += 1; // this._padding4 - marshalSize += this._associatedEntityID.GetMarshalledSize(); // this._associatedEntityID - marshalSize += this._associatedLocation.GetMarshalledSize(); // this._associatedLocation - return marshalSize; - } - - [XmlElement(Type = typeof(byte), ElementName = "associationType")] - public byte AssociationType - { - get - { - return this._associationType; - } - - set - { - this._associationType = value; - } - } - - [XmlElement(Type = typeof(byte), ElementName = "padding4")] - public byte Padding4 - { - get - { - return this._padding4; - } - - set - { - this._padding4 = value; - } - } - - /// - /// Gets or sets the identity of associated entity. If none, NO_SPECIFIC_ENTITY - /// - [XmlElement(Type = typeof(EntityID), ElementName = "associatedEntityID")] - public EntityID AssociatedEntityID - { - get - { - return this._associatedEntityID; - } - - set - { - this._associatedEntityID = value; - } - } - - /// - /// Gets or sets the location, in world coordinates - /// - [XmlElement(Type = typeof(Vector3Double), ElementName = "associatedLocation")] - public Vector3Double AssociatedLocation - { - get - { - return this._associatedLocation; - } - - set - { - this._associatedLocation = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._associationType); - dos.WriteUnsignedByte((byte)this._padding4); - this._associatedEntityID.Marshal(dos); - this._associatedLocation.Marshal(dos); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._associationType = dis.ReadUnsignedByte(); - this._padding4 = dis.ReadUnsignedByte(); - this._associatedEntityID.Unmarshal(dis); - this._associatedLocation.Unmarshal(dis); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._associationType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding4.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._associatedEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._associatedLocation.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as Association; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(Association obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._associationType != obj._associationType) - { - ivarsEqual = false; - } - - if (this._padding4 != obj._padding4) - { - ivarsEqual = false; - } - - if (!this._associatedEntityID.Equals(obj._associatedEntityID)) - { - ivarsEqual = false; - } - - if (!this._associatedLocation.Equals(obj._associatedLocation)) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._associationType.GetHashCode(); - result = GenerateHash(result) ^ this._padding4.GetHashCode(); - result = GenerateHash(result) ^ this._associatedEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._associatedLocation.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/AttachedParts.cs b/Libs/CSharpDis7/AttachedParts.cs deleted file mode 100644 index 3e41b87..0000000 --- a/Libs/CSharpDis7/AttachedParts.cs +++ /dev/null @@ -1,405 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Removable parts that may be attached to an entity. Section 6.2.93.3 - /// - [Serializable] - [XmlRoot] - public partial class AttachedParts - { - /// - /// the identification of the Variable Parameter record. Enumeration from EBV - /// - private byte _recordType = 1; - - /// - /// 0 = attached, 1 = detached. See I.2.3.1 for state transition diagram - /// - private byte _detachedIndicator; - - /// - /// the identification of the articulated part to which this articulation parameter is attached. This field shall be specified by a 16-bit unsigned integer. This field shall contain the value zero if the articulated part is attached directly to the entity. - /// - private ushort _partAttachedTo; - - /// - /// The location or station to which the part is attached - /// - private uint _parameterType; - - /// - /// The definition of the 64 bits shall be determined based on the type of parameter specified in the Parameter Type field - /// - private ulong _parameterValue; - - /// - /// Initializes a new instance of the class. - /// - public AttachedParts() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(AttachedParts left, AttachedParts right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(AttachedParts left, AttachedParts right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._recordType - marshalSize += 1; // this._detachedIndicator - marshalSize += 2; // this._partAttachedTo - marshalSize += 4; // this._parameterType - marshalSize += 8; // this._parameterValue - return marshalSize; - } - - /// - /// Gets or sets the the identification of the Variable Parameter record. Enumeration from EBV - /// - [XmlElement(Type = typeof(byte), ElementName = "recordType")] - public byte RecordType - { - get - { - return this._recordType; - } - - set - { - this._recordType = value; - } - } - - /// - /// Gets or sets the 0 = attached, 1 = detached. See I.2.3.1 for state transition diagram - /// - [XmlElement(Type = typeof(byte), ElementName = "detachedIndicator")] - public byte DetachedIndicator - { - get - { - return this._detachedIndicator; - } - - set - { - this._detachedIndicator = value; - } - } - - /// - /// Gets or sets the the identification of the articulated part to which this articulation parameter is attached. This field shall be specified by a 16-bit unsigned integer. This field shall contain the value zero if the articulated part is attached directly to the entity. - /// - [XmlElement(Type = typeof(ushort), ElementName = "partAttachedTo")] - public ushort PartAttachedTo - { - get - { - return this._partAttachedTo; - } - - set - { - this._partAttachedTo = value; - } - } - - /// - /// Gets or sets the The location or station to which the part is attached - /// - [XmlElement(Type = typeof(uint), ElementName = "parameterType")] - public uint ParameterType - { - get - { - return this._parameterType; - } - - set - { - this._parameterType = value; - } - } - - /// - /// Gets or sets the The definition of the 64 bits shall be determined based on the type of parameter specified in the Parameter Type field - /// - [XmlElement(Type = typeof(ulong), ElementName = "parameterValue")] - public ulong ParameterValue - { - get - { - return this._parameterValue; - } - - set - { - this._parameterValue = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._recordType); - dos.WriteUnsignedByte((byte)this._detachedIndicator); - dos.WriteUnsignedShort((ushort)this._partAttachedTo); - dos.WriteUnsignedInt((uint)this._parameterType); - dos.WriteUnsignedLong((ulong)this._parameterValue); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._recordType = dis.ReadUnsignedByte(); - this._detachedIndicator = dis.ReadUnsignedByte(); - this._partAttachedTo = dis.ReadUnsignedShort(); - this._parameterType = dis.ReadUnsignedInt(); - this._parameterValue = dis.ReadUnsignedLong(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._recordType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._detachedIndicator.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._partAttachedTo.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._parameterType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._parameterValue.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as AttachedParts; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(AttachedParts obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._recordType != obj._recordType) - { - ivarsEqual = false; - } - - if (this._detachedIndicator != obj._detachedIndicator) - { - ivarsEqual = false; - } - - if (this._partAttachedTo != obj._partAttachedTo) - { - ivarsEqual = false; - } - - if (this._parameterType != obj._parameterType) - { - ivarsEqual = false; - } - - if (this._parameterValue != obj._parameterValue) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._recordType.GetHashCode(); - result = GenerateHash(result) ^ this._detachedIndicator.GetHashCode(); - result = GenerateHash(result) ^ this._partAttachedTo.GetHashCode(); - result = GenerateHash(result) ^ this._parameterType.GetHashCode(); - result = GenerateHash(result) ^ this._parameterValue.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/Attribute.cs b/Libs/CSharpDis7/Attribute.cs deleted file mode 100644 index af8503c..0000000 --- a/Libs/CSharpDis7/Attribute.cs +++ /dev/null @@ -1,323 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Used to convey information for one or more attributes. Attributes conform to the standard variable record format of 6.2.82. Section 6.2.11 - /// - [Serializable] - [XmlRoot] - public partial class Attribute - { - private uint _recordType; - - private byte _recordLength; - - private ulong _recordSpecificFields; - - /// - /// Initializes a new instance of the class. - /// - public Attribute() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(Attribute left, Attribute right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(Attribute left, Attribute right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._recordType - marshalSize += 1; // this._recordLength - marshalSize += 8; // this._recordSpecificFields - return marshalSize; - } - - [XmlElement(Type = typeof(uint), ElementName = "recordType")] - public uint RecordType - { - get - { - return this._recordType; - } - - set - { - this._recordType = value; - } - } - - [XmlElement(Type = typeof(byte), ElementName = "recordLength")] - public byte RecordLength - { - get - { - return this._recordLength; - } - - set - { - this._recordLength = value; - } - } - - [XmlElement(Type = typeof(ulong), ElementName = "recordSpecificFields")] - public ulong RecordSpecificFields - { - get - { - return this._recordSpecificFields; - } - - set - { - this._recordSpecificFields = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._recordType); - dos.WriteUnsignedByte((byte)this._recordLength); - dos.WriteUnsignedLong((ulong)this._recordSpecificFields); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._recordType = dis.ReadUnsignedInt(); - this._recordLength = dis.ReadUnsignedByte(); - this._recordSpecificFields = dis.ReadUnsignedLong(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._recordType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._recordLength.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._recordSpecificFields.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as Attribute; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(Attribute obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._recordType != obj._recordType) - { - ivarsEqual = false; - } - - if (this._recordLength != obj._recordLength) - { - ivarsEqual = false; - } - - if (this._recordSpecificFields != obj._recordSpecificFields) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._recordType.GetHashCode(); - result = GenerateHash(result) ^ this._recordLength.GetHashCode(); - result = GenerateHash(result) ^ this._recordSpecificFields.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/AttributePdu.cs b/Libs/CSharpDis7/AttributePdu.cs deleted file mode 100644 index 466a155..0000000 --- a/Libs/CSharpDis7/AttributePdu.cs +++ /dev/null @@ -1,539 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Information about individual attributes for a particular entity, other object, or event may be communicated using an Attribute PDU. The Attribute PDU shall not be used to exchange data available in any other PDU except where explicitly mentioned in the PDU issuance instructions within this standard. See 5.3.6 for the information requirements and issuance and receipt rules for this PDU. Section 7.2.6. INCOMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(SimulationAddress))] - public partial class AttributePdu : EntityInformationFamilyPdu, IEquatable - { - /// - /// This field shall identify the simulation issuing the Attribute PDU. It shall be represented by a Simulation Address record (see 6.2.79). - /// - private SimulationAddress _originatingSimulationAddress = new SimulationAddress(); - - /// - /// Padding - /// - private int _padding1; - - /// - /// Padding - /// - private short _padding2; - - /// - /// This field shall represent the type of the PDU that is being extended or updated, if applicable. It shall be represented by an 8-bit enumeration. - /// - private byte _attributeRecordPduType; - - /// - /// This field shall indicate the Protocol Version associated with the Attribute Record PDU Type. It shall be represented by an 8-bit enumeration. - /// - private byte _attributeRecordProtocolVersion; - - /// - /// This field shall contain the Attribute record type of the Attribute records in the PDU if they all have the same Attribute record type. It shall be represented by a 32-bit enumeration. - /// - private uint _masterAttributeRecordType; - - /// - /// This field shall identify the action code applicable to this Attribute PDU. The Action Code shall apply to all Attribute records contained in the PDU. It shall be represented by an 8-bit enumeration. - /// - private byte _actionCode; - - /// - /// Padding - /// - private byte _padding3; - - /// - /// This field shall specify the number of Attribute Record Sets that make up the remainder of the PDU. It shall be represented by a 16-bit unsigned integer. - /// - private ushort _numberAttributeRecordSet; - - /// - /// Initializes a new instance of the class. - /// - public AttributePdu() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(AttributePdu left, AttributePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(AttributePdu left, AttributePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._originatingSimulationAddress.GetMarshalledSize(); // this._originatingSimulationAddress - marshalSize += 4; // this._padding1 - marshalSize += 2; // this._padding2 - marshalSize += 1; // this._attributeRecordPduType - marshalSize += 1; // this._attributeRecordProtocolVersion - marshalSize += 4; // this._masterAttributeRecordType - marshalSize += 1; // this._actionCode - marshalSize += 1; // this._padding3 - marshalSize += 2; // this._numberAttributeRecordSet - return marshalSize; - } - - /// - /// Gets or sets the This field shall identify the simulation issuing the Attribute PDU. It shall be represented by a Simulation Address record (see 6.2.79). - /// - [XmlElement(Type = typeof(SimulationAddress), ElementName = "originatingSimulationAddress")] - public SimulationAddress OriginatingSimulationAddress - { - get - { - return this._originatingSimulationAddress; - } - - set - { - this._originatingSimulationAddress = value; - } - } - - /// - /// Gets or sets the Padding - /// - [XmlElement(Type = typeof(int), ElementName = "padding1")] - public int Padding1 - { - get - { - return this._padding1; - } - - set - { - this._padding1 = value; - } - } - - /// - /// Gets or sets the Padding - /// - [XmlElement(Type = typeof(short), ElementName = "padding2")] - public short Padding2 - { - get - { - return this._padding2; - } - - set - { - this._padding2 = value; - } - } - - /// - /// Gets or sets the This field shall represent the type of the PDU that is being extended or updated, if applicable. It shall be represented by an 8-bit enumeration. - /// - [XmlElement(Type = typeof(byte), ElementName = "attributeRecordPduType")] - public byte AttributeRecordPduType - { - get - { - return this._attributeRecordPduType; - } - - set - { - this._attributeRecordPduType = value; - } - } - - /// - /// Gets or sets the This field shall indicate the Protocol Version associated with the Attribute Record PDU Type. It shall be represented by an 8-bit enumeration. - /// - [XmlElement(Type = typeof(byte), ElementName = "attributeRecordProtocolVersion")] - public byte AttributeRecordProtocolVersion - { - get - { - return this._attributeRecordProtocolVersion; - } - - set - { - this._attributeRecordProtocolVersion = value; - } - } - - /// - /// Gets or sets the This field shall contain the Attribute record type of the Attribute records in the PDU if they all have the same Attribute record type. It shall be represented by a 32-bit enumeration. - /// - [XmlElement(Type = typeof(uint), ElementName = "masterAttributeRecordType")] - public uint MasterAttributeRecordType - { - get - { - return this._masterAttributeRecordType; - } - - set - { - this._masterAttributeRecordType = value; - } - } - - /// - /// Gets or sets the This field shall identify the action code applicable to this Attribute PDU. The Action Code shall apply to all Attribute records contained in the PDU. It shall be represented by an 8-bit enumeration. - /// - [XmlElement(Type = typeof(byte), ElementName = "actionCode")] - public byte ActionCode - { - get - { - return this._actionCode; - } - - set - { - this._actionCode = value; - } - } - - /// - /// Gets or sets the Padding - /// - [XmlElement(Type = typeof(byte), ElementName = "padding3")] - public byte Padding3 - { - get - { - return this._padding3; - } - - set - { - this._padding3 = value; - } - } - - /// - /// Gets or sets the This field shall specify the number of Attribute Record Sets that make up the remainder of the PDU. It shall be represented by a 16-bit unsigned integer. - /// - [XmlElement(Type = typeof(ushort), ElementName = "numberAttributeRecordSet")] - public ushort NumberAttributeRecordSet - { - get - { - return this._numberAttributeRecordSet; - } - - set - { - this._numberAttributeRecordSet = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._originatingSimulationAddress.Marshal(dos); - dos.WriteInt((int)this._padding1); - dos.WriteShort((short)this._padding2); - dos.WriteUnsignedByte((byte)this._attributeRecordPduType); - dos.WriteUnsignedByte((byte)this._attributeRecordProtocolVersion); - dos.WriteUnsignedInt((uint)this._masterAttributeRecordType); - dos.WriteUnsignedByte((byte)this._actionCode); - dos.WriteByte((byte)this._padding3); - dos.WriteUnsignedShort((ushort)this._numberAttributeRecordSet); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._originatingSimulationAddress.Unmarshal(dis); - this._padding1 = dis.ReadInt(); - this._padding2 = dis.ReadShort(); - this._attributeRecordPduType = dis.ReadUnsignedByte(); - this._attributeRecordProtocolVersion = dis.ReadUnsignedByte(); - this._masterAttributeRecordType = dis.ReadUnsignedInt(); - this._actionCode = dis.ReadUnsignedByte(); - this._padding3 = dis.ReadByte(); - this._numberAttributeRecordSet = dis.ReadUnsignedShort(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._originatingSimulationAddress.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._attributeRecordPduType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._attributeRecordProtocolVersion.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._masterAttributeRecordType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._actionCode.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding3.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._numberAttributeRecordSet.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as AttributePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(AttributePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._originatingSimulationAddress.Equals(obj._originatingSimulationAddress)) - { - ivarsEqual = false; - } - - if (this._padding1 != obj._padding1) - { - ivarsEqual = false; - } - - if (this._padding2 != obj._padding2) - { - ivarsEqual = false; - } - - if (this._attributeRecordPduType != obj._attributeRecordPduType) - { - ivarsEqual = false; - } - - if (this._attributeRecordProtocolVersion != obj._attributeRecordProtocolVersion) - { - ivarsEqual = false; - } - - if (this._masterAttributeRecordType != obj._masterAttributeRecordType) - { - ivarsEqual = false; - } - - if (this._actionCode != obj._actionCode) - { - ivarsEqual = false; - } - - if (this._padding3 != obj._padding3) - { - ivarsEqual = false; - } - - if (this._numberAttributeRecordSet != obj._numberAttributeRecordSet) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._originatingSimulationAddress.GetHashCode(); - result = GenerateHash(result) ^ this._padding1.GetHashCode(); - result = GenerateHash(result) ^ this._padding2.GetHashCode(); - result = GenerateHash(result) ^ this._attributeRecordPduType.GetHashCode(); - result = GenerateHash(result) ^ this._attributeRecordProtocolVersion.GetHashCode(); - result = GenerateHash(result) ^ this._masterAttributeRecordType.GetHashCode(); - result = GenerateHash(result) ^ this._actionCode.GetHashCode(); - result = GenerateHash(result) ^ this._padding3.GetHashCode(); - result = GenerateHash(result) ^ this._numberAttributeRecordSet.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/BeamAntennaPattern.cs b/Libs/CSharpDis7/BeamAntennaPattern.cs deleted file mode 100644 index 8787d61..0000000 --- a/Libs/CSharpDis7/BeamAntennaPattern.cs +++ /dev/null @@ -1,538 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Used when the antenna pattern type field has a value of 1. Specifies the direction, pattern, and polarization of radiation from an antenna. Section 6.2.9.2 - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EulerAngles))] - public partial class BeamAntennaPattern - { - /// - /// The rotation that transforms the reference coordinate sytem into the beam coordinate system. Either world coordinates or entity coordinates may be used as the reference coordinate system, as specified by the reference system field of the antenna pattern record. - /// - private EulerAngles _beamDirection = new EulerAngles(); - - private float _azimuthBeamwidth; - - private float _elevationBeamwidth; - - private float _referenceSystem; - - private byte _padding1; - - private ushort _padding2; - - /// - /// This field shall specify the magnitude of the Z-component (in beam coordinates) of the Electrical field at some arbitrary single point in the main beam and in the far field of the antenna. - /// - private float _ez = 0.0; - - /// - /// This field shall specify the magnitude of the X-component (in beam coordinates) of the Electri- cal field at some arbitrary single point in the main beam and in the far field of the antenna. - /// - private float _ex = 0.0; - - /// - /// This field shall specify the phase angle between EZ and EX in radians. If fully omni-direc- tional antenna is modeled using beam pattern type one, the omni-directional antenna shall be repre- sented by beam direction Euler angles psi, theta, and phi of zero, an azimuth beamwidth of 2PI, and an elevation beamwidth of PI - /// - private float _phase = 0.0; - - /// - /// padding - /// - private uint _padding3; - - /// - /// Initializes a new instance of the class. - /// - public BeamAntennaPattern() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(BeamAntennaPattern left, BeamAntennaPattern right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(BeamAntennaPattern left, BeamAntennaPattern right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += this._beamDirection.GetMarshalledSize(); // this._beamDirection - marshalSize += 4; // this._azimuthBeamwidth - marshalSize += 4; // this._elevationBeamwidth - marshalSize += 4; // this._referenceSystem - marshalSize += 1; // this._padding1 - marshalSize += 2; // this._padding2 - marshalSize += 4; // this._ez - marshalSize += 4; // this._ex - marshalSize += 4; // this._phase - marshalSize += 4; // this._padding3 - return marshalSize; - } - - /// - /// Gets or sets the The rotation that transforms the reference coordinate sytem into the beam coordinate system. Either world coordinates or entity coordinates may be used as the reference coordinate system, as specified by the reference system field of the antenna pattern record. - /// - [XmlElement(Type = typeof(EulerAngles), ElementName = "beamDirection")] - public EulerAngles BeamDirection - { - get - { - return this._beamDirection; - } - - set - { - this._beamDirection = value; - } - } - - [XmlElement(Type = typeof(float), ElementName = "azimuthBeamwidth")] - public float AzimuthBeamwidth - { - get - { - return this._azimuthBeamwidth; - } - - set - { - this._azimuthBeamwidth = value; - } - } - - [XmlElement(Type = typeof(float), ElementName = "elevationBeamwidth")] - public float ElevationBeamwidth - { - get - { - return this._elevationBeamwidth; - } - - set - { - this._elevationBeamwidth = value; - } - } - - [XmlElement(Type = typeof(float), ElementName = "referenceSystem")] - public float ReferenceSystem - { - get - { - return this._referenceSystem; - } - - set - { - this._referenceSystem = value; - } - } - - [XmlElement(Type = typeof(byte), ElementName = "padding1")] - public byte Padding1 - { - get - { - return this._padding1; - } - - set - { - this._padding1 = value; - } - } - - [XmlElement(Type = typeof(ushort), ElementName = "padding2")] - public ushort Padding2 - { - get - { - return this._padding2; - } - - set - { - this._padding2 = value; - } - } - - /// - /// Gets or sets the This field shall specify the magnitude of the Z-component (in beam coordinates) of the Electrical field at some arbitrary single point in the main beam and in the far field of the antenna. - /// - [XmlElement(Type = typeof(float), ElementName = "ez")] - public float Ez - { - get - { - return this._ez; - } - - set - { - this._ez = value; - } - } - - /// - /// Gets or sets the This field shall specify the magnitude of the X-component (in beam coordinates) of the Electri- cal field at some arbitrary single point in the main beam and in the far field of the antenna. - /// - [XmlElement(Type = typeof(float), ElementName = "ex")] - public float Ex - { - get - { - return this._ex; - } - - set - { - this._ex = value; - } - } - - /// - /// Gets or sets the This field shall specify the phase angle between EZ and EX in radians. If fully omni-direc- tional antenna is modeled using beam pattern type one, the omni-directional antenna shall be repre- sented by beam direction Euler angles psi, theta, and phi of zero, an azimuth beamwidth of 2PI, and an elevation beamwidth of PI - /// - [XmlElement(Type = typeof(float), ElementName = "phase")] - public float Phase - { - get - { - return this._phase; - } - - set - { - this._phase = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(uint), ElementName = "padding3")] - public uint Padding3 - { - get - { - return this._padding3; - } - - set - { - this._padding3 = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - this._beamDirection.Marshal(dos); - dos.WriteFloat((float)this._azimuthBeamwidth); - dos.WriteFloat((float)this._elevationBeamwidth); - dos.WriteFloat((float)this._referenceSystem); - dos.WriteUnsignedByte((byte)this._padding1); - dos.WriteUnsignedShort((ushort)this._padding2); - dos.WriteFloat((float)this._ez); - dos.WriteFloat((float)this._ex); - dos.WriteFloat((float)this._phase); - dos.WriteUnsignedInt((uint)this._padding3); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._beamDirection.Unmarshal(dis); - this._azimuthBeamwidth = dis.ReadFloat(); - this._elevationBeamwidth = dis.ReadFloat(); - this._referenceSystem = dis.ReadFloat(); - this._padding1 = dis.ReadUnsignedByte(); - this._padding2 = dis.ReadUnsignedShort(); - this._ez = dis.ReadFloat(); - this._ex = dis.ReadFloat(); - this._phase = dis.ReadFloat(); - this._padding3 = dis.ReadUnsignedInt(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine(""); - this._beamDirection.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._azimuthBeamwidth.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._elevationBeamwidth.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._referenceSystem.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._ez.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._ex.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._phase.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding3.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as BeamAntennaPattern; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(BeamAntennaPattern obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (!this._beamDirection.Equals(obj._beamDirection)) - { - ivarsEqual = false; - } - - if (this._azimuthBeamwidth != obj._azimuthBeamwidth) - { - ivarsEqual = false; - } - - if (this._elevationBeamwidth != obj._elevationBeamwidth) - { - ivarsEqual = false; - } - - if (this._referenceSystem != obj._referenceSystem) - { - ivarsEqual = false; - } - - if (this._padding1 != obj._padding1) - { - ivarsEqual = false; - } - - if (this._padding2 != obj._padding2) - { - ivarsEqual = false; - } - - if (this._ez != obj._ez) - { - ivarsEqual = false; - } - - if (this._ex != obj._ex) - { - ivarsEqual = false; - } - - if (this._phase != obj._phase) - { - ivarsEqual = false; - } - - if (this._padding3 != obj._padding3) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._beamDirection.GetHashCode(); - result = GenerateHash(result) ^ this._azimuthBeamwidth.GetHashCode(); - result = GenerateHash(result) ^ this._elevationBeamwidth.GetHashCode(); - result = GenerateHash(result) ^ this._referenceSystem.GetHashCode(); - result = GenerateHash(result) ^ this._padding1.GetHashCode(); - result = GenerateHash(result) ^ this._padding2.GetHashCode(); - result = GenerateHash(result) ^ this._ez.GetHashCode(); - result = GenerateHash(result) ^ this._ex.GetHashCode(); - result = GenerateHash(result) ^ this._phase.GetHashCode(); - result = GenerateHash(result) ^ this._padding3.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/BeamData.cs b/Libs/CSharpDis7/BeamData.cs deleted file mode 100644 index ccbe7a7..0000000 --- a/Libs/CSharpDis7/BeamData.cs +++ /dev/null @@ -1,405 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Describes the scan volue of an emitter beam. Section 6.2.13. - /// - [Serializable] - [XmlRoot] - public partial class BeamData - { - /// - /// Specifies the beam azimuth an elevation centers and corresponding half-angles to describe the scan volume - /// - private float _beamAzimuthCenter; - - /// - /// Specifies the beam azimuth sweep to determine scan volume - /// - private float _beamAzimuthSweep; - - /// - /// Specifies the beam elevation center to determine scan volume - /// - private float _beamElevationCenter; - - /// - /// Specifies the beam elevation sweep to determine scan volume - /// - private float _beamElevationSweep; - - /// - /// allows receiver to synchronize its regenerated scan pattern to that of the emmitter. Specifies the percentage of time a scan is through its pattern from its origion. - /// - private float _beamSweepSync; - - /// - /// Initializes a new instance of the class. - /// - public BeamData() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(BeamData left, BeamData right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(BeamData left, BeamData right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._beamAzimuthCenter - marshalSize += 4; // this._beamAzimuthSweep - marshalSize += 4; // this._beamElevationCenter - marshalSize += 4; // this._beamElevationSweep - marshalSize += 4; // this._beamSweepSync - return marshalSize; - } - - /// - /// Gets or sets the Specifies the beam azimuth an elevation centers and corresponding half-angles to describe the scan volume - /// - [XmlElement(Type = typeof(float), ElementName = "beamAzimuthCenter")] - public float BeamAzimuthCenter - { - get - { - return this._beamAzimuthCenter; - } - - set - { - this._beamAzimuthCenter = value; - } - } - - /// - /// Gets or sets the Specifies the beam azimuth sweep to determine scan volume - /// - [XmlElement(Type = typeof(float), ElementName = "beamAzimuthSweep")] - public float BeamAzimuthSweep - { - get - { - return this._beamAzimuthSweep; - } - - set - { - this._beamAzimuthSweep = value; - } - } - - /// - /// Gets or sets the Specifies the beam elevation center to determine scan volume - /// - [XmlElement(Type = typeof(float), ElementName = "beamElevationCenter")] - public float BeamElevationCenter - { - get - { - return this._beamElevationCenter; - } - - set - { - this._beamElevationCenter = value; - } - } - - /// - /// Gets or sets the Specifies the beam elevation sweep to determine scan volume - /// - [XmlElement(Type = typeof(float), ElementName = "beamElevationSweep")] - public float BeamElevationSweep - { - get - { - return this._beamElevationSweep; - } - - set - { - this._beamElevationSweep = value; - } - } - - /// - /// Gets or sets the allows receiver to synchronize its regenerated scan pattern to that of the emmitter. Specifies the percentage of time a scan is through its pattern from its origion. - /// - [XmlElement(Type = typeof(float), ElementName = "beamSweepSync")] - public float BeamSweepSync - { - get - { - return this._beamSweepSync; - } - - set - { - this._beamSweepSync = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteFloat((float)this._beamAzimuthCenter); - dos.WriteFloat((float)this._beamAzimuthSweep); - dos.WriteFloat((float)this._beamElevationCenter); - dos.WriteFloat((float)this._beamElevationSweep); - dos.WriteFloat((float)this._beamSweepSync); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._beamAzimuthCenter = dis.ReadFloat(); - this._beamAzimuthSweep = dis.ReadFloat(); - this._beamElevationCenter = dis.ReadFloat(); - this._beamElevationSweep = dis.ReadFloat(); - this._beamSweepSync = dis.ReadFloat(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._beamAzimuthCenter.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._beamAzimuthSweep.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._beamElevationCenter.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._beamElevationSweep.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._beamSweepSync.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as BeamData; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(BeamData obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._beamAzimuthCenter != obj._beamAzimuthCenter) - { - ivarsEqual = false; - } - - if (this._beamAzimuthSweep != obj._beamAzimuthSweep) - { - ivarsEqual = false; - } - - if (this._beamElevationCenter != obj._beamElevationCenter) - { - ivarsEqual = false; - } - - if (this._beamElevationSweep != obj._beamElevationSweep) - { - ivarsEqual = false; - } - - if (this._beamSweepSync != obj._beamSweepSync) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._beamAzimuthCenter.GetHashCode(); - result = GenerateHash(result) ^ this._beamAzimuthSweep.GetHashCode(); - result = GenerateHash(result) ^ this._beamElevationCenter.GetHashCode(); - result = GenerateHash(result) ^ this._beamElevationSweep.GetHashCode(); - result = GenerateHash(result) ^ this._beamSweepSync.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/BeamStatus.cs b/Libs/CSharpDis7/BeamStatus.cs deleted file mode 100644 index 44d9960..0000000 --- a/Libs/CSharpDis7/BeamStatus.cs +++ /dev/null @@ -1,277 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Information related to the status of a beam. This is contained in the beam status field of the electromagnitec emission PDU. The first bit determines whether the beam is active (0) or deactivated (1). - /// - [Serializable] - [XmlRoot] - public partial class BeamStatus - { - /// - /// First bit zero means beam is active, first bit = 1 means deactivated. The rest is padding. - /// - private byte _beamState; - - /// - /// Initializes a new instance of the class. - /// - public BeamStatus() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(BeamStatus left, BeamStatus right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(BeamStatus left, BeamStatus right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._beamState - return marshalSize; - } - - /// - /// Gets or sets the First bit zero means beam is active, first bit = 1 means deactivated. The rest is padding. - /// - [XmlElement(Type = typeof(byte), ElementName = "beamState")] - public byte BeamState - { - get - { - return this._beamState; - } - - set - { - this._beamState = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._beamState); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._beamState = dis.ReadUnsignedByte(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._beamState.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as BeamStatus; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(BeamStatus obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._beamState != obj._beamState) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._beamState.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/BlankingSector.cs b/Libs/CSharpDis7/BlankingSector.cs deleted file mode 100644 index f257d78..0000000 --- a/Libs/CSharpDis7/BlankingSector.cs +++ /dev/null @@ -1,505 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// The Blanking Sector attribute record may be used to convey persistent areas within a scan volume where emitter power for a specific active emitter beam is reduced to an insignificant value. Section 6.2.12 - /// - [Serializable] - [XmlRoot] - public partial class BlankingSector - { - private uint _recordType = 3500; - - private ushort _recordLength; - - private byte _emitterNumber; - - private byte _beamNumber; - - private byte _stateIndicator; - - private float _leftAzimuth; - - private float _rightAzimuth; - - private float _lowerElevation; - - private float _upperElevation; - - private float _residualPower; - - /// - /// Initializes a new instance of the class. - /// - public BlankingSector() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(BlankingSector left, BlankingSector right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(BlankingSector left, BlankingSector right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._recordType - marshalSize += 2; // this._recordLength - marshalSize += 1; // this._emitterNumber - marshalSize += 1; // this._beamNumber - marshalSize += 1; // this._stateIndicator - marshalSize += 4; // this._leftAzimuth - marshalSize += 4; // this._rightAzimuth - marshalSize += 4; // this._lowerElevation - marshalSize += 4; // this._upperElevation - marshalSize += 4; // this._residualPower - return marshalSize; - } - - [XmlElement(Type = typeof(uint), ElementName = "recordType")] - public uint RecordType - { - get - { - return this._recordType; - } - - set - { - this._recordType = value; - } - } - - [XmlElement(Type = typeof(ushort), ElementName = "recordLength")] - public ushort RecordLength - { - get - { - return this._recordLength; - } - - set - { - this._recordLength = value; - } - } - - [XmlElement(Type = typeof(byte), ElementName = "emitterNumber")] - public byte EmitterNumber - { - get - { - return this._emitterNumber; - } - - set - { - this._emitterNumber = value; - } - } - - [XmlElement(Type = typeof(byte), ElementName = "beamNumber")] - public byte BeamNumber - { - get - { - return this._beamNumber; - } - - set - { - this._beamNumber = value; - } - } - - [XmlElement(Type = typeof(byte), ElementName = "stateIndicator")] - public byte StateIndicator - { - get - { - return this._stateIndicator; - } - - set - { - this._stateIndicator = value; - } - } - - [XmlElement(Type = typeof(float), ElementName = "leftAzimuth")] - public float LeftAzimuth - { - get - { - return this._leftAzimuth; - } - - set - { - this._leftAzimuth = value; - } - } - - [XmlElement(Type = typeof(float), ElementName = "rightAzimuth")] - public float RightAzimuth - { - get - { - return this._rightAzimuth; - } - - set - { - this._rightAzimuth = value; - } - } - - [XmlElement(Type = typeof(float), ElementName = "lowerElevation")] - public float LowerElevation - { - get - { - return this._lowerElevation; - } - - set - { - this._lowerElevation = value; - } - } - - [XmlElement(Type = typeof(float), ElementName = "upperElevation")] - public float UpperElevation - { - get - { - return this._upperElevation; - } - - set - { - this._upperElevation = value; - } - } - - [XmlElement(Type = typeof(float), ElementName = "residualPower")] - public float ResidualPower - { - get - { - return this._residualPower; - } - - set - { - this._residualPower = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._recordType); - dos.WriteUnsignedShort((ushort)this._recordLength); - dos.WriteUnsignedByte((byte)this._emitterNumber); - dos.WriteUnsignedByte((byte)this._beamNumber); - dos.WriteUnsignedByte((byte)this._stateIndicator); - dos.WriteFloat((float)this._leftAzimuth); - dos.WriteFloat((float)this._rightAzimuth); - dos.WriteFloat((float)this._lowerElevation); - dos.WriteFloat((float)this._upperElevation); - dos.WriteFloat((float)this._residualPower); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._recordType = dis.ReadUnsignedInt(); - this._recordLength = dis.ReadUnsignedShort(); - this._emitterNumber = dis.ReadUnsignedByte(); - this._beamNumber = dis.ReadUnsignedByte(); - this._stateIndicator = dis.ReadUnsignedByte(); - this._leftAzimuth = dis.ReadFloat(); - this._rightAzimuth = dis.ReadFloat(); - this._lowerElevation = dis.ReadFloat(); - this._upperElevation = dis.ReadFloat(); - this._residualPower = dis.ReadFloat(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._recordType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._recordLength.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._emitterNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._beamNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._stateIndicator.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._leftAzimuth.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._rightAzimuth.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._lowerElevation.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._upperElevation.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._residualPower.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as BlankingSector; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(BlankingSector obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._recordType != obj._recordType) - { - ivarsEqual = false; - } - - if (this._recordLength != obj._recordLength) - { - ivarsEqual = false; - } - - if (this._emitterNumber != obj._emitterNumber) - { - ivarsEqual = false; - } - - if (this._beamNumber != obj._beamNumber) - { - ivarsEqual = false; - } - - if (this._stateIndicator != obj._stateIndicator) - { - ivarsEqual = false; - } - - if (this._leftAzimuth != obj._leftAzimuth) - { - ivarsEqual = false; - } - - if (this._rightAzimuth != obj._rightAzimuth) - { - ivarsEqual = false; - } - - if (this._lowerElevation != obj._lowerElevation) - { - ivarsEqual = false; - } - - if (this._upperElevation != obj._upperElevation) - { - ivarsEqual = false; - } - - if (this._residualPower != obj._residualPower) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._recordType.GetHashCode(); - result = GenerateHash(result) ^ this._recordLength.GetHashCode(); - result = GenerateHash(result) ^ this._emitterNumber.GetHashCode(); - result = GenerateHash(result) ^ this._beamNumber.GetHashCode(); - result = GenerateHash(result) ^ this._stateIndicator.GetHashCode(); - result = GenerateHash(result) ^ this._leftAzimuth.GetHashCode(); - result = GenerateHash(result) ^ this._rightAzimuth.GetHashCode(); - result = GenerateHash(result) ^ this._lowerElevation.GetHashCode(); - result = GenerateHash(result) ^ this._upperElevation.GetHashCode(); - result = GenerateHash(result) ^ this._residualPower.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/ChangeOptions.cs b/Libs/CSharpDis7/ChangeOptions.cs deleted file mode 100644 index 92faa76..0000000 --- a/Libs/CSharpDis7/ChangeOptions.cs +++ /dev/null @@ -1,245 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// This is wrong and breaks serialization. See section 6.2.15 aka B.2.41 - /// - [Serializable] - [XmlRoot] - public partial class ChangeOptions - { - /// - /// Initializes a new instance of the class. - /// - public ChangeOptions() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ChangeOptions left, ChangeOptions right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ChangeOptions left, ChangeOptions right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - return marshalSize; - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ChangeOptions; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ChangeOptions obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - - return result; - } - } -} diff --git a/Libs/CSharpDis7/ClockTime.cs b/Libs/CSharpDis7/ClockTime.cs deleted file mode 100644 index a7348fd..0000000 --- a/Libs/CSharpDis7/ClockTime.cs +++ /dev/null @@ -1,309 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Time measurements that exceed one hour are represented by this record. The first field is the hours since the unix epoch (Jan 1 1970, used by most Unix systems and java) and the second field the timestamp units since the top of the hour. Section 6.2.16 - /// - [Serializable] - [XmlRoot] - public partial class ClockTime - { - /// - /// Hours in UTC - /// - private uint _hour; - - /// - /// Time past the hour - /// - private uint _timePastHour; - - /// - /// Initializes a new instance of the class. - /// - public ClockTime() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ClockTime left, ClockTime right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ClockTime left, ClockTime right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._hour - marshalSize += 4; // this._timePastHour - return marshalSize; - } - - /// - /// Gets or sets the Hours in UTC - /// - [XmlElement(Type = typeof(uint), ElementName = "hour")] - public uint Hour - { - get - { - return this._hour; - } - - set - { - this._hour = value; - } - } - - /// - /// Gets or sets the Time past the hour - /// - [XmlElement(Type = typeof(uint), ElementName = "timePastHour")] - public uint TimePastHour - { - get - { - return this._timePastHour; - } - - set - { - this._timePastHour = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._hour); - dos.WriteUnsignedInt((uint)this._timePastHour); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._hour = dis.ReadUnsignedInt(); - this._timePastHour = dis.ReadUnsignedInt(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._hour.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._timePastHour.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ClockTime; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ClockTime obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._hour != obj._hour) - { - ivarsEqual = false; - } - - if (this._timePastHour != obj._timePastHour) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._hour.GetHashCode(); - result = GenerateHash(result) ^ this._timePastHour.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/CollisionElasticPdu.cs b/Libs/CSharpDis7/CollisionElasticPdu.cs deleted file mode 100644 index 892252d..0000000 --- a/Libs/CSharpDis7/CollisionElasticPdu.cs +++ /dev/null @@ -1,745 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Information about elastic collisions in a DIS exercise shall be communicated using a Collision-Elastic PDU. Section 7.2.4. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(EventIdentifier))] - [XmlInclude(typeof(Vector3Float))] - public partial class CollisionElasticPdu : EntityInformationFamilyPdu, IEquatable - { - /// - /// This field shall identify the entity that is issuing the PDU and shall be represented by an Entity Identifier record (see 6.2.28) - /// - private EntityID _issuingEntityID = new EntityID(); - - /// - /// This field shall identify the entity that has collided with the issuing entity. This field shall be a valid identifier of an entity or server capable of responding to the receipt of this Collision-Elastic PDU. This field shall be represented by an Entity Identifier record (see 6.2.28). - /// - private EntityID _collidingEntityID = new EntityID(); - - /// - /// This field shall contain an identification generated by the issuing simulation application to associate related collision events. This field shall be represented by an Event Identifier record (see 6.2.34). - /// - private EventIdentifier _collisionEventID = new EventIdentifier(); - - /// - /// some padding - /// - private short _pad; - - /// - /// This field shall contain the velocity at the time the collision is detected at the point the collision is detected. The velocity shall be represented in world coordinates. This field shall be represented by the Linear Velocity Vector record [see 6.2.95 item c)] - /// - private Vector3Float _contactVelocity = new Vector3Float(); - - /// - /// This field shall contain the mass of the issuing entity and shall be represented by a 32-bit floating point number representing kilograms - /// - private float _mass; - - /// - /// This field shall specify the location of the collision with respect to the entity with which the issuing entity collided. This field shall be represented by an Entity Coordinate Vector record [see 6.2.95 item a)]. - /// - private Vector3Float _locationOfImpact = new Vector3Float(); - - /// - /// These six records represent the six independent components of a positive semi-definite matrix formed by pre-multiplying and post-multiplying the tensor of inertia, by the anti-symmetric matrix generated by the moment arm, and shall be represented by 32-bit floating point numbers (see 5.3.4.4) - /// - private float _collisionIntermediateResultXX; - - /// - /// tensor values - /// - private float _collisionIntermediateResultXY; - - /// - /// tensor values - /// - private float _collisionIntermediateResultXZ; - - /// - /// tensor values - /// - private float _collisionIntermediateResultYY; - - /// - /// tensor values - /// - private float _collisionIntermediateResultYZ; - - /// - /// tensor values - /// - private float _collisionIntermediateResultZZ; - - /// - /// This record shall represent the normal vector to the surface at the point of collision detection. The surface normal shall be represented in world coordinates. This field shall be represented by an Entity Coordinate Vector record [see 6.2.95 item a)]. - /// - private Vector3Float _unitSurfaceNormal = new Vector3Float(); - - /// - /// This field shall represent the degree to which energy is conserved in a collision and shall be represented by a 32-bit floating point number. In addition, it represents a free parameter by which simulation application developers may “tune” their collision interactions. - /// - private float _coefficientOfRestitution; - - /// - /// Initializes a new instance of the class. - /// - public CollisionElasticPdu() - { - PduType = (byte)66; - ProtocolFamily = (byte)1; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(CollisionElasticPdu left, CollisionElasticPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(CollisionElasticPdu left, CollisionElasticPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._issuingEntityID.GetMarshalledSize(); // this._issuingEntityID - marshalSize += this._collidingEntityID.GetMarshalledSize(); // this._collidingEntityID - marshalSize += this._collisionEventID.GetMarshalledSize(); // this._collisionEventID - marshalSize += 2; // this._pad - marshalSize += this._contactVelocity.GetMarshalledSize(); // this._contactVelocity - marshalSize += 4; // this._mass - marshalSize += this._locationOfImpact.GetMarshalledSize(); // this._locationOfImpact - marshalSize += 4; // this._collisionIntermediateResultXX - marshalSize += 4; // this._collisionIntermediateResultXY - marshalSize += 4; // this._collisionIntermediateResultXZ - marshalSize += 4; // this._collisionIntermediateResultYY - marshalSize += 4; // this._collisionIntermediateResultYZ - marshalSize += 4; // this._collisionIntermediateResultZZ - marshalSize += this._unitSurfaceNormal.GetMarshalledSize(); // this._unitSurfaceNormal - marshalSize += 4; // this._coefficientOfRestitution - return marshalSize; - } - - /// - /// Gets or sets the This field shall identify the entity that is issuing the PDU and shall be represented by an Entity Identifier record (see 6.2.28) - /// - [XmlElement(Type = typeof(EntityID), ElementName = "issuingEntityID")] - public EntityID IssuingEntityID - { - get - { - return this._issuingEntityID; - } - - set - { - this._issuingEntityID = value; - } - } - - /// - /// Gets or sets the This field shall identify the entity that has collided with the issuing entity. This field shall be a valid identifier of an entity or server capable of responding to the receipt of this Collision-Elastic PDU. This field shall be represented by an Entity Identifier record (see 6.2.28). - /// - [XmlElement(Type = typeof(EntityID), ElementName = "collidingEntityID")] - public EntityID CollidingEntityID - { - get - { - return this._collidingEntityID; - } - - set - { - this._collidingEntityID = value; - } - } - - /// - /// Gets or sets the This field shall contain an identification generated by the issuing simulation application to associate related collision events. This field shall be represented by an Event Identifier record (see 6.2.34). - /// - [XmlElement(Type = typeof(EventIdentifier), ElementName = "collisionEventID")] - public EventIdentifier CollisionEventID - { - get - { - return this._collisionEventID; - } - - set - { - this._collisionEventID = value; - } - } - - /// - /// Gets or sets the some padding - /// - [XmlElement(Type = typeof(short), ElementName = "pad")] - public short Pad - { - get - { - return this._pad; - } - - set - { - this._pad = value; - } - } - - /// - /// Gets or sets the This field shall contain the velocity at the time the collision is detected at the point the collision is detected. The velocity shall be represented in world coordinates. This field shall be represented by the Linear Velocity Vector record [see 6.2.95 item c)] - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "contactVelocity")] - public Vector3Float ContactVelocity - { - get - { - return this._contactVelocity; - } - - set - { - this._contactVelocity = value; - } - } - - /// - /// Gets or sets the This field shall contain the mass of the issuing entity and shall be represented by a 32-bit floating point number representing kilograms - /// - [XmlElement(Type = typeof(float), ElementName = "mass")] - public float Mass - { - get - { - return this._mass; - } - - set - { - this._mass = value; - } - } - - /// - /// Gets or sets the This field shall specify the location of the collision with respect to the entity with which the issuing entity collided. This field shall be represented by an Entity Coordinate Vector record [see 6.2.95 item a)]. - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "locationOfImpact")] - public Vector3Float LocationOfImpact - { - get - { - return this._locationOfImpact; - } - - set - { - this._locationOfImpact = value; - } - } - - /// - /// Gets or sets the These six records represent the six independent components of a positive semi-definite matrix formed by pre-multiplying and post-multiplying the tensor of inertia, by the anti-symmetric matrix generated by the moment arm, and shall be represented by 32-bit floating point numbers (see 5.3.4.4) - /// - [XmlElement(Type = typeof(float), ElementName = "collisionIntermediateResultXX")] - public float CollisionIntermediateResultXX - { - get - { - return this._collisionIntermediateResultXX; - } - - set - { - this._collisionIntermediateResultXX = value; - } - } - - /// - /// Gets or sets the tensor values - /// - [XmlElement(Type = typeof(float), ElementName = "collisionIntermediateResultXY")] - public float CollisionIntermediateResultXY - { - get - { - return this._collisionIntermediateResultXY; - } - - set - { - this._collisionIntermediateResultXY = value; - } - } - - /// - /// Gets or sets the tensor values - /// - [XmlElement(Type = typeof(float), ElementName = "collisionIntermediateResultXZ")] - public float CollisionIntermediateResultXZ - { - get - { - return this._collisionIntermediateResultXZ; - } - - set - { - this._collisionIntermediateResultXZ = value; - } - } - - /// - /// Gets or sets the tensor values - /// - [XmlElement(Type = typeof(float), ElementName = "collisionIntermediateResultYY")] - public float CollisionIntermediateResultYY - { - get - { - return this._collisionIntermediateResultYY; - } - - set - { - this._collisionIntermediateResultYY = value; - } - } - - /// - /// Gets or sets the tensor values - /// - [XmlElement(Type = typeof(float), ElementName = "collisionIntermediateResultYZ")] - public float CollisionIntermediateResultYZ - { - get - { - return this._collisionIntermediateResultYZ; - } - - set - { - this._collisionIntermediateResultYZ = value; - } - } - - /// - /// Gets or sets the tensor values - /// - [XmlElement(Type = typeof(float), ElementName = "collisionIntermediateResultZZ")] - public float CollisionIntermediateResultZZ - { - get - { - return this._collisionIntermediateResultZZ; - } - - set - { - this._collisionIntermediateResultZZ = value; - } - } - - /// - /// Gets or sets the This record shall represent the normal vector to the surface at the point of collision detection. The surface normal shall be represented in world coordinates. This field shall be represented by an Entity Coordinate Vector record [see 6.2.95 item a)]. - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "unitSurfaceNormal")] - public Vector3Float UnitSurfaceNormal - { - get - { - return this._unitSurfaceNormal; - } - - set - { - this._unitSurfaceNormal = value; - } - } - - /// - /// Gets or sets the This field shall represent the degree to which energy is conserved in a collision and shall be represented by a 32-bit floating point number. In addition, it represents a free parameter by which simulation application developers may “tune” their collision interactions. - /// - [XmlElement(Type = typeof(float), ElementName = "coefficientOfRestitution")] - public float CoefficientOfRestitution - { - get - { - return this._coefficientOfRestitution; - } - - set - { - this._coefficientOfRestitution = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._issuingEntityID.Marshal(dos); - this._collidingEntityID.Marshal(dos); - this._collisionEventID.Marshal(dos); - dos.WriteShort((short)this._pad); - this._contactVelocity.Marshal(dos); - dos.WriteFloat((float)this._mass); - this._locationOfImpact.Marshal(dos); - dos.WriteFloat((float)this._collisionIntermediateResultXX); - dos.WriteFloat((float)this._collisionIntermediateResultXY); - dos.WriteFloat((float)this._collisionIntermediateResultXZ); - dos.WriteFloat((float)this._collisionIntermediateResultYY); - dos.WriteFloat((float)this._collisionIntermediateResultYZ); - dos.WriteFloat((float)this._collisionIntermediateResultZZ); - this._unitSurfaceNormal.Marshal(dos); - dos.WriteFloat((float)this._coefficientOfRestitution); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._issuingEntityID.Unmarshal(dis); - this._collidingEntityID.Unmarshal(dis); - this._collisionEventID.Unmarshal(dis); - this._pad = dis.ReadShort(); - this._contactVelocity.Unmarshal(dis); - this._mass = dis.ReadFloat(); - this._locationOfImpact.Unmarshal(dis); - this._collisionIntermediateResultXX = dis.ReadFloat(); - this._collisionIntermediateResultXY = dis.ReadFloat(); - this._collisionIntermediateResultXZ = dis.ReadFloat(); - this._collisionIntermediateResultYY = dis.ReadFloat(); - this._collisionIntermediateResultYZ = dis.ReadFloat(); - this._collisionIntermediateResultZZ = dis.ReadFloat(); - this._unitSurfaceNormal.Unmarshal(dis); - this._coefficientOfRestitution = dis.ReadFloat(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._issuingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._collidingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._collisionEventID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._pad.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._contactVelocity.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._mass.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._locationOfImpact.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._collisionIntermediateResultXX.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._collisionIntermediateResultXY.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._collisionIntermediateResultXZ.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._collisionIntermediateResultYY.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._collisionIntermediateResultYZ.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._collisionIntermediateResultZZ.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._unitSurfaceNormal.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._coefficientOfRestitution.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as CollisionElasticPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(CollisionElasticPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._issuingEntityID.Equals(obj._issuingEntityID)) - { - ivarsEqual = false; - } - - if (!this._collidingEntityID.Equals(obj._collidingEntityID)) - { - ivarsEqual = false; - } - - if (!this._collisionEventID.Equals(obj._collisionEventID)) - { - ivarsEqual = false; - } - - if (this._pad != obj._pad) - { - ivarsEqual = false; - } - - if (!this._contactVelocity.Equals(obj._contactVelocity)) - { - ivarsEqual = false; - } - - if (this._mass != obj._mass) - { - ivarsEqual = false; - } - - if (!this._locationOfImpact.Equals(obj._locationOfImpact)) - { - ivarsEqual = false; - } - - if (this._collisionIntermediateResultXX != obj._collisionIntermediateResultXX) - { - ivarsEqual = false; - } - - if (this._collisionIntermediateResultXY != obj._collisionIntermediateResultXY) - { - ivarsEqual = false; - } - - if (this._collisionIntermediateResultXZ != obj._collisionIntermediateResultXZ) - { - ivarsEqual = false; - } - - if (this._collisionIntermediateResultYY != obj._collisionIntermediateResultYY) - { - ivarsEqual = false; - } - - if (this._collisionIntermediateResultYZ != obj._collisionIntermediateResultYZ) - { - ivarsEqual = false; - } - - if (this._collisionIntermediateResultZZ != obj._collisionIntermediateResultZZ) - { - ivarsEqual = false; - } - - if (!this._unitSurfaceNormal.Equals(obj._unitSurfaceNormal)) - { - ivarsEqual = false; - } - - if (this._coefficientOfRestitution != obj._coefficientOfRestitution) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._issuingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._collidingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._collisionEventID.GetHashCode(); - result = GenerateHash(result) ^ this._pad.GetHashCode(); - result = GenerateHash(result) ^ this._contactVelocity.GetHashCode(); - result = GenerateHash(result) ^ this._mass.GetHashCode(); - result = GenerateHash(result) ^ this._locationOfImpact.GetHashCode(); - result = GenerateHash(result) ^ this._collisionIntermediateResultXX.GetHashCode(); - result = GenerateHash(result) ^ this._collisionIntermediateResultXY.GetHashCode(); - result = GenerateHash(result) ^ this._collisionIntermediateResultXZ.GetHashCode(); - result = GenerateHash(result) ^ this._collisionIntermediateResultYY.GetHashCode(); - result = GenerateHash(result) ^ this._collisionIntermediateResultYZ.GetHashCode(); - result = GenerateHash(result) ^ this._collisionIntermediateResultZZ.GetHashCode(); - result = GenerateHash(result) ^ this._unitSurfaceNormal.GetHashCode(); - result = GenerateHash(result) ^ this._coefficientOfRestitution.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/CollisionPdu.cs b/Libs/CSharpDis7/CollisionPdu.cs deleted file mode 100644 index c4d4e5a..0000000 --- a/Libs/CSharpDis7/CollisionPdu.cs +++ /dev/null @@ -1,519 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Section 7.2.3 Collisions between entities shall be communicated by issuing a Collision PDU. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(EventIdentifier))] - [XmlInclude(typeof(Vector3Float))] - public partial class CollisionPdu : EntityInformationFamilyPdu, IEquatable - { - /// - /// This field shall identify the entity that is issuing the PDU, and shall be represented by an Entity Identifier record (see 6.2.28). - /// - private EntityID _issuingEntityID = new EntityID(); - - /// - /// This field shall identify the entity that has collided with the issuing entity (see 5.3.3.4). This field shall be represented by an Entity Identifier record (see 6.2.28). - /// - private EntityID _collidingEntityID = new EntityID(); - - /// - /// This field shall contain an identification generated by the issuing simulation application to associate related collision events. This field shall be represented by an Event Identifier record (see 6.2.34). - /// - private EventIdentifier _eventID = new EventIdentifier(); - - /// - /// This field shall identify the type of collision. The Collision Type field shall be represented by an 8-bit record of enumerations - /// - private byte _collisionType; - - /// - /// some padding - /// - private byte _pad; - - /// - /// This field shall contain the velocity (at the time the collision is detected) of the issuing entity. The velocity shall be represented in world coordinates. This field shall be represented by the Linear Velocity Vector record [see 6.2.95 item c)]. - /// - private Vector3Float _velocity = new Vector3Float(); - - /// - /// This field shall contain the mass of the issuing entity, and shall be represented by a 32-bit floating point number representing kilograms. - /// - private float _mass; - - /// - /// This field shall specify the location of the collision with respect to the entity with which the issuing entity collided. The Location field shall be represented by an Entity Coordinate Vector record [see 6.2.95 item a)]. - /// - private Vector3Float _location = new Vector3Float(); - - /// - /// Initializes a new instance of the class. - /// - public CollisionPdu() - { - PduType = (byte)4; - ProtocolFamily = (byte)1; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(CollisionPdu left, CollisionPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(CollisionPdu left, CollisionPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._issuingEntityID.GetMarshalledSize(); // this._issuingEntityID - marshalSize += this._collidingEntityID.GetMarshalledSize(); // this._collidingEntityID - marshalSize += this._eventID.GetMarshalledSize(); // this._eventID - marshalSize += 1; // this._collisionType - marshalSize += 1; // this._pad - marshalSize += this._velocity.GetMarshalledSize(); // this._velocity - marshalSize += 4; // this._mass - marshalSize += this._location.GetMarshalledSize(); // this._location - return marshalSize; - } - - /// - /// Gets or sets the This field shall identify the entity that is issuing the PDU, and shall be represented by an Entity Identifier record (see 6.2.28). - /// - [XmlElement(Type = typeof(EntityID), ElementName = "issuingEntityID")] - public EntityID IssuingEntityID - { - get - { - return this._issuingEntityID; - } - - set - { - this._issuingEntityID = value; - } - } - - /// - /// Gets or sets the This field shall identify the entity that has collided with the issuing entity (see 5.3.3.4). This field shall be represented by an Entity Identifier record (see 6.2.28). - /// - [XmlElement(Type = typeof(EntityID), ElementName = "collidingEntityID")] - public EntityID CollidingEntityID - { - get - { - return this._collidingEntityID; - } - - set - { - this._collidingEntityID = value; - } - } - - /// - /// Gets or sets the This field shall contain an identification generated by the issuing simulation application to associate related collision events. This field shall be represented by an Event Identifier record (see 6.2.34). - /// - [XmlElement(Type = typeof(EventIdentifier), ElementName = "eventID")] - public EventIdentifier EventID - { - get - { - return this._eventID; - } - - set - { - this._eventID = value; - } - } - - /// - /// Gets or sets the This field shall identify the type of collision. The Collision Type field shall be represented by an 8-bit record of enumerations - /// - [XmlElement(Type = typeof(byte), ElementName = "collisionType")] - public byte CollisionType - { - get - { - return this._collisionType; - } - - set - { - this._collisionType = value; - } - } - - /// - /// Gets or sets the some padding - /// - [XmlElement(Type = typeof(byte), ElementName = "pad")] - public byte Pad - { - get - { - return this._pad; - } - - set - { - this._pad = value; - } - } - - /// - /// Gets or sets the This field shall contain the velocity (at the time the collision is detected) of the issuing entity. The velocity shall be represented in world coordinates. This field shall be represented by the Linear Velocity Vector record [see 6.2.95 item c)]. - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "velocity")] - public Vector3Float Velocity - { - get - { - return this._velocity; - } - - set - { - this._velocity = value; - } - } - - /// - /// Gets or sets the This field shall contain the mass of the issuing entity, and shall be represented by a 32-bit floating point number representing kilograms. - /// - [XmlElement(Type = typeof(float), ElementName = "mass")] - public float Mass - { - get - { - return this._mass; - } - - set - { - this._mass = value; - } - } - - /// - /// Gets or sets the This field shall specify the location of the collision with respect to the entity with which the issuing entity collided. The Location field shall be represented by an Entity Coordinate Vector record [see 6.2.95 item a)]. - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "location")] - public Vector3Float Location - { - get - { - return this._location; - } - - set - { - this._location = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._issuingEntityID.Marshal(dos); - this._collidingEntityID.Marshal(dos); - this._eventID.Marshal(dos); - dos.WriteUnsignedByte((byte)this._collisionType); - dos.WriteByte((byte)this._pad); - this._velocity.Marshal(dos); - dos.WriteFloat((float)this._mass); - this._location.Marshal(dos); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._issuingEntityID.Unmarshal(dis); - this._collidingEntityID.Unmarshal(dis); - this._eventID.Unmarshal(dis); - this._collisionType = dis.ReadUnsignedByte(); - this._pad = dis.ReadByte(); - this._velocity.Unmarshal(dis); - this._mass = dis.ReadFloat(); - this._location.Unmarshal(dis); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._issuingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._collidingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._eventID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._collisionType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._velocity.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._mass.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._location.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as CollisionPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(CollisionPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._issuingEntityID.Equals(obj._issuingEntityID)) - { - ivarsEqual = false; - } - - if (!this._collidingEntityID.Equals(obj._collidingEntityID)) - { - ivarsEqual = false; - } - - if (!this._eventID.Equals(obj._eventID)) - { - ivarsEqual = false; - } - - if (this._collisionType != obj._collisionType) - { - ivarsEqual = false; - } - - if (this._pad != obj._pad) - { - ivarsEqual = false; - } - - if (!this._velocity.Equals(obj._velocity)) - { - ivarsEqual = false; - } - - if (this._mass != obj._mass) - { - ivarsEqual = false; - } - - if (!this._location.Equals(obj._location)) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._issuingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._collidingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._eventID.GetHashCode(); - result = GenerateHash(result) ^ this._collisionType.GetHashCode(); - result = GenerateHash(result) ^ this._pad.GetHashCode(); - result = GenerateHash(result) ^ this._velocity.GetHashCode(); - result = GenerateHash(result) ^ this._mass.GetHashCode(); - result = GenerateHash(result) ^ this._location.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/CommentPdu.cs b/Libs/CSharpDis7/CommentPdu.cs deleted file mode 100644 index 1e6645a..0000000 --- a/Libs/CSharpDis7/CommentPdu.cs +++ /dev/null @@ -1,455 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Arbitrary messages can be entered into the data stream via use of this PDU. Section 7.5.13 COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(FixedDatum))] - [XmlInclude(typeof(VariableDatum))] - public partial class CommentPdu : SimulationManagementFamilyPdu, IEquatable - { - /// - /// Number of fixed datum records - /// - private uint _numberOfFixedDatumRecords; - - /// - /// Number of variable datum records - /// - private uint _numberOfVariableDatumRecords; - - /// - /// variable length list of fixed datums - /// - private List _fixedDatums = new List(); - - /// - /// variable length list of variable length datums - /// - private List _variableDatums = new List(); - - /// - /// Initializes a new instance of the class. - /// - public CommentPdu() - { - PduType = (byte)22; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(CommentPdu left, CommentPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(CommentPdu left, CommentPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 4; // this._numberOfFixedDatumRecords - marshalSize += 4; // this._numberOfVariableDatumRecords - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - FixedDatum listElement = (FixedDatum)this._fixedDatums[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - VariableDatum listElement = (VariableDatum)this._variableDatums[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] - public uint NumberOfFixedDatumRecords - { - get - { - return this._numberOfFixedDatumRecords; - } - - set - { - this._numberOfFixedDatumRecords = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] - public uint NumberOfVariableDatumRecords - { - get - { - return this._numberOfVariableDatumRecords; - } - - set - { - this._numberOfVariableDatumRecords = value; - } - } - - /// - /// Gets or sets the variable length list of fixed datums - /// - [XmlElement(ElementName = "fixedDatumsList", Type = typeof(List))] - public List FixedDatums - { - get - { - return this._fixedDatums; - } - } - - /// - /// Gets or sets the variable length list of variable length datums - /// - [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] - public List VariableDatums - { - get - { - return this._variableDatums; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._fixedDatums.Count); - dos.WriteUnsignedInt((uint)this._variableDatums.Count); - - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; - aFixedDatum.Marshal(dos); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; - aVariableDatum.Marshal(dos); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); - this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); - for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) - { - FixedDatum anX = new FixedDatum(); - anX.Unmarshal(dis); - this._fixedDatums.Add(anX); - }; - - for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) - { - VariableDatum anX = new VariableDatum(); - anX.Unmarshal(dis); - this._variableDatums.Add(anX); - }; - - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._fixedDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - sb.AppendLine(""); - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; - aFixedDatum.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - sb.AppendLine(""); - VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; - aVariableDatum.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as CommentPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(CommentPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) - { - ivarsEqual = false; - } - - if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) - { - ivarsEqual = false; - } - - if (this._fixedDatums.Count != obj._fixedDatums.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - if (!this._fixedDatums[idx].Equals(obj._fixedDatums[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._variableDatums.Count != obj._variableDatums.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); - - if (this._fixedDatums.Count > 0) - { - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - result = GenerateHash(result) ^ this._fixedDatums[idx].GetHashCode(); - } - } - - if (this._variableDatums.Count > 0) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); - } - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/CommentReliablePdu.cs b/Libs/CSharpDis7/CommentReliablePdu.cs deleted file mode 100644 index 51b5b58..0000000 --- a/Libs/CSharpDis7/CommentReliablePdu.cs +++ /dev/null @@ -1,455 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Section 5.3.12.12: Arbitrary messages. Only reliable this time. Neds manual intervention to fix padding in variable datums. UNFINISHED - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(FixedDatum))] - [XmlInclude(typeof(VariableDatum))] - public partial class CommentReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable - { - /// - /// Fixed datum record count - /// - private uint _numberOfFixedDatumRecords; - - /// - /// variable datum record count - /// - private uint _numberOfVariableDatumRecords; - - /// - /// Fixed datum records - /// - private List _fixedDatumRecords = new List(); - - /// - /// Variable datum records - /// - private List _variableDatumRecords = new List(); - - /// - /// Initializes a new instance of the class. - /// - public CommentReliablePdu() - { - PduType = (byte)62; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(CommentReliablePdu left, CommentReliablePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(CommentReliablePdu left, CommentReliablePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 4; // this._numberOfFixedDatumRecords - marshalSize += 4; // this._numberOfVariableDatumRecords - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - FixedDatum listElement = (FixedDatum)this._fixedDatumRecords[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - VariableDatum listElement = (VariableDatum)this._variableDatumRecords[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] - public uint NumberOfFixedDatumRecords - { - get - { - return this._numberOfFixedDatumRecords; - } - - set - { - this._numberOfFixedDatumRecords = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] - public uint NumberOfVariableDatumRecords - { - get - { - return this._numberOfVariableDatumRecords; - } - - set - { - this._numberOfVariableDatumRecords = value; - } - } - - /// - /// Gets or sets the Fixed datum records - /// - [XmlElement(ElementName = "fixedDatumRecordsList", Type = typeof(List))] - public List FixedDatumRecords - { - get - { - return this._fixedDatumRecords; - } - } - - /// - /// Gets or sets the Variable datum records - /// - [XmlElement(ElementName = "variableDatumRecordsList", Type = typeof(List))] - public List VariableDatumRecords - { - get - { - return this._variableDatumRecords; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._fixedDatumRecords.Count); - dos.WriteUnsignedInt((uint)this._variableDatumRecords.Count); - - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; - aFixedDatum.Marshal(dos); - } - - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; - aVariableDatum.Marshal(dos); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); - this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); - for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) - { - FixedDatum anX = new FixedDatum(); - anX.Unmarshal(dis); - this._fixedDatumRecords.Add(anX); - }; - - for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) - { - VariableDatum anX = new VariableDatum(); - anX.Unmarshal(dis); - this._variableDatumRecords.Add(anX); - }; - - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._fixedDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - sb.AppendLine(""); - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; - aFixedDatum.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - sb.AppendLine(""); - VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; - aVariableDatum.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as CommentReliablePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(CommentReliablePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) - { - ivarsEqual = false; - } - - if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) - { - ivarsEqual = false; - } - - if (this._fixedDatumRecords.Count != obj._fixedDatumRecords.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - if (!this._fixedDatumRecords[idx].Equals(obj._fixedDatumRecords[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._variableDatumRecords.Count != obj._variableDatumRecords.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - if (!this._variableDatumRecords[idx].Equals(obj._variableDatumRecords[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); - - if (this._fixedDatumRecords.Count > 0) - { - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - result = GenerateHash(result) ^ this._fixedDatumRecords[idx].GetHashCode(); - } - } - - if (this._variableDatumRecords.Count > 0) - { - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - result = GenerateHash(result) ^ this._variableDatumRecords[idx].GetHashCode(); - } - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/CommunicationsNodeID.cs b/Libs/CSharpDis7/CommunicationsNodeID.cs deleted file mode 100644 index 4d76215..0000000 --- a/Libs/CSharpDis7/CommunicationsNodeID.cs +++ /dev/null @@ -1,300 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Identity of a communications node. Section 6.2.49.4 - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - public partial class CommunicationsNodeID - { - private EntityID _entityID = new EntityID(); - - private ushort _elementID; - - /// - /// Initializes a new instance of the class. - /// - public CommunicationsNodeID() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(CommunicationsNodeID left, CommunicationsNodeID right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(CommunicationsNodeID left, CommunicationsNodeID right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += this._entityID.GetMarshalledSize(); // this._entityID - marshalSize += 2; // this._elementID - return marshalSize; - } - - [XmlElement(Type = typeof(EntityID), ElementName = "entityID")] - public EntityID EntityID - { - get - { - return this._entityID; - } - - set - { - this._entityID = value; - } - } - - [XmlElement(Type = typeof(ushort), ElementName = "elementID")] - public ushort ElementID - { - get - { - return this._elementID; - } - - set - { - this._elementID = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - this._entityID.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._elementID); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._entityID.Unmarshal(dis); - this._elementID = dis.ReadUnsignedShort(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine(""); - this._entityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._elementID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as CommunicationsNodeID; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(CommunicationsNodeID obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (!this._entityID.Equals(obj._entityID)) - { - ivarsEqual = false; - } - - if (this._elementID != obj._elementID) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._entityID.GetHashCode(); - result = GenerateHash(result) ^ this._elementID.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/CreateEntityPdu.cs b/Libs/CSharpDis7/CreateEntityPdu.cs deleted file mode 100644 index f8a1a5d..0000000 --- a/Libs/CSharpDis7/CreateEntityPdu.cs +++ /dev/null @@ -1,350 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Section 7.5.2. Create a new entity. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - public partial class CreateEntityPdu : SimulationManagementFamilyPdu, IEquatable - { - /// - /// Identifier for the request - /// - private EntityID _originatingID = new EntityID(); - - /// - /// Identifier for the request - /// - private EntityID _receivingID = new EntityID(); - - /// - /// Identifier for the request. See 6.2.75 - /// - private uint _requestID; - - /// - /// Initializes a new instance of the class. - /// - public CreateEntityPdu() - { - PduType = (byte)11; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(CreateEntityPdu left, CreateEntityPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(CreateEntityPdu left, CreateEntityPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._originatingID.GetMarshalledSize(); // this._originatingID - marshalSize += this._receivingID.GetMarshalledSize(); // this._receivingID - marshalSize += 4; // this._requestID - return marshalSize; - } - - /// - /// Gets or sets the Identifier for the request - /// - [XmlElement(Type = typeof(EntityID), ElementName = "originatingID")] - public EntityID OriginatingID - { - get - { - return this._originatingID; - } - - set - { - this._originatingID = value; - } - } - - /// - /// Gets or sets the Identifier for the request - /// - [XmlElement(Type = typeof(EntityID), ElementName = "receivingID")] - public EntityID ReceivingID - { - get - { - return this._receivingID; - } - - set - { - this._receivingID = value; - } - } - - /// - /// Gets or sets the Identifier for the request. See 6.2.75 - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._originatingID.Marshal(dos); - this._receivingID.Marshal(dos); - dos.WriteUnsignedInt((uint)this._requestID); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._originatingID.Unmarshal(dis); - this._receivingID.Unmarshal(dis); - this._requestID = dis.ReadUnsignedInt(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._originatingID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._receivingID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as CreateEntityPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(CreateEntityPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._originatingID.Equals(obj._originatingID)) - { - ivarsEqual = false; - } - - if (!this._receivingID.Equals(obj._receivingID)) - { - ivarsEqual = false; - } - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._originatingID.GetHashCode(); - result = GenerateHash(result) ^ this._receivingID.GetHashCode(); - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/CreateEntityReliablePdu.cs b/Libs/CSharpDis7/CreateEntityReliablePdu.cs deleted file mode 100644 index b5ab76f..0000000 --- a/Libs/CSharpDis7/CreateEntityReliablePdu.cs +++ /dev/null @@ -1,377 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Section 5.3.12.1: creation of an entity , reliable. COMPLETE - /// - [Serializable] - [XmlRoot] - public partial class CreateEntityReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable - { - /// - /// level of reliability service used for this transaction - /// - private byte _requiredReliabilityService; - - /// - /// padding - /// - private ushort _pad1; - - /// - /// padding - /// - private byte _pad2; - - /// - /// Request ID - /// - private uint _requestID; - - /// - /// Initializes a new instance of the class. - /// - public CreateEntityReliablePdu() - { - PduType = (byte)51; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(CreateEntityReliablePdu left, CreateEntityReliablePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(CreateEntityReliablePdu left, CreateEntityReliablePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 1; // this._requiredReliabilityService - marshalSize += 2; // this._pad1 - marshalSize += 1; // this._pad2 - marshalSize += 4; // this._requestID - return marshalSize; - } - - /// - /// Gets or sets the level of reliability service used for this transaction - /// - [XmlElement(Type = typeof(byte), ElementName = "requiredReliabilityService")] - public byte RequiredReliabilityService - { - get - { - return this._requiredReliabilityService; - } - - set - { - this._requiredReliabilityService = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(ushort), ElementName = "pad1")] - public ushort Pad1 - { - get - { - return this._pad1; - } - - set - { - this._pad1 = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "pad2")] - public byte Pad2 - { - get - { - return this._pad2; - } - - set - { - this._pad2 = value; - } - } - - /// - /// Gets or sets the Request ID - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._requiredReliabilityService); - dos.WriteUnsignedShort((ushort)this._pad1); - dos.WriteUnsignedByte((byte)this._pad2); - dos.WriteUnsignedInt((uint)this._requestID); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._requiredReliabilityService = dis.ReadUnsignedByte(); - this._pad1 = dis.ReadUnsignedShort(); - this._pad2 = dis.ReadUnsignedByte(); - this._requestID = dis.ReadUnsignedInt(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._requiredReliabilityService.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as CreateEntityReliablePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(CreateEntityReliablePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._requiredReliabilityService != obj._requiredReliabilityService) - { - ivarsEqual = false; - } - - if (this._pad1 != obj._pad1) - { - ivarsEqual = false; - } - - if (this._pad2 != obj._pad2) - { - ivarsEqual = false; - } - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._requiredReliabilityService.GetHashCode(); - result = GenerateHash(result) ^ this._pad1.GetHashCode(); - result = GenerateHash(result) ^ this._pad2.GetHashCode(); - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/DataPdu.cs b/Libs/CSharpDis7/DataPdu.cs deleted file mode 100644 index 5586918..0000000 --- a/Libs/CSharpDis7/DataPdu.cs +++ /dev/null @@ -1,519 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Information issued in response to a data query pdu or a set data pdu is communicated using a data pdu. Section 7.5.11 COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(FixedDatum))] - [XmlInclude(typeof(VariableDatum))] - public partial class DataPdu : SimulationManagementFamilyPdu, IEquatable - { - /// - /// ID of request - /// - private uint _requestID; - - /// - /// padding - /// - private uint _padding1; - - /// - /// Number of fixed datum records - /// - private uint _numberOfFixedDatumRecords; - - /// - /// Number of variable datum records - /// - private uint _numberOfVariableDatumRecords; - - /// - /// variable length list of fixed datums - /// - private List _fixedDatums = new List(); - - /// - /// variable length list of variable length datums - /// - private List _variableDatums = new List(); - - /// - /// Initializes a new instance of the class. - /// - public DataPdu() - { - PduType = (byte)20; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(DataPdu left, DataPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(DataPdu left, DataPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 4; // this._requestID - marshalSize += 4; // this._padding1 - marshalSize += 4; // this._numberOfFixedDatumRecords - marshalSize += 4; // this._numberOfVariableDatumRecords - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - FixedDatum listElement = (FixedDatum)this._fixedDatums[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - VariableDatum listElement = (VariableDatum)this._variableDatums[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the ID of request - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(uint), ElementName = "padding1")] - public uint Padding1 - { - get - { - return this._padding1; - } - - set - { - this._padding1 = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] - public uint NumberOfFixedDatumRecords - { - get - { - return this._numberOfFixedDatumRecords; - } - - set - { - this._numberOfFixedDatumRecords = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] - public uint NumberOfVariableDatumRecords - { - get - { - return this._numberOfVariableDatumRecords; - } - - set - { - this._numberOfVariableDatumRecords = value; - } - } - - /// - /// Gets or sets the variable length list of fixed datums - /// - [XmlElement(ElementName = "fixedDatumsList", Type = typeof(List))] - public List FixedDatums - { - get - { - return this._fixedDatums; - } - } - - /// - /// Gets or sets the variable length list of variable length datums - /// - [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] - public List VariableDatums - { - get - { - return this._variableDatums; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._requestID); - dos.WriteUnsignedInt((uint)this._padding1); - dos.WriteUnsignedInt((uint)this._fixedDatums.Count); - dos.WriteUnsignedInt((uint)this._variableDatums.Count); - - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; - aFixedDatum.Marshal(dos); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; - aVariableDatum.Marshal(dos); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._requestID = dis.ReadUnsignedInt(); - this._padding1 = dis.ReadUnsignedInt(); - this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); - this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); - for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) - { - FixedDatum anX = new FixedDatum(); - anX.Unmarshal(dis); - this._fixedDatums.Add(anX); - }; - - for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) - { - VariableDatum anX = new VariableDatum(); - anX.Unmarshal(dis); - this._variableDatums.Add(anX); - }; - - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fixedDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - sb.AppendLine(""); - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; - aFixedDatum.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - sb.AppendLine(""); - VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; - aVariableDatum.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as DataPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(DataPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - if (this._padding1 != obj._padding1) - { - ivarsEqual = false; - } - - if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) - { - ivarsEqual = false; - } - - if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) - { - ivarsEqual = false; - } - - if (this._fixedDatums.Count != obj._fixedDatums.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - if (!this._fixedDatums[idx].Equals(obj._fixedDatums[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._variableDatums.Count != obj._variableDatums.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - result = GenerateHash(result) ^ this._padding1.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); - - if (this._fixedDatums.Count > 0) - { - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - result = GenerateHash(result) ^ this._fixedDatums[idx].GetHashCode(); - } - } - - if (this._variableDatums.Count > 0) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); - } - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/DataQueryDatumSpecification.cs b/Libs/CSharpDis7/DataQueryDatumSpecification.cs deleted file mode 100644 index d2d4ef0..0000000 --- a/Libs/CSharpDis7/DataQueryDatumSpecification.cs +++ /dev/null @@ -1,451 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// List of fixed and variable datum records. Section 6.2.18 - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(UnsignedDISInteger))] - [XmlInclude(typeof(UnsignedDISInteger))] - public partial class DataQueryDatumSpecification - { - /// - /// Number of fixed datums - /// - private uint _numberOfFixedDatums; - - /// - /// Number of variable datums - /// - private uint _numberOfVariableDatums; - - /// - /// variable length list fixed datum IDs - /// - private List _fixedDatumIDList = new List(); - - /// - /// variable length list variable datum IDs - /// - private List _variableDatumIDList = new List(); - - /// - /// Initializes a new instance of the class. - /// - public DataQueryDatumSpecification() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(DataQueryDatumSpecification left, DataQueryDatumSpecification right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(DataQueryDatumSpecification left, DataQueryDatumSpecification right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._numberOfFixedDatums - marshalSize += 4; // this._numberOfVariableDatums - for (int idx = 0; idx < this._fixedDatumIDList.Count; idx++) - { - UnsignedDISInteger listElement = (UnsignedDISInteger)this._fixedDatumIDList[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._variableDatumIDList.Count; idx++) - { - UnsignedDISInteger listElement = (UnsignedDISInteger)this._variableDatumIDList[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfFixedDatums method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatums")] - public uint NumberOfFixedDatums - { - get - { - return this._numberOfFixedDatums; - } - - set - { - this._numberOfFixedDatums = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfVariableDatums method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatums")] - public uint NumberOfVariableDatums - { - get - { - return this._numberOfVariableDatums; - } - - set - { - this._numberOfVariableDatums = value; - } - } - - /// - /// Gets or sets the variable length list fixed datum IDs - /// - [XmlElement(ElementName = "fixedDatumIDListList", Type = typeof(List))] - public List FixedDatumIDList - { - get - { - return this._fixedDatumIDList; - } - } - - /// - /// Gets or sets the variable length list variable datum IDs - /// - [XmlElement(ElementName = "variableDatumIDListList", Type = typeof(List))] - public List VariableDatumIDList - { - get - { - return this._variableDatumIDList; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._fixedDatumIDList.Count); - dos.WriteUnsignedInt((uint)this._variableDatumIDList.Count); - - for (int idx = 0; idx < this._fixedDatumIDList.Count; idx++) - { - UnsignedDISInteger aUnsignedDISInteger = (UnsignedDISInteger)this._fixedDatumIDList[idx]; - aUnsignedDISInteger.Marshal(dos); - } - - for (int idx = 0; idx < this._variableDatumIDList.Count; idx++) - { - UnsignedDISInteger aUnsignedDISInteger = (UnsignedDISInteger)this._variableDatumIDList[idx]; - aUnsignedDISInteger.Marshal(dos); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._numberOfFixedDatums = dis.ReadUnsignedInt(); - this._numberOfVariableDatums = dis.ReadUnsignedInt(); - for (int idx = 0; idx < this.NumberOfFixedDatums; idx++) - { - UnsignedDISInteger anX = new UnsignedDISInteger(); - anX.Unmarshal(dis); - this._fixedDatumIDList.Add(anX); - }; - - for (int idx = 0; idx < this.NumberOfVariableDatums; idx++) - { - UnsignedDISInteger anX = new UnsignedDISInteger(); - anX.Unmarshal(dis); - this._variableDatumIDList.Add(anX); - }; - - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._fixedDatumIDList.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableDatumIDList.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._fixedDatumIDList.Count; idx++) - { - sb.AppendLine(""); - UnsignedDISInteger aUnsignedDISInteger = (UnsignedDISInteger)this._fixedDatumIDList[idx]; - aUnsignedDISInteger.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._variableDatumIDList.Count; idx++) - { - sb.AppendLine(""); - UnsignedDISInteger aUnsignedDISInteger = (UnsignedDISInteger)this._variableDatumIDList[idx]; - aUnsignedDISInteger.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as DataQueryDatumSpecification; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(DataQueryDatumSpecification obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._numberOfFixedDatums != obj._numberOfFixedDatums) - { - ivarsEqual = false; - } - - if (this._numberOfVariableDatums != obj._numberOfVariableDatums) - { - ivarsEqual = false; - } - - if (this._fixedDatumIDList.Count != obj._fixedDatumIDList.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._fixedDatumIDList.Count; idx++) - { - if (!this._fixedDatumIDList[idx].Equals(obj._fixedDatumIDList[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._variableDatumIDList.Count != obj._variableDatumIDList.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._variableDatumIDList.Count; idx++) - { - if (!this._variableDatumIDList[idx].Equals(obj._variableDatumIDList[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._numberOfFixedDatums.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfVariableDatums.GetHashCode(); - - if (this._fixedDatumIDList.Count > 0) - { - for (int idx = 0; idx < this._fixedDatumIDList.Count; idx++) - { - result = GenerateHash(result) ^ this._fixedDatumIDList[idx].GetHashCode(); - } - } - - if (this._variableDatumIDList.Count > 0) - { - for (int idx = 0; idx < this._variableDatumIDList.Count; idx++) - { - result = GenerateHash(result) ^ this._variableDatumIDList[idx].GetHashCode(); - } - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/DataQueryPdu.cs b/Libs/CSharpDis7/DataQueryPdu.cs deleted file mode 100644 index 619fb99..0000000 --- a/Libs/CSharpDis7/DataQueryPdu.cs +++ /dev/null @@ -1,519 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Section 7.5.9. Request for data from an entity. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(FixedDatum))] - [XmlInclude(typeof(VariableDatum))] - public partial class DataQueryPdu : SimulationManagementFamilyPdu, IEquatable - { - /// - /// ID of request - /// - private uint _requestID; - - /// - /// time issues between issues of Data PDUs. Zero means send once only. - /// - private uint _timeInterval; - - /// - /// Number of fixed datum records - /// - private uint _numberOfFixedDatumRecords; - - /// - /// Number of variable datum records - /// - private uint _numberOfVariableDatumRecords; - - /// - /// variable length list of fixed datums - /// - private List _fixedDatums = new List(); - - /// - /// variable length list of variable length datums - /// - private List _variableDatums = new List(); - - /// - /// Initializes a new instance of the class. - /// - public DataQueryPdu() - { - PduType = (byte)18; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(DataQueryPdu left, DataQueryPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(DataQueryPdu left, DataQueryPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 4; // this._requestID - marshalSize += 4; // this._timeInterval - marshalSize += 4; // this._numberOfFixedDatumRecords - marshalSize += 4; // this._numberOfVariableDatumRecords - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - FixedDatum listElement = (FixedDatum)this._fixedDatums[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - VariableDatum listElement = (VariableDatum)this._variableDatums[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the ID of request - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Gets or sets the time issues between issues of Data PDUs. Zero means send once only. - /// - [XmlElement(Type = typeof(uint), ElementName = "timeInterval")] - public uint TimeInterval - { - get - { - return this._timeInterval; - } - - set - { - this._timeInterval = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] - public uint NumberOfFixedDatumRecords - { - get - { - return this._numberOfFixedDatumRecords; - } - - set - { - this._numberOfFixedDatumRecords = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] - public uint NumberOfVariableDatumRecords - { - get - { - return this._numberOfVariableDatumRecords; - } - - set - { - this._numberOfVariableDatumRecords = value; - } - } - - /// - /// Gets or sets the variable length list of fixed datums - /// - [XmlElement(ElementName = "fixedDatumsList", Type = typeof(List))] - public List FixedDatums - { - get - { - return this._fixedDatums; - } - } - - /// - /// Gets or sets the variable length list of variable length datums - /// - [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] - public List VariableDatums - { - get - { - return this._variableDatums; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._requestID); - dos.WriteUnsignedInt((uint)this._timeInterval); - dos.WriteUnsignedInt((uint)this._fixedDatums.Count); - dos.WriteUnsignedInt((uint)this._variableDatums.Count); - - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; - aFixedDatum.Marshal(dos); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; - aVariableDatum.Marshal(dos); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._requestID = dis.ReadUnsignedInt(); - this._timeInterval = dis.ReadUnsignedInt(); - this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); - this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); - for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) - { - FixedDatum anX = new FixedDatum(); - anX.Unmarshal(dis); - this._fixedDatums.Add(anX); - }; - - for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) - { - VariableDatum anX = new VariableDatum(); - anX.Unmarshal(dis); - this._variableDatums.Add(anX); - }; - - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._timeInterval.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fixedDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - sb.AppendLine(""); - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; - aFixedDatum.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - sb.AppendLine(""); - VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; - aVariableDatum.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as DataQueryPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(DataQueryPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - if (this._timeInterval != obj._timeInterval) - { - ivarsEqual = false; - } - - if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) - { - ivarsEqual = false; - } - - if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) - { - ivarsEqual = false; - } - - if (this._fixedDatums.Count != obj._fixedDatums.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - if (!this._fixedDatums[idx].Equals(obj._fixedDatums[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._variableDatums.Count != obj._variableDatums.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - result = GenerateHash(result) ^ this._timeInterval.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); - - if (this._fixedDatums.Count > 0) - { - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - result = GenerateHash(result) ^ this._fixedDatums[idx].GetHashCode(); - } - } - - if (this._variableDatums.Count > 0) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); - } - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/DataQueryReliablePdu.cs b/Libs/CSharpDis7/DataQueryReliablePdu.cs deleted file mode 100644 index 715efb2..0000000 --- a/Libs/CSharpDis7/DataQueryReliablePdu.cs +++ /dev/null @@ -1,615 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Section 5.3.12.8: request for data from an entity. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(FixedDatum))] - [XmlInclude(typeof(VariableDatum))] - public partial class DataQueryReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable - { - /// - /// level of reliability service used for this transaction - /// - private byte _requiredReliabilityService; - - /// - /// padding - /// - private ushort _pad1; - - /// - /// padding - /// - private byte _pad2; - - /// - /// request ID - /// - private uint _requestID; - - /// - /// time interval between issuing data query PDUs - /// - private uint _timeInterval; - - /// - /// Fixed datum record count - /// - private uint _numberOfFixedDatumRecords; - - /// - /// variable datum record count - /// - private uint _numberOfVariableDatumRecords; - - /// - /// Fixed datum records - /// - private List _fixedDatumRecords = new List(); - - /// - /// Variable datum records - /// - private List _variableDatumRecords = new List(); - - /// - /// Initializes a new instance of the class. - /// - public DataQueryReliablePdu() - { - PduType = (byte)58; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(DataQueryReliablePdu left, DataQueryReliablePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(DataQueryReliablePdu left, DataQueryReliablePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 1; // this._requiredReliabilityService - marshalSize += 2; // this._pad1 - marshalSize += 1; // this._pad2 - marshalSize += 4; // this._requestID - marshalSize += 4; // this._timeInterval - marshalSize += 4; // this._numberOfFixedDatumRecords - marshalSize += 4; // this._numberOfVariableDatumRecords - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - FixedDatum listElement = (FixedDatum)this._fixedDatumRecords[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - VariableDatum listElement = (VariableDatum)this._variableDatumRecords[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the level of reliability service used for this transaction - /// - [XmlElement(Type = typeof(byte), ElementName = "requiredReliabilityService")] - public byte RequiredReliabilityService - { - get - { - return this._requiredReliabilityService; - } - - set - { - this._requiredReliabilityService = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(ushort), ElementName = "pad1")] - public ushort Pad1 - { - get - { - return this._pad1; - } - - set - { - this._pad1 = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "pad2")] - public byte Pad2 - { - get - { - return this._pad2; - } - - set - { - this._pad2 = value; - } - } - - /// - /// Gets or sets the request ID - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Gets or sets the time interval between issuing data query PDUs - /// - [XmlElement(Type = typeof(uint), ElementName = "timeInterval")] - public uint TimeInterval - { - get - { - return this._timeInterval; - } - - set - { - this._timeInterval = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] - public uint NumberOfFixedDatumRecords - { - get - { - return this._numberOfFixedDatumRecords; - } - - set - { - this._numberOfFixedDatumRecords = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] - public uint NumberOfVariableDatumRecords - { - get - { - return this._numberOfVariableDatumRecords; - } - - set - { - this._numberOfVariableDatumRecords = value; - } - } - - /// - /// Gets or sets the Fixed datum records - /// - [XmlElement(ElementName = "fixedDatumRecordsList", Type = typeof(List))] - public List FixedDatumRecords - { - get - { - return this._fixedDatumRecords; - } - } - - /// - /// Gets or sets the Variable datum records - /// - [XmlElement(ElementName = "variableDatumRecordsList", Type = typeof(List))] - public List VariableDatumRecords - { - get - { - return this._variableDatumRecords; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._requiredReliabilityService); - dos.WriteUnsignedShort((ushort)this._pad1); - dos.WriteUnsignedByte((byte)this._pad2); - dos.WriteUnsignedInt((uint)this._requestID); - dos.WriteUnsignedInt((uint)this._timeInterval); - dos.WriteUnsignedInt((uint)this._fixedDatumRecords.Count); - dos.WriteUnsignedInt((uint)this._variableDatumRecords.Count); - - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; - aFixedDatum.Marshal(dos); - } - - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; - aVariableDatum.Marshal(dos); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._requiredReliabilityService = dis.ReadUnsignedByte(); - this._pad1 = dis.ReadUnsignedShort(); - this._pad2 = dis.ReadUnsignedByte(); - this._requestID = dis.ReadUnsignedInt(); - this._timeInterval = dis.ReadUnsignedInt(); - this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); - this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); - for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) - { - FixedDatum anX = new FixedDatum(); - anX.Unmarshal(dis); - this._fixedDatumRecords.Add(anX); - }; - - for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) - { - VariableDatum anX = new VariableDatum(); - anX.Unmarshal(dis); - this._variableDatumRecords.Add(anX); - }; - - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._requiredReliabilityService.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._timeInterval.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fixedDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - sb.AppendLine(""); - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; - aFixedDatum.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - sb.AppendLine(""); - VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; - aVariableDatum.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as DataQueryReliablePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(DataQueryReliablePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._requiredReliabilityService != obj._requiredReliabilityService) - { - ivarsEqual = false; - } - - if (this._pad1 != obj._pad1) - { - ivarsEqual = false; - } - - if (this._pad2 != obj._pad2) - { - ivarsEqual = false; - } - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - if (this._timeInterval != obj._timeInterval) - { - ivarsEqual = false; - } - - if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) - { - ivarsEqual = false; - } - - if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) - { - ivarsEqual = false; - } - - if (this._fixedDatumRecords.Count != obj._fixedDatumRecords.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - if (!this._fixedDatumRecords[idx].Equals(obj._fixedDatumRecords[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._variableDatumRecords.Count != obj._variableDatumRecords.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - if (!this._variableDatumRecords[idx].Equals(obj._variableDatumRecords[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._requiredReliabilityService.GetHashCode(); - result = GenerateHash(result) ^ this._pad1.GetHashCode(); - result = GenerateHash(result) ^ this._pad2.GetHashCode(); - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - result = GenerateHash(result) ^ this._timeInterval.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); - - if (this._fixedDatumRecords.Count > 0) - { - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - result = GenerateHash(result) ^ this._fixedDatumRecords[idx].GetHashCode(); - } - } - - if (this._variableDatumRecords.Count > 0) - { - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - result = GenerateHash(result) ^ this._variableDatumRecords[idx].GetHashCode(); - } - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/DataReliablePdu.cs b/Libs/CSharpDis7/DataReliablePdu.cs deleted file mode 100644 index 02100a4..0000000 --- a/Libs/CSharpDis7/DataReliablePdu.cs +++ /dev/null @@ -1,583 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Section 5.3.12.10: issued in response to a data query R or set dataR pdu. Needs manual intervention to fix padding on variable datums. UNFINSIHED - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(FixedDatum))] - [XmlInclude(typeof(VariableDatum))] - public partial class DataReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable - { - /// - /// Request ID - /// - private uint _requestID; - - /// - /// level of reliability service used for this transaction - /// - private byte _requiredReliabilityService; - - /// - /// padding - /// - private ushort _pad1; - - /// - /// padding - /// - private byte _pad2; - - /// - /// Fixed datum record count - /// - private uint _numberOfFixedDatumRecords; - - /// - /// variable datum record count - /// - private uint _numberOfVariableDatumRecords; - - /// - /// Fixed datum records - /// - private List _fixedDatumRecords = new List(); - - /// - /// Variable datum records - /// - private List _variableDatumRecords = new List(); - - /// - /// Initializes a new instance of the class. - /// - public DataReliablePdu() - { - PduType = (byte)60; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(DataReliablePdu left, DataReliablePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(DataReliablePdu left, DataReliablePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 4; // this._requestID - marshalSize += 1; // this._requiredReliabilityService - marshalSize += 2; // this._pad1 - marshalSize += 1; // this._pad2 - marshalSize += 4; // this._numberOfFixedDatumRecords - marshalSize += 4; // this._numberOfVariableDatumRecords - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - FixedDatum listElement = (FixedDatum)this._fixedDatumRecords[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - VariableDatum listElement = (VariableDatum)this._variableDatumRecords[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Request ID - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Gets or sets the level of reliability service used for this transaction - /// - [XmlElement(Type = typeof(byte), ElementName = "requiredReliabilityService")] - public byte RequiredReliabilityService - { - get - { - return this._requiredReliabilityService; - } - - set - { - this._requiredReliabilityService = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(ushort), ElementName = "pad1")] - public ushort Pad1 - { - get - { - return this._pad1; - } - - set - { - this._pad1 = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "pad2")] - public byte Pad2 - { - get - { - return this._pad2; - } - - set - { - this._pad2 = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] - public uint NumberOfFixedDatumRecords - { - get - { - return this._numberOfFixedDatumRecords; - } - - set - { - this._numberOfFixedDatumRecords = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] - public uint NumberOfVariableDatumRecords - { - get - { - return this._numberOfVariableDatumRecords; - } - - set - { - this._numberOfVariableDatumRecords = value; - } - } - - /// - /// Gets or sets the Fixed datum records - /// - [XmlElement(ElementName = "fixedDatumRecordsList", Type = typeof(List))] - public List FixedDatumRecords - { - get - { - return this._fixedDatumRecords; - } - } - - /// - /// Gets or sets the Variable datum records - /// - [XmlElement(ElementName = "variableDatumRecordsList", Type = typeof(List))] - public List VariableDatumRecords - { - get - { - return this._variableDatumRecords; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._requestID); - dos.WriteUnsignedByte((byte)this._requiredReliabilityService); - dos.WriteUnsignedShort((ushort)this._pad1); - dos.WriteUnsignedByte((byte)this._pad2); - dos.WriteUnsignedInt((uint)this._fixedDatumRecords.Count); - dos.WriteUnsignedInt((uint)this._variableDatumRecords.Count); - - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; - aFixedDatum.Marshal(dos); - } - - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; - aVariableDatum.Marshal(dos); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._requestID = dis.ReadUnsignedInt(); - this._requiredReliabilityService = dis.ReadUnsignedByte(); - this._pad1 = dis.ReadUnsignedShort(); - this._pad2 = dis.ReadUnsignedByte(); - this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); - this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); - for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) - { - FixedDatum anX = new FixedDatum(); - anX.Unmarshal(dis); - this._fixedDatumRecords.Add(anX); - }; - - for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) - { - VariableDatum anX = new VariableDatum(); - anX.Unmarshal(dis); - this._variableDatumRecords.Add(anX); - }; - - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._requiredReliabilityService.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fixedDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - sb.AppendLine(""); - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; - aFixedDatum.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - sb.AppendLine(""); - VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; - aVariableDatum.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as DataReliablePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(DataReliablePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - if (this._requiredReliabilityService != obj._requiredReliabilityService) - { - ivarsEqual = false; - } - - if (this._pad1 != obj._pad1) - { - ivarsEqual = false; - } - - if (this._pad2 != obj._pad2) - { - ivarsEqual = false; - } - - if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) - { - ivarsEqual = false; - } - - if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) - { - ivarsEqual = false; - } - - if (this._fixedDatumRecords.Count != obj._fixedDatumRecords.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - if (!this._fixedDatumRecords[idx].Equals(obj._fixedDatumRecords[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._variableDatumRecords.Count != obj._variableDatumRecords.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - if (!this._variableDatumRecords[idx].Equals(obj._variableDatumRecords[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - result = GenerateHash(result) ^ this._requiredReliabilityService.GetHashCode(); - result = GenerateHash(result) ^ this._pad1.GetHashCode(); - result = GenerateHash(result) ^ this._pad2.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); - - if (this._fixedDatumRecords.Count > 0) - { - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - result = GenerateHash(result) ^ this._fixedDatumRecords[idx].GetHashCode(); - } - } - - if (this._variableDatumRecords.Count > 0) - { - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - result = GenerateHash(result) ^ this._variableDatumRecords[idx].GetHashCode(); - } - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/DatumSpecification.cs b/Libs/CSharpDis7/DatumSpecification.cs deleted file mode 100644 index 815c1e4..0000000 --- a/Libs/CSharpDis7/DatumSpecification.cs +++ /dev/null @@ -1,451 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// List of fixed and variable datum records. Section 6.2.19 - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(FixedDatum))] - [XmlInclude(typeof(VariableDatum))] - public partial class DatumSpecification - { - /// - /// Number of fixed datums - /// - private uint _numberOfFixedDatums; - - /// - /// Number of variable datums - /// - private uint _numberOfVariableDatums; - - /// - /// variable length list fixed datums - /// - private List _fixedDatumIDList = new List(); - - /// - /// variable length list variable datums - /// - private List _variableDatumIDList = new List(); - - /// - /// Initializes a new instance of the class. - /// - public DatumSpecification() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(DatumSpecification left, DatumSpecification right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(DatumSpecification left, DatumSpecification right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._numberOfFixedDatums - marshalSize += 4; // this._numberOfVariableDatums - for (int idx = 0; idx < this._fixedDatumIDList.Count; idx++) - { - FixedDatum listElement = (FixedDatum)this._fixedDatumIDList[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._variableDatumIDList.Count; idx++) - { - VariableDatum listElement = (VariableDatum)this._variableDatumIDList[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfFixedDatums method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatums")] - public uint NumberOfFixedDatums - { - get - { - return this._numberOfFixedDatums; - } - - set - { - this._numberOfFixedDatums = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfVariableDatums method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatums")] - public uint NumberOfVariableDatums - { - get - { - return this._numberOfVariableDatums; - } - - set - { - this._numberOfVariableDatums = value; - } - } - - /// - /// Gets or sets the variable length list fixed datums - /// - [XmlElement(ElementName = "fixedDatumIDListList", Type = typeof(List))] - public List FixedDatumIDList - { - get - { - return this._fixedDatumIDList; - } - } - - /// - /// Gets or sets the variable length list variable datums - /// - [XmlElement(ElementName = "variableDatumIDListList", Type = typeof(List))] - public List VariableDatumIDList - { - get - { - return this._variableDatumIDList; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._fixedDatumIDList.Count); - dos.WriteUnsignedInt((uint)this._variableDatumIDList.Count); - - for (int idx = 0; idx < this._fixedDatumIDList.Count; idx++) - { - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumIDList[idx]; - aFixedDatum.Marshal(dos); - } - - for (int idx = 0; idx < this._variableDatumIDList.Count; idx++) - { - VariableDatum aVariableDatum = (VariableDatum)this._variableDatumIDList[idx]; - aVariableDatum.Marshal(dos); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._numberOfFixedDatums = dis.ReadUnsignedInt(); - this._numberOfVariableDatums = dis.ReadUnsignedInt(); - for (int idx = 0; idx < this.NumberOfFixedDatums; idx++) - { - FixedDatum anX = new FixedDatum(); - anX.Unmarshal(dis); - this._fixedDatumIDList.Add(anX); - }; - - for (int idx = 0; idx < this.NumberOfVariableDatums; idx++) - { - VariableDatum anX = new VariableDatum(); - anX.Unmarshal(dis); - this._variableDatumIDList.Add(anX); - }; - - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._fixedDatumIDList.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableDatumIDList.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._fixedDatumIDList.Count; idx++) - { - sb.AppendLine(""); - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumIDList[idx]; - aFixedDatum.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._variableDatumIDList.Count; idx++) - { - sb.AppendLine(""); - VariableDatum aVariableDatum = (VariableDatum)this._variableDatumIDList[idx]; - aVariableDatum.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as DatumSpecification; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(DatumSpecification obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._numberOfFixedDatums != obj._numberOfFixedDatums) - { - ivarsEqual = false; - } - - if (this._numberOfVariableDatums != obj._numberOfVariableDatums) - { - ivarsEqual = false; - } - - if (this._fixedDatumIDList.Count != obj._fixedDatumIDList.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._fixedDatumIDList.Count; idx++) - { - if (!this._fixedDatumIDList[idx].Equals(obj._fixedDatumIDList[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._variableDatumIDList.Count != obj._variableDatumIDList.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._variableDatumIDList.Count; idx++) - { - if (!this._variableDatumIDList[idx].Equals(obj._variableDatumIDList[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._numberOfFixedDatums.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfVariableDatums.GetHashCode(); - - if (this._fixedDatumIDList.Count > 0) - { - for (int idx = 0; idx < this._fixedDatumIDList.Count; idx++) - { - result = GenerateHash(result) ^ this._fixedDatumIDList[idx].GetHashCode(); - } - } - - if (this._variableDatumIDList.Count > 0) - { - for (int idx = 0; idx < this._variableDatumIDList.Count; idx++) - { - result = GenerateHash(result) ^ this._variableDatumIDList[idx].GetHashCode(); - } - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/DeadReckoningParameters.cs b/Libs/CSharpDis7/DeadReckoningParameters.cs deleted file mode 100644 index 2e66b03..0000000 --- a/Libs/CSharpDis7/DeadReckoningParameters.cs +++ /dev/null @@ -1,404 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Not specified in the standard. This is used by the ESPDU - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(Vector3Float))] - public partial class DeadReckoningParameters - { - /// - /// Algorithm to use in computing dead reckoning. See EBV doc. - /// - private byte _deadReckoningAlgorithm; - - /// - /// Dead reckoning parameters. Contents depends on algorithm. - /// - private byte[] _parameters = new byte[15]; - - /// - /// Linear acceleration of the entity - /// - private Vector3Float _entityLinearAcceleration = new Vector3Float(); - - /// - /// Angular velocity of the entity - /// - private Vector3Float _entityAngularVelocity = new Vector3Float(); - - /// - /// Initializes a new instance of the class. - /// - public DeadReckoningParameters() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(DeadReckoningParameters left, DeadReckoningParameters right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(DeadReckoningParameters left, DeadReckoningParameters right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._deadReckoningAlgorithm - marshalSize += 15 * 1; // _parameters - marshalSize += this._entityLinearAcceleration.GetMarshalledSize(); // this._entityLinearAcceleration - marshalSize += this._entityAngularVelocity.GetMarshalledSize(); // this._entityAngularVelocity - return marshalSize; - } - - /// - /// Gets or sets the Algorithm to use in computing dead reckoning. See EBV doc. - /// - [XmlElement(Type = typeof(byte), ElementName = "deadReckoningAlgorithm")] - public byte DeadReckoningAlgorithm - { - get - { - return this._deadReckoningAlgorithm; - } - - set - { - this._deadReckoningAlgorithm = value; - } - } - - /// - /// Gets or sets the Dead reckoning parameters. Contents depends on algorithm. - /// - [XmlArray(ElementName = "parameters")] - public byte[] Parameters - { - get - { - return this._parameters; - } - - set - { - this._parameters = value; - } -} - - /// - /// Gets or sets the Linear acceleration of the entity - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "entityLinearAcceleration")] - public Vector3Float EntityLinearAcceleration - { - get - { - return this._entityLinearAcceleration; - } - - set - { - this._entityLinearAcceleration = value; - } - } - - /// - /// Gets or sets the Angular velocity of the entity - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "entityAngularVelocity")] - public Vector3Float EntityAngularVelocity - { - get - { - return this._entityAngularVelocity; - } - - set - { - this._entityAngularVelocity = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._deadReckoningAlgorithm); - - for (int idx = 0; idx < this._parameters.Length; idx++) - { - dos.WriteUnsignedByte(this._parameters[idx]); - } - this._entityLinearAcceleration.Marshal(dos); - this._entityAngularVelocity.Marshal(dos); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._deadReckoningAlgorithm = dis.ReadUnsignedByte(); - for (int idx = 0; idx < this._parameters.Length; idx++) - { - this._parameters[idx] = dis.ReadUnsignedByte(); - } - this._entityLinearAcceleration.Unmarshal(dis); - this._entityAngularVelocity.Unmarshal(dis); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._deadReckoningAlgorithm.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._parameters.Length; idx++) - { - sb.AppendLine("" + this._parameters[idx] + ""); - } - - sb.AppendLine(""); - this._entityLinearAcceleration.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._entityAngularVelocity.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as DeadReckoningParameters; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(DeadReckoningParameters obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._deadReckoningAlgorithm != obj._deadReckoningAlgorithm) - { - ivarsEqual = false; - } - - if (obj._parameters.Length != 15) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < 15; idx++) - { - if (this._parameters[idx] != obj._parameters[idx]) - { - ivarsEqual = false; - } - } - } - - if (!this._entityLinearAcceleration.Equals(obj._entityLinearAcceleration)) - { - ivarsEqual = false; - } - - if (!this._entityAngularVelocity.Equals(obj._entityAngularVelocity)) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._deadReckoningAlgorithm.GetHashCode(); - - for (int idx = 0; idx < 15; idx++) - { - result = GenerateHash(result) ^ this._parameters[idx].GetHashCode(); - } - result = GenerateHash(result) ^ this._entityLinearAcceleration.GetHashCode(); - result = GenerateHash(result) ^ this._entityAngularVelocity.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/DesignatorPdu.cs b/Libs/CSharpDis7/DesignatorPdu.cs deleted file mode 100644 index d7ecdd2..0000000 --- a/Libs/CSharpDis7/DesignatorPdu.cs +++ /dev/null @@ -1,646 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Section 5.3.7.2. Handles designating operations. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(Vector3Float))] - [XmlInclude(typeof(Vector3Double))] - public partial class DesignatorPdu : DistributedEmissionsFamilyPdu, IEquatable - { - /// - /// ID of the entity designating - /// - private EntityID _designatingEntityID = new EntityID(); - - /// - /// This field shall specify a unique emitter database number assigned to differentiate between otherwise similar or identical emitter beams within an emitter system. - /// - private ushort _codeName; - - /// - /// ID of the entity being designated - /// - private EntityID _designatedEntityID = new EntityID(); - - /// - /// This field shall identify the designator code being used by the designating entity - /// - private ushort _designatorCode; - - /// - /// This field shall identify the designator output power in watts - /// - private float _designatorPower; - - /// - /// This field shall identify the designator wavelength in units of microns - /// - private float _designatorWavelength; - - /// - /// designtor spot wrt the designated entity - /// - private Vector3Float _designatorSpotWrtDesignated = new Vector3Float(); - - /// - /// designtor spot wrt the designated entity - /// - private Vector3Double _designatorSpotLocation = new Vector3Double(); - - /// - /// Dead reckoning algorithm - /// - private byte _deadReckoningAlgorithm; - - /// - /// padding - /// - private ushort _padding1; - - /// - /// padding - /// - private byte _padding2; - - /// - /// linear accelleration of entity - /// - private Vector3Float _entityLinearAcceleration = new Vector3Float(); - - /// - /// Initializes a new instance of the class. - /// - public DesignatorPdu() - { - PduType = (byte)24; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(DesignatorPdu left, DesignatorPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(DesignatorPdu left, DesignatorPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._designatingEntityID.GetMarshalledSize(); // this._designatingEntityID - marshalSize += 2; // this._codeName - marshalSize += this._designatedEntityID.GetMarshalledSize(); // this._designatedEntityID - marshalSize += 2; // this._designatorCode - marshalSize += 4; // this._designatorPower - marshalSize += 4; // this._designatorWavelength - marshalSize += this._designatorSpotWrtDesignated.GetMarshalledSize(); // this._designatorSpotWrtDesignated - marshalSize += this._designatorSpotLocation.GetMarshalledSize(); // this._designatorSpotLocation - marshalSize += 1; // this._deadReckoningAlgorithm - marshalSize += 2; // this._padding1 - marshalSize += 1; // this._padding2 - marshalSize += this._entityLinearAcceleration.GetMarshalledSize(); // this._entityLinearAcceleration - return marshalSize; - } - - /// - /// Gets or sets the ID of the entity designating - /// - [XmlElement(Type = typeof(EntityID), ElementName = "designatingEntityID")] - public EntityID DesignatingEntityID - { - get - { - return this._designatingEntityID; - } - - set - { - this._designatingEntityID = value; - } - } - - /// - /// Gets or sets the This field shall specify a unique emitter database number assigned to differentiate between otherwise similar or identical emitter beams within an emitter system. - /// - [XmlElement(Type = typeof(ushort), ElementName = "codeName")] - public ushort CodeName - { - get - { - return this._codeName; - } - - set - { - this._codeName = value; - } - } - - /// - /// Gets or sets the ID of the entity being designated - /// - [XmlElement(Type = typeof(EntityID), ElementName = "designatedEntityID")] - public EntityID DesignatedEntityID - { - get - { - return this._designatedEntityID; - } - - set - { - this._designatedEntityID = value; - } - } - - /// - /// Gets or sets the This field shall identify the designator code being used by the designating entity - /// - [XmlElement(Type = typeof(ushort), ElementName = "designatorCode")] - public ushort DesignatorCode - { - get - { - return this._designatorCode; - } - - set - { - this._designatorCode = value; - } - } - - /// - /// Gets or sets the This field shall identify the designator output power in watts - /// - [XmlElement(Type = typeof(float), ElementName = "designatorPower")] - public float DesignatorPower - { - get - { - return this._designatorPower; - } - - set - { - this._designatorPower = value; - } - } - - /// - /// Gets or sets the This field shall identify the designator wavelength in units of microns - /// - [XmlElement(Type = typeof(float), ElementName = "designatorWavelength")] - public float DesignatorWavelength - { - get - { - return this._designatorWavelength; - } - - set - { - this._designatorWavelength = value; - } - } - - /// - /// Gets or sets the designtor spot wrt the designated entity - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "designatorSpotWrtDesignated")] - public Vector3Float DesignatorSpotWrtDesignated - { - get - { - return this._designatorSpotWrtDesignated; - } - - set - { - this._designatorSpotWrtDesignated = value; - } - } - - /// - /// Gets or sets the designtor spot wrt the designated entity - /// - [XmlElement(Type = typeof(Vector3Double), ElementName = "designatorSpotLocation")] - public Vector3Double DesignatorSpotLocation - { - get - { - return this._designatorSpotLocation; - } - - set - { - this._designatorSpotLocation = value; - } - } - - /// - /// Gets or sets the Dead reckoning algorithm - /// - [XmlElement(Type = typeof(byte), ElementName = "deadReckoningAlgorithm")] - public byte DeadReckoningAlgorithm - { - get - { - return this._deadReckoningAlgorithm; - } - - set - { - this._deadReckoningAlgorithm = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(ushort), ElementName = "padding1")] - public ushort Padding1 - { - get - { - return this._padding1; - } - - set - { - this._padding1 = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "padding2")] - public byte Padding2 - { - get - { - return this._padding2; - } - - set - { - this._padding2 = value; - } - } - - /// - /// Gets or sets the linear accelleration of entity - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "entityLinearAcceleration")] - public Vector3Float EntityLinearAcceleration - { - get - { - return this._entityLinearAcceleration; - } - - set - { - this._entityLinearAcceleration = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._designatingEntityID.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._codeName); - this._designatedEntityID.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._designatorCode); - dos.WriteFloat((float)this._designatorPower); - dos.WriteFloat((float)this._designatorWavelength); - this._designatorSpotWrtDesignated.Marshal(dos); - this._designatorSpotLocation.Marshal(dos); - dos.WriteByte((byte)this._deadReckoningAlgorithm); - dos.WriteUnsignedShort((ushort)this._padding1); - dos.WriteByte((byte)this._padding2); - this._entityLinearAcceleration.Marshal(dos); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._designatingEntityID.Unmarshal(dis); - this._codeName = dis.ReadUnsignedShort(); - this._designatedEntityID.Unmarshal(dis); - this._designatorCode = dis.ReadUnsignedShort(); - this._designatorPower = dis.ReadFloat(); - this._designatorWavelength = dis.ReadFloat(); - this._designatorSpotWrtDesignated.Unmarshal(dis); - this._designatorSpotLocation.Unmarshal(dis); - this._deadReckoningAlgorithm = dis.ReadByte(); - this._padding1 = dis.ReadUnsignedShort(); - this._padding2 = dis.ReadByte(); - this._entityLinearAcceleration.Unmarshal(dis); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._designatingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._codeName.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._designatedEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._designatorCode.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._designatorPower.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._designatorWavelength.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._designatorSpotWrtDesignated.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._designatorSpotLocation.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._deadReckoningAlgorithm.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._entityLinearAcceleration.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as DesignatorPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(DesignatorPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._designatingEntityID.Equals(obj._designatingEntityID)) - { - ivarsEqual = false; - } - - if (this._codeName != obj._codeName) - { - ivarsEqual = false; - } - - if (!this._designatedEntityID.Equals(obj._designatedEntityID)) - { - ivarsEqual = false; - } - - if (this._designatorCode != obj._designatorCode) - { - ivarsEqual = false; - } - - if (this._designatorPower != obj._designatorPower) - { - ivarsEqual = false; - } - - if (this._designatorWavelength != obj._designatorWavelength) - { - ivarsEqual = false; - } - - if (!this._designatorSpotWrtDesignated.Equals(obj._designatorSpotWrtDesignated)) - { - ivarsEqual = false; - } - - if (!this._designatorSpotLocation.Equals(obj._designatorSpotLocation)) - { - ivarsEqual = false; - } - - if (this._deadReckoningAlgorithm != obj._deadReckoningAlgorithm) - { - ivarsEqual = false; - } - - if (this._padding1 != obj._padding1) - { - ivarsEqual = false; - } - - if (this._padding2 != obj._padding2) - { - ivarsEqual = false; - } - - if (!this._entityLinearAcceleration.Equals(obj._entityLinearAcceleration)) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._designatingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._codeName.GetHashCode(); - result = GenerateHash(result) ^ this._designatedEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._designatorCode.GetHashCode(); - result = GenerateHash(result) ^ this._designatorPower.GetHashCode(); - result = GenerateHash(result) ^ this._designatorWavelength.GetHashCode(); - result = GenerateHash(result) ^ this._designatorSpotWrtDesignated.GetHashCode(); - result = GenerateHash(result) ^ this._designatorSpotLocation.GetHashCode(); - result = GenerateHash(result) ^ this._deadReckoningAlgorithm.GetHashCode(); - result = GenerateHash(result) ^ this._padding1.GetHashCode(); - result = GenerateHash(result) ^ this._padding2.GetHashCode(); - result = GenerateHash(result) ^ this._entityLinearAcceleration.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/DetonationPdu.cs b/Libs/CSharpDis7/DetonationPdu.cs deleted file mode 100644 index 7fa0ebe..0000000 --- a/Libs/CSharpDis7/DetonationPdu.cs +++ /dev/null @@ -1,625 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Detonation or impact of munitions, as well as, non-munition explosions, the burst or initial bloom of chaff, and the ignition of a flare shall be indicated. Section 7.3.3 COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(EventIdentifier))] - [XmlInclude(typeof(Vector3Float))] - [XmlInclude(typeof(Vector3Double))] - [XmlInclude(typeof(MunitionDescriptor))] - [XmlInclude(typeof(VariableParameter))] - public partial class DetonationPdu : WarfareFamilyPdu, IEquatable - { - /// - /// ID of the expendable entity, Section 7.3.3 - /// - private EntityID _explodingEntityID = new EntityID(); - - /// - /// ID of event, Section 7.3.3 - /// - private EventIdentifier _eventID = new EventIdentifier(); - - /// - /// velocity of the munition immediately before detonation/impact, Section 7.3.3 - /// - private Vector3Float _velocity = new Vector3Float(); - - /// - /// location of the munition detonation, the expendable detonation, Section 7.3.3 - /// - private Vector3Double _locationInWorldCoordinates = new Vector3Double(); - - /// - /// Describes the detonation represented, Section 7.3.3 - /// - private MunitionDescriptor _descriptor = new MunitionDescriptor(); - - /// - /// Velocity of the ammunition, Section 7.3.3 - /// - private Vector3Float _locationOfEntityCoordinates = new Vector3Float(); - - /// - /// result of the detonation, Section 7.3.3 - /// - private byte _detonationResult; - - /// - /// How many articulation parameters we have, Section 7.3.3 - /// - private byte _numberOfVariableParameters; - - /// - /// padding - /// - private ushort _pad; - - /// - /// specify the parameter values for each Variable Parameter record, Section 7.3.3 - /// - private List _variableParameters = new List(); - - /// - /// Initializes a new instance of the class. - /// - public DetonationPdu() - { - PduType = (byte)3; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(DetonationPdu left, DetonationPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(DetonationPdu left, DetonationPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._explodingEntityID.GetMarshalledSize(); // this._explodingEntityID - marshalSize += this._eventID.GetMarshalledSize(); // this._eventID - marshalSize += this._velocity.GetMarshalledSize(); // this._velocity - marshalSize += this._locationInWorldCoordinates.GetMarshalledSize(); // this._locationInWorldCoordinates - marshalSize += this._descriptor.GetMarshalledSize(); // this._descriptor - marshalSize += this._locationOfEntityCoordinates.GetMarshalledSize(); // this._locationOfEntityCoordinates - marshalSize += 1; // this._detonationResult - marshalSize += 1; // this._numberOfVariableParameters - marshalSize += 2; // this._pad - for (int idx = 0; idx < this._variableParameters.Count; idx++) - { - VariableParameter listElement = (VariableParameter)this._variableParameters[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the ID of the expendable entity, Section 7.3.3 - /// - [XmlElement(Type = typeof(EntityID), ElementName = "explodingEntityID")] - public EntityID ExplodingEntityID - { - get - { - return this._explodingEntityID; - } - - set - { - this._explodingEntityID = value; - } - } - - /// - /// Gets or sets the ID of event, Section 7.3.3 - /// - [XmlElement(Type = typeof(EventIdentifier), ElementName = "eventID")] - public EventIdentifier EventID - { - get - { - return this._eventID; - } - - set - { - this._eventID = value; - } - } - - /// - /// Gets or sets the velocity of the munition immediately before detonation/impact, Section 7.3.3 - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "velocity")] - public Vector3Float Velocity - { - get - { - return this._velocity; - } - - set - { - this._velocity = value; - } - } - - /// - /// Gets or sets the location of the munition detonation, the expendable detonation, Section 7.3.3 - /// - [XmlElement(Type = typeof(Vector3Double), ElementName = "locationInWorldCoordinates")] - public Vector3Double LocationInWorldCoordinates - { - get - { - return this._locationInWorldCoordinates; - } - - set - { - this._locationInWorldCoordinates = value; - } - } - - /// - /// Gets or sets the Describes the detonation represented, Section 7.3.3 - /// - [XmlElement(Type = typeof(MunitionDescriptor), ElementName = "descriptor")] - public MunitionDescriptor Descriptor - { - get - { - return this._descriptor; - } - - set - { - this._descriptor = value; - } - } - - /// - /// Gets or sets the Velocity of the ammunition, Section 7.3.3 - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "locationOfEntityCoordinates")] - public Vector3Float LocationOfEntityCoordinates - { - get - { - return this._locationOfEntityCoordinates; - } - - set - { - this._locationOfEntityCoordinates = value; - } - } - - /// - /// Gets or sets the result of the detonation, Section 7.3.3 - /// - [XmlElement(Type = typeof(byte), ElementName = "detonationResult")] - public byte DetonationResult - { - get - { - return this._detonationResult; - } - - set - { - this._detonationResult = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfVariableParameters method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfVariableParameters")] - public byte NumberOfVariableParameters - { - get - { - return this._numberOfVariableParameters; - } - - set - { - this._numberOfVariableParameters = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(ushort), ElementName = "pad")] - public ushort Pad - { - get - { - return this._pad; - } - - set - { - this._pad = value; - } - } - - /// - /// Gets or sets the specify the parameter values for each Variable Parameter record, Section 7.3.3 - /// - [XmlElement(ElementName = "variableParametersList", Type = typeof(List))] - public List VariableParameters - { - get - { - return this._variableParameters; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._explodingEntityID.Marshal(dos); - this._eventID.Marshal(dos); - this._velocity.Marshal(dos); - this._locationInWorldCoordinates.Marshal(dos); - this._descriptor.Marshal(dos); - this._locationOfEntityCoordinates.Marshal(dos); - dos.WriteUnsignedByte((byte)this._detonationResult); - dos.WriteUnsignedByte((byte)this._variableParameters.Count); - dos.WriteUnsignedShort((ushort)this._pad); - - for (int idx = 0; idx < this._variableParameters.Count; idx++) - { - VariableParameter aVariableParameter = (VariableParameter)this._variableParameters[idx]; - aVariableParameter.Marshal(dos); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._explodingEntityID.Unmarshal(dis); - this._eventID.Unmarshal(dis); - this._velocity.Unmarshal(dis); - this._locationInWorldCoordinates.Unmarshal(dis); - this._descriptor.Unmarshal(dis); - this._locationOfEntityCoordinates.Unmarshal(dis); - this._detonationResult = dis.ReadUnsignedByte(); - this._numberOfVariableParameters = dis.ReadUnsignedByte(); - this._pad = dis.ReadUnsignedShort(); - for (int idx = 0; idx < this.NumberOfVariableParameters; idx++) - { - VariableParameter anX = new VariableParameter(); - anX.Unmarshal(dis); - this._variableParameters.Add(anX); - }; - - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._explodingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._eventID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._velocity.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._locationInWorldCoordinates.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._descriptor.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._locationOfEntityCoordinates.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._detonationResult.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableParameters.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._variableParameters.Count; idx++) - { - sb.AppendLine(""); - VariableParameter aVariableParameter = (VariableParameter)this._variableParameters[idx]; - aVariableParameter.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as DetonationPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(DetonationPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._explodingEntityID.Equals(obj._explodingEntityID)) - { - ivarsEqual = false; - } - - if (!this._eventID.Equals(obj._eventID)) - { - ivarsEqual = false; - } - - if (!this._velocity.Equals(obj._velocity)) - { - ivarsEqual = false; - } - - if (!this._locationInWorldCoordinates.Equals(obj._locationInWorldCoordinates)) - { - ivarsEqual = false; - } - - if (!this._descriptor.Equals(obj._descriptor)) - { - ivarsEqual = false; - } - - if (!this._locationOfEntityCoordinates.Equals(obj._locationOfEntityCoordinates)) - { - ivarsEqual = false; - } - - if (this._detonationResult != obj._detonationResult) - { - ivarsEqual = false; - } - - if (this._numberOfVariableParameters != obj._numberOfVariableParameters) - { - ivarsEqual = false; - } - - if (this._pad != obj._pad) - { - ivarsEqual = false; - } - - if (this._variableParameters.Count != obj._variableParameters.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._variableParameters.Count; idx++) - { - if (!this._variableParameters[idx].Equals(obj._variableParameters[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._explodingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._eventID.GetHashCode(); - result = GenerateHash(result) ^ this._velocity.GetHashCode(); - result = GenerateHash(result) ^ this._locationInWorldCoordinates.GetHashCode(); - result = GenerateHash(result) ^ this._descriptor.GetHashCode(); - result = GenerateHash(result) ^ this._locationOfEntityCoordinates.GetHashCode(); - result = GenerateHash(result) ^ this._detonationResult.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfVariableParameters.GetHashCode(); - result = GenerateHash(result) ^ this._pad.GetHashCode(); - - if (this._variableParameters.Count > 0) - { - for (int idx = 0; idx < this._variableParameters.Count; idx++) - { - result = GenerateHash(result) ^ this._variableParameters[idx].GetHashCode(); - } - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/DirectedEnergyAreaAimpoint.cs b/Libs/CSharpDis7/DirectedEnergyAreaAimpoint.cs deleted file mode 100644 index aed713a..0000000 --- a/Libs/CSharpDis7/DirectedEnergyAreaAimpoint.cs +++ /dev/null @@ -1,547 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// DE Precision Aimpoint Record. NOT COMPLETE. Section 6.2.21.2 - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(BeamAntennaPattern))] - [XmlInclude(typeof(DirectedEnergyTargetEnergyDeposition))] - public partial class DirectedEnergyAreaAimpoint - { - /// - /// Type of Record - /// - private uint _recordType = 4001; - - /// - /// Length of Record - /// - private ushort _recordLength; - - /// - /// Padding - /// - private ushort _padding; - - /// - /// Number of beam antenna pattern records - /// - private ushort _beamAntennaPatternRecordCount; - - /// - /// Number of DE target energy depositon records - /// - private ushort _directedEnergyTargetEnergyDepositionRecordCount; - - /// - /// list of beam antenna records. See 6.2.9.2 - /// - private List _beamAntennaParameterList = new List(); - - /// - /// list of DE target deposition records. See 6.2.21.4 - /// - private List _directedEnergyTargetEnergyDepositionRecordList = new List(); - - /// - /// Initializes a new instance of the class. - /// - public DirectedEnergyAreaAimpoint() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(DirectedEnergyAreaAimpoint left, DirectedEnergyAreaAimpoint right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(DirectedEnergyAreaAimpoint left, DirectedEnergyAreaAimpoint right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._recordType - marshalSize += 2; // this._recordLength - marshalSize += 2; // this._padding - marshalSize += 2; // this._beamAntennaPatternRecordCount - marshalSize += 2; // this._directedEnergyTargetEnergyDepositionRecordCount - for (int idx = 0; idx < this._beamAntennaParameterList.Count; idx++) - { - BeamAntennaPattern listElement = (BeamAntennaPattern)this._beamAntennaParameterList[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._directedEnergyTargetEnergyDepositionRecordList.Count; idx++) - { - DirectedEnergyTargetEnergyDeposition listElement = (DirectedEnergyTargetEnergyDeposition)this._directedEnergyTargetEnergyDepositionRecordList[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Type of Record - /// - [XmlElement(Type = typeof(uint), ElementName = "recordType")] - public uint RecordType - { - get - { - return this._recordType; - } - - set - { - this._recordType = value; - } - } - - /// - /// Gets or sets the Length of Record - /// - [XmlElement(Type = typeof(ushort), ElementName = "recordLength")] - public ushort RecordLength - { - get - { - return this._recordLength; - } - - set - { - this._recordLength = value; - } - } - - /// - /// Gets or sets the Padding - /// - [XmlElement(Type = typeof(ushort), ElementName = "padding")] - public ushort Padding - { - get - { - return this._padding; - } - - set - { - this._padding = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getbeamAntennaPatternRecordCount method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(ushort), ElementName = "beamAntennaPatternRecordCount")] - public ushort BeamAntennaPatternRecordCount - { - get - { - return this._beamAntennaPatternRecordCount; - } - - set - { - this._beamAntennaPatternRecordCount = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getdirectedEnergyTargetEnergyDepositionRecordCount method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(ushort), ElementName = "directedEnergyTargetEnergyDepositionRecordCount")] - public ushort DirectedEnergyTargetEnergyDepositionRecordCount - { - get - { - return this._directedEnergyTargetEnergyDepositionRecordCount; - } - - set - { - this._directedEnergyTargetEnergyDepositionRecordCount = value; - } - } - - /// - /// Gets or sets the list of beam antenna records. See 6.2.9.2 - /// - [XmlElement(ElementName = "beamAntennaParameterListList", Type = typeof(List))] - public List BeamAntennaParameterList - { - get - { - return this._beamAntennaParameterList; - } - } - - /// - /// Gets or sets the list of DE target deposition records. See 6.2.21.4 - /// - [XmlElement(ElementName = "directedEnergyTargetEnergyDepositionRecordListList", Type = typeof(List))] - public List DirectedEnergyTargetEnergyDepositionRecordList - { - get - { - return this._directedEnergyTargetEnergyDepositionRecordList; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._recordType); - dos.WriteUnsignedShort((ushort)this._recordLength); - dos.WriteUnsignedShort((ushort)this._padding); - dos.WriteUnsignedShort((ushort)this._beamAntennaParameterList.Count); - dos.WriteUnsignedShort((ushort)this._directedEnergyTargetEnergyDepositionRecordList.Count); - - for (int idx = 0; idx < this._beamAntennaParameterList.Count; idx++) - { - BeamAntennaPattern aBeamAntennaPattern = (BeamAntennaPattern)this._beamAntennaParameterList[idx]; - aBeamAntennaPattern.Marshal(dos); - } - - for (int idx = 0; idx < this._directedEnergyTargetEnergyDepositionRecordList.Count; idx++) - { - DirectedEnergyTargetEnergyDeposition aDirectedEnergyTargetEnergyDeposition = (DirectedEnergyTargetEnergyDeposition)this._directedEnergyTargetEnergyDepositionRecordList[idx]; - aDirectedEnergyTargetEnergyDeposition.Marshal(dos); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._recordType = dis.ReadUnsignedInt(); - this._recordLength = dis.ReadUnsignedShort(); - this._padding = dis.ReadUnsignedShort(); - this._beamAntennaPatternRecordCount = dis.ReadUnsignedShort(); - this._directedEnergyTargetEnergyDepositionRecordCount = dis.ReadUnsignedShort(); - for (int idx = 0; idx < this.BeamAntennaPatternRecordCount; idx++) - { - BeamAntennaPattern anX = new BeamAntennaPattern(); - anX.Unmarshal(dis); - this._beamAntennaParameterList.Add(anX); - }; - - for (int idx = 0; idx < this.DirectedEnergyTargetEnergyDepositionRecordCount; idx++) - { - DirectedEnergyTargetEnergyDeposition anX = new DirectedEnergyTargetEnergyDeposition(); - anX.Unmarshal(dis); - this._directedEnergyTargetEnergyDepositionRecordList.Add(anX); - }; - - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._recordType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._recordLength.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._beamAntennaParameterList.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._directedEnergyTargetEnergyDepositionRecordList.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._beamAntennaParameterList.Count; idx++) - { - sb.AppendLine(""); - BeamAntennaPattern aBeamAntennaPattern = (BeamAntennaPattern)this._beamAntennaParameterList[idx]; - aBeamAntennaPattern.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._directedEnergyTargetEnergyDepositionRecordList.Count; idx++) - { - sb.AppendLine(""); - DirectedEnergyTargetEnergyDeposition aDirectedEnergyTargetEnergyDeposition = (DirectedEnergyTargetEnergyDeposition)this._directedEnergyTargetEnergyDepositionRecordList[idx]; - aDirectedEnergyTargetEnergyDeposition.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as DirectedEnergyAreaAimpoint; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(DirectedEnergyAreaAimpoint obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._recordType != obj._recordType) - { - ivarsEqual = false; - } - - if (this._recordLength != obj._recordLength) - { - ivarsEqual = false; - } - - if (this._padding != obj._padding) - { - ivarsEqual = false; - } - - if (this._beamAntennaPatternRecordCount != obj._beamAntennaPatternRecordCount) - { - ivarsEqual = false; - } - - if (this._directedEnergyTargetEnergyDepositionRecordCount != obj._directedEnergyTargetEnergyDepositionRecordCount) - { - ivarsEqual = false; - } - - if (this._beamAntennaParameterList.Count != obj._beamAntennaParameterList.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._beamAntennaParameterList.Count; idx++) - { - if (!this._beamAntennaParameterList[idx].Equals(obj._beamAntennaParameterList[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._directedEnergyTargetEnergyDepositionRecordList.Count != obj._directedEnergyTargetEnergyDepositionRecordList.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._directedEnergyTargetEnergyDepositionRecordList.Count; idx++) - { - if (!this._directedEnergyTargetEnergyDepositionRecordList[idx].Equals(obj._directedEnergyTargetEnergyDepositionRecordList[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._recordType.GetHashCode(); - result = GenerateHash(result) ^ this._recordLength.GetHashCode(); - result = GenerateHash(result) ^ this._padding.GetHashCode(); - result = GenerateHash(result) ^ this._beamAntennaPatternRecordCount.GetHashCode(); - result = GenerateHash(result) ^ this._directedEnergyTargetEnergyDepositionRecordCount.GetHashCode(); - - if (this._beamAntennaParameterList.Count > 0) - { - for (int idx = 0; idx < this._beamAntennaParameterList.Count; idx++) - { - result = GenerateHash(result) ^ this._beamAntennaParameterList[idx].GetHashCode(); - } - } - - if (this._directedEnergyTargetEnergyDepositionRecordList.Count > 0) - { - for (int idx = 0; idx < this._directedEnergyTargetEnergyDepositionRecordList.Count; idx++) - { - result = GenerateHash(result) ^ this._directedEnergyTargetEnergyDepositionRecordList[idx].GetHashCode(); - } - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/DirectedEnergyDamage.cs b/Libs/CSharpDis7/DirectedEnergyDamage.cs deleted file mode 100644 index 8d88db1..0000000 --- a/Libs/CSharpDis7/DirectedEnergyDamage.cs +++ /dev/null @@ -1,635 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Damage sustained by an entity due to directed energy. Location of the damage based on a relative x,y,z location from the center of the entity. Section 6.2.17.2 - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(Vector3Float))] - [XmlInclude(typeof(EventIdentifier))] - public partial class DirectedEnergyDamage - { - /// - /// DE Record Type. - /// - private uint _recordType = 4500; - - /// - /// DE Record Length (bytes). - /// - private ushort _recordLength = 40; - - /// - /// padding. - /// - private ushort _padding; - - /// - /// location of damage, relative to center of entity - /// - private Vector3Float _damageLocation = new Vector3Float(); - - /// - /// Size of damaged area, in meters. - /// - private float _damageDiameter; - - /// - /// average temp of the damaged area, in degrees celsius. If firing entitty does not model this, use a value of -273.15 - /// - private float _temperature = -273.15; - - /// - /// enumeration - /// - private byte _componentIdentification; - - /// - /// enumeration - /// - private byte _componentDamageStatus; - - /// - /// enumeration - /// - private byte _componentVisualDamageStatus; - - /// - /// enumeration - /// - private byte _componentVisualSmokeColor; - - /// - /// For any component damage resulting this field shall be set to the fire event ID from that PDU. - /// - private EventIdentifier _fireEventID = new EventIdentifier(); - - /// - /// padding - /// - private ushort _padding2; - - /// - /// Initializes a new instance of the class. - /// - public DirectedEnergyDamage() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(DirectedEnergyDamage left, DirectedEnergyDamage right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(DirectedEnergyDamage left, DirectedEnergyDamage right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._recordType - marshalSize += 2; // this._recordLength - marshalSize += 2; // this._padding - marshalSize += this._damageLocation.GetMarshalledSize(); // this._damageLocation - marshalSize += 4; // this._damageDiameter - marshalSize += 4; // this._temperature - marshalSize += 1; // this._componentIdentification - marshalSize += 1; // this._componentDamageStatus - marshalSize += 1; // this._componentVisualDamageStatus - marshalSize += 1; // this._componentVisualSmokeColor - marshalSize += this._fireEventID.GetMarshalledSize(); // this._fireEventID - marshalSize += 2; // this._padding2 - return marshalSize; - } - - /// - /// Gets or sets the DE Record Type. - /// - [XmlElement(Type = typeof(uint), ElementName = "recordType")] - public uint RecordType - { - get - { - return this._recordType; - } - - set - { - this._recordType = value; - } - } - - /// - /// Gets or sets the DE Record Length (bytes). - /// - [XmlElement(Type = typeof(ushort), ElementName = "recordLength")] - public ushort RecordLength - { - get - { - return this._recordLength; - } - - set - { - this._recordLength = value; - } - } - - /// - /// Gets or sets the padding. - /// - [XmlElement(Type = typeof(ushort), ElementName = "padding")] - public ushort Padding - { - get - { - return this._padding; - } - - set - { - this._padding = value; - } - } - - /// - /// Gets or sets the location of damage, relative to center of entity - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "damageLocation")] - public Vector3Float DamageLocation - { - get - { - return this._damageLocation; - } - - set - { - this._damageLocation = value; - } - } - - /// - /// Gets or sets the Size of damaged area, in meters. - /// - [XmlElement(Type = typeof(float), ElementName = "damageDiameter")] - public float DamageDiameter - { - get - { - return this._damageDiameter; - } - - set - { - this._damageDiameter = value; - } - } - - /// - /// Gets or sets the average temp of the damaged area, in degrees celsius. If firing entitty does not model this, use a value of -273.15 - /// - [XmlElement(Type = typeof(float), ElementName = "temperature")] - public float Temperature - { - get - { - return this._temperature; - } - - set - { - this._temperature = value; - } - } - - /// - /// Gets or sets the enumeration - /// - [XmlElement(Type = typeof(byte), ElementName = "componentIdentification")] - public byte ComponentIdentification - { - get - { - return this._componentIdentification; - } - - set - { - this._componentIdentification = value; - } - } - - /// - /// Gets or sets the enumeration - /// - [XmlElement(Type = typeof(byte), ElementName = "componentDamageStatus")] - public byte ComponentDamageStatus - { - get - { - return this._componentDamageStatus; - } - - set - { - this._componentDamageStatus = value; - } - } - - /// - /// Gets or sets the enumeration - /// - [XmlElement(Type = typeof(byte), ElementName = "componentVisualDamageStatus")] - public byte ComponentVisualDamageStatus - { - get - { - return this._componentVisualDamageStatus; - } - - set - { - this._componentVisualDamageStatus = value; - } - } - - /// - /// Gets or sets the enumeration - /// - [XmlElement(Type = typeof(byte), ElementName = "componentVisualSmokeColor")] - public byte ComponentVisualSmokeColor - { - get - { - return this._componentVisualSmokeColor; - } - - set - { - this._componentVisualSmokeColor = value; - } - } - - /// - /// Gets or sets the For any component damage resulting this field shall be set to the fire event ID from that PDU. - /// - [XmlElement(Type = typeof(EventIdentifier), ElementName = "fireEventID")] - public EventIdentifier FireEventID - { - get - { - return this._fireEventID; - } - - set - { - this._fireEventID = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(ushort), ElementName = "padding2")] - public ushort Padding2 - { - get - { - return this._padding2; - } - - set - { - this._padding2 = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._recordType); - dos.WriteUnsignedShort((ushort)this._recordLength); - dos.WriteUnsignedShort((ushort)this._padding); - this._damageLocation.Marshal(dos); - dos.WriteFloat((float)this._damageDiameter); - dos.WriteFloat((float)this._temperature); - dos.WriteUnsignedByte((byte)this._componentIdentification); - dos.WriteUnsignedByte((byte)this._componentDamageStatus); - dos.WriteUnsignedByte((byte)this._componentVisualDamageStatus); - dos.WriteUnsignedByte((byte)this._componentVisualSmokeColor); - this._fireEventID.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._padding2); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._recordType = dis.ReadUnsignedInt(); - this._recordLength = dis.ReadUnsignedShort(); - this._padding = dis.ReadUnsignedShort(); - this._damageLocation.Unmarshal(dis); - this._damageDiameter = dis.ReadFloat(); - this._temperature = dis.ReadFloat(); - this._componentIdentification = dis.ReadUnsignedByte(); - this._componentDamageStatus = dis.ReadUnsignedByte(); - this._componentVisualDamageStatus = dis.ReadUnsignedByte(); - this._componentVisualSmokeColor = dis.ReadUnsignedByte(); - this._fireEventID.Unmarshal(dis); - this._padding2 = dis.ReadUnsignedShort(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._recordType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._recordLength.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._damageLocation.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._damageDiameter.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._temperature.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._componentIdentification.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._componentDamageStatus.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._componentVisualDamageStatus.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._componentVisualSmokeColor.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._fireEventID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as DirectedEnergyDamage; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(DirectedEnergyDamage obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._recordType != obj._recordType) - { - ivarsEqual = false; - } - - if (this._recordLength != obj._recordLength) - { - ivarsEqual = false; - } - - if (this._padding != obj._padding) - { - ivarsEqual = false; - } - - if (!this._damageLocation.Equals(obj._damageLocation)) - { - ivarsEqual = false; - } - - if (this._damageDiameter != obj._damageDiameter) - { - ivarsEqual = false; - } - - if (this._temperature != obj._temperature) - { - ivarsEqual = false; - } - - if (this._componentIdentification != obj._componentIdentification) - { - ivarsEqual = false; - } - - if (this._componentDamageStatus != obj._componentDamageStatus) - { - ivarsEqual = false; - } - - if (this._componentVisualDamageStatus != obj._componentVisualDamageStatus) - { - ivarsEqual = false; - } - - if (this._componentVisualSmokeColor != obj._componentVisualSmokeColor) - { - ivarsEqual = false; - } - - if (!this._fireEventID.Equals(obj._fireEventID)) - { - ivarsEqual = false; - } - - if (this._padding2 != obj._padding2) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._recordType.GetHashCode(); - result = GenerateHash(result) ^ this._recordLength.GetHashCode(); - result = GenerateHash(result) ^ this._padding.GetHashCode(); - result = GenerateHash(result) ^ this._damageLocation.GetHashCode(); - result = GenerateHash(result) ^ this._damageDiameter.GetHashCode(); - result = GenerateHash(result) ^ this._temperature.GetHashCode(); - result = GenerateHash(result) ^ this._componentIdentification.GetHashCode(); - result = GenerateHash(result) ^ this._componentDamageStatus.GetHashCode(); - result = GenerateHash(result) ^ this._componentVisualDamageStatus.GetHashCode(); - result = GenerateHash(result) ^ this._componentVisualSmokeColor.GetHashCode(); - result = GenerateHash(result) ^ this._fireEventID.GetHashCode(); - result = GenerateHash(result) ^ this._padding2.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/DirectedEnergyFirePdu.cs b/Libs/CSharpDis7/DirectedEnergyFirePdu.cs deleted file mode 100644 index 4ce5f99..0000000 --- a/Libs/CSharpDis7/DirectedEnergyFirePdu.cs +++ /dev/null @@ -1,809 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Firing of a directed energy weapon shall be communicated by issuing a Directed Energy Fire PDU Section 7.3.4 COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityType))] - [XmlInclude(typeof(ClockTime))] - [XmlInclude(typeof(Vector3Float))] - [XmlInclude(typeof(StandardVariableSpecification))] - public partial class DirectedEnergyFirePdu : WarfareFamilyPdu, IEquatable - { - /// - /// Field shall identify the munition type enumeration for the DE weapon beam, Section 7.3.4 - /// - private EntityType _munitionType = new EntityType(); - - /// - /// Field shall indicate the simulation time at start of the shot, Section 7.3.4 - /// - private ClockTime _shotStartTime = new ClockTime(); - - /// - /// Field shall indicate the current cumulative duration of the shot, Section 7.3.4 - /// - private float _commulativeShotTime; - - /// - /// Field shall identify the location of the DE weapon aperture/emitter, Section 7.3.4 - /// - private Vector3Float _ApertureEmitterLocation = new Vector3Float(); - - /// - /// Field shall identify the beam diameter at the aperture/emitter, Section 7.3.4 - /// - private float _apertureDiameter; - - /// - /// Field shall identify the emissions wavelength in units of meters, Section 7.3.4 - /// - private float _wavelength; - - /// - /// Field shall identify the current peak irradiance of emissions in units of Watts per square meter, Section 7.3.4 - /// - private float _peakIrradiance; - - /// - /// field shall identify the current pulse repetition frequency in units of cycles per second (Hertz), Section 7.3.4 - /// - private float _pulseRepetitionFrequency; - - /// - /// field shall identify the pulse width emissions in units of seconds, Section 7.3.4 - /// - private int _pulseWidth; - - /// - /// 16bit Boolean field shall contain various flags to indicate status information needed to process a DE, Section 7.3.4 - /// - private int _flags; - - /// - /// Field shall identify the pulse shape and shall be represented as an 8-bit enumeration, Section 7.3.4 - /// - private byte _pulseShape; - - /// - /// padding, Section 7.3.4 - /// - private byte _padding1; - - /// - /// padding, Section 7.3.4 - /// - private uint _padding2; - - /// - /// padding, Section 7.3.4 - /// - private ushort _padding3; - - /// - /// Field shall specify the number of DE records, Section 7.3.4 - /// - private ushort _numberOfDERecords; - - /// - /// Fields shall contain one or more DE records, records shall conform to the variable record format (Section6.2.82), Section 7.3.4 - /// - private List _dERecords = new List(); - - /// - /// Initializes a new instance of the class. - /// - public DirectedEnergyFirePdu() - { - PduType = (byte)68; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(DirectedEnergyFirePdu left, DirectedEnergyFirePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(DirectedEnergyFirePdu left, DirectedEnergyFirePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._munitionType.GetMarshalledSize(); // this._munitionType - marshalSize += this._shotStartTime.GetMarshalledSize(); // this._shotStartTime - marshalSize += 4; // this._commulativeShotTime - marshalSize += this._ApertureEmitterLocation.GetMarshalledSize(); // this._ApertureEmitterLocation - marshalSize += 4; // this._apertureDiameter - marshalSize += 4; // this._wavelength - marshalSize += 4; // this._peakIrradiance - marshalSize += 4; // this._pulseRepetitionFrequency - marshalSize += 4; // this._pulseWidth - marshalSize += 4; // this._flags - marshalSize += 1; // this._pulseShape - marshalSize += 1; // this._padding1 - marshalSize += 4; // this._padding2 - marshalSize += 2; // this._padding3 - marshalSize += 2; // this._numberOfDERecords - for (int idx = 0; idx < this._dERecords.Count; idx++) - { - StandardVariableSpecification listElement = (StandardVariableSpecification)this._dERecords[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Field shall identify the munition type enumeration for the DE weapon beam, Section 7.3.4 - /// - [XmlElement(Type = typeof(EntityType), ElementName = "munitionType")] - public EntityType MunitionType - { - get - { - return this._munitionType; - } - - set - { - this._munitionType = value; - } - } - - /// - /// Gets or sets the Field shall indicate the simulation time at start of the shot, Section 7.3.4 - /// - [XmlElement(Type = typeof(ClockTime), ElementName = "shotStartTime")] - public ClockTime ShotStartTime - { - get - { - return this._shotStartTime; - } - - set - { - this._shotStartTime = value; - } - } - - /// - /// Gets or sets the Field shall indicate the current cumulative duration of the shot, Section 7.3.4 - /// - [XmlElement(Type = typeof(float), ElementName = "commulativeShotTime")] - public float CommulativeShotTime - { - get - { - return this._commulativeShotTime; - } - - set - { - this._commulativeShotTime = value; - } - } - - /// - /// Gets or sets the Field shall identify the location of the DE weapon aperture/emitter, Section 7.3.4 - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "ApertureEmitterLocation")] - public Vector3Float ApertureEmitterLocation - { - get - { - return this._ApertureEmitterLocation; - } - - set - { - this._ApertureEmitterLocation = value; - } - } - - /// - /// Gets or sets the Field shall identify the beam diameter at the aperture/emitter, Section 7.3.4 - /// - [XmlElement(Type = typeof(float), ElementName = "apertureDiameter")] - public float ApertureDiameter - { - get - { - return this._apertureDiameter; - } - - set - { - this._apertureDiameter = value; - } - } - - /// - /// Gets or sets the Field shall identify the emissions wavelength in units of meters, Section 7.3.4 - /// - [XmlElement(Type = typeof(float), ElementName = "wavelength")] - public float Wavelength - { - get - { - return this._wavelength; - } - - set - { - this._wavelength = value; - } - } - - /// - /// Gets or sets the Field shall identify the current peak irradiance of emissions in units of Watts per square meter, Section 7.3.4 - /// - [XmlElement(Type = typeof(float), ElementName = "peakIrradiance")] - public float PeakIrradiance - { - get - { - return this._peakIrradiance; - } - - set - { - this._peakIrradiance = value; - } - } - - /// - /// Gets or sets the field shall identify the current pulse repetition frequency in units of cycles per second (Hertz), Section 7.3.4 - /// - [XmlElement(Type = typeof(float), ElementName = "pulseRepetitionFrequency")] - public float PulseRepetitionFrequency - { - get - { - return this._pulseRepetitionFrequency; - } - - set - { - this._pulseRepetitionFrequency = value; - } - } - - /// - /// Gets or sets the field shall identify the pulse width emissions in units of seconds, Section 7.3.4 - /// - [XmlElement(Type = typeof(int), ElementName = "pulseWidth")] - public int PulseWidth - { - get - { - return this._pulseWidth; - } - - set - { - this._pulseWidth = value; - } - } - - /// - /// Gets or sets the 16bit Boolean field shall contain various flags to indicate status information needed to process a DE, Section 7.3.4 - /// - [XmlElement(Type = typeof(int), ElementName = "flags")] - public int Flags - { - get - { - return this._flags; - } - - set - { - this._flags = value; - } - } - - /// - /// Gets or sets the Field shall identify the pulse shape and shall be represented as an 8-bit enumeration, Section 7.3.4 - /// - [XmlElement(Type = typeof(byte), ElementName = "pulseShape")] - public byte PulseShape - { - get - { - return this._pulseShape; - } - - set - { - this._pulseShape = value; - } - } - - /// - /// Gets or sets the padding, Section 7.3.4 - /// - [XmlElement(Type = typeof(byte), ElementName = "padding1")] - public byte Padding1 - { - get - { - return this._padding1; - } - - set - { - this._padding1 = value; - } - } - - /// - /// Gets or sets the padding, Section 7.3.4 - /// - [XmlElement(Type = typeof(uint), ElementName = "padding2")] - public uint Padding2 - { - get - { - return this._padding2; - } - - set - { - this._padding2 = value; - } - } - - /// - /// Gets or sets the padding, Section 7.3.4 - /// - [XmlElement(Type = typeof(ushort), ElementName = "padding3")] - public ushort Padding3 - { - get - { - return this._padding3; - } - - set - { - this._padding3 = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfDERecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(ushort), ElementName = "numberOfDERecords")] - public ushort NumberOfDERecords - { - get - { - return this._numberOfDERecords; - } - - set - { - this._numberOfDERecords = value; - } - } - - /// - /// Gets or sets the Fields shall contain one or more DE records, records shall conform to the variable record format (Section6.2.82), Section 7.3.4 - /// - [XmlElement(ElementName = "dERecordsList", Type = typeof(List))] - public List DERecords - { - get - { - return this._dERecords; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._munitionType.Marshal(dos); - this._shotStartTime.Marshal(dos); - dos.WriteFloat((float)this._commulativeShotTime); - this._ApertureEmitterLocation.Marshal(dos); - dos.WriteFloat((float)this._apertureDiameter); - dos.WriteFloat((float)this._wavelength); - dos.WriteFloat((float)this._peakIrradiance); - dos.WriteFloat((float)this._pulseRepetitionFrequency); - dos.WriteInt((int)this._pulseWidth); - dos.WriteInt((int)this._flags); - dos.WriteByte((byte)this._pulseShape); - dos.WriteUnsignedByte((byte)this._padding1); - dos.WriteUnsignedInt((uint)this._padding2); - dos.WriteUnsignedShort((ushort)this._padding3); - dos.WriteUnsignedShort((ushort)this._dERecords.Count); - - for (int idx = 0; idx < this._dERecords.Count; idx++) - { - StandardVariableSpecification aStandardVariableSpecification = (StandardVariableSpecification)this._dERecords[idx]; - aStandardVariableSpecification.Marshal(dos); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._munitionType.Unmarshal(dis); - this._shotStartTime.Unmarshal(dis); - this._commulativeShotTime = dis.ReadFloat(); - this._ApertureEmitterLocation.Unmarshal(dis); - this._apertureDiameter = dis.ReadFloat(); - this._wavelength = dis.ReadFloat(); - this._peakIrradiance = dis.ReadFloat(); - this._pulseRepetitionFrequency = dis.ReadFloat(); - this._pulseWidth = dis.ReadInt(); - this._flags = dis.ReadInt(); - this._pulseShape = dis.ReadByte(); - this._padding1 = dis.ReadUnsignedByte(); - this._padding2 = dis.ReadUnsignedInt(); - this._padding3 = dis.ReadUnsignedShort(); - this._numberOfDERecords = dis.ReadUnsignedShort(); - for (int idx = 0; idx < this.NumberOfDERecords; idx++) - { - StandardVariableSpecification anX = new StandardVariableSpecification(); - anX.Unmarshal(dis); - this._dERecords.Add(anX); - }; - - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._munitionType.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._shotStartTime.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._commulativeShotTime.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._ApertureEmitterLocation.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._apertureDiameter.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._wavelength.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._peakIrradiance.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pulseRepetitionFrequency.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pulseWidth.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._flags.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pulseShape.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding3.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._dERecords.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._dERecords.Count; idx++) - { - sb.AppendLine(""); - StandardVariableSpecification aStandardVariableSpecification = (StandardVariableSpecification)this._dERecords[idx]; - aStandardVariableSpecification.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as DirectedEnergyFirePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(DirectedEnergyFirePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._munitionType.Equals(obj._munitionType)) - { - ivarsEqual = false; - } - - if (!this._shotStartTime.Equals(obj._shotStartTime)) - { - ivarsEqual = false; - } - - if (this._commulativeShotTime != obj._commulativeShotTime) - { - ivarsEqual = false; - } - - if (!this._ApertureEmitterLocation.Equals(obj._ApertureEmitterLocation)) - { - ivarsEqual = false; - } - - if (this._apertureDiameter != obj._apertureDiameter) - { - ivarsEqual = false; - } - - if (this._wavelength != obj._wavelength) - { - ivarsEqual = false; - } - - if (this._peakIrradiance != obj._peakIrradiance) - { - ivarsEqual = false; - } - - if (this._pulseRepetitionFrequency != obj._pulseRepetitionFrequency) - { - ivarsEqual = false; - } - - if (this._pulseWidth != obj._pulseWidth) - { - ivarsEqual = false; - } - - if (this._flags != obj._flags) - { - ivarsEqual = false; - } - - if (this._pulseShape != obj._pulseShape) - { - ivarsEqual = false; - } - - if (this._padding1 != obj._padding1) - { - ivarsEqual = false; - } - - if (this._padding2 != obj._padding2) - { - ivarsEqual = false; - } - - if (this._padding3 != obj._padding3) - { - ivarsEqual = false; - } - - if (this._numberOfDERecords != obj._numberOfDERecords) - { - ivarsEqual = false; - } - - if (this._dERecords.Count != obj._dERecords.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._dERecords.Count; idx++) - { - if (!this._dERecords[idx].Equals(obj._dERecords[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._munitionType.GetHashCode(); - result = GenerateHash(result) ^ this._shotStartTime.GetHashCode(); - result = GenerateHash(result) ^ this._commulativeShotTime.GetHashCode(); - result = GenerateHash(result) ^ this._ApertureEmitterLocation.GetHashCode(); - result = GenerateHash(result) ^ this._apertureDiameter.GetHashCode(); - result = GenerateHash(result) ^ this._wavelength.GetHashCode(); - result = GenerateHash(result) ^ this._peakIrradiance.GetHashCode(); - result = GenerateHash(result) ^ this._pulseRepetitionFrequency.GetHashCode(); - result = GenerateHash(result) ^ this._pulseWidth.GetHashCode(); - result = GenerateHash(result) ^ this._flags.GetHashCode(); - result = GenerateHash(result) ^ this._pulseShape.GetHashCode(); - result = GenerateHash(result) ^ this._padding1.GetHashCode(); - result = GenerateHash(result) ^ this._padding2.GetHashCode(); - result = GenerateHash(result) ^ this._padding3.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfDERecords.GetHashCode(); - - if (this._dERecords.Count > 0) - { - for (int idx = 0; idx < this._dERecords.Count; idx++) - { - result = GenerateHash(result) ^ this._dERecords[idx].GetHashCode(); - } - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/DirectedEnergyPrecisionAimpoint.cs b/Libs/CSharpDis7/DirectedEnergyPrecisionAimpoint.cs deleted file mode 100644 index 1eeda49..0000000 --- a/Libs/CSharpDis7/DirectedEnergyPrecisionAimpoint.cs +++ /dev/null @@ -1,674 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// DE Precision Aimpoint Record. Section 6.2.21.3 - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(Vector3Double))] - [XmlInclude(typeof(Vector3Float))] - [XmlInclude(typeof(EntityID))] - public partial class DirectedEnergyPrecisionAimpoint - { - /// - /// Type of Record - /// - private uint _recordType = 4000; - - /// - /// Length of Record - /// - private ushort _recordLength = 88; - - /// - /// Padding - /// - private ushort _padding; - - /// - /// Position of Target Spot in World Coordinates. - /// - private Vector3Double _targetSpotLocation = new Vector3Double(); - - /// - /// Position (meters) of Target Spot relative to Entity Position. - /// - private Vector3Float _targetSpotEntityLocation = new Vector3Float(); - - /// - /// Velocity (meters/sec) of Target Spot. - /// - private Vector3Float _targetSpotVelocity = new Vector3Float(); - - /// - /// Acceleration (meters/sec/sec) of Target Spot. - /// - private Vector3Float _targetSpotAcceleration = new Vector3Float(); - - /// - /// Unique ID of the target entity. - /// - private EntityID _targetEntityID = new EntityID(); - - /// - /// Target Component ID ENUM, same as in DamageDescriptionRecord. - /// - private byte _targetComponentID; - - /// - /// Spot Shape ENUM. - /// - private byte _SpotShape; - - /// - /// Beam Spot Cross Section Semi-Major Axis. - /// - private float _BeamSpotXSecSemiMajorAxis; - - /// - /// Beam Spot Cross Section Semi-Major Axis. - /// - private float _BeamSpotCrossSectionSemiMinorAxis; - - /// - /// Beam Spot Cross Section Orientation Angle. - /// - private float _BeamSpotCrossSectionOrientAngle; - - /// - /// Initializes a new instance of the class. - /// - public DirectedEnergyPrecisionAimpoint() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(DirectedEnergyPrecisionAimpoint left, DirectedEnergyPrecisionAimpoint right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(DirectedEnergyPrecisionAimpoint left, DirectedEnergyPrecisionAimpoint right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._recordType - marshalSize += 2; // this._recordLength - marshalSize += 2; // this._padding - marshalSize += this._targetSpotLocation.GetMarshalledSize(); // this._targetSpotLocation - marshalSize += this._targetSpotEntityLocation.GetMarshalledSize(); // this._targetSpotEntityLocation - marshalSize += this._targetSpotVelocity.GetMarshalledSize(); // this._targetSpotVelocity - marshalSize += this._targetSpotAcceleration.GetMarshalledSize(); // this._targetSpotAcceleration - marshalSize += this._targetEntityID.GetMarshalledSize(); // this._targetEntityID - marshalSize += 1; // this._targetComponentID - marshalSize += 1; // this._SpotShape - marshalSize += 4; // this._BeamSpotXSecSemiMajorAxis - marshalSize += 4; // this._BeamSpotCrossSectionSemiMinorAxis - marshalSize += 4; // this._BeamSpotCrossSectionOrientAngle - return marshalSize; - } - - /// - /// Gets or sets the Type of Record - /// - [XmlElement(Type = typeof(uint), ElementName = "recordType")] - public uint RecordType - { - get - { - return this._recordType; - } - - set - { - this._recordType = value; - } - } - - /// - /// Gets or sets the Length of Record - /// - [XmlElement(Type = typeof(ushort), ElementName = "recordLength")] - public ushort RecordLength - { - get - { - return this._recordLength; - } - - set - { - this._recordLength = value; - } - } - - /// - /// Gets or sets the Padding - /// - [XmlElement(Type = typeof(ushort), ElementName = "padding")] - public ushort Padding - { - get - { - return this._padding; - } - - set - { - this._padding = value; - } - } - - /// - /// Gets or sets the Position of Target Spot in World Coordinates. - /// - [XmlElement(Type = typeof(Vector3Double), ElementName = "targetSpotLocation")] - public Vector3Double TargetSpotLocation - { - get - { - return this._targetSpotLocation; - } - - set - { - this._targetSpotLocation = value; - } - } - - /// - /// Gets or sets the Position (meters) of Target Spot relative to Entity Position. - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "targetSpotEntityLocation")] - public Vector3Float TargetSpotEntityLocation - { - get - { - return this._targetSpotEntityLocation; - } - - set - { - this._targetSpotEntityLocation = value; - } - } - - /// - /// Gets or sets the Velocity (meters/sec) of Target Spot. - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "targetSpotVelocity")] - public Vector3Float TargetSpotVelocity - { - get - { - return this._targetSpotVelocity; - } - - set - { - this._targetSpotVelocity = value; - } - } - - /// - /// Gets or sets the Acceleration (meters/sec/sec) of Target Spot. - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "targetSpotAcceleration")] - public Vector3Float TargetSpotAcceleration - { - get - { - return this._targetSpotAcceleration; - } - - set - { - this._targetSpotAcceleration = value; - } - } - - /// - /// Gets or sets the Unique ID of the target entity. - /// - [XmlElement(Type = typeof(EntityID), ElementName = "targetEntityID")] - public EntityID TargetEntityID - { - get - { - return this._targetEntityID; - } - - set - { - this._targetEntityID = value; - } - } - - /// - /// Gets or sets the Target Component ID ENUM, same as in DamageDescriptionRecord. - /// - [XmlElement(Type = typeof(byte), ElementName = "targetComponentID")] - public byte TargetComponentID - { - get - { - return this._targetComponentID; - } - - set - { - this._targetComponentID = value; - } - } - - /// - /// Gets or sets the Spot Shape ENUM. - /// - [XmlElement(Type = typeof(byte), ElementName = "SpotShape")] - public byte SpotShape - { - get - { - return this._SpotShape; - } - - set - { - this._SpotShape = value; - } - } - - /// - /// Gets or sets the Beam Spot Cross Section Semi-Major Axis. - /// - [XmlElement(Type = typeof(float), ElementName = "BeamSpotXSecSemiMajorAxis")] - public float BeamSpotXSecSemiMajorAxis - { - get - { - return this._BeamSpotXSecSemiMajorAxis; - } - - set - { - this._BeamSpotXSecSemiMajorAxis = value; - } - } - - /// - /// Gets or sets the Beam Spot Cross Section Semi-Major Axis. - /// - [XmlElement(Type = typeof(float), ElementName = "BeamSpotCrossSectionSemiMinorAxis")] - public float BeamSpotCrossSectionSemiMinorAxis - { - get - { - return this._BeamSpotCrossSectionSemiMinorAxis; - } - - set - { - this._BeamSpotCrossSectionSemiMinorAxis = value; - } - } - - /// - /// Gets or sets the Beam Spot Cross Section Orientation Angle. - /// - [XmlElement(Type = typeof(float), ElementName = "BeamSpotCrossSectionOrientAngle")] - public float BeamSpotCrossSectionOrientAngle - { - get - { - return this._BeamSpotCrossSectionOrientAngle; - } - - set - { - this._BeamSpotCrossSectionOrientAngle = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._recordType); - dos.WriteUnsignedShort((ushort)this._recordLength); - dos.WriteUnsignedShort((ushort)this._padding); - this._targetSpotLocation.Marshal(dos); - this._targetSpotEntityLocation.Marshal(dos); - this._targetSpotVelocity.Marshal(dos); - this._targetSpotAcceleration.Marshal(dos); - this._targetEntityID.Marshal(dos); - dos.WriteUnsignedByte((byte)this._targetComponentID); - dos.WriteUnsignedByte((byte)this._SpotShape); - dos.WriteFloat((float)this._BeamSpotXSecSemiMajorAxis); - dos.WriteFloat((float)this._BeamSpotCrossSectionSemiMinorAxis); - dos.WriteFloat((float)this._BeamSpotCrossSectionOrientAngle); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._recordType = dis.ReadUnsignedInt(); - this._recordLength = dis.ReadUnsignedShort(); - this._padding = dis.ReadUnsignedShort(); - this._targetSpotLocation.Unmarshal(dis); - this._targetSpotEntityLocation.Unmarshal(dis); - this._targetSpotVelocity.Unmarshal(dis); - this._targetSpotAcceleration.Unmarshal(dis); - this._targetEntityID.Unmarshal(dis); - this._targetComponentID = dis.ReadUnsignedByte(); - this._SpotShape = dis.ReadUnsignedByte(); - this._BeamSpotXSecSemiMajorAxis = dis.ReadFloat(); - this._BeamSpotCrossSectionSemiMinorAxis = dis.ReadFloat(); - this._BeamSpotCrossSectionOrientAngle = dis.ReadFloat(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._recordType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._recordLength.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._targetSpotLocation.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._targetSpotEntityLocation.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._targetSpotVelocity.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._targetSpotAcceleration.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._targetEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._targetComponentID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._SpotShape.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._BeamSpotXSecSemiMajorAxis.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._BeamSpotCrossSectionSemiMinorAxis.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._BeamSpotCrossSectionOrientAngle.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as DirectedEnergyPrecisionAimpoint; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(DirectedEnergyPrecisionAimpoint obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._recordType != obj._recordType) - { - ivarsEqual = false; - } - - if (this._recordLength != obj._recordLength) - { - ivarsEqual = false; - } - - if (this._padding != obj._padding) - { - ivarsEqual = false; - } - - if (!this._targetSpotLocation.Equals(obj._targetSpotLocation)) - { - ivarsEqual = false; - } - - if (!this._targetSpotEntityLocation.Equals(obj._targetSpotEntityLocation)) - { - ivarsEqual = false; - } - - if (!this._targetSpotVelocity.Equals(obj._targetSpotVelocity)) - { - ivarsEqual = false; - } - - if (!this._targetSpotAcceleration.Equals(obj._targetSpotAcceleration)) - { - ivarsEqual = false; - } - - if (!this._targetEntityID.Equals(obj._targetEntityID)) - { - ivarsEqual = false; - } - - if (this._targetComponentID != obj._targetComponentID) - { - ivarsEqual = false; - } - - if (this._SpotShape != obj._SpotShape) - { - ivarsEqual = false; - } - - if (this._BeamSpotXSecSemiMajorAxis != obj._BeamSpotXSecSemiMajorAxis) - { - ivarsEqual = false; - } - - if (this._BeamSpotCrossSectionSemiMinorAxis != obj._BeamSpotCrossSectionSemiMinorAxis) - { - ivarsEqual = false; - } - - if (this._BeamSpotCrossSectionOrientAngle != obj._BeamSpotCrossSectionOrientAngle) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._recordType.GetHashCode(); - result = GenerateHash(result) ^ this._recordLength.GetHashCode(); - result = GenerateHash(result) ^ this._padding.GetHashCode(); - result = GenerateHash(result) ^ this._targetSpotLocation.GetHashCode(); - result = GenerateHash(result) ^ this._targetSpotEntityLocation.GetHashCode(); - result = GenerateHash(result) ^ this._targetSpotVelocity.GetHashCode(); - result = GenerateHash(result) ^ this._targetSpotAcceleration.GetHashCode(); - result = GenerateHash(result) ^ this._targetEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._targetComponentID.GetHashCode(); - result = GenerateHash(result) ^ this._SpotShape.GetHashCode(); - result = GenerateHash(result) ^ this._BeamSpotXSecSemiMajorAxis.GetHashCode(); - result = GenerateHash(result) ^ this._BeamSpotCrossSectionSemiMinorAxis.GetHashCode(); - result = GenerateHash(result) ^ this._BeamSpotCrossSectionOrientAngle.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/DirectedEnergyTargetEnergyDeposition.cs b/Libs/CSharpDis7/DirectedEnergyTargetEnergyDeposition.cs deleted file mode 100644 index 1b0a133..0000000 --- a/Libs/CSharpDis7/DirectedEnergyTargetEnergyDeposition.cs +++ /dev/null @@ -1,344 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// DE energy depostion properties for a target entity. Section 6.2.21.4 - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - public partial class DirectedEnergyTargetEnergyDeposition - { - /// - /// Unique ID of the target entity. - /// - private EntityID _targetEntityID = new EntityID(); - - /// - /// padding - /// - private ushort _padding; - - /// - /// Peak irrandiance - /// - private float _peakIrradiance; - - /// - /// Initializes a new instance of the class. - /// - public DirectedEnergyTargetEnergyDeposition() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(DirectedEnergyTargetEnergyDeposition left, DirectedEnergyTargetEnergyDeposition right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(DirectedEnergyTargetEnergyDeposition left, DirectedEnergyTargetEnergyDeposition right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += this._targetEntityID.GetMarshalledSize(); // this._targetEntityID - marshalSize += 2; // this._padding - marshalSize += 4; // this._peakIrradiance - return marshalSize; - } - - /// - /// Gets or sets the Unique ID of the target entity. - /// - [XmlElement(Type = typeof(EntityID), ElementName = "targetEntityID")] - public EntityID TargetEntityID - { - get - { - return this._targetEntityID; - } - - set - { - this._targetEntityID = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(ushort), ElementName = "padding")] - public ushort Padding - { - get - { - return this._padding; - } - - set - { - this._padding = value; - } - } - - /// - /// Gets or sets the Peak irrandiance - /// - [XmlElement(Type = typeof(float), ElementName = "peakIrradiance")] - public float PeakIrradiance - { - get - { - return this._peakIrradiance; - } - - set - { - this._peakIrradiance = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - this._targetEntityID.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._padding); - dos.WriteFloat((float)this._peakIrradiance); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._targetEntityID.Unmarshal(dis); - this._padding = dis.ReadUnsignedShort(); - this._peakIrradiance = dis.ReadFloat(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine(""); - this._targetEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._peakIrradiance.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as DirectedEnergyTargetEnergyDeposition; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(DirectedEnergyTargetEnergyDeposition obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (!this._targetEntityID.Equals(obj._targetEntityID)) - { - ivarsEqual = false; - } - - if (this._padding != obj._padding) - { - ivarsEqual = false; - } - - if (this._peakIrradiance != obj._peakIrradiance) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._targetEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._padding.GetHashCode(); - result = GenerateHash(result) ^ this._peakIrradiance.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/DistributedEmissionsFamilyPdu.cs b/Libs/CSharpDis7/DistributedEmissionsFamilyPdu.cs deleted file mode 100644 index 1afa67b..0000000 --- a/Libs/CSharpDis7/DistributedEmissionsFamilyPdu.cs +++ /dev/null @@ -1,248 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Section 5.3.7. Electronic Emissions. Abstract superclass for distirubted emissions PDU - /// - [Serializable] - [XmlRoot] - public partial class DistributedEmissionsFamilyPdu : Pdu, IEquatable - { - /// - /// Initializes a new instance of the class. - /// - public DistributedEmissionsFamilyPdu() - { - ProtocolFamily = (byte)6; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(DistributedEmissionsFamilyPdu left, DistributedEmissionsFamilyPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(DistributedEmissionsFamilyPdu left, DistributedEmissionsFamilyPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - return marshalSize; - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public virtual void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as DistributedEmissionsFamilyPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(DistributedEmissionsFamilyPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/EEFundamentalParameterData.cs b/Libs/CSharpDis7/EEFundamentalParameterData.cs deleted file mode 100644 index d6d6483..0000000 --- a/Libs/CSharpDis7/EEFundamentalParameterData.cs +++ /dev/null @@ -1,405 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Contains electromagnetic emmission regeneration parameters that are variable throught a scenario. Section 6.2.22. - /// - [Serializable] - [XmlRoot] - public partial class EEFundamentalParameterData - { - /// - /// center frequency of the emission in hertz. - /// - private float _frequency; - - /// - /// Bandwidth of the frequencies corresponding to the fequency field. - /// - private float _frequencyRange; - - /// - /// Effective radiated power for the emission in DdBm. For a radar noise jammer, indicates the peak of the transmitted power. - /// - private float _effectiveRadiatedPower; - - /// - /// Average repetition frequency of the emission in hertz. - /// - private float _pulseRepetitionFrequency; - - /// - /// Average pulse width of the emission in microseconds. - /// - private float _pulseWidth; - - /// - /// Initializes a new instance of the class. - /// - public EEFundamentalParameterData() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(EEFundamentalParameterData left, EEFundamentalParameterData right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(EEFundamentalParameterData left, EEFundamentalParameterData right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._frequency - marshalSize += 4; // this._frequencyRange - marshalSize += 4; // this._effectiveRadiatedPower - marshalSize += 4; // this._pulseRepetitionFrequency - marshalSize += 4; // this._pulseWidth - return marshalSize; - } - - /// - /// Gets or sets the center frequency of the emission in hertz. - /// - [XmlElement(Type = typeof(float), ElementName = "frequency")] - public float Frequency - { - get - { - return this._frequency; - } - - set - { - this._frequency = value; - } - } - - /// - /// Gets or sets the Bandwidth of the frequencies corresponding to the fequency field. - /// - [XmlElement(Type = typeof(float), ElementName = "frequencyRange")] - public float FrequencyRange - { - get - { - return this._frequencyRange; - } - - set - { - this._frequencyRange = value; - } - } - - /// - /// Gets or sets the Effective radiated power for the emission in DdBm. For a radar noise jammer, indicates the peak of the transmitted power. - /// - [XmlElement(Type = typeof(float), ElementName = "effectiveRadiatedPower")] - public float EffectiveRadiatedPower - { - get - { - return this._effectiveRadiatedPower; - } - - set - { - this._effectiveRadiatedPower = value; - } - } - - /// - /// Gets or sets the Average repetition frequency of the emission in hertz. - /// - [XmlElement(Type = typeof(float), ElementName = "pulseRepetitionFrequency")] - public float PulseRepetitionFrequency - { - get - { - return this._pulseRepetitionFrequency; - } - - set - { - this._pulseRepetitionFrequency = value; - } - } - - /// - /// Gets or sets the Average pulse width of the emission in microseconds. - /// - [XmlElement(Type = typeof(float), ElementName = "pulseWidth")] - public float PulseWidth - { - get - { - return this._pulseWidth; - } - - set - { - this._pulseWidth = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteFloat((float)this._frequency); - dos.WriteFloat((float)this._frequencyRange); - dos.WriteFloat((float)this._effectiveRadiatedPower); - dos.WriteFloat((float)this._pulseRepetitionFrequency); - dos.WriteFloat((float)this._pulseWidth); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._frequency = dis.ReadFloat(); - this._frequencyRange = dis.ReadFloat(); - this._effectiveRadiatedPower = dis.ReadFloat(); - this._pulseRepetitionFrequency = dis.ReadFloat(); - this._pulseWidth = dis.ReadFloat(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._frequency.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._frequencyRange.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._effectiveRadiatedPower.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pulseRepetitionFrequency.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pulseWidth.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as EEFundamentalParameterData; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(EEFundamentalParameterData obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._frequency != obj._frequency) - { - ivarsEqual = false; - } - - if (this._frequencyRange != obj._frequencyRange) - { - ivarsEqual = false; - } - - if (this._effectiveRadiatedPower != obj._effectiveRadiatedPower) - { - ivarsEqual = false; - } - - if (this._pulseRepetitionFrequency != obj._pulseRepetitionFrequency) - { - ivarsEqual = false; - } - - if (this._pulseWidth != obj._pulseWidth) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._frequency.GetHashCode(); - result = GenerateHash(result) ^ this._frequencyRange.GetHashCode(); - result = GenerateHash(result) ^ this._effectiveRadiatedPower.GetHashCode(); - result = GenerateHash(result) ^ this._pulseRepetitionFrequency.GetHashCode(); - result = GenerateHash(result) ^ this._pulseWidth.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/EightByteChunk.cs b/Libs/CSharpDis7/EightByteChunk.cs deleted file mode 100644 index 188fa8d..0000000 --- a/Libs/CSharpDis7/EightByteChunk.cs +++ /dev/null @@ -1,303 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// 64 bit piece of data - /// - [Serializable] - [XmlRoot] - public partial class EightByteChunk - { - /// - /// Eight bytes of arbitrary data - /// - private byte[] _otherParameters = new byte[8]; - - /// - /// Initializes a new instance of the class. - /// - public EightByteChunk() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(EightByteChunk left, EightByteChunk right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(EightByteChunk left, EightByteChunk right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 8 * 1; // _otherParameters - return marshalSize; - } - - /// - /// Gets or sets the Eight bytes of arbitrary data - /// - [XmlArray(ElementName = "otherParameters")] - public byte[] OtherParameters - { - get - { - return this._otherParameters; - } - - set - { - this._otherParameters = value; - } -} - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - - for (int idx = 0; idx < this._otherParameters.Length; idx++) - { - dos.WriteByte(this._otherParameters[idx]); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - for (int idx = 0; idx < this._otherParameters.Length; idx++) - { - this._otherParameters[idx] = dis.ReadByte(); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - for (int idx = 0; idx < this._otherParameters.Length; idx++) - { - sb.AppendLine("" + this._otherParameters[idx] + ""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as EightByteChunk; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(EightByteChunk obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (obj._otherParameters.Length != 8) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < 8; idx++) - { - if (this._otherParameters[idx] != obj._otherParameters[idx]) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - - for (int idx = 0; idx < 8; idx++) - { - result = GenerateHash(result) ^ this._otherParameters[idx].GetHashCode(); - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/ElectronicEmissionsPdu.cs b/Libs/CSharpDis7/ElectronicEmissionsPdu.cs deleted file mode 100644 index 35133a0..0000000 --- a/Libs/CSharpDis7/ElectronicEmissionsPdu.cs +++ /dev/null @@ -1,620 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Section 5.3.7.1. Information about active electronic warfare (EW) emissions and active EW countermeasures shall be communicated using an Electromagnetic Emission PDU. NOT COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(EventIdentifier))] - [XmlInclude(typeof(EmitterSystem))] - [XmlInclude(typeof(Vector3Float))] - [XmlInclude(typeof(Vector3Float))] - public partial class ElectronicEmissionsPdu : DistributedEmissionsFamilyPdu, IEquatable - { - /// - /// ID of the entity emitting - /// - private EntityID _emittingEntityID = new EntityID(); - - /// - /// ID of event - /// - private EventIdentifier _eventID = new EventIdentifier(); - - /// - /// This field shall be used to indicate if the data in the PDU represents a state update or just data that has changed since issuance of the last Electromagnetic Emission PDU [relative to the identified entity and emission system(s)]. - /// - private byte _stateUpdateIndicator; - - /// - /// This field shall specify the number of emission systems being described in the current PDU. - /// - private byte _numberOfSystems; - - /// - /// padding - /// - private ushort _paddingForEmissionsPdu; - - /// - /// this field shall specify the length of this emitter system's data in 32-bit words. - /// - private byte _systemDataLength; - - /// - /// the number of beams being described in the current PDU for the emitter system being described. - /// - private byte _numberOfBeams; - - /// - /// information about a particular emitter system and shall be represented by an Emitter System record (see 6.2.23). - /// - private EmitterSystem _emitterSystem = new EmitterSystem(); - - /// - /// the location of the antenna beam source with respect to the emitting entity's coordinate system. This location shall be the origin of the emitter coordinate system that shall have the same orientation as the entity coordinate system. This field shall be represented by an Entity Coordinate Vector record see 6.2.95 - /// - private Vector3Float _location = new Vector3Float(); - - /// - /// Electronic emmissions systems THIS IS WRONG. It has the WRONG class type and will cause problems in any marshalling. - /// - private List _systems = new List(); - - /// - /// Initializes a new instance of the class. - /// - public ElectronicEmissionsPdu() - { - PduType = (byte)23; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ElectronicEmissionsPdu left, ElectronicEmissionsPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ElectronicEmissionsPdu left, ElectronicEmissionsPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._emittingEntityID.GetMarshalledSize(); // this._emittingEntityID - marshalSize += this._eventID.GetMarshalledSize(); // this._eventID - marshalSize += 1; // this._stateUpdateIndicator - marshalSize += 1; // this._numberOfSystems - marshalSize += 2; // this._paddingForEmissionsPdu - marshalSize += 1; // this._systemDataLength - marshalSize += 1; // this._numberOfBeams - marshalSize += this._emitterSystem.GetMarshalledSize(); // this._emitterSystem - marshalSize += this._location.GetMarshalledSize(); // this._location - for (int idx = 0; idx < this._systems.Count; idx++) - { - Vector3Float listElement = (Vector3Float)this._systems[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the ID of the entity emitting - /// - [XmlElement(Type = typeof(EntityID), ElementName = "emittingEntityID")] - public EntityID EmittingEntityID - { - get - { - return this._emittingEntityID; - } - - set - { - this._emittingEntityID = value; - } - } - - /// - /// Gets or sets the ID of event - /// - [XmlElement(Type = typeof(EventIdentifier), ElementName = "eventID")] - public EventIdentifier EventID - { - get - { - return this._eventID; - } - - set - { - this._eventID = value; - } - } - - /// - /// Gets or sets the This field shall be used to indicate if the data in the PDU represents a state update or just data that has changed since issuance of the last Electromagnetic Emission PDU [relative to the identified entity and emission system(s)]. - /// - [XmlElement(Type = typeof(byte), ElementName = "stateUpdateIndicator")] - public byte StateUpdateIndicator - { - get - { - return this._stateUpdateIndicator; - } - - set - { - this._stateUpdateIndicator = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfSystems method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfSystems")] - public byte NumberOfSystems - { - get - { - return this._numberOfSystems; - } - - set - { - this._numberOfSystems = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(ushort), ElementName = "paddingForEmissionsPdu")] - public ushort PaddingForEmissionsPdu - { - get - { - return this._paddingForEmissionsPdu; - } - - set - { - this._paddingForEmissionsPdu = value; - } - } - - /// - /// Gets or sets the this field shall specify the length of this emitter system's data in 32-bit words. - /// - [XmlElement(Type = typeof(byte), ElementName = "systemDataLength")] - public byte SystemDataLength - { - get - { - return this._systemDataLength; - } - - set - { - this._systemDataLength = value; - } - } - - /// - /// Gets or sets the the number of beams being described in the current PDU for the emitter system being described. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfBeams")] - public byte NumberOfBeams - { - get - { - return this._numberOfBeams; - } - - set - { - this._numberOfBeams = value; - } - } - - /// - /// Gets or sets the information about a particular emitter system and shall be represented by an Emitter System record (see 6.2.23). - /// - [XmlElement(Type = typeof(EmitterSystem), ElementName = "emitterSystem")] - public EmitterSystem EmitterSystem - { - get - { - return this._emitterSystem; - } - - set - { - this._emitterSystem = value; - } - } - - /// - /// Gets or sets the the location of the antenna beam source with respect to the emitting entity's coordinate system. This location shall be the origin of the emitter coordinate system that shall have the same orientation as the entity coordinate system. This field shall be represented by an Entity Coordinate Vector record see 6.2.95 - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "location")] - public Vector3Float Location - { - get - { - return this._location; - } - - set - { - this._location = value; - } - } - - /// - /// Gets or sets the Electronic emmissions systems THIS IS WRONG. It has the WRONG class type and will cause problems in any marshalling. - /// - [XmlElement(ElementName = "systemsList", Type = typeof(List))] - public List Systems - { - get - { - return this._systems; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._emittingEntityID.Marshal(dos); - this._eventID.Marshal(dos); - dos.WriteUnsignedByte((byte)this._stateUpdateIndicator); - dos.WriteUnsignedByte((byte)this._systems.Count); - dos.WriteUnsignedShort((ushort)this._paddingForEmissionsPdu); - dos.WriteUnsignedByte((byte)this._systemDataLength); - dos.WriteUnsignedByte((byte)this._numberOfBeams); - this._emitterSystem.Marshal(dos); - this._location.Marshal(dos); - - for (int idx = 0; idx < this._systems.Count; idx++) - { - Vector3Float aVector3Float = (Vector3Float)this._systems[idx]; - aVector3Float.Marshal(dos); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._emittingEntityID.Unmarshal(dis); - this._eventID.Unmarshal(dis); - this._stateUpdateIndicator = dis.ReadUnsignedByte(); - this._numberOfSystems = dis.ReadUnsignedByte(); - this._paddingForEmissionsPdu = dis.ReadUnsignedShort(); - this._systemDataLength = dis.ReadUnsignedByte(); - this._numberOfBeams = dis.ReadUnsignedByte(); - this._emitterSystem.Unmarshal(dis); - this._location.Unmarshal(dis); - for (int idx = 0; idx < this.NumberOfSystems; idx++) - { - Vector3Float anX = new Vector3Float(); - anX.Unmarshal(dis); - this._systems.Add(anX); - }; - - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._emittingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._eventID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._stateUpdateIndicator.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._systems.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._paddingForEmissionsPdu.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._systemDataLength.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._numberOfBeams.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._emitterSystem.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._location.Reflection(sb); - sb.AppendLine(""); - for (int idx = 0; idx < this._systems.Count; idx++) - { - sb.AppendLine(""); - Vector3Float aVector3Float = (Vector3Float)this._systems[idx]; - aVector3Float.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ElectronicEmissionsPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ElectronicEmissionsPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._emittingEntityID.Equals(obj._emittingEntityID)) - { - ivarsEqual = false; - } - - if (!this._eventID.Equals(obj._eventID)) - { - ivarsEqual = false; - } - - if (this._stateUpdateIndicator != obj._stateUpdateIndicator) - { - ivarsEqual = false; - } - - if (this._numberOfSystems != obj._numberOfSystems) - { - ivarsEqual = false; - } - - if (this._paddingForEmissionsPdu != obj._paddingForEmissionsPdu) - { - ivarsEqual = false; - } - - if (this._systemDataLength != obj._systemDataLength) - { - ivarsEqual = false; - } - - if (this._numberOfBeams != obj._numberOfBeams) - { - ivarsEqual = false; - } - - if (!this._emitterSystem.Equals(obj._emitterSystem)) - { - ivarsEqual = false; - } - - if (!this._location.Equals(obj._location)) - { - ivarsEqual = false; - } - - if (this._systems.Count != obj._systems.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._systems.Count; idx++) - { - if (!this._systems[idx].Equals(obj._systems[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._emittingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._eventID.GetHashCode(); - result = GenerateHash(result) ^ this._stateUpdateIndicator.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfSystems.GetHashCode(); - result = GenerateHash(result) ^ this._paddingForEmissionsPdu.GetHashCode(); - result = GenerateHash(result) ^ this._systemDataLength.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfBeams.GetHashCode(); - result = GenerateHash(result) ^ this._emitterSystem.GetHashCode(); - result = GenerateHash(result) ^ this._location.GetHashCode(); - - if (this._systems.Count > 0) - { - for (int idx = 0; idx < this._systems.Count; idx++) - { - result = GenerateHash(result) ^ this._systems[idx].GetHashCode(); - } - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/EmitterSystem.cs b/Libs/CSharpDis7/EmitterSystem.cs deleted file mode 100644 index 102f3f9..0000000 --- a/Libs/CSharpDis7/EmitterSystem.cs +++ /dev/null @@ -1,341 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// This field shall specify information about a particular emitter system. Section 6.2.23. - /// - [Serializable] - [XmlRoot] - public partial class EmitterSystem - { - /// - /// Name of the emitter, 16 bit enumeration - /// - private ushort _emitterName; - - /// - /// function of the emitter, 8 bit enumeration - /// - private byte _function; - - /// - /// emitter ID, 8 bit enumeration - /// - private byte _emitterIdNumber; - - /// - /// Initializes a new instance of the class. - /// - public EmitterSystem() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(EmitterSystem left, EmitterSystem right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(EmitterSystem left, EmitterSystem right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 2; // this._emitterName - marshalSize += 1; // this._function - marshalSize += 1; // this._emitterIdNumber - return marshalSize; - } - - /// - /// Gets or sets the Name of the emitter, 16 bit enumeration - /// - [XmlElement(Type = typeof(ushort), ElementName = "emitterName")] - public ushort EmitterName - { - get - { - return this._emitterName; - } - - set - { - this._emitterName = value; - } - } - - /// - /// Gets or sets the function of the emitter, 8 bit enumeration - /// - [XmlElement(Type = typeof(byte), ElementName = "function")] - public byte Function - { - get - { - return this._function; - } - - set - { - this._function = value; - } - } - - /// - /// Gets or sets the emitter ID, 8 bit enumeration - /// - [XmlElement(Type = typeof(byte), ElementName = "emitterIdNumber")] - public byte EmitterIdNumber - { - get - { - return this._emitterIdNumber; - } - - set - { - this._emitterIdNumber = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._emitterName); - dos.WriteUnsignedByte((byte)this._function); - dos.WriteUnsignedByte((byte)this._emitterIdNumber); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._emitterName = dis.ReadUnsignedShort(); - this._function = dis.ReadUnsignedByte(); - this._emitterIdNumber = dis.ReadUnsignedByte(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._emitterName.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._function.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._emitterIdNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as EmitterSystem; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(EmitterSystem obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._emitterName != obj._emitterName) - { - ivarsEqual = false; - } - - if (this._function != obj._function) - { - ivarsEqual = false; - } - - if (this._emitterIdNumber != obj._emitterIdNumber) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._emitterName.GetHashCode(); - result = GenerateHash(result) ^ this._function.GetHashCode(); - result = GenerateHash(result) ^ this._emitterIdNumber.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/EngineFuel.cs b/Libs/CSharpDis7/EngineFuel.cs deleted file mode 100644 index ee06643..0000000 --- a/Libs/CSharpDis7/EngineFuel.cs +++ /dev/null @@ -1,405 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Information about an entity's engine fuel. Section 6.2.24. - /// - [Serializable] - [XmlRoot] - public partial class EngineFuel - { - /// - /// Fuel quantity, units specified by next field - /// - private uint _fuelQuantity; - - /// - /// Units in which the fuel is measured - /// - private byte _fuelMeasurementUnits; - - /// - /// Type of fuel - /// - private byte _fuelType; - - /// - /// Location of fuel as related to entity. See section 14 of EBV document - /// - private byte _fuelLocation; - - /// - /// padding - /// - private byte _padding; - - /// - /// Initializes a new instance of the class. - /// - public EngineFuel() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(EngineFuel left, EngineFuel right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(EngineFuel left, EngineFuel right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._fuelQuantity - marshalSize += 1; // this._fuelMeasurementUnits - marshalSize += 1; // this._fuelType - marshalSize += 1; // this._fuelLocation - marshalSize += 1; // this._padding - return marshalSize; - } - - /// - /// Gets or sets the Fuel quantity, units specified by next field - /// - [XmlElement(Type = typeof(uint), ElementName = "fuelQuantity")] - public uint FuelQuantity - { - get - { - return this._fuelQuantity; - } - - set - { - this._fuelQuantity = value; - } - } - - /// - /// Gets or sets the Units in which the fuel is measured - /// - [XmlElement(Type = typeof(byte), ElementName = "fuelMeasurementUnits")] - public byte FuelMeasurementUnits - { - get - { - return this._fuelMeasurementUnits; - } - - set - { - this._fuelMeasurementUnits = value; - } - } - - /// - /// Gets or sets the Type of fuel - /// - [XmlElement(Type = typeof(byte), ElementName = "fuelType")] - public byte FuelType - { - get - { - return this._fuelType; - } - - set - { - this._fuelType = value; - } - } - - /// - /// Gets or sets the Location of fuel as related to entity. See section 14 of EBV document - /// - [XmlElement(Type = typeof(byte), ElementName = "fuelLocation")] - public byte FuelLocation - { - get - { - return this._fuelLocation; - } - - set - { - this._fuelLocation = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "padding")] - public byte Padding - { - get - { - return this._padding; - } - - set - { - this._padding = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._fuelQuantity); - dos.WriteUnsignedByte((byte)this._fuelMeasurementUnits); - dos.WriteUnsignedByte((byte)this._fuelType); - dos.WriteUnsignedByte((byte)this._fuelLocation); - dos.WriteUnsignedByte((byte)this._padding); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._fuelQuantity = dis.ReadUnsignedInt(); - this._fuelMeasurementUnits = dis.ReadUnsignedByte(); - this._fuelType = dis.ReadUnsignedByte(); - this._fuelLocation = dis.ReadUnsignedByte(); - this._padding = dis.ReadUnsignedByte(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._fuelQuantity.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fuelMeasurementUnits.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fuelType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fuelLocation.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as EngineFuel; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(EngineFuel obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._fuelQuantity != obj._fuelQuantity) - { - ivarsEqual = false; - } - - if (this._fuelMeasurementUnits != obj._fuelMeasurementUnits) - { - ivarsEqual = false; - } - - if (this._fuelType != obj._fuelType) - { - ivarsEqual = false; - } - - if (this._fuelLocation != obj._fuelLocation) - { - ivarsEqual = false; - } - - if (this._padding != obj._padding) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._fuelQuantity.GetHashCode(); - result = GenerateHash(result) ^ this._fuelMeasurementUnits.GetHashCode(); - result = GenerateHash(result) ^ this._fuelType.GetHashCode(); - result = GenerateHash(result) ^ this._fuelLocation.GetHashCode(); - result = GenerateHash(result) ^ this._padding.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/EngineFuelReload.cs b/Libs/CSharpDis7/EngineFuelReload.cs deleted file mode 100644 index 9685423..0000000 --- a/Libs/CSharpDis7/EngineFuelReload.cs +++ /dev/null @@ -1,469 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// For each type or location of engine fuell, this record specifies the type, location, fuel measurement units, and reload quantity and maximum quantity. Section 6.2.25. - /// - [Serializable] - [XmlRoot] - public partial class EngineFuelReload - { - /// - /// standard quantity of fuel loaded - /// - private uint _standardQuantity; - - /// - /// maximum quantity of fuel loaded - /// - private uint _maximumQuantity; - - /// - /// seconds normally required to to reload standard qty - /// - private uint _standardQuantityReloadTime; - - /// - /// seconds normally required to to reload maximum qty - /// - private uint _maximumQuantityReloadTime; - - /// - /// Units of measure - /// - private byte _fuelMeasurmentUnits; - - /// - /// fuel location as related to the entity - /// - private byte _fuelLocation; - - /// - /// padding - /// - private byte _padding; - - /// - /// Initializes a new instance of the class. - /// - public EngineFuelReload() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(EngineFuelReload left, EngineFuelReload right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(EngineFuelReload left, EngineFuelReload right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._standardQuantity - marshalSize += 4; // this._maximumQuantity - marshalSize += 4; // this._standardQuantityReloadTime - marshalSize += 4; // this._maximumQuantityReloadTime - marshalSize += 1; // this._fuelMeasurmentUnits - marshalSize += 1; // this._fuelLocation - marshalSize += 1; // this._padding - return marshalSize; - } - - /// - /// Gets or sets the standard quantity of fuel loaded - /// - [XmlElement(Type = typeof(uint), ElementName = "standardQuantity")] - public uint StandardQuantity - { - get - { - return this._standardQuantity; - } - - set - { - this._standardQuantity = value; - } - } - - /// - /// Gets or sets the maximum quantity of fuel loaded - /// - [XmlElement(Type = typeof(uint), ElementName = "maximumQuantity")] - public uint MaximumQuantity - { - get - { - return this._maximumQuantity; - } - - set - { - this._maximumQuantity = value; - } - } - - /// - /// Gets or sets the seconds normally required to to reload standard qty - /// - [XmlElement(Type = typeof(uint), ElementName = "standardQuantityReloadTime")] - public uint StandardQuantityReloadTime - { - get - { - return this._standardQuantityReloadTime; - } - - set - { - this._standardQuantityReloadTime = value; - } - } - - /// - /// Gets or sets the seconds normally required to to reload maximum qty - /// - [XmlElement(Type = typeof(uint), ElementName = "maximumQuantityReloadTime")] - public uint MaximumQuantityReloadTime - { - get - { - return this._maximumQuantityReloadTime; - } - - set - { - this._maximumQuantityReloadTime = value; - } - } - - /// - /// Gets or sets the Units of measure - /// - [XmlElement(Type = typeof(byte), ElementName = "fuelMeasurmentUnits")] - public byte FuelMeasurmentUnits - { - get - { - return this._fuelMeasurmentUnits; - } - - set - { - this._fuelMeasurmentUnits = value; - } - } - - /// - /// Gets or sets the fuel location as related to the entity - /// - [XmlElement(Type = typeof(byte), ElementName = "fuelLocation")] - public byte FuelLocation - { - get - { - return this._fuelLocation; - } - - set - { - this._fuelLocation = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "padding")] - public byte Padding - { - get - { - return this._padding; - } - - set - { - this._padding = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._standardQuantity); - dos.WriteUnsignedInt((uint)this._maximumQuantity); - dos.WriteUnsignedInt((uint)this._standardQuantityReloadTime); - dos.WriteUnsignedInt((uint)this._maximumQuantityReloadTime); - dos.WriteUnsignedByte((byte)this._fuelMeasurmentUnits); - dos.WriteUnsignedByte((byte)this._fuelLocation); - dos.WriteUnsignedByte((byte)this._padding); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._standardQuantity = dis.ReadUnsignedInt(); - this._maximumQuantity = dis.ReadUnsignedInt(); - this._standardQuantityReloadTime = dis.ReadUnsignedInt(); - this._maximumQuantityReloadTime = dis.ReadUnsignedInt(); - this._fuelMeasurmentUnits = dis.ReadUnsignedByte(); - this._fuelLocation = dis.ReadUnsignedByte(); - this._padding = dis.ReadUnsignedByte(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._standardQuantity.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._maximumQuantity.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._standardQuantityReloadTime.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._maximumQuantityReloadTime.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fuelMeasurmentUnits.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fuelLocation.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as EngineFuelReload; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(EngineFuelReload obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._standardQuantity != obj._standardQuantity) - { - ivarsEqual = false; - } - - if (this._maximumQuantity != obj._maximumQuantity) - { - ivarsEqual = false; - } - - if (this._standardQuantityReloadTime != obj._standardQuantityReloadTime) - { - ivarsEqual = false; - } - - if (this._maximumQuantityReloadTime != obj._maximumQuantityReloadTime) - { - ivarsEqual = false; - } - - if (this._fuelMeasurmentUnits != obj._fuelMeasurmentUnits) - { - ivarsEqual = false; - } - - if (this._fuelLocation != obj._fuelLocation) - { - ivarsEqual = false; - } - - if (this._padding != obj._padding) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._standardQuantity.GetHashCode(); - result = GenerateHash(result) ^ this._maximumQuantity.GetHashCode(); - result = GenerateHash(result) ^ this._standardQuantityReloadTime.GetHashCode(); - result = GenerateHash(result) ^ this._maximumQuantityReloadTime.GetHashCode(); - result = GenerateHash(result) ^ this._fuelMeasurmentUnits.GetHashCode(); - result = GenerateHash(result) ^ this._fuelLocation.GetHashCode(); - result = GenerateHash(result) ^ this._padding.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/EntityAssociation.cs b/Libs/CSharpDis7/EntityAssociation.cs deleted file mode 100644 index 4e89f43..0000000 --- a/Libs/CSharpDis7/EntityAssociation.cs +++ /dev/null @@ -1,536 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Association or disassociation of two entities. Section 6.2.93.4 - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - public partial class EntityAssociation - { - /// - /// the identification of the Variable Parameter record. Enumeration from EBV - /// - private byte _recordType = 2; - - /// - /// Indicates if this VP has changed since last issuance - /// - private byte _changeIndicator; - - /// - /// Indicates association status between two entities; 8 bit enum - /// - private byte _associationStatus; - - /// - /// Type of association; 8 bit enum - /// - private byte _associationType; - - /// - /// Object ID of entity associated with this entity - /// - private EntityID _entityID = new EntityID(); - - /// - /// Station location on one's own entity. EBV doc. - /// - private ushort _owsSttionLocation; - - /// - /// Type of physical connection. EBV doc - /// - private ushort _physicalConnectionType; - - /// - /// Type of member the entity is within th egroup - /// - private byte _groupMemberType; - - /// - /// Group if any to which the entity belongs - /// - private ushort _groupNumber; - - /// - /// Initializes a new instance of the class. - /// - public EntityAssociation() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(EntityAssociation left, EntityAssociation right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(EntityAssociation left, EntityAssociation right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._recordType - marshalSize += 1; // this._changeIndicator - marshalSize += 1; // this._associationStatus - marshalSize += 1; // this._associationType - marshalSize += this._entityID.GetMarshalledSize(); // this._entityID - marshalSize += 2; // this._owsSttionLocation - marshalSize += 2; // this._physicalConnectionType - marshalSize += 1; // this._groupMemberType - marshalSize += 2; // this._groupNumber - return marshalSize; - } - - /// - /// Gets or sets the the identification of the Variable Parameter record. Enumeration from EBV - /// - [XmlElement(Type = typeof(byte), ElementName = "recordType")] - public byte RecordType - { - get - { - return this._recordType; - } - - set - { - this._recordType = value; - } - } - - /// - /// Gets or sets the Indicates if this VP has changed since last issuance - /// - [XmlElement(Type = typeof(byte), ElementName = "changeIndicator")] - public byte ChangeIndicator - { - get - { - return this._changeIndicator; - } - - set - { - this._changeIndicator = value; - } - } - - /// - /// Gets or sets the Indicates association status between two entities; 8 bit enum - /// - [XmlElement(Type = typeof(byte), ElementName = "associationStatus")] - public byte AssociationStatus - { - get - { - return this._associationStatus; - } - - set - { - this._associationStatus = value; - } - } - - /// - /// Gets or sets the Type of association; 8 bit enum - /// - [XmlElement(Type = typeof(byte), ElementName = "associationType")] - public byte AssociationType - { - get - { - return this._associationType; - } - - set - { - this._associationType = value; - } - } - - /// - /// Gets or sets the Object ID of entity associated with this entity - /// - [XmlElement(Type = typeof(EntityID), ElementName = "entityID")] - public EntityID EntityID - { - get - { - return this._entityID; - } - - set - { - this._entityID = value; - } - } - - /// - /// Gets or sets the Station location on one's own entity. EBV doc. - /// - [XmlElement(Type = typeof(ushort), ElementName = "owsSttionLocation")] - public ushort OwsSttionLocation - { - get - { - return this._owsSttionLocation; - } - - set - { - this._owsSttionLocation = value; - } - } - - /// - /// Gets or sets the Type of physical connection. EBV doc - /// - [XmlElement(Type = typeof(ushort), ElementName = "physicalConnectionType")] - public ushort PhysicalConnectionType - { - get - { - return this._physicalConnectionType; - } - - set - { - this._physicalConnectionType = value; - } - } - - /// - /// Gets or sets the Type of member the entity is within th egroup - /// - [XmlElement(Type = typeof(byte), ElementName = "groupMemberType")] - public byte GroupMemberType - { - get - { - return this._groupMemberType; - } - - set - { - this._groupMemberType = value; - } - } - - /// - /// Gets or sets the Group if any to which the entity belongs - /// - [XmlElement(Type = typeof(ushort), ElementName = "groupNumber")] - public ushort GroupNumber - { - get - { - return this._groupNumber; - } - - set - { - this._groupNumber = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._recordType); - dos.WriteUnsignedByte((byte)this._changeIndicator); - dos.WriteUnsignedByte((byte)this._associationStatus); - dos.WriteUnsignedByte((byte)this._associationType); - this._entityID.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._owsSttionLocation); - dos.WriteUnsignedShort((ushort)this._physicalConnectionType); - dos.WriteUnsignedByte((byte)this._groupMemberType); - dos.WriteUnsignedShort((ushort)this._groupNumber); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._recordType = dis.ReadUnsignedByte(); - this._changeIndicator = dis.ReadUnsignedByte(); - this._associationStatus = dis.ReadUnsignedByte(); - this._associationType = dis.ReadUnsignedByte(); - this._entityID.Unmarshal(dis); - this._owsSttionLocation = dis.ReadUnsignedShort(); - this._physicalConnectionType = dis.ReadUnsignedShort(); - this._groupMemberType = dis.ReadUnsignedByte(); - this._groupNumber = dis.ReadUnsignedShort(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._recordType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._changeIndicator.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._associationStatus.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._associationType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._entityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._owsSttionLocation.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._physicalConnectionType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._groupMemberType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._groupNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as EntityAssociation; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(EntityAssociation obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._recordType != obj._recordType) - { - ivarsEqual = false; - } - - if (this._changeIndicator != obj._changeIndicator) - { - ivarsEqual = false; - } - - if (this._associationStatus != obj._associationStatus) - { - ivarsEqual = false; - } - - if (this._associationType != obj._associationType) - { - ivarsEqual = false; - } - - if (!this._entityID.Equals(obj._entityID)) - { - ivarsEqual = false; - } - - if (this._owsSttionLocation != obj._owsSttionLocation) - { - ivarsEqual = false; - } - - if (this._physicalConnectionType != obj._physicalConnectionType) - { - ivarsEqual = false; - } - - if (this._groupMemberType != obj._groupMemberType) - { - ivarsEqual = false; - } - - if (this._groupNumber != obj._groupNumber) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._recordType.GetHashCode(); - result = GenerateHash(result) ^ this._changeIndicator.GetHashCode(); - result = GenerateHash(result) ^ this._associationStatus.GetHashCode(); - result = GenerateHash(result) ^ this._associationType.GetHashCode(); - result = GenerateHash(result) ^ this._entityID.GetHashCode(); - result = GenerateHash(result) ^ this._owsSttionLocation.GetHashCode(); - result = GenerateHash(result) ^ this._physicalConnectionType.GetHashCode(); - result = GenerateHash(result) ^ this._groupMemberType.GetHashCode(); - result = GenerateHash(result) ^ this._groupNumber.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/EntityDamageStatusPdu.cs b/Libs/CSharpDis7/EntityDamageStatusPdu.cs deleted file mode 100644 index 061469b..0000000 --- a/Libs/CSharpDis7/EntityDamageStatusPdu.cs +++ /dev/null @@ -1,451 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// shall be used to communicate detailed damage information sustained by an entity regardless of the source of the damage Section 7.3.5 COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(DirectedEnergyDamage))] - public partial class EntityDamageStatusPdu : WarfareFamilyPdu, IEquatable - { - /// - /// Field shall identify the damaged entity (see 6.2.28), Section 7.3.4 COMPLETE - /// - private EntityID _damagedEntityID = new EntityID(); - - /// - /// Padding. - /// - private ushort _padding1; - - /// - /// Padding. - /// - private ushort _padding2; - - /// - /// field shall specify the number of Damage Description records, Section 7.3.5 - /// - private ushort _numberOfDamageDescription; - - /// - /// Fields shall contain one or more Damage Description records (see 6.2.17) and may contain other Standard Variable records, Section 7.3.5 - /// - private List _damageDescriptionRecords = new List(); - - /// - /// Initializes a new instance of the class. - /// - public EntityDamageStatusPdu() - { - PduType = (byte)69; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(EntityDamageStatusPdu left, EntityDamageStatusPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(EntityDamageStatusPdu left, EntityDamageStatusPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._damagedEntityID.GetMarshalledSize(); // this._damagedEntityID - marshalSize += 2; // this._padding1 - marshalSize += 2; // this._padding2 - marshalSize += 2; // this._numberOfDamageDescription - for (int idx = 0; idx < this._damageDescriptionRecords.Count; idx++) - { - DirectedEnergyDamage listElement = (DirectedEnergyDamage)this._damageDescriptionRecords[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Field shall identify the damaged entity (see 6.2.28), Section 7.3.4 COMPLETE - /// - [XmlElement(Type = typeof(EntityID), ElementName = "damagedEntityID")] - public EntityID DamagedEntityID - { - get - { - return this._damagedEntityID; - } - - set - { - this._damagedEntityID = value; - } - } - - /// - /// Gets or sets the Padding. - /// - [XmlElement(Type = typeof(ushort), ElementName = "padding1")] - public ushort Padding1 - { - get - { - return this._padding1; - } - - set - { - this._padding1 = value; - } - } - - /// - /// Gets or sets the Padding. - /// - [XmlElement(Type = typeof(ushort), ElementName = "padding2")] - public ushort Padding2 - { - get - { - return this._padding2; - } - - set - { - this._padding2 = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfDamageDescription method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(ushort), ElementName = "numberOfDamageDescription")] - public ushort NumberOfDamageDescription - { - get - { - return this._numberOfDamageDescription; - } - - set - { - this._numberOfDamageDescription = value; - } - } - - /// - /// Gets or sets the Fields shall contain one or more Damage Description records (see 6.2.17) and may contain other Standard Variable records, Section 7.3.5 - /// - [XmlElement(ElementName = "damageDescriptionRecordsList", Type = typeof(List))] - public List DamageDescriptionRecords - { - get - { - return this._damageDescriptionRecords; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._damagedEntityID.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._padding1); - dos.WriteUnsignedShort((ushort)this._padding2); - dos.WriteUnsignedShort((ushort)this._damageDescriptionRecords.Count); - - for (int idx = 0; idx < this._damageDescriptionRecords.Count; idx++) - { - DirectedEnergyDamage aDirectedEnergyDamage = (DirectedEnergyDamage)this._damageDescriptionRecords[idx]; - aDirectedEnergyDamage.Marshal(dos); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._damagedEntityID.Unmarshal(dis); - this._padding1 = dis.ReadUnsignedShort(); - this._padding2 = dis.ReadUnsignedShort(); - this._numberOfDamageDescription = dis.ReadUnsignedShort(); - for (int idx = 0; idx < this.NumberOfDamageDescription; idx++) - { - DirectedEnergyDamage anX = new DirectedEnergyDamage(); - anX.Unmarshal(dis); - this._damageDescriptionRecords.Add(anX); - }; - - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._damagedEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._damageDescriptionRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._damageDescriptionRecords.Count; idx++) - { - sb.AppendLine(""); - DirectedEnergyDamage aDirectedEnergyDamage = (DirectedEnergyDamage)this._damageDescriptionRecords[idx]; - aDirectedEnergyDamage.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as EntityDamageStatusPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(EntityDamageStatusPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._damagedEntityID.Equals(obj._damagedEntityID)) - { - ivarsEqual = false; - } - - if (this._padding1 != obj._padding1) - { - ivarsEqual = false; - } - - if (this._padding2 != obj._padding2) - { - ivarsEqual = false; - } - - if (this._numberOfDamageDescription != obj._numberOfDamageDescription) - { - ivarsEqual = false; - } - - if (this._damageDescriptionRecords.Count != obj._damageDescriptionRecords.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._damageDescriptionRecords.Count; idx++) - { - if (!this._damageDescriptionRecords[idx].Equals(obj._damageDescriptionRecords[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._damagedEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._padding1.GetHashCode(); - result = GenerateHash(result) ^ this._padding2.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfDamageDescription.GetHashCode(); - - if (this._damageDescriptionRecords.Count > 0) - { - for (int idx = 0; idx < this._damageDescriptionRecords.Count; idx++) - { - result = GenerateHash(result) ^ this._damageDescriptionRecords[idx].GetHashCode(); - } - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/EntityID.cs b/Libs/CSharpDis7/EntityID.cs deleted file mode 100644 index dcada8d..0000000 --- a/Libs/CSharpDis7/EntityID.cs +++ /dev/null @@ -1,312 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Entity Identifier. Unique ID for entities in the world. Consists of an simulation address and a entity number. Section 6.2.28. - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(SimulationAddress))] - public partial class EntityID - { - /// - /// Site and application IDs - /// - private SimulationAddress _simulationAddress = new SimulationAddress(); - - /// - /// Entity number - /// - private ushort _entityNumber; - - /// - /// Initializes a new instance of the class. - /// - public EntityID() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(EntityID left, EntityID right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(EntityID left, EntityID right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += this._simulationAddress.GetMarshalledSize(); // this._simulationAddress - marshalSize += 2; // this._entityNumber - return marshalSize; - } - - /// - /// Gets or sets the Site and application IDs - /// - [XmlElement(Type = typeof(SimulationAddress), ElementName = "simulationAddress")] - public SimulationAddress SimulationAddress - { - get - { - return this._simulationAddress; - } - - set - { - this._simulationAddress = value; - } - } - - /// - /// Gets or sets the Entity number - /// - [XmlElement(Type = typeof(ushort), ElementName = "entityNumber")] - public ushort EntityNumber - { - get - { - return this._entityNumber; - } - - set - { - this._entityNumber = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - this._simulationAddress.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._entityNumber); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._simulationAddress.Unmarshal(dis); - this._entityNumber = dis.ReadUnsignedShort(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine(""); - this._simulationAddress.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._entityNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as EntityID; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(EntityID obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (!this._simulationAddress.Equals(obj._simulationAddress)) - { - ivarsEqual = false; - } - - if (this._entityNumber != obj._entityNumber) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._simulationAddress.GetHashCode(); - result = GenerateHash(result) ^ this._entityNumber.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/EntityInformationFamilyPdu.cs b/Libs/CSharpDis7/EntityInformationFamilyPdu.cs deleted file mode 100644 index 1670732..0000000 --- a/Libs/CSharpDis7/EntityInformationFamilyPdu.cs +++ /dev/null @@ -1,248 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Section 5.3.3. Common superclass for EntityState, Collision, collision-elastic, and entity state update PDUs. This should be abstract. COMPLETE - /// - [Serializable] - [XmlRoot] - public partial class EntityInformationFamilyPdu : Pdu, IEquatable - { - /// - /// Initializes a new instance of the class. - /// - public EntityInformationFamilyPdu() - { - ProtocolFamily = (byte)1; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(EntityInformationFamilyPdu left, EntityInformationFamilyPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(EntityInformationFamilyPdu left, EntityInformationFamilyPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - return marshalSize; - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public virtual void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as EntityInformationFamilyPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(EntityInformationFamilyPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/EntityManagementFamilyPdu.cs b/Libs/CSharpDis7/EntityManagementFamilyPdu.cs deleted file mode 100644 index b7473c8..0000000 --- a/Libs/CSharpDis7/EntityManagementFamilyPdu.cs +++ /dev/null @@ -1,248 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Managment of grouping of PDUs, and more. Section 7.8 - /// - [Serializable] - [XmlRoot] - public partial class EntityManagementFamilyPdu : Pdu, IEquatable - { - /// - /// Initializes a new instance of the class. - /// - public EntityManagementFamilyPdu() - { - ProtocolFamily = (byte)7; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(EntityManagementFamilyPdu left, EntityManagementFamilyPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(EntityManagementFamilyPdu left, EntityManagementFamilyPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - return marshalSize; - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public virtual void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as EntityManagementFamilyPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(EntityManagementFamilyPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/EntityMarking.cs b/Libs/CSharpDis7/EntityMarking.cs deleted file mode 100644 index daa8304..0000000 --- a/Libs/CSharpDis7/EntityMarking.cs +++ /dev/null @@ -1,335 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Specifies the character set used inthe first byte, followed by 11 characters of text data. Section 6.29 - /// - [Serializable] - [XmlRoot] - public partial class EntityMarking - { - /// - /// The character set - /// - private byte _characterSet; - - /// - /// The characters - /// - private byte[] _characters = new byte[11]; - - /// - /// Initializes a new instance of the class. - /// - public EntityMarking() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(EntityMarking left, EntityMarking right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(EntityMarking left, EntityMarking right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._characterSet - marshalSize += 11 * 1; // _characters - return marshalSize; - } - - /// - /// Gets or sets the The character set - /// - [XmlElement(Type = typeof(byte), ElementName = "characterSet")] - public byte CharacterSet - { - get - { - return this._characterSet; - } - - set - { - this._characterSet = value; - } - } - - /// - /// Gets or sets the The characters - /// - [XmlArray(ElementName = "characters")] - public byte[] Characters - { - get - { - return this._characters; - } - - set - { - this._characters = value; - } -} - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._characterSet); - - for (int idx = 0; idx < this._characters.Length; idx++) - { - dos.WriteByte(this._characters[idx]); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._characterSet = dis.ReadUnsignedByte(); - for (int idx = 0; idx < this._characters.Length; idx++) - { - this._characters[idx] = dis.ReadByte(); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._characterSet.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._characters.Length; idx++) - { - sb.AppendLine("" + this._characters[idx] + ""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as EntityMarking; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(EntityMarking obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._characterSet != obj._characterSet) - { - ivarsEqual = false; - } - - if (obj._characters.Length != 11) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < 11; idx++) - { - if (this._characters[idx] != obj._characters[idx]) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._characterSet.GetHashCode(); - - for (int idx = 0; idx < 11; idx++) - { - result = GenerateHash(result) ^ this._characters[idx].GetHashCode(); - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/EntityStatePdu.cs b/Libs/CSharpDis7/EntityStatePdu.cs deleted file mode 100644 index e98b77d..0000000 --- a/Libs/CSharpDis7/EntityStatePdu.cs +++ /dev/null @@ -1,721 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Represents the postion and state of one entity in the world. Section 7.2.2. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(EntityType))] - [XmlInclude(typeof(Vector3Float))] - [XmlInclude(typeof(Vector3Double))] - [XmlInclude(typeof(EulerAngles))] - [XmlInclude(typeof(DeadReckoningParameters))] - [XmlInclude(typeof(EntityMarking))] - [XmlInclude(typeof(VariableParameter))] - public partial class EntityStatePdu : EntityInformationFamilyPdu, IEquatable - { - /// - /// Unique ID for an entity that is tied to this state information - /// - private EntityID _entityID = new EntityID(); - - /// - /// What force this entity is affiliated with, eg red, blue, neutral, etc - /// - private byte _forceId; - - /// - /// How many variable parameters are in the variable length list. In earlier versions of DIS these were known as articulation parameters - /// - private byte _numberOfVariableParameters; - - /// - /// Describes the type of entity in the world - /// - private EntityType _entityType = new EntityType(); - - private EntityType _alternativeEntityType = new EntityType(); - - /// - /// Describes the speed of the entity in the world - /// - private Vector3Float _entityLinearVelocity = new Vector3Float(); - - /// - /// describes the location of the entity in the world - /// - private Vector3Double _entityLocation = new Vector3Double(); - - /// - /// describes the orientation of the entity, in euler angles - /// - private EulerAngles _entityOrientation = new EulerAngles(); - - /// - /// a series of bit flags that are used to help draw the entity, such as smoking, on fire, etc. - /// - private uint _entityAppearance; - - /// - /// parameters used for dead reckoning - /// - private DeadReckoningParameters _deadReckoningParameters = new DeadReckoningParameters(); - - /// - /// characters that can be used for debugging, or to draw unique strings on the side of entities in the world - /// - private EntityMarking _marking = new EntityMarking(); - - /// - /// a series of bit flags - /// - private uint _capabilities; - - /// - /// variable length list of variable parameters. In earlier DIS versions this was articulation parameters. - /// - private List _variableParameters = new List(); - - /// - /// Initializes a new instance of the class. - /// - public EntityStatePdu() - { - PduType = (byte)1; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(EntityStatePdu left, EntityStatePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(EntityStatePdu left, EntityStatePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._entityID.GetMarshalledSize(); // this._entityID - marshalSize += 1; // this._forceId - marshalSize += 1; // this._numberOfVariableParameters - marshalSize += this._entityType.GetMarshalledSize(); // this._entityType - marshalSize += this._alternativeEntityType.GetMarshalledSize(); // this._alternativeEntityType - marshalSize += this._entityLinearVelocity.GetMarshalledSize(); // this._entityLinearVelocity - marshalSize += this._entityLocation.GetMarshalledSize(); // this._entityLocation - marshalSize += this._entityOrientation.GetMarshalledSize(); // this._entityOrientation - marshalSize += 4; // this._entityAppearance - marshalSize += this._deadReckoningParameters.GetMarshalledSize(); // this._deadReckoningParameters - marshalSize += this._marking.GetMarshalledSize(); // this._marking - marshalSize += 4; // this._capabilities - for (int idx = 0; idx < this._variableParameters.Count; idx++) - { - VariableParameter listElement = (VariableParameter)this._variableParameters[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Unique ID for an entity that is tied to this state information - /// - [XmlElement(Type = typeof(EntityID), ElementName = "entityID")] - public EntityID EntityID - { - get - { - return this._entityID; - } - - set - { - this._entityID = value; - } - } - - /// - /// Gets or sets the What force this entity is affiliated with, eg red, blue, neutral, etc - /// - [XmlElement(Type = typeof(byte), ElementName = "forceId")] - public byte ForceId - { - get - { - return this._forceId; - } - - set - { - this._forceId = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfVariableParameters method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfVariableParameters")] - public byte NumberOfVariableParameters - { - get - { - return this._numberOfVariableParameters; - } - - set - { - this._numberOfVariableParameters = value; - } - } - - /// - /// Gets or sets the Describes the type of entity in the world - /// - [XmlElement(Type = typeof(EntityType), ElementName = "entityType")] - public EntityType EntityType - { - get - { - return this._entityType; - } - - set - { - this._entityType = value; - } - } - - [XmlElement(Type = typeof(EntityType), ElementName = "alternativeEntityType")] - public EntityType AlternativeEntityType - { - get - { - return this._alternativeEntityType; - } - - set - { - this._alternativeEntityType = value; - } - } - - /// - /// Gets or sets the Describes the speed of the entity in the world - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "entityLinearVelocity")] - public Vector3Float EntityLinearVelocity - { - get - { - return this._entityLinearVelocity; - } - - set - { - this._entityLinearVelocity = value; - } - } - - /// - /// Gets or sets the describes the location of the entity in the world - /// - [XmlElement(Type = typeof(Vector3Double), ElementName = "entityLocation")] - public Vector3Double EntityLocation - { - get - { - return this._entityLocation; - } - - set - { - this._entityLocation = value; - } - } - - /// - /// Gets or sets the describes the orientation of the entity, in euler angles - /// - [XmlElement(Type = typeof(EulerAngles), ElementName = "entityOrientation")] - public EulerAngles EntityOrientation - { - get - { - return this._entityOrientation; - } - - set - { - this._entityOrientation = value; - } - } - - /// - /// Gets or sets the a series of bit flags that are used to help draw the entity, such as smoking, on fire, etc. - /// - [XmlElement(Type = typeof(uint), ElementName = "entityAppearance")] - public uint EntityAppearance - { - get - { - return this._entityAppearance; - } - - set - { - this._entityAppearance = value; - } - } - - /// - /// Gets or sets the parameters used for dead reckoning - /// - [XmlElement(Type = typeof(DeadReckoningParameters), ElementName = "deadReckoningParameters")] - public DeadReckoningParameters DeadReckoningParameters - { - get - { - return this._deadReckoningParameters; - } - - set - { - this._deadReckoningParameters = value; - } - } - - /// - /// Gets or sets the characters that can be used for debugging, or to draw unique strings on the side of entities in the world - /// - [XmlElement(Type = typeof(EntityMarking), ElementName = "marking")] - public EntityMarking Marking - { - get - { - return this._marking; - } - - set - { - this._marking = value; - } - } - - /// - /// Gets or sets the a series of bit flags - /// - [XmlElement(Type = typeof(uint), ElementName = "capabilities")] - public uint Capabilities - { - get - { - return this._capabilities; - } - - set - { - this._capabilities = value; - } - } - - /// - /// Gets or sets the variable length list of variable parameters. In earlier DIS versions this was articulation parameters. - /// - [XmlElement(ElementName = "variableParametersList", Type = typeof(List))] - public List VariableParameters - { - get - { - return this._variableParameters; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._entityID.Marshal(dos); - dos.WriteUnsignedByte((byte)this._forceId); - dos.WriteUnsignedByte((byte)this._variableParameters.Count); - this._entityType.Marshal(dos); - this._alternativeEntityType.Marshal(dos); - this._entityLinearVelocity.Marshal(dos); - this._entityLocation.Marshal(dos); - this._entityOrientation.Marshal(dos); - dos.WriteUnsignedInt((uint)this._entityAppearance); - this._deadReckoningParameters.Marshal(dos); - this._marking.Marshal(dos); - dos.WriteUnsignedInt((uint)this._capabilities); - - for (int idx = 0; idx < this._variableParameters.Count; idx++) - { - VariableParameter aVariableParameter = (VariableParameter)this._variableParameters[idx]; - aVariableParameter.Marshal(dos); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._entityID.Unmarshal(dis); - this._forceId = dis.ReadUnsignedByte(); - this._numberOfVariableParameters = dis.ReadUnsignedByte(); - this._entityType.Unmarshal(dis); - this._alternativeEntityType.Unmarshal(dis); - this._entityLinearVelocity.Unmarshal(dis); - this._entityLocation.Unmarshal(dis); - this._entityOrientation.Unmarshal(dis); - this._entityAppearance = dis.ReadUnsignedInt(); - this._deadReckoningParameters.Unmarshal(dis); - this._marking.Unmarshal(dis); - this._capabilities = dis.ReadUnsignedInt(); - for (int idx = 0; idx < this.NumberOfVariableParameters; idx++) - { - VariableParameter anX = new VariableParameter(); - anX.Unmarshal(dis); - this._variableParameters.Add(anX); - }; - - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._entityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._forceId.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableParameters.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._entityType.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._alternativeEntityType.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._entityLinearVelocity.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._entityLocation.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._entityOrientation.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._entityAppearance.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._deadReckoningParameters.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._marking.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._capabilities.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._variableParameters.Count; idx++) - { - sb.AppendLine(""); - VariableParameter aVariableParameter = (VariableParameter)this._variableParameters[idx]; - aVariableParameter.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as EntityStatePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(EntityStatePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._entityID.Equals(obj._entityID)) - { - ivarsEqual = false; - } - - if (this._forceId != obj._forceId) - { - ivarsEqual = false; - } - - if (this._numberOfVariableParameters != obj._numberOfVariableParameters) - { - ivarsEqual = false; - } - - if (!this._entityType.Equals(obj._entityType)) - { - ivarsEqual = false; - } - - if (!this._alternativeEntityType.Equals(obj._alternativeEntityType)) - { - ivarsEqual = false; - } - - if (!this._entityLinearVelocity.Equals(obj._entityLinearVelocity)) - { - ivarsEqual = false; - } - - if (!this._entityLocation.Equals(obj._entityLocation)) - { - ivarsEqual = false; - } - - if (!this._entityOrientation.Equals(obj._entityOrientation)) - { - ivarsEqual = false; - } - - if (this._entityAppearance != obj._entityAppearance) - { - ivarsEqual = false; - } - - if (!this._deadReckoningParameters.Equals(obj._deadReckoningParameters)) - { - ivarsEqual = false; - } - - if (!this._marking.Equals(obj._marking)) - { - ivarsEqual = false; - } - - if (this._capabilities != obj._capabilities) - { - ivarsEqual = false; - } - - if (this._variableParameters.Count != obj._variableParameters.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._variableParameters.Count; idx++) - { - if (!this._variableParameters[idx].Equals(obj._variableParameters[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._entityID.GetHashCode(); - result = GenerateHash(result) ^ this._forceId.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfVariableParameters.GetHashCode(); - result = GenerateHash(result) ^ this._entityType.GetHashCode(); - result = GenerateHash(result) ^ this._alternativeEntityType.GetHashCode(); - result = GenerateHash(result) ^ this._entityLinearVelocity.GetHashCode(); - result = GenerateHash(result) ^ this._entityLocation.GetHashCode(); - result = GenerateHash(result) ^ this._entityOrientation.GetHashCode(); - result = GenerateHash(result) ^ this._entityAppearance.GetHashCode(); - result = GenerateHash(result) ^ this._deadReckoningParameters.GetHashCode(); - result = GenerateHash(result) ^ this._marking.GetHashCode(); - result = GenerateHash(result) ^ this._capabilities.GetHashCode(); - - if (this._variableParameters.Count > 0) - { - for (int idx = 0; idx < this._variableParameters.Count; idx++) - { - result = GenerateHash(result) ^ this._variableParameters[idx].GetHashCode(); - } - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/EntityStateUpdatePdu.cs b/Libs/CSharpDis7/EntityStateUpdatePdu.cs deleted file mode 100644 index 5d4e53d..0000000 --- a/Libs/CSharpDis7/EntityStateUpdatePdu.cs +++ /dev/null @@ -1,557 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Nonstatic information about a particular entity may be communicated by issuing an Entity State Update PDU. Section 7.2.5. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(Vector3Float))] - [XmlInclude(typeof(Vector3Double))] - [XmlInclude(typeof(EulerAngles))] - [XmlInclude(typeof(VariableParameter))] - public partial class EntityStateUpdatePdu : EntityInformationFamilyPdu, IEquatable - { - /// - /// This field shall identify the entity issuing the PDU, and shall be represented by an Entity Identifier record (see 6.2.28). - /// - private EntityID _entityID = new EntityID(); - - /// - /// Padding - /// - private byte _padding1; - - /// - /// This field shall specify the number of variable parameters present. This field shall be represented by an 8-bit unsigned integer (see Annex I). - /// - private byte _numberOfVariableParameters; - - /// - /// This field shall specify an entity’s linear velocity. The coordinate system for an entity’s linear velocity depends on the dead reckoning algorithm used. This field shall be represented by a Linear Velocity Vector record [see 6.2.95 item c)]). - /// - private Vector3Float _entityLinearVelocity = new Vector3Float(); - - /// - /// This field shall specify an entity’s physical location in the simulated world and shall be represented by a World Coordinates record (see 6.2.97). - /// - private Vector3Double _entityLocation = new Vector3Double(); - - /// - /// This field shall specify an entity’s orientation and shall be represented by an Euler Angles record (see 6.2.33). - /// - private EulerAngles _entityOrientation = new EulerAngles(); - - /// - /// This field shall specify the dynamic changes to the entity’s appearance attributes. This field shall be represented by an Entity Appearance record (see 6.2.26). - /// - private uint _entityAppearance; - - /// - /// This field shall specify the parameter values for each Variable Parameter record that is included (see 6.2.93 and Annex I). - /// - private List _variableParameters = new List(); - - /// - /// Initializes a new instance of the class. - /// - public EntityStateUpdatePdu() - { - PduType = (byte)67; - ProtocolFamily = (byte)1; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(EntityStateUpdatePdu left, EntityStateUpdatePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(EntityStateUpdatePdu left, EntityStateUpdatePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._entityID.GetMarshalledSize(); // this._entityID - marshalSize += 1; // this._padding1 - marshalSize += 1; // this._numberOfVariableParameters - marshalSize += this._entityLinearVelocity.GetMarshalledSize(); // this._entityLinearVelocity - marshalSize += this._entityLocation.GetMarshalledSize(); // this._entityLocation - marshalSize += this._entityOrientation.GetMarshalledSize(); // this._entityOrientation - marshalSize += 4; // this._entityAppearance - for (int idx = 0; idx < this._variableParameters.Count; idx++) - { - VariableParameter listElement = (VariableParameter)this._variableParameters[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the This field shall identify the entity issuing the PDU, and shall be represented by an Entity Identifier record (see 6.2.28). - /// - [XmlElement(Type = typeof(EntityID), ElementName = "entityID")] - public EntityID EntityID - { - get - { - return this._entityID; - } - - set - { - this._entityID = value; - } - } - - /// - /// Gets or sets the Padding - /// - [XmlElement(Type = typeof(byte), ElementName = "padding1")] - public byte Padding1 - { - get - { - return this._padding1; - } - - set - { - this._padding1 = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfVariableParameters method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfVariableParameters")] - public byte NumberOfVariableParameters - { - get - { - return this._numberOfVariableParameters; - } - - set - { - this._numberOfVariableParameters = value; - } - } - - /// - /// Gets or sets the This field shall specify an entity’s linear velocity. The coordinate system for an entity’s linear velocity depends on the dead reckoning algorithm used. This field shall be represented by a Linear Velocity Vector record [see 6.2.95 item c)]). - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "entityLinearVelocity")] - public Vector3Float EntityLinearVelocity - { - get - { - return this._entityLinearVelocity; - } - - set - { - this._entityLinearVelocity = value; - } - } - - /// - /// Gets or sets the This field shall specify an entity’s physical location in the simulated world and shall be represented by a World Coordinates record (see 6.2.97). - /// - [XmlElement(Type = typeof(Vector3Double), ElementName = "entityLocation")] - public Vector3Double EntityLocation - { - get - { - return this._entityLocation; - } - - set - { - this._entityLocation = value; - } - } - - /// - /// Gets or sets the This field shall specify an entity’s orientation and shall be represented by an Euler Angles record (see 6.2.33). - /// - [XmlElement(Type = typeof(EulerAngles), ElementName = "entityOrientation")] - public EulerAngles EntityOrientation - { - get - { - return this._entityOrientation; - } - - set - { - this._entityOrientation = value; - } - } - - /// - /// Gets or sets the This field shall specify the dynamic changes to the entity’s appearance attributes. This field shall be represented by an Entity Appearance record (see 6.2.26). - /// - [XmlElement(Type = typeof(uint), ElementName = "entityAppearance")] - public uint EntityAppearance - { - get - { - return this._entityAppearance; - } - - set - { - this._entityAppearance = value; - } - } - - /// - /// Gets or sets the This field shall specify the parameter values for each Variable Parameter record that is included (see 6.2.93 and Annex I). - /// - [XmlElement(ElementName = "variableParametersList", Type = typeof(List))] - public List VariableParameters - { - get - { - return this._variableParameters; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._entityID.Marshal(dos); - dos.WriteByte((byte)this._padding1); - dos.WriteUnsignedByte((byte)this._variableParameters.Count); - this._entityLinearVelocity.Marshal(dos); - this._entityLocation.Marshal(dos); - this._entityOrientation.Marshal(dos); - dos.WriteUnsignedInt((uint)this._entityAppearance); - - for (int idx = 0; idx < this._variableParameters.Count; idx++) - { - VariableParameter aVariableParameter = (VariableParameter)this._variableParameters[idx]; - aVariableParameter.Marshal(dos); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._entityID.Unmarshal(dis); - this._padding1 = dis.ReadByte(); - this._numberOfVariableParameters = dis.ReadUnsignedByte(); - this._entityLinearVelocity.Unmarshal(dis); - this._entityLocation.Unmarshal(dis); - this._entityOrientation.Unmarshal(dis); - this._entityAppearance = dis.ReadUnsignedInt(); - for (int idx = 0; idx < this.NumberOfVariableParameters; idx++) - { - VariableParameter anX = new VariableParameter(); - anX.Unmarshal(dis); - this._variableParameters.Add(anX); - }; - - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._entityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableParameters.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._entityLinearVelocity.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._entityLocation.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._entityOrientation.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._entityAppearance.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._variableParameters.Count; idx++) - { - sb.AppendLine(""); - VariableParameter aVariableParameter = (VariableParameter)this._variableParameters[idx]; - aVariableParameter.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as EntityStateUpdatePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(EntityStateUpdatePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._entityID.Equals(obj._entityID)) - { - ivarsEqual = false; - } - - if (this._padding1 != obj._padding1) - { - ivarsEqual = false; - } - - if (this._numberOfVariableParameters != obj._numberOfVariableParameters) - { - ivarsEqual = false; - } - - if (!this._entityLinearVelocity.Equals(obj._entityLinearVelocity)) - { - ivarsEqual = false; - } - - if (!this._entityLocation.Equals(obj._entityLocation)) - { - ivarsEqual = false; - } - - if (!this._entityOrientation.Equals(obj._entityOrientation)) - { - ivarsEqual = false; - } - - if (this._entityAppearance != obj._entityAppearance) - { - ivarsEqual = false; - } - - if (this._variableParameters.Count != obj._variableParameters.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._variableParameters.Count; idx++) - { - if (!this._variableParameters[idx].Equals(obj._variableParameters[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._entityID.GetHashCode(); - result = GenerateHash(result) ^ this._padding1.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfVariableParameters.GetHashCode(); - result = GenerateHash(result) ^ this._entityLinearVelocity.GetHashCode(); - result = GenerateHash(result) ^ this._entityLocation.GetHashCode(); - result = GenerateHash(result) ^ this._entityOrientation.GetHashCode(); - result = GenerateHash(result) ^ this._entityAppearance.GetHashCode(); - - if (this._variableParameters.Count > 0) - { - for (int idx = 0; idx < this._variableParameters.Count; idx++) - { - result = GenerateHash(result) ^ this._variableParameters[idx].GetHashCode(); - } - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/EntityType.cs b/Libs/CSharpDis7/EntityType.cs deleted file mode 100644 index b47ca07..0000000 --- a/Libs/CSharpDis7/EntityType.cs +++ /dev/null @@ -1,463 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Identifies the type of entity, including kind of entity, domain (surface, subsurface, air, etc) country, category, etc. Section 6.2.30 - /// - [Serializable] - [XmlRoot] - public partial class EntityType - { - /// - /// Kind of entity - /// - private byte _entityKind; - - /// - /// Domain of entity (air, surface, subsurface, space, etc) - /// - private byte _domain; - - /// - /// country to which the design of the entity is attributed - /// - private ushort _country; - - /// - /// category of entity - /// - private byte _category; - - /// - /// subcategory of entity - /// - private byte _subcategory; - - /// - /// specific info based on subcategory field. Renamed from specific because that is a reserved word in SQL. - /// - private byte _specific; - - private byte _extra; - - /// - /// Initializes a new instance of the class. - /// - public EntityType() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(EntityType left, EntityType right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(EntityType left, EntityType right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._entityKind - marshalSize += 1; // this._domain - marshalSize += 2; // this._country - marshalSize += 1; // this._category - marshalSize += 1; // this._subcategory - marshalSize += 1; // this._specific - marshalSize += 1; // this._extra - return marshalSize; - } - - /// - /// Gets or sets the Kind of entity - /// - [XmlElement(Type = typeof(byte), ElementName = "entityKind")] - public byte EntityKind - { - get - { - return this._entityKind; - } - - set - { - this._entityKind = value; - } - } - - /// - /// Gets or sets the Domain of entity (air, surface, subsurface, space, etc) - /// - [XmlElement(Type = typeof(byte), ElementName = "domain")] - public byte Domain - { - get - { - return this._domain; - } - - set - { - this._domain = value; - } - } - - /// - /// Gets or sets the country to which the design of the entity is attributed - /// - [XmlElement(Type = typeof(ushort), ElementName = "country")] - public ushort Country - { - get - { - return this._country; - } - - set - { - this._country = value; - } - } - - /// - /// Gets or sets the category of entity - /// - [XmlElement(Type = typeof(byte), ElementName = "category")] - public byte Category - { - get - { - return this._category; - } - - set - { - this._category = value; - } - } - - /// - /// Gets or sets the subcategory of entity - /// - [XmlElement(Type = typeof(byte), ElementName = "subcategory")] - public byte Subcategory - { - get - { - return this._subcategory; - } - - set - { - this._subcategory = value; - } - } - - /// - /// Gets or sets the specific info based on subcategory field. Renamed from specific because that is a reserved word in SQL. - /// - [XmlElement(Type = typeof(byte), ElementName = "specific")] - public byte Specific - { - get - { - return this._specific; - } - - set - { - this._specific = value; - } - } - - [XmlElement(Type = typeof(byte), ElementName = "extra")] - public byte Extra - { - get - { - return this._extra; - } - - set - { - this._extra = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._entityKind); - dos.WriteUnsignedByte((byte)this._domain); - dos.WriteUnsignedShort((ushort)this._country); - dos.WriteUnsignedByte((byte)this._category); - dos.WriteUnsignedByte((byte)this._subcategory); - dos.WriteUnsignedByte((byte)this._specific); - dos.WriteUnsignedByte((byte)this._extra); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._entityKind = dis.ReadUnsignedByte(); - this._domain = dis.ReadUnsignedByte(); - this._country = dis.ReadUnsignedShort(); - this._category = dis.ReadUnsignedByte(); - this._subcategory = dis.ReadUnsignedByte(); - this._specific = dis.ReadUnsignedByte(); - this._extra = dis.ReadUnsignedByte(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._entityKind.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._domain.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._country.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._category.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._subcategory.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._specific.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._extra.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as EntityType; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(EntityType obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._entityKind != obj._entityKind) - { - ivarsEqual = false; - } - - if (this._domain != obj._domain) - { - ivarsEqual = false; - } - - if (this._country != obj._country) - { - ivarsEqual = false; - } - - if (this._category != obj._category) - { - ivarsEqual = false; - } - - if (this._subcategory != obj._subcategory) - { - ivarsEqual = false; - } - - if (this._specific != obj._specific) - { - ivarsEqual = false; - } - - if (this._extra != obj._extra) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._entityKind.GetHashCode(); - result = GenerateHash(result) ^ this._domain.GetHashCode(); - result = GenerateHash(result) ^ this._country.GetHashCode(); - result = GenerateHash(result) ^ this._category.GetHashCode(); - result = GenerateHash(result) ^ this._subcategory.GetHashCode(); - result = GenerateHash(result) ^ this._specific.GetHashCode(); - result = GenerateHash(result) ^ this._extra.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/EntityTypeVP.cs b/Libs/CSharpDis7/EntityTypeVP.cs deleted file mode 100644 index 7d6b6c8..0000000 --- a/Libs/CSharpDis7/EntityTypeVP.cs +++ /dev/null @@ -1,408 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Association or disassociation of two entities. Section 6.2.93.5 - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityType))] - public partial class EntityTypeVP - { - /// - /// the identification of the Variable Parameter record. Enumeration from EBV - /// - private byte _recordType = 3; - - /// - /// Indicates if this VP has changed since last issuance - /// - private byte _changeIndicator; - - /// - /// - /// - private EntityType _entityType = new EntityType(); - - /// - /// padding - /// - private ushort _padding; - - /// - /// padding - /// - private uint _padding1; - - /// - /// Initializes a new instance of the class. - /// - public EntityTypeVP() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(EntityTypeVP left, EntityTypeVP right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(EntityTypeVP left, EntityTypeVP right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._recordType - marshalSize += 1; // this._changeIndicator - marshalSize += this._entityType.GetMarshalledSize(); // this._entityType - marshalSize += 2; // this._padding - marshalSize += 4; // this._padding1 - return marshalSize; - } - - /// - /// Gets or sets the the identification of the Variable Parameter record. Enumeration from EBV - /// - [XmlElement(Type = typeof(byte), ElementName = "recordType")] - public byte RecordType - { - get - { - return this._recordType; - } - - set - { - this._recordType = value; - } - } - - /// - /// Gets or sets the Indicates if this VP has changed since last issuance - /// - [XmlElement(Type = typeof(byte), ElementName = "changeIndicator")] - public byte ChangeIndicator - { - get - { - return this._changeIndicator; - } - - set - { - this._changeIndicator = value; - } - } - - /// - /// Gets or sets the - /// - [XmlElement(Type = typeof(EntityType), ElementName = "entityType")] - public EntityType EntityType - { - get - { - return this._entityType; - } - - set - { - this._entityType = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(ushort), ElementName = "padding")] - public ushort Padding - { - get - { - return this._padding; - } - - set - { - this._padding = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(uint), ElementName = "padding1")] - public uint Padding1 - { - get - { - return this._padding1; - } - - set - { - this._padding1 = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._recordType); - dos.WriteUnsignedByte((byte)this._changeIndicator); - this._entityType.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._padding); - dos.WriteUnsignedInt((uint)this._padding1); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._recordType = dis.ReadUnsignedByte(); - this._changeIndicator = dis.ReadUnsignedByte(); - this._entityType.Unmarshal(dis); - this._padding = dis.ReadUnsignedShort(); - this._padding1 = dis.ReadUnsignedInt(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._recordType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._changeIndicator.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._entityType.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as EntityTypeVP; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(EntityTypeVP obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._recordType != obj._recordType) - { - ivarsEqual = false; - } - - if (this._changeIndicator != obj._changeIndicator) - { - ivarsEqual = false; - } - - if (!this._entityType.Equals(obj._entityType)) - { - ivarsEqual = false; - } - - if (this._padding != obj._padding) - { - ivarsEqual = false; - } - - if (this._padding1 != obj._padding1) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._recordType.GetHashCode(); - result = GenerateHash(result) ^ this._changeIndicator.GetHashCode(); - result = GenerateHash(result) ^ this._entityType.GetHashCode(); - result = GenerateHash(result) ^ this._padding.GetHashCode(); - result = GenerateHash(result) ^ this._padding1.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/Environment.cs b/Libs/CSharpDis7/Environment.cs deleted file mode 100644 index 1e12306..0000000 --- a/Libs/CSharpDis7/Environment.cs +++ /dev/null @@ -1,373 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Incomplete environment record; requires hand coding to fix. Section 6.2.31.1 - /// - [Serializable] - [XmlRoot] - public partial class Environment - { - /// - /// type - /// - private uint _environmentType; - - /// - /// length, in bits, of the record - /// - private ushort _length; - - /// - /// identifies the sequntially numbered record index - /// - private byte _index; - - /// - /// padding - /// - private byte _padding; - - /// - /// Initializes a new instance of the class. - /// - public Environment() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(Environment left, Environment right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(Environment left, Environment right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._environmentType - marshalSize += 2; // this._length - marshalSize += 1; // this._index - marshalSize += 1; // this._padding - return marshalSize; - } - - /// - /// Gets or sets the type - /// - [XmlElement(Type = typeof(uint), ElementName = "environmentType")] - public uint EnvironmentType - { - get - { - return this._environmentType; - } - - set - { - this._environmentType = value; - } - } - - /// - /// Gets or sets the length, in bits, of the record - /// - [XmlElement(Type = typeof(ushort), ElementName = "length")] - public ushort Length - { - get - { - return this._length; - } - - set - { - this._length = value; - } - } - - /// - /// Gets or sets the identifies the sequntially numbered record index - /// - [XmlElement(Type = typeof(byte), ElementName = "index")] - public byte Index - { - get - { - return this._index; - } - - set - { - this._index = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "padding")] - public byte Padding - { - get - { - return this._padding; - } - - set - { - this._padding = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._environmentType); - dos.WriteUnsignedShort((ushort)this._length); - dos.WriteUnsignedByte((byte)this._index); - dos.WriteUnsignedByte((byte)this._padding); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._environmentType = dis.ReadUnsignedInt(); - this._length = dis.ReadUnsignedShort(); - this._index = dis.ReadUnsignedByte(); - this._padding = dis.ReadUnsignedByte(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._environmentType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._length.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._index.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as Environment; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(Environment obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._environmentType != obj._environmentType) - { - ivarsEqual = false; - } - - if (this._length != obj._length) - { - ivarsEqual = false; - } - - if (this._index != obj._index) - { - ivarsEqual = false; - } - - if (this._padding != obj._padding) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._environmentType.GetHashCode(); - result = GenerateHash(result) ^ this._length.GetHashCode(); - result = GenerateHash(result) ^ this._index.GetHashCode(); - result = GenerateHash(result) ^ this._padding.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/EnvironmentGeneral.cs b/Libs/CSharpDis7/EnvironmentGeneral.cs deleted file mode 100644 index 1724b06..0000000 --- a/Libs/CSharpDis7/EnvironmentGeneral.cs +++ /dev/null @@ -1,437 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Information about a geometry, a state associated with a geometry, a bounding volume, or an associated entity ID. NOTE: this class requires hand coding. 6.2.31 - /// - [Serializable] - [XmlRoot] - public partial class EnvironmentGeneral - { - /// - /// Record type - /// - private uint _environmentType; - - /// - /// length, in bits - /// - private byte _length; - - /// - /// Identify the sequentially numbered record index - /// - private byte _index; - - /// - /// padding - /// - private byte _padding1; - - /// - /// Geometry or state record - /// - private byte _geometry; - - /// - /// padding to bring the total size up to a 64 bit boundry - /// - private byte _padding2; - - /// - /// Initializes a new instance of the class. - /// - public EnvironmentGeneral() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(EnvironmentGeneral left, EnvironmentGeneral right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(EnvironmentGeneral left, EnvironmentGeneral right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._environmentType - marshalSize += 1; // this._length - marshalSize += 1; // this._index - marshalSize += 1; // this._padding1 - marshalSize += 1; // this._geometry - marshalSize += 1; // this._padding2 - return marshalSize; - } - - /// - /// Gets or sets the Record type - /// - [XmlElement(Type = typeof(uint), ElementName = "environmentType")] - public uint EnvironmentType - { - get - { - return this._environmentType; - } - - set - { - this._environmentType = value; - } - } - - /// - /// Gets or sets the length, in bits - /// - [XmlElement(Type = typeof(byte), ElementName = "length")] - public byte Length - { - get - { - return this._length; - } - - set - { - this._length = value; - } - } - - /// - /// Gets or sets the Identify the sequentially numbered record index - /// - [XmlElement(Type = typeof(byte), ElementName = "index")] - public byte Index - { - get - { - return this._index; - } - - set - { - this._index = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "padding1")] - public byte Padding1 - { - get - { - return this._padding1; - } - - set - { - this._padding1 = value; - } - } - - /// - /// Gets or sets the Geometry or state record - /// - [XmlElement(Type = typeof(byte), ElementName = "geometry")] - public byte Geometry - { - get - { - return this._geometry; - } - - set - { - this._geometry = value; - } - } - - /// - /// Gets or sets the padding to bring the total size up to a 64 bit boundry - /// - [XmlElement(Type = typeof(byte), ElementName = "padding2")] - public byte Padding2 - { - get - { - return this._padding2; - } - - set - { - this._padding2 = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._environmentType); - dos.WriteUnsignedByte((byte)this._length); - dos.WriteUnsignedByte((byte)this._index); - dos.WriteUnsignedByte((byte)this._padding1); - dos.WriteUnsignedByte((byte)this._geometry); - dos.WriteUnsignedByte((byte)this._padding2); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._environmentType = dis.ReadUnsignedInt(); - this._length = dis.ReadUnsignedByte(); - this._index = dis.ReadUnsignedByte(); - this._padding1 = dis.ReadUnsignedByte(); - this._geometry = dis.ReadUnsignedByte(); - this._padding2 = dis.ReadUnsignedByte(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._environmentType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._length.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._index.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._geometry.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as EnvironmentGeneral; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(EnvironmentGeneral obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._environmentType != obj._environmentType) - { - ivarsEqual = false; - } - - if (this._length != obj._length) - { - ivarsEqual = false; - } - - if (this._index != obj._index) - { - ivarsEqual = false; - } - - if (this._padding1 != obj._padding1) - { - ivarsEqual = false; - } - - if (this._geometry != obj._geometry) - { - ivarsEqual = false; - } - - if (this._padding2 != obj._padding2) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._environmentType.GetHashCode(); - result = GenerateHash(result) ^ this._length.GetHashCode(); - result = GenerateHash(result) ^ this._index.GetHashCode(); - result = GenerateHash(result) ^ this._padding1.GetHashCode(); - result = GenerateHash(result) ^ this._geometry.GetHashCode(); - result = GenerateHash(result) ^ this._padding2.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/EnvironmentType.cs b/Libs/CSharpDis7/EnvironmentType.cs deleted file mode 100644 index 94072fb..0000000 --- a/Libs/CSharpDis7/EnvironmentType.cs +++ /dev/null @@ -1,463 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Description of environmental data in environmental process and gridded data PDUs. Section 6.2.32 - /// - [Serializable] - [XmlRoot] - public partial class EnvironmentType - { - /// - /// Kind of entity - /// - private byte _entityKind; - - /// - /// Domain of entity (air, surface, subsurface, space, etc) - /// - private byte _domain; - - /// - /// class of environmental entity - /// - private ushort _entityClass; - - /// - /// category of entity - /// - private byte _category; - - /// - /// subcategory of entity - /// - private byte _subcategory; - - /// - /// specific info based on subcategory field - /// - private byte _specific; - - private byte _extra; - - /// - /// Initializes a new instance of the class. - /// - public EnvironmentType() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(EnvironmentType left, EnvironmentType right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(EnvironmentType left, EnvironmentType right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._entityKind - marshalSize += 1; // this._domain - marshalSize += 2; // this._entityClass - marshalSize += 1; // this._category - marshalSize += 1; // this._subcategory - marshalSize += 1; // this._specific - marshalSize += 1; // this._extra - return marshalSize; - } - - /// - /// Gets or sets the Kind of entity - /// - [XmlElement(Type = typeof(byte), ElementName = "entityKind")] - public byte EntityKind - { - get - { - return this._entityKind; - } - - set - { - this._entityKind = value; - } - } - - /// - /// Gets or sets the Domain of entity (air, surface, subsurface, space, etc) - /// - [XmlElement(Type = typeof(byte), ElementName = "domain")] - public byte Domain - { - get - { - return this._domain; - } - - set - { - this._domain = value; - } - } - - /// - /// Gets or sets the class of environmental entity - /// - [XmlElement(Type = typeof(ushort), ElementName = "entityClass")] - public ushort EntityClass - { - get - { - return this._entityClass; - } - - set - { - this._entityClass = value; - } - } - - /// - /// Gets or sets the category of entity - /// - [XmlElement(Type = typeof(byte), ElementName = "category")] - public byte Category - { - get - { - return this._category; - } - - set - { - this._category = value; - } - } - - /// - /// Gets or sets the subcategory of entity - /// - [XmlElement(Type = typeof(byte), ElementName = "subcategory")] - public byte Subcategory - { - get - { - return this._subcategory; - } - - set - { - this._subcategory = value; - } - } - - /// - /// Gets or sets the specific info based on subcategory field - /// - [XmlElement(Type = typeof(byte), ElementName = "specific")] - public byte Specific - { - get - { - return this._specific; - } - - set - { - this._specific = value; - } - } - - [XmlElement(Type = typeof(byte), ElementName = "extra")] - public byte Extra - { - get - { - return this._extra; - } - - set - { - this._extra = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._entityKind); - dos.WriteUnsignedByte((byte)this._domain); - dos.WriteUnsignedShort((ushort)this._entityClass); - dos.WriteUnsignedByte((byte)this._category); - dos.WriteUnsignedByte((byte)this._subcategory); - dos.WriteUnsignedByte((byte)this._specific); - dos.WriteUnsignedByte((byte)this._extra); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._entityKind = dis.ReadUnsignedByte(); - this._domain = dis.ReadUnsignedByte(); - this._entityClass = dis.ReadUnsignedShort(); - this._category = dis.ReadUnsignedByte(); - this._subcategory = dis.ReadUnsignedByte(); - this._specific = dis.ReadUnsignedByte(); - this._extra = dis.ReadUnsignedByte(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._entityKind.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._domain.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._entityClass.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._category.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._subcategory.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._specific.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._extra.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as EnvironmentType; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(EnvironmentType obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._entityKind != obj._entityKind) - { - ivarsEqual = false; - } - - if (this._domain != obj._domain) - { - ivarsEqual = false; - } - - if (this._entityClass != obj._entityClass) - { - ivarsEqual = false; - } - - if (this._category != obj._category) - { - ivarsEqual = false; - } - - if (this._subcategory != obj._subcategory) - { - ivarsEqual = false; - } - - if (this._specific != obj._specific) - { - ivarsEqual = false; - } - - if (this._extra != obj._extra) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._entityKind.GetHashCode(); - result = GenerateHash(result) ^ this._domain.GetHashCode(); - result = GenerateHash(result) ^ this._entityClass.GetHashCode(); - result = GenerateHash(result) ^ this._category.GetHashCode(); - result = GenerateHash(result) ^ this._subcategory.GetHashCode(); - result = GenerateHash(result) ^ this._specific.GetHashCode(); - result = GenerateHash(result) ^ this._extra.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/EulerAngles.cs b/Libs/CSharpDis7/EulerAngles.cs deleted file mode 100644 index 16d7243..0000000 --- a/Libs/CSharpDis7/EulerAngles.cs +++ /dev/null @@ -1,323 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Three floating point values representing an orientation, psi, theta, and phi, aka the euler angles, in radians. Section 6.2.33 - /// - [Serializable] - [XmlRoot] - public partial class EulerAngles - { - private float _psi; - - private float _theta; - - private float _phi; - - /// - /// Initializes a new instance of the class. - /// - public EulerAngles() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(EulerAngles left, EulerAngles right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(EulerAngles left, EulerAngles right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._psi - marshalSize += 4; // this._theta - marshalSize += 4; // this._phi - return marshalSize; - } - - [XmlElement(Type = typeof(float), ElementName = "psi")] - public float Psi - { - get - { - return this._psi; - } - - set - { - this._psi = value; - } - } - - [XmlElement(Type = typeof(float), ElementName = "theta")] - public float Theta - { - get - { - return this._theta; - } - - set - { - this._theta = value; - } - } - - [XmlElement(Type = typeof(float), ElementName = "phi")] - public float Phi - { - get - { - return this._phi; - } - - set - { - this._phi = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteFloat((float)this._psi); - dos.WriteFloat((float)this._theta); - dos.WriteFloat((float)this._phi); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._psi = dis.ReadFloat(); - this._theta = dis.ReadFloat(); - this._phi = dis.ReadFloat(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._psi.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._theta.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._phi.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as EulerAngles; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(EulerAngles obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._psi != obj._psi) - { - ivarsEqual = false; - } - - if (this._theta != obj._theta) - { - ivarsEqual = false; - } - - if (this._phi != obj._phi) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._psi.GetHashCode(); - result = GenerateHash(result) ^ this._theta.GetHashCode(); - result = GenerateHash(result) ^ this._phi.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/EventIdentifier.cs b/Libs/CSharpDis7/EventIdentifier.cs deleted file mode 100644 index 7be27fa..0000000 --- a/Libs/CSharpDis7/EventIdentifier.cs +++ /dev/null @@ -1,306 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Identifies an event in the world. Use this format for every PDU EXCEPT the LiveEntityPdu. Section 6.2.34. - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(SimulationAddress))] - public partial class EventIdentifier - { - /// - /// Site and application IDs - /// - private SimulationAddress _simulationAddress = new SimulationAddress(); - - private ushort _eventNumber; - - /// - /// Initializes a new instance of the class. - /// - public EventIdentifier() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(EventIdentifier left, EventIdentifier right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(EventIdentifier left, EventIdentifier right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += this._simulationAddress.GetMarshalledSize(); // this._simulationAddress - marshalSize += 2; // this._eventNumber - return marshalSize; - } - - /// - /// Gets or sets the Site and application IDs - /// - [XmlElement(Type = typeof(SimulationAddress), ElementName = "simulationAddress")] - public SimulationAddress SimulationAddress - { - get - { - return this._simulationAddress; - } - - set - { - this._simulationAddress = value; - } - } - - [XmlElement(Type = typeof(ushort), ElementName = "eventNumber")] - public ushort EventNumber - { - get - { - return this._eventNumber; - } - - set - { - this._eventNumber = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - this._simulationAddress.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._eventNumber); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._simulationAddress.Unmarshal(dis); - this._eventNumber = dis.ReadUnsignedShort(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine(""); - this._simulationAddress.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._eventNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as EventIdentifier; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(EventIdentifier obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (!this._simulationAddress.Equals(obj._simulationAddress)) - { - ivarsEqual = false; - } - - if (this._eventNumber != obj._eventNumber) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._simulationAddress.GetHashCode(); - result = GenerateHash(result) ^ this._eventNumber.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/EventIdentifierLiveEntity.cs b/Libs/CSharpDis7/EventIdentifierLiveEntity.cs deleted file mode 100644 index 7d9bf3e..0000000 --- a/Libs/CSharpDis7/EventIdentifierLiveEntity.cs +++ /dev/null @@ -1,323 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Identifies an event in the world. Use this format for ONLY the LiveEntityPdu. Section 6.2.34. - /// - [Serializable] - [XmlRoot] - public partial class EventIdentifierLiveEntity - { - private byte _siteNumber; - - private byte _applicationNumber; - - private ushort _eventNumber; - - /// - /// Initializes a new instance of the class. - /// - public EventIdentifierLiveEntity() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(EventIdentifierLiveEntity left, EventIdentifierLiveEntity right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(EventIdentifierLiveEntity left, EventIdentifierLiveEntity right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._siteNumber - marshalSize += 1; // this._applicationNumber - marshalSize += 2; // this._eventNumber - return marshalSize; - } - - [XmlElement(Type = typeof(byte), ElementName = "siteNumber")] - public byte SiteNumber - { - get - { - return this._siteNumber; - } - - set - { - this._siteNumber = value; - } - } - - [XmlElement(Type = typeof(byte), ElementName = "applicationNumber")] - public byte ApplicationNumber - { - get - { - return this._applicationNumber; - } - - set - { - this._applicationNumber = value; - } - } - - [XmlElement(Type = typeof(ushort), ElementName = "eventNumber")] - public ushort EventNumber - { - get - { - return this._eventNumber; - } - - set - { - this._eventNumber = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._siteNumber); - dos.WriteUnsignedByte((byte)this._applicationNumber); - dos.WriteUnsignedShort((ushort)this._eventNumber); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._siteNumber = dis.ReadUnsignedByte(); - this._applicationNumber = dis.ReadUnsignedByte(); - this._eventNumber = dis.ReadUnsignedShort(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._siteNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._applicationNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._eventNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as EventIdentifierLiveEntity; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(EventIdentifierLiveEntity obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._siteNumber != obj._siteNumber) - { - ivarsEqual = false; - } - - if (this._applicationNumber != obj._applicationNumber) - { - ivarsEqual = false; - } - - if (this._eventNumber != obj._eventNumber) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._siteNumber.GetHashCode(); - result = GenerateHash(result) ^ this._applicationNumber.GetHashCode(); - result = GenerateHash(result) ^ this._eventNumber.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/EventReportPdu.cs b/Libs/CSharpDis7/EventReportPdu.cs deleted file mode 100644 index 84d3bfa..0000000 --- a/Libs/CSharpDis7/EventReportPdu.cs +++ /dev/null @@ -1,519 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Reports occurance of a significant event to the simulation manager. Section 7.5.12. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(FixedDatum))] - [XmlInclude(typeof(VariableDatum))] - public partial class EventReportPdu : SimulationManagementFamilyPdu, IEquatable - { - /// - /// Type of event - /// - private uint _eventType; - - /// - /// padding - /// - private uint _padding1; - - /// - /// Number of fixed datum records - /// - private uint _numberOfFixedDatumRecords; - - /// - /// Number of variable datum records - /// - private uint _numberOfVariableDatumRecords; - - /// - /// variable length list of fixed datums - /// - private List _fixedDatums = new List(); - - /// - /// variable length list of variable length datums - /// - private List _variableDatums = new List(); - - /// - /// Initializes a new instance of the class. - /// - public EventReportPdu() - { - PduType = (byte)21; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(EventReportPdu left, EventReportPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(EventReportPdu left, EventReportPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 4; // this._eventType - marshalSize += 4; // this._padding1 - marshalSize += 4; // this._numberOfFixedDatumRecords - marshalSize += 4; // this._numberOfVariableDatumRecords - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - FixedDatum listElement = (FixedDatum)this._fixedDatums[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - VariableDatum listElement = (VariableDatum)this._variableDatums[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Type of event - /// - [XmlElement(Type = typeof(uint), ElementName = "eventType")] - public uint EventType - { - get - { - return this._eventType; - } - - set - { - this._eventType = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(uint), ElementName = "padding1")] - public uint Padding1 - { - get - { - return this._padding1; - } - - set - { - this._padding1 = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] - public uint NumberOfFixedDatumRecords - { - get - { - return this._numberOfFixedDatumRecords; - } - - set - { - this._numberOfFixedDatumRecords = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] - public uint NumberOfVariableDatumRecords - { - get - { - return this._numberOfVariableDatumRecords; - } - - set - { - this._numberOfVariableDatumRecords = value; - } - } - - /// - /// Gets or sets the variable length list of fixed datums - /// - [XmlElement(ElementName = "fixedDatumsList", Type = typeof(List))] - public List FixedDatums - { - get - { - return this._fixedDatums; - } - } - - /// - /// Gets or sets the variable length list of variable length datums - /// - [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] - public List VariableDatums - { - get - { - return this._variableDatums; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._eventType); - dos.WriteUnsignedInt((uint)this._padding1); - dos.WriteUnsignedInt((uint)this._fixedDatums.Count); - dos.WriteUnsignedInt((uint)this._variableDatums.Count); - - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; - aFixedDatum.Marshal(dos); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; - aVariableDatum.Marshal(dos); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._eventType = dis.ReadUnsignedInt(); - this._padding1 = dis.ReadUnsignedInt(); - this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); - this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); - for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) - { - FixedDatum anX = new FixedDatum(); - anX.Unmarshal(dis); - this._fixedDatums.Add(anX); - }; - - for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) - { - VariableDatum anX = new VariableDatum(); - anX.Unmarshal(dis); - this._variableDatums.Add(anX); - }; - - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._eventType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fixedDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - sb.AppendLine(""); - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; - aFixedDatum.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - sb.AppendLine(""); - VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; - aVariableDatum.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as EventReportPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(EventReportPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._eventType != obj._eventType) - { - ivarsEqual = false; - } - - if (this._padding1 != obj._padding1) - { - ivarsEqual = false; - } - - if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) - { - ivarsEqual = false; - } - - if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) - { - ivarsEqual = false; - } - - if (this._fixedDatums.Count != obj._fixedDatums.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - if (!this._fixedDatums[idx].Equals(obj._fixedDatums[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._variableDatums.Count != obj._variableDatums.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._eventType.GetHashCode(); - result = GenerateHash(result) ^ this._padding1.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); - - if (this._fixedDatums.Count > 0) - { - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - result = GenerateHash(result) ^ this._fixedDatums[idx].GetHashCode(); - } - } - - if (this._variableDatums.Count > 0) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); - } - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/EventReportReliablePdu.cs b/Libs/CSharpDis7/EventReportReliablePdu.cs deleted file mode 100644 index a2c1d50..0000000 --- a/Libs/CSharpDis7/EventReportReliablePdu.cs +++ /dev/null @@ -1,519 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Section 5.3.12.11: reports the occurance of a significatnt event to the simulation manager. Needs manual intervention to fix padding in variable datums. UNFINISHED. - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(FixedDatum))] - [XmlInclude(typeof(VariableDatum))] - public partial class EventReportReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable - { - /// - /// Event type - /// - private ushort _eventType; - - /// - /// padding - /// - private uint _pad1; - - /// - /// Fixed datum record count - /// - private uint _numberOfFixedDatumRecords; - - /// - /// variable datum record count - /// - private uint _numberOfVariableDatumRecords; - - /// - /// Fixed datum records - /// - private List _fixedDatumRecords = new List(); - - /// - /// Variable datum records - /// - private List _variableDatumRecords = new List(); - - /// - /// Initializes a new instance of the class. - /// - public EventReportReliablePdu() - { - PduType = (byte)61; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(EventReportReliablePdu left, EventReportReliablePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(EventReportReliablePdu left, EventReportReliablePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 2; // this._eventType - marshalSize += 4; // this._pad1 - marshalSize += 4; // this._numberOfFixedDatumRecords - marshalSize += 4; // this._numberOfVariableDatumRecords - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - FixedDatum listElement = (FixedDatum)this._fixedDatumRecords[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - VariableDatum listElement = (VariableDatum)this._variableDatumRecords[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Event type - /// - [XmlElement(Type = typeof(ushort), ElementName = "eventType")] - public ushort EventType - { - get - { - return this._eventType; - } - - set - { - this._eventType = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(uint), ElementName = "pad1")] - public uint Pad1 - { - get - { - return this._pad1; - } - - set - { - this._pad1 = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] - public uint NumberOfFixedDatumRecords - { - get - { - return this._numberOfFixedDatumRecords; - } - - set - { - this._numberOfFixedDatumRecords = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] - public uint NumberOfVariableDatumRecords - { - get - { - return this._numberOfVariableDatumRecords; - } - - set - { - this._numberOfVariableDatumRecords = value; - } - } - - /// - /// Gets or sets the Fixed datum records - /// - [XmlElement(ElementName = "fixedDatumRecordsList", Type = typeof(List))] - public List FixedDatumRecords - { - get - { - return this._fixedDatumRecords; - } - } - - /// - /// Gets or sets the Variable datum records - /// - [XmlElement(ElementName = "variableDatumRecordsList", Type = typeof(List))] - public List VariableDatumRecords - { - get - { - return this._variableDatumRecords; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._eventType); - dos.WriteUnsignedInt((uint)this._pad1); - dos.WriteUnsignedInt((uint)this._fixedDatumRecords.Count); - dos.WriteUnsignedInt((uint)this._variableDatumRecords.Count); - - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; - aFixedDatum.Marshal(dos); - } - - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; - aVariableDatum.Marshal(dos); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._eventType = dis.ReadUnsignedShort(); - this._pad1 = dis.ReadUnsignedInt(); - this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); - this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); - for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) - { - FixedDatum anX = new FixedDatum(); - anX.Unmarshal(dis); - this._fixedDatumRecords.Add(anX); - }; - - for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) - { - VariableDatum anX = new VariableDatum(); - anX.Unmarshal(dis); - this._variableDatumRecords.Add(anX); - }; - - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._eventType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fixedDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - sb.AppendLine(""); - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; - aFixedDatum.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - sb.AppendLine(""); - VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; - aVariableDatum.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as EventReportReliablePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(EventReportReliablePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._eventType != obj._eventType) - { - ivarsEqual = false; - } - - if (this._pad1 != obj._pad1) - { - ivarsEqual = false; - } - - if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) - { - ivarsEqual = false; - } - - if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) - { - ivarsEqual = false; - } - - if (this._fixedDatumRecords.Count != obj._fixedDatumRecords.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - if (!this._fixedDatumRecords[idx].Equals(obj._fixedDatumRecords[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._variableDatumRecords.Count != obj._variableDatumRecords.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - if (!this._variableDatumRecords[idx].Equals(obj._variableDatumRecords[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._eventType.GetHashCode(); - result = GenerateHash(result) ^ this._pad1.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); - - if (this._fixedDatumRecords.Count > 0) - { - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - result = GenerateHash(result) ^ this._fixedDatumRecords[idx].GetHashCode(); - } - } - - if (this._variableDatumRecords.Count > 0) - { - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - result = GenerateHash(result) ^ this._variableDatumRecords[idx].GetHashCode(); - } - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/Expendable.cs b/Libs/CSharpDis7/Expendable.cs deleted file mode 100644 index 7b8aeaa..0000000 --- a/Libs/CSharpDis7/Expendable.cs +++ /dev/null @@ -1,384 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// An entity's expendable (chaff, flares, etc) information. Section 6.2.36 - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityType))] - public partial class Expendable - { - /// - /// Type of expendable - /// - private EntityType _expendable = new EntityType(); - - private uint _station; - - private ushort _quantity; - - private byte _expendableStatus; - - private byte _padding; - - /// - /// Initializes a new instance of the class. - /// - public Expendable() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(Expendable left, Expendable right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(Expendable left, Expendable right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += this._expendable.GetMarshalledSize(); // this._expendable - marshalSize += 4; // this._station - marshalSize += 2; // this._quantity - marshalSize += 1; // this._expendableStatus - marshalSize += 1; // this._padding - return marshalSize; - } - - /// - /// Gets or sets the Type of expendable - /// - [XmlElement(Type = typeof(EntityType), ElementName = "expendable")] - public EntityType Expendable_ - { - get - { - return this._expendable; - } - - set - { - this._expendable = value; - } - } - - [XmlElement(Type = typeof(uint), ElementName = "station")] - public uint Station - { - get - { - return this._station; - } - - set - { - this._station = value; - } - } - - [XmlElement(Type = typeof(ushort), ElementName = "quantity")] - public ushort Quantity - { - get - { - return this._quantity; - } - - set - { - this._quantity = value; - } - } - - [XmlElement(Type = typeof(byte), ElementName = "expendableStatus")] - public byte ExpendableStatus - { - get - { - return this._expendableStatus; - } - - set - { - this._expendableStatus = value; - } - } - - [XmlElement(Type = typeof(byte), ElementName = "padding")] - public byte Padding - { - get - { - return this._padding; - } - - set - { - this._padding = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - this._expendable.Marshal(dos); - dos.WriteUnsignedInt((uint)this._station); - dos.WriteUnsignedShort((ushort)this._quantity); - dos.WriteUnsignedByte((byte)this._expendableStatus); - dos.WriteUnsignedByte((byte)this._padding); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._expendable.Unmarshal(dis); - this._station = dis.ReadUnsignedInt(); - this._quantity = dis.ReadUnsignedShort(); - this._expendableStatus = dis.ReadUnsignedByte(); - this._padding = dis.ReadUnsignedByte(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine(""); - this._expendable.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._station.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._quantity.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._expendableStatus.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as Expendable; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(Expendable obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (!this._expendable.Equals(obj._expendable)) - { - ivarsEqual = false; - } - - if (this._station != obj._station) - { - ivarsEqual = false; - } - - if (this._quantity != obj._quantity) - { - ivarsEqual = false; - } - - if (this._expendableStatus != obj._expendableStatus) - { - ivarsEqual = false; - } - - if (this._padding != obj._padding) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._expendable.GetHashCode(); - result = GenerateHash(result) ^ this._station.GetHashCode(); - result = GenerateHash(result) ^ this._quantity.GetHashCode(); - result = GenerateHash(result) ^ this._expendableStatus.GetHashCode(); - result = GenerateHash(result) ^ this._padding.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/ExpendableDescriptor.cs b/Libs/CSharpDis7/ExpendableDescriptor.cs deleted file mode 100644 index 0949309..0000000 --- a/Libs/CSharpDis7/ExpendableDescriptor.cs +++ /dev/null @@ -1,312 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Burst of chaff or expendible device. Section 6.2.20.4 - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityType))] - public partial class ExpendableDescriptor - { - /// - /// Type of the object that exploded - /// - private EntityType _expendableType = new EntityType(); - - /// - /// Padding - /// - private long _padding; - - /// - /// Initializes a new instance of the class. - /// - public ExpendableDescriptor() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ExpendableDescriptor left, ExpendableDescriptor right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ExpendableDescriptor left, ExpendableDescriptor right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += this._expendableType.GetMarshalledSize(); // this._expendableType - marshalSize += 8; // this._padding - return marshalSize; - } - - /// - /// Gets or sets the Type of the object that exploded - /// - [XmlElement(Type = typeof(EntityType), ElementName = "expendableType")] - public EntityType ExpendableType - { - get - { - return this._expendableType; - } - - set - { - this._expendableType = value; - } - } - - /// - /// Gets or sets the Padding - /// - [XmlElement(Type = typeof(long), ElementName = "padding")] - public long Padding - { - get - { - return this._padding; - } - - set - { - this._padding = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - this._expendableType.Marshal(dos); - dos.WriteLong((long)this._padding); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._expendableType.Unmarshal(dis); - this._padding = dis.ReadLong(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine(""); - this._expendableType.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ExpendableDescriptor; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ExpendableDescriptor obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (!this._expendableType.Equals(obj._expendableType)) - { - ivarsEqual = false; - } - - if (this._padding != obj._padding) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._expendableType.GetHashCode(); - result = GenerateHash(result) ^ this._padding.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/ExpendableReload.cs b/Libs/CSharpDis7/ExpendableReload.cs deleted file mode 100644 index 4e12354..0000000 --- a/Libs/CSharpDis7/ExpendableReload.cs +++ /dev/null @@ -1,410 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// An entity's expendable (chaff, flares, etc) information. Section 6.2.37 - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityType))] - public partial class ExpendableReload - { - /// - /// Type of expendable - /// - private EntityType _expendable = new EntityType(); - - private uint _station; - - private ushort _standardQuantity; - - private ushort _maximumQuantity; - - private uint _standardQuantityReloadTime; - - private uint _maximumQuantityReloadTime; - - /// - /// Initializes a new instance of the class. - /// - public ExpendableReload() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ExpendableReload left, ExpendableReload right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ExpendableReload left, ExpendableReload right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += this._expendable.GetMarshalledSize(); // this._expendable - marshalSize += 4; // this._station - marshalSize += 2; // this._standardQuantity - marshalSize += 2; // this._maximumQuantity - marshalSize += 4; // this._standardQuantityReloadTime - marshalSize += 4; // this._maximumQuantityReloadTime - return marshalSize; - } - - /// - /// Gets or sets the Type of expendable - /// - [XmlElement(Type = typeof(EntityType), ElementName = "expendable")] - public EntityType Expendable - { - get - { - return this._expendable; - } - - set - { - this._expendable = value; - } - } - - [XmlElement(Type = typeof(uint), ElementName = "station")] - public uint Station - { - get - { - return this._station; - } - - set - { - this._station = value; - } - } - - [XmlElement(Type = typeof(ushort), ElementName = "standardQuantity")] - public ushort StandardQuantity - { - get - { - return this._standardQuantity; - } - - set - { - this._standardQuantity = value; - } - } - - [XmlElement(Type = typeof(ushort), ElementName = "maximumQuantity")] - public ushort MaximumQuantity - { - get - { - return this._maximumQuantity; - } - - set - { - this._maximumQuantity = value; - } - } - - [XmlElement(Type = typeof(uint), ElementName = "standardQuantityReloadTime")] - public uint StandardQuantityReloadTime - { - get - { - return this._standardQuantityReloadTime; - } - - set - { - this._standardQuantityReloadTime = value; - } - } - - [XmlElement(Type = typeof(uint), ElementName = "maximumQuantityReloadTime")] - public uint MaximumQuantityReloadTime - { - get - { - return this._maximumQuantityReloadTime; - } - - set - { - this._maximumQuantityReloadTime = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - this._expendable.Marshal(dos); - dos.WriteUnsignedInt((uint)this._station); - dos.WriteUnsignedShort((ushort)this._standardQuantity); - dos.WriteUnsignedShort((ushort)this._maximumQuantity); - dos.WriteUnsignedInt((uint)this._standardQuantityReloadTime); - dos.WriteUnsignedInt((uint)this._maximumQuantityReloadTime); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._expendable.Unmarshal(dis); - this._station = dis.ReadUnsignedInt(); - this._standardQuantity = dis.ReadUnsignedShort(); - this._maximumQuantity = dis.ReadUnsignedShort(); - this._standardQuantityReloadTime = dis.ReadUnsignedInt(); - this._maximumQuantityReloadTime = dis.ReadUnsignedInt(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine(""); - this._expendable.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._station.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._standardQuantity.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._maximumQuantity.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._standardQuantityReloadTime.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._maximumQuantityReloadTime.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ExpendableReload; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ExpendableReload obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (!this._expendable.Equals(obj._expendable)) - { - ivarsEqual = false; - } - - if (this._station != obj._station) - { - ivarsEqual = false; - } - - if (this._standardQuantity != obj._standardQuantity) - { - ivarsEqual = false; - } - - if (this._maximumQuantity != obj._maximumQuantity) - { - ivarsEqual = false; - } - - if (this._standardQuantityReloadTime != obj._standardQuantityReloadTime) - { - ivarsEqual = false; - } - - if (this._maximumQuantityReloadTime != obj._maximumQuantityReloadTime) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._expendable.GetHashCode(); - result = GenerateHash(result) ^ this._station.GetHashCode(); - result = GenerateHash(result) ^ this._standardQuantity.GetHashCode(); - result = GenerateHash(result) ^ this._maximumQuantity.GetHashCode(); - result = GenerateHash(result) ^ this._standardQuantityReloadTime.GetHashCode(); - result = GenerateHash(result) ^ this._maximumQuantityReloadTime.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/ExplosionDescriptor.cs b/Libs/CSharpDis7/ExplosionDescriptor.cs deleted file mode 100644 index 41e58e6..0000000 --- a/Libs/CSharpDis7/ExplosionDescriptor.cs +++ /dev/null @@ -1,376 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Explosion of a non-munition. Section 6.2.20.3 - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityType))] - public partial class ExplosionDescriptor - { - /// - /// Type of the object that exploded. See 6.2.30 - /// - private EntityType _explodingObject = new EntityType(); - - /// - /// Material that exploded. Can be grain dust, tnt, gasoline, etc. - /// - private ushort _explosiveMaterial; - - /// - /// padding - /// - private ushort _padding; - - /// - /// Force of explosion, in equivalent KG of TNT - /// - private float _explosiveForce; - - /// - /// Initializes a new instance of the class. - /// - public ExplosionDescriptor() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ExplosionDescriptor left, ExplosionDescriptor right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ExplosionDescriptor left, ExplosionDescriptor right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += this._explodingObject.GetMarshalledSize(); // this._explodingObject - marshalSize += 2; // this._explosiveMaterial - marshalSize += 2; // this._padding - marshalSize += 4; // this._explosiveForce - return marshalSize; - } - - /// - /// Gets or sets the Type of the object that exploded. See 6.2.30 - /// - [XmlElement(Type = typeof(EntityType), ElementName = "explodingObject")] - public EntityType ExplodingObject - { - get - { - return this._explodingObject; - } - - set - { - this._explodingObject = value; - } - } - - /// - /// Gets or sets the Material that exploded. Can be grain dust, tnt, gasoline, etc. - /// - [XmlElement(Type = typeof(ushort), ElementName = "explosiveMaterial")] - public ushort ExplosiveMaterial - { - get - { - return this._explosiveMaterial; - } - - set - { - this._explosiveMaterial = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(ushort), ElementName = "padding")] - public ushort Padding - { - get - { - return this._padding; - } - - set - { - this._padding = value; - } - } - - /// - /// Gets or sets the Force of explosion, in equivalent KG of TNT - /// - [XmlElement(Type = typeof(float), ElementName = "explosiveForce")] - public float ExplosiveForce - { - get - { - return this._explosiveForce; - } - - set - { - this._explosiveForce = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - this._explodingObject.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._explosiveMaterial); - dos.WriteUnsignedShort((ushort)this._padding); - dos.WriteFloat((float)this._explosiveForce); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._explodingObject.Unmarshal(dis); - this._explosiveMaterial = dis.ReadUnsignedShort(); - this._padding = dis.ReadUnsignedShort(); - this._explosiveForce = dis.ReadFloat(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine(""); - this._explodingObject.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._explosiveMaterial.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._explosiveForce.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ExplosionDescriptor; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ExplosionDescriptor obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (!this._explodingObject.Equals(obj._explodingObject)) - { - ivarsEqual = false; - } - - if (this._explosiveMaterial != obj._explosiveMaterial) - { - ivarsEqual = false; - } - - if (this._padding != obj._padding) - { - ivarsEqual = false; - } - - if (this._explosiveForce != obj._explosiveForce) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._explodingObject.GetHashCode(); - result = GenerateHash(result) ^ this._explosiveMaterial.GetHashCode(); - result = GenerateHash(result) ^ this._padding.GetHashCode(); - result = GenerateHash(result) ^ this._explosiveForce.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/FalseTargetsAttribute.cs b/Libs/CSharpDis7/FalseTargetsAttribute.cs deleted file mode 100644 index 35534c4..0000000 --- a/Libs/CSharpDis7/FalseTargetsAttribute.cs +++ /dev/null @@ -1,609 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// 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 - /// - [Serializable] - [XmlRoot] - public partial class FalseTargetsAttribute - { - private uint _recordType = 3502; - - private ushort _recordLength = 40; - - private ushort _padding; - - private byte _emitterNumber; - - private byte _beamNumber; - - private byte _stateIndicator; - - private byte _padding2; - - private float _falseTargetCount; - - private float _walkSpeed; - - private float _walkAcceleration; - - private float _maximumWalkDistance; - - private float _keepTime; - - private float _echoSpacing; - - private uint _padding3; - - /// - /// Initializes a new instance of the class. - /// - public FalseTargetsAttribute() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(FalseTargetsAttribute left, FalseTargetsAttribute right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(FalseTargetsAttribute left, FalseTargetsAttribute right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._recordType - marshalSize += 2; // this._recordLength - marshalSize += 2; // this._padding - marshalSize += 1; // this._emitterNumber - marshalSize += 1; // this._beamNumber - marshalSize += 1; // this._stateIndicator - marshalSize += 1; // this._padding2 - marshalSize += 4; // this._falseTargetCount - marshalSize += 4; // this._walkSpeed - marshalSize += 4; // this._walkAcceleration - marshalSize += 4; // this._maximumWalkDistance - marshalSize += 4; // this._keepTime - marshalSize += 4; // this._echoSpacing - marshalSize += 4; // this._padding3 - return marshalSize; - } - - [XmlElement(Type = typeof(uint), ElementName = "recordType")] - public uint RecordType - { - get - { - return this._recordType; - } - - set - { - this._recordType = value; - } - } - - [XmlElement(Type = typeof(ushort), ElementName = "recordLength")] - public ushort RecordLength - { - get - { - return this._recordLength; - } - - set - { - this._recordLength = value; - } - } - - [XmlElement(Type = typeof(ushort), ElementName = "padding")] - public ushort Padding - { - get - { - return this._padding; - } - - set - { - this._padding = value; - } - } - - [XmlElement(Type = typeof(byte), ElementName = "emitterNumber")] - public byte EmitterNumber - { - get - { - return this._emitterNumber; - } - - set - { - this._emitterNumber = value; - } - } - - [XmlElement(Type = typeof(byte), ElementName = "beamNumber")] - public byte BeamNumber - { - get - { - return this._beamNumber; - } - - set - { - this._beamNumber = value; - } - } - - [XmlElement(Type = typeof(byte), ElementName = "stateIndicator")] - public byte StateIndicator - { - get - { - return this._stateIndicator; - } - - set - { - this._stateIndicator = value; - } - } - - [XmlElement(Type = typeof(byte), ElementName = "padding2")] - public byte Padding2 - { - get - { - return this._padding2; - } - - set - { - this._padding2 = value; - } - } - - [XmlElement(Type = typeof(float), ElementName = "falseTargetCount")] - public float FalseTargetCount - { - get - { - return this._falseTargetCount; - } - - set - { - this._falseTargetCount = value; - } - } - - [XmlElement(Type = typeof(float), ElementName = "walkSpeed")] - public float WalkSpeed - { - get - { - return this._walkSpeed; - } - - set - { - this._walkSpeed = value; - } - } - - [XmlElement(Type = typeof(float), ElementName = "walkAcceleration")] - public float WalkAcceleration - { - get - { - return this._walkAcceleration; - } - - set - { - this._walkAcceleration = value; - } - } - - [XmlElement(Type = typeof(float), ElementName = "maximumWalkDistance")] - public float MaximumWalkDistance - { - get - { - return this._maximumWalkDistance; - } - - set - { - this._maximumWalkDistance = value; - } - } - - [XmlElement(Type = typeof(float), ElementName = "keepTime")] - public float KeepTime - { - get - { - return this._keepTime; - } - - set - { - this._keepTime = value; - } - } - - [XmlElement(Type = typeof(float), ElementName = "echoSpacing")] - public float EchoSpacing - { - get - { - return this._echoSpacing; - } - - set - { - this._echoSpacing = value; - } - } - - [XmlElement(Type = typeof(uint), ElementName = "padding3")] - public uint Padding3 - { - get - { - return this._padding3; - } - - set - { - this._padding3 = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._recordType); - dos.WriteUnsignedShort((ushort)this._recordLength); - dos.WriteUnsignedShort((ushort)this._padding); - dos.WriteUnsignedByte((byte)this._emitterNumber); - dos.WriteUnsignedByte((byte)this._beamNumber); - dos.WriteUnsignedByte((byte)this._stateIndicator); - dos.WriteUnsignedByte((byte)this._padding2); - dos.WriteFloat((float)this._falseTargetCount); - dos.WriteFloat((float)this._walkSpeed); - dos.WriteFloat((float)this._walkAcceleration); - dos.WriteFloat((float)this._maximumWalkDistance); - dos.WriteFloat((float)this._keepTime); - dos.WriteFloat((float)this._echoSpacing); - dos.WriteUnsignedInt((uint)this._padding3); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._recordType = dis.ReadUnsignedInt(); - this._recordLength = dis.ReadUnsignedShort(); - this._padding = dis.ReadUnsignedShort(); - this._emitterNumber = dis.ReadUnsignedByte(); - this._beamNumber = dis.ReadUnsignedByte(); - this._stateIndicator = dis.ReadUnsignedByte(); - this._padding2 = dis.ReadUnsignedByte(); - this._falseTargetCount = dis.ReadFloat(); - this._walkSpeed = dis.ReadFloat(); - this._walkAcceleration = dis.ReadFloat(); - this._maximumWalkDistance = dis.ReadFloat(); - this._keepTime = dis.ReadFloat(); - this._echoSpacing = dis.ReadFloat(); - this._padding3 = dis.ReadUnsignedInt(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._recordType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._recordLength.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._emitterNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._beamNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._stateIndicator.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._falseTargetCount.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._walkSpeed.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._walkAcceleration.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._maximumWalkDistance.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._keepTime.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._echoSpacing.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding3.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as FalseTargetsAttribute; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(FalseTargetsAttribute obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._recordType != obj._recordType) - { - ivarsEqual = false; - } - - if (this._recordLength != obj._recordLength) - { - ivarsEqual = false; - } - - if (this._padding != obj._padding) - { - ivarsEqual = false; - } - - if (this._emitterNumber != obj._emitterNumber) - { - ivarsEqual = false; - } - - if (this._beamNumber != obj._beamNumber) - { - ivarsEqual = false; - } - - if (this._stateIndicator != obj._stateIndicator) - { - ivarsEqual = false; - } - - if (this._padding2 != obj._padding2) - { - ivarsEqual = false; - } - - if (this._falseTargetCount != obj._falseTargetCount) - { - ivarsEqual = false; - } - - if (this._walkSpeed != obj._walkSpeed) - { - ivarsEqual = false; - } - - if (this._walkAcceleration != obj._walkAcceleration) - { - ivarsEqual = false; - } - - if (this._maximumWalkDistance != obj._maximumWalkDistance) - { - ivarsEqual = false; - } - - if (this._keepTime != obj._keepTime) - { - ivarsEqual = false; - } - - if (this._echoSpacing != obj._echoSpacing) - { - ivarsEqual = false; - } - - if (this._padding3 != obj._padding3) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._recordType.GetHashCode(); - result = GenerateHash(result) ^ this._recordLength.GetHashCode(); - result = GenerateHash(result) ^ this._padding.GetHashCode(); - result = GenerateHash(result) ^ this._emitterNumber.GetHashCode(); - result = GenerateHash(result) ^ this._beamNumber.GetHashCode(); - result = GenerateHash(result) ^ this._stateIndicator.GetHashCode(); - result = GenerateHash(result) ^ this._padding2.GetHashCode(); - result = GenerateHash(result) ^ this._falseTargetCount.GetHashCode(); - result = GenerateHash(result) ^ this._walkSpeed.GetHashCode(); - result = GenerateHash(result) ^ this._walkAcceleration.GetHashCode(); - result = GenerateHash(result) ^ this._maximumWalkDistance.GetHashCode(); - result = GenerateHash(result) ^ this._keepTime.GetHashCode(); - result = GenerateHash(result) ^ this._echoSpacing.GetHashCode(); - result = GenerateHash(result) ^ this._padding3.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/FastEntityStatePdu.cs b/Libs/CSharpDis7/FastEntityStatePdu.cs deleted file mode 100644 index 4c45e08..0000000 --- a/Libs/CSharpDis7/FastEntityStatePdu.cs +++ /dev/null @@ -1,1590 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Represents the postion and state of one entity in the world. This is identical in function to entity state pdu, but generates less garbage to collect in the Java world. Section 7.2.2. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(VariableParameter))] - public partial class FastEntityStatePdu : EntityInformationFamilyPdu, IEquatable - { - /// - /// The site ID - /// - private ushort _site; - - /// - /// The application ID - /// - private ushort _application; - - /// - /// the entity ID - /// - private ushort _entity; - - /// - /// what force this entity is affiliated with, eg red, blue, neutral, etc - /// - private byte _forceId; - - /// - /// How many variable (nee articulation) parameters are in the variable length list - /// - private byte _numberOfVariableParameters; - - /// - /// Kind of entity - /// - private byte _entityKind; - - /// - /// Domain of entity (air, surface, subsurface, space, etc) - /// - private byte _domain; - - /// - /// country to which the design of the entity is attributed - /// - private ushort _country; - - /// - /// category of entity - /// - private byte _category; - - /// - /// subcategory of entity - /// - private byte _subcategory; - - /// - /// specific info based on subcategory field - /// - private byte _specific; - - private byte _extra; - - /// - /// Kind of entity - /// - private byte _altEntityKind; - - /// - /// Domain of entity (air, surface, subsurface, space, etc) - /// - private byte _altDomain; - - /// - /// country to which the design of the entity is attributed - /// - private ushort _altCountry; - - /// - /// category of entity - /// - private byte _altCategory; - - /// - /// subcategory of entity - /// - private byte _altSubcategory; - - /// - /// specific info based on subcategory field - /// - private byte _altSpecific; - - private byte _altExtra; - - /// - /// X velo - /// - private float _xVelocity; - - /// - /// y Value - /// - private float _yVelocity; - - /// - /// Z value - /// - private float _zVelocity; - - /// - /// X value - /// - private double _xLocation; - - /// - /// y Value - /// - private double _yLocation; - - /// - /// Z value - /// - private double _zLocation; - - private float _psi; - - private float _theta; - - private float _phi; - - /// - /// a series of bit flags that are used to help draw the entity, such as smoking, on fire, etc. - /// - private int _entityAppearance; - - /// - /// enumeration of what dead reckoning algorighm to use - /// - private byte _deadReckoningAlgorithm; - - /// - /// other parameters to use in the dead reckoning algorithm - /// - private byte[] _otherParameters = new byte[15]; - - /// - /// X value - /// - private float _xAcceleration; - - /// - /// y Value - /// - private float _yAcceleration; - - /// - /// Z value - /// - private float _zAcceleration; - - /// - /// X value - /// - private float _xAngularVelocity; - - /// - /// y Value - /// - private float _yAngularVelocity; - - /// - /// Z value - /// - private float _zAngularVelocity; - - /// - /// characters that can be used for debugging, or to draw unique strings on the side of entities in the world - /// - private byte[] _marking = new byte[12]; - - /// - /// a series of bit flags - /// - private int _capabilities; - - /// - /// variable length list of variable parameters. In earlier versions of DIS these were known as articulation parameters - /// - private List _variableParameters = new List(); - - /// - /// Initializes a new instance of the class. - /// - public FastEntityStatePdu() - { - PduType = (byte)1; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(FastEntityStatePdu left, FastEntityStatePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(FastEntityStatePdu left, FastEntityStatePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 2; // this._site - marshalSize += 2; // this._application - marshalSize += 2; // this._entity - marshalSize += 1; // this._forceId - marshalSize += 1; // this._numberOfVariableParameters - marshalSize += 1; // this._entityKind - marshalSize += 1; // this._domain - marshalSize += 2; // this._country - marshalSize += 1; // this._category - marshalSize += 1; // this._subcategory - marshalSize += 1; // this._specific - marshalSize += 1; // this._extra - marshalSize += 1; // this._altEntityKind - marshalSize += 1; // this._altDomain - marshalSize += 2; // this._altCountry - marshalSize += 1; // this._altCategory - marshalSize += 1; // this._altSubcategory - marshalSize += 1; // this._altSpecific - marshalSize += 1; // this._altExtra - marshalSize += 4; // this._xVelocity - marshalSize += 4; // this._yVelocity - marshalSize += 4; // this._zVelocity - marshalSize += 8; // this._xLocation - marshalSize += 8; // this._yLocation - marshalSize += 8; // this._zLocation - marshalSize += 4; // this._psi - marshalSize += 4; // this._theta - marshalSize += 4; // this._phi - marshalSize += 4; // this._entityAppearance - marshalSize += 1; // this._deadReckoningAlgorithm - marshalSize += 15 * 1; // _otherParameters - marshalSize += 4; // this._xAcceleration - marshalSize += 4; // this._yAcceleration - marshalSize += 4; // this._zAcceleration - marshalSize += 4; // this._xAngularVelocity - marshalSize += 4; // this._yAngularVelocity - marshalSize += 4; // this._zAngularVelocity - marshalSize += 12 * 1; // _marking - marshalSize += 4; // this._capabilities - for (int idx = 0; idx < this._variableParameters.Count; idx++) - { - VariableParameter listElement = (VariableParameter)this._variableParameters[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the The site ID - /// - [XmlElement(Type = typeof(ushort), ElementName = "site")] - public ushort Site - { - get - { - return this._site; - } - - set - { - this._site = value; - } - } - - /// - /// Gets or sets the The application ID - /// - [XmlElement(Type = typeof(ushort), ElementName = "application")] - public ushort Application - { - get - { - return this._application; - } - - set - { - this._application = value; - } - } - - /// - /// Gets or sets the the entity ID - /// - [XmlElement(Type = typeof(ushort), ElementName = "entity")] - public ushort Entity - { - get - { - return this._entity; - } - - set - { - this._entity = value; - } - } - - /// - /// Gets or sets the what force this entity is affiliated with, eg red, blue, neutral, etc - /// - [XmlElement(Type = typeof(byte), ElementName = "forceId")] - public byte ForceId - { - get - { - return this._forceId; - } - - set - { - this._forceId = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfVariableParameters method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfVariableParameters")] - public byte NumberOfVariableParameters - { - get - { - return this._numberOfVariableParameters; - } - - set - { - this._numberOfVariableParameters = value; - } - } - - /// - /// Gets or sets the Kind of entity - /// - [XmlElement(Type = typeof(byte), ElementName = "entityKind")] - public byte EntityKind - { - get - { - return this._entityKind; - } - - set - { - this._entityKind = value; - } - } - - /// - /// Gets or sets the Domain of entity (air, surface, subsurface, space, etc) - /// - [XmlElement(Type = typeof(byte), ElementName = "domain")] - public byte Domain - { - get - { - return this._domain; - } - - set - { - this._domain = value; - } - } - - /// - /// Gets or sets the country to which the design of the entity is attributed - /// - [XmlElement(Type = typeof(ushort), ElementName = "country")] - public ushort Country - { - get - { - return this._country; - } - - set - { - this._country = value; - } - } - - /// - /// Gets or sets the category of entity - /// - [XmlElement(Type = typeof(byte), ElementName = "category")] - public byte Category - { - get - { - return this._category; - } - - set - { - this._category = value; - } - } - - /// - /// Gets or sets the subcategory of entity - /// - [XmlElement(Type = typeof(byte), ElementName = "subcategory")] - public byte Subcategory - { - get - { - return this._subcategory; - } - - set - { - this._subcategory = value; - } - } - - /// - /// Gets or sets the specific info based on subcategory field - /// - [XmlElement(Type = typeof(byte), ElementName = "specific")] - public byte Specific - { - get - { - return this._specific; - } - - set - { - this._specific = value; - } - } - - [XmlElement(Type = typeof(byte), ElementName = "extra")] - public byte Extra - { - get - { - return this._extra; - } - - set - { - this._extra = value; - } - } - - /// - /// Gets or sets the Kind of entity - /// - [XmlElement(Type = typeof(byte), ElementName = "altEntityKind")] - public byte AltEntityKind - { - get - { - return this._altEntityKind; - } - - set - { - this._altEntityKind = value; - } - } - - /// - /// Gets or sets the Domain of entity (air, surface, subsurface, space, etc) - /// - [XmlElement(Type = typeof(byte), ElementName = "altDomain")] - public byte AltDomain - { - get - { - return this._altDomain; - } - - set - { - this._altDomain = value; - } - } - - /// - /// Gets or sets the country to which the design of the entity is attributed - /// - [XmlElement(Type = typeof(ushort), ElementName = "altCountry")] - public ushort AltCountry - { - get - { - return this._altCountry; - } - - set - { - this._altCountry = value; - } - } - - /// - /// Gets or sets the category of entity - /// - [XmlElement(Type = typeof(byte), ElementName = "altCategory")] - public byte AltCategory - { - get - { - return this._altCategory; - } - - set - { - this._altCategory = value; - } - } - - /// - /// Gets or sets the subcategory of entity - /// - [XmlElement(Type = typeof(byte), ElementName = "altSubcategory")] - public byte AltSubcategory - { - get - { - return this._altSubcategory; - } - - set - { - this._altSubcategory = value; - } - } - - /// - /// Gets or sets the specific info based on subcategory field - /// - [XmlElement(Type = typeof(byte), ElementName = "altSpecific")] - public byte AltSpecific - { - get - { - return this._altSpecific; - } - - set - { - this._altSpecific = value; - } - } - - [XmlElement(Type = typeof(byte), ElementName = "altExtra")] - public byte AltExtra - { - get - { - return this._altExtra; - } - - set - { - this._altExtra = value; - } - } - - /// - /// Gets or sets the X velo - /// - [XmlElement(Type = typeof(float), ElementName = "xVelocity")] - public float XVelocity - { - get - { - return this._xVelocity; - } - - set - { - this._xVelocity = value; - } - } - - /// - /// Gets or sets the y Value - /// - [XmlElement(Type = typeof(float), ElementName = "yVelocity")] - public float YVelocity - { - get - { - return this._yVelocity; - } - - set - { - this._yVelocity = value; - } - } - - /// - /// Gets or sets the Z value - /// - [XmlElement(Type = typeof(float), ElementName = "zVelocity")] - public float ZVelocity - { - get - { - return this._zVelocity; - } - - set - { - this._zVelocity = value; - } - } - - /// - /// Gets or sets the X value - /// - [XmlElement(Type = typeof(double), ElementName = "xLocation")] - public double XLocation - { - get - { - return this._xLocation; - } - - set - { - this._xLocation = value; - } - } - - /// - /// Gets or sets the y Value - /// - [XmlElement(Type = typeof(double), ElementName = "yLocation")] - public double YLocation - { - get - { - return this._yLocation; - } - - set - { - this._yLocation = value; - } - } - - /// - /// Gets or sets the Z value - /// - [XmlElement(Type = typeof(double), ElementName = "zLocation")] - public double ZLocation - { - get - { - return this._zLocation; - } - - set - { - this._zLocation = value; - } - } - - [XmlElement(Type = typeof(float), ElementName = "psi")] - public float Psi - { - get - { - return this._psi; - } - - set - { - this._psi = value; - } - } - - [XmlElement(Type = typeof(float), ElementName = "theta")] - public float Theta - { - get - { - return this._theta; - } - - set - { - this._theta = value; - } - } - - [XmlElement(Type = typeof(float), ElementName = "phi")] - public float Phi - { - get - { - return this._phi; - } - - set - { - this._phi = value; - } - } - - /// - /// Gets or sets the a series of bit flags that are used to help draw the entity, such as smoking, on fire, etc. - /// - [XmlElement(Type = typeof(int), ElementName = "entityAppearance")] - public int EntityAppearance - { - get - { - return this._entityAppearance; - } - - set - { - this._entityAppearance = value; - } - } - - /// - /// Gets or sets the enumeration of what dead reckoning algorighm to use - /// - [XmlElement(Type = typeof(byte), ElementName = "deadReckoningAlgorithm")] - public byte DeadReckoningAlgorithm - { - get - { - return this._deadReckoningAlgorithm; - } - - set - { - this._deadReckoningAlgorithm = value; - } - } - - /// - /// Gets or sets the other parameters to use in the dead reckoning algorithm - /// - [XmlArray(ElementName = "otherParameters")] - public byte[] OtherParameters - { - get - { - return this._otherParameters; - } - - set - { - this._otherParameters = value; - } -} - - /// - /// Gets or sets the X value - /// - [XmlElement(Type = typeof(float), ElementName = "xAcceleration")] - public float XAcceleration - { - get - { - return this._xAcceleration; - } - - set - { - this._xAcceleration = value; - } - } - - /// - /// Gets or sets the y Value - /// - [XmlElement(Type = typeof(float), ElementName = "yAcceleration")] - public float YAcceleration - { - get - { - return this._yAcceleration; - } - - set - { - this._yAcceleration = value; - } - } - - /// - /// Gets or sets the Z value - /// - [XmlElement(Type = typeof(float), ElementName = "zAcceleration")] - public float ZAcceleration - { - get - { - return this._zAcceleration; - } - - set - { - this._zAcceleration = value; - } - } - - /// - /// Gets or sets the X value - /// - [XmlElement(Type = typeof(float), ElementName = "xAngularVelocity")] - public float XAngularVelocity - { - get - { - return this._xAngularVelocity; - } - - set - { - this._xAngularVelocity = value; - } - } - - /// - /// Gets or sets the y Value - /// - [XmlElement(Type = typeof(float), ElementName = "yAngularVelocity")] - public float YAngularVelocity - { - get - { - return this._yAngularVelocity; - } - - set - { - this._yAngularVelocity = value; - } - } - - /// - /// Gets or sets the Z value - /// - [XmlElement(Type = typeof(float), ElementName = "zAngularVelocity")] - public float ZAngularVelocity - { - get - { - return this._zAngularVelocity; - } - - set - { - this._zAngularVelocity = value; - } - } - - /// - /// Gets or sets the characters that can be used for debugging, or to draw unique strings on the side of entities in the world - /// - [XmlArray(ElementName = "marking")] - public byte[] Marking - { - get - { - return this._marking; - } - - set - { - this._marking = value; - } -} - - /// - /// Gets or sets the a series of bit flags - /// - [XmlElement(Type = typeof(int), ElementName = "capabilities")] - public int Capabilities - { - get - { - return this._capabilities; - } - - set - { - this._capabilities = value; - } - } - - /// - /// Gets or sets the variable length list of variable parameters. In earlier versions of DIS these were known as articulation parameters - /// - [XmlElement(ElementName = "variableParametersList", Type = typeof(List))] - public List VariableParameters - { - get - { - return this._variableParameters; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._site); - dos.WriteUnsignedShort((ushort)this._application); - dos.WriteUnsignedShort((ushort)this._entity); - dos.WriteUnsignedByte((byte)this._forceId); - dos.WriteByte((byte)this._variableParameters.Count); - dos.WriteUnsignedByte((byte)this._entityKind); - dos.WriteUnsignedByte((byte)this._domain); - dos.WriteUnsignedShort((ushort)this._country); - dos.WriteUnsignedByte((byte)this._category); - dos.WriteUnsignedByte((byte)this._subcategory); - dos.WriteUnsignedByte((byte)this._specific); - dos.WriteUnsignedByte((byte)this._extra); - dos.WriteUnsignedByte((byte)this._altEntityKind); - dos.WriteUnsignedByte((byte)this._altDomain); - dos.WriteUnsignedShort((ushort)this._altCountry); - dos.WriteUnsignedByte((byte)this._altCategory); - dos.WriteUnsignedByte((byte)this._altSubcategory); - dos.WriteUnsignedByte((byte)this._altSpecific); - dos.WriteUnsignedByte((byte)this._altExtra); - dos.WriteFloat((float)this._xVelocity); - dos.WriteFloat((float)this._yVelocity); - dos.WriteFloat((float)this._zVelocity); - dos.WriteDouble((double)this._xLocation); - dos.WriteDouble((double)this._yLocation); - dos.WriteDouble((double)this._zLocation); - dos.WriteFloat((float)this._psi); - dos.WriteFloat((float)this._theta); - dos.WriteFloat((float)this._phi); - dos.WriteInt((int)this._entityAppearance); - dos.WriteUnsignedByte((byte)this._deadReckoningAlgorithm); - - for (int idx = 0; idx < this._otherParameters.Length; idx++) - { - dos.WriteByte(this._otherParameters[idx]); - } - dos.WriteFloat((float)this._xAcceleration); - dos.WriteFloat((float)this._yAcceleration); - dos.WriteFloat((float)this._zAcceleration); - dos.WriteFloat((float)this._xAngularVelocity); - dos.WriteFloat((float)this._yAngularVelocity); - dos.WriteFloat((float)this._zAngularVelocity); - - for (int idx = 0; idx < this._marking.Length; idx++) - { - dos.WriteByte(this._marking[idx]); - } - dos.WriteInt((int)this._capabilities); - - for (int idx = 0; idx < this._variableParameters.Count; idx++) - { - VariableParameter aVariableParameter = (VariableParameter)this._variableParameters[idx]; - aVariableParameter.Marshal(dos); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._site = dis.ReadUnsignedShort(); - this._application = dis.ReadUnsignedShort(); - this._entity = dis.ReadUnsignedShort(); - this._forceId = dis.ReadUnsignedByte(); - this._numberOfVariableParameters = dis.ReadByte(); - this._entityKind = dis.ReadUnsignedByte(); - this._domain = dis.ReadUnsignedByte(); - this._country = dis.ReadUnsignedShort(); - this._category = dis.ReadUnsignedByte(); - this._subcategory = dis.ReadUnsignedByte(); - this._specific = dis.ReadUnsignedByte(); - this._extra = dis.ReadUnsignedByte(); - this._altEntityKind = dis.ReadUnsignedByte(); - this._altDomain = dis.ReadUnsignedByte(); - this._altCountry = dis.ReadUnsignedShort(); - this._altCategory = dis.ReadUnsignedByte(); - this._altSubcategory = dis.ReadUnsignedByte(); - this._altSpecific = dis.ReadUnsignedByte(); - this._altExtra = dis.ReadUnsignedByte(); - this._xVelocity = dis.ReadFloat(); - this._yVelocity = dis.ReadFloat(); - this._zVelocity = dis.ReadFloat(); - this._xLocation = dis.ReadDouble(); - this._yLocation = dis.ReadDouble(); - this._zLocation = dis.ReadDouble(); - this._psi = dis.ReadFloat(); - this._theta = dis.ReadFloat(); - this._phi = dis.ReadFloat(); - this._entityAppearance = dis.ReadInt(); - this._deadReckoningAlgorithm = dis.ReadUnsignedByte(); - for (int idx = 0; idx < this._otherParameters.Length; idx++) - { - this._otherParameters[idx] = dis.ReadByte(); - } - this._xAcceleration = dis.ReadFloat(); - this._yAcceleration = dis.ReadFloat(); - this._zAcceleration = dis.ReadFloat(); - this._xAngularVelocity = dis.ReadFloat(); - this._yAngularVelocity = dis.ReadFloat(); - this._zAngularVelocity = dis.ReadFloat(); - for (int idx = 0; idx < this._marking.Length; idx++) - { - this._marking[idx] = dis.ReadByte(); - } - this._capabilities = dis.ReadInt(); - for (int idx = 0; idx < this.NumberOfVariableParameters; idx++) - { - VariableParameter anX = new VariableParameter(); - anX.Unmarshal(dis); - this._variableParameters.Add(anX); - }; - - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._site.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._application.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._entity.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._forceId.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableParameters.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._entityKind.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._domain.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._country.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._category.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._subcategory.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._specific.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._extra.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._altEntityKind.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._altDomain.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._altCountry.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._altCategory.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._altSubcategory.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._altSpecific.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._altExtra.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._xVelocity.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._yVelocity.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._zVelocity.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._xLocation.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._yLocation.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._zLocation.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._psi.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._theta.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._phi.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._entityAppearance.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._deadReckoningAlgorithm.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._otherParameters.Length; idx++) - { - sb.AppendLine("" + this._otherParameters[idx] + ""); - } - - sb.AppendLine("" + this._xAcceleration.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._yAcceleration.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._zAcceleration.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._xAngularVelocity.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._yAngularVelocity.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._zAngularVelocity.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._marking.Length; idx++) - { - sb.AppendLine("" + this._marking[idx] + ""); - } - - sb.AppendLine("" + this._capabilities.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._variableParameters.Count; idx++) - { - sb.AppendLine(""); - VariableParameter aVariableParameter = (VariableParameter)this._variableParameters[idx]; - aVariableParameter.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as FastEntityStatePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(FastEntityStatePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._site != obj._site) - { - ivarsEqual = false; - } - - if (this._application != obj._application) - { - ivarsEqual = false; - } - - if (this._entity != obj._entity) - { - ivarsEqual = false; - } - - if (this._forceId != obj._forceId) - { - ivarsEqual = false; - } - - if (this._numberOfVariableParameters != obj._numberOfVariableParameters) - { - ivarsEqual = false; - } - - if (this._entityKind != obj._entityKind) - { - ivarsEqual = false; - } - - if (this._domain != obj._domain) - { - ivarsEqual = false; - } - - if (this._country != obj._country) - { - ivarsEqual = false; - } - - if (this._category != obj._category) - { - ivarsEqual = false; - } - - if (this._subcategory != obj._subcategory) - { - ivarsEqual = false; - } - - if (this._specific != obj._specific) - { - ivarsEqual = false; - } - - if (this._extra != obj._extra) - { - ivarsEqual = false; - } - - if (this._altEntityKind != obj._altEntityKind) - { - ivarsEqual = false; - } - - if (this._altDomain != obj._altDomain) - { - ivarsEqual = false; - } - - if (this._altCountry != obj._altCountry) - { - ivarsEqual = false; - } - - if (this._altCategory != obj._altCategory) - { - ivarsEqual = false; - } - - if (this._altSubcategory != obj._altSubcategory) - { - ivarsEqual = false; - } - - if (this._altSpecific != obj._altSpecific) - { - ivarsEqual = false; - } - - if (this._altExtra != obj._altExtra) - { - ivarsEqual = false; - } - - if (this._xVelocity != obj._xVelocity) - { - ivarsEqual = false; - } - - if (this._yVelocity != obj._yVelocity) - { - ivarsEqual = false; - } - - if (this._zVelocity != obj._zVelocity) - { - ivarsEqual = false; - } - - if (this._xLocation != obj._xLocation) - { - ivarsEqual = false; - } - - if (this._yLocation != obj._yLocation) - { - ivarsEqual = false; - } - - if (this._zLocation != obj._zLocation) - { - ivarsEqual = false; - } - - if (this._psi != obj._psi) - { - ivarsEqual = false; - } - - if (this._theta != obj._theta) - { - ivarsEqual = false; - } - - if (this._phi != obj._phi) - { - ivarsEqual = false; - } - - if (this._entityAppearance != obj._entityAppearance) - { - ivarsEqual = false; - } - - if (this._deadReckoningAlgorithm != obj._deadReckoningAlgorithm) - { - ivarsEqual = false; - } - - if (obj._otherParameters.Length != 15) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < 15; idx++) - { - if (this._otherParameters[idx] != obj._otherParameters[idx]) - { - ivarsEqual = false; - } - } - } - - if (this._xAcceleration != obj._xAcceleration) - { - ivarsEqual = false; - } - - if (this._yAcceleration != obj._yAcceleration) - { - ivarsEqual = false; - } - - if (this._zAcceleration != obj._zAcceleration) - { - ivarsEqual = false; - } - - if (this._xAngularVelocity != obj._xAngularVelocity) - { - ivarsEqual = false; - } - - if (this._yAngularVelocity != obj._yAngularVelocity) - { - ivarsEqual = false; - } - - if (this._zAngularVelocity != obj._zAngularVelocity) - { - ivarsEqual = false; - } - - if (obj._marking.Length != 12) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < 12; idx++) - { - if (this._marking[idx] != obj._marking[idx]) - { - ivarsEqual = false; - } - } - } - - if (this._capabilities != obj._capabilities) - { - ivarsEqual = false; - } - - if (this._variableParameters.Count != obj._variableParameters.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._variableParameters.Count; idx++) - { - if (!this._variableParameters[idx].Equals(obj._variableParameters[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._site.GetHashCode(); - result = GenerateHash(result) ^ this._application.GetHashCode(); - result = GenerateHash(result) ^ this._entity.GetHashCode(); - result = GenerateHash(result) ^ this._forceId.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfVariableParameters.GetHashCode(); - result = GenerateHash(result) ^ this._entityKind.GetHashCode(); - result = GenerateHash(result) ^ this._domain.GetHashCode(); - result = GenerateHash(result) ^ this._country.GetHashCode(); - result = GenerateHash(result) ^ this._category.GetHashCode(); - result = GenerateHash(result) ^ this._subcategory.GetHashCode(); - result = GenerateHash(result) ^ this._specific.GetHashCode(); - result = GenerateHash(result) ^ this._extra.GetHashCode(); - result = GenerateHash(result) ^ this._altEntityKind.GetHashCode(); - result = GenerateHash(result) ^ this._altDomain.GetHashCode(); - result = GenerateHash(result) ^ this._altCountry.GetHashCode(); - result = GenerateHash(result) ^ this._altCategory.GetHashCode(); - result = GenerateHash(result) ^ this._altSubcategory.GetHashCode(); - result = GenerateHash(result) ^ this._altSpecific.GetHashCode(); - result = GenerateHash(result) ^ this._altExtra.GetHashCode(); - result = GenerateHash(result) ^ this._xVelocity.GetHashCode(); - result = GenerateHash(result) ^ this._yVelocity.GetHashCode(); - result = GenerateHash(result) ^ this._zVelocity.GetHashCode(); - result = GenerateHash(result) ^ this._xLocation.GetHashCode(); - result = GenerateHash(result) ^ this._yLocation.GetHashCode(); - result = GenerateHash(result) ^ this._zLocation.GetHashCode(); - result = GenerateHash(result) ^ this._psi.GetHashCode(); - result = GenerateHash(result) ^ this._theta.GetHashCode(); - result = GenerateHash(result) ^ this._phi.GetHashCode(); - result = GenerateHash(result) ^ this._entityAppearance.GetHashCode(); - result = GenerateHash(result) ^ this._deadReckoningAlgorithm.GetHashCode(); - - for (int idx = 0; idx < 15; idx++) - { - result = GenerateHash(result) ^ this._otherParameters[idx].GetHashCode(); - } - result = GenerateHash(result) ^ this._xAcceleration.GetHashCode(); - result = GenerateHash(result) ^ this._yAcceleration.GetHashCode(); - result = GenerateHash(result) ^ this._zAcceleration.GetHashCode(); - result = GenerateHash(result) ^ this._xAngularVelocity.GetHashCode(); - result = GenerateHash(result) ^ this._yAngularVelocity.GetHashCode(); - result = GenerateHash(result) ^ this._zAngularVelocity.GetHashCode(); - - for (int idx = 0; idx < 12; idx++) - { - result = GenerateHash(result) ^ this._marking[idx].GetHashCode(); - } - result = GenerateHash(result) ^ this._capabilities.GetHashCode(); - - if (this._variableParameters.Count > 0) - { - for (int idx = 0; idx < this._variableParameters.Count; idx++) - { - result = GenerateHash(result) ^ this._variableParameters[idx].GetHashCode(); - } - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/FirePdu.cs b/Libs/CSharpDis7/FirePdu.cs deleted file mode 100644 index 9f8490e..0000000 --- a/Libs/CSharpDis7/FirePdu.cs +++ /dev/null @@ -1,488 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// The firing of a weapon or expendable shall be communicated by issuing a Fire PDU. Sectioin 7.3.2. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(EventIdentifier))] - [XmlInclude(typeof(Vector3Double))] - [XmlInclude(typeof(MunitionDescriptor))] - [XmlInclude(typeof(Vector3Float))] - public partial class FirePdu : WarfareFamilyPdu, IEquatable - { - /// - /// This field shall specify the entity identification of the fired munition or expendable. This field shall be represented by an Entity Identifier record (see 6.2.28). - /// - private EntityID _munitionExpendibleID = new EntityID(); - - /// - /// This field shall contain an identification generated by the firing entity to associate related firing and detonation events. This field shall be represented by an Event Identifier record (see 6.2.34). - /// - private EventIdentifier _eventID = new EventIdentifier(); - - /// - /// This field shall identify the fire mission (see 5.4.3.3). This field shall be representedby a 32-bit unsigned integer. - /// - private uint _fireMissionIndex; - - /// - /// This field shall specify the location, in world coordinates, from which the munition was launched, and shall be represented by a World Coordinates record (see 6.2.97). - /// - private Vector3Double _locationInWorldCoordinates = new Vector3Double(); - - /// - /// This field shall describe the firing or launch of a munition or expendable represented by one of the following types of Descriptor records: Munition Descriptor (6.2.20.2) or Expendable Descriptor (6.2.20.4). - /// - private MunitionDescriptor _descriptor = new MunitionDescriptor(); - - /// - /// This field shall specify the velocity of the fired munition at the point when the issuing simulation application intends the externally visible effects of the launch (e.g. exhaust plume or muzzle blast) to first become apparent. The velocity shall be represented in world coordinates. This field shall be represented by a Linear Velocity Vector record [see 6.2.95 item c)]. - /// - private Vector3Float _velocity = new Vector3Float(); - - /// - /// This field shall specify the range that an entity’s fire control system has assumed in computing the fire control solution. This field shall be represented by a 32-bit floating point number in meters. For systems where range is unknown or unavailable, this field shall contain a value of zero. - /// - private float _range; - - /// - /// Initializes a new instance of the class. - /// - public FirePdu() - { - PduType = (byte)2; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(FirePdu left, FirePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(FirePdu left, FirePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._munitionExpendibleID.GetMarshalledSize(); // this._munitionExpendibleID - marshalSize += this._eventID.GetMarshalledSize(); // this._eventID - marshalSize += 4; // this._fireMissionIndex - marshalSize += this._locationInWorldCoordinates.GetMarshalledSize(); // this._locationInWorldCoordinates - marshalSize += this._descriptor.GetMarshalledSize(); // this._descriptor - marshalSize += this._velocity.GetMarshalledSize(); // this._velocity - marshalSize += 4; // this._range - return marshalSize; - } - - /// - /// Gets or sets the This field shall specify the entity identification of the fired munition or expendable. This field shall be represented by an Entity Identifier record (see 6.2.28). - /// - [XmlElement(Type = typeof(EntityID), ElementName = "munitionExpendibleID")] - public EntityID MunitionExpendibleID - { - get - { - return this._munitionExpendibleID; - } - - set - { - this._munitionExpendibleID = value; - } - } - - /// - /// Gets or sets the This field shall contain an identification generated by the firing entity to associate related firing and detonation events. This field shall be represented by an Event Identifier record (see 6.2.34). - /// - [XmlElement(Type = typeof(EventIdentifier), ElementName = "eventID")] - public EventIdentifier EventID - { - get - { - return this._eventID; - } - - set - { - this._eventID = value; - } - } - - /// - /// Gets or sets the This field shall identify the fire mission (see 5.4.3.3). This field shall be representedby a 32-bit unsigned integer. - /// - [XmlElement(Type = typeof(uint), ElementName = "fireMissionIndex")] - public uint FireMissionIndex - { - get - { - return this._fireMissionIndex; - } - - set - { - this._fireMissionIndex = value; - } - } - - /// - /// Gets or sets the This field shall specify the location, in world coordinates, from which the munition was launched, and shall be represented by a World Coordinates record (see 6.2.97). - /// - [XmlElement(Type = typeof(Vector3Double), ElementName = "locationInWorldCoordinates")] - public Vector3Double LocationInWorldCoordinates - { - get - { - return this._locationInWorldCoordinates; - } - - set - { - this._locationInWorldCoordinates = value; - } - } - - /// - /// Gets or sets the This field shall describe the firing or launch of a munition or expendable represented by one of the following types of Descriptor records: Munition Descriptor (6.2.20.2) or Expendable Descriptor (6.2.20.4). - /// - [XmlElement(Type = typeof(MunitionDescriptor), ElementName = "descriptor")] - public MunitionDescriptor Descriptor - { - get - { - return this._descriptor; - } - - set - { - this._descriptor = value; - } - } - - /// - /// Gets or sets the This field shall specify the velocity of the fired munition at the point when the issuing simulation application intends the externally visible effects of the launch (e.g. exhaust plume or muzzle blast) to first become apparent. The velocity shall be represented in world coordinates. This field shall be represented by a Linear Velocity Vector record [see 6.2.95 item c)]. - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "velocity")] - public Vector3Float Velocity - { - get - { - return this._velocity; - } - - set - { - this._velocity = value; - } - } - - /// - /// Gets or sets the This field shall specify the range that an entity’s fire control system has assumed in computing the fire control solution. This field shall be represented by a 32-bit floating point number in meters. For systems where range is unknown or unavailable, this field shall contain a value of zero. - /// - [XmlElement(Type = typeof(float), ElementName = "range")] - public float Range - { - get - { - return this._range; - } - - set - { - this._range = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._munitionExpendibleID.Marshal(dos); - this._eventID.Marshal(dos); - dos.WriteUnsignedInt((uint)this._fireMissionIndex); - this._locationInWorldCoordinates.Marshal(dos); - this._descriptor.Marshal(dos); - this._velocity.Marshal(dos); - dos.WriteFloat((float)this._range); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._munitionExpendibleID.Unmarshal(dis); - this._eventID.Unmarshal(dis); - this._fireMissionIndex = dis.ReadUnsignedInt(); - this._locationInWorldCoordinates.Unmarshal(dis); - this._descriptor.Unmarshal(dis); - this._velocity.Unmarshal(dis); - this._range = dis.ReadFloat(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._munitionExpendibleID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._eventID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._fireMissionIndex.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._locationInWorldCoordinates.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._descriptor.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._velocity.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._range.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as FirePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(FirePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._munitionExpendibleID.Equals(obj._munitionExpendibleID)) - { - ivarsEqual = false; - } - - if (!this._eventID.Equals(obj._eventID)) - { - ivarsEqual = false; - } - - if (this._fireMissionIndex != obj._fireMissionIndex) - { - ivarsEqual = false; - } - - if (!this._locationInWorldCoordinates.Equals(obj._locationInWorldCoordinates)) - { - ivarsEqual = false; - } - - if (!this._descriptor.Equals(obj._descriptor)) - { - ivarsEqual = false; - } - - if (!this._velocity.Equals(obj._velocity)) - { - ivarsEqual = false; - } - - if (this._range != obj._range) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._munitionExpendibleID.GetHashCode(); - result = GenerateHash(result) ^ this._eventID.GetHashCode(); - result = GenerateHash(result) ^ this._fireMissionIndex.GetHashCode(); - result = GenerateHash(result) ^ this._locationInWorldCoordinates.GetHashCode(); - result = GenerateHash(result) ^ this._descriptor.GetHashCode(); - result = GenerateHash(result) ^ this._velocity.GetHashCode(); - result = GenerateHash(result) ^ this._range.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/FixedDatum.cs b/Libs/CSharpDis7/FixedDatum.cs deleted file mode 100644 index 8c840dc..0000000 --- a/Libs/CSharpDis7/FixedDatum.cs +++ /dev/null @@ -1,309 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Fixed Datum Record. Section 6.2.38 - /// - [Serializable] - [XmlRoot] - public partial class FixedDatum - { - /// - /// ID of the fixed datum, an enumeration - /// - private uint _fixedDatumID; - - /// - /// Value for the fixed datum - /// - private uint _fixedDatumValue; - - /// - /// Initializes a new instance of the class. - /// - public FixedDatum() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(FixedDatum left, FixedDatum right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(FixedDatum left, FixedDatum right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._fixedDatumID - marshalSize += 4; // this._fixedDatumValue - return marshalSize; - } - - /// - /// Gets or sets the ID of the fixed datum, an enumeration - /// - [XmlElement(Type = typeof(uint), ElementName = "fixedDatumID")] - public uint FixedDatumID - { - get - { - return this._fixedDatumID; - } - - set - { - this._fixedDatumID = value; - } - } - - /// - /// Gets or sets the Value for the fixed datum - /// - [XmlElement(Type = typeof(uint), ElementName = "fixedDatumValue")] - public uint FixedDatumValue - { - get - { - return this._fixedDatumValue; - } - - set - { - this._fixedDatumValue = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._fixedDatumID); - dos.WriteUnsignedInt((uint)this._fixedDatumValue); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._fixedDatumID = dis.ReadUnsignedInt(); - this._fixedDatumValue = dis.ReadUnsignedInt(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._fixedDatumID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fixedDatumValue.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as FixedDatum; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(FixedDatum obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._fixedDatumID != obj._fixedDatumID) - { - ivarsEqual = false; - } - - if (this._fixedDatumValue != obj._fixedDatumValue) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._fixedDatumID.GetHashCode(); - result = GenerateHash(result) ^ this._fixedDatumValue.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/FourByteChunk.cs b/Libs/CSharpDis7/FourByteChunk.cs deleted file mode 100644 index b459c13..0000000 --- a/Libs/CSharpDis7/FourByteChunk.cs +++ /dev/null @@ -1,303 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// 32 bit piece of data - /// - [Serializable] - [XmlRoot] - public partial class FourByteChunk - { - /// - /// four bytes of arbitrary data - /// - private byte[] _otherParameters = new byte[4]; - - /// - /// Initializes a new instance of the class. - /// - public FourByteChunk() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(FourByteChunk left, FourByteChunk right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(FourByteChunk left, FourByteChunk right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4 * 1; // _otherParameters - return marshalSize; - } - - /// - /// Gets or sets the four bytes of arbitrary data - /// - [XmlArray(ElementName = "otherParameters")] - public byte[] OtherParameters - { - get - { - return this._otherParameters; - } - - set - { - this._otherParameters = value; - } -} - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - - for (int idx = 0; idx < this._otherParameters.Length; idx++) - { - dos.WriteByte(this._otherParameters[idx]); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - for (int idx = 0; idx < this._otherParameters.Length; idx++) - { - this._otherParameters[idx] = dis.ReadByte(); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - for (int idx = 0; idx < this._otherParameters.Length; idx++) - { - sb.AppendLine("" + this._otherParameters[idx] + ""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as FourByteChunk; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(FourByteChunk obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (obj._otherParameters.Length != 4) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < 4; idx++) - { - if (this._otherParameters[idx] != obj._otherParameters[idx]) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - - for (int idx = 0; idx < 4; idx++) - { - result = GenerateHash(result) ^ this._otherParameters[idx].GetHashCode(); - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/FundamentalOperationalData.cs b/Libs/CSharpDis7/FundamentalOperationalData.cs deleted file mode 100644 index 64f43b3..0000000 --- a/Libs/CSharpDis7/FundamentalOperationalData.cs +++ /dev/null @@ -1,565 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Basic operational data for IFF. Section 6.2.40. - /// - [Serializable] - [XmlRoot] - public partial class FundamentalOperationalData - { - /// - /// system status - /// - private byte _systemStatus; - - /// - /// data field 1 - /// - private byte _dataField1; - - /// - /// eight boolean fields - /// - private byte _informationLayers; - - /// - /// enumeration - /// - private byte _dataField2; - - /// - /// parameter, enumeration - /// - private ushort _parameter1; - - /// - /// parameter, enumeration - /// - private ushort _parameter2; - - /// - /// parameter, enumeration - /// - private ushort _parameter3; - - /// - /// parameter, enumeration - /// - private ushort _parameter4; - - /// - /// parameter, enumeration - /// - private ushort _parameter5; - - /// - /// parameter, enumeration - /// - private ushort _parameter6; - - /// - /// Initializes a new instance of the class. - /// - public FundamentalOperationalData() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(FundamentalOperationalData left, FundamentalOperationalData right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(FundamentalOperationalData left, FundamentalOperationalData right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._systemStatus - marshalSize += 1; // this._dataField1 - marshalSize += 1; // this._informationLayers - marshalSize += 1; // this._dataField2 - marshalSize += 2; // this._parameter1 - marshalSize += 2; // this._parameter2 - marshalSize += 2; // this._parameter3 - marshalSize += 2; // this._parameter4 - marshalSize += 2; // this._parameter5 - marshalSize += 2; // this._parameter6 - return marshalSize; - } - - /// - /// Gets or sets the system status - /// - [XmlElement(Type = typeof(byte), ElementName = "systemStatus")] - public byte SystemStatus - { - get - { - return this._systemStatus; - } - - set - { - this._systemStatus = value; - } - } - - /// - /// Gets or sets the data field 1 - /// - [XmlElement(Type = typeof(byte), ElementName = "dataField1")] - public byte DataField1 - { - get - { - return this._dataField1; - } - - set - { - this._dataField1 = value; - } - } - - /// - /// Gets or sets the eight boolean fields - /// - [XmlElement(Type = typeof(byte), ElementName = "informationLayers")] - public byte InformationLayers - { - get - { - return this._informationLayers; - } - - set - { - this._informationLayers = value; - } - } - - /// - /// Gets or sets the enumeration - /// - [XmlElement(Type = typeof(byte), ElementName = "dataField2")] - public byte DataField2 - { - get - { - return this._dataField2; - } - - set - { - this._dataField2 = value; - } - } - - /// - /// Gets or sets the parameter, enumeration - /// - [XmlElement(Type = typeof(ushort), ElementName = "parameter1")] - public ushort Parameter1 - { - get - { - return this._parameter1; - } - - set - { - this._parameter1 = value; - } - } - - /// - /// Gets or sets the parameter, enumeration - /// - [XmlElement(Type = typeof(ushort), ElementName = "parameter2")] - public ushort Parameter2 - { - get - { - return this._parameter2; - } - - set - { - this._parameter2 = value; - } - } - - /// - /// Gets or sets the parameter, enumeration - /// - [XmlElement(Type = typeof(ushort), ElementName = "parameter3")] - public ushort Parameter3 - { - get - { - return this._parameter3; - } - - set - { - this._parameter3 = value; - } - } - - /// - /// Gets or sets the parameter, enumeration - /// - [XmlElement(Type = typeof(ushort), ElementName = "parameter4")] - public ushort Parameter4 - { - get - { - return this._parameter4; - } - - set - { - this._parameter4 = value; - } - } - - /// - /// Gets or sets the parameter, enumeration - /// - [XmlElement(Type = typeof(ushort), ElementName = "parameter5")] - public ushort Parameter5 - { - get - { - return this._parameter5; - } - - set - { - this._parameter5 = value; - } - } - - /// - /// Gets or sets the parameter, enumeration - /// - [XmlElement(Type = typeof(ushort), ElementName = "parameter6")] - public ushort Parameter6 - { - get - { - return this._parameter6; - } - - set - { - this._parameter6 = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._systemStatus); - dos.WriteUnsignedByte((byte)this._dataField1); - dos.WriteUnsignedByte((byte)this._informationLayers); - dos.WriteUnsignedByte((byte)this._dataField2); - dos.WriteUnsignedShort((ushort)this._parameter1); - dos.WriteUnsignedShort((ushort)this._parameter2); - dos.WriteUnsignedShort((ushort)this._parameter3); - dos.WriteUnsignedShort((ushort)this._parameter4); - dos.WriteUnsignedShort((ushort)this._parameter5); - dos.WriteUnsignedShort((ushort)this._parameter6); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._systemStatus = dis.ReadUnsignedByte(); - this._dataField1 = dis.ReadUnsignedByte(); - this._informationLayers = dis.ReadUnsignedByte(); - this._dataField2 = dis.ReadUnsignedByte(); - this._parameter1 = dis.ReadUnsignedShort(); - this._parameter2 = dis.ReadUnsignedShort(); - this._parameter3 = dis.ReadUnsignedShort(); - this._parameter4 = dis.ReadUnsignedShort(); - this._parameter5 = dis.ReadUnsignedShort(); - this._parameter6 = dis.ReadUnsignedShort(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._systemStatus.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._dataField1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._informationLayers.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._dataField2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._parameter1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._parameter2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._parameter3.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._parameter4.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._parameter5.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._parameter6.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as FundamentalOperationalData; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(FundamentalOperationalData obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._systemStatus != obj._systemStatus) - { - ivarsEqual = false; - } - - if (this._dataField1 != obj._dataField1) - { - ivarsEqual = false; - } - - if (this._informationLayers != obj._informationLayers) - { - ivarsEqual = false; - } - - if (this._dataField2 != obj._dataField2) - { - ivarsEqual = false; - } - - if (this._parameter1 != obj._parameter1) - { - ivarsEqual = false; - } - - if (this._parameter2 != obj._parameter2) - { - ivarsEqual = false; - } - - if (this._parameter3 != obj._parameter3) - { - ivarsEqual = false; - } - - if (this._parameter4 != obj._parameter4) - { - ivarsEqual = false; - } - - if (this._parameter5 != obj._parameter5) - { - ivarsEqual = false; - } - - if (this._parameter6 != obj._parameter6) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._systemStatus.GetHashCode(); - result = GenerateHash(result) ^ this._dataField1.GetHashCode(); - result = GenerateHash(result) ^ this._informationLayers.GetHashCode(); - result = GenerateHash(result) ^ this._dataField2.GetHashCode(); - result = GenerateHash(result) ^ this._parameter1.GetHashCode(); - result = GenerateHash(result) ^ this._parameter2.GetHashCode(); - result = GenerateHash(result) ^ this._parameter3.GetHashCode(); - result = GenerateHash(result) ^ this._parameter4.GetHashCode(); - result = GenerateHash(result) ^ this._parameter5.GetHashCode(); - result = GenerateHash(result) ^ this._parameter6.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/GridAxis.cs b/Libs/CSharpDis7/GridAxis.cs deleted file mode 100644 index 661f51d..0000000 --- a/Libs/CSharpDis7/GridAxis.cs +++ /dev/null @@ -1,469 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Grid axis record for fixed data. Section 6.2.41 - /// - [Serializable] - [XmlRoot] - public partial class GridAxis - { - /// - /// coordinate of the grid origin or initial value - /// - private double _domainInitialXi; - - /// - /// coordinate of the endpoint or final value - /// - private double _domainFinalXi; - - /// - /// The number of grid points along the Xi domain axis for the enviornmental state data - /// - private ushort _domainPointsXi; - - /// - /// interleaf factor along the domain axis. - /// - private byte _interleafFactor; - - /// - /// type of grid axis - /// - private byte _axisType; - - /// - /// Number of grid locations along Xi axis - /// - private ushort _numberOfPointsOnXiAxis; - - /// - /// initial grid point for the current pdu - /// - private ushort _initialIndex; - - /// - /// Initializes a new instance of the class. - /// - public GridAxis() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(GridAxis left, GridAxis right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(GridAxis left, GridAxis right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 8; // this._domainInitialXi - marshalSize += 8; // this._domainFinalXi - marshalSize += 2; // this._domainPointsXi - marshalSize += 1; // this._interleafFactor - marshalSize += 1; // this._axisType - marshalSize += 2; // this._numberOfPointsOnXiAxis - marshalSize += 2; // this._initialIndex - return marshalSize; - } - - /// - /// Gets or sets the coordinate of the grid origin or initial value - /// - [XmlElement(Type = typeof(double), ElementName = "domainInitialXi")] - public double DomainInitialXi - { - get - { - return this._domainInitialXi; - } - - set - { - this._domainInitialXi = value; - } - } - - /// - /// Gets or sets the coordinate of the endpoint or final value - /// - [XmlElement(Type = typeof(double), ElementName = "domainFinalXi")] - public double DomainFinalXi - { - get - { - return this._domainFinalXi; - } - - set - { - this._domainFinalXi = value; - } - } - - /// - /// Gets or sets the The number of grid points along the Xi domain axis for the enviornmental state data - /// - [XmlElement(Type = typeof(ushort), ElementName = "domainPointsXi")] - public ushort DomainPointsXi - { - get - { - return this._domainPointsXi; - } - - set - { - this._domainPointsXi = value; - } - } - - /// - /// Gets or sets the interleaf factor along the domain axis. - /// - [XmlElement(Type = typeof(byte), ElementName = "interleafFactor")] - public byte InterleafFactor - { - get - { - return this._interleafFactor; - } - - set - { - this._interleafFactor = value; - } - } - - /// - /// Gets or sets the type of grid axis - /// - [XmlElement(Type = typeof(byte), ElementName = "axisType")] - public byte AxisType - { - get - { - return this._axisType; - } - - set - { - this._axisType = value; - } - } - - /// - /// Gets or sets the Number of grid locations along Xi axis - /// - [XmlElement(Type = typeof(ushort), ElementName = "numberOfPointsOnXiAxis")] - public ushort NumberOfPointsOnXiAxis - { - get - { - return this._numberOfPointsOnXiAxis; - } - - set - { - this._numberOfPointsOnXiAxis = value; - } - } - - /// - /// Gets or sets the initial grid point for the current pdu - /// - [XmlElement(Type = typeof(ushort), ElementName = "initialIndex")] - public ushort InitialIndex - { - get - { - return this._initialIndex; - } - - set - { - this._initialIndex = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteDouble((double)this._domainInitialXi); - dos.WriteDouble((double)this._domainFinalXi); - dos.WriteUnsignedShort((ushort)this._domainPointsXi); - dos.WriteUnsignedByte((byte)this._interleafFactor); - dos.WriteUnsignedByte((byte)this._axisType); - dos.WriteUnsignedShort((ushort)this._numberOfPointsOnXiAxis); - dos.WriteUnsignedShort((ushort)this._initialIndex); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._domainInitialXi = dis.ReadDouble(); - this._domainFinalXi = dis.ReadDouble(); - this._domainPointsXi = dis.ReadUnsignedShort(); - this._interleafFactor = dis.ReadUnsignedByte(); - this._axisType = dis.ReadUnsignedByte(); - this._numberOfPointsOnXiAxis = dis.ReadUnsignedShort(); - this._initialIndex = dis.ReadUnsignedShort(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._domainInitialXi.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._domainFinalXi.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._domainPointsXi.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._interleafFactor.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._axisType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._numberOfPointsOnXiAxis.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._initialIndex.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as GridAxis; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(GridAxis obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._domainInitialXi != obj._domainInitialXi) - { - ivarsEqual = false; - } - - if (this._domainFinalXi != obj._domainFinalXi) - { - ivarsEqual = false; - } - - if (this._domainPointsXi != obj._domainPointsXi) - { - ivarsEqual = false; - } - - if (this._interleafFactor != obj._interleafFactor) - { - ivarsEqual = false; - } - - if (this._axisType != obj._axisType) - { - ivarsEqual = false; - } - - if (this._numberOfPointsOnXiAxis != obj._numberOfPointsOnXiAxis) - { - ivarsEqual = false; - } - - if (this._initialIndex != obj._initialIndex) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._domainInitialXi.GetHashCode(); - result = GenerateHash(result) ^ this._domainFinalXi.GetHashCode(); - result = GenerateHash(result) ^ this._domainPointsXi.GetHashCode(); - result = GenerateHash(result) ^ this._interleafFactor.GetHashCode(); - result = GenerateHash(result) ^ this._axisType.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfPointsOnXiAxis.GetHashCode(); - result = GenerateHash(result) ^ this._initialIndex.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/GroupIdentifier.cs b/Libs/CSharpDis7/GroupIdentifier.cs deleted file mode 100644 index 02bc7a2..0000000 --- a/Libs/CSharpDis7/GroupIdentifier.cs +++ /dev/null @@ -1,312 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Unique designation of a group of entities contained in the isGroupOfPdu. Represents a group of entities rather than a single entity. Section 6.2.43 - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityType))] - public partial class GroupIdentifier - { - /// - /// Simulation address (site and application number) - /// - private EntityType _simulationAddress = new EntityType(); - - /// - /// group number - /// - private ushort _groupNumber; - - /// - /// Initializes a new instance of the class. - /// - public GroupIdentifier() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(GroupIdentifier left, GroupIdentifier right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(GroupIdentifier left, GroupIdentifier right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += this._simulationAddress.GetMarshalledSize(); // this._simulationAddress - marshalSize += 2; // this._groupNumber - return marshalSize; - } - - /// - /// Gets or sets the Simulation address (site and application number) - /// - [XmlElement(Type = typeof(EntityType), ElementName = "simulationAddress")] - public EntityType SimulationAddress - { - get - { - return this._simulationAddress; - } - - set - { - this._simulationAddress = value; - } - } - - /// - /// Gets or sets the group number - /// - [XmlElement(Type = typeof(ushort), ElementName = "groupNumber")] - public ushort GroupNumber - { - get - { - return this._groupNumber; - } - - set - { - this._groupNumber = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - this._simulationAddress.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._groupNumber); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._simulationAddress.Unmarshal(dis); - this._groupNumber = dis.ReadUnsignedShort(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine(""); - this._simulationAddress.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._groupNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as GroupIdentifier; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(GroupIdentifier obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (!this._simulationAddress.Equals(obj._simulationAddress)) - { - ivarsEqual = false; - } - - if (this._groupNumber != obj._groupNumber) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._simulationAddress.GetHashCode(); - result = GenerateHash(result) ^ this._groupNumber.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/IFFFundamentalParameterData.cs b/Libs/CSharpDis7/IFFFundamentalParameterData.cs deleted file mode 100644 index 05c8e57..0000000 --- a/Libs/CSharpDis7/IFFFundamentalParameterData.cs +++ /dev/null @@ -1,495 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Fundamental IFF atc data. Section 6.2.45 - /// - [Serializable] - [XmlRoot] - public partial class IFFFundamentalParameterData - { - /// - /// ERP - /// - private float _erp; - - /// - /// frequency - /// - private float _frequency; - - /// - /// pgrf - /// - private float _pgrf; - - /// - /// Pulse width - /// - private float _pulseWidth; - - /// - /// Burst length - /// - private uint _burstLength; - - /// - /// Applicable modes enumeration - /// - private byte _applicableModes; - - /// - /// System-specific data - /// - private byte[] _systemSpecificData = new byte[3]; - - /// - /// Initializes a new instance of the class. - /// - public IFFFundamentalParameterData() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(IFFFundamentalParameterData left, IFFFundamentalParameterData right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(IFFFundamentalParameterData left, IFFFundamentalParameterData right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._erp - marshalSize += 4; // this._frequency - marshalSize += 4; // this._pgrf - marshalSize += 4; // this._pulseWidth - marshalSize += 4; // this._burstLength - marshalSize += 1; // this._applicableModes - marshalSize += 3 * 1; // _systemSpecificData - return marshalSize; - } - - /// - /// Gets or sets the ERP - /// - [XmlElement(Type = typeof(float), ElementName = "erp")] - public float Erp - { - get - { - return this._erp; - } - - set - { - this._erp = value; - } - } - - /// - /// Gets or sets the frequency - /// - [XmlElement(Type = typeof(float), ElementName = "frequency")] - public float Frequency - { - get - { - return this._frequency; - } - - set - { - this._frequency = value; - } - } - - /// - /// Gets or sets the pgrf - /// - [XmlElement(Type = typeof(float), ElementName = "pgrf")] - public float Pgrf - { - get - { - return this._pgrf; - } - - set - { - this._pgrf = value; - } - } - - /// - /// Gets or sets the Pulse width - /// - [XmlElement(Type = typeof(float), ElementName = "pulseWidth")] - public float PulseWidth - { - get - { - return this._pulseWidth; - } - - set - { - this._pulseWidth = value; - } - } - - /// - /// Gets or sets the Burst length - /// - [XmlElement(Type = typeof(uint), ElementName = "burstLength")] - public uint BurstLength - { - get - { - return this._burstLength; - } - - set - { - this._burstLength = value; - } - } - - /// - /// Gets or sets the Applicable modes enumeration - /// - [XmlElement(Type = typeof(byte), ElementName = "applicableModes")] - public byte ApplicableModes - { - get - { - return this._applicableModes; - } - - set - { - this._applicableModes = value; - } - } - - /// - /// Gets or sets the System-specific data - /// - [XmlArray(ElementName = "systemSpecificData")] - public byte[] SystemSpecificData - { - get - { - return this._systemSpecificData; - } - - set - { - this._systemSpecificData = value; - } -} - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteFloat((float)this._erp); - dos.WriteFloat((float)this._frequency); - dos.WriteFloat((float)this._pgrf); - dos.WriteFloat((float)this._pulseWidth); - dos.WriteUnsignedInt((uint)this._burstLength); - dos.WriteUnsignedByte((byte)this._applicableModes); - - for (int idx = 0; idx < this._systemSpecificData.Length; idx++) - { - dos.WriteUnsignedByte(this._systemSpecificData[idx]); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._erp = dis.ReadFloat(); - this._frequency = dis.ReadFloat(); - this._pgrf = dis.ReadFloat(); - this._pulseWidth = dis.ReadFloat(); - this._burstLength = dis.ReadUnsignedInt(); - this._applicableModes = dis.ReadUnsignedByte(); - for (int idx = 0; idx < this._systemSpecificData.Length; idx++) - { - this._systemSpecificData[idx] = dis.ReadUnsignedByte(); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._erp.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._frequency.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pgrf.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pulseWidth.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._burstLength.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._applicableModes.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._systemSpecificData.Length; idx++) - { - sb.AppendLine("" + this._systemSpecificData[idx] + ""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as IFFFundamentalParameterData; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(IFFFundamentalParameterData obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._erp != obj._erp) - { - ivarsEqual = false; - } - - if (this._frequency != obj._frequency) - { - ivarsEqual = false; - } - - if (this._pgrf != obj._pgrf) - { - ivarsEqual = false; - } - - if (this._pulseWidth != obj._pulseWidth) - { - ivarsEqual = false; - } - - if (this._burstLength != obj._burstLength) - { - ivarsEqual = false; - } - - if (this._applicableModes != obj._applicableModes) - { - ivarsEqual = false; - } - - if (obj._systemSpecificData.Length != 3) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < 3; idx++) - { - if (this._systemSpecificData[idx] != obj._systemSpecificData[idx]) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._erp.GetHashCode(); - result = GenerateHash(result) ^ this._frequency.GetHashCode(); - result = GenerateHash(result) ^ this._pgrf.GetHashCode(); - result = GenerateHash(result) ^ this._pulseWidth.GetHashCode(); - result = GenerateHash(result) ^ this._burstLength.GetHashCode(); - result = GenerateHash(result) ^ this._applicableModes.GetHashCode(); - - for (int idx = 0; idx < 3; idx++) - { - result = GenerateHash(result) ^ this._systemSpecificData[idx].GetHashCode(); - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/IOCommunicationsNode.cs b/Libs/CSharpDis7/IOCommunicationsNode.cs deleted file mode 100644 index 9fcd7c4..0000000 --- a/Libs/CSharpDis7/IOCommunicationsNode.cs +++ /dev/null @@ -1,404 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// A communications node that is part of a simulted communcations network. Section 6.2.49.2 - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - public partial class IOCommunicationsNode - { - private uint _recordType = 5501; - - private ushort _recordLength = 16; - - private byte _communcationsNodeType; - - private byte _padding; - - private EntityID _communicationsNode = new EntityID(); - - private ushort _elementID; - - /// - /// Initializes a new instance of the class. - /// - public IOCommunicationsNode() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(IOCommunicationsNode left, IOCommunicationsNode right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(IOCommunicationsNode left, IOCommunicationsNode right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._recordType - marshalSize += 2; // this._recordLength - marshalSize += 1; // this._communcationsNodeType - marshalSize += 1; // this._padding - marshalSize += this._communicationsNode.GetMarshalledSize(); // this._communicationsNode - marshalSize += 2; // this._elementID - return marshalSize; - } - - [XmlElement(Type = typeof(uint), ElementName = "recordType")] - public uint RecordType - { - get - { - return this._recordType; - } - - set - { - this._recordType = value; - } - } - - [XmlElement(Type = typeof(ushort), ElementName = "recordLength")] - public ushort RecordLength - { - get - { - return this._recordLength; - } - - set - { - this._recordLength = value; - } - } - - [XmlElement(Type = typeof(byte), ElementName = "communcationsNodeType")] - public byte CommuncationsNodeType - { - get - { - return this._communcationsNodeType; - } - - set - { - this._communcationsNodeType = value; - } - } - - [XmlElement(Type = typeof(byte), ElementName = "padding")] - public byte Padding - { - get - { - return this._padding; - } - - set - { - this._padding = value; - } - } - - [XmlElement(Type = typeof(EntityID), ElementName = "communicationsNode")] - public EntityID CommunicationsNode - { - get - { - return this._communicationsNode; - } - - set - { - this._communicationsNode = value; - } - } - - [XmlElement(Type = typeof(ushort), ElementName = "elementID")] - public ushort ElementID - { - get - { - return this._elementID; - } - - set - { - this._elementID = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._recordType); - dos.WriteUnsignedShort((ushort)this._recordLength); - dos.WriteUnsignedByte((byte)this._communcationsNodeType); - dos.WriteUnsignedByte((byte)this._padding); - this._communicationsNode.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._elementID); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._recordType = dis.ReadUnsignedInt(); - this._recordLength = dis.ReadUnsignedShort(); - this._communcationsNodeType = dis.ReadUnsignedByte(); - this._padding = dis.ReadUnsignedByte(); - this._communicationsNode.Unmarshal(dis); - this._elementID = dis.ReadUnsignedShort(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._recordType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._recordLength.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._communcationsNodeType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._communicationsNode.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._elementID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as IOCommunicationsNode; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(IOCommunicationsNode obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._recordType != obj._recordType) - { - ivarsEqual = false; - } - - if (this._recordLength != obj._recordLength) - { - ivarsEqual = false; - } - - if (this._communcationsNodeType != obj._communcationsNodeType) - { - ivarsEqual = false; - } - - if (this._padding != obj._padding) - { - ivarsEqual = false; - } - - if (!this._communicationsNode.Equals(obj._communicationsNode)) - { - ivarsEqual = false; - } - - if (this._elementID != obj._elementID) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._recordType.GetHashCode(); - result = GenerateHash(result) ^ this._recordLength.GetHashCode(); - result = GenerateHash(result) ^ this._communcationsNodeType.GetHashCode(); - result = GenerateHash(result) ^ this._padding.GetHashCode(); - result = GenerateHash(result) ^ this._communicationsNode.GetHashCode(); - result = GenerateHash(result) ^ this._elementID.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/IOEffect.cs b/Libs/CSharpDis7/IOEffect.cs deleted file mode 100644 index 326dd68..0000000 --- a/Libs/CSharpDis7/IOEffect.cs +++ /dev/null @@ -1,482 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Effect of IO on an entity. Section 6.2.49.3 - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - public partial class IOEffect - { - private uint _recordType = 5500; - - private ushort _recordLength = 16; - - private byte _ioStatus; - - private byte _ioLinkType; - - private EntityID _ioEffect = new EntityID(); - - private byte _ioEffectDutyCycle; - - private ushort _ioEffectDuration; - - private ushort _ioProcess; - - private ushort _padding; - - /// - /// Initializes a new instance of the class. - /// - public IOEffect() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(IOEffect left, IOEffect right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(IOEffect left, IOEffect right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._recordType - marshalSize += 2; // this._recordLength - marshalSize += 1; // this._ioStatus - marshalSize += 1; // this._ioLinkType - marshalSize += this._ioEffect.GetMarshalledSize(); // this._ioEffect - marshalSize += 1; // this._ioEffectDutyCycle - marshalSize += 2; // this._ioEffectDuration - marshalSize += 2; // this._ioProcess - marshalSize += 2; // this._padding - return marshalSize; - } - - [XmlElement(Type = typeof(uint), ElementName = "recordType")] - public uint RecordType - { - get - { - return this._recordType; - } - - set - { - this._recordType = value; - } - } - - [XmlElement(Type = typeof(ushort), ElementName = "recordLength")] - public ushort RecordLength - { - get - { - return this._recordLength; - } - - set - { - this._recordLength = value; - } - } - - [XmlElement(Type = typeof(byte), ElementName = "ioStatus")] - public byte IoStatus - { - get - { - return this._ioStatus; - } - - set - { - this._ioStatus = value; - } - } - - [XmlElement(Type = typeof(byte), ElementName = "ioLinkType")] - public byte IoLinkType - { - get - { - return this._ioLinkType; - } - - set - { - this._ioLinkType = value; - } - } - - [XmlElement(Type = typeof(EntityID), ElementName = "ioEffect")] - public EntityID IoEffect - { - get - { - return this._ioEffect; - } - - set - { - this._ioEffect = value; - } - } - - [XmlElement(Type = typeof(byte), ElementName = "ioEffectDutyCycle")] - public byte IoEffectDutyCycle - { - get - { - return this._ioEffectDutyCycle; - } - - set - { - this._ioEffectDutyCycle = value; - } - } - - [XmlElement(Type = typeof(ushort), ElementName = "ioEffectDuration")] - public ushort IoEffectDuration - { - get - { - return this._ioEffectDuration; - } - - set - { - this._ioEffectDuration = value; - } - } - - [XmlElement(Type = typeof(ushort), ElementName = "ioProcess")] - public ushort IoProcess - { - get - { - return this._ioProcess; - } - - set - { - this._ioProcess = value; - } - } - - [XmlElement(Type = typeof(ushort), ElementName = "padding")] - public ushort Padding - { - get - { - return this._padding; - } - - set - { - this._padding = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._recordType); - dos.WriteUnsignedShort((ushort)this._recordLength); - dos.WriteUnsignedByte((byte)this._ioStatus); - dos.WriteUnsignedByte((byte)this._ioLinkType); - this._ioEffect.Marshal(dos); - dos.WriteUnsignedByte((byte)this._ioEffectDutyCycle); - dos.WriteUnsignedShort((ushort)this._ioEffectDuration); - dos.WriteUnsignedShort((ushort)this._ioProcess); - dos.WriteUnsignedShort((ushort)this._padding); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._recordType = dis.ReadUnsignedInt(); - this._recordLength = dis.ReadUnsignedShort(); - this._ioStatus = dis.ReadUnsignedByte(); - this._ioLinkType = dis.ReadUnsignedByte(); - this._ioEffect.Unmarshal(dis); - this._ioEffectDutyCycle = dis.ReadUnsignedByte(); - this._ioEffectDuration = dis.ReadUnsignedShort(); - this._ioProcess = dis.ReadUnsignedShort(); - this._padding = dis.ReadUnsignedShort(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._recordType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._recordLength.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._ioStatus.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._ioLinkType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._ioEffect.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._ioEffectDutyCycle.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._ioEffectDuration.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._ioProcess.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as IOEffect; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(IOEffect obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._recordType != obj._recordType) - { - ivarsEqual = false; - } - - if (this._recordLength != obj._recordLength) - { - ivarsEqual = false; - } - - if (this._ioStatus != obj._ioStatus) - { - ivarsEqual = false; - } - - if (this._ioLinkType != obj._ioLinkType) - { - ivarsEqual = false; - } - - if (!this._ioEffect.Equals(obj._ioEffect)) - { - ivarsEqual = false; - } - - if (this._ioEffectDutyCycle != obj._ioEffectDutyCycle) - { - ivarsEqual = false; - } - - if (this._ioEffectDuration != obj._ioEffectDuration) - { - ivarsEqual = false; - } - - if (this._ioProcess != obj._ioProcess) - { - ivarsEqual = false; - } - - if (this._padding != obj._padding) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._recordType.GetHashCode(); - result = GenerateHash(result) ^ this._recordLength.GetHashCode(); - result = GenerateHash(result) ^ this._ioStatus.GetHashCode(); - result = GenerateHash(result) ^ this._ioLinkType.GetHashCode(); - result = GenerateHash(result) ^ this._ioEffect.GetHashCode(); - result = GenerateHash(result) ^ this._ioEffectDutyCycle.GetHashCode(); - result = GenerateHash(result) ^ this._ioEffectDuration.GetHashCode(); - result = GenerateHash(result) ^ this._ioProcess.GetHashCode(); - result = GenerateHash(result) ^ this._padding.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/IffDataSpecification.cs b/Libs/CSharpDis7/IffDataSpecification.cs deleted file mode 100644 index 74e753d..0000000 --- a/Libs/CSharpDis7/IffDataSpecification.cs +++ /dev/null @@ -1,280 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Requires hand coding to be useful. Section 6.2.44 - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityType))] - public partial class IffDataSpecification - { - /// - /// Number of iff records - /// - private EntityType _numberOfIffDataRecords = new EntityType(); - - /// - /// Initializes a new instance of the class. - /// - public IffDataSpecification() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(IffDataSpecification left, IffDataSpecification right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(IffDataSpecification left, IffDataSpecification right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += this._numberOfIffDataRecords.GetMarshalledSize(); // this._numberOfIffDataRecords - return marshalSize; - } - - /// - /// Gets or sets the Number of iff records - /// - [XmlElement(Type = typeof(EntityType), ElementName = "numberOfIffDataRecords")] - public EntityType NumberOfIffDataRecords - { - get - { - return this._numberOfIffDataRecords; - } - - set - { - this._numberOfIffDataRecords = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - this._numberOfIffDataRecords.Marshal(dos); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._numberOfIffDataRecords.Unmarshal(dis); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine(""); - this._numberOfIffDataRecords.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as IffDataSpecification; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(IffDataSpecification obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (!this._numberOfIffDataRecords.Equals(obj._numberOfIffDataRecords)) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._numberOfIffDataRecords.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/IntercomCommunicationsParameters.cs b/Libs/CSharpDis7/IntercomCommunicationsParameters.cs deleted file mode 100644 index bfb68d8..0000000 --- a/Libs/CSharpDis7/IntercomCommunicationsParameters.cs +++ /dev/null @@ -1,341 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Intercom communcations parameters. Section 6.2.47. This requires hand coding - /// - [Serializable] - [XmlRoot] - public partial class IntercomCommunicationsParameters - { - /// - /// Type of intercom parameters record - /// - private ushort _recordType; - - /// - /// length of record - /// - private ushort _recordLength; - - /// - /// This is a placeholder. - /// - private uint _recordSpecificField; - - /// - /// Initializes a new instance of the class. - /// - public IntercomCommunicationsParameters() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(IntercomCommunicationsParameters left, IntercomCommunicationsParameters right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(IntercomCommunicationsParameters left, IntercomCommunicationsParameters right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 2; // this._recordType - marshalSize += 2; // this._recordLength - marshalSize += 4; // this._recordSpecificField - return marshalSize; - } - - /// - /// Gets or sets the Type of intercom parameters record - /// - [XmlElement(Type = typeof(ushort), ElementName = "recordType")] - public ushort RecordType - { - get - { - return this._recordType; - } - - set - { - this._recordType = value; - } - } - - /// - /// Gets or sets the length of record - /// - [XmlElement(Type = typeof(ushort), ElementName = "recordLength")] - public ushort RecordLength - { - get - { - return this._recordLength; - } - - set - { - this._recordLength = value; - } - } - - /// - /// Gets or sets the This is a placeholder. - /// - [XmlElement(Type = typeof(uint), ElementName = "recordSpecificField")] - public uint RecordSpecificField - { - get - { - return this._recordSpecificField; - } - - set - { - this._recordSpecificField = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._recordType); - dos.WriteUnsignedShort((ushort)this._recordLength); - dos.WriteUnsignedInt((uint)this._recordSpecificField); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._recordType = dis.ReadUnsignedShort(); - this._recordLength = dis.ReadUnsignedShort(); - this._recordSpecificField = dis.ReadUnsignedInt(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._recordType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._recordLength.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._recordSpecificField.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as IntercomCommunicationsParameters; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(IntercomCommunicationsParameters obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._recordType != obj._recordType) - { - ivarsEqual = false; - } - - if (this._recordLength != obj._recordLength) - { - ivarsEqual = false; - } - - if (this._recordSpecificField != obj._recordSpecificField) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._recordType.GetHashCode(); - result = GenerateHash(result) ^ this._recordLength.GetHashCode(); - result = GenerateHash(result) ^ this._recordSpecificField.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/IntercomIdentifier.cs b/Libs/CSharpDis7/IntercomIdentifier.cs deleted file mode 100644 index 68a1a3b..0000000 --- a/Libs/CSharpDis7/IntercomIdentifier.cs +++ /dev/null @@ -1,349 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Unique designation of an attached or unattached intercom in an event or exercirse. Section 6.2.48 - /// - [Serializable] - [XmlRoot] - public partial class IntercomIdentifier - { - private ushort _siteNumber; - - private ushort _applicationNumber; - - private ushort _referenceNumber; - - private ushort _intercomNumber; - - /// - /// Initializes a new instance of the class. - /// - public IntercomIdentifier() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(IntercomIdentifier left, IntercomIdentifier right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(IntercomIdentifier left, IntercomIdentifier right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 2; // this._siteNumber - marshalSize += 2; // this._applicationNumber - marshalSize += 2; // this._referenceNumber - marshalSize += 2; // this._intercomNumber - return marshalSize; - } - - [XmlElement(Type = typeof(ushort), ElementName = "siteNumber")] - public ushort SiteNumber - { - get - { - return this._siteNumber; - } - - set - { - this._siteNumber = value; - } - } - - [XmlElement(Type = typeof(ushort), ElementName = "applicationNumber")] - public ushort ApplicationNumber - { - get - { - return this._applicationNumber; - } - - set - { - this._applicationNumber = value; - } - } - - [XmlElement(Type = typeof(ushort), ElementName = "referenceNumber")] - public ushort ReferenceNumber - { - get - { - return this._referenceNumber; - } - - set - { - this._referenceNumber = value; - } - } - - [XmlElement(Type = typeof(ushort), ElementName = "intercomNumber")] - public ushort IntercomNumber - { - get - { - return this._intercomNumber; - } - - set - { - this._intercomNumber = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._siteNumber); - dos.WriteUnsignedShort((ushort)this._applicationNumber); - dos.WriteUnsignedShort((ushort)this._referenceNumber); - dos.WriteUnsignedShort((ushort)this._intercomNumber); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._siteNumber = dis.ReadUnsignedShort(); - this._applicationNumber = dis.ReadUnsignedShort(); - this._referenceNumber = dis.ReadUnsignedShort(); - this._intercomNumber = dis.ReadUnsignedShort(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._siteNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._applicationNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._referenceNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._intercomNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as IntercomIdentifier; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(IntercomIdentifier obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._siteNumber != obj._siteNumber) - { - ivarsEqual = false; - } - - if (this._applicationNumber != obj._applicationNumber) - { - ivarsEqual = false; - } - - if (this._referenceNumber != obj._referenceNumber) - { - ivarsEqual = false; - } - - if (this._intercomNumber != obj._intercomNumber) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._siteNumber.GetHashCode(); - result = GenerateHash(result) ^ this._applicationNumber.GetHashCode(); - result = GenerateHash(result) ^ this._referenceNumber.GetHashCode(); - result = GenerateHash(result) ^ this._intercomNumber.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/IntercomSignalPdu.cs b/Libs/CSharpDis7/IntercomSignalPdu.cs deleted file mode 100644 index e4e952e..0000000 --- a/Libs/CSharpDis7/IntercomSignalPdu.cs +++ /dev/null @@ -1,525 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Actual transmission of intercome voice data. Section 7.7.5. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(OneByteChunk))] - public partial class IntercomSignalPdu : RadioCommunicationsFamilyPdu, IEquatable - { - /// - /// entity ID - /// - private EntityID _entityID = new EntityID(); - - /// - /// ID of communications device - /// - private ushort _communicationsDeviceID; - - /// - /// encoding scheme - /// - private ushort _encodingScheme; - - /// - /// tactical data link type - /// - private ushort _tdlType; - - /// - /// sample rate - /// - private uint _sampleRate; - - /// - /// data length - /// - private ushort _dataLength; - - /// - /// samples - /// - private ushort _samples; - - /// - /// data bytes - /// - private byte[] _data; - - /// - /// Initializes a new instance of the class. - /// - public IntercomSignalPdu() - { - PduType = (byte)31; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(IntercomSignalPdu left, IntercomSignalPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(IntercomSignalPdu left, IntercomSignalPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._entityID.GetMarshalledSize(); // this._entityID - marshalSize += 2; // this._communicationsDeviceID - marshalSize += 2; // this._encodingScheme - marshalSize += 2; // this._tdlType - marshalSize += 4; // this._sampleRate - marshalSize += 2; // this._dataLength - marshalSize += 2; // this._samples - marshalSize += this._data.Length; - return marshalSize; - } - - /// - /// Gets or sets the entity ID - /// - [XmlElement(Type = typeof(EntityID), ElementName = "entityID")] - public EntityID EntityID - { - get - { - return this._entityID; - } - - set - { - this._entityID = value; - } - } - - /// - /// Gets or sets the ID of communications device - /// - [XmlElement(Type = typeof(ushort), ElementName = "communicationsDeviceID")] - public ushort CommunicationsDeviceID - { - get - { - return this._communicationsDeviceID; - } - - set - { - this._communicationsDeviceID = value; - } - } - - /// - /// Gets or sets the encoding scheme - /// - [XmlElement(Type = typeof(ushort), ElementName = "encodingScheme")] - public ushort EncodingScheme - { - get - { - return this._encodingScheme; - } - - set - { - this._encodingScheme = value; - } - } - - /// - /// Gets or sets the tactical data link type - /// - [XmlElement(Type = typeof(ushort), ElementName = "tdlType")] - public ushort TdlType - { - get - { - return this._tdlType; - } - - set - { - this._tdlType = value; - } - } - - /// - /// Gets or sets the sample rate - /// - [XmlElement(Type = typeof(uint), ElementName = "sampleRate")] - public uint SampleRate - { - get - { - return this._sampleRate; - } - - set - { - this._sampleRate = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getdataLength method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(ushort), ElementName = "dataLength")] - public ushort DataLength - { - get - { - return this._dataLength; - } - - set - { - this._dataLength = value; - } - } - - /// - /// Gets or sets the samples - /// - [XmlElement(Type = typeof(ushort), ElementName = "samples")] - public ushort Samples - { - get - { - return this._samples; - } - - set - { - this._samples = value; - } - } - - /// - /// Gets or sets the data bytes - /// - [XmlElement(ElementName = "dataList", DataType = "hexBinary")] - public byte[] Data - { - get - { - return this._data; - } - - set - { - this._data = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._entityID.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._communicationsDeviceID); - dos.WriteUnsignedShort((ushort)this._encodingScheme); - dos.WriteUnsignedShort((ushort)this._tdlType); - dos.WriteUnsignedInt((uint)this._sampleRate); - dos.WriteUnsignedShort((ushort)this._data.Length); - dos.WriteUnsignedShort((ushort)this._samples); - dos.WriteByte (this._data); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._entityID.Unmarshal(dis); - this._communicationsDeviceID = dis.ReadUnsignedShort(); - this._encodingScheme = dis.ReadUnsignedShort(); - this._tdlType = dis.ReadUnsignedShort(); - this._sampleRate = dis.ReadUnsignedInt(); - this._dataLength = dis.ReadUnsignedShort(); - this._samples = dis.ReadUnsignedShort(); - this._data = dis.ReadByteArray(this._dataLength); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._entityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._communicationsDeviceID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._encodingScheme.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._tdlType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._sampleRate.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._data.Length.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._samples.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - foreach (byte b in this._data) - { - sb.Append(b.ToString("X2", CultureInfo.InvariantCulture)); - } - - sb.AppendLine(""); - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as IntercomSignalPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(IntercomSignalPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._entityID.Equals(obj._entityID)) - { - ivarsEqual = false; - } - - if (this._communicationsDeviceID != obj._communicationsDeviceID) - { - ivarsEqual = false; - } - - if (this._encodingScheme != obj._encodingScheme) - { - ivarsEqual = false; - } - - if (this._tdlType != obj._tdlType) - { - ivarsEqual = false; - } - - if (this._sampleRate != obj._sampleRate) - { - ivarsEqual = false; - } - - if (this._dataLength != obj._dataLength) - { - ivarsEqual = false; - } - - if (this._samples != obj._samples) - { - ivarsEqual = false; - } - - if (!this._data.Equals(obj._data)) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._entityID.GetHashCode(); - result = GenerateHash(result) ^ this._communicationsDeviceID.GetHashCode(); - result = GenerateHash(result) ^ this._encodingScheme.GetHashCode(); - result = GenerateHash(result) ^ this._tdlType.GetHashCode(); - result = GenerateHash(result) ^ this._sampleRate.GetHashCode(); - result = GenerateHash(result) ^ this._dataLength.GetHashCode(); - result = GenerateHash(result) ^ this._samples.GetHashCode(); - - if (this._data.Length > 0) - { - for (int idx = 0; idx < this._data.Length; idx++) - { - result = GenerateHash(result) ^ this._data[idx].GetHashCode(); - } - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/IsPartOfPdu.cs b/Libs/CSharpDis7/IsPartOfPdu.cs deleted file mode 100644 index de30790..0000000 --- a/Libs/CSharpDis7/IsPartOfPdu.cs +++ /dev/null @@ -1,458 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// The joining of two or more simulation entities is communicated by this PDU. Section 7.8.5 COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(Relationship))] - [XmlInclude(typeof(Vector3Float))] - [XmlInclude(typeof(NamedLocationIdentification))] - [XmlInclude(typeof(EntityType))] - public partial class IsPartOfPdu : EntityManagementFamilyPdu, IEquatable - { - /// - /// ID of entity originating PDU - /// - private EntityID _orginatingEntityID = new EntityID(); - - /// - /// ID of entity receiving PDU - /// - private EntityID _receivingEntityID = new EntityID(); - - /// - /// relationship of joined parts - /// - private Relationship _relationship = new Relationship(); - - /// - /// location of part; centroid of part in host's coordinate system. x=range, y=bearing, z=0 - /// - private Vector3Float _partLocation = new Vector3Float(); - - /// - /// named location - /// - private NamedLocationIdentification _namedLocationID = new NamedLocationIdentification(); - - /// - /// entity type - /// - private EntityType _partEntityType = new EntityType(); - - /// - /// Initializes a new instance of the class. - /// - public IsPartOfPdu() - { - PduType = (byte)36; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(IsPartOfPdu left, IsPartOfPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(IsPartOfPdu left, IsPartOfPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._orginatingEntityID.GetMarshalledSize(); // this._orginatingEntityID - marshalSize += this._receivingEntityID.GetMarshalledSize(); // this._receivingEntityID - marshalSize += this._relationship.GetMarshalledSize(); // this._relationship - marshalSize += this._partLocation.GetMarshalledSize(); // this._partLocation - marshalSize += this._namedLocationID.GetMarshalledSize(); // this._namedLocationID - marshalSize += this._partEntityType.GetMarshalledSize(); // this._partEntityType - return marshalSize; - } - - /// - /// Gets or sets the ID of entity originating PDU - /// - [XmlElement(Type = typeof(EntityID), ElementName = "orginatingEntityID")] - public EntityID OrginatingEntityID - { - get - { - return this._orginatingEntityID; - } - - set - { - this._orginatingEntityID = value; - } - } - - /// - /// Gets or sets the ID of entity receiving PDU - /// - [XmlElement(Type = typeof(EntityID), ElementName = "receivingEntityID")] - public EntityID ReceivingEntityID - { - get - { - return this._receivingEntityID; - } - - set - { - this._receivingEntityID = value; - } - } - - /// - /// Gets or sets the relationship of joined parts - /// - [XmlElement(Type = typeof(Relationship), ElementName = "relationship")] - public Relationship Relationship - { - get - { - return this._relationship; - } - - set - { - this._relationship = value; - } - } - - /// - /// Gets or sets the location of part; centroid of part in host's coordinate system. x=range, y=bearing, z=0 - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "partLocation")] - public Vector3Float PartLocation - { - get - { - return this._partLocation; - } - - set - { - this._partLocation = value; - } - } - - /// - /// Gets or sets the named location - /// - [XmlElement(Type = typeof(NamedLocationIdentification), ElementName = "namedLocationID")] - public NamedLocationIdentification NamedLocationID - { - get - { - return this._namedLocationID; - } - - set - { - this._namedLocationID = value; - } - } - - /// - /// Gets or sets the entity type - /// - [XmlElement(Type = typeof(EntityType), ElementName = "partEntityType")] - public EntityType PartEntityType - { - get - { - return this._partEntityType; - } - - set - { - this._partEntityType = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._orginatingEntityID.Marshal(dos); - this._receivingEntityID.Marshal(dos); - this._relationship.Marshal(dos); - this._partLocation.Marshal(dos); - this._namedLocationID.Marshal(dos); - this._partEntityType.Marshal(dos); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._orginatingEntityID.Unmarshal(dis); - this._receivingEntityID.Unmarshal(dis); - this._relationship.Unmarshal(dis); - this._partLocation.Unmarshal(dis); - this._namedLocationID.Unmarshal(dis); - this._partEntityType.Unmarshal(dis); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._orginatingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._receivingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._relationship.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._partLocation.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._namedLocationID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._partEntityType.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as IsPartOfPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(IsPartOfPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._orginatingEntityID.Equals(obj._orginatingEntityID)) - { - ivarsEqual = false; - } - - if (!this._receivingEntityID.Equals(obj._receivingEntityID)) - { - ivarsEqual = false; - } - - if (!this._relationship.Equals(obj._relationship)) - { - ivarsEqual = false; - } - - if (!this._partLocation.Equals(obj._partLocation)) - { - ivarsEqual = false; - } - - if (!this._namedLocationID.Equals(obj._namedLocationID)) - { - ivarsEqual = false; - } - - if (!this._partEntityType.Equals(obj._partEntityType)) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._orginatingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._receivingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._relationship.GetHashCode(); - result = GenerateHash(result) ^ this._partLocation.GetHashCode(); - result = GenerateHash(result) ^ this._namedLocationID.GetHashCode(); - result = GenerateHash(result) ^ this._partEntityType.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/JammingTechnique.cs b/Libs/CSharpDis7/JammingTechnique.cs deleted file mode 100644 index bed5994..0000000 --- a/Libs/CSharpDis7/JammingTechnique.cs +++ /dev/null @@ -1,349 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Jamming technique. Section 6.2.50 - /// - [Serializable] - [XmlRoot] - public partial class JammingTechnique - { - private byte _kind; - - private byte _category; - - private byte _subcategory; - - private byte _specific; - - /// - /// Initializes a new instance of the class. - /// - public JammingTechnique() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(JammingTechnique left, JammingTechnique right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(JammingTechnique left, JammingTechnique right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._kind - marshalSize += 1; // this._category - marshalSize += 1; // this._subcategory - marshalSize += 1; // this._specific - return marshalSize; - } - - [XmlElement(Type = typeof(byte), ElementName = "kind")] - public byte Kind - { - get - { - return this._kind; - } - - set - { - this._kind = value; - } - } - - [XmlElement(Type = typeof(byte), ElementName = "category")] - public byte Category - { - get - { - return this._category; - } - - set - { - this._category = value; - } - } - - [XmlElement(Type = typeof(byte), ElementName = "subcategory")] - public byte Subcategory - { - get - { - return this._subcategory; - } - - set - { - this._subcategory = value; - } - } - - [XmlElement(Type = typeof(byte), ElementName = "specific")] - public byte Specific - { - get - { - return this._specific; - } - - set - { - this._specific = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._kind); - dos.WriteUnsignedByte((byte)this._category); - dos.WriteUnsignedByte((byte)this._subcategory); - dos.WriteUnsignedByte((byte)this._specific); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._kind = dis.ReadUnsignedByte(); - this._category = dis.ReadUnsignedByte(); - this._subcategory = dis.ReadUnsignedByte(); - this._specific = dis.ReadUnsignedByte(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._kind.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._category.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._subcategory.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._specific.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as JammingTechnique; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(JammingTechnique obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._kind != obj._kind) - { - ivarsEqual = false; - } - - if (this._category != obj._category) - { - ivarsEqual = false; - } - - if (this._subcategory != obj._subcategory) - { - ivarsEqual = false; - } - - if (this._specific != obj._specific) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._kind.GetHashCode(); - result = GenerateHash(result) ^ this._category.GetHashCode(); - result = GenerateHash(result) ^ this._subcategory.GetHashCode(); - result = GenerateHash(result) ^ this._specific.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/LaunchedMunitionRecord.cs b/Libs/CSharpDis7/LaunchedMunitionRecord.cs deleted file mode 100644 index 8bbb052..0000000 --- a/Libs/CSharpDis7/LaunchedMunitionRecord.cs +++ /dev/null @@ -1,437 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Identity of a communications node. Section 6.2.51 - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EventIdentifier))] - [XmlInclude(typeof(Vector3Double))] - public partial class LaunchedMunitionRecord - { - private EventIdentifier _fireEventID = new EventIdentifier(); - - private ushort _padding; - - private EventIdentifier _firingEntityID = new EventIdentifier(); - - private ushort _padding2; - - private EventIdentifier _targetEntityID = new EventIdentifier(); - - private ushort _padding3; - - private Vector3Double _targetLocation = new Vector3Double(); - - /// - /// Initializes a new instance of the class. - /// - public LaunchedMunitionRecord() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(LaunchedMunitionRecord left, LaunchedMunitionRecord right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(LaunchedMunitionRecord left, LaunchedMunitionRecord right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += this._fireEventID.GetMarshalledSize(); // this._fireEventID - marshalSize += 2; // this._padding - marshalSize += this._firingEntityID.GetMarshalledSize(); // this._firingEntityID - marshalSize += 2; // this._padding2 - marshalSize += this._targetEntityID.GetMarshalledSize(); // this._targetEntityID - marshalSize += 2; // this._padding3 - marshalSize += this._targetLocation.GetMarshalledSize(); // this._targetLocation - return marshalSize; - } - - [XmlElement(Type = typeof(EventIdentifier), ElementName = "fireEventID")] - public EventIdentifier FireEventID - { - get - { - return this._fireEventID; - } - - set - { - this._fireEventID = value; - } - } - - [XmlElement(Type = typeof(ushort), ElementName = "padding")] - public ushort Padding - { - get - { - return this._padding; - } - - set - { - this._padding = value; - } - } - - [XmlElement(Type = typeof(EventIdentifier), ElementName = "firingEntityID")] - public EventIdentifier FiringEntityID - { - get - { - return this._firingEntityID; - } - - set - { - this._firingEntityID = value; - } - } - - [XmlElement(Type = typeof(ushort), ElementName = "padding2")] - public ushort Padding2 - { - get - { - return this._padding2; - } - - set - { - this._padding2 = value; - } - } - - [XmlElement(Type = typeof(EventIdentifier), ElementName = "targetEntityID")] - public EventIdentifier TargetEntityID - { - get - { - return this._targetEntityID; - } - - set - { - this._targetEntityID = value; - } - } - - [XmlElement(Type = typeof(ushort), ElementName = "padding3")] - public ushort Padding3 - { - get - { - return this._padding3; - } - - set - { - this._padding3 = value; - } - } - - [XmlElement(Type = typeof(Vector3Double), ElementName = "targetLocation")] - public Vector3Double TargetLocation - { - get - { - return this._targetLocation; - } - - set - { - this._targetLocation = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - this._fireEventID.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._padding); - this._firingEntityID.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._padding2); - this._targetEntityID.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._padding3); - this._targetLocation.Marshal(dos); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._fireEventID.Unmarshal(dis); - this._padding = dis.ReadUnsignedShort(); - this._firingEntityID.Unmarshal(dis); - this._padding2 = dis.ReadUnsignedShort(); - this._targetEntityID.Unmarshal(dis); - this._padding3 = dis.ReadUnsignedShort(); - this._targetLocation.Unmarshal(dis); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine(""); - this._fireEventID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._firingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._targetEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._padding3.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._targetLocation.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as LaunchedMunitionRecord; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(LaunchedMunitionRecord obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (!this._fireEventID.Equals(obj._fireEventID)) - { - ivarsEqual = false; - } - - if (this._padding != obj._padding) - { - ivarsEqual = false; - } - - if (!this._firingEntityID.Equals(obj._firingEntityID)) - { - ivarsEqual = false; - } - - if (this._padding2 != obj._padding2) - { - ivarsEqual = false; - } - - if (!this._targetEntityID.Equals(obj._targetEntityID)) - { - ivarsEqual = false; - } - - if (this._padding3 != obj._padding3) - { - ivarsEqual = false; - } - - if (!this._targetLocation.Equals(obj._targetLocation)) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._fireEventID.GetHashCode(); - result = GenerateHash(result) ^ this._padding.GetHashCode(); - result = GenerateHash(result) ^ this._firingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._padding2.GetHashCode(); - result = GenerateHash(result) ^ this._targetEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._padding3.GetHashCode(); - result = GenerateHash(result) ^ this._targetLocation.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/LayerHeader.cs b/Libs/CSharpDis7/LayerHeader.cs deleted file mode 100644 index aedfeaf..0000000 --- a/Libs/CSharpDis7/LayerHeader.cs +++ /dev/null @@ -1,335 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// The identification of the additional information layer number, layer-specific information, and the length of the layer. Section 6.2.52 - /// - [Serializable] - [XmlRoot] - public partial class LayerHeader - { - private byte _layerNumber; - - /// - /// field shall specify layer-specific information that varies by System Type (see 6.2.86) and Layer Number. - /// - private byte _layerSpecificInformation; - - /// - /// This field shall specify the length in octets of the layer, including the Layer Header record - /// - private ushort _length; - - /// - /// Initializes a new instance of the class. - /// - public LayerHeader() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(LayerHeader left, LayerHeader right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(LayerHeader left, LayerHeader right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._layerNumber - marshalSize += 1; // this._layerSpecificInformation - marshalSize += 2; // this._length - return marshalSize; - } - - [XmlElement(Type = typeof(byte), ElementName = "layerNumber")] - public byte LayerNumber - { - get - { - return this._layerNumber; - } - - set - { - this._layerNumber = value; - } - } - - /// - /// Gets or sets the field shall specify layer-specific information that varies by System Type (see 6.2.86) and Layer Number. - /// - [XmlElement(Type = typeof(byte), ElementName = "layerSpecificInformation")] - public byte LayerSpecificInformation - { - get - { - return this._layerSpecificInformation; - } - - set - { - this._layerSpecificInformation = value; - } - } - - /// - /// Gets or sets the This field shall specify the length in octets of the layer, including the Layer Header record - /// - [XmlElement(Type = typeof(ushort), ElementName = "length")] - public ushort Length - { - get - { - return this._length; - } - - set - { - this._length = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._layerNumber); - dos.WriteUnsignedByte((byte)this._layerSpecificInformation); - dos.WriteUnsignedShort((ushort)this._length); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._layerNumber = dis.ReadUnsignedByte(); - this._layerSpecificInformation = dis.ReadUnsignedByte(); - this._length = dis.ReadUnsignedShort(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._layerNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._layerSpecificInformation.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._length.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as LayerHeader; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(LayerHeader obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._layerNumber != obj._layerNumber) - { - ivarsEqual = false; - } - - if (this._layerSpecificInformation != obj._layerSpecificInformation) - { - ivarsEqual = false; - } - - if (this._length != obj._length) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._layerNumber.GetHashCode(); - result = GenerateHash(result) ^ this._layerSpecificInformation.GetHashCode(); - result = GenerateHash(result) ^ this._length.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/LinearObjectStatePdu.cs b/Libs/CSharpDis7/LinearObjectStatePdu.cs deleted file mode 100644 index d73ebc9..0000000 --- a/Libs/CSharpDis7/LinearObjectStatePdu.cs +++ /dev/null @@ -1,589 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// : Information abut the addition or modification of a synthecic enviroment object that is anchored to the terrain with a single point and has size or orientation. Section 7.10.5 COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(SimulationAddress))] - [XmlInclude(typeof(ObjectType))] - [XmlInclude(typeof(LinearSegmentParameter))] - public partial class LinearObjectStatePdu : SyntheticEnvironmentFamilyPdu, IEquatable - { - /// - /// Object in synthetic environment - /// - private EntityID _objectID = new EntityID(); - - /// - /// Object with which this point object is associated - /// - private EntityID _referencedObjectID = new EntityID(); - - /// - /// unique update number of each state transition of an object - /// - private ushort _updateNumber; - - /// - /// force ID - /// - private byte _forceID; - - /// - /// number of linear segment parameters - /// - private byte _numberOfSegments; - - /// - /// requesterID - /// - private SimulationAddress _requesterID = new SimulationAddress(); - - /// - /// receiver ID - /// - private SimulationAddress _receivingID = new SimulationAddress(); - - /// - /// Object type - /// - private ObjectType _objectType = new ObjectType(); - - /// - /// Linear segment parameters - /// - private List _linearSegmentParameters = new List(); - - /// - /// Initializes a new instance of the class. - /// - public LinearObjectStatePdu() - { - PduType = (byte)44; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(LinearObjectStatePdu left, LinearObjectStatePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(LinearObjectStatePdu left, LinearObjectStatePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._objectID.GetMarshalledSize(); // this._objectID - marshalSize += this._referencedObjectID.GetMarshalledSize(); // this._referencedObjectID - marshalSize += 2; // this._updateNumber - marshalSize += 1; // this._forceID - marshalSize += 1; // this._numberOfSegments - marshalSize += this._requesterID.GetMarshalledSize(); // this._requesterID - marshalSize += this._receivingID.GetMarshalledSize(); // this._receivingID - marshalSize += this._objectType.GetMarshalledSize(); // this._objectType - for (int idx = 0; idx < this._linearSegmentParameters.Count; idx++) - { - LinearSegmentParameter listElement = (LinearSegmentParameter)this._linearSegmentParameters[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Object in synthetic environment - /// - [XmlElement(Type = typeof(EntityID), ElementName = "objectID")] - public EntityID ObjectID - { - get - { - return this._objectID; - } - - set - { - this._objectID = value; - } - } - - /// - /// Gets or sets the Object with which this point object is associated - /// - [XmlElement(Type = typeof(EntityID), ElementName = "referencedObjectID")] - public EntityID ReferencedObjectID - { - get - { - return this._referencedObjectID; - } - - set - { - this._referencedObjectID = value; - } - } - - /// - /// Gets or sets the unique update number of each state transition of an object - /// - [XmlElement(Type = typeof(ushort), ElementName = "updateNumber")] - public ushort UpdateNumber - { - get - { - return this._updateNumber; - } - - set - { - this._updateNumber = value; - } - } - - /// - /// Gets or sets the force ID - /// - [XmlElement(Type = typeof(byte), ElementName = "forceID")] - public byte ForceID - { - get - { - return this._forceID; - } - - set - { - this._forceID = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfSegments method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfSegments")] - public byte NumberOfSegments - { - get - { - return this._numberOfSegments; - } - - set - { - this._numberOfSegments = value; - } - } - - /// - /// Gets or sets the requesterID - /// - [XmlElement(Type = typeof(SimulationAddress), ElementName = "requesterID")] - public SimulationAddress RequesterID - { - get - { - return this._requesterID; - } - - set - { - this._requesterID = value; - } - } - - /// - /// Gets or sets the receiver ID - /// - [XmlElement(Type = typeof(SimulationAddress), ElementName = "receivingID")] - public SimulationAddress ReceivingID - { - get - { - return this._receivingID; - } - - set - { - this._receivingID = value; - } - } - - /// - /// Gets or sets the Object type - /// - [XmlElement(Type = typeof(ObjectType), ElementName = "objectType")] - public ObjectType ObjectType - { - get - { - return this._objectType; - } - - set - { - this._objectType = value; - } - } - - /// - /// Gets or sets the Linear segment parameters - /// - [XmlElement(ElementName = "linearSegmentParametersList", Type = typeof(List))] - public List LinearSegmentParameters - { - get - { - return this._linearSegmentParameters; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._objectID.Marshal(dos); - this._referencedObjectID.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._updateNumber); - dos.WriteUnsignedByte((byte)this._forceID); - dos.WriteUnsignedByte((byte)this._linearSegmentParameters.Count); - this._requesterID.Marshal(dos); - this._receivingID.Marshal(dos); - this._objectType.Marshal(dos); - - for (int idx = 0; idx < this._linearSegmentParameters.Count; idx++) - { - LinearSegmentParameter aLinearSegmentParameter = (LinearSegmentParameter)this._linearSegmentParameters[idx]; - aLinearSegmentParameter.Marshal(dos); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._objectID.Unmarshal(dis); - this._referencedObjectID.Unmarshal(dis); - this._updateNumber = dis.ReadUnsignedShort(); - this._forceID = dis.ReadUnsignedByte(); - this._numberOfSegments = dis.ReadUnsignedByte(); - this._requesterID.Unmarshal(dis); - this._receivingID.Unmarshal(dis); - this._objectType.Unmarshal(dis); - for (int idx = 0; idx < this.NumberOfSegments; idx++) - { - LinearSegmentParameter anX = new LinearSegmentParameter(); - anX.Unmarshal(dis); - this._linearSegmentParameters.Add(anX); - }; - - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._objectID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._referencedObjectID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._updateNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._forceID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._linearSegmentParameters.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._requesterID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._receivingID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._objectType.Reflection(sb); - sb.AppendLine(""); - for (int idx = 0; idx < this._linearSegmentParameters.Count; idx++) - { - sb.AppendLine(""); - LinearSegmentParameter aLinearSegmentParameter = (LinearSegmentParameter)this._linearSegmentParameters[idx]; - aLinearSegmentParameter.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as LinearObjectStatePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(LinearObjectStatePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._objectID.Equals(obj._objectID)) - { - ivarsEqual = false; - } - - if (!this._referencedObjectID.Equals(obj._referencedObjectID)) - { - ivarsEqual = false; - } - - if (this._updateNumber != obj._updateNumber) - { - ivarsEqual = false; - } - - if (this._forceID != obj._forceID) - { - ivarsEqual = false; - } - - if (this._numberOfSegments != obj._numberOfSegments) - { - ivarsEqual = false; - } - - if (!this._requesterID.Equals(obj._requesterID)) - { - ivarsEqual = false; - } - - if (!this._receivingID.Equals(obj._receivingID)) - { - ivarsEqual = false; - } - - if (!this._objectType.Equals(obj._objectType)) - { - ivarsEqual = false; - } - - if (this._linearSegmentParameters.Count != obj._linearSegmentParameters.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._linearSegmentParameters.Count; idx++) - { - if (!this._linearSegmentParameters[idx].Equals(obj._linearSegmentParameters[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._objectID.GetHashCode(); - result = GenerateHash(result) ^ this._referencedObjectID.GetHashCode(); - result = GenerateHash(result) ^ this._updateNumber.GetHashCode(); - result = GenerateHash(result) ^ this._forceID.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfSegments.GetHashCode(); - result = GenerateHash(result) ^ this._requesterID.GetHashCode(); - result = GenerateHash(result) ^ this._receivingID.GetHashCode(); - result = GenerateHash(result) ^ this._objectType.GetHashCode(); - - if (this._linearSegmentParameters.Count > 0) - { - for (int idx = 0; idx < this._linearSegmentParameters.Count; idx++) - { - result = GenerateHash(result) ^ this._linearSegmentParameters[idx].GetHashCode(); - } - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/LinearSegmentParameter.cs b/Libs/CSharpDis7/LinearSegmentParameter.cs deleted file mode 100644 index 7e037b5..0000000 --- a/Libs/CSharpDis7/LinearSegmentParameter.cs +++ /dev/null @@ -1,571 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// The specification of an individual segment of a linear segment synthetic environment object in a Linear Object State PDU Section 6.2.53 - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(Vector3Double))] - [XmlInclude(typeof(EulerAngles))] - public partial class LinearSegmentParameter - { - /// - /// the individual segment of the linear segment - /// - private byte _segmentNumber; - - /// - /// whether a modification has been made to the point object’s location or orientation - /// - private byte _segmentModification; - - /// - /// general dynamic appearance attributes of the segment. This record shall be defined as a 16-bit record of enumerations. The values defined for this record are included in Section 12 of SISO-REF-010. - /// - private ushort _generalSegmentAppearance; - - /// - /// This field shall specify specific dynamic appearance attributes of the segment. This record shall be defined as a 32-bit record of enumerations. - /// - private ushort _specificSegmentAppearance; - - /// - /// This field shall specify the location of the linear segment in the simulated world and shall be represented by a World Coordinates record - /// - private Vector3Double _segmentLocation = new Vector3Double(); - - /// - /// orientation of the linear segment about the segment location and shall be represented by a Euler Angles record - /// - private EulerAngles _segmentOrientation = new EulerAngles(); - - /// - /// length of the linear segment, in meters, extending in the positive X direction - /// - private ushort _segmentLength; - - /// - /// The total width of the linear segment, in meters, shall be specified by a 16-bit unsigned integer. One-half of the width shall extend in the positive Y direction, and one-half of the width shall extend in the negative Y direction. - /// - private ushort _segmentWidth; - - /// - /// The height of the linear segment, in meters, above ground shall be specified by a 16-bit unsigned integer. - /// - private ushort _segmentHeight; - - /// - /// The depth of the linear segment, in meters, below ground level - /// - private ushort _segmentDepth; - - /// - /// Initializes a new instance of the class. - /// - public LinearSegmentParameter() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(LinearSegmentParameter left, LinearSegmentParameter right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(LinearSegmentParameter left, LinearSegmentParameter right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._segmentNumber - marshalSize += 1; // this._segmentModification - marshalSize += 2; // this._generalSegmentAppearance - marshalSize += 2; // this._specificSegmentAppearance - marshalSize += this._segmentLocation.GetMarshalledSize(); // this._segmentLocation - marshalSize += this._segmentOrientation.GetMarshalledSize(); // this._segmentOrientation - marshalSize += 2; // this._segmentLength - marshalSize += 2; // this._segmentWidth - marshalSize += 2; // this._segmentHeight - marshalSize += 2; // this._segmentDepth - return marshalSize; - } - - /// - /// Gets or sets the the individual segment of the linear segment - /// - [XmlElement(Type = typeof(byte), ElementName = "segmentNumber")] - public byte SegmentNumber - { - get - { - return this._segmentNumber; - } - - set - { - this._segmentNumber = value; - } - } - - /// - /// Gets or sets the whether a modification has been made to the point object’s location or orientation - /// - [XmlElement(Type = typeof(byte), ElementName = "segmentModification")] - public byte SegmentModification - { - get - { - return this._segmentModification; - } - - set - { - this._segmentModification = value; - } - } - - /// - /// Gets or sets the general dynamic appearance attributes of the segment. This record shall be defined as a 16-bit record of enumerations. The values defined for this record are included in Section 12 of SISO-REF-010. - /// - [XmlElement(Type = typeof(ushort), ElementName = "generalSegmentAppearance")] - public ushort GeneralSegmentAppearance - { - get - { - return this._generalSegmentAppearance; - } - - set - { - this._generalSegmentAppearance = value; - } - } - - /// - /// Gets or sets the This field shall specify specific dynamic appearance attributes of the segment. This record shall be defined as a 32-bit record of enumerations. - /// - [XmlElement(Type = typeof(ushort), ElementName = "specificSegmentAppearance")] - public ushort SpecificSegmentAppearance - { - get - { - return this._specificSegmentAppearance; - } - - set - { - this._specificSegmentAppearance = value; - } - } - - /// - /// Gets or sets the This field shall specify the location of the linear segment in the simulated world and shall be represented by a World Coordinates record - /// - [XmlElement(Type = typeof(Vector3Double), ElementName = "segmentLocation")] - public Vector3Double SegmentLocation - { - get - { - return this._segmentLocation; - } - - set - { - this._segmentLocation = value; - } - } - - /// - /// Gets or sets the orientation of the linear segment about the segment location and shall be represented by a Euler Angles record - /// - [XmlElement(Type = typeof(EulerAngles), ElementName = "segmentOrientation")] - public EulerAngles SegmentOrientation - { - get - { - return this._segmentOrientation; - } - - set - { - this._segmentOrientation = value; - } - } - - /// - /// Gets or sets the length of the linear segment, in meters, extending in the positive X direction - /// - [XmlElement(Type = typeof(ushort), ElementName = "segmentLength")] - public ushort SegmentLength - { - get - { - return this._segmentLength; - } - - set - { - this._segmentLength = value; - } - } - - /// - /// Gets or sets the The total width of the linear segment, in meters, shall be specified by a 16-bit unsigned integer. One-half of the width shall extend in the positive Y direction, and one-half of the width shall extend in the negative Y direction. - /// - [XmlElement(Type = typeof(ushort), ElementName = "segmentWidth")] - public ushort SegmentWidth - { - get - { - return this._segmentWidth; - } - - set - { - this._segmentWidth = value; - } - } - - /// - /// Gets or sets the The height of the linear segment, in meters, above ground shall be specified by a 16-bit unsigned integer. - /// - [XmlElement(Type = typeof(ushort), ElementName = "segmentHeight")] - public ushort SegmentHeight - { - get - { - return this._segmentHeight; - } - - set - { - this._segmentHeight = value; - } - } - - /// - /// Gets or sets the The depth of the linear segment, in meters, below ground level - /// - [XmlElement(Type = typeof(ushort), ElementName = "segmentDepth")] - public ushort SegmentDepth - { - get - { - return this._segmentDepth; - } - - set - { - this._segmentDepth = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._segmentNumber); - dos.WriteUnsignedByte((byte)this._segmentModification); - dos.WriteUnsignedShort((ushort)this._generalSegmentAppearance); - dos.WriteUnsignedShort((ushort)this._specificSegmentAppearance); - this._segmentLocation.Marshal(dos); - this._segmentOrientation.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._segmentLength); - dos.WriteUnsignedShort((ushort)this._segmentWidth); - dos.WriteUnsignedShort((ushort)this._segmentHeight); - dos.WriteUnsignedShort((ushort)this._segmentDepth); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._segmentNumber = dis.ReadUnsignedByte(); - this._segmentModification = dis.ReadUnsignedByte(); - this._generalSegmentAppearance = dis.ReadUnsignedShort(); - this._specificSegmentAppearance = dis.ReadUnsignedShort(); - this._segmentLocation.Unmarshal(dis); - this._segmentOrientation.Unmarshal(dis); - this._segmentLength = dis.ReadUnsignedShort(); - this._segmentWidth = dis.ReadUnsignedShort(); - this._segmentHeight = dis.ReadUnsignedShort(); - this._segmentDepth = dis.ReadUnsignedShort(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._segmentNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._segmentModification.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._generalSegmentAppearance.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._specificSegmentAppearance.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._segmentLocation.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._segmentOrientation.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._segmentLength.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._segmentWidth.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._segmentHeight.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._segmentDepth.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as LinearSegmentParameter; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(LinearSegmentParameter obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._segmentNumber != obj._segmentNumber) - { - ivarsEqual = false; - } - - if (this._segmentModification != obj._segmentModification) - { - ivarsEqual = false; - } - - if (this._generalSegmentAppearance != obj._generalSegmentAppearance) - { - ivarsEqual = false; - } - - if (this._specificSegmentAppearance != obj._specificSegmentAppearance) - { - ivarsEqual = false; - } - - if (!this._segmentLocation.Equals(obj._segmentLocation)) - { - ivarsEqual = false; - } - - if (!this._segmentOrientation.Equals(obj._segmentOrientation)) - { - ivarsEqual = false; - } - - if (this._segmentLength != obj._segmentLength) - { - ivarsEqual = false; - } - - if (this._segmentWidth != obj._segmentWidth) - { - ivarsEqual = false; - } - - if (this._segmentHeight != obj._segmentHeight) - { - ivarsEqual = false; - } - - if (this._segmentDepth != obj._segmentDepth) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._segmentNumber.GetHashCode(); - result = GenerateHash(result) ^ this._segmentModification.GetHashCode(); - result = GenerateHash(result) ^ this._generalSegmentAppearance.GetHashCode(); - result = GenerateHash(result) ^ this._specificSegmentAppearance.GetHashCode(); - result = GenerateHash(result) ^ this._segmentLocation.GetHashCode(); - result = GenerateHash(result) ^ this._segmentOrientation.GetHashCode(); - result = GenerateHash(result) ^ this._segmentLength.GetHashCode(); - result = GenerateHash(result) ^ this._segmentWidth.GetHashCode(); - result = GenerateHash(result) ^ this._segmentHeight.GetHashCode(); - result = GenerateHash(result) ^ this._segmentDepth.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/LiveEntityIdentifier.cs b/Libs/CSharpDis7/LiveEntityIdentifier.cs deleted file mode 100644 index 0e93889..0000000 --- a/Libs/CSharpDis7/LiveEntityIdentifier.cs +++ /dev/null @@ -1,312 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// The unique designation of each entity in an event or exercise that is contained in a Live Entity PDU. Section 6.2.54 - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(LiveSimulationAddress))] - public partial class LiveEntityIdentifier - { - /// - /// Live Simulation Address record (see 6.2.55) - /// - private LiveSimulationAddress _liveSimulationAddress = new LiveSimulationAddress(); - - /// - /// Live entity number - /// - private ushort _entityNumber; - - /// - /// Initializes a new instance of the class. - /// - public LiveEntityIdentifier() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(LiveEntityIdentifier left, LiveEntityIdentifier right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(LiveEntityIdentifier left, LiveEntityIdentifier right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += this._liveSimulationAddress.GetMarshalledSize(); // this._liveSimulationAddress - marshalSize += 2; // this._entityNumber - return marshalSize; - } - - /// - /// Gets or sets the Live Simulation Address record (see 6.2.55) - /// - [XmlElement(Type = typeof(LiveSimulationAddress), ElementName = "liveSimulationAddress")] - public LiveSimulationAddress LiveSimulationAddress - { - get - { - return this._liveSimulationAddress; - } - - set - { - this._liveSimulationAddress = value; - } - } - - /// - /// Gets or sets the Live entity number - /// - [XmlElement(Type = typeof(ushort), ElementName = "entityNumber")] - public ushort EntityNumber - { - get - { - return this._entityNumber; - } - - set - { - this._entityNumber = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - this._liveSimulationAddress.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._entityNumber); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._liveSimulationAddress.Unmarshal(dis); - this._entityNumber = dis.ReadUnsignedShort(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine(""); - this._liveSimulationAddress.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._entityNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as LiveEntityIdentifier; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(LiveEntityIdentifier obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (!this._liveSimulationAddress.Equals(obj._liveSimulationAddress)) - { - ivarsEqual = false; - } - - if (this._entityNumber != obj._entityNumber) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._liveSimulationAddress.GetHashCode(); - result = GenerateHash(result) ^ this._entityNumber.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/LiveEntityPdu.cs b/Libs/CSharpDis7/LiveEntityPdu.cs deleted file mode 100644 index 3affe6b..0000000 --- a/Libs/CSharpDis7/LiveEntityPdu.cs +++ /dev/null @@ -1,301 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// The live entity PDUs have a header with some different field names, but the same length. Section 9.3.2 - /// - [Serializable] - [XmlRoot] - public partial class LiveEntityPdu : PduSuperclass, IEquatable - { - /// - /// Subprotocol used to decode the PDU. Section 13 of EBV. - /// - private ushort _subprotocolNumber; - - /// - /// zero-filled array of padding - /// - private byte _padding; - - /// - /// Initializes a new instance of the class. - /// - public LiveEntityPdu() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(LiveEntityPdu left, LiveEntityPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(LiveEntityPdu left, LiveEntityPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 2; // this._subprotocolNumber - marshalSize += 1; // this._padding - return marshalSize; - } - - /// - /// Gets or sets the Subprotocol used to decode the PDU. Section 13 of EBV. - /// - [XmlElement(Type = typeof(ushort), ElementName = "subprotocolNumber")] - public ushort SubprotocolNumber - { - get - { - return this._subprotocolNumber; - } - - set - { - this._subprotocolNumber = value; - } - } - - /// - /// Gets or sets the zero-filled array of padding - /// - [XmlElement(Type = typeof(byte), ElementName = "padding")] - public byte Padding - { - get - { - return this._padding; - } - - set - { - this._padding = value; - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._subprotocolNumber); - dos.WriteUnsignedByte((byte)this._padding); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._subprotocolNumber = dis.ReadUnsignedShort(); - this._padding = dis.ReadUnsignedByte(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._subprotocolNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as LiveEntityPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(LiveEntityPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._subprotocolNumber != obj._subprotocolNumber) - { - ivarsEqual = false; - } - - if (this._padding != obj._padding) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._subprotocolNumber.GetHashCode(); - result = GenerateHash(result) ^ this._padding.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/LiveSimulationAddress.cs b/Libs/CSharpDis7/LiveSimulationAddress.cs deleted file mode 100644 index bde7892..0000000 --- a/Libs/CSharpDis7/LiveSimulationAddress.cs +++ /dev/null @@ -1,309 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// A simulation's designation associated with all Live Entity IDs contained in Live Entity PDUs. Section 6.2.55 - /// - [Serializable] - [XmlRoot] - public partial class LiveSimulationAddress - { - /// - /// facility, installation, organizational unit or geographic location may have multiple sites associated with it. The Site Number is the first component of the Live Simulation Address, which defines a live simulation. - /// - private byte _liveSiteNumber; - - /// - /// An application associated with a live site is termed a live application. Each live application participating in an event - /// - private ushort _liveApplicationNumber; - - /// - /// Initializes a new instance of the class. - /// - public LiveSimulationAddress() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(LiveSimulationAddress left, LiveSimulationAddress right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(LiveSimulationAddress left, LiveSimulationAddress right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._liveSiteNumber - marshalSize += 2; // this._liveApplicationNumber - return marshalSize; - } - - /// - /// Gets or sets the facility, installation, organizational unit or geographic location may have multiple sites associated with it. The Site Number is the first component of the Live Simulation Address, which defines a live simulation. - /// - [XmlElement(Type = typeof(byte), ElementName = "liveSiteNumber")] - public byte LiveSiteNumber - { - get - { - return this._liveSiteNumber; - } - - set - { - this._liveSiteNumber = value; - } - } - - /// - /// Gets or sets the An application associated with a live site is termed a live application. Each live application participating in an event - /// - [XmlElement(Type = typeof(ushort), ElementName = "liveApplicationNumber")] - public ushort LiveApplicationNumber - { - get - { - return this._liveApplicationNumber; - } - - set - { - this._liveApplicationNumber = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._liveSiteNumber); - dos.WriteUnsignedShort((ushort)this._liveApplicationNumber); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._liveSiteNumber = dis.ReadUnsignedByte(); - this._liveApplicationNumber = dis.ReadUnsignedShort(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._liveSiteNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._liveApplicationNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as LiveSimulationAddress; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(LiveSimulationAddress obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._liveSiteNumber != obj._liveSiteNumber) - { - ivarsEqual = false; - } - - if (this._liveApplicationNumber != obj._liveApplicationNumber) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._liveSiteNumber.GetHashCode(); - result = GenerateHash(result) ^ this._liveApplicationNumber.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/LogisticsFamilyPdu.cs b/Libs/CSharpDis7/LogisticsFamilyPdu.cs deleted file mode 100644 index 08d35a9..0000000 --- a/Libs/CSharpDis7/LogisticsFamilyPdu.cs +++ /dev/null @@ -1,248 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Abstract superclass for logistics PDUs. Section 7.4 COMPLETE - /// - [Serializable] - [XmlRoot] - public partial class LogisticsFamilyPdu : Pdu, IEquatable - { - /// - /// Initializes a new instance of the class. - /// - public LogisticsFamilyPdu() - { - ProtocolFamily = (byte)3; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(LogisticsFamilyPdu left, LogisticsFamilyPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(LogisticsFamilyPdu left, LogisticsFamilyPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - return marshalSize; - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public virtual void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as LogisticsFamilyPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(LogisticsFamilyPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/MineEntityIdentifier.cs b/Libs/CSharpDis7/MineEntityIdentifier.cs deleted file mode 100644 index ed07d91..0000000 --- a/Libs/CSharpDis7/MineEntityIdentifier.cs +++ /dev/null @@ -1,312 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// The unique designation of a mine contained in the Minefield Data PDU. No espdus are issued for mine entities. Section 6.2.56 - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(SimulationAddress))] - public partial class MineEntityIdentifier - { - /// - /// - /// - private SimulationAddress _simulationAddress = new SimulationAddress(); - - /// - /// - /// - private ushort _mineEntityNumber; - - /// - /// Initializes a new instance of the class. - /// - public MineEntityIdentifier() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(MineEntityIdentifier left, MineEntityIdentifier right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(MineEntityIdentifier left, MineEntityIdentifier right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += this._simulationAddress.GetMarshalledSize(); // this._simulationAddress - marshalSize += 2; // this._mineEntityNumber - return marshalSize; - } - - /// - /// Gets or sets the - /// - [XmlElement(Type = typeof(SimulationAddress), ElementName = "simulationAddress")] - public SimulationAddress SimulationAddress - { - get - { - return this._simulationAddress; - } - - set - { - this._simulationAddress = value; - } - } - - /// - /// Gets or sets the - /// - [XmlElement(Type = typeof(ushort), ElementName = "mineEntityNumber")] - public ushort MineEntityNumber - { - get - { - return this._mineEntityNumber; - } - - set - { - this._mineEntityNumber = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - this._simulationAddress.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._mineEntityNumber); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._simulationAddress.Unmarshal(dis); - this._mineEntityNumber = dis.ReadUnsignedShort(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine(""); - this._simulationAddress.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._mineEntityNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as MineEntityIdentifier; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(MineEntityIdentifier obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (!this._simulationAddress.Equals(obj._simulationAddress)) - { - ivarsEqual = false; - } - - if (this._mineEntityNumber != obj._mineEntityNumber) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._simulationAddress.GetHashCode(); - result = GenerateHash(result) ^ this._mineEntityNumber.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/MinefieldFamilyPdu.cs b/Libs/CSharpDis7/MinefieldFamilyPdu.cs deleted file mode 100644 index 222ae64..0000000 --- a/Libs/CSharpDis7/MinefieldFamilyPdu.cs +++ /dev/null @@ -1,248 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Abstract superclass for PDUs relating to minefields. Section 7.9 - /// - [Serializable] - [XmlRoot] - public partial class MinefieldFamilyPdu : Pdu, IEquatable - { - /// - /// Initializes a new instance of the class. - /// - public MinefieldFamilyPdu() - { - ProtocolFamily = (byte)8; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(MinefieldFamilyPdu left, MinefieldFamilyPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(MinefieldFamilyPdu left, MinefieldFamilyPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - return marshalSize; - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public virtual void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as MinefieldFamilyPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(MinefieldFamilyPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/MinefieldIdentifier.cs b/Libs/CSharpDis7/MinefieldIdentifier.cs deleted file mode 100644 index 31a9856..0000000 --- a/Libs/CSharpDis7/MinefieldIdentifier.cs +++ /dev/null @@ -1,312 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// The unique designation of a minefield Section 6.2.57 - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(SimulationAddress))] - public partial class MinefieldIdentifier - { - /// - /// - /// - private SimulationAddress _simulationAddress = new SimulationAddress(); - - /// - /// - /// - private ushort _minefieldNumber; - - /// - /// Initializes a new instance of the class. - /// - public MinefieldIdentifier() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(MinefieldIdentifier left, MinefieldIdentifier right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(MinefieldIdentifier left, MinefieldIdentifier right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += this._simulationAddress.GetMarshalledSize(); // this._simulationAddress - marshalSize += 2; // this._minefieldNumber - return marshalSize; - } - - /// - /// Gets or sets the - /// - [XmlElement(Type = typeof(SimulationAddress), ElementName = "simulationAddress")] - public SimulationAddress SimulationAddress - { - get - { - return this._simulationAddress; - } - - set - { - this._simulationAddress = value; - } - } - - /// - /// Gets or sets the - /// - [XmlElement(Type = typeof(ushort), ElementName = "minefieldNumber")] - public ushort MinefieldNumber - { - get - { - return this._minefieldNumber; - } - - set - { - this._minefieldNumber = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - this._simulationAddress.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._minefieldNumber); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._simulationAddress.Unmarshal(dis); - this._minefieldNumber = dis.ReadUnsignedShort(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine(""); - this._simulationAddress.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._minefieldNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as MinefieldIdentifier; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(MinefieldIdentifier obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (!this._simulationAddress.Equals(obj._simulationAddress)) - { - ivarsEqual = false; - } - - if (this._minefieldNumber != obj._minefieldNumber) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._simulationAddress.GetHashCode(); - result = GenerateHash(result) ^ this._minefieldNumber.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/MinefieldResponseNackPdu.cs b/Libs/CSharpDis7/MinefieldResponseNackPdu.cs deleted file mode 100644 index 0a3d64e..0000000 --- a/Libs/CSharpDis7/MinefieldResponseNackPdu.cs +++ /dev/null @@ -1,453 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// proivde the means to request a retransmit of a minefield data pdu. Section 7.9.5 COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(EightByteChunk))] - public partial class MinefieldResponseNackPdu : MinefieldFamilyPdu, IEquatable - { - /// - /// Minefield ID - /// - private EntityID _minefieldID = new EntityID(); - - /// - /// entity ID making the request - /// - private EntityID _requestingEntityID = new EntityID(); - - /// - /// request ID - /// - private byte _requestID; - - /// - /// how many pdus were missing - /// - private byte _numberOfMissingPdus; - - /// - /// PDU sequence numbers that were missing - /// - private List _missingPduSequenceNumbers = new List(); - - /// - /// Initializes a new instance of the class. - /// - public MinefieldResponseNackPdu() - { - PduType = (byte)40; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(MinefieldResponseNackPdu left, MinefieldResponseNackPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(MinefieldResponseNackPdu left, MinefieldResponseNackPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._minefieldID.GetMarshalledSize(); // this._minefieldID - marshalSize += this._requestingEntityID.GetMarshalledSize(); // this._requestingEntityID - marshalSize += 1; // this._requestID - marshalSize += 1; // this._numberOfMissingPdus - for (int idx = 0; idx < this._missingPduSequenceNumbers.Count; idx++) - { - EightByteChunk listElement = (EightByteChunk)this._missingPduSequenceNumbers[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Minefield ID - /// - [XmlElement(Type = typeof(EntityID), ElementName = "minefieldID")] - public EntityID MinefieldID - { - get - { - return this._minefieldID; - } - - set - { - this._minefieldID = value; - } - } - - /// - /// Gets or sets the entity ID making the request - /// - [XmlElement(Type = typeof(EntityID), ElementName = "requestingEntityID")] - public EntityID RequestingEntityID - { - get - { - return this._requestingEntityID; - } - - set - { - this._requestingEntityID = value; - } - } - - /// - /// Gets or sets the request ID - /// - [XmlElement(Type = typeof(byte), ElementName = "requestID")] - public byte RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfMissingPdus method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfMissingPdus")] - public byte NumberOfMissingPdus - { - get - { - return this._numberOfMissingPdus; - } - - set - { - this._numberOfMissingPdus = value; - } - } - - /// - /// Gets or sets the PDU sequence numbers that were missing - /// - [XmlElement(ElementName = "missingPduSequenceNumbersList", Type = typeof(List))] - public List MissingPduSequenceNumbers - { - get - { - return this._missingPduSequenceNumbers; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._minefieldID.Marshal(dos); - this._requestingEntityID.Marshal(dos); - dos.WriteUnsignedByte((byte)this._requestID); - dos.WriteUnsignedByte((byte)this._missingPduSequenceNumbers.Count); - - for (int idx = 0; idx < this._missingPduSequenceNumbers.Count; idx++) - { - EightByteChunk aEightByteChunk = (EightByteChunk)this._missingPduSequenceNumbers[idx]; - aEightByteChunk.Marshal(dos); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._minefieldID.Unmarshal(dis); - this._requestingEntityID.Unmarshal(dis); - this._requestID = dis.ReadUnsignedByte(); - this._numberOfMissingPdus = dis.ReadUnsignedByte(); - for (int idx = 0; idx < this.NumberOfMissingPdus; idx++) - { - EightByteChunk anX = new EightByteChunk(); - anX.Unmarshal(dis); - this._missingPduSequenceNumbers.Add(anX); - }; - - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._minefieldID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._requestingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._missingPduSequenceNumbers.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._missingPduSequenceNumbers.Count; idx++) - { - sb.AppendLine(""); - EightByteChunk aEightByteChunk = (EightByteChunk)this._missingPduSequenceNumbers[idx]; - aEightByteChunk.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as MinefieldResponseNackPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(MinefieldResponseNackPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._minefieldID.Equals(obj._minefieldID)) - { - ivarsEqual = false; - } - - if (!this._requestingEntityID.Equals(obj._requestingEntityID)) - { - ivarsEqual = false; - } - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - if (this._numberOfMissingPdus != obj._numberOfMissingPdus) - { - ivarsEqual = false; - } - - if (this._missingPduSequenceNumbers.Count != obj._missingPduSequenceNumbers.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._missingPduSequenceNumbers.Count; idx++) - { - if (!this._missingPduSequenceNumbers[idx].Equals(obj._missingPduSequenceNumbers[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._minefieldID.GetHashCode(); - result = GenerateHash(result) ^ this._requestingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfMissingPdus.GetHashCode(); - - if (this._missingPduSequenceNumbers.Count > 0) - { - for (int idx = 0; idx < this._missingPduSequenceNumbers.Count; idx++) - { - result = GenerateHash(result) ^ this._missingPduSequenceNumbers[idx].GetHashCode(); - } - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/MinefieldStatePdu.cs b/Libs/CSharpDis7/MinefieldStatePdu.cs deleted file mode 100644 index 7ba480f..0000000 --- a/Libs/CSharpDis7/MinefieldStatePdu.cs +++ /dev/null @@ -1,723 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// information about the complete minefield. The minefield presence, perimiter, etc. Section 7.9.2 COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(MinefieldIdentifier))] - [XmlInclude(typeof(EntityType))] - [XmlInclude(typeof(Vector3Double))] - [XmlInclude(typeof(EulerAngles))] - [XmlInclude(typeof(Vector2Float))] - [XmlInclude(typeof(EntityType))] - public partial class MinefieldStatePdu : MinefieldFamilyPdu, IEquatable - { - /// - /// Minefield ID - /// - private MinefieldIdentifier _minefieldID = new MinefieldIdentifier(); - - /// - /// Minefield sequence - /// - private ushort _minefieldSequence; - - /// - /// force ID - /// - private byte _forceID; - - /// - /// Number of permieter points - /// - private byte _numberOfPerimeterPoints; - - /// - /// type of minefield - /// - private EntityType _minefieldType = new EntityType(); - - /// - /// how many mine types - /// - private ushort _numberOfMineTypes; - - /// - /// location of center of minefield in world coords - /// - private Vector3Double _minefieldLocation = new Vector3Double(); - - /// - /// orientation of minefield - /// - private EulerAngles _minefieldOrientation = new EulerAngles(); - - /// - /// appearance bitflags - /// - private ushort _appearance; - - /// - /// protocolMode. First two bits are the protocol mode, 14 bits reserved. - /// - private ushort _protocolMode; - - /// - /// perimeter points for the minefield - /// - private List _perimeterPoints = new List(); - - /// - /// Type of mines - /// - private List _mineType = new List(); - - /// - /// Initializes a new instance of the class. - /// - public MinefieldStatePdu() - { - PduType = (byte)37; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(MinefieldStatePdu left, MinefieldStatePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(MinefieldStatePdu left, MinefieldStatePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._minefieldID.GetMarshalledSize(); // this._minefieldID - marshalSize += 2; // this._minefieldSequence - marshalSize += 1; // this._forceID - marshalSize += 1; // this._numberOfPerimeterPoints - marshalSize += this._minefieldType.GetMarshalledSize(); // this._minefieldType - marshalSize += 2; // this._numberOfMineTypes - marshalSize += this._minefieldLocation.GetMarshalledSize(); // this._minefieldLocation - marshalSize += this._minefieldOrientation.GetMarshalledSize(); // this._minefieldOrientation - marshalSize += 2; // this._appearance - marshalSize += 2; // this._protocolMode - for (int idx = 0; idx < this._perimeterPoints.Count; idx++) - { - Vector2Float listElement = (Vector2Float)this._perimeterPoints[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._mineType.Count; idx++) - { - EntityType listElement = (EntityType)this._mineType[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Minefield ID - /// - [XmlElement(Type = typeof(MinefieldIdentifier), ElementName = "minefieldID")] - public MinefieldIdentifier MinefieldID - { - get - { - return this._minefieldID; - } - - set - { - this._minefieldID = value; - } - } - - /// - /// Gets or sets the Minefield sequence - /// - [XmlElement(Type = typeof(ushort), ElementName = "minefieldSequence")] - public ushort MinefieldSequence - { - get - { - return this._minefieldSequence; - } - - set - { - this._minefieldSequence = value; - } - } - - /// - /// Gets or sets the force ID - /// - [XmlElement(Type = typeof(byte), ElementName = "forceID")] - public byte ForceID - { - get - { - return this._forceID; - } - - set - { - this._forceID = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfPerimeterPoints method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfPerimeterPoints")] - public byte NumberOfPerimeterPoints - { - get - { - return this._numberOfPerimeterPoints; - } - - set - { - this._numberOfPerimeterPoints = value; - } - } - - /// - /// Gets or sets the type of minefield - /// - [XmlElement(Type = typeof(EntityType), ElementName = "minefieldType")] - public EntityType MinefieldType - { - get - { - return this._minefieldType; - } - - set - { - this._minefieldType = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfMineTypes method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(ushort), ElementName = "numberOfMineTypes")] - public ushort NumberOfMineTypes - { - get - { - return this._numberOfMineTypes; - } - - set - { - this._numberOfMineTypes = value; - } - } - - /// - /// Gets or sets the location of center of minefield in world coords - /// - [XmlElement(Type = typeof(Vector3Double), ElementName = "minefieldLocation")] - public Vector3Double MinefieldLocation - { - get - { - return this._minefieldLocation; - } - - set - { - this._minefieldLocation = value; - } - } - - /// - /// Gets or sets the orientation of minefield - /// - [XmlElement(Type = typeof(EulerAngles), ElementName = "minefieldOrientation")] - public EulerAngles MinefieldOrientation - { - get - { - return this._minefieldOrientation; - } - - set - { - this._minefieldOrientation = value; - } - } - - /// - /// Gets or sets the appearance bitflags - /// - [XmlElement(Type = typeof(ushort), ElementName = "appearance")] - public ushort Appearance - { - get - { - return this._appearance; - } - - set - { - this._appearance = value; - } - } - - /// - /// Gets or sets the protocolMode. First two bits are the protocol mode, 14 bits reserved. - /// - [XmlElement(Type = typeof(ushort), ElementName = "protocolMode")] - public ushort ProtocolMode - { - get - { - return this._protocolMode; - } - - set - { - this._protocolMode = value; - } - } - - /// - /// Gets or sets the perimeter points for the minefield - /// - [XmlElement(ElementName = "perimeterPointsList", Type = typeof(List))] - public List PerimeterPoints - { - get - { - return this._perimeterPoints; - } - } - - /// - /// Gets or sets the Type of mines - /// - [XmlElement(ElementName = "mineTypeList", Type = typeof(List))] - public List MineType - { - get - { - return this._mineType; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._minefieldID.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._minefieldSequence); - dos.WriteUnsignedByte((byte)this._forceID); - dos.WriteUnsignedByte((byte)this._perimeterPoints.Count); - this._minefieldType.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._mineType.Count); - this._minefieldLocation.Marshal(dos); - this._minefieldOrientation.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._appearance); - dos.WriteUnsignedShort((ushort)this._protocolMode); - - for (int idx = 0; idx < this._perimeterPoints.Count; idx++) - { - Vector2Float aVector2Float = (Vector2Float)this._perimeterPoints[idx]; - aVector2Float.Marshal(dos); - } - - for (int idx = 0; idx < this._mineType.Count; idx++) - { - EntityType aEntityType = (EntityType)this._mineType[idx]; - aEntityType.Marshal(dos); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._minefieldID.Unmarshal(dis); - this._minefieldSequence = dis.ReadUnsignedShort(); - this._forceID = dis.ReadUnsignedByte(); - this._numberOfPerimeterPoints = dis.ReadUnsignedByte(); - this._minefieldType.Unmarshal(dis); - this._numberOfMineTypes = dis.ReadUnsignedShort(); - this._minefieldLocation.Unmarshal(dis); - this._minefieldOrientation.Unmarshal(dis); - this._appearance = dis.ReadUnsignedShort(); - this._protocolMode = dis.ReadUnsignedShort(); - for (int idx = 0; idx < this.NumberOfPerimeterPoints; idx++) - { - Vector2Float anX = new Vector2Float(); - anX.Unmarshal(dis); - this._perimeterPoints.Add(anX); - }; - - for (int idx = 0; idx < this.NumberOfMineTypes; idx++) - { - EntityType anX = new EntityType(); - anX.Unmarshal(dis); - this._mineType.Add(anX); - }; - - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._minefieldID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._minefieldSequence.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._forceID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._perimeterPoints.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._minefieldType.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._mineType.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._minefieldLocation.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._minefieldOrientation.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._appearance.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._protocolMode.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._perimeterPoints.Count; idx++) - { - sb.AppendLine(""); - Vector2Float aVector2Float = (Vector2Float)this._perimeterPoints[idx]; - aVector2Float.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._mineType.Count; idx++) - { - sb.AppendLine(""); - EntityType aEntityType = (EntityType)this._mineType[idx]; - aEntityType.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as MinefieldStatePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(MinefieldStatePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._minefieldID.Equals(obj._minefieldID)) - { - ivarsEqual = false; - } - - if (this._minefieldSequence != obj._minefieldSequence) - { - ivarsEqual = false; - } - - if (this._forceID != obj._forceID) - { - ivarsEqual = false; - } - - if (this._numberOfPerimeterPoints != obj._numberOfPerimeterPoints) - { - ivarsEqual = false; - } - - if (!this._minefieldType.Equals(obj._minefieldType)) - { - ivarsEqual = false; - } - - if (this._numberOfMineTypes != obj._numberOfMineTypes) - { - ivarsEqual = false; - } - - if (!this._minefieldLocation.Equals(obj._minefieldLocation)) - { - ivarsEqual = false; - } - - if (!this._minefieldOrientation.Equals(obj._minefieldOrientation)) - { - ivarsEqual = false; - } - - if (this._appearance != obj._appearance) - { - ivarsEqual = false; - } - - if (this._protocolMode != obj._protocolMode) - { - ivarsEqual = false; - } - - if (this._perimeterPoints.Count != obj._perimeterPoints.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._perimeterPoints.Count; idx++) - { - if (!this._perimeterPoints[idx].Equals(obj._perimeterPoints[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._mineType.Count != obj._mineType.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._mineType.Count; idx++) - { - if (!this._mineType[idx].Equals(obj._mineType[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._minefieldID.GetHashCode(); - result = GenerateHash(result) ^ this._minefieldSequence.GetHashCode(); - result = GenerateHash(result) ^ this._forceID.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfPerimeterPoints.GetHashCode(); - result = GenerateHash(result) ^ this._minefieldType.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfMineTypes.GetHashCode(); - result = GenerateHash(result) ^ this._minefieldLocation.GetHashCode(); - result = GenerateHash(result) ^ this._minefieldOrientation.GetHashCode(); - result = GenerateHash(result) ^ this._appearance.GetHashCode(); - result = GenerateHash(result) ^ this._protocolMode.GetHashCode(); - - if (this._perimeterPoints.Count > 0) - { - for (int idx = 0; idx < this._perimeterPoints.Count; idx++) - { - result = GenerateHash(result) ^ this._perimeterPoints[idx].GetHashCode(); - } - } - - if (this._mineType.Count > 0) - { - for (int idx = 0; idx < this._mineType.Count; idx++) - { - result = GenerateHash(result) ^ this._mineType[idx].GetHashCode(); - } - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/ModulationParameters.cs b/Libs/CSharpDis7/ModulationParameters.cs deleted file mode 100644 index 1604180..0000000 --- a/Libs/CSharpDis7/ModulationParameters.cs +++ /dev/null @@ -1,245 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Modulation parameters associated with a specific radio system. INCOMPLETE. 6.2.58 - /// - [Serializable] - [XmlRoot] - public partial class ModulationParameters - { - /// - /// Initializes a new instance of the class. - /// - public ModulationParameters() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ModulationParameters left, ModulationParameters right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ModulationParameters left, ModulationParameters right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - return marshalSize; - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ModulationParameters; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ModulationParameters obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - - return result; - } - } -} diff --git a/Libs/CSharpDis7/ModulationType.cs b/Libs/CSharpDis7/ModulationType.cs deleted file mode 100644 index c0357e3..0000000 --- a/Libs/CSharpDis7/ModulationType.cs +++ /dev/null @@ -1,373 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Information about the type of modulation used for radio transmission. 6.2.59 - /// - [Serializable] - [XmlRoot] - public partial class ModulationType - { - /// - /// This field shall indicate the spread spectrum technique or combination of spread spectrum techniques in use. Bt field. - /// - private ushort _spreadSpectrum; - - /// - /// the major classification of the modulation type. - /// - private ushort _majorModulation; - - /// - /// provide certain detailed information depending upon the major modulation type - /// - private ushort _detail; - - /// - /// the radio system associated with this Transmitter PDU and shall be used as the basis to interpret other fields whose values depend on a specific radio system. - /// - private ushort _radioSystem; - - /// - /// Initializes a new instance of the class. - /// - public ModulationType() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ModulationType left, ModulationType right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ModulationType left, ModulationType right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 2; // this._spreadSpectrum - marshalSize += 2; // this._majorModulation - marshalSize += 2; // this._detail - marshalSize += 2; // this._radioSystem - return marshalSize; - } - - /// - /// Gets or sets the This field shall indicate the spread spectrum technique or combination of spread spectrum techniques in use. Bt field. - /// - [XmlElement(Type = typeof(ushort), ElementName = "spreadSpectrum")] - public ushort SpreadSpectrum - { - get - { - return this._spreadSpectrum; - } - - set - { - this._spreadSpectrum = value; - } - } - - /// - /// Gets or sets the the major classification of the modulation type. - /// - [XmlElement(Type = typeof(ushort), ElementName = "majorModulation")] - public ushort MajorModulation - { - get - { - return this._majorModulation; - } - - set - { - this._majorModulation = value; - } - } - - /// - /// Gets or sets the provide certain detailed information depending upon the major modulation type - /// - [XmlElement(Type = typeof(ushort), ElementName = "detail")] - public ushort Detail - { - get - { - return this._detail; - } - - set - { - this._detail = value; - } - } - - /// - /// Gets or sets the the radio system associated with this Transmitter PDU and shall be used as the basis to interpret other fields whose values depend on a specific radio system. - /// - [XmlElement(Type = typeof(ushort), ElementName = "radioSystem")] - public ushort RadioSystem - { - get - { - return this._radioSystem; - } - - set - { - this._radioSystem = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._spreadSpectrum); - dos.WriteUnsignedShort((ushort)this._majorModulation); - dos.WriteUnsignedShort((ushort)this._detail); - dos.WriteUnsignedShort((ushort)this._radioSystem); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._spreadSpectrum = dis.ReadUnsignedShort(); - this._majorModulation = dis.ReadUnsignedShort(); - this._detail = dis.ReadUnsignedShort(); - this._radioSystem = dis.ReadUnsignedShort(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._spreadSpectrum.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._majorModulation.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._detail.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._radioSystem.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ModulationType; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ModulationType obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._spreadSpectrum != obj._spreadSpectrum) - { - ivarsEqual = false; - } - - if (this._majorModulation != obj._majorModulation) - { - ivarsEqual = false; - } - - if (this._detail != obj._detail) - { - ivarsEqual = false; - } - - if (this._radioSystem != obj._radioSystem) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._spreadSpectrum.GetHashCode(); - result = GenerateHash(result) ^ this._majorModulation.GetHashCode(); - result = GenerateHash(result) ^ this._detail.GetHashCode(); - result = GenerateHash(result) ^ this._radioSystem.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/Munition.cs b/Libs/CSharpDis7/Munition.cs deleted file mode 100644 index 329ed6c..0000000 --- a/Libs/CSharpDis7/Munition.cs +++ /dev/null @@ -1,408 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// An entity's munition (e.g., bomb, missile) information shall be represented by one or more Munition records. For each type or location of munition, this record shall specify the type, location, quantity and status of munitions that an entity contains. Section 6.2.60 - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityType))] - public partial class Munition - { - /// - /// This field shall identify the entity type of the munition. See section 6.2.30. - /// - private EntityType _munitionType = new EntityType(); - - /// - /// the station or launcher to which the munition is assigned. See Annex I - /// - private uint _station; - - /// - /// the quantity remaining of this munition. - /// - private ushort _quantity; - - /// - /// the status of the munition. It shall be represented by an 8-bit enumeration. - /// - private byte _munitionStatus; - - /// - /// padding - /// - private byte _padding; - - /// - /// Initializes a new instance of the class. - /// - public Munition() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(Munition left, Munition right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(Munition left, Munition right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += this._munitionType.GetMarshalledSize(); // this._munitionType - marshalSize += 4; // this._station - marshalSize += 2; // this._quantity - marshalSize += 1; // this._munitionStatus - marshalSize += 1; // this._padding - return marshalSize; - } - - /// - /// Gets or sets the This field shall identify the entity type of the munition. See section 6.2.30. - /// - [XmlElement(Type = typeof(EntityType), ElementName = "munitionType")] - public EntityType MunitionType - { - get - { - return this._munitionType; - } - - set - { - this._munitionType = value; - } - } - - /// - /// Gets or sets the the station or launcher to which the munition is assigned. See Annex I - /// - [XmlElement(Type = typeof(uint), ElementName = "station")] - public uint Station - { - get - { - return this._station; - } - - set - { - this._station = value; - } - } - - /// - /// Gets or sets the the quantity remaining of this munition. - /// - [XmlElement(Type = typeof(ushort), ElementName = "quantity")] - public ushort Quantity - { - get - { - return this._quantity; - } - - set - { - this._quantity = value; - } - } - - /// - /// Gets or sets the the status of the munition. It shall be represented by an 8-bit enumeration. - /// - [XmlElement(Type = typeof(byte), ElementName = "munitionStatus")] - public byte MunitionStatus - { - get - { - return this._munitionStatus; - } - - set - { - this._munitionStatus = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "padding")] - public byte Padding - { - get - { - return this._padding; - } - - set - { - this._padding = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - this._munitionType.Marshal(dos); - dos.WriteUnsignedInt((uint)this._station); - dos.WriteUnsignedShort((ushort)this._quantity); - dos.WriteUnsignedByte((byte)this._munitionStatus); - dos.WriteUnsignedByte((byte)this._padding); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._munitionType.Unmarshal(dis); - this._station = dis.ReadUnsignedInt(); - this._quantity = dis.ReadUnsignedShort(); - this._munitionStatus = dis.ReadUnsignedByte(); - this._padding = dis.ReadUnsignedByte(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine(""); - this._munitionType.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._station.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._quantity.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._munitionStatus.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as Munition; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(Munition obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (!this._munitionType.Equals(obj._munitionType)) - { - ivarsEqual = false; - } - - if (this._station != obj._station) - { - ivarsEqual = false; - } - - if (this._quantity != obj._quantity) - { - ivarsEqual = false; - } - - if (this._munitionStatus != obj._munitionStatus) - { - ivarsEqual = false; - } - - if (this._padding != obj._padding) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._munitionType.GetHashCode(); - result = GenerateHash(result) ^ this._station.GetHashCode(); - result = GenerateHash(result) ^ this._quantity.GetHashCode(); - result = GenerateHash(result) ^ this._munitionStatus.GetHashCode(); - result = GenerateHash(result) ^ this._padding.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/MunitionDescriptor.cs b/Libs/CSharpDis7/MunitionDescriptor.cs deleted file mode 100644 index 6d4ba12..0000000 --- a/Libs/CSharpDis7/MunitionDescriptor.cs +++ /dev/null @@ -1,408 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Represents the firing or detonation of a munition. Section 6.2.20.2 - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityType))] - public partial class MunitionDescriptor - { - /// - /// What munition was used in the burst - /// - private EntityType _munitionType = new EntityType(); - - /// - /// type of warhead - /// - private ushort _warhead; - - /// - /// type of fuse used - /// - private ushort _fuse; - - /// - /// how many of the munition were fired - /// - private ushort _quantity; - - /// - /// rate at which the munition was fired - /// - private ushort _rate; - - /// - /// Initializes a new instance of the class. - /// - public MunitionDescriptor() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(MunitionDescriptor left, MunitionDescriptor right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(MunitionDescriptor left, MunitionDescriptor right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += this._munitionType.GetMarshalledSize(); // this._munitionType - marshalSize += 2; // this._warhead - marshalSize += 2; // this._fuse - marshalSize += 2; // this._quantity - marshalSize += 2; // this._rate - return marshalSize; - } - - /// - /// Gets or sets the What munition was used in the burst - /// - [XmlElement(Type = typeof(EntityType), ElementName = "munitionType")] - public EntityType MunitionType - { - get - { - return this._munitionType; - } - - set - { - this._munitionType = value; - } - } - - /// - /// Gets or sets the type of warhead - /// - [XmlElement(Type = typeof(ushort), ElementName = "warhead")] - public ushort Warhead - { - get - { - return this._warhead; - } - - set - { - this._warhead = value; - } - } - - /// - /// Gets or sets the type of fuse used - /// - [XmlElement(Type = typeof(ushort), ElementName = "fuse")] - public ushort Fuse - { - get - { - return this._fuse; - } - - set - { - this._fuse = value; - } - } - - /// - /// Gets or sets the how many of the munition were fired - /// - [XmlElement(Type = typeof(ushort), ElementName = "quantity")] - public ushort Quantity - { - get - { - return this._quantity; - } - - set - { - this._quantity = value; - } - } - - /// - /// Gets or sets the rate at which the munition was fired - /// - [XmlElement(Type = typeof(ushort), ElementName = "rate")] - public ushort Rate - { - get - { - return this._rate; - } - - set - { - this._rate = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - this._munitionType.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._warhead); - dos.WriteUnsignedShort((ushort)this._fuse); - dos.WriteUnsignedShort((ushort)this._quantity); - dos.WriteUnsignedShort((ushort)this._rate); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._munitionType.Unmarshal(dis); - this._warhead = dis.ReadUnsignedShort(); - this._fuse = dis.ReadUnsignedShort(); - this._quantity = dis.ReadUnsignedShort(); - this._rate = dis.ReadUnsignedShort(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine(""); - this._munitionType.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._warhead.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fuse.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._quantity.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._rate.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as MunitionDescriptor; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(MunitionDescriptor obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (!this._munitionType.Equals(obj._munitionType)) - { - ivarsEqual = false; - } - - if (this._warhead != obj._warhead) - { - ivarsEqual = false; - } - - if (this._fuse != obj._fuse) - { - ivarsEqual = false; - } - - if (this._quantity != obj._quantity) - { - ivarsEqual = false; - } - - if (this._rate != obj._rate) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._munitionType.GetHashCode(); - result = GenerateHash(result) ^ this._warhead.GetHashCode(); - result = GenerateHash(result) ^ this._fuse.GetHashCode(); - result = GenerateHash(result) ^ this._quantity.GetHashCode(); - result = GenerateHash(result) ^ this._rate.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/MunitionReload.cs b/Libs/CSharpDis7/MunitionReload.cs deleted file mode 100644 index e946bd3..0000000 --- a/Libs/CSharpDis7/MunitionReload.cs +++ /dev/null @@ -1,440 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// indicate weapons (munitions) previously communicated via the Munition record. Section 6.2.61 - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityType))] - public partial class MunitionReload - { - /// - /// This field shall identify the entity type of the munition. See section 6.2.30. - /// - private EntityType _munitionType = new EntityType(); - - /// - /// the station or launcher to which the munition is assigned. See Annex I - /// - private uint _station; - - /// - /// the standard quantity of this munition type normally loaded at this station/launcher if a station/launcher is specified. - /// - private ushort _standardQuantity; - - /// - /// the maximum quantity of this munition type that this station/launcher is capable of holding when a station/launcher is specified - /// - private ushort _maximumQuantity; - - /// - /// the station name within the host at which the part entity is located. - /// - private ushort _stationName; - - /// - /// the number of the particular wing station, cargo hold etc., at which the part is attached. - /// - private ushort _stationNumber; - - /// - /// Initializes a new instance of the class. - /// - public MunitionReload() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(MunitionReload left, MunitionReload right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(MunitionReload left, MunitionReload right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += this._munitionType.GetMarshalledSize(); // this._munitionType - marshalSize += 4; // this._station - marshalSize += 2; // this._standardQuantity - marshalSize += 2; // this._maximumQuantity - marshalSize += 2; // this._stationName - marshalSize += 2; // this._stationNumber - return marshalSize; - } - - /// - /// Gets or sets the This field shall identify the entity type of the munition. See section 6.2.30. - /// - [XmlElement(Type = typeof(EntityType), ElementName = "munitionType")] - public EntityType MunitionType - { - get - { - return this._munitionType; - } - - set - { - this._munitionType = value; - } - } - - /// - /// Gets or sets the the station or launcher to which the munition is assigned. See Annex I - /// - [XmlElement(Type = typeof(uint), ElementName = "station")] - public uint Station - { - get - { - return this._station; - } - - set - { - this._station = value; - } - } - - /// - /// Gets or sets the the standard quantity of this munition type normally loaded at this station/launcher if a station/launcher is specified. - /// - [XmlElement(Type = typeof(ushort), ElementName = "standardQuantity")] - public ushort StandardQuantity - { - get - { - return this._standardQuantity; - } - - set - { - this._standardQuantity = value; - } - } - - /// - /// Gets or sets the the maximum quantity of this munition type that this station/launcher is capable of holding when a station/launcher is specified - /// - [XmlElement(Type = typeof(ushort), ElementName = "maximumQuantity")] - public ushort MaximumQuantity - { - get - { - return this._maximumQuantity; - } - - set - { - this._maximumQuantity = value; - } - } - - /// - /// Gets or sets the the station name within the host at which the part entity is located. - /// - [XmlElement(Type = typeof(ushort), ElementName = "stationName")] - public ushort StationName - { - get - { - return this._stationName; - } - - set - { - this._stationName = value; - } - } - - /// - /// Gets or sets the the number of the particular wing station, cargo hold etc., at which the part is attached. - /// - [XmlElement(Type = typeof(ushort), ElementName = "stationNumber")] - public ushort StationNumber - { - get - { - return this._stationNumber; - } - - set - { - this._stationNumber = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - this._munitionType.Marshal(dos); - dos.WriteUnsignedInt((uint)this._station); - dos.WriteUnsignedShort((ushort)this._standardQuantity); - dos.WriteUnsignedShort((ushort)this._maximumQuantity); - dos.WriteUnsignedShort((ushort)this._stationName); - dos.WriteUnsignedShort((ushort)this._stationNumber); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._munitionType.Unmarshal(dis); - this._station = dis.ReadUnsignedInt(); - this._standardQuantity = dis.ReadUnsignedShort(); - this._maximumQuantity = dis.ReadUnsignedShort(); - this._stationName = dis.ReadUnsignedShort(); - this._stationNumber = dis.ReadUnsignedShort(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine(""); - this._munitionType.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._station.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._standardQuantity.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._maximumQuantity.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._stationName.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._stationNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as MunitionReload; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(MunitionReload obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (!this._munitionType.Equals(obj._munitionType)) - { - ivarsEqual = false; - } - - if (this._station != obj._station) - { - ivarsEqual = false; - } - - if (this._standardQuantity != obj._standardQuantity) - { - ivarsEqual = false; - } - - if (this._maximumQuantity != obj._maximumQuantity) - { - ivarsEqual = false; - } - - if (this._stationName != obj._stationName) - { - ivarsEqual = false; - } - - if (this._stationNumber != obj._stationNumber) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._munitionType.GetHashCode(); - result = GenerateHash(result) ^ this._station.GetHashCode(); - result = GenerateHash(result) ^ this._standardQuantity.GetHashCode(); - result = GenerateHash(result) ^ this._maximumQuantity.GetHashCode(); - result = GenerateHash(result) ^ this._stationName.GetHashCode(); - result = GenerateHash(result) ^ this._stationNumber.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/NamedLocationIdentification.cs b/Libs/CSharpDis7/NamedLocationIdentification.cs deleted file mode 100644 index 78f943b..0000000 --- a/Libs/CSharpDis7/NamedLocationIdentification.cs +++ /dev/null @@ -1,309 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Information about the discrete positional relationship of the part entity with respect to the its host entity Section 6.2.62 - /// - [Serializable] - [XmlRoot] - public partial class NamedLocationIdentification - { - /// - /// the station name within the host at which the part entity is located. If the part entity is On Station, this field shall specify the representation of the part’s location data fields. This field shall be specified by a 16-bit enumeration - /// - private ushort _stationName; - - /// - /// the number of the particular wing station, cargo hold etc., at which the part is attached. - /// - private ushort _stationNumber; - - /// - /// Initializes a new instance of the class. - /// - public NamedLocationIdentification() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(NamedLocationIdentification left, NamedLocationIdentification right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(NamedLocationIdentification left, NamedLocationIdentification right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 2; // this._stationName - marshalSize += 2; // this._stationNumber - return marshalSize; - } - - /// - /// Gets or sets the the station name within the host at which the part entity is located. If the part entity is On Station, this field shall specify the representation of the part’s location data fields. This field shall be specified by a 16-bit enumeration - /// - [XmlElement(Type = typeof(ushort), ElementName = "stationName")] - public ushort StationName - { - get - { - return this._stationName; - } - - set - { - this._stationName = value; - } - } - - /// - /// Gets or sets the the number of the particular wing station, cargo hold etc., at which the part is attached. - /// - [XmlElement(Type = typeof(ushort), ElementName = "stationNumber")] - public ushort StationNumber - { - get - { - return this._stationNumber; - } - - set - { - this._stationNumber = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._stationName); - dos.WriteUnsignedShort((ushort)this._stationNumber); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._stationName = dis.ReadUnsignedShort(); - this._stationNumber = dis.ReadUnsignedShort(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._stationName.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._stationNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as NamedLocationIdentification; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(NamedLocationIdentification obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._stationName != obj._stationName) - { - ivarsEqual = false; - } - - if (this._stationNumber != obj._stationNumber) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._stationName.GetHashCode(); - result = GenerateHash(result) ^ this._stationNumber.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/ObjectIdentifier.cs b/Libs/CSharpDis7/ObjectIdentifier.cs deleted file mode 100644 index 0bc1a50..0000000 --- a/Libs/CSharpDis7/ObjectIdentifier.cs +++ /dev/null @@ -1,312 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// The unique designation of an environmental object. Section 6.2.63 - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(SimulationAddress))] - public partial class ObjectIdentifier - { - /// - /// Simulation Address - /// - private SimulationAddress _simulationAddress = new SimulationAddress(); - - /// - /// - /// - private ushort _objectNumber; - - /// - /// Initializes a new instance of the class. - /// - public ObjectIdentifier() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ObjectIdentifier left, ObjectIdentifier right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ObjectIdentifier left, ObjectIdentifier right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += this._simulationAddress.GetMarshalledSize(); // this._simulationAddress - marshalSize += 2; // this._objectNumber - return marshalSize; - } - - /// - /// Gets or sets the Simulation Address - /// - [XmlElement(Type = typeof(SimulationAddress), ElementName = "simulationAddress")] - public SimulationAddress SimulationAddress - { - get - { - return this._simulationAddress; - } - - set - { - this._simulationAddress = value; - } - } - - /// - /// Gets or sets the - /// - [XmlElement(Type = typeof(ushort), ElementName = "objectNumber")] - public ushort ObjectNumber - { - get - { - return this._objectNumber; - } - - set - { - this._objectNumber = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - this._simulationAddress.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._objectNumber); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._simulationAddress.Unmarshal(dis); - this._objectNumber = dis.ReadUnsignedShort(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine(""); - this._simulationAddress.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._objectNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ObjectIdentifier; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ObjectIdentifier obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (!this._simulationAddress.Equals(obj._simulationAddress)) - { - ivarsEqual = false; - } - - if (this._objectNumber != obj._objectNumber) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._simulationAddress.GetHashCode(); - result = GenerateHash(result) ^ this._objectNumber.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/ObjectType.cs b/Libs/CSharpDis7/ObjectType.cs deleted file mode 100644 index 037f713..0000000 --- a/Libs/CSharpDis7/ObjectType.cs +++ /dev/null @@ -1,373 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// The unique designation of an environmental object. Section 6.2.64 - /// - [Serializable] - [XmlRoot] - public partial class ObjectType - { - /// - /// Domain of entity (air, surface, subsurface, space, etc) - /// - private byte _domain; - - /// - /// country to which the design of the entity is attributed - /// - private byte _objectKind; - - /// - /// category of entity - /// - private byte _category; - - /// - /// subcategory of entity - /// - private byte _subcategory; - - /// - /// Initializes a new instance of the class. - /// - public ObjectType() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ObjectType left, ObjectType right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ObjectType left, ObjectType right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._domain - marshalSize += 1; // this._objectKind - marshalSize += 1; // this._category - marshalSize += 1; // this._subcategory - return marshalSize; - } - - /// - /// Gets or sets the Domain of entity (air, surface, subsurface, space, etc) - /// - [XmlElement(Type = typeof(byte), ElementName = "domain")] - public byte Domain - { - get - { - return this._domain; - } - - set - { - this._domain = value; - } - } - - /// - /// Gets or sets the country to which the design of the entity is attributed - /// - [XmlElement(Type = typeof(byte), ElementName = "objectKind")] - public byte ObjectKind - { - get - { - return this._objectKind; - } - - set - { - this._objectKind = value; - } - } - - /// - /// Gets or sets the category of entity - /// - [XmlElement(Type = typeof(byte), ElementName = "category")] - public byte Category - { - get - { - return this._category; - } - - set - { - this._category = value; - } - } - - /// - /// Gets or sets the subcategory of entity - /// - [XmlElement(Type = typeof(byte), ElementName = "subcategory")] - public byte Subcategory - { - get - { - return this._subcategory; - } - - set - { - this._subcategory = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._domain); - dos.WriteUnsignedByte((byte)this._objectKind); - dos.WriteUnsignedByte((byte)this._category); - dos.WriteUnsignedByte((byte)this._subcategory); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._domain = dis.ReadUnsignedByte(); - this._objectKind = dis.ReadUnsignedByte(); - this._category = dis.ReadUnsignedByte(); - this._subcategory = dis.ReadUnsignedByte(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._domain.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._objectKind.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._category.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._subcategory.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ObjectType; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ObjectType obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._domain != obj._domain) - { - ivarsEqual = false; - } - - if (this._objectKind != obj._objectKind) - { - ivarsEqual = false; - } - - if (this._category != obj._category) - { - ivarsEqual = false; - } - - if (this._subcategory != obj._subcategory) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._domain.GetHashCode(); - result = GenerateHash(result) ^ this._objectKind.GetHashCode(); - result = GenerateHash(result) ^ this._category.GetHashCode(); - result = GenerateHash(result) ^ this._subcategory.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/OneByteChunk.cs b/Libs/CSharpDis7/OneByteChunk.cs deleted file mode 100644 index 6b45bd8..0000000 --- a/Libs/CSharpDis7/OneByteChunk.cs +++ /dev/null @@ -1,303 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// 8 bit piece of data - /// - [Serializable] - [XmlRoot] - public partial class OneByteChunk - { - /// - /// one byte of arbitrary data - /// - private byte[] _otherParameters = new byte[1]; - - /// - /// Initializes a new instance of the class. - /// - public OneByteChunk() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(OneByteChunk left, OneByteChunk right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(OneByteChunk left, OneByteChunk right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1 * 1; // _otherParameters - return marshalSize; - } - - /// - /// Gets or sets the one byte of arbitrary data - /// - [XmlArray(ElementName = "otherParameters")] - public byte[] OtherParameters - { - get - { - return this._otherParameters; - } - - set - { - this._otherParameters = value; - } -} - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - - for (int idx = 0; idx < this._otherParameters.Length; idx++) - { - dos.WriteByte(this._otherParameters[idx]); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - for (int idx = 0; idx < this._otherParameters.Length; idx++) - { - this._otherParameters[idx] = dis.ReadByte(); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - for (int idx = 0; idx < this._otherParameters.Length; idx++) - { - sb.AppendLine("" + this._otherParameters[idx] + ""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as OneByteChunk; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(OneByteChunk obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (obj._otherParameters.Length != 1) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < 1; idx++) - { - if (this._otherParameters[idx] != obj._otherParameters[idx]) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - - for (int idx = 0; idx < 1; idx++) - { - result = GenerateHash(result) ^ this._otherParameters[idx].GetHashCode(); - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/OwnershipStatus.cs b/Libs/CSharpDis7/OwnershipStatus.cs deleted file mode 100644 index d14ac6c..0000000 --- a/Libs/CSharpDis7/OwnershipStatus.cs +++ /dev/null @@ -1,344 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// used to convey entity and conflict status information associated with transferring ownership of an entity. Section 6.2.65 - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - public partial class OwnershipStatus - { - /// - /// EntityID - /// - private EntityID _entityId = new EntityID(); - - /// - /// The ownership and/or ownership conflict status of the entity represented by the Entity ID field. - /// - private byte _ownershipStatus; - - /// - /// padding - /// - private byte _padding; - - /// - /// Initializes a new instance of the class. - /// - public OwnershipStatus() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(OwnershipStatus left, OwnershipStatus right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(OwnershipStatus left, OwnershipStatus right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += this._entityId.GetMarshalledSize(); // this._entityId - marshalSize += 1; // this._ownershipStatus - marshalSize += 1; // this._padding - return marshalSize; - } - - /// - /// Gets or sets the EntityID - /// - [XmlElement(Type = typeof(EntityID), ElementName = "entityId")] - public EntityID EntityId - { - get - { - return this._entityId; - } - - set - { - this._entityId = value; - } - } - - /// - /// Gets or sets the The ownership and/or ownership conflict status of the entity represented by the Entity ID field. - /// - [XmlElement(Type = typeof(byte), ElementName = "ownershipStatus")] - public byte OwnershipStatus_ - { - get - { - return this._ownershipStatus; - } - - set - { - this._ownershipStatus = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "padding")] - public byte Padding - { - get - { - return this._padding; - } - - set - { - this._padding = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - this._entityId.Marshal(dos); - dos.WriteUnsignedByte((byte)this._ownershipStatus); - dos.WriteUnsignedByte((byte)this._padding); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._entityId.Unmarshal(dis); - this._ownershipStatus = dis.ReadUnsignedByte(); - this._padding = dis.ReadUnsignedByte(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine(""); - this._entityId.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._ownershipStatus.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as OwnershipStatus; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(OwnershipStatus obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (!this._entityId.Equals(obj._entityId)) - { - ivarsEqual = false; - } - - if (this._ownershipStatus != obj._ownershipStatus) - { - ivarsEqual = false; - } - - if (this._padding != obj._padding) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._entityId.GetHashCode(); - result = GenerateHash(result) ^ this._ownershipStatus.GetHashCode(); - result = GenerateHash(result) ^ this._padding.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/Pdu.cs b/Libs/CSharpDis7/Pdu.cs deleted file mode 100644 index d6e238c..0000000 --- a/Libs/CSharpDis7/Pdu.cs +++ /dev/null @@ -1,301 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Adds some fields to the the classic PDU - /// - [Serializable] - [XmlRoot] - public partial class Pdu : PduSuperclass, IEquatable - { - /// - /// PDU Status Record. Described in 6.2.67. This field is not present in earlier DIS versions - /// - private byte _pduStatus; - - /// - /// zero-filled array of padding - /// - private byte _padding; - - /// - /// Initializes a new instance of the class. - /// - public Pdu() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(Pdu left, Pdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(Pdu left, Pdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 1; // this._pduStatus - marshalSize += 1; // this._padding - return marshalSize; - } - - /// - /// Gets or sets the PDU Status Record. Described in 6.2.67. This field is not present in earlier DIS versions - /// - [XmlElement(Type = typeof(byte), ElementName = "pduStatus")] - public byte PduStatus - { - get - { - return this._pduStatus; - } - - set - { - this._pduStatus = value; - } - } - - /// - /// Gets or sets the zero-filled array of padding - /// - [XmlElement(Type = typeof(byte), ElementName = "padding")] - public byte Padding - { - get - { - return this._padding; - } - - set - { - this._padding = value; - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._pduStatus); - dos.WriteUnsignedByte((byte)this._padding); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._pduStatus = dis.ReadUnsignedByte(); - this._padding = dis.ReadUnsignedByte(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._pduStatus.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as Pdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(Pdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._pduStatus != obj._pduStatus) - { - ivarsEqual = false; - } - - if (this._padding != obj._padding) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._pduStatus.GetHashCode(); - result = GenerateHash(result) ^ this._padding.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/PduContainer.cs b/Libs/CSharpDis7/PduContainer.cs deleted file mode 100644 index 75a0ccc..0000000 --- a/Libs/CSharpDis7/PduContainer.cs +++ /dev/null @@ -1,348 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Used for XML compatability. A container that holds PDUs - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(Pdu))] - public partial class PduContainer - { - /// - /// Number of PDUs in the container list - /// - private int _numberOfPdus; - - /// - /// record sets - /// - private List _pdus = new List(); - - /// - /// Initializes a new instance of the class. - /// - public PduContainer() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(PduContainer left, PduContainer right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(PduContainer left, PduContainer right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._numberOfPdus - for (int idx = 0; idx < this._pdus.Count; idx++) - { - Pdu listElement = (Pdu)this._pdus[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfPdus method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(int), ElementName = "numberOfPdus")] - public int NumberOfPdus - { - get - { - return this._numberOfPdus; - } - - set - { - this._numberOfPdus = value; - } - } - - /// - /// Gets or sets the record sets - /// - [XmlElement(ElementName = "pdusList", Type = typeof(List))] - public List Pdus - { - get - { - return this._pdus; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteInt((int)this._pdus.Count); - - for (int idx = 0; idx < this._pdus.Count; idx++) - { - Pdu aPdu = (Pdu)this._pdus[idx]; - aPdu.Marshal(dos); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._numberOfPdus = dis.ReadInt(); - for (int idx = 0; idx < this.NumberOfPdus; idx++) - { - Pdu anX = new Pdu(); - anX.Unmarshal(dis); - this._pdus.Add(anX); - }; - - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._pdus.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._pdus.Count; idx++) - { - sb.AppendLine(""); - Pdu aPdu = (Pdu)this._pdus[idx]; - aPdu.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as PduContainer; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(PduContainer obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._numberOfPdus != obj._numberOfPdus) - { - ivarsEqual = false; - } - - if (this._pdus.Count != obj._pdus.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._pdus.Count; idx++) - { - if (!this._pdus[idx].Equals(obj._pdus[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._numberOfPdus.GetHashCode(); - - if (this._pdus.Count > 0) - { - for (int idx = 0; idx < this._pdus.Count; idx++) - { - result = GenerateHash(result) ^ this._pdus[idx].GetHashCode(); - } - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/PduHeader.cs b/Libs/CSharpDis7/PduHeader.cs deleted file mode 100644 index 11ee605..0000000 --- a/Libs/CSharpDis7/PduHeader.cs +++ /dev/null @@ -1,501 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Not used. The PDU Header Record is directly incoroporated into the PDU class. Here for completness only. Section 6.2.66 - /// - [Serializable] - [XmlRoot] - public partial class PduHeader - { - /// - /// The version of the protocol. 5=DIS-1995, 6=DIS-1998, 7=DIS-2009. - /// - private byte _protocolVersion = 7; - - /// - /// Exercise ID - /// - private byte _exerciseID; - - /// - /// Type of pdu, unique for each PDU class - /// - private byte _pduType; - - /// - /// value that refers to the protocol family, eg SimulationManagement, etc - /// - private byte _protocolFamily; - - /// - /// Timestamp value - /// - private uint _timestamp; - - /// - /// Length, in bytes, of the PDU. Changed name from length to avoid use of Hibernate QL reserved word. - /// - private byte _pduLength; - - /// - /// PDU Status Record. Described in 6.2.67. This field is not present in earlier DIS versions - /// - private ushort _pduStatus; - - /// - /// zero filled array of padding - /// - private byte _padding; - - /// - /// Initializes a new instance of the class. - /// - public PduHeader() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(PduHeader left, PduHeader right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(PduHeader left, PduHeader right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._protocolVersion - marshalSize += 1; // this._exerciseID - marshalSize += 1; // this._pduType - marshalSize += 1; // this._protocolFamily - marshalSize += 4; // this._timestamp - marshalSize += 1; // this._pduLength - marshalSize += 2; // this._pduStatus - marshalSize += 1; // this._padding - return marshalSize; - } - - /// - /// Gets or sets the The version of the protocol. 5=DIS-1995, 6=DIS-1998, 7=DIS-2009. - /// - [XmlElement(Type = typeof(byte), ElementName = "protocolVersion")] - public byte ProtocolVersion - { - get - { - return this._protocolVersion; - } - - set - { - this._protocolVersion = value; - } - } - - /// - /// Gets or sets the Exercise ID - /// - [XmlElement(Type = typeof(byte), ElementName = "exerciseID")] - public byte ExerciseID - { - get - { - return this._exerciseID; - } - - set - { - this._exerciseID = value; - } - } - - /// - /// Gets or sets the Type of pdu, unique for each PDU class - /// - [XmlElement(Type = typeof(byte), ElementName = "pduType")] - public byte PduType - { - get - { - return this._pduType; - } - - set - { - this._pduType = value; - } - } - - /// - /// Gets or sets the value that refers to the protocol family, eg SimulationManagement, etc - /// - [XmlElement(Type = typeof(byte), ElementName = "protocolFamily")] - public byte ProtocolFamily - { - get - { - return this._protocolFamily; - } - - set - { - this._protocolFamily = value; - } - } - - /// - /// Gets or sets the Timestamp value - /// - [XmlElement(Type = typeof(uint), ElementName = "timestamp")] - public uint Timestamp - { - get - { - return this._timestamp; - } - - set - { - this._timestamp = value; - } - } - - /// - /// Gets or sets the Length, in bytes, of the PDU. Changed name from length to avoid use of Hibernate QL reserved word. - /// - [XmlElement(Type = typeof(byte), ElementName = "pduLength")] - public byte PduLength - { - get - { - return this._pduLength; - } - - set - { - this._pduLength = value; - } - } - - /// - /// Gets or sets the PDU Status Record. Described in 6.2.67. This field is not present in earlier DIS versions - /// - [XmlElement(Type = typeof(ushort), ElementName = "pduStatus")] - public ushort PduStatus - { - get - { - return this._pduStatus; - } - - set - { - this._pduStatus = value; - } - } - - /// - /// Gets or sets the zero filled array of padding - /// - [XmlElement(Type = typeof(byte), ElementName = "padding")] - public byte Padding - { - get - { - return this._padding; - } - - set - { - this._padding = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._protocolVersion); - dos.WriteUnsignedByte((byte)this._exerciseID); - dos.WriteUnsignedByte((byte)this._pduType); - dos.WriteUnsignedByte((byte)this._protocolFamily); - dos.WriteUnsignedInt((uint)this._timestamp); - dos.WriteUnsignedByte((byte)this._pduLength); - dos.WriteUnsignedShort((ushort)this._pduStatus); - dos.WriteUnsignedByte((byte)this._padding); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._protocolVersion = dis.ReadUnsignedByte(); - this._exerciseID = dis.ReadUnsignedByte(); - this._pduType = dis.ReadUnsignedByte(); - this._protocolFamily = dis.ReadUnsignedByte(); - this._timestamp = dis.ReadUnsignedInt(); - this._pduLength = dis.ReadUnsignedByte(); - this._pduStatus = dis.ReadUnsignedShort(); - this._padding = dis.ReadUnsignedByte(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._protocolVersion.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._exerciseID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pduType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._protocolFamily.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._timestamp.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pduLength.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pduStatus.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as PduHeader; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(PduHeader obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._protocolVersion != obj._protocolVersion) - { - ivarsEqual = false; - } - - if (this._exerciseID != obj._exerciseID) - { - ivarsEqual = false; - } - - if (this._pduType != obj._pduType) - { - ivarsEqual = false; - } - - if (this._protocolFamily != obj._protocolFamily) - { - ivarsEqual = false; - } - - if (this._timestamp != obj._timestamp) - { - ivarsEqual = false; - } - - if (this._pduLength != obj._pduLength) - { - ivarsEqual = false; - } - - if (this._pduStatus != obj._pduStatus) - { - ivarsEqual = false; - } - - if (this._padding != obj._padding) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._protocolVersion.GetHashCode(); - result = GenerateHash(result) ^ this._exerciseID.GetHashCode(); - result = GenerateHash(result) ^ this._pduType.GetHashCode(); - result = GenerateHash(result) ^ this._protocolFamily.GetHashCode(); - result = GenerateHash(result) ^ this._timestamp.GetHashCode(); - result = GenerateHash(result) ^ this._pduLength.GetHashCode(); - result = GenerateHash(result) ^ this._pduStatus.GetHashCode(); - result = GenerateHash(result) ^ this._padding.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/PduStatus.cs b/Libs/CSharpDis7/PduStatus.cs deleted file mode 100644 index f028bca..0000000 --- a/Libs/CSharpDis7/PduStatus.cs +++ /dev/null @@ -1,277 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// PDU Status. These are a series of bit fields. Represented here as just a byte. Section 6.2.67 - /// - [Serializable] - [XmlRoot] - public partial class PduStatus - { - /// - /// Bit fields - /// - private byte _pduStatus; - - /// - /// Initializes a new instance of the class. - /// - public PduStatus() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(PduStatus left, PduStatus right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(PduStatus left, PduStatus right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._pduStatus - return marshalSize; - } - - /// - /// Gets or sets the Bit fields - /// - [XmlElement(Type = typeof(byte), ElementName = "pduStatus")] - public byte PduStatus_ - { - get - { - return this._pduStatus; - } - - set - { - this._pduStatus = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._pduStatus); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._pduStatus = dis.ReadUnsignedByte(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._pduStatus.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as PduStatus; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(PduStatus obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._pduStatus != obj._pduStatus) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._pduStatus.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/PduSuperclass.cs b/Libs/CSharpDis7/PduSuperclass.cs deleted file mode 100644 index ba223c8..0000000 --- a/Libs/CSharpDis7/PduSuperclass.cs +++ /dev/null @@ -1,437 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// The superclass for all PDUs, including classic and Live Entity (LE) PDUs. This incorporates the PduHeader record, section 7.2.2 - /// - [Serializable] - [XmlRoot] - public partial class PduSuperclass - { - /// - /// The version of the protocol. 5=DIS-1995, 6=DIS-1998, 7=DIS-2009. - /// - private byte _protocolVersion = 7; - - /// - /// Exercise ID - /// - private byte _exerciseID; - - /// - /// Type of pdu, unique for each PDU class - /// - private byte _pduType; - - /// - /// value that refers to the protocol family, eg SimulationManagement, et - /// - private byte _protocolFamily; - - /// - /// Timestamp value - /// - private uint _timestamp; - - /// - /// Length, in bytes, of the PDU - /// - private ushort _length; - - /// - /// Initializes a new instance of the class. - /// - public PduSuperclass() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(PduSuperclass left, PduSuperclass right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(PduSuperclass left, PduSuperclass right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._protocolVersion - marshalSize += 1; // this._exerciseID - marshalSize += 1; // this._pduType - marshalSize += 1; // this._protocolFamily - marshalSize += 4; // this._timestamp - marshalSize += 2; // this._length - return marshalSize; - } - - /// - /// Gets or sets the The version of the protocol. 5=DIS-1995, 6=DIS-1998, 7=DIS-2009. - /// - [XmlElement(Type = typeof(byte), ElementName = "protocolVersion")] - public byte ProtocolVersion - { - get - { - return this._protocolVersion; - } - - set - { - this._protocolVersion = value; - } - } - - /// - /// Gets or sets the Exercise ID - /// - [XmlElement(Type = typeof(byte), ElementName = "exerciseID")] - public byte ExerciseID - { - get - { - return this._exerciseID; - } - - set - { - this._exerciseID = value; - } - } - - /// - /// Gets or sets the Type of pdu, unique for each PDU class - /// - [XmlElement(Type = typeof(byte), ElementName = "pduType")] - public byte PduType - { - get - { - return this._pduType; - } - - set - { - this._pduType = value; - } - } - - /// - /// Gets or sets the value that refers to the protocol family, eg SimulationManagement, et - /// - [XmlElement(Type = typeof(byte), ElementName = "protocolFamily")] - public byte ProtocolFamily - { - get - { - return this._protocolFamily; - } - - set - { - this._protocolFamily = value; - } - } - - /// - /// Gets or sets the Timestamp value - /// - [XmlElement(Type = typeof(uint), ElementName = "timestamp")] - public uint Timestamp - { - get - { - return this._timestamp; - } - - set - { - this._timestamp = value; - } - } - - /// - /// Gets or sets the Length, in bytes, of the PDU - /// - [XmlElement(Type = typeof(ushort), ElementName = "length")] - public ushort Length - { - get - { - return this._length; - } - - set - { - this._length = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._protocolVersion); - dos.WriteUnsignedByte((byte)this._exerciseID); - dos.WriteUnsignedByte((byte)this._pduType); - dos.WriteUnsignedByte((byte)this._protocolFamily); - dos.WriteUnsignedInt((uint)this._timestamp); - dos.WriteUnsignedShort((ushort)this._length); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._protocolVersion = dis.ReadUnsignedByte(); - this._exerciseID = dis.ReadUnsignedByte(); - this._pduType = dis.ReadUnsignedByte(); - this._protocolFamily = dis.ReadUnsignedByte(); - this._timestamp = dis.ReadUnsignedInt(); - this._length = dis.ReadUnsignedShort(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._protocolVersion.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._exerciseID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pduType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._protocolFamily.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._timestamp.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._length.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as PduSuperclass; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(PduSuperclass obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._protocolVersion != obj._protocolVersion) - { - ivarsEqual = false; - } - - if (this._exerciseID != obj._exerciseID) - { - ivarsEqual = false; - } - - if (this._pduType != obj._pduType) - { - ivarsEqual = false; - } - - if (this._protocolFamily != obj._protocolFamily) - { - ivarsEqual = false; - } - - if (this._timestamp != obj._timestamp) - { - ivarsEqual = false; - } - - if (this._length != obj._length) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._protocolVersion.GetHashCode(); - result = GenerateHash(result) ^ this._exerciseID.GetHashCode(); - result = GenerateHash(result) ^ this._pduType.GetHashCode(); - result = GenerateHash(result) ^ this._protocolFamily.GetHashCode(); - result = GenerateHash(result) ^ this._timestamp.GetHashCode(); - result = GenerateHash(result) ^ this._length.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/PointObjectStatePdu.cs b/Libs/CSharpDis7/PointObjectStatePdu.cs deleted file mode 100644 index 963ea88..0000000 --- a/Libs/CSharpDis7/PointObjectStatePdu.cs +++ /dev/null @@ -1,652 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// : Inormation abut the addition or modification of a synthecic enviroment object that is anchored to the terrain with a single point. Section 7.10.4 COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(ObjectType))] - [XmlInclude(typeof(Vector3Double))] - [XmlInclude(typeof(EulerAngles))] - [XmlInclude(typeof(SimulationAddress))] - public partial class PointObjectStatePdu : SyntheticEnvironmentFamilyPdu, IEquatable - { - /// - /// Object in synthetic environment - /// - private EntityID _objectID = new EntityID(); - - /// - /// Object with which this point object is associated - /// - private EntityID _referencedObjectID = new EntityID(); - - /// - /// unique update number of each state transition of an object - /// - private ushort _updateNumber; - - /// - /// force ID - /// - private byte _forceID; - - /// - /// modifications - /// - private byte _modifications; - - /// - /// Object type - /// - private ObjectType _objectType = new ObjectType(); - - /// - /// Object location - /// - private Vector3Double _objectLocation = new Vector3Double(); - - /// - /// Object orientation - /// - private EulerAngles _objectOrientation = new EulerAngles(); - - /// - /// Object apperance - /// - private double _objectAppearance; - - /// - /// requesterID - /// - private SimulationAddress _requesterID = new SimulationAddress(); - - /// - /// receiver ID - /// - private SimulationAddress _receivingID = new SimulationAddress(); - - /// - /// padding - /// - private uint _pad2; - - /// - /// Initializes a new instance of the class. - /// - public PointObjectStatePdu() - { - PduType = (byte)43; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(PointObjectStatePdu left, PointObjectStatePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(PointObjectStatePdu left, PointObjectStatePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._objectID.GetMarshalledSize(); // this._objectID - marshalSize += this._referencedObjectID.GetMarshalledSize(); // this._referencedObjectID - marshalSize += 2; // this._updateNumber - marshalSize += 1; // this._forceID - marshalSize += 1; // this._modifications - marshalSize += this._objectType.GetMarshalledSize(); // this._objectType - marshalSize += this._objectLocation.GetMarshalledSize(); // this._objectLocation - marshalSize += this._objectOrientation.GetMarshalledSize(); // this._objectOrientation - marshalSize += 8; // this._objectAppearance - marshalSize += this._requesterID.GetMarshalledSize(); // this._requesterID - marshalSize += this._receivingID.GetMarshalledSize(); // this._receivingID - marshalSize += 4; // this._pad2 - return marshalSize; - } - - /// - /// Gets or sets the Object in synthetic environment - /// - [XmlElement(Type = typeof(EntityID), ElementName = "objectID")] - public EntityID ObjectID - { - get - { - return this._objectID; - } - - set - { - this._objectID = value; - } - } - - /// - /// Gets or sets the Object with which this point object is associated - /// - [XmlElement(Type = typeof(EntityID), ElementName = "referencedObjectID")] - public EntityID ReferencedObjectID - { - get - { - return this._referencedObjectID; - } - - set - { - this._referencedObjectID = value; - } - } - - /// - /// Gets or sets the unique update number of each state transition of an object - /// - [XmlElement(Type = typeof(ushort), ElementName = "updateNumber")] - public ushort UpdateNumber - { - get - { - return this._updateNumber; - } - - set - { - this._updateNumber = value; - } - } - - /// - /// Gets or sets the force ID - /// - [XmlElement(Type = typeof(byte), ElementName = "forceID")] - public byte ForceID - { - get - { - return this._forceID; - } - - set - { - this._forceID = value; - } - } - - /// - /// Gets or sets the modifications - /// - [XmlElement(Type = typeof(byte), ElementName = "modifications")] - public byte Modifications - { - get - { - return this._modifications; - } - - set - { - this._modifications = value; - } - } - - /// - /// Gets or sets the Object type - /// - [XmlElement(Type = typeof(ObjectType), ElementName = "objectType")] - public ObjectType ObjectType - { - get - { - return this._objectType; - } - - set - { - this._objectType = value; - } - } - - /// - /// Gets or sets the Object location - /// - [XmlElement(Type = typeof(Vector3Double), ElementName = "objectLocation")] - public Vector3Double ObjectLocation - { - get - { - return this._objectLocation; - } - - set - { - this._objectLocation = value; - } - } - - /// - /// Gets or sets the Object orientation - /// - [XmlElement(Type = typeof(EulerAngles), ElementName = "objectOrientation")] - public EulerAngles ObjectOrientation - { - get - { - return this._objectOrientation; - } - - set - { - this._objectOrientation = value; - } - } - - /// - /// Gets or sets the Object apperance - /// - [XmlElement(Type = typeof(double), ElementName = "objectAppearance")] - public double ObjectAppearance - { - get - { - return this._objectAppearance; - } - - set - { - this._objectAppearance = value; - } - } - - /// - /// Gets or sets the requesterID - /// - [XmlElement(Type = typeof(SimulationAddress), ElementName = "requesterID")] - public SimulationAddress RequesterID - { - get - { - return this._requesterID; - } - - set - { - this._requesterID = value; - } - } - - /// - /// Gets or sets the receiver ID - /// - [XmlElement(Type = typeof(SimulationAddress), ElementName = "receivingID")] - public SimulationAddress ReceivingID - { - get - { - return this._receivingID; - } - - set - { - this._receivingID = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(uint), ElementName = "pad2")] - public uint Pad2 - { - get - { - return this._pad2; - } - - set - { - this._pad2 = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._objectID.Marshal(dos); - this._referencedObjectID.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._updateNumber); - dos.WriteUnsignedByte((byte)this._forceID); - dos.WriteUnsignedByte((byte)this._modifications); - this._objectType.Marshal(dos); - this._objectLocation.Marshal(dos); - this._objectOrientation.Marshal(dos); - dos.WriteDouble((double)this._objectAppearance); - this._requesterID.Marshal(dos); - this._receivingID.Marshal(dos); - dos.WriteUnsignedInt((uint)this._pad2); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._objectID.Unmarshal(dis); - this._referencedObjectID.Unmarshal(dis); - this._updateNumber = dis.ReadUnsignedShort(); - this._forceID = dis.ReadUnsignedByte(); - this._modifications = dis.ReadUnsignedByte(); - this._objectType.Unmarshal(dis); - this._objectLocation.Unmarshal(dis); - this._objectOrientation.Unmarshal(dis); - this._objectAppearance = dis.ReadDouble(); - this._requesterID.Unmarshal(dis); - this._receivingID.Unmarshal(dis); - this._pad2 = dis.ReadUnsignedInt(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._objectID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._referencedObjectID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._updateNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._forceID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._modifications.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._objectType.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._objectLocation.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._objectOrientation.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._objectAppearance.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._requesterID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._receivingID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as PointObjectStatePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(PointObjectStatePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._objectID.Equals(obj._objectID)) - { - ivarsEqual = false; - } - - if (!this._referencedObjectID.Equals(obj._referencedObjectID)) - { - ivarsEqual = false; - } - - if (this._updateNumber != obj._updateNumber) - { - ivarsEqual = false; - } - - if (this._forceID != obj._forceID) - { - ivarsEqual = false; - } - - if (this._modifications != obj._modifications) - { - ivarsEqual = false; - } - - if (!this._objectType.Equals(obj._objectType)) - { - ivarsEqual = false; - } - - if (!this._objectLocation.Equals(obj._objectLocation)) - { - ivarsEqual = false; - } - - if (!this._objectOrientation.Equals(obj._objectOrientation)) - { - ivarsEqual = false; - } - - if (this._objectAppearance != obj._objectAppearance) - { - ivarsEqual = false; - } - - if (!this._requesterID.Equals(obj._requesterID)) - { - ivarsEqual = false; - } - - if (!this._receivingID.Equals(obj._receivingID)) - { - ivarsEqual = false; - } - - if (this._pad2 != obj._pad2) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._objectID.GetHashCode(); - result = GenerateHash(result) ^ this._referencedObjectID.GetHashCode(); - result = GenerateHash(result) ^ this._updateNumber.GetHashCode(); - result = GenerateHash(result) ^ this._forceID.GetHashCode(); - result = GenerateHash(result) ^ this._modifications.GetHashCode(); - result = GenerateHash(result) ^ this._objectType.GetHashCode(); - result = GenerateHash(result) ^ this._objectLocation.GetHashCode(); - result = GenerateHash(result) ^ this._objectOrientation.GetHashCode(); - result = GenerateHash(result) ^ this._objectAppearance.GetHashCode(); - result = GenerateHash(result) ^ this._requesterID.GetHashCode(); - result = GenerateHash(result) ^ this._receivingID.GetHashCode(); - result = GenerateHash(result) ^ this._pad2.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/PropulsionSystemData.cs b/Libs/CSharpDis7/PropulsionSystemData.cs deleted file mode 100644 index b7360e5..0000000 --- a/Libs/CSharpDis7/PropulsionSystemData.cs +++ /dev/null @@ -1,309 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// contains information describing the propulsion systems of the entity. This information shall be provided for each active propulsion system defined. Section 6.2.68 - /// - [Serializable] - [XmlRoot] - public partial class PropulsionSystemData - { - /// - /// powerSetting - /// - private float _powerSetting; - - /// - /// engine RPMs - /// - private float _engineRpm; - - /// - /// Initializes a new instance of the class. - /// - public PropulsionSystemData() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(PropulsionSystemData left, PropulsionSystemData right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(PropulsionSystemData left, PropulsionSystemData right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._powerSetting - marshalSize += 4; // this._engineRpm - return marshalSize; - } - - /// - /// Gets or sets the powerSetting - /// - [XmlElement(Type = typeof(float), ElementName = "powerSetting")] - public float PowerSetting - { - get - { - return this._powerSetting; - } - - set - { - this._powerSetting = value; - } - } - - /// - /// Gets or sets the engine RPMs - /// - [XmlElement(Type = typeof(float), ElementName = "engineRpm")] - public float EngineRpm - { - get - { - return this._engineRpm; - } - - set - { - this._engineRpm = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteFloat((float)this._powerSetting); - dos.WriteFloat((float)this._engineRpm); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._powerSetting = dis.ReadFloat(); - this._engineRpm = dis.ReadFloat(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._powerSetting.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._engineRpm.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as PropulsionSystemData; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(PropulsionSystemData obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._powerSetting != obj._powerSetting) - { - ivarsEqual = false; - } - - if (this._engineRpm != obj._engineRpm) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._powerSetting.GetHashCode(); - result = GenerateHash(result) ^ this._engineRpm.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/RadioCommunicationsFamilyPdu.cs b/Libs/CSharpDis7/RadioCommunicationsFamilyPdu.cs deleted file mode 100644 index ed02477..0000000 --- a/Libs/CSharpDis7/RadioCommunicationsFamilyPdu.cs +++ /dev/null @@ -1,316 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Abstract superclass for radio communications PDUs. Section 7.7 - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - public partial class RadioCommunicationsFamilyPdu : Pdu, IEquatable - { - /// - /// ID of the entitythat is the source of the communication - /// - private EntityID _entityId = new EntityID(); - - /// - /// particular radio within an entity - /// - private ushort _radioId; - - /// - /// Initializes a new instance of the class. - /// - public RadioCommunicationsFamilyPdu() - { - ProtocolFamily = (byte)4; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(RadioCommunicationsFamilyPdu left, RadioCommunicationsFamilyPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(RadioCommunicationsFamilyPdu left, RadioCommunicationsFamilyPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._entityId.GetMarshalledSize(); // this._entityId - marshalSize += 2; // this._radioId - return marshalSize; - } - - /// - /// Gets or sets the ID of the entitythat is the source of the communication - /// - [XmlElement(Type = typeof(EntityID), ElementName = "entityId")] - public EntityID EntityId - { - get - { - return this._entityId; - } - - set - { - this._entityId = value; - } - } - - /// - /// Gets or sets the particular radio within an entity - /// - [XmlElement(Type = typeof(ushort), ElementName = "radioId")] - public ushort RadioId - { - get - { - return this._radioId; - } - - set - { - this._radioId = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public virtual void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._entityId.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._radioId); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._entityId.Unmarshal(dis); - this._radioId = dis.ReadUnsignedShort(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._entityId.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._radioId.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as RadioCommunicationsFamilyPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(RadioCommunicationsFamilyPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._entityId.Equals(obj._entityId)) - { - ivarsEqual = false; - } - - if (this._radioId != obj._radioId) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._entityId.GetHashCode(); - result = GenerateHash(result) ^ this._radioId.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/RadioIdentifier.cs b/Libs/CSharpDis7/RadioIdentifier.cs deleted file mode 100644 index 1b543c9..0000000 --- a/Libs/CSharpDis7/RadioIdentifier.cs +++ /dev/null @@ -1,373 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// The unique designation of an attached or unattached radio in an event or exercise Section 6.2.69 - /// - [Serializable] - [XmlRoot] - public partial class RadioIdentifier - { - /// - /// site - /// - private ushort _siteNumber; - - /// - /// application number - /// - private ushort _applicationNumber; - - /// - /// reference number - /// - private ushort _referenceNumber; - - /// - /// Radio number - /// - private ushort _radioNumber; - - /// - /// Initializes a new instance of the class. - /// - public RadioIdentifier() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(RadioIdentifier left, RadioIdentifier right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(RadioIdentifier left, RadioIdentifier right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 2; // this._siteNumber - marshalSize += 2; // this._applicationNumber - marshalSize += 2; // this._referenceNumber - marshalSize += 2; // this._radioNumber - return marshalSize; - } - - /// - /// Gets or sets the site - /// - [XmlElement(Type = typeof(ushort), ElementName = "siteNumber")] - public ushort SiteNumber - { - get - { - return this._siteNumber; - } - - set - { - this._siteNumber = value; - } - } - - /// - /// Gets or sets the application number - /// - [XmlElement(Type = typeof(ushort), ElementName = "applicationNumber")] - public ushort ApplicationNumber - { - get - { - return this._applicationNumber; - } - - set - { - this._applicationNumber = value; - } - } - - /// - /// Gets or sets the reference number - /// - [XmlElement(Type = typeof(ushort), ElementName = "referenceNumber")] - public ushort ReferenceNumber - { - get - { - return this._referenceNumber; - } - - set - { - this._referenceNumber = value; - } - } - - /// - /// Gets or sets the Radio number - /// - [XmlElement(Type = typeof(ushort), ElementName = "radioNumber")] - public ushort RadioNumber - { - get - { - return this._radioNumber; - } - - set - { - this._radioNumber = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._siteNumber); - dos.WriteUnsignedShort((ushort)this._applicationNumber); - dos.WriteUnsignedShort((ushort)this._referenceNumber); - dos.WriteUnsignedShort((ushort)this._radioNumber); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._siteNumber = dis.ReadUnsignedShort(); - this._applicationNumber = dis.ReadUnsignedShort(); - this._referenceNumber = dis.ReadUnsignedShort(); - this._radioNumber = dis.ReadUnsignedShort(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._siteNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._applicationNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._referenceNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._radioNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as RadioIdentifier; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(RadioIdentifier obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._siteNumber != obj._siteNumber) - { - ivarsEqual = false; - } - - if (this._applicationNumber != obj._applicationNumber) - { - ivarsEqual = false; - } - - if (this._referenceNumber != obj._referenceNumber) - { - ivarsEqual = false; - } - - if (this._radioNumber != obj._radioNumber) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._siteNumber.GetHashCode(); - result = GenerateHash(result) ^ this._applicationNumber.GetHashCode(); - result = GenerateHash(result) ^ this._referenceNumber.GetHashCode(); - result = GenerateHash(result) ^ this._radioNumber.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/RadioType.cs b/Libs/CSharpDis7/RadioType.cs deleted file mode 100644 index 77f87f1..0000000 --- a/Libs/CSharpDis7/RadioType.cs +++ /dev/null @@ -1,457 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Identifies the type of radio. Section 6.2.70 - /// - [Serializable] - [XmlRoot] - public partial class RadioType - { - /// - /// Kind of entity - /// - private byte _entityKind; - - /// - /// Domain of entity (air, surface, subsurface, space, etc) - /// - private byte _domain; - - /// - /// country to which the design of the entity is attributed - /// - private ushort _country; - - /// - /// category of entity - /// - private byte _category; - - /// - /// specific info based on subcategory field - /// - private byte _subcategory; - - private byte _specific; - - private byte _extra; - - /// - /// Initializes a new instance of the class. - /// - public RadioType() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(RadioType left, RadioType right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(RadioType left, RadioType right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._entityKind - marshalSize += 1; // this._domain - marshalSize += 2; // this._country - marshalSize += 1; // this._category - marshalSize += 1; // this._subcategory - marshalSize += 1; // this._specific - marshalSize += 1; // this._extra - return marshalSize; - } - - /// - /// Gets or sets the Kind of entity - /// - [XmlElement(Type = typeof(byte), ElementName = "entityKind")] - public byte EntityKind - { - get - { - return this._entityKind; - } - - set - { - this._entityKind = value; - } - } - - /// - /// Gets or sets the Domain of entity (air, surface, subsurface, space, etc) - /// - [XmlElement(Type = typeof(byte), ElementName = "domain")] - public byte Domain - { - get - { - return this._domain; - } - - set - { - this._domain = value; - } - } - - /// - /// Gets or sets the country to which the design of the entity is attributed - /// - [XmlElement(Type = typeof(ushort), ElementName = "country")] - public ushort Country - { - get - { - return this._country; - } - - set - { - this._country = value; - } - } - - /// - /// Gets or sets the category of entity - /// - [XmlElement(Type = typeof(byte), ElementName = "category")] - public byte Category - { - get - { - return this._category; - } - - set - { - this._category = value; - } - } - - /// - /// Gets or sets the specific info based on subcategory field - /// - [XmlElement(Type = typeof(byte), ElementName = "subcategory")] - public byte Subcategory - { - get - { - return this._subcategory; - } - - set - { - this._subcategory = value; - } - } - - [XmlElement(Type = typeof(byte), ElementName = "specific")] - public byte Specific - { - get - { - return this._specific; - } - - set - { - this._specific = value; - } - } - - [XmlElement(Type = typeof(byte), ElementName = "extra")] - public byte Extra - { - get - { - return this._extra; - } - - set - { - this._extra = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._entityKind); - dos.WriteUnsignedByte((byte)this._domain); - dos.WriteUnsignedShort((ushort)this._country); - dos.WriteUnsignedByte((byte)this._category); - dos.WriteUnsignedByte((byte)this._subcategory); - dos.WriteUnsignedByte((byte)this._specific); - dos.WriteUnsignedByte((byte)this._extra); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._entityKind = dis.ReadUnsignedByte(); - this._domain = dis.ReadUnsignedByte(); - this._country = dis.ReadUnsignedShort(); - this._category = dis.ReadUnsignedByte(); - this._subcategory = dis.ReadUnsignedByte(); - this._specific = dis.ReadUnsignedByte(); - this._extra = dis.ReadUnsignedByte(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._entityKind.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._domain.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._country.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._category.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._subcategory.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._specific.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._extra.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as RadioType; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(RadioType obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._entityKind != obj._entityKind) - { - ivarsEqual = false; - } - - if (this._domain != obj._domain) - { - ivarsEqual = false; - } - - if (this._country != obj._country) - { - ivarsEqual = false; - } - - if (this._category != obj._category) - { - ivarsEqual = false; - } - - if (this._subcategory != obj._subcategory) - { - ivarsEqual = false; - } - - if (this._specific != obj._specific) - { - ivarsEqual = false; - } - - if (this._extra != obj._extra) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._entityKind.GetHashCode(); - result = GenerateHash(result) ^ this._domain.GetHashCode(); - result = GenerateHash(result) ^ this._country.GetHashCode(); - result = GenerateHash(result) ^ this._category.GetHashCode(); - result = GenerateHash(result) ^ this._subcategory.GetHashCode(); - result = GenerateHash(result) ^ this._specific.GetHashCode(); - result = GenerateHash(result) ^ this._extra.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/ReceiverPdu.cs b/Libs/CSharpDis7/ReceiverPdu.cs deleted file mode 100644 index 169879d..0000000 --- a/Libs/CSharpDis7/ReceiverPdu.cs +++ /dev/null @@ -1,412 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Communication of a receiver state. Section 7.7.4 COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - public partial class ReceiverPdu : RadioCommunicationsFamilyPdu, IEquatable - { - /// - /// encoding scheme used, and enumeration - /// - private ushort _receiverState; - - /// - /// padding - /// - private ushort _padding1; - - /// - /// received power - /// - private float _receivedPoser; - - /// - /// ID of transmitter - /// - private EntityID _transmitterEntityId = new EntityID(); - - /// - /// ID of transmitting radio - /// - private ushort _transmitterRadioId; - - /// - /// Initializes a new instance of the class. - /// - public ReceiverPdu() - { - PduType = (byte)27; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ReceiverPdu left, ReceiverPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ReceiverPdu left, ReceiverPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 2; // this._receiverState - marshalSize += 2; // this._padding1 - marshalSize += 4; // this._receivedPoser - marshalSize += this._transmitterEntityId.GetMarshalledSize(); // this._transmitterEntityId - marshalSize += 2; // this._transmitterRadioId - return marshalSize; - } - - /// - /// Gets or sets the encoding scheme used, and enumeration - /// - [XmlElement(Type = typeof(ushort), ElementName = "receiverState")] - public ushort ReceiverState - { - get - { - return this._receiverState; - } - - set - { - this._receiverState = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(ushort), ElementName = "padding1")] - public ushort Padding1 - { - get - { - return this._padding1; - } - - set - { - this._padding1 = value; - } - } - - /// - /// Gets or sets the received power - /// - [XmlElement(Type = typeof(float), ElementName = "receivedPoser")] - public float ReceivedPoser - { - get - { - return this._receivedPoser; - } - - set - { - this._receivedPoser = value; - } - } - - /// - /// Gets or sets the ID of transmitter - /// - [XmlElement(Type = typeof(EntityID), ElementName = "transmitterEntityId")] - public EntityID TransmitterEntityId - { - get - { - return this._transmitterEntityId; - } - - set - { - this._transmitterEntityId = value; - } - } - - /// - /// Gets or sets the ID of transmitting radio - /// - [XmlElement(Type = typeof(ushort), ElementName = "transmitterRadioId")] - public ushort TransmitterRadioId - { - get - { - return this._transmitterRadioId; - } - - set - { - this._transmitterRadioId = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._receiverState); - dos.WriteUnsignedShort((ushort)this._padding1); - dos.WriteFloat((float)this._receivedPoser); - this._transmitterEntityId.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._transmitterRadioId); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._receiverState = dis.ReadUnsignedShort(); - this._padding1 = dis.ReadUnsignedShort(); - this._receivedPoser = dis.ReadFloat(); - this._transmitterEntityId.Unmarshal(dis); - this._transmitterRadioId = dis.ReadUnsignedShort(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._receiverState.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._receivedPoser.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._transmitterEntityId.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._transmitterRadioId.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ReceiverPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ReceiverPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._receiverState != obj._receiverState) - { - ivarsEqual = false; - } - - if (this._padding1 != obj._padding1) - { - ivarsEqual = false; - } - - if (this._receivedPoser != obj._receivedPoser) - { - ivarsEqual = false; - } - - if (!this._transmitterEntityId.Equals(obj._transmitterEntityId)) - { - ivarsEqual = false; - } - - if (this._transmitterRadioId != obj._transmitterRadioId) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._receiverState.GetHashCode(); - result = GenerateHash(result) ^ this._padding1.GetHashCode(); - result = GenerateHash(result) ^ this._receivedPoser.GetHashCode(); - result = GenerateHash(result) ^ this._transmitterEntityId.GetHashCode(); - result = GenerateHash(result) ^ this._transmitterRadioId.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/RecordQueryReliablePdu.cs b/Libs/CSharpDis7/RecordQueryReliablePdu.cs deleted file mode 100644 index 2406e53..0000000 --- a/Libs/CSharpDis7/RecordQueryReliablePdu.cs +++ /dev/null @@ -1,544 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Section 5.3.12.13: A request for one or more records of data from an entity. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(FourByteChunk))] - public partial class RecordQueryReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable - { - /// - /// request ID - /// - private uint _requestID; - - /// - /// level of reliability service used for this transaction - /// - private byte _requiredReliabilityService; - - /// - /// padding. The spec is unclear and contradictory here. - /// - private ushort _pad1; - - /// - /// padding - /// - private byte _pad2; - - /// - /// event type - /// - private ushort _eventType; - - /// - /// time - /// - private uint _time; - - /// - /// numberOfRecords - /// - private uint _numberOfRecords; - - /// - /// record IDs - /// - private List _recordIDs = new List(); - - /// - /// Initializes a new instance of the class. - /// - public RecordQueryReliablePdu() - { - PduType = (byte)63; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(RecordQueryReliablePdu left, RecordQueryReliablePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(RecordQueryReliablePdu left, RecordQueryReliablePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 4; // this._requestID - marshalSize += 1; // this._requiredReliabilityService - marshalSize += 2; // this._pad1 - marshalSize += 1; // this._pad2 - marshalSize += 2; // this._eventType - marshalSize += 4; // this._time - marshalSize += 4; // this._numberOfRecords - for (int idx = 0; idx < this._recordIDs.Count; idx++) - { - FourByteChunk listElement = (FourByteChunk)this._recordIDs[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the request ID - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Gets or sets the level of reliability service used for this transaction - /// - [XmlElement(Type = typeof(byte), ElementName = "requiredReliabilityService")] - public byte RequiredReliabilityService - { - get - { - return this._requiredReliabilityService; - } - - set - { - this._requiredReliabilityService = value; - } - } - - /// - /// Gets or sets the padding. The spec is unclear and contradictory here. - /// - [XmlElement(Type = typeof(ushort), ElementName = "pad1")] - public ushort Pad1 - { - get - { - return this._pad1; - } - - set - { - this._pad1 = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "pad2")] - public byte Pad2 - { - get - { - return this._pad2; - } - - set - { - this._pad2 = value; - } - } - - /// - /// Gets or sets the event type - /// - [XmlElement(Type = typeof(ushort), ElementName = "eventType")] - public ushort EventType - { - get - { - return this._eventType; - } - - set - { - this._eventType = value; - } - } - - /// - /// Gets or sets the time - /// - [XmlElement(Type = typeof(uint), ElementName = "time")] - public uint Time - { - get - { - return this._time; - } - - set - { - this._time = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfRecords")] - public uint NumberOfRecords - { - get - { - return this._numberOfRecords; - } - - set - { - this._numberOfRecords = value; - } - } - - /// - /// Gets or sets the record IDs - /// - [XmlElement(ElementName = "recordIDsList", Type = typeof(List))] - public List RecordIDs - { - get - { - return this._recordIDs; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._requestID); - dos.WriteUnsignedByte((byte)this._requiredReliabilityService); - dos.WriteUnsignedShort((ushort)this._pad1); - dos.WriteUnsignedByte((byte)this._pad2); - dos.WriteUnsignedShort((ushort)this._eventType); - dos.WriteUnsignedInt((uint)this._time); - dos.WriteUnsignedInt((uint)this._recordIDs.Count); - - for (int idx = 0; idx < this._recordIDs.Count; idx++) - { - FourByteChunk aFourByteChunk = (FourByteChunk)this._recordIDs[idx]; - aFourByteChunk.Marshal(dos); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._requestID = dis.ReadUnsignedInt(); - this._requiredReliabilityService = dis.ReadUnsignedByte(); - this._pad1 = dis.ReadUnsignedShort(); - this._pad2 = dis.ReadUnsignedByte(); - this._eventType = dis.ReadUnsignedShort(); - this._time = dis.ReadUnsignedInt(); - this._numberOfRecords = dis.ReadUnsignedInt(); - for (int idx = 0; idx < this.NumberOfRecords; idx++) - { - FourByteChunk anX = new FourByteChunk(); - anX.Unmarshal(dis); - this._recordIDs.Add(anX); - }; - - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._requiredReliabilityService.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._eventType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - sb.AppendLine("" + this._recordIDs.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._recordIDs.Count; idx++) - { - sb.AppendLine(""); - FourByteChunk aFourByteChunk = (FourByteChunk)this._recordIDs[idx]; - aFourByteChunk.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as RecordQueryReliablePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(RecordQueryReliablePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - if (this._requiredReliabilityService != obj._requiredReliabilityService) - { - ivarsEqual = false; - } - - if (this._pad1 != obj._pad1) - { - ivarsEqual = false; - } - - if (this._pad2 != obj._pad2) - { - ivarsEqual = false; - } - - if (this._eventType != obj._eventType) - { - ivarsEqual = false; - } - - if (this._time != obj._time) - { - ivarsEqual = false; - } - - if (this._numberOfRecords != obj._numberOfRecords) - { - ivarsEqual = false; - } - - if (this._recordIDs.Count != obj._recordIDs.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._recordIDs.Count; idx++) - { - if (!this._recordIDs[idx].Equals(obj._recordIDs[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - result = GenerateHash(result) ^ this._requiredReliabilityService.GetHashCode(); - result = GenerateHash(result) ^ this._pad1.GetHashCode(); - result = GenerateHash(result) ^ this._pad2.GetHashCode(); - result = GenerateHash(result) ^ this._eventType.GetHashCode(); - result = GenerateHash(result) ^ this._time.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfRecords.GetHashCode(); - - if (this._recordIDs.Count > 0) - { - for (int idx = 0; idx < this._recordIDs.Count; idx++) - { - result = GenerateHash(result) ^ this._recordIDs[idx].GetHashCode(); - } - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/RecordQuerySpecification.cs b/Libs/CSharpDis7/RecordQuerySpecification.cs deleted file mode 100644 index 095e8b5..0000000 --- a/Libs/CSharpDis7/RecordQuerySpecification.cs +++ /dev/null @@ -1,345 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// The identification of the records being queried 6.2.71 - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(FourByteChunk))] - public partial class RecordQuerySpecification - { - private uint _numberOfRecords; - - /// - /// variable length list of 32 bit records - /// - private List _records = new List(); - - /// - /// Initializes a new instance of the class. - /// - public RecordQuerySpecification() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(RecordQuerySpecification left, RecordQuerySpecification right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(RecordQuerySpecification left, RecordQuerySpecification right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._numberOfRecords - for (int idx = 0; idx < this._records.Count; idx++) - { - FourByteChunk listElement = (FourByteChunk)this._records[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfRecords")] - public uint NumberOfRecords - { - get - { - return this._numberOfRecords; - } - - set - { - this._numberOfRecords = value; - } - } - - /// - /// Gets or sets the variable length list of 32 bit records - /// - [XmlElement(ElementName = "recordsList", Type = typeof(List))] - public List Records - { - get - { - return this._records; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._records.Count); - - for (int idx = 0; idx < this._records.Count; idx++) - { - FourByteChunk aFourByteChunk = (FourByteChunk)this._records[idx]; - aFourByteChunk.Marshal(dos); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._numberOfRecords = dis.ReadUnsignedInt(); - for (int idx = 0; idx < this.NumberOfRecords; idx++) - { - FourByteChunk anX = new FourByteChunk(); - anX.Unmarshal(dis); - this._records.Add(anX); - }; - - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._records.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._records.Count; idx++) - { - sb.AppendLine(""); - FourByteChunk aFourByteChunk = (FourByteChunk)this._records[idx]; - aFourByteChunk.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as RecordQuerySpecification; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(RecordQuerySpecification obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._numberOfRecords != obj._numberOfRecords) - { - ivarsEqual = false; - } - - if (this._records.Count != obj._records.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._records.Count; idx++) - { - if (!this._records[idx].Equals(obj._records[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._numberOfRecords.GetHashCode(); - - if (this._records.Count > 0) - { - for (int idx = 0; idx < this._records.Count; idx++) - { - result = GenerateHash(result) ^ this._records[idx].GetHashCode(); - } - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/RecordSpecification.cs b/Libs/CSharpDis7/RecordSpecification.cs deleted file mode 100644 index b8404bc..0000000 --- a/Libs/CSharpDis7/RecordSpecification.cs +++ /dev/null @@ -1,348 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// This record shall specify the number of record sets contained in the Record Specification record and the record details. Section 6.2.72. - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(RecordSpecificationElement))] - public partial class RecordSpecification - { - /// - /// The number of record sets - /// - private uint _numberOfRecordSets; - - /// - /// variable length list record specifications. - /// - private List _recordSets = new List(); - - /// - /// Initializes a new instance of the class. - /// - public RecordSpecification() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(RecordSpecification left, RecordSpecification right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(RecordSpecification left, RecordSpecification right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._numberOfRecordSets - for (int idx = 0; idx < this._recordSets.Count; idx++) - { - RecordSpecificationElement listElement = (RecordSpecificationElement)this._recordSets[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfRecordSets method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfRecordSets")] - public uint NumberOfRecordSets - { - get - { - return this._numberOfRecordSets; - } - - set - { - this._numberOfRecordSets = value; - } - } - - /// - /// Gets or sets the variable length list record specifications. - /// - [XmlElement(ElementName = "recordSetsList", Type = typeof(List))] - public List RecordSets - { - get - { - return this._recordSets; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._recordSets.Count); - - for (int idx = 0; idx < this._recordSets.Count; idx++) - { - RecordSpecificationElement aRecordSpecificationElement = (RecordSpecificationElement)this._recordSets[idx]; - aRecordSpecificationElement.Marshal(dos); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._numberOfRecordSets = dis.ReadUnsignedInt(); - for (int idx = 0; idx < this.NumberOfRecordSets; idx++) - { - RecordSpecificationElement anX = new RecordSpecificationElement(); - anX.Unmarshal(dis); - this._recordSets.Add(anX); - }; - - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._recordSets.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._recordSets.Count; idx++) - { - sb.AppendLine(""); - RecordSpecificationElement aRecordSpecificationElement = (RecordSpecificationElement)this._recordSets[idx]; - aRecordSpecificationElement.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as RecordSpecification; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(RecordSpecification obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._numberOfRecordSets != obj._numberOfRecordSets) - { - ivarsEqual = false; - } - - if (this._recordSets.Count != obj._recordSets.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._recordSets.Count; idx++) - { - if (!this._recordSets[idx].Equals(obj._recordSets[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._numberOfRecordSets.GetHashCode(); - - if (this._recordSets.Count > 0) - { - for (int idx = 0; idx < this._recordSets.Count; idx++) - { - result = GenerateHash(result) ^ this._recordSets[idx].GetHashCode(); - } - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/RecordSpecificationElement.cs b/Libs/CSharpDis7/RecordSpecificationElement.cs deleted file mode 100644 index 67f348d..0000000 --- a/Libs/CSharpDis7/RecordSpecificationElement.cs +++ /dev/null @@ -1,437 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Synthetic record, made up from section 6.2.72. This is used to acheive a repeating variable list element. - /// - [Serializable] - [XmlRoot] - public partial class RecordSpecificationElement - { - /// - /// the data structure used to convey the parameter values of the record for each record. 32 bit enumeration. - /// - private uint _recordID; - - /// - /// the serial number of the first record in the block of records - /// - private uint _recordSetSerialNumber; - - /// - /// the length, in bits, of the record. Note, bits, not bytes. - /// - private ushort _recordLength; - - /// - /// the number of records included in the record set - /// - private ushort _recordCount; - - /// - /// the concatenated records of the format specified by the Record ID field. The length of this field is the Record Length multiplied by the Record Count, in units of bits. ^^^This is wrong--variable sized data records, bit values. THis MUST be patched after generation. - /// - private ushort _recordValues; - - /// - /// Padding of 0 to 31 unused bits as required for 32-bit alignment of the Record Set field. ^^^This is wrong--variable sized padding. MUST be patched post-code generation - /// - private byte _pad4; - - /// - /// Initializes a new instance of the class. - /// - public RecordSpecificationElement() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(RecordSpecificationElement left, RecordSpecificationElement right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(RecordSpecificationElement left, RecordSpecificationElement right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._recordID - marshalSize += 4; // this._recordSetSerialNumber - marshalSize += 2; // this._recordLength - marshalSize += 2; // this._recordCount - marshalSize += 2; // this._recordValues - marshalSize += 1; // this._pad4 - return marshalSize; - } - - /// - /// Gets or sets the the data structure used to convey the parameter values of the record for each record. 32 bit enumeration. - /// - [XmlElement(Type = typeof(uint), ElementName = "recordID")] - public uint RecordID - { - get - { - return this._recordID; - } - - set - { - this._recordID = value; - } - } - - /// - /// Gets or sets the the serial number of the first record in the block of records - /// - [XmlElement(Type = typeof(uint), ElementName = "recordSetSerialNumber")] - public uint RecordSetSerialNumber - { - get - { - return this._recordSetSerialNumber; - } - - set - { - this._recordSetSerialNumber = value; - } - } - - /// - /// Gets or sets the the length, in bits, of the record. Note, bits, not bytes. - /// - [XmlElement(Type = typeof(ushort), ElementName = "recordLength")] - public ushort RecordLength - { - get - { - return this._recordLength; - } - - set - { - this._recordLength = value; - } - } - - /// - /// Gets or sets the the number of records included in the record set - /// - [XmlElement(Type = typeof(ushort), ElementName = "recordCount")] - public ushort RecordCount - { - get - { - return this._recordCount; - } - - set - { - this._recordCount = value; - } - } - - /// - /// Gets or sets the the concatenated records of the format specified by the Record ID field. The length of this field is the Record Length multiplied by the Record Count, in units of bits. ^^^This is wrong--variable sized data records, bit values. THis MUST be patched after generation. - /// - [XmlElement(Type = typeof(ushort), ElementName = "recordValues")] - public ushort RecordValues - { - get - { - return this._recordValues; - } - - set - { - this._recordValues = value; - } - } - - /// - /// Gets or sets the Padding of 0 to 31 unused bits as required for 32-bit alignment of the Record Set field. ^^^This is wrong--variable sized padding. MUST be patched post-code generation - /// - [XmlElement(Type = typeof(byte), ElementName = "pad4")] - public byte Pad4 - { - get - { - return this._pad4; - } - - set - { - this._pad4 = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._recordID); - dos.WriteUnsignedInt((uint)this._recordSetSerialNumber); - dos.WriteUnsignedShort((ushort)this._recordLength); - dos.WriteUnsignedShort((ushort)this._recordCount); - dos.WriteUnsignedShort((ushort)this._recordValues); - dos.WriteUnsignedByte((byte)this._pad4); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._recordID = dis.ReadUnsignedInt(); - this._recordSetSerialNumber = dis.ReadUnsignedInt(); - this._recordLength = dis.ReadUnsignedShort(); - this._recordCount = dis.ReadUnsignedShort(); - this._recordValues = dis.ReadUnsignedShort(); - this._pad4 = dis.ReadUnsignedByte(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._recordID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._recordSetSerialNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._recordLength.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._recordCount.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._recordValues.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad4.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as RecordSpecificationElement; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(RecordSpecificationElement obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._recordID != obj._recordID) - { - ivarsEqual = false; - } - - if (this._recordSetSerialNumber != obj._recordSetSerialNumber) - { - ivarsEqual = false; - } - - if (this._recordLength != obj._recordLength) - { - ivarsEqual = false; - } - - if (this._recordCount != obj._recordCount) - { - ivarsEqual = false; - } - - if (this._recordValues != obj._recordValues) - { - ivarsEqual = false; - } - - if (this._pad4 != obj._pad4) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._recordID.GetHashCode(); - result = GenerateHash(result) ^ this._recordSetSerialNumber.GetHashCode(); - result = GenerateHash(result) ^ this._recordLength.GetHashCode(); - result = GenerateHash(result) ^ this._recordCount.GetHashCode(); - result = GenerateHash(result) ^ this._recordValues.GetHashCode(); - result = GenerateHash(result) ^ this._pad4.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/Relationship.cs b/Libs/CSharpDis7/Relationship.cs deleted file mode 100644 index 025cc14..0000000 --- a/Libs/CSharpDis7/Relationship.cs +++ /dev/null @@ -1,309 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// The relationship of the part entity to its host entity. Section 6.2.73. - /// - [Serializable] - [XmlRoot] - public partial class Relationship - { - /// - /// the nature or purpose for joining of the part entity to the host entity and shall be represented by a 16-bit enumeration - /// - private ushort _nature; - - /// - /// the position of the part entity with respect to the host entity and shall be represented by a 16-bit enumeration - /// - private ushort _position; - - /// - /// Initializes a new instance of the class. - /// - public Relationship() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(Relationship left, Relationship right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(Relationship left, Relationship right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 2; // this._nature - marshalSize += 2; // this._position - return marshalSize; - } - - /// - /// Gets or sets the the nature or purpose for joining of the part entity to the host entity and shall be represented by a 16-bit enumeration - /// - [XmlElement(Type = typeof(ushort), ElementName = "nature")] - public ushort Nature - { - get - { - return this._nature; - } - - set - { - this._nature = value; - } - } - - /// - /// Gets or sets the the position of the part entity with respect to the host entity and shall be represented by a 16-bit enumeration - /// - [XmlElement(Type = typeof(ushort), ElementName = "position")] - public ushort Position - { - get - { - return this._position; - } - - set - { - this._position = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._nature); - dos.WriteUnsignedShort((ushort)this._position); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._nature = dis.ReadUnsignedShort(); - this._position = dis.ReadUnsignedShort(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._nature.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._position.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as Relationship; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(Relationship obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._nature != obj._nature) - { - ivarsEqual = false; - } - - if (this._position != obj._position) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._nature.GetHashCode(); - result = GenerateHash(result) ^ this._position.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/RemoveEntityPdu.cs b/Libs/CSharpDis7/RemoveEntityPdu.cs deleted file mode 100644 index fa02d58..0000000 --- a/Libs/CSharpDis7/RemoveEntityPdu.cs +++ /dev/null @@ -1,350 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Section 7.5.3 The removal of an entity from an exercise shall be communicated with a Remove Entity PDU. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - public partial class RemoveEntityPdu : SimulationManagementFamilyPdu, IEquatable - { - /// - /// Identifier for originating entity(or simulation) - /// - private EntityID _originatingID = new EntityID(); - - /// - /// Identifier for the receiving entity(or simulation) - /// - private EntityID _receivingID = new EntityID(); - - /// - /// This field shall identify the specific and unique start/resume request being made by the SM - /// - private uint _requestID; - - /// - /// Initializes a new instance of the class. - /// - public RemoveEntityPdu() - { - PduType = (byte)12; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(RemoveEntityPdu left, RemoveEntityPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(RemoveEntityPdu left, RemoveEntityPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._originatingID.GetMarshalledSize(); // this._originatingID - marshalSize += this._receivingID.GetMarshalledSize(); // this._receivingID - marshalSize += 4; // this._requestID - return marshalSize; - } - - /// - /// Gets or sets the Identifier for originating entity(or simulation) - /// - [XmlElement(Type = typeof(EntityID), ElementName = "originatingID")] - public EntityID OriginatingID - { - get - { - return this._originatingID; - } - - set - { - this._originatingID = value; - } - } - - /// - /// Gets or sets the Identifier for the receiving entity(or simulation) - /// - [XmlElement(Type = typeof(EntityID), ElementName = "receivingID")] - public EntityID ReceivingID - { - get - { - return this._receivingID; - } - - set - { - this._receivingID = value; - } - } - - /// - /// Gets or sets the This field shall identify the specific and unique start/resume request being made by the SM - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._originatingID.Marshal(dos); - this._receivingID.Marshal(dos); - dos.WriteUnsignedInt((uint)this._requestID); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._originatingID.Unmarshal(dis); - this._receivingID.Unmarshal(dis); - this._requestID = dis.ReadUnsignedInt(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._originatingID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._receivingID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as RemoveEntityPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(RemoveEntityPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._originatingID.Equals(obj._originatingID)) - { - ivarsEqual = false; - } - - if (!this._receivingID.Equals(obj._receivingID)) - { - ivarsEqual = false; - } - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._originatingID.GetHashCode(); - result = GenerateHash(result) ^ this._receivingID.GetHashCode(); - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/RemoveEntityReliablePdu.cs b/Libs/CSharpDis7/RemoveEntityReliablePdu.cs deleted file mode 100644 index 836e9ff..0000000 --- a/Libs/CSharpDis7/RemoveEntityReliablePdu.cs +++ /dev/null @@ -1,377 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Section 5.3.12.2: Removal of an entity , reliable. COMPLETE - /// - [Serializable] - [XmlRoot] - public partial class RemoveEntityReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable - { - /// - /// level of reliability service used for this transaction - /// - private byte _requiredReliabilityService; - - /// - /// padding - /// - private ushort _pad1; - - /// - /// padding - /// - private byte _pad2; - - /// - /// Request ID - /// - private uint _requestID; - - /// - /// Initializes a new instance of the class. - /// - public RemoveEntityReliablePdu() - { - PduType = (byte)52; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(RemoveEntityReliablePdu left, RemoveEntityReliablePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(RemoveEntityReliablePdu left, RemoveEntityReliablePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 1; // this._requiredReliabilityService - marshalSize += 2; // this._pad1 - marshalSize += 1; // this._pad2 - marshalSize += 4; // this._requestID - return marshalSize; - } - - /// - /// Gets or sets the level of reliability service used for this transaction - /// - [XmlElement(Type = typeof(byte), ElementName = "requiredReliabilityService")] - public byte RequiredReliabilityService - { - get - { - return this._requiredReliabilityService; - } - - set - { - this._requiredReliabilityService = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(ushort), ElementName = "pad1")] - public ushort Pad1 - { - get - { - return this._pad1; - } - - set - { - this._pad1 = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "pad2")] - public byte Pad2 - { - get - { - return this._pad2; - } - - set - { - this._pad2 = value; - } - } - - /// - /// Gets or sets the Request ID - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._requiredReliabilityService); - dos.WriteUnsignedShort((ushort)this._pad1); - dos.WriteUnsignedByte((byte)this._pad2); - dos.WriteUnsignedInt((uint)this._requestID); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._requiredReliabilityService = dis.ReadUnsignedByte(); - this._pad1 = dis.ReadUnsignedShort(); - this._pad2 = dis.ReadUnsignedByte(); - this._requestID = dis.ReadUnsignedInt(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._requiredReliabilityService.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as RemoveEntityReliablePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(RemoveEntityReliablePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._requiredReliabilityService != obj._requiredReliabilityService) - { - ivarsEqual = false; - } - - if (this._pad1 != obj._pad1) - { - ivarsEqual = false; - } - - if (this._pad2 != obj._pad2) - { - ivarsEqual = false; - } - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._requiredReliabilityService.GetHashCode(); - result = GenerateHash(result) ^ this._pad1.GetHashCode(); - result = GenerateHash(result) ^ this._pad2.GetHashCode(); - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/RepairCompletePdu.cs b/Libs/CSharpDis7/RepairCompletePdu.cs deleted file mode 100644 index 59999d3..0000000 --- a/Libs/CSharpDis7/RepairCompletePdu.cs +++ /dev/null @@ -1,382 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Section 7.4.6. Service Request PDU is received and repair is complete. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - public partial class RepairCompletePdu : LogisticsFamilyPdu, IEquatable - { - /// - /// Entity that is receiving service. See 6.2.28 - /// - private EntityID _receivingEntityID = new EntityID(); - - /// - /// Entity that is supplying. See 6.2.28 - /// - private EntityID _repairingEntityID = new EntityID(); - - /// - /// Enumeration for type of repair. See 6.2.74 - /// - private ushort _repair; - - /// - /// padding, number prevents conflict with superclass ivar name - /// - private short _padding4; - - /// - /// Initializes a new instance of the class. - /// - public RepairCompletePdu() - { - PduType = (byte)9; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(RepairCompletePdu left, RepairCompletePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(RepairCompletePdu left, RepairCompletePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._receivingEntityID.GetMarshalledSize(); // this._receivingEntityID - marshalSize += this._repairingEntityID.GetMarshalledSize(); // this._repairingEntityID - marshalSize += 2; // this._repair - marshalSize += 2; // this._padding4 - return marshalSize; - } - - /// - /// Gets or sets the Entity that is receiving service. See 6.2.28 - /// - [XmlElement(Type = typeof(EntityID), ElementName = "receivingEntityID")] - public EntityID ReceivingEntityID - { - get - { - return this._receivingEntityID; - } - - set - { - this._receivingEntityID = value; - } - } - - /// - /// Gets or sets the Entity that is supplying. See 6.2.28 - /// - [XmlElement(Type = typeof(EntityID), ElementName = "repairingEntityID")] - public EntityID RepairingEntityID - { - get - { - return this._repairingEntityID; - } - - set - { - this._repairingEntityID = value; - } - } - - /// - /// Gets or sets the Enumeration for type of repair. See 6.2.74 - /// - [XmlElement(Type = typeof(ushort), ElementName = "repair")] - public ushort Repair - { - get - { - return this._repair; - } - - set - { - this._repair = value; - } - } - - /// - /// Gets or sets the padding, number prevents conflict with superclass ivar name - /// - [XmlElement(Type = typeof(short), ElementName = "padding4")] - public short Padding4 - { - get - { - return this._padding4; - } - - set - { - this._padding4 = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._receivingEntityID.Marshal(dos); - this._repairingEntityID.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._repair); - dos.WriteShort((short)this._padding4); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._receivingEntityID.Unmarshal(dis); - this._repairingEntityID.Unmarshal(dis); - this._repair = dis.ReadUnsignedShort(); - this._padding4 = dis.ReadShort(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._receivingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._repairingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._repair.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding4.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as RepairCompletePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(RepairCompletePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._receivingEntityID.Equals(obj._receivingEntityID)) - { - ivarsEqual = false; - } - - if (!this._repairingEntityID.Equals(obj._repairingEntityID)) - { - ivarsEqual = false; - } - - if (this._repair != obj._repair) - { - ivarsEqual = false; - } - - if (this._padding4 != obj._padding4) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._receivingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._repairingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._repair.GetHashCode(); - result = GenerateHash(result) ^ this._padding4.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/RepairResponsePdu.cs b/Libs/CSharpDis7/RepairResponsePdu.cs deleted file mode 100644 index 3976fa1..0000000 --- a/Libs/CSharpDis7/RepairResponsePdu.cs +++ /dev/null @@ -1,414 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Section 7.4.7. Sent after repair complete PDU. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - public partial class RepairResponsePdu : LogisticsFamilyPdu, IEquatable - { - /// - /// Entity that requested repairs. See 6.2.28 - /// - private EntityID _receivingEntityID = new EntityID(); - - /// - /// Entity that is repairing. See 6.2.28 - /// - private EntityID _repairingEntityID = new EntityID(); - - /// - /// Result of repair operation - /// - private byte _repairResult; - - /// - /// padding - /// - private short _padding1; - - /// - /// padding - /// - private byte _padding2; - - /// - /// Initializes a new instance of the class. - /// - public RepairResponsePdu() - { - PduType = (byte)10; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(RepairResponsePdu left, RepairResponsePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(RepairResponsePdu left, RepairResponsePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._receivingEntityID.GetMarshalledSize(); // this._receivingEntityID - marshalSize += this._repairingEntityID.GetMarshalledSize(); // this._repairingEntityID - marshalSize += 1; // this._repairResult - marshalSize += 2; // this._padding1 - marshalSize += 1; // this._padding2 - return marshalSize; - } - - /// - /// Gets or sets the Entity that requested repairs. See 6.2.28 - /// - [XmlElement(Type = typeof(EntityID), ElementName = "receivingEntityID")] - public EntityID ReceivingEntityID - { - get - { - return this._receivingEntityID; - } - - set - { - this._receivingEntityID = value; - } - } - - /// - /// Gets or sets the Entity that is repairing. See 6.2.28 - /// - [XmlElement(Type = typeof(EntityID), ElementName = "repairingEntityID")] - public EntityID RepairingEntityID - { - get - { - return this._repairingEntityID; - } - - set - { - this._repairingEntityID = value; - } - } - - /// - /// Gets or sets the Result of repair operation - /// - [XmlElement(Type = typeof(byte), ElementName = "repairResult")] - public byte RepairResult - { - get - { - return this._repairResult; - } - - set - { - this._repairResult = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(short), ElementName = "padding1")] - public short Padding1 - { - get - { - return this._padding1; - } - - set - { - this._padding1 = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "padding2")] - public byte Padding2 - { - get - { - return this._padding2; - } - - set - { - this._padding2 = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._receivingEntityID.Marshal(dos); - this._repairingEntityID.Marshal(dos); - dos.WriteUnsignedByte((byte)this._repairResult); - dos.WriteShort((short)this._padding1); - dos.WriteByte((byte)this._padding2); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._receivingEntityID.Unmarshal(dis); - this._repairingEntityID.Unmarshal(dis); - this._repairResult = dis.ReadUnsignedByte(); - this._padding1 = dis.ReadShort(); - this._padding2 = dis.ReadByte(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._receivingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._repairingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._repairResult.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as RepairResponsePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(RepairResponsePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._receivingEntityID.Equals(obj._receivingEntityID)) - { - ivarsEqual = false; - } - - if (!this._repairingEntityID.Equals(obj._repairingEntityID)) - { - ivarsEqual = false; - } - - if (this._repairResult != obj._repairResult) - { - ivarsEqual = false; - } - - if (this._padding1 != obj._padding1) - { - ivarsEqual = false; - } - - if (this._padding2 != obj._padding2) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._receivingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._repairingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._repairResult.GetHashCode(); - result = GenerateHash(result) ^ this._padding1.GetHashCode(); - result = GenerateHash(result) ^ this._padding2.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/ResupplyOfferPdu.cs b/Libs/CSharpDis7/ResupplyOfferPdu.cs deleted file mode 100644 index 52bc92d..0000000 --- a/Libs/CSharpDis7/ResupplyOfferPdu.cs +++ /dev/null @@ -1,485 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Information used to communicate the offer of supplies by a supplying entity to a receiving entity. Section 7.4.3 COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(SupplyQuantity))] - public partial class ResupplyOfferPdu : LogisticsFamilyPdu, IEquatable - { - /// - /// Field identifies the Entity and respective Entity Record ID that is receiving service (see 6.2.28), Section 7.4.3 - /// - private EntityID _receivingEntityID = new EntityID(); - - /// - /// Identifies the Entity and respective Entity ID Record that is supplying (see 6.2.28), Section 7.4.3 - /// - private EntityID _supplyingEntityID = new EntityID(); - - /// - /// How many supplies types are being offered, Section 7.4.3 - /// - private byte _numberOfSupplyTypes; - - /// - /// padding - /// - private byte _padding1; - - /// - /// padding - /// - private short _padding2; - - /// - /// A Reord that Specifies the type of supply and the amount of that supply for each of the supply types in numberOfSupplyTypes (see 6.2.85), Section 7.4.3 - /// - private List _supplies = new List(); - - /// - /// Initializes a new instance of the class. - /// - public ResupplyOfferPdu() - { - PduType = (byte)6; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ResupplyOfferPdu left, ResupplyOfferPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ResupplyOfferPdu left, ResupplyOfferPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._receivingEntityID.GetMarshalledSize(); // this._receivingEntityID - marshalSize += this._supplyingEntityID.GetMarshalledSize(); // this._supplyingEntityID - marshalSize += 1; // this._numberOfSupplyTypes - marshalSize += 1; // this._padding1 - marshalSize += 2; // this._padding2 - for (int idx = 0; idx < this._supplies.Count; idx++) - { - SupplyQuantity listElement = (SupplyQuantity)this._supplies[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Field identifies the Entity and respective Entity Record ID that is receiving service (see 6.2.28), Section 7.4.3 - /// - [XmlElement(Type = typeof(EntityID), ElementName = "receivingEntityID")] - public EntityID ReceivingEntityID - { - get - { - return this._receivingEntityID; - } - - set - { - this._receivingEntityID = value; - } - } - - /// - /// Gets or sets the Identifies the Entity and respective Entity ID Record that is supplying (see 6.2.28), Section 7.4.3 - /// - [XmlElement(Type = typeof(EntityID), ElementName = "supplyingEntityID")] - public EntityID SupplyingEntityID - { - get - { - return this._supplyingEntityID; - } - - set - { - this._supplyingEntityID = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfSupplyTypes method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfSupplyTypes")] - public byte NumberOfSupplyTypes - { - get - { - return this._numberOfSupplyTypes; - } - - set - { - this._numberOfSupplyTypes = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "padding1")] - public byte Padding1 - { - get - { - return this._padding1; - } - - set - { - this._padding1 = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(short), ElementName = "padding2")] - public short Padding2 - { - get - { - return this._padding2; - } - - set - { - this._padding2 = value; - } - } - - /// - /// Gets or sets the A Reord that Specifies the type of supply and the amount of that supply for each of the supply types in numberOfSupplyTypes (see 6.2.85), Section 7.4.3 - /// - [XmlElement(ElementName = "suppliesList", Type = typeof(List))] - public List Supplies - { - get - { - return this._supplies; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._receivingEntityID.Marshal(dos); - this._supplyingEntityID.Marshal(dos); - dos.WriteUnsignedByte((byte)this._supplies.Count); - dos.WriteByte((byte)this._padding1); - dos.WriteShort((short)this._padding2); - - for (int idx = 0; idx < this._supplies.Count; idx++) - { - SupplyQuantity aSupplyQuantity = (SupplyQuantity)this._supplies[idx]; - aSupplyQuantity.Marshal(dos); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._receivingEntityID.Unmarshal(dis); - this._supplyingEntityID.Unmarshal(dis); - this._numberOfSupplyTypes = dis.ReadUnsignedByte(); - this._padding1 = dis.ReadByte(); - this._padding2 = dis.ReadShort(); - for (int idx = 0; idx < this.NumberOfSupplyTypes; idx++) - { - SupplyQuantity anX = new SupplyQuantity(); - anX.Unmarshal(dis); - this._supplies.Add(anX); - }; - - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._receivingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._supplyingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._supplies.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._supplies.Count; idx++) - { - sb.AppendLine(""); - SupplyQuantity aSupplyQuantity = (SupplyQuantity)this._supplies[idx]; - aSupplyQuantity.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ResupplyOfferPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ResupplyOfferPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._receivingEntityID.Equals(obj._receivingEntityID)) - { - ivarsEqual = false; - } - - if (!this._supplyingEntityID.Equals(obj._supplyingEntityID)) - { - ivarsEqual = false; - } - - if (this._numberOfSupplyTypes != obj._numberOfSupplyTypes) - { - ivarsEqual = false; - } - - if (this._padding1 != obj._padding1) - { - ivarsEqual = false; - } - - if (this._padding2 != obj._padding2) - { - ivarsEqual = false; - } - - if (this._supplies.Count != obj._supplies.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._supplies.Count; idx++) - { - if (!this._supplies[idx].Equals(obj._supplies[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._receivingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._supplyingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfSupplyTypes.GetHashCode(); - result = GenerateHash(result) ^ this._padding1.GetHashCode(); - result = GenerateHash(result) ^ this._padding2.GetHashCode(); - - if (this._supplies.Count > 0) - { - for (int idx = 0; idx < this._supplies.Count; idx++) - { - result = GenerateHash(result) ^ this._supplies[idx].GetHashCode(); - } - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/ResupplyReceivedPdu.cs b/Libs/CSharpDis7/ResupplyReceivedPdu.cs deleted file mode 100644 index db6d460..0000000 --- a/Libs/CSharpDis7/ResupplyReceivedPdu.cs +++ /dev/null @@ -1,485 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Section 7.4.4. Receipt of supplies is communicated by issuing Resupply Received PDU. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(SupplyQuantity))] - public partial class ResupplyReceivedPdu : LogisticsFamilyPdu, IEquatable - { - /// - /// Entity that is receiving service. Shall be represented by Entity Identifier record (see 6.2.28) - /// - private EntityID _receivingEntityID = new EntityID(); - - /// - /// Entity that is supplying. Shall be represented by Entity Identifier record (see 6.2.28) - /// - private EntityID _supplyingEntityID = new EntityID(); - - /// - /// How many supplies are taken by receiving entity - /// - private byte _numberOfSupplyTypes; - - /// - /// padding - /// - private short _padding1; - - /// - /// padding - /// - private byte _padding2; - - /// - /// Type and amount of supplies for each specified supply type. See 6.2.85 for supply quantity record. - /// - private List _supplies = new List(); - - /// - /// Initializes a new instance of the class. - /// - public ResupplyReceivedPdu() - { - PduType = (byte)7; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ResupplyReceivedPdu left, ResupplyReceivedPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ResupplyReceivedPdu left, ResupplyReceivedPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._receivingEntityID.GetMarshalledSize(); // this._receivingEntityID - marshalSize += this._supplyingEntityID.GetMarshalledSize(); // this._supplyingEntityID - marshalSize += 1; // this._numberOfSupplyTypes - marshalSize += 2; // this._padding1 - marshalSize += 1; // this._padding2 - for (int idx = 0; idx < this._supplies.Count; idx++) - { - SupplyQuantity listElement = (SupplyQuantity)this._supplies[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Entity that is receiving service. Shall be represented by Entity Identifier record (see 6.2.28) - /// - [XmlElement(Type = typeof(EntityID), ElementName = "receivingEntityID")] - public EntityID ReceivingEntityID - { - get - { - return this._receivingEntityID; - } - - set - { - this._receivingEntityID = value; - } - } - - /// - /// Gets or sets the Entity that is supplying. Shall be represented by Entity Identifier record (see 6.2.28) - /// - [XmlElement(Type = typeof(EntityID), ElementName = "supplyingEntityID")] - public EntityID SupplyingEntityID - { - get - { - return this._supplyingEntityID; - } - - set - { - this._supplyingEntityID = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfSupplyTypes method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfSupplyTypes")] - public byte NumberOfSupplyTypes - { - get - { - return this._numberOfSupplyTypes; - } - - set - { - this._numberOfSupplyTypes = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(short), ElementName = "padding1")] - public short Padding1 - { - get - { - return this._padding1; - } - - set - { - this._padding1 = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "padding2")] - public byte Padding2 - { - get - { - return this._padding2; - } - - set - { - this._padding2 = value; - } - } - - /// - /// Gets or sets the Type and amount of supplies for each specified supply type. See 6.2.85 for supply quantity record. - /// - [XmlElement(ElementName = "suppliesList", Type = typeof(List))] - public List Supplies - { - get - { - return this._supplies; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._receivingEntityID.Marshal(dos); - this._supplyingEntityID.Marshal(dos); - dos.WriteUnsignedByte((byte)this._supplies.Count); - dos.WriteShort((short)this._padding1); - dos.WriteByte((byte)this._padding2); - - for (int idx = 0; idx < this._supplies.Count; idx++) - { - SupplyQuantity aSupplyQuantity = (SupplyQuantity)this._supplies[idx]; - aSupplyQuantity.Marshal(dos); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._receivingEntityID.Unmarshal(dis); - this._supplyingEntityID.Unmarshal(dis); - this._numberOfSupplyTypes = dis.ReadUnsignedByte(); - this._padding1 = dis.ReadShort(); - this._padding2 = dis.ReadByte(); - for (int idx = 0; idx < this.NumberOfSupplyTypes; idx++) - { - SupplyQuantity anX = new SupplyQuantity(); - anX.Unmarshal(dis); - this._supplies.Add(anX); - }; - - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._receivingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._supplyingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._supplies.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._supplies.Count; idx++) - { - sb.AppendLine(""); - SupplyQuantity aSupplyQuantity = (SupplyQuantity)this._supplies[idx]; - aSupplyQuantity.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ResupplyReceivedPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ResupplyReceivedPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._receivingEntityID.Equals(obj._receivingEntityID)) - { - ivarsEqual = false; - } - - if (!this._supplyingEntityID.Equals(obj._supplyingEntityID)) - { - ivarsEqual = false; - } - - if (this._numberOfSupplyTypes != obj._numberOfSupplyTypes) - { - ivarsEqual = false; - } - - if (this._padding1 != obj._padding1) - { - ivarsEqual = false; - } - - if (this._padding2 != obj._padding2) - { - ivarsEqual = false; - } - - if (this._supplies.Count != obj._supplies.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._supplies.Count; idx++) - { - if (!this._supplies[idx].Equals(obj._supplies[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._receivingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._supplyingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfSupplyTypes.GetHashCode(); - result = GenerateHash(result) ^ this._padding1.GetHashCode(); - result = GenerateHash(result) ^ this._padding2.GetHashCode(); - - if (this._supplies.Count > 0) - { - for (int idx = 0; idx < this._supplies.Count; idx++) - { - result = GenerateHash(result) ^ this._supplies[idx].GetHashCode(); - } - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/SecondaryOperationalData.cs b/Libs/CSharpDis7/SecondaryOperationalData.cs deleted file mode 100644 index 8c65209..0000000 --- a/Libs/CSharpDis7/SecondaryOperationalData.cs +++ /dev/null @@ -1,341 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Additional operational data for an IFF emitting system and the number of IFF Fundamental Parameter Data records Section 6.2.76. - /// - [Serializable] - [XmlRoot] - public partial class SecondaryOperationalData - { - /// - /// additional operational characteristics of the IFF emitting system. Each 8-bit field will vary depending on the system type. - /// - private byte _operationalData1; - - /// - /// additional operational characteristics of the IFF emitting system. Each 8-bit field will vary depending on the system type. - /// - private byte _operationalData2; - - /// - /// the number of IFF Fundamental Parameter Data records that follow - /// - private ushort _numberOfIFFFundamentalParameterRecords; - - /// - /// Initializes a new instance of the class. - /// - public SecondaryOperationalData() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(SecondaryOperationalData left, SecondaryOperationalData right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(SecondaryOperationalData left, SecondaryOperationalData right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._operationalData1 - marshalSize += 1; // this._operationalData2 - marshalSize += 2; // this._numberOfIFFFundamentalParameterRecords - return marshalSize; - } - - /// - /// Gets or sets the additional operational characteristics of the IFF emitting system. Each 8-bit field will vary depending on the system type. - /// - [XmlElement(Type = typeof(byte), ElementName = "operationalData1")] - public byte OperationalData1 - { - get - { - return this._operationalData1; - } - - set - { - this._operationalData1 = value; - } - } - - /// - /// Gets or sets the additional operational characteristics of the IFF emitting system. Each 8-bit field will vary depending on the system type. - /// - [XmlElement(Type = typeof(byte), ElementName = "operationalData2")] - public byte OperationalData2 - { - get - { - return this._operationalData2; - } - - set - { - this._operationalData2 = value; - } - } - - /// - /// Gets or sets the the number of IFF Fundamental Parameter Data records that follow - /// - [XmlElement(Type = typeof(ushort), ElementName = "numberOfIFFFundamentalParameterRecords")] - public ushort NumberOfIFFFundamentalParameterRecords - { - get - { - return this._numberOfIFFFundamentalParameterRecords; - } - - set - { - this._numberOfIFFFundamentalParameterRecords = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._operationalData1); - dos.WriteUnsignedByte((byte)this._operationalData2); - dos.WriteUnsignedShort((ushort)this._numberOfIFFFundamentalParameterRecords); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._operationalData1 = dis.ReadUnsignedByte(); - this._operationalData2 = dis.ReadUnsignedByte(); - this._numberOfIFFFundamentalParameterRecords = dis.ReadUnsignedShort(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._operationalData1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._operationalData2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._numberOfIFFFundamentalParameterRecords.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as SecondaryOperationalData; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(SecondaryOperationalData obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._operationalData1 != obj._operationalData1) - { - ivarsEqual = false; - } - - if (this._operationalData2 != obj._operationalData2) - { - ivarsEqual = false; - } - - if (this._numberOfIFFFundamentalParameterRecords != obj._numberOfIFFFundamentalParameterRecords) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._operationalData1.GetHashCode(); - result = GenerateHash(result) ^ this._operationalData2.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfIFFFundamentalParameterRecords.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/SeesPdu.cs b/Libs/CSharpDis7/SeesPdu.cs deleted file mode 100644 index 75bc0ff..0000000 --- a/Libs/CSharpDis7/SeesPdu.cs +++ /dev/null @@ -1,586 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// SEES PDU, supplemental emissions entity state information. Section 7.6.6 COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(PropulsionSystemData))] - [XmlInclude(typeof(VectoringNozzleSystem))] - public partial class SeesPdu : DistributedEmissionsFamilyPdu, IEquatable - { - /// - /// Originating entity ID - /// - private EntityID _orginatingEntityID = new EntityID(); - - /// - /// IR Signature representation index - /// - private ushort _infraredSignatureRepresentationIndex; - - /// - /// acoustic Signature representation index - /// - private ushort _acousticSignatureRepresentationIndex; - - /// - /// radar cross section representation index - /// - private ushort _radarCrossSectionSignatureRepresentationIndex; - - /// - /// how many propulsion systems - /// - private ushort _numberOfPropulsionSystems; - - /// - /// how many vectoring nozzle systems - /// - private ushort _numberOfVectoringNozzleSystems; - - /// - /// variable length list of propulsion system data - /// - private List _propulsionSystemData = new List(); - - /// - /// variable length list of vectoring system data - /// - private List _vectoringSystemData = new List(); - - /// - /// Initializes a new instance of the class. - /// - public SeesPdu() - { - PduType = (byte)30; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(SeesPdu left, SeesPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(SeesPdu left, SeesPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._orginatingEntityID.GetMarshalledSize(); // this._orginatingEntityID - marshalSize += 2; // this._infraredSignatureRepresentationIndex - marshalSize += 2; // this._acousticSignatureRepresentationIndex - marshalSize += 2; // this._radarCrossSectionSignatureRepresentationIndex - marshalSize += 2; // this._numberOfPropulsionSystems - marshalSize += 2; // this._numberOfVectoringNozzleSystems - for (int idx = 0; idx < this._propulsionSystemData.Count; idx++) - { - PropulsionSystemData listElement = (PropulsionSystemData)this._propulsionSystemData[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._vectoringSystemData.Count; idx++) - { - VectoringNozzleSystem listElement = (VectoringNozzleSystem)this._vectoringSystemData[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Originating entity ID - /// - [XmlElement(Type = typeof(EntityID), ElementName = "orginatingEntityID")] - public EntityID OrginatingEntityID - { - get - { - return this._orginatingEntityID; - } - - set - { - this._orginatingEntityID = value; - } - } - - /// - /// Gets or sets the IR Signature representation index - /// - [XmlElement(Type = typeof(ushort), ElementName = "infraredSignatureRepresentationIndex")] - public ushort InfraredSignatureRepresentationIndex - { - get - { - return this._infraredSignatureRepresentationIndex; - } - - set - { - this._infraredSignatureRepresentationIndex = value; - } - } - - /// - /// Gets or sets the acoustic Signature representation index - /// - [XmlElement(Type = typeof(ushort), ElementName = "acousticSignatureRepresentationIndex")] - public ushort AcousticSignatureRepresentationIndex - { - get - { - return this._acousticSignatureRepresentationIndex; - } - - set - { - this._acousticSignatureRepresentationIndex = value; - } - } - - /// - /// Gets or sets the radar cross section representation index - /// - [XmlElement(Type = typeof(ushort), ElementName = "radarCrossSectionSignatureRepresentationIndex")] - public ushort RadarCrossSectionSignatureRepresentationIndex - { - get - { - return this._radarCrossSectionSignatureRepresentationIndex; - } - - set - { - this._radarCrossSectionSignatureRepresentationIndex = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfPropulsionSystems method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(ushort), ElementName = "numberOfPropulsionSystems")] - public ushort NumberOfPropulsionSystems - { - get - { - return this._numberOfPropulsionSystems; - } - - set - { - this._numberOfPropulsionSystems = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfVectoringNozzleSystems method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(ushort), ElementName = "numberOfVectoringNozzleSystems")] - public ushort NumberOfVectoringNozzleSystems - { - get - { - return this._numberOfVectoringNozzleSystems; - } - - set - { - this._numberOfVectoringNozzleSystems = value; - } - } - - /// - /// Gets or sets the variable length list of propulsion system data - /// - [XmlElement(ElementName = "propulsionSystemDataList", Type = typeof(List))] - public List PropulsionSystemData - { - get - { - return this._propulsionSystemData; - } - } - - /// - /// Gets or sets the variable length list of vectoring system data - /// - [XmlElement(ElementName = "vectoringSystemDataList", Type = typeof(List))] - public List VectoringSystemData - { - get - { - return this._vectoringSystemData; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._orginatingEntityID.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._infraredSignatureRepresentationIndex); - dos.WriteUnsignedShort((ushort)this._acousticSignatureRepresentationIndex); - dos.WriteUnsignedShort((ushort)this._radarCrossSectionSignatureRepresentationIndex); - dos.WriteUnsignedShort((ushort)this._propulsionSystemData.Count); - dos.WriteUnsignedShort((ushort)this._vectoringSystemData.Count); - - for (int idx = 0; idx < this._propulsionSystemData.Count; idx++) - { - PropulsionSystemData aPropulsionSystemData = (PropulsionSystemData)this._propulsionSystemData[idx]; - aPropulsionSystemData.Marshal(dos); - } - - for (int idx = 0; idx < this._vectoringSystemData.Count; idx++) - { - VectoringNozzleSystem aVectoringNozzleSystem = (VectoringNozzleSystem)this._vectoringSystemData[idx]; - aVectoringNozzleSystem.Marshal(dos); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._orginatingEntityID.Unmarshal(dis); - this._infraredSignatureRepresentationIndex = dis.ReadUnsignedShort(); - this._acousticSignatureRepresentationIndex = dis.ReadUnsignedShort(); - this._radarCrossSectionSignatureRepresentationIndex = dis.ReadUnsignedShort(); - this._numberOfPropulsionSystems = dis.ReadUnsignedShort(); - this._numberOfVectoringNozzleSystems = dis.ReadUnsignedShort(); - for (int idx = 0; idx < this.NumberOfPropulsionSystems; idx++) - { - PropulsionSystemData anX = new PropulsionSystemData(); - anX.Unmarshal(dis); - this._propulsionSystemData.Add(anX); - }; - - for (int idx = 0; idx < this.NumberOfVectoringNozzleSystems; idx++) - { - VectoringNozzleSystem anX = new VectoringNozzleSystem(); - anX.Unmarshal(dis); - this._vectoringSystemData.Add(anX); - }; - - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._orginatingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._infraredSignatureRepresentationIndex.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._acousticSignatureRepresentationIndex.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._radarCrossSectionSignatureRepresentationIndex.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._propulsionSystemData.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._vectoringSystemData.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._propulsionSystemData.Count; idx++) - { - sb.AppendLine(""); - PropulsionSystemData aPropulsionSystemData = (PropulsionSystemData)this._propulsionSystemData[idx]; - aPropulsionSystemData.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._vectoringSystemData.Count; idx++) - { - sb.AppendLine(""); - VectoringNozzleSystem aVectoringNozzleSystem = (VectoringNozzleSystem)this._vectoringSystemData[idx]; - aVectoringNozzleSystem.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as SeesPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(SeesPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._orginatingEntityID.Equals(obj._orginatingEntityID)) - { - ivarsEqual = false; - } - - if (this._infraredSignatureRepresentationIndex != obj._infraredSignatureRepresentationIndex) - { - ivarsEqual = false; - } - - if (this._acousticSignatureRepresentationIndex != obj._acousticSignatureRepresentationIndex) - { - ivarsEqual = false; - } - - if (this._radarCrossSectionSignatureRepresentationIndex != obj._radarCrossSectionSignatureRepresentationIndex) - { - ivarsEqual = false; - } - - if (this._numberOfPropulsionSystems != obj._numberOfPropulsionSystems) - { - ivarsEqual = false; - } - - if (this._numberOfVectoringNozzleSystems != obj._numberOfVectoringNozzleSystems) - { - ivarsEqual = false; - } - - if (this._propulsionSystemData.Count != obj._propulsionSystemData.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._propulsionSystemData.Count; idx++) - { - if (!this._propulsionSystemData[idx].Equals(obj._propulsionSystemData[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._vectoringSystemData.Count != obj._vectoringSystemData.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._vectoringSystemData.Count; idx++) - { - if (!this._vectoringSystemData[idx].Equals(obj._vectoringSystemData[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._orginatingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._infraredSignatureRepresentationIndex.GetHashCode(); - result = GenerateHash(result) ^ this._acousticSignatureRepresentationIndex.GetHashCode(); - result = GenerateHash(result) ^ this._radarCrossSectionSignatureRepresentationIndex.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfPropulsionSystems.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfVectoringNozzleSystems.GetHashCode(); - - if (this._propulsionSystemData.Count > 0) - { - for (int idx = 0; idx < this._propulsionSystemData.Count; idx++) - { - result = GenerateHash(result) ^ this._propulsionSystemData[idx].GetHashCode(); - } - } - - if (this._vectoringSystemData.Count > 0) - { - for (int idx = 0; idx < this._vectoringSystemData.Count; idx++) - { - result = GenerateHash(result) ^ this._vectoringSystemData[idx].GetHashCode(); - } - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/Sensor.cs b/Libs/CSharpDis7/Sensor.cs deleted file mode 100644 index e6efef8..0000000 --- a/Libs/CSharpDis7/Sensor.cs +++ /dev/null @@ -1,437 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// An entity's sensor information. Section 6.2.77. - /// - [Serializable] - [XmlRoot] - public partial class Sensor - { - /// - /// the source of the Sensor Type field - /// - private byte _sensorTypeSource; - - /// - /// the on/off status of the sensor - /// - private byte _sensorOnOffStatus; - - /// - /// the sensor type and shall be represented by a 16-bit enumeration. - /// - private ushort _sensorType; - - /// - /// the station to which the sensor is assigned. A zero value shall indi- cate that this Sensor record is not associated with any particular station and represents the total quan- tity of this sensor for this entity. If this field is non-zero, it shall either reference an attached part or an articulated part - /// - private uint _station; - - /// - /// quantity of the sensor - /// - private ushort _quantity; - - /// - /// padding - /// - private ushort _padding; - - /// - /// Initializes a new instance of the class. - /// - public Sensor() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(Sensor left, Sensor right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(Sensor left, Sensor right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._sensorTypeSource - marshalSize += 1; // this._sensorOnOffStatus - marshalSize += 2; // this._sensorType - marshalSize += 4; // this._station - marshalSize += 2; // this._quantity - marshalSize += 2; // this._padding - return marshalSize; - } - - /// - /// Gets or sets the the source of the Sensor Type field - /// - [XmlElement(Type = typeof(byte), ElementName = "sensorTypeSource")] - public byte SensorTypeSource - { - get - { - return this._sensorTypeSource; - } - - set - { - this._sensorTypeSource = value; - } - } - - /// - /// Gets or sets the the on/off status of the sensor - /// - [XmlElement(Type = typeof(byte), ElementName = "sensorOnOffStatus")] - public byte SensorOnOffStatus - { - get - { - return this._sensorOnOffStatus; - } - - set - { - this._sensorOnOffStatus = value; - } - } - - /// - /// Gets or sets the the sensor type and shall be represented by a 16-bit enumeration. - /// - [XmlElement(Type = typeof(ushort), ElementName = "sensorType")] - public ushort SensorType - { - get - { - return this._sensorType; - } - - set - { - this._sensorType = value; - } - } - - /// - /// Gets or sets the the station to which the sensor is assigned. A zero value shall indi- cate that this Sensor record is not associated with any particular station and represents the total quan- tity of this sensor for this entity. If this field is non-zero, it shall either reference an attached part or an articulated part - /// - [XmlElement(Type = typeof(uint), ElementName = "station")] - public uint Station - { - get - { - return this._station; - } - - set - { - this._station = value; - } - } - - /// - /// Gets or sets the quantity of the sensor - /// - [XmlElement(Type = typeof(ushort), ElementName = "quantity")] - public ushort Quantity - { - get - { - return this._quantity; - } - - set - { - this._quantity = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(ushort), ElementName = "padding")] - public ushort Padding - { - get - { - return this._padding; - } - - set - { - this._padding = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._sensorTypeSource); - dos.WriteUnsignedByte((byte)this._sensorOnOffStatus); - dos.WriteUnsignedShort((ushort)this._sensorType); - dos.WriteUnsignedInt((uint)this._station); - dos.WriteUnsignedShort((ushort)this._quantity); - dos.WriteUnsignedShort((ushort)this._padding); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._sensorTypeSource = dis.ReadUnsignedByte(); - this._sensorOnOffStatus = dis.ReadUnsignedByte(); - this._sensorType = dis.ReadUnsignedShort(); - this._station = dis.ReadUnsignedInt(); - this._quantity = dis.ReadUnsignedShort(); - this._padding = dis.ReadUnsignedShort(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._sensorTypeSource.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._sensorOnOffStatus.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._sensorType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._station.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._quantity.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as Sensor; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(Sensor obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._sensorTypeSource != obj._sensorTypeSource) - { - ivarsEqual = false; - } - - if (this._sensorOnOffStatus != obj._sensorOnOffStatus) - { - ivarsEqual = false; - } - - if (this._sensorType != obj._sensorType) - { - ivarsEqual = false; - } - - if (this._station != obj._station) - { - ivarsEqual = false; - } - - if (this._quantity != obj._quantity) - { - ivarsEqual = false; - } - - if (this._padding != obj._padding) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._sensorTypeSource.GetHashCode(); - result = GenerateHash(result) ^ this._sensorOnOffStatus.GetHashCode(); - result = GenerateHash(result) ^ this._sensorType.GetHashCode(); - result = GenerateHash(result) ^ this._station.GetHashCode(); - result = GenerateHash(result) ^ this._quantity.GetHashCode(); - result = GenerateHash(result) ^ this._padding.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/SeparationVP.cs b/Libs/CSharpDis7/SeparationVP.cs deleted file mode 100644 index 00a6a2f..0000000 --- a/Libs/CSharpDis7/SeparationVP.cs +++ /dev/null @@ -1,472 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Physical separation of an entity from another entity. Section 6.2.93.6 - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - public partial class SeparationVP - { - /// - /// the identification of the Variable Parameter record. Enumeration from EBV - /// - private byte _recordType = 4; - - /// - /// Reason for separation. EBV - /// - private byte _reasonForSeparation; - - /// - /// Whether the entity existed prior to separation EBV - /// - private byte _preEntityIndicator; - - /// - /// padding - /// - private byte _padding1; - - /// - /// ID of parent - /// - private EntityID _parentEntityID = new EntityID(); - - /// - /// padding - /// - private ushort _padding2; - - /// - /// Station separated from - /// - private uint _stationLocation; - - /// - /// Initializes a new instance of the class. - /// - public SeparationVP() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(SeparationVP left, SeparationVP right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(SeparationVP left, SeparationVP right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._recordType - marshalSize += 1; // this._reasonForSeparation - marshalSize += 1; // this._preEntityIndicator - marshalSize += 1; // this._padding1 - marshalSize += this._parentEntityID.GetMarshalledSize(); // this._parentEntityID - marshalSize += 2; // this._padding2 - marshalSize += 4; // this._stationLocation - return marshalSize; - } - - /// - /// Gets or sets the the identification of the Variable Parameter record. Enumeration from EBV - /// - [XmlElement(Type = typeof(byte), ElementName = "recordType")] - public byte RecordType - { - get - { - return this._recordType; - } - - set - { - this._recordType = value; - } - } - - /// - /// Gets or sets the Reason for separation. EBV - /// - [XmlElement(Type = typeof(byte), ElementName = "reasonForSeparation")] - public byte ReasonForSeparation - { - get - { - return this._reasonForSeparation; - } - - set - { - this._reasonForSeparation = value; - } - } - - /// - /// Gets or sets the Whether the entity existed prior to separation EBV - /// - [XmlElement(Type = typeof(byte), ElementName = "preEntityIndicator")] - public byte PreEntityIndicator - { - get - { - return this._preEntityIndicator; - } - - set - { - this._preEntityIndicator = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "padding1")] - public byte Padding1 - { - get - { - return this._padding1; - } - - set - { - this._padding1 = value; - } - } - - /// - /// Gets or sets the ID of parent - /// - [XmlElement(Type = typeof(EntityID), ElementName = "parentEntityID")] - public EntityID ParentEntityID - { - get - { - return this._parentEntityID; - } - - set - { - this._parentEntityID = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(ushort), ElementName = "padding2")] - public ushort Padding2 - { - get - { - return this._padding2; - } - - set - { - this._padding2 = value; - } - } - - /// - /// Gets or sets the Station separated from - /// - [XmlElement(Type = typeof(uint), ElementName = "stationLocation")] - public uint StationLocation - { - get - { - return this._stationLocation; - } - - set - { - this._stationLocation = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._recordType); - dos.WriteUnsignedByte((byte)this._reasonForSeparation); - dos.WriteUnsignedByte((byte)this._preEntityIndicator); - dos.WriteUnsignedByte((byte)this._padding1); - this._parentEntityID.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._padding2); - dos.WriteUnsignedInt((uint)this._stationLocation); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._recordType = dis.ReadUnsignedByte(); - this._reasonForSeparation = dis.ReadUnsignedByte(); - this._preEntityIndicator = dis.ReadUnsignedByte(); - this._padding1 = dis.ReadUnsignedByte(); - this._parentEntityID.Unmarshal(dis); - this._padding2 = dis.ReadUnsignedShort(); - this._stationLocation = dis.ReadUnsignedInt(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._recordType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._reasonForSeparation.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._preEntityIndicator.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._parentEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._stationLocation.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as SeparationVP; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(SeparationVP obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._recordType != obj._recordType) - { - ivarsEqual = false; - } - - if (this._reasonForSeparation != obj._reasonForSeparation) - { - ivarsEqual = false; - } - - if (this._preEntityIndicator != obj._preEntityIndicator) - { - ivarsEqual = false; - } - - if (this._padding1 != obj._padding1) - { - ivarsEqual = false; - } - - if (!this._parentEntityID.Equals(obj._parentEntityID)) - { - ivarsEqual = false; - } - - if (this._padding2 != obj._padding2) - { - ivarsEqual = false; - } - - if (this._stationLocation != obj._stationLocation) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._recordType.GetHashCode(); - result = GenerateHash(result) ^ this._reasonForSeparation.GetHashCode(); - result = GenerateHash(result) ^ this._preEntityIndicator.GetHashCode(); - result = GenerateHash(result) ^ this._padding1.GetHashCode(); - result = GenerateHash(result) ^ this._parentEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._padding2.GetHashCode(); - result = GenerateHash(result) ^ this._stationLocation.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/ServiceRequestPdu.cs b/Libs/CSharpDis7/ServiceRequestPdu.cs deleted file mode 100644 index 3740c90..0000000 --- a/Libs/CSharpDis7/ServiceRequestPdu.cs +++ /dev/null @@ -1,479 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Service Request PDU shall be used to communicate information associated with one entity requesting a service from another). Section 7.4.2 COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(SupplyQuantity))] - public partial class ServiceRequestPdu : LogisticsFamilyPdu, IEquatable - { - /// - /// Entity that is requesting service (see 6.2.28), Section 7.4.2 - /// - private EntityID _requestingEntityID = new EntityID(); - - /// - /// Entity that is providing the service (see 6.2.28), Section 7.4.2 - /// - private EntityID _servicingEntityID = new EntityID(); - - /// - /// Type of service requested, Section 7.4.2 - /// - private byte _serviceTypeRequested; - - /// - /// How many requested, Section 7.4.2 - /// - private byte _numberOfSupplyTypes; - - /// - /// padding - /// - private short _serviceRequestPadding; - - private List _supplies = new List(); - - /// - /// Initializes a new instance of the class. - /// - public ServiceRequestPdu() - { - PduType = (byte)5; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ServiceRequestPdu left, ServiceRequestPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ServiceRequestPdu left, ServiceRequestPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._requestingEntityID.GetMarshalledSize(); // this._requestingEntityID - marshalSize += this._servicingEntityID.GetMarshalledSize(); // this._servicingEntityID - marshalSize += 1; // this._serviceTypeRequested - marshalSize += 1; // this._numberOfSupplyTypes - marshalSize += 2; // this._serviceRequestPadding - for (int idx = 0; idx < this._supplies.Count; idx++) - { - SupplyQuantity listElement = (SupplyQuantity)this._supplies[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Entity that is requesting service (see 6.2.28), Section 7.4.2 - /// - [XmlElement(Type = typeof(EntityID), ElementName = "requestingEntityID")] - public EntityID RequestingEntityID - { - get - { - return this._requestingEntityID; - } - - set - { - this._requestingEntityID = value; - } - } - - /// - /// Gets or sets the Entity that is providing the service (see 6.2.28), Section 7.4.2 - /// - [XmlElement(Type = typeof(EntityID), ElementName = "servicingEntityID")] - public EntityID ServicingEntityID - { - get - { - return this._servicingEntityID; - } - - set - { - this._servicingEntityID = value; - } - } - - /// - /// Gets or sets the Type of service requested, Section 7.4.2 - /// - [XmlElement(Type = typeof(byte), ElementName = "serviceTypeRequested")] - public byte ServiceTypeRequested - { - get - { - return this._serviceTypeRequested; - } - - set - { - this._serviceTypeRequested = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfSupplyTypes method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfSupplyTypes")] - public byte NumberOfSupplyTypes - { - get - { - return this._numberOfSupplyTypes; - } - - set - { - this._numberOfSupplyTypes = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(short), ElementName = "serviceRequestPadding")] - public short ServiceRequestPadding - { - get - { - return this._serviceRequestPadding; - } - - set - { - this._serviceRequestPadding = value; - } - } - - [XmlElement(ElementName = "suppliesList", Type = typeof(List))] - public List Supplies - { - get - { - return this._supplies; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._requestingEntityID.Marshal(dos); - this._servicingEntityID.Marshal(dos); - dos.WriteUnsignedByte((byte)this._serviceTypeRequested); - dos.WriteUnsignedByte((byte)this._supplies.Count); - dos.WriteShort((short)this._serviceRequestPadding); - - for (int idx = 0; idx < this._supplies.Count; idx++) - { - SupplyQuantity aSupplyQuantity = (SupplyQuantity)this._supplies[idx]; - aSupplyQuantity.Marshal(dos); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._requestingEntityID.Unmarshal(dis); - this._servicingEntityID.Unmarshal(dis); - this._serviceTypeRequested = dis.ReadUnsignedByte(); - this._numberOfSupplyTypes = dis.ReadUnsignedByte(); - this._serviceRequestPadding = dis.ReadShort(); - for (int idx = 0; idx < this.NumberOfSupplyTypes; idx++) - { - SupplyQuantity anX = new SupplyQuantity(); - anX.Unmarshal(dis); - this._supplies.Add(anX); - }; - - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._requestingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._servicingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._serviceTypeRequested.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._supplies.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._serviceRequestPadding.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._supplies.Count; idx++) - { - sb.AppendLine(""); - SupplyQuantity aSupplyQuantity = (SupplyQuantity)this._supplies[idx]; - aSupplyQuantity.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ServiceRequestPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ServiceRequestPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._requestingEntityID.Equals(obj._requestingEntityID)) - { - ivarsEqual = false; - } - - if (!this._servicingEntityID.Equals(obj._servicingEntityID)) - { - ivarsEqual = false; - } - - if (this._serviceTypeRequested != obj._serviceTypeRequested) - { - ivarsEqual = false; - } - - if (this._numberOfSupplyTypes != obj._numberOfSupplyTypes) - { - ivarsEqual = false; - } - - if (this._serviceRequestPadding != obj._serviceRequestPadding) - { - ivarsEqual = false; - } - - if (this._supplies.Count != obj._supplies.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._supplies.Count; idx++) - { - if (!this._supplies[idx].Equals(obj._supplies[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._requestingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._servicingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._serviceTypeRequested.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfSupplyTypes.GetHashCode(); - result = GenerateHash(result) ^ this._serviceRequestPadding.GetHashCode(); - - if (this._supplies.Count > 0) - { - for (int idx = 0; idx < this._supplies.Count; idx++) - { - result = GenerateHash(result) ^ this._supplies[idx].GetHashCode(); - } - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/SetDataPdu.cs b/Libs/CSharpDis7/SetDataPdu.cs deleted file mode 100644 index 906bc69..0000000 --- a/Libs/CSharpDis7/SetDataPdu.cs +++ /dev/null @@ -1,519 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Section 7.5.10. Change state information with the data contained in this. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(FixedDatum))] - [XmlInclude(typeof(VariableDatum))] - public partial class SetDataPdu : SimulationManagementFamilyPdu, IEquatable - { - /// - /// ID of request - /// - private uint _requestID; - - /// - /// padding - /// - private uint _padding1; - - /// - /// Number of fixed datum records - /// - private uint _numberOfFixedDatumRecords; - - /// - /// Number of variable datum records - /// - private uint _numberOfVariableDatumRecords; - - /// - /// variable length list of fixed datums - /// - private List _fixedDatums = new List(); - - /// - /// variable length list of variable length datums - /// - private List _variableDatums = new List(); - - /// - /// Initializes a new instance of the class. - /// - public SetDataPdu() - { - PduType = (byte)19; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(SetDataPdu left, SetDataPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(SetDataPdu left, SetDataPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 4; // this._requestID - marshalSize += 4; // this._padding1 - marshalSize += 4; // this._numberOfFixedDatumRecords - marshalSize += 4; // this._numberOfVariableDatumRecords - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - FixedDatum listElement = (FixedDatum)this._fixedDatums[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - VariableDatum listElement = (VariableDatum)this._variableDatums[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the ID of request - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(uint), ElementName = "padding1")] - public uint Padding1 - { - get - { - return this._padding1; - } - - set - { - this._padding1 = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] - public uint NumberOfFixedDatumRecords - { - get - { - return this._numberOfFixedDatumRecords; - } - - set - { - this._numberOfFixedDatumRecords = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] - public uint NumberOfVariableDatumRecords - { - get - { - return this._numberOfVariableDatumRecords; - } - - set - { - this._numberOfVariableDatumRecords = value; - } - } - - /// - /// Gets or sets the variable length list of fixed datums - /// - [XmlElement(ElementName = "fixedDatumsList", Type = typeof(List))] - public List FixedDatums - { - get - { - return this._fixedDatums; - } - } - - /// - /// Gets or sets the variable length list of variable length datums - /// - [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] - public List VariableDatums - { - get - { - return this._variableDatums; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._requestID); - dos.WriteUnsignedInt((uint)this._padding1); - dos.WriteUnsignedInt((uint)this._fixedDatums.Count); - dos.WriteUnsignedInt((uint)this._variableDatums.Count); - - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; - aFixedDatum.Marshal(dos); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; - aVariableDatum.Marshal(dos); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._requestID = dis.ReadUnsignedInt(); - this._padding1 = dis.ReadUnsignedInt(); - this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); - this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); - for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) - { - FixedDatum anX = new FixedDatum(); - anX.Unmarshal(dis); - this._fixedDatums.Add(anX); - }; - - for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) - { - VariableDatum anX = new VariableDatum(); - anX.Unmarshal(dis); - this._variableDatums.Add(anX); - }; - - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fixedDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - sb.AppendLine(""); - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; - aFixedDatum.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - sb.AppendLine(""); - VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; - aVariableDatum.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as SetDataPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(SetDataPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - if (this._padding1 != obj._padding1) - { - ivarsEqual = false; - } - - if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) - { - ivarsEqual = false; - } - - if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) - { - ivarsEqual = false; - } - - if (this._fixedDatums.Count != obj._fixedDatums.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - if (!this._fixedDatums[idx].Equals(obj._fixedDatums[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._variableDatums.Count != obj._variableDatums.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - result = GenerateHash(result) ^ this._padding1.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); - - if (this._fixedDatums.Count > 0) - { - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - result = GenerateHash(result) ^ this._fixedDatums[idx].GetHashCode(); - } - } - - if (this._variableDatums.Count > 0) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); - } - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/SetDataReliablePdu.cs b/Libs/CSharpDis7/SetDataReliablePdu.cs deleted file mode 100644 index af94644..0000000 --- a/Libs/CSharpDis7/SetDataReliablePdu.cs +++ /dev/null @@ -1,583 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Section 5.3.12.9: initializing or chaning internal state information, reliable. Needs manual intervention to fix padding on variable datums. UNFINISHED - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(FixedDatum))] - [XmlInclude(typeof(VariableDatum))] - public partial class SetDataReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable - { - /// - /// level of reliability service used for this transaction - /// - private byte _requiredReliabilityService; - - /// - /// padding - /// - private ushort _pad1; - - /// - /// padding - /// - private byte _pad2; - - /// - /// Request ID - /// - private uint _requestID; - - /// - /// Fixed datum record count - /// - private uint _numberOfFixedDatumRecords; - - /// - /// variable datum record count - /// - private uint _numberOfVariableDatumRecords; - - /// - /// Fixed datum records - /// - private List _fixedDatumRecords = new List(); - - /// - /// Variable datum records - /// - private List _variableDatumRecords = new List(); - - /// - /// Initializes a new instance of the class. - /// - public SetDataReliablePdu() - { - PduType = (byte)59; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(SetDataReliablePdu left, SetDataReliablePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(SetDataReliablePdu left, SetDataReliablePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 1; // this._requiredReliabilityService - marshalSize += 2; // this._pad1 - marshalSize += 1; // this._pad2 - marshalSize += 4; // this._requestID - marshalSize += 4; // this._numberOfFixedDatumRecords - marshalSize += 4; // this._numberOfVariableDatumRecords - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - FixedDatum listElement = (FixedDatum)this._fixedDatumRecords[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - VariableDatum listElement = (VariableDatum)this._variableDatumRecords[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the level of reliability service used for this transaction - /// - [XmlElement(Type = typeof(byte), ElementName = "requiredReliabilityService")] - public byte RequiredReliabilityService - { - get - { - return this._requiredReliabilityService; - } - - set - { - this._requiredReliabilityService = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(ushort), ElementName = "pad1")] - public ushort Pad1 - { - get - { - return this._pad1; - } - - set - { - this._pad1 = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "pad2")] - public byte Pad2 - { - get - { - return this._pad2; - } - - set - { - this._pad2 = value; - } - } - - /// - /// Gets or sets the Request ID - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] - public uint NumberOfFixedDatumRecords - { - get - { - return this._numberOfFixedDatumRecords; - } - - set - { - this._numberOfFixedDatumRecords = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] - public uint NumberOfVariableDatumRecords - { - get - { - return this._numberOfVariableDatumRecords; - } - - set - { - this._numberOfVariableDatumRecords = value; - } - } - - /// - /// Gets or sets the Fixed datum records - /// - [XmlElement(ElementName = "fixedDatumRecordsList", Type = typeof(List))] - public List FixedDatumRecords - { - get - { - return this._fixedDatumRecords; - } - } - - /// - /// Gets or sets the Variable datum records - /// - [XmlElement(ElementName = "variableDatumRecordsList", Type = typeof(List))] - public List VariableDatumRecords - { - get - { - return this._variableDatumRecords; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._requiredReliabilityService); - dos.WriteUnsignedShort((ushort)this._pad1); - dos.WriteUnsignedByte((byte)this._pad2); - dos.WriteUnsignedInt((uint)this._requestID); - dos.WriteUnsignedInt((uint)this._fixedDatumRecords.Count); - dos.WriteUnsignedInt((uint)this._variableDatumRecords.Count); - - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; - aFixedDatum.Marshal(dos); - } - - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; - aVariableDatum.Marshal(dos); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._requiredReliabilityService = dis.ReadUnsignedByte(); - this._pad1 = dis.ReadUnsignedShort(); - this._pad2 = dis.ReadUnsignedByte(); - this._requestID = dis.ReadUnsignedInt(); - this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); - this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); - for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) - { - FixedDatum anX = new FixedDatum(); - anX.Unmarshal(dis); - this._fixedDatumRecords.Add(anX); - }; - - for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) - { - VariableDatum anX = new VariableDatum(); - anX.Unmarshal(dis); - this._variableDatumRecords.Add(anX); - }; - - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._requiredReliabilityService.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fixedDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - sb.AppendLine(""); - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; - aFixedDatum.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - sb.AppendLine(""); - VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; - aVariableDatum.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as SetDataReliablePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(SetDataReliablePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._requiredReliabilityService != obj._requiredReliabilityService) - { - ivarsEqual = false; - } - - if (this._pad1 != obj._pad1) - { - ivarsEqual = false; - } - - if (this._pad2 != obj._pad2) - { - ivarsEqual = false; - } - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) - { - ivarsEqual = false; - } - - if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) - { - ivarsEqual = false; - } - - if (this._fixedDatumRecords.Count != obj._fixedDatumRecords.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - if (!this._fixedDatumRecords[idx].Equals(obj._fixedDatumRecords[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._variableDatumRecords.Count != obj._variableDatumRecords.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - if (!this._variableDatumRecords[idx].Equals(obj._variableDatumRecords[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._requiredReliabilityService.GetHashCode(); - result = GenerateHash(result) ^ this._pad1.GetHashCode(); - result = GenerateHash(result) ^ this._pad2.GetHashCode(); - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); - - if (this._fixedDatumRecords.Count > 0) - { - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - result = GenerateHash(result) ^ this._fixedDatumRecords[idx].GetHashCode(); - } - } - - if (this._variableDatumRecords.Count > 0) - { - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - result = GenerateHash(result) ^ this._variableDatumRecords[idx].GetHashCode(); - } - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/SimulationAddress.cs b/Libs/CSharpDis7/SimulationAddress.cs deleted file mode 100644 index d63c7e4..0000000 --- a/Libs/CSharpDis7/SimulationAddress.cs +++ /dev/null @@ -1,309 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// A Simulation Address record shall consist of the Site Identification number and the Application Identification number. Section 6.2.79 - /// - [Serializable] - [XmlRoot] - public partial class SimulationAddress - { - /// - /// A site is defined as a facility, installation, organizational unit or a geographic location that has one or more simulation applications capable of participating in a distributed event. - /// - private ushort _site; - - /// - /// An application is defined as a software program that is used to generate and process distributed simulation data including live, virtual and constructive data. - /// - private ushort _application; - - /// - /// Initializes a new instance of the class. - /// - public SimulationAddress() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(SimulationAddress left, SimulationAddress right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(SimulationAddress left, SimulationAddress right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 2; // this._site - marshalSize += 2; // this._application - return marshalSize; - } - - /// - /// Gets or sets the A site is defined as a facility, installation, organizational unit or a geographic location that has one or more simulation applications capable of participating in a distributed event. - /// - [XmlElement(Type = typeof(ushort), ElementName = "site")] - public ushort Site - { - get - { - return this._site; - } - - set - { - this._site = value; - } - } - - /// - /// Gets or sets the An application is defined as a software program that is used to generate and process distributed simulation data including live, virtual and constructive data. - /// - [XmlElement(Type = typeof(ushort), ElementName = "application")] - public ushort Application - { - get - { - return this._application; - } - - set - { - this._application = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._site); - dos.WriteUnsignedShort((ushort)this._application); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._site = dis.ReadUnsignedShort(); - this._application = dis.ReadUnsignedShort(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._site.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._application.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as SimulationAddress; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(SimulationAddress obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._site != obj._site) - { - ivarsEqual = false; - } - - if (this._application != obj._application) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._site.GetHashCode(); - result = GenerateHash(result) ^ this._application.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/SimulationIdentifier.cs b/Libs/CSharpDis7/SimulationIdentifier.cs deleted file mode 100644 index c43cb1a..0000000 --- a/Libs/CSharpDis7/SimulationIdentifier.cs +++ /dev/null @@ -1,312 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// The unique designation of a simulation when using the 48-bit identifier format shall be specified by the Sim- ulation Identifier record. The reason that the 48-bit format is required in addition to the 32-bit simulation address format that actually identifies a specific simulation is because some 48-bit identifier fields in PDUs may contain either an Object Identifier, such as an Entity ID, or a Simulation Identifier. Section 6.2.80 - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(SimulationAddress))] - public partial class SimulationIdentifier - { - /// - /// Simulation address - /// - private SimulationAddress _simulationAddress = new SimulationAddress(); - - /// - /// This field shall be set to zero as there is no reference number associated with a Simulation Identifier. - /// - private ushort _referenceNumber; - - /// - /// Initializes a new instance of the class. - /// - public SimulationIdentifier() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(SimulationIdentifier left, SimulationIdentifier right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(SimulationIdentifier left, SimulationIdentifier right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += this._simulationAddress.GetMarshalledSize(); // this._simulationAddress - marshalSize += 2; // this._referenceNumber - return marshalSize; - } - - /// - /// Gets or sets the Simulation address - /// - [XmlElement(Type = typeof(SimulationAddress), ElementName = "simulationAddress")] - public SimulationAddress SimulationAddress - { - get - { - return this._simulationAddress; - } - - set - { - this._simulationAddress = value; - } - } - - /// - /// Gets or sets the This field shall be set to zero as there is no reference number associated with a Simulation Identifier. - /// - [XmlElement(Type = typeof(ushort), ElementName = "referenceNumber")] - public ushort ReferenceNumber - { - get - { - return this._referenceNumber; - } - - set - { - this._referenceNumber = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - this._simulationAddress.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._referenceNumber); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._simulationAddress.Unmarshal(dis); - this._referenceNumber = dis.ReadUnsignedShort(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine(""); - this._simulationAddress.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._referenceNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as SimulationIdentifier; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(SimulationIdentifier obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (!this._simulationAddress.Equals(obj._simulationAddress)) - { - ivarsEqual = false; - } - - if (this._referenceNumber != obj._referenceNumber) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._simulationAddress.GetHashCode(); - result = GenerateHash(result) ^ this._referenceNumber.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/SimulationManagementFamilyPdu.cs b/Libs/CSharpDis7/SimulationManagementFamilyPdu.cs deleted file mode 100644 index 81b653d..0000000 --- a/Libs/CSharpDis7/SimulationManagementFamilyPdu.cs +++ /dev/null @@ -1,318 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Section 7.5 Abstract superclass for PDUs relating to the simulation itself. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - public partial class SimulationManagementFamilyPdu : Pdu, IEquatable - { - /// - /// Entity that is sending message - /// - private EntityID _originatingEntityID = new EntityID(); - - /// - /// Entity that is intended to receive message - /// - private EntityID _receivingEntityID = new EntityID(); - - /// - /// Initializes a new instance of the class. - /// - public SimulationManagementFamilyPdu() - { - ProtocolFamily = (byte)5; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(SimulationManagementFamilyPdu left, SimulationManagementFamilyPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(SimulationManagementFamilyPdu left, SimulationManagementFamilyPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._originatingEntityID.GetMarshalledSize(); // this._originatingEntityID - marshalSize += this._receivingEntityID.GetMarshalledSize(); // this._receivingEntityID - return marshalSize; - } - - /// - /// Gets or sets the Entity that is sending message - /// - [XmlElement(Type = typeof(EntityID), ElementName = "originatingEntityID")] - public EntityID OriginatingEntityID - { - get - { - return this._originatingEntityID; - } - - set - { - this._originatingEntityID = value; - } - } - - /// - /// Gets or sets the Entity that is intended to receive message - /// - [XmlElement(Type = typeof(EntityID), ElementName = "receivingEntityID")] - public EntityID ReceivingEntityID - { - get - { - return this._receivingEntityID; - } - - set - { - this._receivingEntityID = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public virtual void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._originatingEntityID.Marshal(dos); - this._receivingEntityID.Marshal(dos); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._originatingEntityID.Unmarshal(dis); - this._receivingEntityID.Unmarshal(dis); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._originatingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._receivingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as SimulationManagementFamilyPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(SimulationManagementFamilyPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._originatingEntityID.Equals(obj._originatingEntityID)) - { - ivarsEqual = false; - } - - if (!this._receivingEntityID.Equals(obj._receivingEntityID)) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._originatingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._receivingEntityID.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/SimulationManagementPduHeader.cs b/Libs/CSharpDis7/SimulationManagementPduHeader.cs deleted file mode 100644 index 863e4f3..0000000 --- a/Libs/CSharpDis7/SimulationManagementPduHeader.cs +++ /dev/null @@ -1,349 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// First part of a simulation management (SIMAN) PDU and SIMAN-Reliability (SIMAN-R) PDU. Sectionn 6.2.81 - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(PduHeader))] - [XmlInclude(typeof(EntityID))] - public partial class SimulationManagementPduHeader - { - /// - /// Conventional PDU header - /// - private PduHeader _pduHeader = new PduHeader(); - - /// - /// IDs the simulation or entity, etiehr a simulation or an entity. Either 6.2.80 or 6.2.28 - /// - private EntityID _originatingID = new EntityID(); - - /// - /// simulation, all simulations, a special ID, or an entity. See 5.6.5 and 5.12.4 - /// - private EntityID _recevingID = new EntityID(); - - /// - /// Initializes a new instance of the class. - /// - public SimulationManagementPduHeader() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(SimulationManagementPduHeader left, SimulationManagementPduHeader right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(SimulationManagementPduHeader left, SimulationManagementPduHeader right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += this._pduHeader.GetMarshalledSize(); // this._pduHeader - marshalSize += this._originatingID.GetMarshalledSize(); // this._originatingID - marshalSize += this._recevingID.GetMarshalledSize(); // this._recevingID - return marshalSize; - } - - /// - /// Gets or sets the Conventional PDU header - /// - [XmlElement(Type = typeof(PduHeader), ElementName = "pduHeader")] - public PduHeader PduHeader - { - get - { - return this._pduHeader; - } - - set - { - this._pduHeader = value; - } - } - - /// - /// Gets or sets the IDs the simulation or entity, etiehr a simulation or an entity. Either 6.2.80 or 6.2.28 - /// - [XmlElement(Type = typeof(EntityID), ElementName = "originatingID")] - public EntityID OriginatingID - { - get - { - return this._originatingID; - } - - set - { - this._originatingID = value; - } - } - - /// - /// Gets or sets the simulation, all simulations, a special ID, or an entity. See 5.6.5 and 5.12.4 - /// - [XmlElement(Type = typeof(EntityID), ElementName = "recevingID")] - public EntityID RecevingID - { - get - { - return this._recevingID; - } - - set - { - this._recevingID = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - this._pduHeader.Marshal(dos); - this._originatingID.Marshal(dos); - this._recevingID.Marshal(dos); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._pduHeader.Unmarshal(dis); - this._originatingID.Unmarshal(dis); - this._recevingID.Unmarshal(dis); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine(""); - this._pduHeader.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._originatingID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._recevingID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as SimulationManagementPduHeader; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(SimulationManagementPduHeader obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (!this._pduHeader.Equals(obj._pduHeader)) - { - ivarsEqual = false; - } - - if (!this._originatingID.Equals(obj._originatingID)) - { - ivarsEqual = false; - } - - if (!this._recevingID.Equals(obj._recevingID)) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._pduHeader.GetHashCode(); - result = GenerateHash(result) ^ this._originatingID.GetHashCode(); - result = GenerateHash(result) ^ this._recevingID.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/SimulationManagementWithReliabilityFamilyPdu.cs b/Libs/CSharpDis7/SimulationManagementWithReliabilityFamilyPdu.cs deleted file mode 100644 index f21b6d3..0000000 --- a/Libs/CSharpDis7/SimulationManagementWithReliabilityFamilyPdu.cs +++ /dev/null @@ -1,318 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Section 5.3.12: Abstract superclass for reliable simulation management PDUs - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - public partial class SimulationManagementWithReliabilityFamilyPdu : Pdu, IEquatable - { - /// - /// Object originatig the request - /// - private EntityID _originatingEntityID = new EntityID(); - - /// - /// Object with which this point object is associated - /// - private EntityID _receivingEntityID = new EntityID(); - - /// - /// Initializes a new instance of the class. - /// - public SimulationManagementWithReliabilityFamilyPdu() - { - ProtocolFamily = (byte)10; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(SimulationManagementWithReliabilityFamilyPdu left, SimulationManagementWithReliabilityFamilyPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(SimulationManagementWithReliabilityFamilyPdu left, SimulationManagementWithReliabilityFamilyPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._originatingEntityID.GetMarshalledSize(); // this._originatingEntityID - marshalSize += this._receivingEntityID.GetMarshalledSize(); // this._receivingEntityID - return marshalSize; - } - - /// - /// Gets or sets the Object originatig the request - /// - [XmlElement(Type = typeof(EntityID), ElementName = "originatingEntityID")] - public EntityID OriginatingEntityID - { - get - { - return this._originatingEntityID; - } - - set - { - this._originatingEntityID = value; - } - } - - /// - /// Gets or sets the Object with which this point object is associated - /// - [XmlElement(Type = typeof(EntityID), ElementName = "receivingEntityID")] - public EntityID ReceivingEntityID - { - get - { - return this._receivingEntityID; - } - - set - { - this._receivingEntityID = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public virtual void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._originatingEntityID.Marshal(dos); - this._receivingEntityID.Marshal(dos); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._originatingEntityID.Unmarshal(dis); - this._receivingEntityID.Unmarshal(dis); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._originatingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._receivingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as SimulationManagementWithReliabilityFamilyPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(SimulationManagementWithReliabilityFamilyPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._originatingEntityID.Equals(obj._originatingEntityID)) - { - ivarsEqual = false; - } - - if (!this._receivingEntityID.Equals(obj._receivingEntityID)) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._originatingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._receivingEntityID.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/StandardVariableSpecification.cs b/Libs/CSharpDis7/StandardVariableSpecification.cs deleted file mode 100644 index 831a909..0000000 --- a/Libs/CSharpDis7/StandardVariableSpecification.cs +++ /dev/null @@ -1,348 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Does not work, and causes failure in anything it is embedded in. Section 6.2.82 - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(SimulationManagementPduHeader))] - public partial class StandardVariableSpecification - { - /// - /// Number of static variable records - /// - private ushort _numberOfStandardVariableRecords; - - /// - /// variable length list of standard variables, The class type and length here are WRONG and will cause the incorrect serialization of any class in whihc it is embedded. - /// - private List _standardVariables = new List(); - - /// - /// Initializes a new instance of the class. - /// - public StandardVariableSpecification() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(StandardVariableSpecification left, StandardVariableSpecification right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(StandardVariableSpecification left, StandardVariableSpecification right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 2; // this._numberOfStandardVariableRecords - for (int idx = 0; idx < this._standardVariables.Count; idx++) - { - SimulationManagementPduHeader listElement = (SimulationManagementPduHeader)this._standardVariables[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfStandardVariableRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(ushort), ElementName = "numberOfStandardVariableRecords")] - public ushort NumberOfStandardVariableRecords - { - get - { - return this._numberOfStandardVariableRecords; - } - - set - { - this._numberOfStandardVariableRecords = value; - } - } - - /// - /// Gets or sets the variable length list of standard variables, The class type and length here are WRONG and will cause the incorrect serialization of any class in whihc it is embedded. - /// - [XmlElement(ElementName = "standardVariablesList", Type = typeof(List))] - public List StandardVariables - { - get - { - return this._standardVariables; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._standardVariables.Count); - - for (int idx = 0; idx < this._standardVariables.Count; idx++) - { - SimulationManagementPduHeader aSimulationManagementPduHeader = (SimulationManagementPduHeader)this._standardVariables[idx]; - aSimulationManagementPduHeader.Marshal(dos); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._numberOfStandardVariableRecords = dis.ReadUnsignedShort(); - for (int idx = 0; idx < this.NumberOfStandardVariableRecords; idx++) - { - SimulationManagementPduHeader anX = new SimulationManagementPduHeader(); - anX.Unmarshal(dis); - this._standardVariables.Add(anX); - }; - - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._standardVariables.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._standardVariables.Count; idx++) - { - sb.AppendLine(""); - SimulationManagementPduHeader aSimulationManagementPduHeader = (SimulationManagementPduHeader)this._standardVariables[idx]; - aSimulationManagementPduHeader.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as StandardVariableSpecification; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(StandardVariableSpecification obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._numberOfStandardVariableRecords != obj._numberOfStandardVariableRecords) - { - ivarsEqual = false; - } - - if (this._standardVariables.Count != obj._standardVariables.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._standardVariables.Count; idx++) - { - if (!this._standardVariables[idx].Equals(obj._standardVariables[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._numberOfStandardVariableRecords.GetHashCode(); - - if (this._standardVariables.Count > 0) - { - for (int idx = 0; idx < this._standardVariables.Count; idx++) - { - result = GenerateHash(result) ^ this._standardVariables[idx].GetHashCode(); - } - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/StartResumePdu.cs b/Libs/CSharpDis7/StartResumePdu.cs deleted file mode 100644 index 988dd1e..0000000 --- a/Libs/CSharpDis7/StartResumePdu.cs +++ /dev/null @@ -1,419 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Section 7.5.4. Start or resume an exercise. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(ClockTime))] - public partial class StartResumePdu : SimulationManagementFamilyPdu, IEquatable - { - /// - /// Identifier for originating entity(or simulation) - /// - private EntityID _originatingID = new EntityID(); - - /// - /// Identifier for the receiving entity(or simulation) - /// - private EntityID _receivingID = new EntityID(); - - /// - /// This field shall specify the real-world time (UTC) at which the entity is to start/resume in the exercise. This information shall be used by the participating simulation applications to start/resume an exercise synchronously. This field shall be represented by a Clock Time record (see 6.2.16). - /// - private ClockTime _realWorldTime = new ClockTime(); - - /// - /// The reference time within a simulation exercise. This time is established ahead of time by simulation management and is common to all participants in a particular exercise. Simulation time may be either Absolute Time or Relative Time. This field shall be represented by a Clock Time record (see 6.2.16) - /// - private ClockTime _simulationTime = new ClockTime(); - - /// - /// Identifier for the specific and unique start/resume request - /// - private uint _requestID; - - /// - /// Initializes a new instance of the class. - /// - public StartResumePdu() - { - PduType = (byte)13; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(StartResumePdu left, StartResumePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(StartResumePdu left, StartResumePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._originatingID.GetMarshalledSize(); // this._originatingID - marshalSize += this._receivingID.GetMarshalledSize(); // this._receivingID - marshalSize += this._realWorldTime.GetMarshalledSize(); // this._realWorldTime - marshalSize += this._simulationTime.GetMarshalledSize(); // this._simulationTime - marshalSize += 4; // this._requestID - return marshalSize; - } - - /// - /// Gets or sets the Identifier for originating entity(or simulation) - /// - [XmlElement(Type = typeof(EntityID), ElementName = "originatingID")] - public EntityID OriginatingID - { - get - { - return this._originatingID; - } - - set - { - this._originatingID = value; - } - } - - /// - /// Gets or sets the Identifier for the receiving entity(or simulation) - /// - [XmlElement(Type = typeof(EntityID), ElementName = "receivingID")] - public EntityID ReceivingID - { - get - { - return this._receivingID; - } - - set - { - this._receivingID = value; - } - } - - /// - /// Gets or sets the This field shall specify the real-world time (UTC) at which the entity is to start/resume in the exercise. This information shall be used by the participating simulation applications to start/resume an exercise synchronously. This field shall be represented by a Clock Time record (see 6.2.16). - /// - [XmlElement(Type = typeof(ClockTime), ElementName = "realWorldTime")] - public ClockTime RealWorldTime - { - get - { - return this._realWorldTime; - } - - set - { - this._realWorldTime = value; - } - } - - /// - /// Gets or sets the The reference time within a simulation exercise. This time is established ahead of time by simulation management and is common to all participants in a particular exercise. Simulation time may be either Absolute Time or Relative Time. This field shall be represented by a Clock Time record (see 6.2.16) - /// - [XmlElement(Type = typeof(ClockTime), ElementName = "simulationTime")] - public ClockTime SimulationTime - { - get - { - return this._simulationTime; - } - - set - { - this._simulationTime = value; - } - } - - /// - /// Gets or sets the Identifier for the specific and unique start/resume request - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._originatingID.Marshal(dos); - this._receivingID.Marshal(dos); - this._realWorldTime.Marshal(dos); - this._simulationTime.Marshal(dos); - dos.WriteUnsignedInt((uint)this._requestID); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._originatingID.Unmarshal(dis); - this._receivingID.Unmarshal(dis); - this._realWorldTime.Unmarshal(dis); - this._simulationTime.Unmarshal(dis); - this._requestID = dis.ReadUnsignedInt(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._originatingID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._receivingID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._realWorldTime.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._simulationTime.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as StartResumePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(StartResumePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._originatingID.Equals(obj._originatingID)) - { - ivarsEqual = false; - } - - if (!this._receivingID.Equals(obj._receivingID)) - { - ivarsEqual = false; - } - - if (!this._realWorldTime.Equals(obj._realWorldTime)) - { - ivarsEqual = false; - } - - if (!this._simulationTime.Equals(obj._simulationTime)) - { - ivarsEqual = false; - } - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._originatingID.GetHashCode(); - result = GenerateHash(result) ^ this._receivingID.GetHashCode(); - result = GenerateHash(result) ^ this._realWorldTime.GetHashCode(); - result = GenerateHash(result) ^ this._simulationTime.GetHashCode(); - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/StartResumeReliablePdu.cs b/Libs/CSharpDis7/StartResumeReliablePdu.cs deleted file mode 100644 index 9f1cdb3..0000000 --- a/Libs/CSharpDis7/StartResumeReliablePdu.cs +++ /dev/null @@ -1,446 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Section 5.3.12.3: Start resume simulation, relaible. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(ClockTime))] - public partial class StartResumeReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable - { - /// - /// time in real world for this operation to happen - /// - private ClockTime _realWorldTime = new ClockTime(); - - /// - /// time in simulation for the simulation to resume - /// - private ClockTime _simulationTime = new ClockTime(); - - /// - /// level of reliability service used for this transaction - /// - private byte _requiredReliabilityService; - - /// - /// padding - /// - private ushort _pad1; - - /// - /// padding - /// - private byte _pad2; - - /// - /// Request ID - /// - private uint _requestID; - - /// - /// Initializes a new instance of the class. - /// - public StartResumeReliablePdu() - { - PduType = (byte)53; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(StartResumeReliablePdu left, StartResumeReliablePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(StartResumeReliablePdu left, StartResumeReliablePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._realWorldTime.GetMarshalledSize(); // this._realWorldTime - marshalSize += this._simulationTime.GetMarshalledSize(); // this._simulationTime - marshalSize += 1; // this._requiredReliabilityService - marshalSize += 2; // this._pad1 - marshalSize += 1; // this._pad2 - marshalSize += 4; // this._requestID - return marshalSize; - } - - /// - /// Gets or sets the time in real world for this operation to happen - /// - [XmlElement(Type = typeof(ClockTime), ElementName = "realWorldTime")] - public ClockTime RealWorldTime - { - get - { - return this._realWorldTime; - } - - set - { - this._realWorldTime = value; - } - } - - /// - /// Gets or sets the time in simulation for the simulation to resume - /// - [XmlElement(Type = typeof(ClockTime), ElementName = "simulationTime")] - public ClockTime SimulationTime - { - get - { - return this._simulationTime; - } - - set - { - this._simulationTime = value; - } - } - - /// - /// Gets or sets the level of reliability service used for this transaction - /// - [XmlElement(Type = typeof(byte), ElementName = "requiredReliabilityService")] - public byte RequiredReliabilityService - { - get - { - return this._requiredReliabilityService; - } - - set - { - this._requiredReliabilityService = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(ushort), ElementName = "pad1")] - public ushort Pad1 - { - get - { - return this._pad1; - } - - set - { - this._pad1 = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "pad2")] - public byte Pad2 - { - get - { - return this._pad2; - } - - set - { - this._pad2 = value; - } - } - - /// - /// Gets or sets the Request ID - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._realWorldTime.Marshal(dos); - this._simulationTime.Marshal(dos); - dos.WriteUnsignedByte((byte)this._requiredReliabilityService); - dos.WriteUnsignedShort((ushort)this._pad1); - dos.WriteUnsignedByte((byte)this._pad2); - dos.WriteUnsignedInt((uint)this._requestID); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._realWorldTime.Unmarshal(dis); - this._simulationTime.Unmarshal(dis); - this._requiredReliabilityService = dis.ReadUnsignedByte(); - this._pad1 = dis.ReadUnsignedShort(); - this._pad2 = dis.ReadUnsignedByte(); - this._requestID = dis.ReadUnsignedInt(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._realWorldTime.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._simulationTime.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._requiredReliabilityService.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as StartResumeReliablePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(StartResumeReliablePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._realWorldTime.Equals(obj._realWorldTime)) - { - ivarsEqual = false; - } - - if (!this._simulationTime.Equals(obj._simulationTime)) - { - ivarsEqual = false; - } - - if (this._requiredReliabilityService != obj._requiredReliabilityService) - { - ivarsEqual = false; - } - - if (this._pad1 != obj._pad1) - { - ivarsEqual = false; - } - - if (this._pad2 != obj._pad2) - { - ivarsEqual = false; - } - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._realWorldTime.GetHashCode(); - result = GenerateHash(result) ^ this._simulationTime.GetHashCode(); - result = GenerateHash(result) ^ this._requiredReliabilityService.GetHashCode(); - result = GenerateHash(result) ^ this._pad1.GetHashCode(); - result = GenerateHash(result) ^ this._pad2.GetHashCode(); - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/StopFreezePdu.cs b/Libs/CSharpDis7/StopFreezePdu.cs deleted file mode 100644 index c779db0..0000000 --- a/Libs/CSharpDis7/StopFreezePdu.cs +++ /dev/null @@ -1,481 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Section 7.5.5. Stop or freeze an enity (or exercise). COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(ClockTime))] - public partial class StopFreezePdu : SimulationManagementFamilyPdu, IEquatable - { - /// - /// Identifier for originating entity(or simulation) - /// - private EntityID _originatingID = new EntityID(); - - /// - /// Identifier for the receiving entity(or simulation) - /// - private EntityID _receivingID = new EntityID(); - - /// - /// real-world(UTC) time at which the entity shall stop or freeze in the exercise - /// - private ClockTime _realWorldTime = new ClockTime(); - - /// - /// Reason the simulation was stopped or frozen (see section 7 of SISO-REF-010) represented by an 8-bit enumeration - /// - private byte _reason; - - /// - /// Internal behavior of the entity(or simulation) and its appearance while frozen to the other participants - /// - private byte _frozenBehavior; - - /// - /// padding - /// - private short _padding1; - - /// - /// Request ID that is unique - /// - private uint _requestID; - - /// - /// Initializes a new instance of the class. - /// - public StopFreezePdu() - { - PduType = (byte)14; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(StopFreezePdu left, StopFreezePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(StopFreezePdu left, StopFreezePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._originatingID.GetMarshalledSize(); // this._originatingID - marshalSize += this._receivingID.GetMarshalledSize(); // this._receivingID - marshalSize += this._realWorldTime.GetMarshalledSize(); // this._realWorldTime - marshalSize += 1; // this._reason - marshalSize += 1; // this._frozenBehavior - marshalSize += 2; // this._padding1 - marshalSize += 4; // this._requestID - return marshalSize; - } - - /// - /// Gets or sets the Identifier for originating entity(or simulation) - /// - [XmlElement(Type = typeof(EntityID), ElementName = "originatingID")] - public EntityID OriginatingID - { - get - { - return this._originatingID; - } - - set - { - this._originatingID = value; - } - } - - /// - /// Gets or sets the Identifier for the receiving entity(or simulation) - /// - [XmlElement(Type = typeof(EntityID), ElementName = "receivingID")] - public EntityID ReceivingID - { - get - { - return this._receivingID; - } - - set - { - this._receivingID = value; - } - } - - /// - /// Gets or sets the real-world(UTC) time at which the entity shall stop or freeze in the exercise - /// - [XmlElement(Type = typeof(ClockTime), ElementName = "realWorldTime")] - public ClockTime RealWorldTime - { - get - { - return this._realWorldTime; - } - - set - { - this._realWorldTime = value; - } - } - - /// - /// Gets or sets the Reason the simulation was stopped or frozen (see section 7 of SISO-REF-010) represented by an 8-bit enumeration - /// - [XmlElement(Type = typeof(byte), ElementName = "reason")] - public byte Reason - { - get - { - return this._reason; - } - - set - { - this._reason = value; - } - } - - /// - /// Gets or sets the Internal behavior of the entity(or simulation) and its appearance while frozen to the other participants - /// - [XmlElement(Type = typeof(byte), ElementName = "frozenBehavior")] - public byte FrozenBehavior - { - get - { - return this._frozenBehavior; - } - - set - { - this._frozenBehavior = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(short), ElementName = "padding1")] - public short Padding1 - { - get - { - return this._padding1; - } - - set - { - this._padding1 = value; - } - } - - /// - /// Gets or sets the Request ID that is unique - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._originatingID.Marshal(dos); - this._receivingID.Marshal(dos); - this._realWorldTime.Marshal(dos); - dos.WriteUnsignedByte((byte)this._reason); - dos.WriteUnsignedByte((byte)this._frozenBehavior); - dos.WriteShort((short)this._padding1); - dos.WriteUnsignedInt((uint)this._requestID); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._originatingID.Unmarshal(dis); - this._receivingID.Unmarshal(dis); - this._realWorldTime.Unmarshal(dis); - this._reason = dis.ReadUnsignedByte(); - this._frozenBehavior = dis.ReadUnsignedByte(); - this._padding1 = dis.ReadShort(); - this._requestID = dis.ReadUnsignedInt(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._originatingID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._receivingID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._realWorldTime.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._reason.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._frozenBehavior.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as StopFreezePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(StopFreezePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._originatingID.Equals(obj._originatingID)) - { - ivarsEqual = false; - } - - if (!this._receivingID.Equals(obj._receivingID)) - { - ivarsEqual = false; - } - - if (!this._realWorldTime.Equals(obj._realWorldTime)) - { - ivarsEqual = false; - } - - if (this._reason != obj._reason) - { - ivarsEqual = false; - } - - if (this._frozenBehavior != obj._frozenBehavior) - { - ivarsEqual = false; - } - - if (this._padding1 != obj._padding1) - { - ivarsEqual = false; - } - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._originatingID.GetHashCode(); - result = GenerateHash(result) ^ this._receivingID.GetHashCode(); - result = GenerateHash(result) ^ this._realWorldTime.GetHashCode(); - result = GenerateHash(result) ^ this._reason.GetHashCode(); - result = GenerateHash(result) ^ this._frozenBehavior.GetHashCode(); - result = GenerateHash(result) ^ this._padding1.GetHashCode(); - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/StopFreezeReliablePdu.cs b/Libs/CSharpDis7/StopFreezeReliablePdu.cs deleted file mode 100644 index c3b7535..0000000 --- a/Libs/CSharpDis7/StopFreezeReliablePdu.cs +++ /dev/null @@ -1,444 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Section 5.3.12.4: Stop freeze simulation, relaible. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(ClockTime))] - public partial class StopFreezeReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable - { - /// - /// time in real world for this operation to happen - /// - private ClockTime _realWorldTime = new ClockTime(); - - /// - /// Reason for stopping/freezing simulation - /// - private byte _reason; - - /// - /// internal behvior of the simulation while frozen - /// - private byte _frozenBehavior; - - /// - /// reliablity level - /// - private byte _requiredReliablityService; - - /// - /// padding - /// - private byte _pad1; - - /// - /// Request ID - /// - private uint _requestID; - - /// - /// Initializes a new instance of the class. - /// - public StopFreezeReliablePdu() - { - PduType = (byte)54; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(StopFreezeReliablePdu left, StopFreezeReliablePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(StopFreezeReliablePdu left, StopFreezeReliablePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._realWorldTime.GetMarshalledSize(); // this._realWorldTime - marshalSize += 1; // this._reason - marshalSize += 1; // this._frozenBehavior - marshalSize += 1; // this._requiredReliablityService - marshalSize += 1; // this._pad1 - marshalSize += 4; // this._requestID - return marshalSize; - } - - /// - /// Gets or sets the time in real world for this operation to happen - /// - [XmlElement(Type = typeof(ClockTime), ElementName = "realWorldTime")] - public ClockTime RealWorldTime - { - get - { - return this._realWorldTime; - } - - set - { - this._realWorldTime = value; - } - } - - /// - /// Gets or sets the Reason for stopping/freezing simulation - /// - [XmlElement(Type = typeof(byte), ElementName = "reason")] - public byte Reason - { - get - { - return this._reason; - } - - set - { - this._reason = value; - } - } - - /// - /// Gets or sets the internal behvior of the simulation while frozen - /// - [XmlElement(Type = typeof(byte), ElementName = "frozenBehavior")] - public byte FrozenBehavior - { - get - { - return this._frozenBehavior; - } - - set - { - this._frozenBehavior = value; - } - } - - /// - /// Gets or sets the reliablity level - /// - [XmlElement(Type = typeof(byte), ElementName = "requiredReliablityService")] - public byte RequiredReliablityService - { - get - { - return this._requiredReliablityService; - } - - set - { - this._requiredReliablityService = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "pad1")] - public byte Pad1 - { - get - { - return this._pad1; - } - - set - { - this._pad1 = value; - } - } - - /// - /// Gets or sets the Request ID - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._realWorldTime.Marshal(dos); - dos.WriteUnsignedByte((byte)this._reason); - dos.WriteUnsignedByte((byte)this._frozenBehavior); - dos.WriteUnsignedByte((byte)this._requiredReliablityService); - dos.WriteUnsignedByte((byte)this._pad1); - dos.WriteUnsignedInt((uint)this._requestID); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._realWorldTime.Unmarshal(dis); - this._reason = dis.ReadUnsignedByte(); - this._frozenBehavior = dis.ReadUnsignedByte(); - this._requiredReliablityService = dis.ReadUnsignedByte(); - this._pad1 = dis.ReadUnsignedByte(); - this._requestID = dis.ReadUnsignedInt(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._realWorldTime.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._reason.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._frozenBehavior.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._requiredReliablityService.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as StopFreezeReliablePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(StopFreezeReliablePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._realWorldTime.Equals(obj._realWorldTime)) - { - ivarsEqual = false; - } - - if (this._reason != obj._reason) - { - ivarsEqual = false; - } - - if (this._frozenBehavior != obj._frozenBehavior) - { - ivarsEqual = false; - } - - if (this._requiredReliablityService != obj._requiredReliablityService) - { - ivarsEqual = false; - } - - if (this._pad1 != obj._pad1) - { - ivarsEqual = false; - } - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._realWorldTime.GetHashCode(); - result = GenerateHash(result) ^ this._reason.GetHashCode(); - result = GenerateHash(result) ^ this._frozenBehavior.GetHashCode(); - result = GenerateHash(result) ^ this._requiredReliablityService.GetHashCode(); - result = GenerateHash(result) ^ this._pad1.GetHashCode(); - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/StorageFuel.cs b/Libs/CSharpDis7/StorageFuel.cs deleted file mode 100644 index 2f24cd2..0000000 --- a/Libs/CSharpDis7/StorageFuel.cs +++ /dev/null @@ -1,405 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Information about an entity's engine fuel. Section 6.2.83. - /// - [Serializable] - [XmlRoot] - public partial class StorageFuel - { - /// - /// Fuel quantity, units specified by next field - /// - private uint _fuelQuantity; - - /// - /// Units in which the fuel is measured - /// - private byte _fuelMeasurementUnits; - - /// - /// Type of fuel - /// - private byte _fuelType; - - /// - /// Location of fuel as related to entity. See section 14 of EBV document - /// - private byte _fuelLocation; - - /// - /// padding - /// - private byte _padding; - - /// - /// Initializes a new instance of the class. - /// - public StorageFuel() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(StorageFuel left, StorageFuel right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(StorageFuel left, StorageFuel right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._fuelQuantity - marshalSize += 1; // this._fuelMeasurementUnits - marshalSize += 1; // this._fuelType - marshalSize += 1; // this._fuelLocation - marshalSize += 1; // this._padding - return marshalSize; - } - - /// - /// Gets or sets the Fuel quantity, units specified by next field - /// - [XmlElement(Type = typeof(uint), ElementName = "fuelQuantity")] - public uint FuelQuantity - { - get - { - return this._fuelQuantity; - } - - set - { - this._fuelQuantity = value; - } - } - - /// - /// Gets or sets the Units in which the fuel is measured - /// - [XmlElement(Type = typeof(byte), ElementName = "fuelMeasurementUnits")] - public byte FuelMeasurementUnits - { - get - { - return this._fuelMeasurementUnits; - } - - set - { - this._fuelMeasurementUnits = value; - } - } - - /// - /// Gets or sets the Type of fuel - /// - [XmlElement(Type = typeof(byte), ElementName = "fuelType")] - public byte FuelType - { - get - { - return this._fuelType; - } - - set - { - this._fuelType = value; - } - } - - /// - /// Gets or sets the Location of fuel as related to entity. See section 14 of EBV document - /// - [XmlElement(Type = typeof(byte), ElementName = "fuelLocation")] - public byte FuelLocation - { - get - { - return this._fuelLocation; - } - - set - { - this._fuelLocation = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "padding")] - public byte Padding - { - get - { - return this._padding; - } - - set - { - this._padding = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._fuelQuantity); - dos.WriteUnsignedByte((byte)this._fuelMeasurementUnits); - dos.WriteUnsignedByte((byte)this._fuelType); - dos.WriteUnsignedByte((byte)this._fuelLocation); - dos.WriteUnsignedByte((byte)this._padding); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._fuelQuantity = dis.ReadUnsignedInt(); - this._fuelMeasurementUnits = dis.ReadUnsignedByte(); - this._fuelType = dis.ReadUnsignedByte(); - this._fuelLocation = dis.ReadUnsignedByte(); - this._padding = dis.ReadUnsignedByte(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._fuelQuantity.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fuelMeasurementUnits.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fuelType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fuelLocation.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as StorageFuel; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(StorageFuel obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._fuelQuantity != obj._fuelQuantity) - { - ivarsEqual = false; - } - - if (this._fuelMeasurementUnits != obj._fuelMeasurementUnits) - { - ivarsEqual = false; - } - - if (this._fuelType != obj._fuelType) - { - ivarsEqual = false; - } - - if (this._fuelLocation != obj._fuelLocation) - { - ivarsEqual = false; - } - - if (this._padding != obj._padding) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._fuelQuantity.GetHashCode(); - result = GenerateHash(result) ^ this._fuelMeasurementUnits.GetHashCode(); - result = GenerateHash(result) ^ this._fuelType.GetHashCode(); - result = GenerateHash(result) ^ this._fuelLocation.GetHashCode(); - result = GenerateHash(result) ^ this._padding.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/StorageFuelReload.cs b/Libs/CSharpDis7/StorageFuelReload.cs deleted file mode 100644 index 1f94c9f..0000000 --- a/Libs/CSharpDis7/StorageFuelReload.cs +++ /dev/null @@ -1,501 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// For each type or location of Storage Fuel, this record shall specify the type, location, fuel measure- ment units, reload quantity and maximum quantity for storage fuel either for the whole entity or a specific storage fuel location (tank). Section 6.2.84. - /// - [Serializable] - [XmlRoot] - public partial class StorageFuelReload - { - /// - /// the standard quantity of this fuel type normally loaded at this station/launcher if a station/launcher is specified. If the Station/Launcher field is set to zero, then this is the total quantity of this fuel type that would be present in a standard reload of all appli- cable stations/launchers associated with this entity. - /// - private uint _standardQuantity; - - /// - /// the maximum quantity of this fuel type that this sta- tion/launcher is capable of holding when a station/launcher is specified. This would be the value used when a maximum reload was desired to be set for this station/launcher. If the Station/launcher field is set to zero, then this is the maximum quantity of this fuel type that would be present on this entity at all stations/launchers that can accept this fuel type. - /// - private uint _maximumQuantity; - - /// - /// the seconds normally required to reload the standard quantity of this fuel type at this specific station/launcher. When the Station/Launcher field is set to zero, this shall be the time it takes to perform a standard quantity reload of this fuel type at all applicable stations/launchers for this entity. - /// - private byte _standardQuantityReloadTime; - - /// - /// the seconds normally required to reload the maximum possible quantity of this fuel type at this station/launcher. When the Station/Launcher field is set to zero, this shall be the time it takes to perform a maximum quantity load/reload of this fuel type at all applicable stations/launchers for this entity. - /// - private byte _maximumQuantityReloadTime; - - /// - /// the fuel measurement units. Enumeration - /// - private byte _fuelMeasurementUnits; - - /// - /// Fuel type. Enumeration - /// - private byte _fuelType; - - /// - /// Location of fuel as related to entity. See section 14 of EBV document - /// - private byte _fuelLocation; - - /// - /// padding - /// - private byte _padding; - - /// - /// Initializes a new instance of the class. - /// - public StorageFuelReload() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(StorageFuelReload left, StorageFuelReload right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(StorageFuelReload left, StorageFuelReload right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._standardQuantity - marshalSize += 4; // this._maximumQuantity - marshalSize += 1; // this._standardQuantityReloadTime - marshalSize += 1; // this._maximumQuantityReloadTime - marshalSize += 1; // this._fuelMeasurementUnits - marshalSize += 1; // this._fuelType - marshalSize += 1; // this._fuelLocation - marshalSize += 1; // this._padding - return marshalSize; - } - - /// - /// Gets or sets the the standard quantity of this fuel type normally loaded at this station/launcher if a station/launcher is specified. If the Station/Launcher field is set to zero, then this is the total quantity of this fuel type that would be present in a standard reload of all appli- cable stations/launchers associated with this entity. - /// - [XmlElement(Type = typeof(uint), ElementName = "standardQuantity")] - public uint StandardQuantity - { - get - { - return this._standardQuantity; - } - - set - { - this._standardQuantity = value; - } - } - - /// - /// Gets or sets the the maximum quantity of this fuel type that this sta- tion/launcher is capable of holding when a station/launcher is specified. This would be the value used when a maximum reload was desired to be set for this station/launcher. If the Station/launcher field is set to zero, then this is the maximum quantity of this fuel type that would be present on this entity at all stations/launchers that can accept this fuel type. - /// - [XmlElement(Type = typeof(uint), ElementName = "maximumQuantity")] - public uint MaximumQuantity - { - get - { - return this._maximumQuantity; - } - - set - { - this._maximumQuantity = value; - } - } - - /// - /// Gets or sets the the seconds normally required to reload the standard quantity of this fuel type at this specific station/launcher. When the Station/Launcher field is set to zero, this shall be the time it takes to perform a standard quantity reload of this fuel type at all applicable stations/launchers for this entity. - /// - [XmlElement(Type = typeof(byte), ElementName = "standardQuantityReloadTime")] - public byte StandardQuantityReloadTime - { - get - { - return this._standardQuantityReloadTime; - } - - set - { - this._standardQuantityReloadTime = value; - } - } - - /// - /// Gets or sets the the seconds normally required to reload the maximum possible quantity of this fuel type at this station/launcher. When the Station/Launcher field is set to zero, this shall be the time it takes to perform a maximum quantity load/reload of this fuel type at all applicable stations/launchers for this entity. - /// - [XmlElement(Type = typeof(byte), ElementName = "maximumQuantityReloadTime")] - public byte MaximumQuantityReloadTime - { - get - { - return this._maximumQuantityReloadTime; - } - - set - { - this._maximumQuantityReloadTime = value; - } - } - - /// - /// Gets or sets the the fuel measurement units. Enumeration - /// - [XmlElement(Type = typeof(byte), ElementName = "fuelMeasurementUnits")] - public byte FuelMeasurementUnits - { - get - { - return this._fuelMeasurementUnits; - } - - set - { - this._fuelMeasurementUnits = value; - } - } - - /// - /// Gets or sets the Fuel type. Enumeration - /// - [XmlElement(Type = typeof(byte), ElementName = "fuelType")] - public byte FuelType - { - get - { - return this._fuelType; - } - - set - { - this._fuelType = value; - } - } - - /// - /// Gets or sets the Location of fuel as related to entity. See section 14 of EBV document - /// - [XmlElement(Type = typeof(byte), ElementName = "fuelLocation")] - public byte FuelLocation - { - get - { - return this._fuelLocation; - } - - set - { - this._fuelLocation = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "padding")] - public byte Padding - { - get - { - return this._padding; - } - - set - { - this._padding = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._standardQuantity); - dos.WriteUnsignedInt((uint)this._maximumQuantity); - dos.WriteUnsignedByte((byte)this._standardQuantityReloadTime); - dos.WriteUnsignedByte((byte)this._maximumQuantityReloadTime); - dos.WriteUnsignedByte((byte)this._fuelMeasurementUnits); - dos.WriteUnsignedByte((byte)this._fuelType); - dos.WriteUnsignedByte((byte)this._fuelLocation); - dos.WriteUnsignedByte((byte)this._padding); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._standardQuantity = dis.ReadUnsignedInt(); - this._maximumQuantity = dis.ReadUnsignedInt(); - this._standardQuantityReloadTime = dis.ReadUnsignedByte(); - this._maximumQuantityReloadTime = dis.ReadUnsignedByte(); - this._fuelMeasurementUnits = dis.ReadUnsignedByte(); - this._fuelType = dis.ReadUnsignedByte(); - this._fuelLocation = dis.ReadUnsignedByte(); - this._padding = dis.ReadUnsignedByte(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._standardQuantity.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._maximumQuantity.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._standardQuantityReloadTime.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._maximumQuantityReloadTime.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fuelMeasurementUnits.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fuelType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fuelLocation.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as StorageFuelReload; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(StorageFuelReload obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._standardQuantity != obj._standardQuantity) - { - ivarsEqual = false; - } - - if (this._maximumQuantity != obj._maximumQuantity) - { - ivarsEqual = false; - } - - if (this._standardQuantityReloadTime != obj._standardQuantityReloadTime) - { - ivarsEqual = false; - } - - if (this._maximumQuantityReloadTime != obj._maximumQuantityReloadTime) - { - ivarsEqual = false; - } - - if (this._fuelMeasurementUnits != obj._fuelMeasurementUnits) - { - ivarsEqual = false; - } - - if (this._fuelType != obj._fuelType) - { - ivarsEqual = false; - } - - if (this._fuelLocation != obj._fuelLocation) - { - ivarsEqual = false; - } - - if (this._padding != obj._padding) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._standardQuantity.GetHashCode(); - result = GenerateHash(result) ^ this._maximumQuantity.GetHashCode(); - result = GenerateHash(result) ^ this._standardQuantityReloadTime.GetHashCode(); - result = GenerateHash(result) ^ this._maximumQuantityReloadTime.GetHashCode(); - result = GenerateHash(result) ^ this._fuelMeasurementUnits.GetHashCode(); - result = GenerateHash(result) ^ this._fuelType.GetHashCode(); - result = GenerateHash(result) ^ this._fuelLocation.GetHashCode(); - result = GenerateHash(result) ^ this._padding.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/SupplyQuantity.cs b/Libs/CSharpDis7/SupplyQuantity.cs deleted file mode 100644 index 5d564b5..0000000 --- a/Libs/CSharpDis7/SupplyQuantity.cs +++ /dev/null @@ -1,312 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// A supply, and the amount of that supply. Section 6.2.85 - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityType))] - public partial class SupplyQuantity - { - /// - /// Type of supply - /// - private EntityType _supplyType = new EntityType(); - - /// - /// the number of units of a supply type. - /// - private float _quantity; - - /// - /// Initializes a new instance of the class. - /// - public SupplyQuantity() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(SupplyQuantity left, SupplyQuantity right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(SupplyQuantity left, SupplyQuantity right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += this._supplyType.GetMarshalledSize(); // this._supplyType - marshalSize += 4; // this._quantity - return marshalSize; - } - - /// - /// Gets or sets the Type of supply - /// - [XmlElement(Type = typeof(EntityType), ElementName = "supplyType")] - public EntityType SupplyType - { - get - { - return this._supplyType; - } - - set - { - this._supplyType = value; - } - } - - /// - /// Gets or sets the the number of units of a supply type. - /// - [XmlElement(Type = typeof(float), ElementName = "quantity")] - public float Quantity - { - get - { - return this._quantity; - } - - set - { - this._quantity = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - this._supplyType.Marshal(dos); - dos.WriteFloat((float)this._quantity); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._supplyType.Unmarshal(dis); - this._quantity = dis.ReadFloat(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine(""); - this._supplyType.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._quantity.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as SupplyQuantity; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(SupplyQuantity obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (!this._supplyType.Equals(obj._supplyType)) - { - ivarsEqual = false; - } - - if (this._quantity != obj._quantity) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._supplyType.GetHashCode(); - result = GenerateHash(result) ^ this._quantity.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/SyntheticEnvironmentFamilyPdu.cs b/Libs/CSharpDis7/SyntheticEnvironmentFamilyPdu.cs deleted file mode 100644 index b9c288d..0000000 --- a/Libs/CSharpDis7/SyntheticEnvironmentFamilyPdu.cs +++ /dev/null @@ -1,248 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Section 5.3.11: Abstract superclass for synthetic environment PDUs - /// - [Serializable] - [XmlRoot] - public partial class SyntheticEnvironmentFamilyPdu : Pdu, IEquatable - { - /// - /// Initializes a new instance of the class. - /// - public SyntheticEnvironmentFamilyPdu() - { - ProtocolFamily = (byte)9; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(SyntheticEnvironmentFamilyPdu left, SyntheticEnvironmentFamilyPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(SyntheticEnvironmentFamilyPdu left, SyntheticEnvironmentFamilyPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - return marshalSize; - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public virtual void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as SyntheticEnvironmentFamilyPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(SyntheticEnvironmentFamilyPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/SystemIdentifier.cs b/Libs/CSharpDis7/SystemIdentifier.cs deleted file mode 100644 index db1c2a6..0000000 --- a/Libs/CSharpDis7/SystemIdentifier.cs +++ /dev/null @@ -1,376 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// The ID of the IFF emitting system. NOT COMPLETE. Section 6.2.86 - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(ChangeOptions))] - public partial class SystemIdentifier - { - /// - /// general type of emitting system, an enumeration - /// - private ushort _systemType; - - /// - /// named type of system, an enumeration - /// - private ushort _systemName; - - /// - /// mode of operation for the system, an enumeration - /// - private ushort _systemMode; - - /// - /// status of this PDU, see section 6.2.15 - /// - private ChangeOptions _changeOptions = new ChangeOptions(); - - /// - /// Initializes a new instance of the class. - /// - public SystemIdentifier() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(SystemIdentifier left, SystemIdentifier right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(SystemIdentifier left, SystemIdentifier right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 2; // this._systemType - marshalSize += 2; // this._systemName - marshalSize += 2; // this._systemMode - marshalSize += this._changeOptions.GetMarshalledSize(); // this._changeOptions - return marshalSize; - } - - /// - /// Gets or sets the general type of emitting system, an enumeration - /// - [XmlElement(Type = typeof(ushort), ElementName = "systemType")] - public ushort SystemType - { - get - { - return this._systemType; - } - - set - { - this._systemType = value; - } - } - - /// - /// Gets or sets the named type of system, an enumeration - /// - [XmlElement(Type = typeof(ushort), ElementName = "systemName")] - public ushort SystemName - { - get - { - return this._systemName; - } - - set - { - this._systemName = value; - } - } - - /// - /// Gets or sets the mode of operation for the system, an enumeration - /// - [XmlElement(Type = typeof(ushort), ElementName = "systemMode")] - public ushort SystemMode - { - get - { - return this._systemMode; - } - - set - { - this._systemMode = value; - } - } - - /// - /// Gets or sets the status of this PDU, see section 6.2.15 - /// - [XmlElement(Type = typeof(ChangeOptions), ElementName = "changeOptions")] - public ChangeOptions ChangeOptions - { - get - { - return this._changeOptions; - } - - set - { - this._changeOptions = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._systemType); - dos.WriteUnsignedShort((ushort)this._systemName); - dos.WriteUnsignedShort((ushort)this._systemMode); - this._changeOptions.Marshal(dos); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._systemType = dis.ReadUnsignedShort(); - this._systemName = dis.ReadUnsignedShort(); - this._systemMode = dis.ReadUnsignedShort(); - this._changeOptions.Unmarshal(dis); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._systemType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._systemName.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._systemMode.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._changeOptions.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as SystemIdentifier; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(SystemIdentifier obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._systemType != obj._systemType) - { - ivarsEqual = false; - } - - if (this._systemName != obj._systemName) - { - ivarsEqual = false; - } - - if (this._systemMode != obj._systemMode) - { - ivarsEqual = false; - } - - if (!this._changeOptions.Equals(obj._changeOptions)) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._systemType.GetHashCode(); - result = GenerateHash(result) ^ this._systemName.GetHashCode(); - result = GenerateHash(result) ^ this._systemMode.GetHashCode(); - result = GenerateHash(result) ^ this._changeOptions.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/TotalRecordSets.cs b/Libs/CSharpDis7/TotalRecordSets.cs deleted file mode 100644 index a7d9d4f..0000000 --- a/Libs/CSharpDis7/TotalRecordSets.cs +++ /dev/null @@ -1,309 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Total number of record sets contained in a logical set of one or more PDUs. Used to transfer ownership, etc Section 6.2.88 - /// - [Serializable] - [XmlRoot] - public partial class TotalRecordSets - { - /// - /// Total number of record sets - /// - private ushort _totalRecordSets; - - /// - /// padding - /// - private ushort _padding; - - /// - /// Initializes a new instance of the class. - /// - public TotalRecordSets() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(TotalRecordSets left, TotalRecordSets right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(TotalRecordSets left, TotalRecordSets right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 2; // this._totalRecordSets - marshalSize += 2; // this._padding - return marshalSize; - } - - /// - /// Gets or sets the Total number of record sets - /// - [XmlElement(Type = typeof(ushort), ElementName = "totalRecordSets")] - public ushort TotalRecordSets_ - { - get - { - return this._totalRecordSets; - } - - set - { - this._totalRecordSets = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(ushort), ElementName = "padding")] - public ushort Padding - { - get - { - return this._padding; - } - - set - { - this._padding = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._totalRecordSets); - dos.WriteUnsignedShort((ushort)this._padding); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._totalRecordSets = dis.ReadUnsignedShort(); - this._padding = dis.ReadUnsignedShort(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._totalRecordSets.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as TotalRecordSets; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(TotalRecordSets obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._totalRecordSets != obj._totalRecordSets) - { - ivarsEqual = false; - } - - if (this._padding != obj._padding) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._totalRecordSets.GetHashCode(); - result = GenerateHash(result) ^ this._padding.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/TrackJamData.cs b/Libs/CSharpDis7/TrackJamData.cs deleted file mode 100644 index da7cf75..0000000 --- a/Libs/CSharpDis7/TrackJamData.cs +++ /dev/null @@ -1,344 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Track-Jam data Section 6.2.89 - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - public partial class TrackJamData - { - /// - /// the entity tracked or illumated, or an emitter beam targeted with jamming - /// - private EntityID _entityID = new EntityID(); - - /// - /// Emitter system associated with the entity - /// - private byte _emitterNumber; - - /// - /// Beam associated with the entity - /// - private byte _beamNumber; - - /// - /// Initializes a new instance of the class. - /// - public TrackJamData() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(TrackJamData left, TrackJamData right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(TrackJamData left, TrackJamData right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += this._entityID.GetMarshalledSize(); // this._entityID - marshalSize += 1; // this._emitterNumber - marshalSize += 1; // this._beamNumber - return marshalSize; - } - - /// - /// Gets or sets the the entity tracked or illumated, or an emitter beam targeted with jamming - /// - [XmlElement(Type = typeof(EntityID), ElementName = "entityID")] - public EntityID EntityID - { - get - { - return this._entityID; - } - - set - { - this._entityID = value; - } - } - - /// - /// Gets or sets the Emitter system associated with the entity - /// - [XmlElement(Type = typeof(byte), ElementName = "emitterNumber")] - public byte EmitterNumber - { - get - { - return this._emitterNumber; - } - - set - { - this._emitterNumber = value; - } - } - - /// - /// Gets or sets the Beam associated with the entity - /// - [XmlElement(Type = typeof(byte), ElementName = "beamNumber")] - public byte BeamNumber - { - get - { - return this._beamNumber; - } - - set - { - this._beamNumber = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - this._entityID.Marshal(dos); - dos.WriteUnsignedByte((byte)this._emitterNumber); - dos.WriteUnsignedByte((byte)this._beamNumber); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._entityID.Unmarshal(dis); - this._emitterNumber = dis.ReadUnsignedByte(); - this._beamNumber = dis.ReadUnsignedByte(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine(""); - this._entityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._emitterNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._beamNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as TrackJamData; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(TrackJamData obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (!this._entityID.Equals(obj._entityID)) - { - ivarsEqual = false; - } - - if (this._emitterNumber != obj._emitterNumber) - { - ivarsEqual = false; - } - - if (this._beamNumber != obj._beamNumber) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._entityID.GetHashCode(); - result = GenerateHash(result) ^ this._emitterNumber.GetHashCode(); - result = GenerateHash(result) ^ this._beamNumber.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/TwoByteChunk.cs b/Libs/CSharpDis7/TwoByteChunk.cs deleted file mode 100644 index a92f68a..0000000 --- a/Libs/CSharpDis7/TwoByteChunk.cs +++ /dev/null @@ -1,303 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// 16 bit piece of data - /// - [Serializable] - [XmlRoot] - public partial class TwoByteChunk - { - /// - /// two bytes of arbitrary data - /// - private byte[] _otherParameters = new byte[2]; - - /// - /// Initializes a new instance of the class. - /// - public TwoByteChunk() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(TwoByteChunk left, TwoByteChunk right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(TwoByteChunk left, TwoByteChunk right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 2 * 1; // _otherParameters - return marshalSize; - } - - /// - /// Gets or sets the two bytes of arbitrary data - /// - [XmlArray(ElementName = "otherParameters")] - public byte[] OtherParameters - { - get - { - return this._otherParameters; - } - - set - { - this._otherParameters = value; - } -} - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - - for (int idx = 0; idx < this._otherParameters.Length; idx++) - { - dos.WriteByte(this._otherParameters[idx]); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - for (int idx = 0; idx < this._otherParameters.Length; idx++) - { - this._otherParameters[idx] = dis.ReadByte(); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - for (int idx = 0; idx < this._otherParameters.Length; idx++) - { - sb.AppendLine("" + this._otherParameters[idx] + ""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as TwoByteChunk; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(TwoByteChunk obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (obj._otherParameters.Length != 2) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < 2; idx++) - { - if (this._otherParameters[idx] != obj._otherParameters[idx]) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - - for (int idx = 0; idx < 2; idx++) - { - result = GenerateHash(result) ^ this._otherParameters[idx].GetHashCode(); - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/UAFundamentalParameter.cs b/Libs/CSharpDis7/UAFundamentalParameter.cs deleted file mode 100644 index f70d8c4..0000000 --- a/Libs/CSharpDis7/UAFundamentalParameter.cs +++ /dev/null @@ -1,437 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Regeneration parameters for active emission systems that are variable throughout a scenario. Section 6.2.90 - /// - [Serializable] - [XmlRoot] - public partial class UAFundamentalParameter - { - /// - /// Which database record shall be used. An enumeration from EBV document - /// - private ushort _activeEmissionParameterIndex; - - /// - /// The type of scan pattern, If not used, zero. An enumeration from EBV document - /// - private ushort _scanPattern; - - /// - /// center azimuth bearing of th emain beam. In radians. - /// - private float _beamCenterAzimuthHorizontal; - - /// - /// Horizontal beamwidth of th emain beam Meastued at the 3dB down point of peak radiated power. In radians. - /// - private float _azimuthalBeamwidthHorizontal; - - /// - /// center of the d/e angle of th emain beam relative to the stablised de angle of the target. In radians. - /// - private float _beamCenterDepressionElevation; - - /// - /// vertical beamwidth of the main beam. Meastured at the 3dB down point of peak radiated power. In radians. - /// - private float _beamwidthDownElevation; - - /// - /// Initializes a new instance of the class. - /// - public UAFundamentalParameter() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(UAFundamentalParameter left, UAFundamentalParameter right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(UAFundamentalParameter left, UAFundamentalParameter right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 2; // this._activeEmissionParameterIndex - marshalSize += 2; // this._scanPattern - marshalSize += 4; // this._beamCenterAzimuthHorizontal - marshalSize += 4; // this._azimuthalBeamwidthHorizontal - marshalSize += 4; // this._beamCenterDepressionElevation - marshalSize += 4; // this._beamwidthDownElevation - return marshalSize; - } - - /// - /// Gets or sets the Which database record shall be used. An enumeration from EBV document - /// - [XmlElement(Type = typeof(ushort), ElementName = "activeEmissionParameterIndex")] - public ushort ActiveEmissionParameterIndex - { - get - { - return this._activeEmissionParameterIndex; - } - - set - { - this._activeEmissionParameterIndex = value; - } - } - - /// - /// Gets or sets the The type of scan pattern, If not used, zero. An enumeration from EBV document - /// - [XmlElement(Type = typeof(ushort), ElementName = "scanPattern")] - public ushort ScanPattern - { - get - { - return this._scanPattern; - } - - set - { - this._scanPattern = value; - } - } - - /// - /// Gets or sets the center azimuth bearing of th emain beam. In radians. - /// - [XmlElement(Type = typeof(float), ElementName = "beamCenterAzimuthHorizontal")] - public float BeamCenterAzimuthHorizontal - { - get - { - return this._beamCenterAzimuthHorizontal; - } - - set - { - this._beamCenterAzimuthHorizontal = value; - } - } - - /// - /// Gets or sets the Horizontal beamwidth of th emain beam Meastued at the 3dB down point of peak radiated power. In radians. - /// - [XmlElement(Type = typeof(float), ElementName = "azimuthalBeamwidthHorizontal")] - public float AzimuthalBeamwidthHorizontal - { - get - { - return this._azimuthalBeamwidthHorizontal; - } - - set - { - this._azimuthalBeamwidthHorizontal = value; - } - } - - /// - /// Gets or sets the center of the d/e angle of th emain beam relative to the stablised de angle of the target. In radians. - /// - [XmlElement(Type = typeof(float), ElementName = "beamCenterDepressionElevation")] - public float BeamCenterDepressionElevation - { - get - { - return this._beamCenterDepressionElevation; - } - - set - { - this._beamCenterDepressionElevation = value; - } - } - - /// - /// Gets or sets the vertical beamwidth of the main beam. Meastured at the 3dB down point of peak radiated power. In radians. - /// - [XmlElement(Type = typeof(float), ElementName = "beamwidthDownElevation")] - public float BeamwidthDownElevation - { - get - { - return this._beamwidthDownElevation; - } - - set - { - this._beamwidthDownElevation = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._activeEmissionParameterIndex); - dos.WriteUnsignedShort((ushort)this._scanPattern); - dos.WriteFloat((float)this._beamCenterAzimuthHorizontal); - dos.WriteFloat((float)this._azimuthalBeamwidthHorizontal); - dos.WriteFloat((float)this._beamCenterDepressionElevation); - dos.WriteFloat((float)this._beamwidthDownElevation); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._activeEmissionParameterIndex = dis.ReadUnsignedShort(); - this._scanPattern = dis.ReadUnsignedShort(); - this._beamCenterAzimuthHorizontal = dis.ReadFloat(); - this._azimuthalBeamwidthHorizontal = dis.ReadFloat(); - this._beamCenterDepressionElevation = dis.ReadFloat(); - this._beamwidthDownElevation = dis.ReadFloat(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._activeEmissionParameterIndex.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._scanPattern.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._beamCenterAzimuthHorizontal.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._azimuthalBeamwidthHorizontal.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._beamCenterDepressionElevation.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._beamwidthDownElevation.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as UAFundamentalParameter; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(UAFundamentalParameter obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._activeEmissionParameterIndex != obj._activeEmissionParameterIndex) - { - ivarsEqual = false; - } - - if (this._scanPattern != obj._scanPattern) - { - ivarsEqual = false; - } - - if (this._beamCenterAzimuthHorizontal != obj._beamCenterAzimuthHorizontal) - { - ivarsEqual = false; - } - - if (this._azimuthalBeamwidthHorizontal != obj._azimuthalBeamwidthHorizontal) - { - ivarsEqual = false; - } - - if (this._beamCenterDepressionElevation != obj._beamCenterDepressionElevation) - { - ivarsEqual = false; - } - - if (this._beamwidthDownElevation != obj._beamwidthDownElevation) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._activeEmissionParameterIndex.GetHashCode(); - result = GenerateHash(result) ^ this._scanPattern.GetHashCode(); - result = GenerateHash(result) ^ this._beamCenterAzimuthHorizontal.GetHashCode(); - result = GenerateHash(result) ^ this._azimuthalBeamwidthHorizontal.GetHashCode(); - result = GenerateHash(result) ^ this._beamCenterDepressionElevation.GetHashCode(); - result = GenerateHash(result) ^ this._beamwidthDownElevation.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/UaPdu.cs b/Libs/CSharpDis7/UaPdu.cs deleted file mode 100644 index 95784b1..0000000 --- a/Libs/CSharpDis7/UaPdu.cs +++ /dev/null @@ -1,756 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Information about underwater acoustic emmissions. This requires manual cleanup. The beam data records should ALL be a the finish, rather than attached to each emitter system. Section 7.6.4. UNFINISHED - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(EventIdentifier))] - [XmlInclude(typeof(Vector3Float))] - [XmlInclude(typeof(Vector3Float))] - [XmlInclude(typeof(Vector3Float))] - public partial class UaPdu : DistributedEmissionsFamilyPdu, IEquatable - { - /// - /// ID of the entity that is the source of the emission - /// - private EntityID _emittingEntityID = new EntityID(); - - /// - /// ID of event - /// - private EventIdentifier _eventID = new EventIdentifier(); - - /// - /// This field shall be used to indicate whether the data in the UA PDU represent a state update or data that have changed since issuance of the last UA PDU - /// - private byte _stateChangeIndicator; - - /// - /// padding - /// - private byte _pad; - - /// - /// This field indicates which database record (or file) shall be used in the definition of passive signature (unintentional) emissions of the entity. The indicated database record (or file) shall define all noise generated as a function of propulsion plant configurations and associated auxiliaries. - /// - private ushort _passiveParameterIndex; - - /// - /// This field shall specify the entity propulsion plant configuration. This field is used to determine the passive signature characteristics of an entity. - /// - private byte _propulsionPlantConfiguration; - - /// - /// This field shall represent the number of shafts on a platform - /// - private byte _numberOfShafts; - - /// - /// This field shall indicate the number of APAs described in the current UA PDU - /// - private byte _numberOfAPAs; - - /// - /// This field shall specify the number of UA emitter systems being described in the current UA PDU - /// - private byte _numberOfUAEmitterSystems; - - /// - /// shaft RPM values. THIS IS WRONG. It has the wrong class in the list. - /// - private List _shaftRPMs = new List(); - - /// - /// apaData. THIS IS WRONG. It has the worng class in the list. - /// - private List _apaData = new List(); - - /// - /// THIS IS WRONG. It has the wrong class in the list. - /// - private List _emitterSystems = new List(); - - /// - /// Initializes a new instance of the class. - /// - public UaPdu() - { - PduType = (byte)29; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(UaPdu left, UaPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(UaPdu left, UaPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._emittingEntityID.GetMarshalledSize(); // this._emittingEntityID - marshalSize += this._eventID.GetMarshalledSize(); // this._eventID - marshalSize += 1; // this._stateChangeIndicator - marshalSize += 1; // this._pad - marshalSize += 2; // this._passiveParameterIndex - marshalSize += 1; // this._propulsionPlantConfiguration - marshalSize += 1; // this._numberOfShafts - marshalSize += 1; // this._numberOfAPAs - marshalSize += 1; // this._numberOfUAEmitterSystems - for (int idx = 0; idx < this._shaftRPMs.Count; idx++) - { - Vector3Float listElement = (Vector3Float)this._shaftRPMs[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._apaData.Count; idx++) - { - Vector3Float listElement = (Vector3Float)this._apaData[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._emitterSystems.Count; idx++) - { - Vector3Float listElement = (Vector3Float)this._emitterSystems[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the ID of the entity that is the source of the emission - /// - [XmlElement(Type = typeof(EntityID), ElementName = "emittingEntityID")] - public EntityID EmittingEntityID - { - get - { - return this._emittingEntityID; - } - - set - { - this._emittingEntityID = value; - } - } - - /// - /// Gets or sets the ID of event - /// - [XmlElement(Type = typeof(EventIdentifier), ElementName = "eventID")] - public EventIdentifier EventID - { - get - { - return this._eventID; - } - - set - { - this._eventID = value; - } - } - - /// - /// Gets or sets the This field shall be used to indicate whether the data in the UA PDU represent a state update or data that have changed since issuance of the last UA PDU - /// - [XmlElement(Type = typeof(byte), ElementName = "stateChangeIndicator")] - public byte StateChangeIndicator - { - get - { - return this._stateChangeIndicator; - } - - set - { - this._stateChangeIndicator = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "pad")] - public byte Pad - { - get - { - return this._pad; - } - - set - { - this._pad = value; - } - } - - /// - /// Gets or sets the This field indicates which database record (or file) shall be used in the definition of passive signature (unintentional) emissions of the entity. The indicated database record (or file) shall define all noise generated as a function of propulsion plant configurations and associated auxiliaries. - /// - [XmlElement(Type = typeof(ushort), ElementName = "passiveParameterIndex")] - public ushort PassiveParameterIndex - { - get - { - return this._passiveParameterIndex; - } - - set - { - this._passiveParameterIndex = value; - } - } - - /// - /// Gets or sets the This field shall specify the entity propulsion plant configuration. This field is used to determine the passive signature characteristics of an entity. - /// - [XmlElement(Type = typeof(byte), ElementName = "propulsionPlantConfiguration")] - public byte PropulsionPlantConfiguration - { - get - { - return this._propulsionPlantConfiguration; - } - - set - { - this._propulsionPlantConfiguration = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfShafts method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfShafts")] - public byte NumberOfShafts - { - get - { - return this._numberOfShafts; - } - - set - { - this._numberOfShafts = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfAPAs method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfAPAs")] - public byte NumberOfAPAs - { - get - { - return this._numberOfAPAs; - } - - set - { - this._numberOfAPAs = value; - } - } - - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfUAEmitterSystems method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfUAEmitterSystems")] - public byte NumberOfUAEmitterSystems - { - get - { - return this._numberOfUAEmitterSystems; - } - - set - { - this._numberOfUAEmitterSystems = value; - } - } - - /// - /// Gets or sets the shaft RPM values. THIS IS WRONG. It has the wrong class in the list. - /// - [XmlElement(ElementName = "shaftRPMsList", Type = typeof(List))] - public List ShaftRPMs - { - get - { - return this._shaftRPMs; - } - } - - /// - /// Gets or sets the apaData. THIS IS WRONG. It has the worng class in the list. - /// - [XmlElement(ElementName = "apaDataList", Type = typeof(List))] - public List ApaData - { - get - { - return this._apaData; - } - } - - /// - /// Gets or sets the THIS IS WRONG. It has the wrong class in the list. - /// - [XmlElement(ElementName = "emitterSystemsList", Type = typeof(List))] - public List EmitterSystems - { - get - { - return this._emitterSystems; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._emittingEntityID.Marshal(dos); - this._eventID.Marshal(dos); - dos.WriteByte((byte)this._stateChangeIndicator); - dos.WriteByte((byte)this._pad); - dos.WriteUnsignedShort((ushort)this._passiveParameterIndex); - dos.WriteUnsignedByte((byte)this._propulsionPlantConfiguration); - dos.WriteUnsignedByte((byte)this._shaftRPMs.Count); - dos.WriteUnsignedByte((byte)this._apaData.Count); - dos.WriteUnsignedByte((byte)this._emitterSystems.Count); - - for (int idx = 0; idx < this._shaftRPMs.Count; idx++) - { - Vector3Float aVector3Float = (Vector3Float)this._shaftRPMs[idx]; - aVector3Float.Marshal(dos); - } - - for (int idx = 0; idx < this._apaData.Count; idx++) - { - Vector3Float aVector3Float = (Vector3Float)this._apaData[idx]; - aVector3Float.Marshal(dos); - } - - for (int idx = 0; idx < this._emitterSystems.Count; idx++) - { - Vector3Float aVector3Float = (Vector3Float)this._emitterSystems[idx]; - aVector3Float.Marshal(dos); - } - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._emittingEntityID.Unmarshal(dis); - this._eventID.Unmarshal(dis); - this._stateChangeIndicator = dis.ReadByte(); - this._pad = dis.ReadByte(); - this._passiveParameterIndex = dis.ReadUnsignedShort(); - this._propulsionPlantConfiguration = dis.ReadUnsignedByte(); - this._numberOfShafts = dis.ReadUnsignedByte(); - this._numberOfAPAs = dis.ReadUnsignedByte(); - this._numberOfUAEmitterSystems = dis.ReadUnsignedByte(); - for (int idx = 0; idx < this.NumberOfShafts; idx++) - { - Vector3Float anX = new Vector3Float(); - anX.Unmarshal(dis); - this._shaftRPMs.Add(anX); - }; - - for (int idx = 0; idx < this.NumberOfAPAs; idx++) - { - Vector3Float anX = new Vector3Float(); - anX.Unmarshal(dis); - this._apaData.Add(anX); - }; - - for (int idx = 0; idx < this.NumberOfUAEmitterSystems; idx++) - { - Vector3Float anX = new Vector3Float(); - anX.Unmarshal(dis); - this._emitterSystems.Add(anX); - }; - - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._emittingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._eventID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._stateChangeIndicator.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._passiveParameterIndex.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._propulsionPlantConfiguration.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._shaftRPMs.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._apaData.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._emitterSystems.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._shaftRPMs.Count; idx++) - { - sb.AppendLine(""); - Vector3Float aVector3Float = (Vector3Float)this._shaftRPMs[idx]; - aVector3Float.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._apaData.Count; idx++) - { - sb.AppendLine(""); - Vector3Float aVector3Float = (Vector3Float)this._apaData[idx]; - aVector3Float.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._emitterSystems.Count; idx++) - { - sb.AppendLine(""); - Vector3Float aVector3Float = (Vector3Float)this._emitterSystems[idx]; - aVector3Float.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as UaPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(UaPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._emittingEntityID.Equals(obj._emittingEntityID)) - { - ivarsEqual = false; - } - - if (!this._eventID.Equals(obj._eventID)) - { - ivarsEqual = false; - } - - if (this._stateChangeIndicator != obj._stateChangeIndicator) - { - ivarsEqual = false; - } - - if (this._pad != obj._pad) - { - ivarsEqual = false; - } - - if (this._passiveParameterIndex != obj._passiveParameterIndex) - { - ivarsEqual = false; - } - - if (this._propulsionPlantConfiguration != obj._propulsionPlantConfiguration) - { - ivarsEqual = false; - } - - if (this._numberOfShafts != obj._numberOfShafts) - { - ivarsEqual = false; - } - - if (this._numberOfAPAs != obj._numberOfAPAs) - { - ivarsEqual = false; - } - - if (this._numberOfUAEmitterSystems != obj._numberOfUAEmitterSystems) - { - ivarsEqual = false; - } - - if (this._shaftRPMs.Count != obj._shaftRPMs.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._shaftRPMs.Count; idx++) - { - if (!this._shaftRPMs[idx].Equals(obj._shaftRPMs[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._apaData.Count != obj._apaData.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._apaData.Count; idx++) - { - if (!this._apaData[idx].Equals(obj._apaData[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._emitterSystems.Count != obj._emitterSystems.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._emitterSystems.Count; idx++) - { - if (!this._emitterSystems[idx].Equals(obj._emitterSystems[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._emittingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._eventID.GetHashCode(); - result = GenerateHash(result) ^ this._stateChangeIndicator.GetHashCode(); - result = GenerateHash(result) ^ this._pad.GetHashCode(); - result = GenerateHash(result) ^ this._passiveParameterIndex.GetHashCode(); - result = GenerateHash(result) ^ this._propulsionPlantConfiguration.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfShafts.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfAPAs.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfUAEmitterSystems.GetHashCode(); - - if (this._shaftRPMs.Count > 0) - { - for (int idx = 0; idx < this._shaftRPMs.Count; idx++) - { - result = GenerateHash(result) ^ this._shaftRPMs[idx].GetHashCode(); - } - } - - if (this._apaData.Count > 0) - { - for (int idx = 0; idx < this._apaData.Count; idx++) - { - result = GenerateHash(result) ^ this._apaData[idx].GetHashCode(); - } - } - - if (this._emitterSystems.Count > 0) - { - for (int idx = 0; idx < this._emitterSystems.Count; idx++) - { - result = GenerateHash(result) ^ this._emitterSystems[idx].GetHashCode(); - } - } - - return result; - } - } -} diff --git a/Libs/CSharpDis7/UnattachedIdentifier.cs b/Libs/CSharpDis7/UnattachedIdentifier.cs deleted file mode 100644 index 7c6c000..0000000 --- a/Libs/CSharpDis7/UnattachedIdentifier.cs +++ /dev/null @@ -1,312 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// The unique designation of one or more unattached radios in an event or exercise Section 6.2.91 - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(SimulationAddress))] - public partial class UnattachedIdentifier - { - /// - /// See 6.2.79 - /// - private SimulationAddress _simulationAddress = new SimulationAddress(); - - /// - /// Reference number - /// - private ushort _referenceNumber; - - /// - /// Initializes a new instance of the class. - /// - public UnattachedIdentifier() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(UnattachedIdentifier left, UnattachedIdentifier right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(UnattachedIdentifier left, UnattachedIdentifier right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += this._simulationAddress.GetMarshalledSize(); // this._simulationAddress - marshalSize += 2; // this._referenceNumber - return marshalSize; - } - - /// - /// Gets or sets the See 6.2.79 - /// - [XmlElement(Type = typeof(SimulationAddress), ElementName = "simulationAddress")] - public SimulationAddress SimulationAddress - { - get - { - return this._simulationAddress; - } - - set - { - this._simulationAddress = value; - } - } - - /// - /// Gets or sets the Reference number - /// - [XmlElement(Type = typeof(ushort), ElementName = "referenceNumber")] - public ushort ReferenceNumber - { - get - { - return this._referenceNumber; - } - - set - { - this._referenceNumber = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - this._simulationAddress.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._referenceNumber); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._simulationAddress.Unmarshal(dis); - this._referenceNumber = dis.ReadUnsignedShort(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine(""); - this._simulationAddress.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._referenceNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as UnattachedIdentifier; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(UnattachedIdentifier obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (!this._simulationAddress.Equals(obj._simulationAddress)) - { - ivarsEqual = false; - } - - if (this._referenceNumber != obj._referenceNumber) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._simulationAddress.GetHashCode(); - result = GenerateHash(result) ^ this._referenceNumber.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/UnsignedDISInteger.cs b/Libs/CSharpDis7/UnsignedDISInteger.cs deleted file mode 100644 index a09f68f..0000000 --- a/Libs/CSharpDis7/UnsignedDISInteger.cs +++ /dev/null @@ -1,277 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// container class not in specification - /// - [Serializable] - [XmlRoot] - public partial class UnsignedDISInteger - { - /// - /// unsigned integer - /// - private uint _val; - - /// - /// Initializes a new instance of the class. - /// - public UnsignedDISInteger() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(UnsignedDISInteger left, UnsignedDISInteger right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(UnsignedDISInteger left, UnsignedDISInteger right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._val - return marshalSize; - } - - /// - /// Gets or sets the unsigned integer - /// - [XmlElement(Type = typeof(uint), ElementName = "val")] - public uint Val - { - get - { - return this._val; - } - - set - { - this._val = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._val); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._val = dis.ReadUnsignedInt(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._val.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as UnsignedDISInteger; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(UnsignedDISInteger obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._val != obj._val) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._val.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/VariableDatum.cs b/Libs/CSharpDis7/VariableDatum.cs deleted file mode 100644 index 0b26932..0000000 --- a/Libs/CSharpDis7/VariableDatum.cs +++ /dev/null @@ -1,373 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// the variable datum type, the datum length, and the value for that variable datum type. NOT COMPLETE. Section 6.2.92 - /// - [Serializable] - [XmlRoot] - public partial class VariableDatum - { - /// - /// Type of variable datum to be transmitted. 32 bit enumeration defined in EBV - /// - private uint _variableDatumID; - - /// - /// Length, in bits, of the variable datum. - /// - private uint _variableDatumLength; - - /// - /// Variable datum. This can be any number of bits long, depending on the datum. - /// - private uint _variableDatumBits; - - /// - /// padding to put the record on a 64 bit boundary - /// - private uint _padding; - - /// - /// Initializes a new instance of the class. - /// - public VariableDatum() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(VariableDatum left, VariableDatum right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(VariableDatum left, VariableDatum right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._variableDatumID - marshalSize += 4; // this._variableDatumLength - marshalSize += 4; // this._variableDatumBits - marshalSize += 4; // this._padding - return marshalSize; - } - - /// - /// Gets or sets the Type of variable datum to be transmitted. 32 bit enumeration defined in EBV - /// - [XmlElement(Type = typeof(uint), ElementName = "variableDatumID")] - public uint VariableDatumID - { - get - { - return this._variableDatumID; - } - - set - { - this._variableDatumID = value; - } - } - - /// - /// Gets or sets the Length, in bits, of the variable datum. - /// - [XmlElement(Type = typeof(uint), ElementName = "variableDatumLength")] - public uint VariableDatumLength - { - get - { - return this._variableDatumLength; - } - - set - { - this._variableDatumLength = value; - } - } - - /// - /// Gets or sets the Variable datum. This can be any number of bits long, depending on the datum. - /// - [XmlElement(Type = typeof(uint), ElementName = "variableDatumBits")] - public uint VariableDatumBits - { - get - { - return this._variableDatumBits; - } - - set - { - this._variableDatumBits = value; - } - } - - /// - /// Gets or sets the padding to put the record on a 64 bit boundary - /// - [XmlElement(Type = typeof(uint), ElementName = "padding")] - public uint Padding - { - get - { - return this._padding; - } - - set - { - this._padding = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._variableDatumID); - dos.WriteUnsignedInt((uint)this._variableDatumLength); - dos.WriteUnsignedInt((uint)this._variableDatumBits); - dos.WriteUnsignedInt((uint)this._padding); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._variableDatumID = dis.ReadUnsignedInt(); - this._variableDatumLength = dis.ReadUnsignedInt(); - this._variableDatumBits = dis.ReadUnsignedInt(); - this._padding = dis.ReadUnsignedInt(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._variableDatumID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableDatumLength.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableDatumBits.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as VariableDatum; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(VariableDatum obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._variableDatumID != obj._variableDatumID) - { - ivarsEqual = false; - } - - if (this._variableDatumLength != obj._variableDatumLength) - { - ivarsEqual = false; - } - - if (this._variableDatumBits != obj._variableDatumBits) - { - ivarsEqual = false; - } - - if (this._padding != obj._padding) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._variableDatumID.GetHashCode(); - result = GenerateHash(result) ^ this._variableDatumLength.GetHashCode(); - result = GenerateHash(result) ^ this._variableDatumBits.GetHashCode(); - result = GenerateHash(result) ^ this._padding.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/VariableParameter.cs b/Libs/CSharpDis7/VariableParameter.cs deleted file mode 100644 index b589e23..0000000 --- a/Libs/CSharpDis7/VariableParameter.cs +++ /dev/null @@ -1,405 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// specification of additional information associated with an entity or detonation, not otherwise accounted for in a PDU 6.2.93.1 - /// - [Serializable] - [XmlRoot] - public partial class VariableParameter - { - /// - /// the identification of the Variable Parameter record. Enumeration from EBV - /// - private byte _recordType; - - /// - /// Variable parameter data fields. Two doubles minus one byte - /// - private double _variableParameterFields1; - - /// - /// Variable parameter data fields. - /// - private uint _variableParameterFields2; - - /// - /// Variable parameter data fields. - /// - private ushort _variableParameterFields3; - - /// - /// Variable parameter data fields. - /// - private byte _variableParameterFields4; - - /// - /// Initializes a new instance of the class. - /// - public VariableParameter() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(VariableParameter left, VariableParameter right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(VariableParameter left, VariableParameter right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._recordType - marshalSize += 8; // this._variableParameterFields1 - marshalSize += 4; // this._variableParameterFields2 - marshalSize += 2; // this._variableParameterFields3 - marshalSize += 1; // this._variableParameterFields4 - return marshalSize; - } - - /// - /// Gets or sets the the identification of the Variable Parameter record. Enumeration from EBV - /// - [XmlElement(Type = typeof(byte), ElementName = "recordType")] - public byte RecordType - { - get - { - return this._recordType; - } - - set - { - this._recordType = value; - } - } - - /// - /// Gets or sets the Variable parameter data fields. Two doubles minus one byte - /// - [XmlElement(Type = typeof(double), ElementName = "variableParameterFields1")] - public double VariableParameterFields1 - { - get - { - return this._variableParameterFields1; - } - - set - { - this._variableParameterFields1 = value; - } - } - - /// - /// Gets or sets the Variable parameter data fields. - /// - [XmlElement(Type = typeof(uint), ElementName = "variableParameterFields2")] - public uint VariableParameterFields2 - { - get - { - return this._variableParameterFields2; - } - - set - { - this._variableParameterFields2 = value; - } - } - - /// - /// Gets or sets the Variable parameter data fields. - /// - [XmlElement(Type = typeof(ushort), ElementName = "variableParameterFields3")] - public ushort VariableParameterFields3 - { - get - { - return this._variableParameterFields3; - } - - set - { - this._variableParameterFields3 = value; - } - } - - /// - /// Gets or sets the Variable parameter data fields. - /// - [XmlElement(Type = typeof(byte), ElementName = "variableParameterFields4")] - public byte VariableParameterFields4 - { - get - { - return this._variableParameterFields4; - } - - set - { - this._variableParameterFields4 = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._recordType); - dos.WriteDouble((double)this._variableParameterFields1); - dos.WriteUnsignedInt((uint)this._variableParameterFields2); - dos.WriteUnsignedShort((ushort)this._variableParameterFields3); - dos.WriteUnsignedByte((byte)this._variableParameterFields4); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._recordType = dis.ReadUnsignedByte(); - this._variableParameterFields1 = dis.ReadDouble(); - this._variableParameterFields2 = dis.ReadUnsignedInt(); - this._variableParameterFields3 = dis.ReadUnsignedShort(); - this._variableParameterFields4 = dis.ReadUnsignedByte(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._recordType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableParameterFields1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableParameterFields2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableParameterFields3.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableParameterFields4.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as VariableParameter; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(VariableParameter obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._recordType != obj._recordType) - { - ivarsEqual = false; - } - - if (this._variableParameterFields1 != obj._variableParameterFields1) - { - ivarsEqual = false; - } - - if (this._variableParameterFields2 != obj._variableParameterFields2) - { - ivarsEqual = false; - } - - if (this._variableParameterFields3 != obj._variableParameterFields3) - { - ivarsEqual = false; - } - - if (this._variableParameterFields4 != obj._variableParameterFields4) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._recordType.GetHashCode(); - result = GenerateHash(result) ^ this._variableParameterFields1.GetHashCode(); - result = GenerateHash(result) ^ this._variableParameterFields2.GetHashCode(); - result = GenerateHash(result) ^ this._variableParameterFields3.GetHashCode(); - result = GenerateHash(result) ^ this._variableParameterFields4.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/VariableTransmitterParameters.cs b/Libs/CSharpDis7/VariableTransmitterParameters.cs deleted file mode 100644 index 26f8411..0000000 --- a/Libs/CSharpDis7/VariableTransmitterParameters.cs +++ /dev/null @@ -1,309 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Relates to radios. NOT COMPLETE. Section 6.2.94 - /// - [Serializable] - [XmlRoot] - public partial class VariableTransmitterParameters - { - /// - /// Type of VTP. Enumeration from EBV - /// - private uint _recordType = 4; - - /// - /// Length, in bytes - /// - private uint _recordLength = 4; - - /// - /// Initializes a new instance of the class. - /// - public VariableTransmitterParameters() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(VariableTransmitterParameters left, VariableTransmitterParameters right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(VariableTransmitterParameters left, VariableTransmitterParameters right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._recordType - marshalSize += 4; // this._recordLength - return marshalSize; - } - - /// - /// Gets or sets the Type of VTP. Enumeration from EBV - /// - [XmlElement(Type = typeof(uint), ElementName = "recordType")] - public uint RecordType - { - get - { - return this._recordType; - } - - set - { - this._recordType = value; - } - } - - /// - /// Gets or sets the Length, in bytes - /// - [XmlElement(Type = typeof(uint), ElementName = "recordLength")] - public uint RecordLength - { - get - { - return this._recordLength; - } - - set - { - this._recordLength = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._recordType); - dos.WriteUnsignedInt((uint)this._recordLength); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._recordType = dis.ReadUnsignedInt(); - this._recordLength = dis.ReadUnsignedInt(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._recordType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._recordLength.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as VariableTransmitterParameters; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(VariableTransmitterParameters obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._recordType != obj._recordType) - { - ivarsEqual = false; - } - - if (this._recordLength != obj._recordLength) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._recordType.GetHashCode(); - result = GenerateHash(result) ^ this._recordLength.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/Vector2Float.cs b/Libs/CSharpDis7/Vector2Float.cs deleted file mode 100644 index 2184d38..0000000 --- a/Libs/CSharpDis7/Vector2Float.cs +++ /dev/null @@ -1,309 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Two floating point values, x, y - /// - [Serializable] - [XmlRoot] - public partial class Vector2Float - { - /// - /// X value - /// - private float _x; - - /// - /// y Value - /// - private float _y; - - /// - /// Initializes a new instance of the class. - /// - public Vector2Float() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(Vector2Float left, Vector2Float right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(Vector2Float left, Vector2Float right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._x - marshalSize += 4; // this._y - return marshalSize; - } - - /// - /// Gets or sets the X value - /// - [XmlElement(Type = typeof(float), ElementName = "x")] - public float X - { - get - { - return this._x; - } - - set - { - this._x = value; - } - } - - /// - /// Gets or sets the y Value - /// - [XmlElement(Type = typeof(float), ElementName = "y")] - public float Y - { - get - { - return this._y; - } - - set - { - this._y = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteFloat((float)this._x); - dos.WriteFloat((float)this._y); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._x = dis.ReadFloat(); - this._y = dis.ReadFloat(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._x.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._y.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as Vector2Float; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(Vector2Float obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._x != obj._x) - { - ivarsEqual = false; - } - - if (this._y != obj._y) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._x.GetHashCode(); - result = GenerateHash(result) ^ this._y.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/Vector3Double.cs b/Libs/CSharpDis7/Vector3Double.cs deleted file mode 100644 index 8784efa..0000000 --- a/Libs/CSharpDis7/Vector3Double.cs +++ /dev/null @@ -1,341 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Three double precision floating point values, x, y, and z. Used for world coordinates Section 6.2.97. - /// - [Serializable] - [XmlRoot] - public partial class Vector3Double - { - /// - /// X value - /// - private double _x; - - /// - /// y Value - /// - private double _y; - - /// - /// Z value - /// - private double _z; - - /// - /// Initializes a new instance of the class. - /// - public Vector3Double() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(Vector3Double left, Vector3Double right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(Vector3Double left, Vector3Double right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 8; // this._x - marshalSize += 8; // this._y - marshalSize += 8; // this._z - return marshalSize; - } - - /// - /// Gets or sets the X value - /// - [XmlElement(Type = typeof(double), ElementName = "x")] - public double X - { - get - { - return this._x; - } - - set - { - this._x = value; - } - } - - /// - /// Gets or sets the y Value - /// - [XmlElement(Type = typeof(double), ElementName = "y")] - public double Y - { - get - { - return this._y; - } - - set - { - this._y = value; - } - } - - /// - /// Gets or sets the Z value - /// - [XmlElement(Type = typeof(double), ElementName = "z")] - public double Z - { - get - { - return this._z; - } - - set - { - this._z = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteDouble((double)this._x); - dos.WriteDouble((double)this._y); - dos.WriteDouble((double)this._z); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._x = dis.ReadDouble(); - this._y = dis.ReadDouble(); - this._z = dis.ReadDouble(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._x.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._y.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._z.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as Vector3Double; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(Vector3Double obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._x != obj._x) - { - ivarsEqual = false; - } - - if (this._y != obj._y) - { - ivarsEqual = false; - } - - if (this._z != obj._z) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._x.GetHashCode(); - result = GenerateHash(result) ^ this._y.GetHashCode(); - result = GenerateHash(result) ^ this._z.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/Vector3Float.cs b/Libs/CSharpDis7/Vector3Float.cs deleted file mode 100644 index 82689bc..0000000 --- a/Libs/CSharpDis7/Vector3Float.cs +++ /dev/null @@ -1,341 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Three floating point values, x, y, and z. Section 6.2.95 - /// - [Serializable] - [XmlRoot] - public partial class Vector3Float - { - /// - /// X value - /// - private float _x; - - /// - /// y Value - /// - private float _y; - - /// - /// Z value - /// - private float _z; - - /// - /// Initializes a new instance of the class. - /// - public Vector3Float() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(Vector3Float left, Vector3Float right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(Vector3Float left, Vector3Float right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._x - marshalSize += 4; // this._y - marshalSize += 4; // this._z - return marshalSize; - } - - /// - /// Gets or sets the X value - /// - [XmlElement(Type = typeof(float), ElementName = "x")] - public float X - { - get - { - return this._x; - } - - set - { - this._x = value; - } - } - - /// - /// Gets or sets the y Value - /// - [XmlElement(Type = typeof(float), ElementName = "y")] - public float Y - { - get - { - return this._y; - } - - set - { - this._y = value; - } - } - - /// - /// Gets or sets the Z value - /// - [XmlElement(Type = typeof(float), ElementName = "z")] - public float Z - { - get - { - return this._z; - } - - set - { - this._z = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteFloat((float)this._x); - dos.WriteFloat((float)this._y); - dos.WriteFloat((float)this._z); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._x = dis.ReadFloat(); - this._y = dis.ReadFloat(); - this._z = dis.ReadFloat(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._x.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._y.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._z.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as Vector3Float; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(Vector3Float obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._x != obj._x) - { - ivarsEqual = false; - } - - if (this._y != obj._y) - { - ivarsEqual = false; - } - - if (this._z != obj._z) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._x.GetHashCode(); - result = GenerateHash(result) ^ this._y.GetHashCode(); - result = GenerateHash(result) ^ this._z.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/VectoringNozzleSystem.cs b/Libs/CSharpDis7/VectoringNozzleSystem.cs deleted file mode 100644 index 5bd7e4d..0000000 --- a/Libs/CSharpDis7/VectoringNozzleSystem.cs +++ /dev/null @@ -1,309 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// Operational data for describing the vectoring nozzle systems Section 6.2.96 - /// - [Serializable] - [XmlRoot] - public partial class VectoringNozzleSystem - { - /// - /// In degrees - /// - private float _horizontalDeflectionAngle; - - /// - /// In degrees - /// - private float _verticalDeflectionAngle; - - /// - /// Initializes a new instance of the class. - /// - public VectoringNozzleSystem() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(VectoringNozzleSystem left, VectoringNozzleSystem right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(VectoringNozzleSystem left, VectoringNozzleSystem right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._horizontalDeflectionAngle - marshalSize += 4; // this._verticalDeflectionAngle - return marshalSize; - } - - /// - /// Gets or sets the In degrees - /// - [XmlElement(Type = typeof(float), ElementName = "horizontalDeflectionAngle")] - public float HorizontalDeflectionAngle - { - get - { - return this._horizontalDeflectionAngle; - } - - set - { - this._horizontalDeflectionAngle = value; - } - } - - /// - /// Gets or sets the In degrees - /// - [XmlElement(Type = typeof(float), ElementName = "verticalDeflectionAngle")] - public float VerticalDeflectionAngle - { - get - { - return this._verticalDeflectionAngle; - } - - set - { - this._verticalDeflectionAngle = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event Action Exception; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void OnException(Exception e) - { - if (this.Exception != null) - { - this.Exception(e); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteFloat((float)this._horizontalDeflectionAngle); - dos.WriteFloat((float)this._verticalDeflectionAngle); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._horizontalDeflectionAngle = dis.ReadFloat(); - this._verticalDeflectionAngle = dis.ReadFloat(); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._horizontalDeflectionAngle.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._verticalDeflectionAngle.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as VectoringNozzleSystem; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(VectoringNozzleSystem obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._horizontalDeflectionAngle != obj._horizontalDeflectionAngle) - { - ivarsEqual = false; - } - - if (this._verticalDeflectionAngle != obj._verticalDeflectionAngle) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._horizontalDeflectionAngle.GetHashCode(); - result = GenerateHash(result) ^ this._verticalDeflectionAngle.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CSharpDis7/WarfareFamilyPdu.cs b/Libs/CSharpDis7/WarfareFamilyPdu.cs deleted file mode 100644 index 86a8974..0000000 --- a/Libs/CSharpDis7/WarfareFamilyPdu.cs +++ /dev/null @@ -1,318 +0,0 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics; -using System.Xml.Serialization; -using DISnet.DataStreamUtilities; - -namespace DISnet -{ - /// - /// abstract superclass for fire and detonation pdus that have shared information. Section 7.3 COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - public partial class WarfareFamilyPdu : Pdu, IEquatable - { - /// - /// ID of the entity that shot - /// - private EntityID _firingEntityID = new EntityID(); - - /// - /// ID of the entity that is being shot at - /// - private EntityID _targetEntityID = new EntityID(); - - /// - /// Initializes a new instance of the class. - /// - public WarfareFamilyPdu() - { - ProtocolFamily = (byte)2; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(WarfareFamilyPdu left, WarfareFamilyPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(WarfareFamilyPdu left, WarfareFamilyPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._firingEntityID.GetMarshalledSize(); // this._firingEntityID - marshalSize += this._targetEntityID.GetMarshalledSize(); // this._targetEntityID - return marshalSize; - } - - /// - /// Gets or sets the ID of the entity that shot - /// - [XmlElement(Type = typeof(EntityID), ElementName = "firingEntityID")] - public EntityID FiringEntityID - { - get - { - return this._firingEntityID; - } - - set - { - this._firingEntityID = value; - } - } - - /// - /// Gets or sets the ID of the entity that is being shot at - /// - [XmlElement(Type = typeof(EntityID), ElementName = "targetEntityID")] - public EntityID TargetEntityID - { - get - { - return this._targetEntityID; - } - - set - { - this._targetEntityID = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public virtual void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._firingEntityID.Marshal(dos); - this._targetEntityID.Marshal(dos); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._firingEntityID.Unmarshal(dis); - this._targetEntityID.Unmarshal(dis); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._firingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._targetEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - } - catch (Exception e) - { -#if DEBUG - Trace.WriteLine(e); - Trace.Flush(); -#endif - this.OnException(e); - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as WarfareFamilyPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(WarfareFamilyPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._firingEntityID.Equals(obj._firingEntityID)) - { - ivarsEqual = false; - } - - if (!this._targetEntityID.Equals(obj._targetEntityID)) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._firingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._targetEntityID.GetHashCode(); - - return result; - } - } -} diff --git a/Libs/CsharpDis6/OpenDis/Core/CetBase.cs b/Libs/CsharpDis6/Core/CetBase.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Core/CetBase.cs rename to Libs/CsharpDis6/Core/CetBase.cs index 703f80b..edae72c 100644 --- a/Libs/CsharpDis6/OpenDis/Core/CetBase.cs +++ b/Libs/CsharpDis6/Core/CetBase.cs @@ -1,37 +1,37 @@ -using System; - -namespace OpenDis.Core -{ - public class CetBase - { - /// - /// Verifies the string if it contains only numerical characters (0-9). - /// - /// The value to be verified. - /// if set to true allow null or empty value does not result - /// in an exception. - /// When the allowNullOrEmpty is false and value is - /// null or empty. - /// When the value is not null or empty and contains - /// non-numerical character. - protected void VerifyNumericString(string value, bool allowNullOrEmpty) - { - if (!allowNullOrEmpty && - string.IsNullOrEmpty(value)) - { - throw new ArgumentNullException("Value must be greater or equal to 0."); - } - - if (value != null) - { - for (int i = 0; i < value.Length; i++) - { - if (value[i] < '0' || value[i] > '9') - { - throw new ArgumentOutOfRangeException("Value must be greater or equal to 0."); - } - } - } - } - } +using System; + +namespace OpenDis.Core +{ + public class CetBase + { + /// + /// Verifies the string if it contains only numerical characters (0-9). + /// + /// The value to be verified. + /// if set to true allow null or empty value does not result + /// in an exception. + /// When the allowNullOrEmpty is false and value is + /// null or empty. + /// When the value is not null or empty and contains + /// non-numerical character. + protected void VerifyNumericString(string value, bool allowNullOrEmpty) + { + if (!allowNullOrEmpty && + string.IsNullOrEmpty(value)) + { + throw new ArgumentNullException("Value must be greater or equal to 0."); + } + + if (value != null) + { + for (int i = 0; i < value.Length; i++) + { + if (value[i] < '0' || value[i] > '9') + { + throw new ArgumentOutOfRangeException("Value must be greater or equal to 0."); + } + } + } + } + } } \ No newline at end of file diff --git a/Libs/CsharpDis6/OpenDis/Core/DisTime.cs b/Libs/CsharpDis6/Core/DisTime.cs similarity index 100% rename from Libs/CsharpDis6/OpenDis/Core/DisTime.cs rename to Libs/CsharpDis6/Core/DisTime.cs diff --git a/Libs/CsharpDis6/OpenDis/Core/EndianTypes.cs b/Libs/CsharpDis6/Core/EndianTypes.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Core/EndianTypes.cs rename to Libs/CsharpDis6/Core/EndianTypes.cs index 3ed4160..86e011c 100644 --- a/Libs/CsharpDis6/OpenDis/Core/EndianTypes.cs +++ b/Libs/CsharpDis6/Core/EndianTypes.cs @@ -1,58 +1,58 @@ -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author Peter Smith (Naval Air Warfare Center - Training Systems Division) 01/23/2009 -// Modified by Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; - -namespace OpenDis.Core -{ - /// - /// Known endian types - /// - public enum Endian - { - /// - /// Little endian - /// - Little = 1, - - /// - /// Big endian - /// - Big = 0, - } -} +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author Peter Smith (Naval Air Warfare Center - Training Systems Division) 01/23/2009 +// Modified by Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; + +namespace OpenDis.Core +{ + /// + /// Known endian types + /// + public enum Endian + { + /// + /// Little endian + /// + Little = 1, + + /// + /// Big endian + /// + Big = 0, + } +} diff --git a/Libs/CsharpDis6/OpenDis/Core/EnumHelper.cs b/Libs/CsharpDis6/Core/EnumHelper.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Core/EnumHelper.cs rename to Libs/CsharpDis6/Core/EnumHelper.cs index eabb5dd..2cfc332 100644 --- a/Libs/CsharpDis6/OpenDis/Core/EnumHelper.cs +++ b/Libs/CsharpDis6/Core/EnumHelper.cs @@ -1,217 +1,217 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author Peter Smith (Naval Air Warfare Center - Training Systems Division) 01/23/2009 -// Modified by Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Linq; -using System.Reflection; -using OpenDis.Core; -using System.Collections.Generic; - -namespace OpenDis.Core -{ - public static class EnumHelper - { - #region Static methods (7)  - - public static bool EnumerationForValueExists(int number) - { - return Enum.IsDefined(typeof(T), number); - } - - /// - /// Gets the description. - /// - /// The value. - /// the description - /// if the type parameter is not enum. - public static string GetDescription(T value) - { - string retVal = string.Empty; - - DescriptionAttribute attr = GetEnumValueAttribute(value); - - if (attr != null) - { - retVal = attr.Description; - } - - return retVal; - } - - /// - /// Returns an Enumeration Type from a number passed in - /// - /// Enumeration Type - /// Enumeration value - /// Enumeration of that value - /// if the nuber (parameter) - /// value is not found in the enum definition - public static T GetEnumerationForValue(int number) - { - if (Enum.IsDefined(typeof(T), number) == true) - { - return (T)Enum.ToObject(typeof(T), number); - } - else - { - throw new EnumNotFoundException(string.Format("No enumeration found for value {0} of enumeration {1}", number, typeof(T).Name), typeof(T)); - } - } - - /// - /// Gets the attribute of the enumeration value. - /// - /// Attribute type. - /// Enumeration type - /// The value. - /// The instance of the attribute or null if the attribute is not found - public static T GetEnumValueAttribute(U value) - { - Type t = typeof(U); - - if (t.IsEnum) - { - if (value != null) - { - FieldInfo fieldInfo = typeof(U).GetField(Enum.GetName(typeof(U), value)); - - if (fieldInfo != null) - { - object[] attributes = fieldInfo.GetCustomAttributes(typeof(T), false); - - if (attributes != null && - attributes.Length > 0) - { - return (T)attributes[0]; - } - } - } - } - else - { - throw new ArgumentException("Type must be an enum."); - } - - return default(T); - } - - /// - /// Gets the attribute of the enumeration value. - /// - /// Attribute type. - /// Enumeration type - /// The value. - /// The instance of the attribute or null if the attribute is not found - public static IEnumerable GetEnumValueAttributes(U value) - { - Type t = typeof(U); - - if (t.IsEnum) - { - if (value != null) - { - FieldInfo fieldInfo = typeof(U).GetField(Enum.GetName(typeof(U), value)); - - if (fieldInfo != null) - { - object[] attributes = fieldInfo.GetCustomAttributes(typeof(T), false); - - if (attributes != null && - attributes.Length > 0) - { - return attributes.Cast(); ; - } - } - } - } - else - { - throw new ArgumentException("Type must be an enum."); - } - - return new T[0]; - } - - /// - /// Returns the Description associated with the enumeration - /// - /// The enum type - /// The enumeration object which has the attribute. - /// - /// The description string of the attribute or string.empty - /// - public static string GetInternetDomainCode(T value) - { - string retVal = string.Empty; - - InternetDomainCodeAttribute attr = GetEnumValueAttribute(value); - - if (attr != null) - { - retVal = attr.InternetDomainCode; - } - - return retVal; - } - - /// - /// Parses the specified name. - /// - /// The enum type - /// The string value. - /// Enum value. - public static T Parse(string value) - { - return (T)Enum.Parse(typeof(T), value); - } - - /// - /// Parses the specified value. - /// - /// The enum type - /// The value. - /// if set to true [ignore case]. - /// Enum value. - public static T Parse(string value, bool ignoreCase) - { - return (T)Enum.Parse(typeof(T), value, ignoreCase); - } - - #endregion Static methods  - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author Peter Smith (Naval Air Warfare Center - Training Systems Division) 01/23/2009 +// Modified by Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Linq; +using System.Reflection; +using OpenDis.Core; +using System.Collections.Generic; + +namespace OpenDis.Core +{ + public static class EnumHelper + { + #region Static methods (7)  + + public static bool EnumerationForValueExists(int number) + { + return Enum.IsDefined(typeof(T), number); + } + + /// + /// Gets the description. + /// + /// The value. + /// the description + /// if the type parameter is not enum. + public static string GetDescription(T value) + { + string retVal = string.Empty; + + DescriptionAttribute attr = GetEnumValueAttribute(value); + + if (attr != null) + { + retVal = attr.Description; + } + + return retVal; + } + + /// + /// Returns an Enumeration Type from a number passed in + /// + /// Enumeration Type + /// Enumeration value + /// Enumeration of that value + /// if the nuber (parameter) + /// value is not found in the enum definition + public static T GetEnumerationForValue(int number) + { + if (Enum.IsDefined(typeof(T), number) == true) + { + return (T)Enum.ToObject(typeof(T), number); + } + else + { + throw new EnumNotFoundException(string.Format("No enumeration found for value {0} of enumeration {1}", number, typeof(T).Name), typeof(T)); + } + } + + /// + /// Gets the attribute of the enumeration value. + /// + /// Attribute type. + /// Enumeration type + /// The value. + /// The instance of the attribute or null if the attribute is not found + public static T GetEnumValueAttribute(U value) + { + Type t = typeof(U); + + if (t.IsEnum) + { + if (value != null) + { + FieldInfo fieldInfo = typeof(U).GetField(Enum.GetName(typeof(U), value)); + + if (fieldInfo != null) + { + object[] attributes = fieldInfo.GetCustomAttributes(typeof(T), false); + + if (attributes != null && + attributes.Length > 0) + { + return (T)attributes[0]; + } + } + } + } + else + { + throw new ArgumentException("Type must be an enum."); + } + + return default(T); + } + + /// + /// Gets the attribute of the enumeration value. + /// + /// Attribute type. + /// Enumeration type + /// The value. + /// The instance of the attribute or null if the attribute is not found + public static IEnumerable GetEnumValueAttributes(U value) + { + Type t = typeof(U); + + if (t.IsEnum) + { + if (value != null) + { + FieldInfo fieldInfo = typeof(U).GetField(Enum.GetName(typeof(U), value)); + + if (fieldInfo != null) + { + object[] attributes = fieldInfo.GetCustomAttributes(typeof(T), false); + + if (attributes != null && + attributes.Length > 0) + { + return attributes.Cast(); ; + } + } + } + } + else + { + throw new ArgumentException("Type must be an enum."); + } + + return new T[0]; + } + + /// + /// Returns the Description associated with the enumeration + /// + /// The enum type + /// The enumeration object which has the attribute. + /// + /// The description string of the attribute or string.empty + /// + public static string GetInternetDomainCode(T value) + { + string retVal = string.Empty; + + InternetDomainCodeAttribute attr = GetEnumValueAttribute(value); + + if (attr != null) + { + retVal = attr.InternetDomainCode; + } + + return retVal; + } + + /// + /// Parses the specified name. + /// + /// The enum type + /// The string value. + /// Enum value. + public static T Parse(string value) + { + return (T)Enum.Parse(typeof(T), value); + } + + /// + /// Parses the specified value. + /// + /// The enum type + /// The value. + /// if set to true [ignore case]. + /// Enum value. + public static T Parse(string value, bool ignoreCase) + { + return (T)Enum.Parse(typeof(T), value, ignoreCase); + } + + #endregion Static methods  + } +} diff --git a/Libs/CsharpDis6/OpenDis/Core/EnumNotFoundException.cs b/Libs/CsharpDis6/Core/EnumNotFoundException.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Core/EnumNotFoundException.cs rename to Libs/CsharpDis6/Core/EnumNotFoundException.cs index c55472a..472e6be 100644 --- a/Libs/CsharpDis6/OpenDis/Core/EnumNotFoundException.cs +++ b/Libs/CsharpDis6/Core/EnumNotFoundException.cs @@ -1,82 +1,82 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author Peter Smith (Naval Air Warfare Center - Training Systems Division) 01/23/2009 -// Modified by Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Text; - -namespace OpenDis.Core -{ - public class EnumNotFoundException : Exception - { - #region Constructors (5)  - - public EnumNotFoundException(string message, Exception exception) - : base(message, exception) - { - } - - private EnumNotFoundException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } - - public EnumNotFoundException(string message, Type enumType) - : base(message) - { - this.EnumType = enumType; - } - - public EnumNotFoundException(string message) - : base(message) - { - } - - public EnumNotFoundException() - { - } - - #endregion Constructors  - - #region Properties (1)  - - public Type EnumType { get; private set; } - - #endregion Properties  - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author Peter Smith (Naval Air Warfare Center - Training Systems Division) 01/23/2009 +// Modified by Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Runtime.Serialization; +using System.Text; + +namespace OpenDis.Core +{ + public class EnumNotFoundException : Exception + { + #region Constructors (5)  + + public EnumNotFoundException(string message, Exception exception) + : base(message, exception) + { + } + + private EnumNotFoundException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + + public EnumNotFoundException(string message, Type enumType) + : base(message) + { + this.EnumType = enumType; + } + + public EnumNotFoundException(string message) + : base(message) + { + } + + public EnumNotFoundException() + { + } + + #endregion Constructors  + + #region Properties (1)  + + public Type EnumType { get; private set; } + + #endregion Properties  + } +} diff --git a/Libs/CsharpDis6/OpenDis/Core/ICetItem.cs b/Libs/CsharpDis6/Core/ICetItem.cs similarity index 96% rename from Libs/CsharpDis6/OpenDis/Core/ICetItem.cs rename to Libs/CsharpDis6/Core/ICetItem.cs index 0f2bab6..9886e8e 100644 --- a/Libs/CsharpDis6/OpenDis/Core/ICetItem.cs +++ b/Libs/CsharpDis6/Core/ICetItem.cs @@ -1,65 +1,65 @@ -using System; -using OpenDis.Enumerations; -using OpenDis.Enumerations.EntityState.Type; -namespace OpenDis.Core -{ - /// - /// Interface for tabelaric representation of comprehensive entity-type tables - /// - public interface ICetItem : IComparable, IComparable - { - /// - /// Gets or sets the category. - /// - /// The category. - byte Category { get; set; } - - /// - /// Gets or sets the country. - /// - /// The country. - Country Country { get; set; } - - /// - /// Gets or sets the description. - /// - /// The description. - string Description { get; set; } - - /// - /// Gets or sets the domain. - /// - /// The domain. - byte Domain { get; set; } - - /// - /// Gets or sets the extra. - /// - /// The extra. - byte? Extra { get; set; } - - /// - /// Gets or sets the maximum value of the range. - /// - /// The maximum value of the range. - uint? Maximum { get; set; } - - /// - /// Gets or sets the kind. - /// - /// The kind. - EntityKind Kind { get; set; } - - /// - /// Gets or sets the specific. - /// - /// The specific. - byte? Specific { get; set; } - - /// - /// Gets or sets the subcategory. - /// - /// The subcategory. - byte? Subcategory { get; set; } - } -} +using System; +using OpenDis.Enumerations; +using OpenDis.Enumerations.EntityState.Type; +namespace OpenDis.Core +{ + /// + /// Interface for tabelaric representation of comprehensive entity-type tables + /// + public interface ICetItem : IComparable, IComparable + { + /// + /// Gets or sets the category. + /// + /// The category. + byte Category { get; set; } + + /// + /// Gets or sets the country. + /// + /// The country. + Country Country { get; set; } + + /// + /// Gets or sets the description. + /// + /// The description. + string Description { get; set; } + + /// + /// Gets or sets the domain. + /// + /// The domain. + byte Domain { get; set; } + + /// + /// Gets or sets the extra. + /// + /// The extra. + byte? Extra { get; set; } + + /// + /// Gets or sets the maximum value of the range. + /// + /// The maximum value of the range. + uint? Maximum { get; set; } + + /// + /// Gets or sets the kind. + /// + /// The kind. + EntityKind Kind { get; set; } + + /// + /// Gets or sets the specific. + /// + /// The specific. + byte? Specific { get; set; } + + /// + /// Gets or sets the subcategory. + /// + /// The subcategory. + byte? Subcategory { get; set; } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Core/IPdu.cs b/Libs/CsharpDis6/Core/IPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Core/IPdu.cs rename to Libs/CsharpDis6/Core/IPdu.cs index aaef12b..44da9f4 100644 --- a/Libs/CsharpDis6/OpenDis/Core/IPdu.cs +++ b/Libs/CsharpDis6/Core/IPdu.cs @@ -1,34 +1,34 @@ -using System; - -namespace OpenDis.Core -{ - public interface IPdu - { - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - void Marshal(OpenDis.Core.DataOutputStream dos); - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - void Reflection(System.Text.StringBuilder sb); - - /// - /// Unmarshal the data from the DataInputStream. - /// - /// The dis input stream. - void Unmarshal(OpenDis.Core.DataInputStream dis); - - /// - /// Raised when exception occurs while processing PDU. - /// - event EventHandler ExceptionOccured; - } -} +using System; + +namespace OpenDis.Core +{ + public interface IPdu + { + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + void Marshal(OpenDis.Core.DataOutputStream dos); + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + void Reflection(System.Text.StringBuilder sb); + + /// + /// Unmarshal the data from the DataInputStream. + /// + /// The dis input stream. + void Unmarshal(OpenDis.Core.DataInputStream dis); + + /// + /// Raised when exception occurs while processing PDU. + /// + event EventHandler ExceptionOccured; + } +} diff --git a/Libs/CsharpDis6/OpenDis/Core/InternetDomainCodeAttribute.cs b/Libs/CsharpDis6/Core/InternetDomainCodeAttribute.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Core/InternetDomainCodeAttribute.cs rename to Libs/CsharpDis6/Core/InternetDomainCodeAttribute.cs index 7370146..fdbac5f 100644 --- a/Libs/CsharpDis6/OpenDis/Core/InternetDomainCodeAttribute.cs +++ b/Libs/CsharpDis6/Core/InternetDomainCodeAttribute.cs @@ -1,75 +1,75 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author Peter Smith (Naval Air Warfare Center - Training Systems Division) 01/23/2009 -// Modified by Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Reflection; -using System.Text; - -namespace OpenDis.Core -{ - [AttributeUsage(AttributeTargets.Field, Inherited = true)] - public sealed class InternetDomainCodeAttribute : Attribute - { - #region Fields (1)  - - private string internetDomainCode; - - #endregion Fields  - - #region Constructors (1)  - - public InternetDomainCodeAttribute(string internetDomainCode) - { - this.internetDomainCode = internetDomainCode; - } - - #endregion Constructors  - - #region Properties (1)  - - public string InternetDomainCode - { - get - { - return this.internetDomainCode; - } - } - - #endregion Properties  - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author Peter Smith (Naval Air Warfare Center - Training Systems Division) 01/23/2009 +// Modified by Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Reflection; +using System.Text; + +namespace OpenDis.Core +{ + [AttributeUsage(AttributeTargets.Field, Inherited = true)] + public sealed class InternetDomainCodeAttribute : Attribute + { + #region Fields (1)  + + private string internetDomainCode; + + #endregion Fields  + + #region Constructors (1)  + + public InternetDomainCodeAttribute(string internetDomainCode) + { + this.internetDomainCode = internetDomainCode; + } + + #endregion Constructors  + + #region Properties (1)  + + public string InternetDomainCode + { + get + { + return this.internetDomainCode; + } + } + + #endregion Properties  + } +} diff --git a/Libs/CsharpDis6/OpenDis/Core/PduBase.cs b/Libs/CsharpDis6/Core/PduBase.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Core/PduBase.cs rename to Libs/CsharpDis6/Core/PduBase.cs index d38422d..4fabbe9 100644 --- a/Libs/CsharpDis6/OpenDis/Core/PduBase.cs +++ b/Libs/CsharpDis6/Core/PduBase.cs @@ -1,25 +1,25 @@ -using System; - -namespace OpenDis.Core -{ - public abstract class PduBase - { - /// - /// Gets or sets a value indicating whether exceptions caught in PDU classes are written via instrumetnation infrastructure. - /// - /// true if caught exceptions are traced; otherwise, false. - public static bool TraceExceptions { get; set; } - - /// - /// Gets or sets a value indicating whether exceptions caught in PDU classes are rethrown. - /// - /// true if caught exceptions are rethrown; otherwise, false. - public static bool ThrowExceptions { get; set; } - - /// - /// Gets or sets a value indicating whether exceptions caught in PDU classes fire event. - /// - /// true if events are fired when exception is caught; otherwise, false. - public static bool FireExceptionEvents { get; set; } - } -} +using System; + +namespace OpenDis.Core +{ + public abstract class PduBase + { + /// + /// Gets or sets a value indicating whether exceptions caught in PDU classes are written via instrumetnation infrastructure. + /// + /// true if caught exceptions are traced; otherwise, false. + public static bool TraceExceptions { get; set; } + + /// + /// Gets or sets a value indicating whether exceptions caught in PDU classes are rethrown. + /// + /// true if caught exceptions are rethrown; otherwise, false. + public static bool ThrowExceptions { get; set; } + + /// + /// Gets or sets a value indicating whether exceptions caught in PDU classes fire event. + /// + /// true if events are fired when exception is caught; otherwise, false. + public static bool FireExceptionEvents { get; set; } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Core/PduExceptionEventArgs.cs b/Libs/CsharpDis6/Core/PduExceptionEventArgs.cs similarity index 96% rename from Libs/CsharpDis6/OpenDis/Core/PduExceptionEventArgs.cs rename to Libs/CsharpDis6/Core/PduExceptionEventArgs.cs index 5a81bcc..73b7ad4 100644 --- a/Libs/CsharpDis6/OpenDis/Core/PduExceptionEventArgs.cs +++ b/Libs/CsharpDis6/Core/PduExceptionEventArgs.cs @@ -1,22 +1,22 @@ -using System; - -namespace OpenDis.Core -{ - public class PduExceptionEventArgs : EventArgs - { - /// - /// Initializes a new instance of the class. - /// - /// The exception. - public PduExceptionEventArgs(Exception e) - { - this.Exception = e; - } - - /// - /// Gets or sets the exception. - /// - /// The exception. - public Exception Exception { get; set; } - } -} +using System; + +namespace OpenDis.Core +{ + public class PduExceptionEventArgs : EventArgs + { + /// + /// Initializes a new instance of the class. + /// + /// The exception. + public PduExceptionEventArgs(Exception e) + { + this.Exception = e; + } + + /// + /// Gets or sets the exception. + /// + /// The exception. + public Exception Exception { get; set; } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Core/PduFactory.cs b/Libs/CsharpDis6/Core/PduFactory.cs similarity index 92% rename from Libs/CsharpDis6/OpenDis/Core/PduFactory.cs rename to Libs/CsharpDis6/Core/PduFactory.cs index e90c8b5..9f096b0 100644 --- a/Libs/CsharpDis6/OpenDis/Core/PduFactory.cs +++ b/Libs/CsharpDis6/Core/PduFactory.cs @@ -1,48 +1,52 @@ -using System; -using OpenDis.Enumerations; -using Dis1995 = OpenDis.Dis1995; -using Dis1998 = OpenDis.Dis1998; - -namespace OpenDis.Core -{ - public static class PduFactory - { - /// - /// Creates the PDU. Supported protocol versions are IEEE 1278.1-1995 and IEEE 1278.1A-1998. - /// - /// The type of PDU to be created. - /// The protocol version. - /// - /// Returns the corresponding PDU instance or null if type equals 0. - /// - /// if the PDU type specified in parameter is not supported. - /// if the protocol version is not supported - public static IPdu CreatePdu(byte type, ProtocolVersion version) - { - return CreatePdu((PduType)type, version); - } - - /// - /// Creates the PDU. Supported protocol versions are IEEE 1278.1-1995 and IEEE 1278.1A-1998. - /// - /// The type of PDU to be created. - /// - /// Returns the corresponding PDU instance or null if PduType.Other is specified. - /// - /// if the PDU type specified in parameter is not supported. - /// if the protocol version is not supported - public static IPdu CreatePdu(PduType type, ProtocolVersion version) - { - if (version == ProtocolVersion.Ieee1278_1_1995) - { - return Dis1995.PduFactory.CreatePdu(type); - } - else if (version == ProtocolVersion.Ieee1278_1A_1998) - { - return Dis1998.PduFactory.CreatePdu(type); - } - - throw new ArgumentException("Unsupported protocol version."); - } - } -} +using System; +using OpenDis.Enumerations; +using Dis1995 = OpenDis.Dis1995; +using Dis1998 = OpenDis.Dis1998; + +namespace OpenDis.Core +{ + public static class PduFactory + { + /// + /// Creates the PDU. Supported protocol versions are IEEE 1278.1-1995 and IEEE 1278.1A-1998. + /// + /// The type of PDU to be created. + /// The protocol version. + /// + /// Returns the corresponding PDU instance or null if type equals 0. + /// + /// if the PDU type specified in parameter is not supported. + /// if the protocol version is not supported + public static IPdu CreatePdu(byte type, ProtocolVersion version) + { + return CreatePdu((PduType)type, version); + } + + /// + /// Creates the PDU. Supported protocol versions are IEEE 1278.1-1995 and IEEE 1278.1A-1998. + /// + /// The type of PDU to be created. + /// + /// Returns the corresponding PDU instance or null if PduType.Other is specified. + /// + /// if the PDU type specified in parameter is not supported. + /// if the protocol version is not supported + public static IPdu CreatePdu(PduType type, ProtocolVersion version) + { + if (version == ProtocolVersion.Ieee1278_1_1995) + { + return Dis1995.PduFactory.CreatePdu(type); + } + else if (version == ProtocolVersion.Ieee1278_1A_1998) + { + return Dis1998.PduFactory.CreatePdu(type); + } + else if (version == ProtocolVersion.Ieee1278_1_2012) + { + return Dis1998.PduFactory.CreatePdu(type); + } + + throw new ArgumentException("Unsupported protocol version."); + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/EntityID.cs b/Libs/CsharpDis6/Dis1995/EntityID.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Dis1995/EntityID.cs rename to Libs/CsharpDis6/Dis1995/EntityID.cs index 5ae486a..cc74fd3 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/EntityID.cs +++ b/Libs/CsharpDis6/Dis1995/EntityID.cs @@ -1,15 +1,15 @@ -using System; - -namespace OpenDis.Dis1995 -{ - /// - /// Each entity in a given DIS simulation application shall be given an entity identifier number unique to all other entities in that application. This identifier number is valid for the duration of the exercise; however, entity identifier numbers may be reused when all possible numbers have been exhausted. No entity shall have an entity identifier number of NO_ENTITY, ALL_ENTITIES, or RQST_ASSIGN_ID. The entity iden- tifier number need not be registered or retained for future exercises. The entity identifier number shall be specified by a 16-bit unsigned integer. An entity identifier number equal to zero with valid site and application identification shall address a simulation application. An entity identifier number equal to ALL_ENTITIES shall mean all entities within the specified site and application. An entity identifier number equal to RQST_ASSIGN_ID allows the receiver of the create entity to define the entity identifier number of the new entity. - /// - public partial class EntityID - { - public override string ToString() - { - return string.Format("{0:00}{1:00}{2:00}", this.Site, this.Application, this.Entity); - } - } -} +using System; + +namespace OpenDis.Dis1995 +{ + /// + /// Each entity in a given DIS simulation application shall be given an entity identifier number unique to all other entities in that application. This identifier number is valid for the duration of the exercise; however, entity identifier numbers may be reused when all possible numbers have been exhausted. No entity shall have an entity identifier number of NO_ENTITY, ALL_ENTITIES, or RQST_ASSIGN_ID. The entity iden- tifier number need not be registered or retained for future exercises. The entity identifier number shall be specified by a 16-bit unsigned integer. An entity identifier number equal to zero with valid site and application identification shall address a simulation application. An entity identifier number equal to ALL_ENTITIES shall mean all entities within the specified site and application. An entity identifier number equal to RQST_ASSIGN_ID allows the receiver of the create entity to define the entity identifier number of the new entity. + /// + public partial class EntityID + { + public override string ToString() + { + return string.Format("{0:00}{1:00}{2:00}", this.Site, this.Application, this.Entity); + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/AcknowledgePdu.cs b/Libs/CsharpDis6/Dis1995/Generated/AcknowledgePdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/AcknowledgePdu.cs rename to Libs/CsharpDis6/Dis1995/Generated/AcknowledgePdu.cs index 9717f55..dbd3124 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/AcknowledgePdu.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/AcknowledgePdu.cs @@ -1,368 +1,368 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.3.6.5. Acknowledge the receiptof a start/resume, stop/freeze, or RemoveEntityPDU - /// - [Serializable] - [XmlRoot] - public partial class AcknowledgePdu : SimulationManagementPdu, IEquatable - { - /// - /// type of message being acknowledged - /// - private ushort _acknowledgeFlag; - - /// - /// Whether or not the receiving entity was able to comply with the request - /// - private ushort _responseFlag; - - /// - /// Request ID that is unique - /// - private uint _requestID; - - /// - /// Initializes a new instance of the class. - /// - public AcknowledgePdu() - { - PduType = (byte)15; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(AcknowledgePdu left, AcknowledgePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(AcknowledgePdu left, AcknowledgePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 2; // this._acknowledgeFlag - marshalSize += 2; // this._responseFlag - marshalSize += 4; // this._requestID - return marshalSize; - } - - /// - /// Gets or sets the type of message being acknowledged - /// - [XmlElement(Type = typeof(ushort), ElementName = "acknowledgeFlag")] - public ushort AcknowledgeFlag - { - get - { - return this._acknowledgeFlag; - } - - set - { - this._acknowledgeFlag = value; - } - } - - /// - /// Gets or sets the Whether or not the receiving entity was able to comply with the request - /// - [XmlElement(Type = typeof(ushort), ElementName = "responseFlag")] - public ushort ResponseFlag - { - get - { - return this._responseFlag; - } - - set - { - this._responseFlag = value; - } - } - - /// - /// Gets or sets the Request ID that is unique - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._acknowledgeFlag); - dos.WriteUnsignedShort((ushort)this._responseFlag); - dos.WriteUnsignedInt((uint)this._requestID); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._acknowledgeFlag = dis.ReadUnsignedShort(); - this._responseFlag = dis.ReadUnsignedShort(); - this._requestID = dis.ReadUnsignedInt(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._acknowledgeFlag.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._responseFlag.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as AcknowledgePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(AcknowledgePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._acknowledgeFlag != obj._acknowledgeFlag) - { - ivarsEqual = false; - } - - if (this._responseFlag != obj._responseFlag) - { - ivarsEqual = false; - } - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._acknowledgeFlag.GetHashCode(); - result = GenerateHash(result) ^ this._responseFlag.GetHashCode(); - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.3.6.5. Acknowledge the receiptof a start/resume, stop/freeze, or RemoveEntityPDU + /// + [Serializable] + [XmlRoot] + public partial class AcknowledgePdu : SimulationManagementPdu, IEquatable + { + /// + /// type of message being acknowledged + /// + private ushort _acknowledgeFlag; + + /// + /// Whether or not the receiving entity was able to comply with the request + /// + private ushort _responseFlag; + + /// + /// Request ID that is unique + /// + private uint _requestID; + + /// + /// Initializes a new instance of the class. + /// + public AcknowledgePdu() + { + PduType = (byte)15; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(AcknowledgePdu left, AcknowledgePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(AcknowledgePdu left, AcknowledgePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 2; // this._acknowledgeFlag + marshalSize += 2; // this._responseFlag + marshalSize += 4; // this._requestID + return marshalSize; + } + + /// + /// Gets or sets the type of message being acknowledged + /// + [XmlElement(Type = typeof(ushort), ElementName = "acknowledgeFlag")] + public ushort AcknowledgeFlag + { + get + { + return this._acknowledgeFlag; + } + + set + { + this._acknowledgeFlag = value; + } + } + + /// + /// Gets or sets the Whether or not the receiving entity was able to comply with the request + /// + [XmlElement(Type = typeof(ushort), ElementName = "responseFlag")] + public ushort ResponseFlag + { + get + { + return this._responseFlag; + } + + set + { + this._responseFlag = value; + } + } + + /// + /// Gets or sets the Request ID that is unique + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._acknowledgeFlag); + dos.WriteUnsignedShort((ushort)this._responseFlag); + dos.WriteUnsignedInt((uint)this._requestID); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._acknowledgeFlag = dis.ReadUnsignedShort(); + this._responseFlag = dis.ReadUnsignedShort(); + this._requestID = dis.ReadUnsignedInt(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._acknowledgeFlag.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._responseFlag.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as AcknowledgePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(AcknowledgePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._acknowledgeFlag != obj._acknowledgeFlag) + { + ivarsEqual = false; + } + + if (this._responseFlag != obj._responseFlag) + { + ivarsEqual = false; + } + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._acknowledgeFlag.GetHashCode(); + result = GenerateHash(result) ^ this._responseFlag.GetHashCode(); + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/ActionRequestPdu.cs b/Libs/CsharpDis6/Dis1995/Generated/ActionRequestPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/ActionRequestPdu.cs rename to Libs/CsharpDis6/Dis1995/Generated/ActionRequestPdu.cs index c1931a0..ce24460 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/ActionRequestPdu.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/ActionRequestPdu.cs @@ -1,548 +1,548 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.3.6.6. Request from simulation manager to an entity - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(FixedDatum))] - [XmlInclude(typeof(VariableDatum))] - public partial class ActionRequestPdu : SimulationManagementPdu, IEquatable - { - /// - /// Request ID that is unique - /// - private uint _requestID; - - /// - /// identifies the action being requested - /// - private uint _actionID; - - /// - /// Number of fixed datum records - /// - private uint _fixedDatumRecordCount; - - /// - /// Number of variable datum records - /// - private uint _variableDatumRecordCount; - - /// - /// variable length list of fixed datums - /// - private List _fixedDatums = new List(); - - /// - /// variable length list of variable length datums - /// - private List _variableDatums = new List(); - - /// - /// Initializes a new instance of the class. - /// - public ActionRequestPdu() - { - PduType = (byte)16; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ActionRequestPdu left, ActionRequestPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ActionRequestPdu left, ActionRequestPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 4; // this._requestID - marshalSize += 4; // this._actionID - marshalSize += 4; // this._fixedDatumRecordCount - marshalSize += 4; // this._variableDatumRecordCount - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - FixedDatum listElement = (FixedDatum)this._fixedDatums[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - VariableDatum listElement = (VariableDatum)this._variableDatums[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Request ID that is unique - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Gets or sets the identifies the action being requested - /// - [XmlElement(Type = typeof(uint), ElementName = "actionID")] - public uint ActionID - { - get - { - return this._actionID; - } - - set - { - this._actionID = value; - } - } - - /// - /// Gets or sets the Number of fixed datum records - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getfixedDatumRecordCount method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "fixedDatumRecordCount")] - public uint FixedDatumRecordCount - { - get - { - return this._fixedDatumRecordCount; - } - - set - { - this._fixedDatumRecordCount = value; - } - } - - /// - /// Gets or sets the Number of variable datum records - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getvariableDatumRecordCount method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "variableDatumRecordCount")] - public uint VariableDatumRecordCount - { - get - { - return this._variableDatumRecordCount; - } - - set - { - this._variableDatumRecordCount = value; - } - } - - /// - /// Gets the variable length list of fixed datums - /// - [XmlElement(ElementName = "fixedDatumsList", Type = typeof(List))] - public List FixedDatums - { - get - { - return this._fixedDatums; - } - } - - /// - /// Gets the variable length list of variable length datums - /// - [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] - public List VariableDatums - { - get - { - return this._variableDatums; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._requestID); - dos.WriteUnsignedInt((uint)this._actionID); - dos.WriteUnsignedInt((uint)this._fixedDatums.Count); - dos.WriteUnsignedInt((uint)this._variableDatums.Count); - - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; - aFixedDatum.Marshal(dos); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; - aVariableDatum.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._requestID = dis.ReadUnsignedInt(); - this._actionID = dis.ReadUnsignedInt(); - this._fixedDatumRecordCount = dis.ReadUnsignedInt(); - this._variableDatumRecordCount = dis.ReadUnsignedInt(); - - for (int idx = 0; idx < this.FixedDatumRecordCount; idx++) - { - FixedDatum anX = new FixedDatum(); - anX.Unmarshal(dis); - this._fixedDatums.Add(anX); - } - - for (int idx = 0; idx < this.VariableDatumRecordCount; idx++) - { - VariableDatum anX = new VariableDatum(); - anX.Unmarshal(dis); - this._variableDatums.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._actionID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fixedDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - sb.AppendLine(""); - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; - aFixedDatum.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - sb.AppendLine(""); - VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; - aVariableDatum.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ActionRequestPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ActionRequestPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - if (this._actionID != obj._actionID) - { - ivarsEqual = false; - } - - if (this._fixedDatumRecordCount != obj._fixedDatumRecordCount) - { - ivarsEqual = false; - } - - if (this._variableDatumRecordCount != obj._variableDatumRecordCount) - { - ivarsEqual = false; - } - - if (this._fixedDatums.Count != obj._fixedDatums.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - if (!this._fixedDatums[idx].Equals(obj._fixedDatums[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._variableDatums.Count != obj._variableDatums.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - result = GenerateHash(result) ^ this._actionID.GetHashCode(); - result = GenerateHash(result) ^ this._fixedDatumRecordCount.GetHashCode(); - result = GenerateHash(result) ^ this._variableDatumRecordCount.GetHashCode(); - - if (this._fixedDatums.Count > 0) - { - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - result = GenerateHash(result) ^ this._fixedDatums[idx].GetHashCode(); - } - } - - if (this._variableDatums.Count > 0) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.3.6.6. Request from simulation manager to an entity + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(FixedDatum))] + [XmlInclude(typeof(VariableDatum))] + public partial class ActionRequestPdu : SimulationManagementPdu, IEquatable + { + /// + /// Request ID that is unique + /// + private uint _requestID; + + /// + /// identifies the action being requested + /// + private uint _actionID; + + /// + /// Number of fixed datum records + /// + private uint _fixedDatumRecordCount; + + /// + /// Number of variable datum records + /// + private uint _variableDatumRecordCount; + + /// + /// variable length list of fixed datums + /// + private List _fixedDatums = new List(); + + /// + /// variable length list of variable length datums + /// + private List _variableDatums = new List(); + + /// + /// Initializes a new instance of the class. + /// + public ActionRequestPdu() + { + PduType = (byte)16; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ActionRequestPdu left, ActionRequestPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ActionRequestPdu left, ActionRequestPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 4; // this._requestID + marshalSize += 4; // this._actionID + marshalSize += 4; // this._fixedDatumRecordCount + marshalSize += 4; // this._variableDatumRecordCount + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + FixedDatum listElement = (FixedDatum)this._fixedDatums[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + VariableDatum listElement = (VariableDatum)this._variableDatums[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Request ID that is unique + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Gets or sets the identifies the action being requested + /// + [XmlElement(Type = typeof(uint), ElementName = "actionID")] + public uint ActionID + { + get + { + return this._actionID; + } + + set + { + this._actionID = value; + } + } + + /// + /// Gets or sets the Number of fixed datum records + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getfixedDatumRecordCount method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "fixedDatumRecordCount")] + public uint FixedDatumRecordCount + { + get + { + return this._fixedDatumRecordCount; + } + + set + { + this._fixedDatumRecordCount = value; + } + } + + /// + /// Gets or sets the Number of variable datum records + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getvariableDatumRecordCount method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "variableDatumRecordCount")] + public uint VariableDatumRecordCount + { + get + { + return this._variableDatumRecordCount; + } + + set + { + this._variableDatumRecordCount = value; + } + } + + /// + /// Gets the variable length list of fixed datums + /// + [XmlElement(ElementName = "fixedDatumsList", Type = typeof(List))] + public List FixedDatums + { + get + { + return this._fixedDatums; + } + } + + /// + /// Gets the variable length list of variable length datums + /// + [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] + public List VariableDatums + { + get + { + return this._variableDatums; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._requestID); + dos.WriteUnsignedInt((uint)this._actionID); + dos.WriteUnsignedInt((uint)this._fixedDatums.Count); + dos.WriteUnsignedInt((uint)this._variableDatums.Count); + + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; + aFixedDatum.Marshal(dos); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; + aVariableDatum.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._requestID = dis.ReadUnsignedInt(); + this._actionID = dis.ReadUnsignedInt(); + this._fixedDatumRecordCount = dis.ReadUnsignedInt(); + this._variableDatumRecordCount = dis.ReadUnsignedInt(); + + for (int idx = 0; idx < this.FixedDatumRecordCount; idx++) + { + FixedDatum anX = new FixedDatum(); + anX.Unmarshal(dis); + this._fixedDatums.Add(anX); + } + + for (int idx = 0; idx < this.VariableDatumRecordCount; idx++) + { + VariableDatum anX = new VariableDatum(); + anX.Unmarshal(dis); + this._variableDatums.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._actionID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fixedDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + sb.AppendLine(""); + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; + aFixedDatum.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + sb.AppendLine(""); + VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; + aVariableDatum.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ActionRequestPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ActionRequestPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + if (this._actionID != obj._actionID) + { + ivarsEqual = false; + } + + if (this._fixedDatumRecordCount != obj._fixedDatumRecordCount) + { + ivarsEqual = false; + } + + if (this._variableDatumRecordCount != obj._variableDatumRecordCount) + { + ivarsEqual = false; + } + + if (this._fixedDatums.Count != obj._fixedDatums.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + if (!this._fixedDatums[idx].Equals(obj._fixedDatums[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._variableDatums.Count != obj._variableDatums.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + result = GenerateHash(result) ^ this._actionID.GetHashCode(); + result = GenerateHash(result) ^ this._fixedDatumRecordCount.GetHashCode(); + result = GenerateHash(result) ^ this._variableDatumRecordCount.GetHashCode(); + + if (this._fixedDatums.Count > 0) + { + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + result = GenerateHash(result) ^ this._fixedDatums[idx].GetHashCode(); + } + } + + if (this._variableDatums.Count > 0) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/ActionResponsePdu.cs b/Libs/CsharpDis6/Dis1995/Generated/ActionResponsePdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/ActionResponsePdu.cs rename to Libs/CsharpDis6/Dis1995/Generated/ActionResponsePdu.cs index 9e51049..6d24a53 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/ActionResponsePdu.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/ActionResponsePdu.cs @@ -1,548 +1,548 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.3.6.7. response to an action request PDU - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(FixedDatum))] - [XmlInclude(typeof(VariableDatum))] - public partial class ActionResponsePdu : SimulationManagementPdu, IEquatable - { - /// - /// Request ID that is unique - /// - private uint _requestID; - - /// - /// Status of response - /// - private uint _requestStatus; - - /// - /// Number of fixed datum records - /// - private uint _fixedDatumRecordCount; - - /// - /// Number of variable datum records - /// - private uint _variableDatumRecordCount; - - /// - /// variable length list of fixed datums - /// - private List _fixedDatums = new List(); - - /// - /// variable length list of variable length datums - /// - private List _variableDatums = new List(); - - /// - /// Initializes a new instance of the class. - /// - public ActionResponsePdu() - { - PduType = (byte)17; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ActionResponsePdu left, ActionResponsePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ActionResponsePdu left, ActionResponsePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 4; // this._requestID - marshalSize += 4; // this._requestStatus - marshalSize += 4; // this._fixedDatumRecordCount - marshalSize += 4; // this._variableDatumRecordCount - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - FixedDatum listElement = (FixedDatum)this._fixedDatums[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - VariableDatum listElement = (VariableDatum)this._variableDatums[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Request ID that is unique - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Gets or sets the Status of response - /// - [XmlElement(Type = typeof(uint), ElementName = "requestStatus")] - public uint RequestStatus - { - get - { - return this._requestStatus; - } - - set - { - this._requestStatus = value; - } - } - - /// - /// Gets or sets the Number of fixed datum records - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getfixedDatumRecordCount method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "fixedDatumRecordCount")] - public uint FixedDatumRecordCount - { - get - { - return this._fixedDatumRecordCount; - } - - set - { - this._fixedDatumRecordCount = value; - } - } - - /// - /// Gets or sets the Number of variable datum records - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getvariableDatumRecordCount method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "variableDatumRecordCount")] - public uint VariableDatumRecordCount - { - get - { - return this._variableDatumRecordCount; - } - - set - { - this._variableDatumRecordCount = value; - } - } - - /// - /// Gets the variable length list of fixed datums - /// - [XmlElement(ElementName = "fixedDatumsList", Type = typeof(List))] - public List FixedDatums - { - get - { - return this._fixedDatums; - } - } - - /// - /// Gets the variable length list of variable length datums - /// - [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] - public List VariableDatums - { - get - { - return this._variableDatums; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._requestID); - dos.WriteUnsignedInt((uint)this._requestStatus); - dos.WriteUnsignedInt((uint)this._fixedDatums.Count); - dos.WriteUnsignedInt((uint)this._variableDatums.Count); - - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; - aFixedDatum.Marshal(dos); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; - aVariableDatum.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._requestID = dis.ReadUnsignedInt(); - this._requestStatus = dis.ReadUnsignedInt(); - this._fixedDatumRecordCount = dis.ReadUnsignedInt(); - this._variableDatumRecordCount = dis.ReadUnsignedInt(); - - for (int idx = 0; idx < this.FixedDatumRecordCount; idx++) - { - FixedDatum anX = new FixedDatum(); - anX.Unmarshal(dis); - this._fixedDatums.Add(anX); - } - - for (int idx = 0; idx < this.VariableDatumRecordCount; idx++) - { - VariableDatum anX = new VariableDatum(); - anX.Unmarshal(dis); - this._variableDatums.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._requestStatus.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fixedDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - sb.AppendLine(""); - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; - aFixedDatum.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - sb.AppendLine(""); - VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; - aVariableDatum.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ActionResponsePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ActionResponsePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - if (this._requestStatus != obj._requestStatus) - { - ivarsEqual = false; - } - - if (this._fixedDatumRecordCount != obj._fixedDatumRecordCount) - { - ivarsEqual = false; - } - - if (this._variableDatumRecordCount != obj._variableDatumRecordCount) - { - ivarsEqual = false; - } - - if (this._fixedDatums.Count != obj._fixedDatums.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - if (!this._fixedDatums[idx].Equals(obj._fixedDatums[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._variableDatums.Count != obj._variableDatums.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - result = GenerateHash(result) ^ this._requestStatus.GetHashCode(); - result = GenerateHash(result) ^ this._fixedDatumRecordCount.GetHashCode(); - result = GenerateHash(result) ^ this._variableDatumRecordCount.GetHashCode(); - - if (this._fixedDatums.Count > 0) - { - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - result = GenerateHash(result) ^ this._fixedDatums[idx].GetHashCode(); - } - } - - if (this._variableDatums.Count > 0) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.3.6.7. response to an action request PDU + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(FixedDatum))] + [XmlInclude(typeof(VariableDatum))] + public partial class ActionResponsePdu : SimulationManagementPdu, IEquatable + { + /// + /// Request ID that is unique + /// + private uint _requestID; + + /// + /// Status of response + /// + private uint _requestStatus; + + /// + /// Number of fixed datum records + /// + private uint _fixedDatumRecordCount; + + /// + /// Number of variable datum records + /// + private uint _variableDatumRecordCount; + + /// + /// variable length list of fixed datums + /// + private List _fixedDatums = new List(); + + /// + /// variable length list of variable length datums + /// + private List _variableDatums = new List(); + + /// + /// Initializes a new instance of the class. + /// + public ActionResponsePdu() + { + PduType = (byte)17; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ActionResponsePdu left, ActionResponsePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ActionResponsePdu left, ActionResponsePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 4; // this._requestID + marshalSize += 4; // this._requestStatus + marshalSize += 4; // this._fixedDatumRecordCount + marshalSize += 4; // this._variableDatumRecordCount + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + FixedDatum listElement = (FixedDatum)this._fixedDatums[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + VariableDatum listElement = (VariableDatum)this._variableDatums[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Request ID that is unique + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Gets or sets the Status of response + /// + [XmlElement(Type = typeof(uint), ElementName = "requestStatus")] + public uint RequestStatus + { + get + { + return this._requestStatus; + } + + set + { + this._requestStatus = value; + } + } + + /// + /// Gets or sets the Number of fixed datum records + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getfixedDatumRecordCount method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "fixedDatumRecordCount")] + public uint FixedDatumRecordCount + { + get + { + return this._fixedDatumRecordCount; + } + + set + { + this._fixedDatumRecordCount = value; + } + } + + /// + /// Gets or sets the Number of variable datum records + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getvariableDatumRecordCount method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "variableDatumRecordCount")] + public uint VariableDatumRecordCount + { + get + { + return this._variableDatumRecordCount; + } + + set + { + this._variableDatumRecordCount = value; + } + } + + /// + /// Gets the variable length list of fixed datums + /// + [XmlElement(ElementName = "fixedDatumsList", Type = typeof(List))] + public List FixedDatums + { + get + { + return this._fixedDatums; + } + } + + /// + /// Gets the variable length list of variable length datums + /// + [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] + public List VariableDatums + { + get + { + return this._variableDatums; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._requestID); + dos.WriteUnsignedInt((uint)this._requestStatus); + dos.WriteUnsignedInt((uint)this._fixedDatums.Count); + dos.WriteUnsignedInt((uint)this._variableDatums.Count); + + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; + aFixedDatum.Marshal(dos); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; + aVariableDatum.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._requestID = dis.ReadUnsignedInt(); + this._requestStatus = dis.ReadUnsignedInt(); + this._fixedDatumRecordCount = dis.ReadUnsignedInt(); + this._variableDatumRecordCount = dis.ReadUnsignedInt(); + + for (int idx = 0; idx < this.FixedDatumRecordCount; idx++) + { + FixedDatum anX = new FixedDatum(); + anX.Unmarshal(dis); + this._fixedDatums.Add(anX); + } + + for (int idx = 0; idx < this.VariableDatumRecordCount; idx++) + { + VariableDatum anX = new VariableDatum(); + anX.Unmarshal(dis); + this._variableDatums.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._requestStatus.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fixedDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + sb.AppendLine(""); + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; + aFixedDatum.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + sb.AppendLine(""); + VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; + aVariableDatum.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ActionResponsePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ActionResponsePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + if (this._requestStatus != obj._requestStatus) + { + ivarsEqual = false; + } + + if (this._fixedDatumRecordCount != obj._fixedDatumRecordCount) + { + ivarsEqual = false; + } + + if (this._variableDatumRecordCount != obj._variableDatumRecordCount) + { + ivarsEqual = false; + } + + if (this._fixedDatums.Count != obj._fixedDatums.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + if (!this._fixedDatums[idx].Equals(obj._fixedDatums[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._variableDatums.Count != obj._variableDatums.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + result = GenerateHash(result) ^ this._requestStatus.GetHashCode(); + result = GenerateHash(result) ^ this._fixedDatumRecordCount.GetHashCode(); + result = GenerateHash(result) ^ this._variableDatumRecordCount.GetHashCode(); + + if (this._fixedDatums.Count > 0) + { + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + result = GenerateHash(result) ^ this._fixedDatums[idx].GetHashCode(); + } + } + + if (this._variableDatums.Count > 0) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/AngularVelocityVector.cs b/Libs/CsharpDis6/Dis1995/Generated/AngularVelocityVector.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/AngularVelocityVector.cs rename to Libs/CsharpDis6/Dis1995/Generated/AngularVelocityVector.cs index c7e305e..c108d40 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/AngularVelocityVector.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/AngularVelocityVector.cs @@ -1,364 +1,364 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// 5.2.2: angular velocity measured in radians per second out each of the entity's own coordinate axes. - /// - [Serializable] - [XmlRoot] - public partial class AngularVelocityVector - { - /// - /// velocity about the x axis - /// - private float _x; - - /// - /// velocity about the y axis - /// - private float _y; - - /// - /// velocity about the zaxis - /// - private float _z; - - /// - /// Initializes a new instance of the class. - /// - public AngularVelocityVector() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(AngularVelocityVector left, AngularVelocityVector right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(AngularVelocityVector left, AngularVelocityVector right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._x - marshalSize += 4; // this._y - marshalSize += 4; // this._z - return marshalSize; - } - - /// - /// Gets or sets the velocity about the x axis - /// - [XmlElement(Type = typeof(float), ElementName = "x")] - public float X - { - get - { - return this._x; - } - - set - { - this._x = value; - } - } - - /// - /// Gets or sets the velocity about the y axis - /// - [XmlElement(Type = typeof(float), ElementName = "y")] - public float Y - { - get - { - return this._y; - } - - set - { - this._y = value; - } - } - - /// - /// Gets or sets the velocity about the zaxis - /// - [XmlElement(Type = typeof(float), ElementName = "z")] - public float Z - { - get - { - return this._z; - } - - set - { - this._z = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteFloat((float)this._x); - dos.WriteFloat((float)this._y); - dos.WriteFloat((float)this._z); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._x = dis.ReadFloat(); - this._y = dis.ReadFloat(); - this._z = dis.ReadFloat(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._x.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._y.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._z.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as AngularVelocityVector; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(AngularVelocityVector obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._x != obj._x) - { - ivarsEqual = false; - } - - if (this._y != obj._y) - { - ivarsEqual = false; - } - - if (this._z != obj._z) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._x.GetHashCode(); - result = GenerateHash(result) ^ this._y.GetHashCode(); - result = GenerateHash(result) ^ this._z.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// 5.2.2: angular velocity measured in radians per second out each of the entity's own coordinate axes. + /// + [Serializable] + [XmlRoot] + public partial class AngularVelocityVector + { + /// + /// velocity about the x axis + /// + private float _x; + + /// + /// velocity about the y axis + /// + private float _y; + + /// + /// velocity about the zaxis + /// + private float _z; + + /// + /// Initializes a new instance of the class. + /// + public AngularVelocityVector() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(AngularVelocityVector left, AngularVelocityVector right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(AngularVelocityVector left, AngularVelocityVector right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._x + marshalSize += 4; // this._y + marshalSize += 4; // this._z + return marshalSize; + } + + /// + /// Gets or sets the velocity about the x axis + /// + [XmlElement(Type = typeof(float), ElementName = "x")] + public float X + { + get + { + return this._x; + } + + set + { + this._x = value; + } + } + + /// + /// Gets or sets the velocity about the y axis + /// + [XmlElement(Type = typeof(float), ElementName = "y")] + public float Y + { + get + { + return this._y; + } + + set + { + this._y = value; + } + } + + /// + /// Gets or sets the velocity about the zaxis + /// + [XmlElement(Type = typeof(float), ElementName = "z")] + public float Z + { + get + { + return this._z; + } + + set + { + this._z = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteFloat((float)this._x); + dos.WriteFloat((float)this._y); + dos.WriteFloat((float)this._z); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._x = dis.ReadFloat(); + this._y = dis.ReadFloat(); + this._z = dis.ReadFloat(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._x.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._y.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._z.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as AngularVelocityVector; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(AngularVelocityVector obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._x != obj._x) + { + ivarsEqual = false; + } + + if (this._y != obj._y) + { + ivarsEqual = false; + } + + if (this._z != obj._z) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._x.GetHashCode(); + result = GenerateHash(result) ^ this._y.GetHashCode(); + result = GenerateHash(result) ^ this._z.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/AntennaLocation.cs b/Libs/CsharpDis6/Dis1995/Generated/AntennaLocation.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/AntennaLocation.cs rename to Libs/CsharpDis6/Dis1995/Generated/AntennaLocation.cs index d7a06bb..4551387 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/AntennaLocation.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/AntennaLocation.cs @@ -1,338 +1,338 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// 5.2.3: location of the radiating portion of the antenna, specified in world coordinates and entity coordinates. - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(Vector3Double))] - [XmlInclude(typeof(Vector3Float))] - public partial class AntennaLocation - { - /// - /// Location of the radiating portion of the antenna in world coordinates - /// - private Vector3Double _antennaLocation = new Vector3Double(); - - /// - /// Location of the radiating portion of the antenna in entity coordinates - /// - private Vector3Float _relativeAntennaLocation = new Vector3Float(); - - /// - /// Initializes a new instance of the class. - /// - public AntennaLocation() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(AntennaLocation left, AntennaLocation right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(AntennaLocation left, AntennaLocation right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += this._antennaLocation.GetMarshalledSize(); // this._antennaLocation - marshalSize += this._relativeAntennaLocation.GetMarshalledSize(); // this._relativeAntennaLocation - return marshalSize; - } - - /// - /// Gets or sets the Location of the radiating portion of the antenna in world coordinates - /// - [XmlElement(Type = typeof(Vector3Double), ElementName = "antennaLocation")] - public Vector3Double AntennaLocation_ - { - get - { - return this._antennaLocation; - } - - set - { - this._antennaLocation = value; - } - } - - /// - /// Gets or sets the Location of the radiating portion of the antenna in entity coordinates - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "relativeAntennaLocation")] - public Vector3Float RelativeAntennaLocation - { - get - { - return this._relativeAntennaLocation; - } - - set - { - this._relativeAntennaLocation = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - this._antennaLocation.Marshal(dos); - this._relativeAntennaLocation.Marshal(dos); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._antennaLocation.Unmarshal(dis); - this._relativeAntennaLocation.Unmarshal(dis); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine(""); - this._antennaLocation.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._relativeAntennaLocation.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as AntennaLocation; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(AntennaLocation obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (!this._antennaLocation.Equals(obj._antennaLocation)) - { - ivarsEqual = false; - } - - if (!this._relativeAntennaLocation.Equals(obj._relativeAntennaLocation)) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._antennaLocation.GetHashCode(); - result = GenerateHash(result) ^ this._relativeAntennaLocation.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// 5.2.3: location of the radiating portion of the antenna, specified in world coordinates and entity coordinates. + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(Vector3Double))] + [XmlInclude(typeof(Vector3Float))] + public partial class AntennaLocation + { + /// + /// Location of the radiating portion of the antenna in world coordinates + /// + private Vector3Double _antennaLocation = new Vector3Double(); + + /// + /// Location of the radiating portion of the antenna in entity coordinates + /// + private Vector3Float _relativeAntennaLocation = new Vector3Float(); + + /// + /// Initializes a new instance of the class. + /// + public AntennaLocation() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(AntennaLocation left, AntennaLocation right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(AntennaLocation left, AntennaLocation right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += this._antennaLocation.GetMarshalledSize(); // this._antennaLocation + marshalSize += this._relativeAntennaLocation.GetMarshalledSize(); // this._relativeAntennaLocation + return marshalSize; + } + + /// + /// Gets or sets the Location of the radiating portion of the antenna in world coordinates + /// + [XmlElement(Type = typeof(Vector3Double), ElementName = "antennaLocation")] + public Vector3Double AntennaLocation_ + { + get + { + return this._antennaLocation; + } + + set + { + this._antennaLocation = value; + } + } + + /// + /// Gets or sets the Location of the radiating portion of the antenna in entity coordinates + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "relativeAntennaLocation")] + public Vector3Float RelativeAntennaLocation + { + get + { + return this._relativeAntennaLocation; + } + + set + { + this._relativeAntennaLocation = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + this._antennaLocation.Marshal(dos); + this._relativeAntennaLocation.Marshal(dos); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._antennaLocation.Unmarshal(dis); + this._relativeAntennaLocation.Unmarshal(dis); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine(""); + this._antennaLocation.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._relativeAntennaLocation.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as AntennaLocation; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(AntennaLocation obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (!this._antennaLocation.Equals(obj._antennaLocation)) + { + ivarsEqual = false; + } + + if (!this._relativeAntennaLocation.Equals(obj._relativeAntennaLocation)) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._antennaLocation.GetHashCode(); + result = GenerateHash(result) ^ this._relativeAntennaLocation.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/ArticulationParameter.cs b/Libs/CsharpDis6/Dis1995/Generated/ArticulationParameter.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/ArticulationParameter.cs rename to Libs/CsharpDis6/Dis1995/Generated/ArticulationParameter.cs index d53533f..c259f9e 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/ArticulationParameter.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/ArticulationParameter.cs @@ -1,413 +1,413 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.2.5. Articulation parameters for movable parts and attached parts of an entity. Specifes wether or not a change has occured, the part identifcation of the articulated part to which it is attached, and the type and value of each parameter. - /// - [Serializable] - [XmlRoot] - public partial class ArticulationParameter - { - private byte _parameterTypeDesignator; - - private byte _changeIndicator; - - private ushort _partAttachedTo; - - private int _parameterType; - - private double _parameterValue; - - /// - /// Initializes a new instance of the class. - /// - public ArticulationParameter() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ArticulationParameter left, ArticulationParameter right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ArticulationParameter left, ArticulationParameter right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._parameterTypeDesignator - marshalSize += 1; // this._changeIndicator - marshalSize += 2; // this._partAttachedTo - marshalSize += 4; // this._parameterType - marshalSize += 8; // this._parameterValue - return marshalSize; - } - - /// - /// Gets or sets the parameterTypeDesignator - /// - [XmlElement(Type = typeof(byte), ElementName = "parameterTypeDesignator")] - public byte ParameterTypeDesignator - { - get - { - return this._parameterTypeDesignator; - } - - set - { - this._parameterTypeDesignator = value; - } - } - - /// - /// Gets or sets the changeIndicator - /// - [XmlElement(Type = typeof(byte), ElementName = "changeIndicator")] - public byte ChangeIndicator - { - get - { - return this._changeIndicator; - } - - set - { - this._changeIndicator = value; - } - } - - /// - /// Gets or sets the partAttachedTo - /// - [XmlElement(Type = typeof(ushort), ElementName = "partAttachedTo")] - public ushort PartAttachedTo - { - get - { - return this._partAttachedTo; - } - - set - { - this._partAttachedTo = value; - } - } - - /// - /// Gets or sets the parameterType - /// - [XmlElement(Type = typeof(int), ElementName = "parameterType")] - public int ParameterType - { - get - { - return this._parameterType; - } - - set - { - this._parameterType = value; - } - } - - /// - /// Gets or sets the parameterValue - /// - [XmlElement(Type = typeof(double), ElementName = "parameterValue")] - public double ParameterValue - { - get - { - return this._parameterValue; - } - - set - { - this._parameterValue = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._parameterTypeDesignator); - dos.WriteUnsignedByte((byte)this._changeIndicator); - dos.WriteUnsignedShort((ushort)this._partAttachedTo); - dos.WriteInt((int)this._parameterType); - dos.WriteDouble((double)this._parameterValue); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._parameterTypeDesignator = dis.ReadUnsignedByte(); - this._changeIndicator = dis.ReadUnsignedByte(); - this._partAttachedTo = dis.ReadUnsignedShort(); - this._parameterType = dis.ReadInt(); - this._parameterValue = dis.ReadDouble(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._parameterTypeDesignator.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._changeIndicator.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._partAttachedTo.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._parameterType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._parameterValue.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ArticulationParameter; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ArticulationParameter obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._parameterTypeDesignator != obj._parameterTypeDesignator) - { - ivarsEqual = false; - } - - if (this._changeIndicator != obj._changeIndicator) - { - ivarsEqual = false; - } - - if (this._partAttachedTo != obj._partAttachedTo) - { - ivarsEqual = false; - } - - if (this._parameterType != obj._parameterType) - { - ivarsEqual = false; - } - - if (this._parameterValue != obj._parameterValue) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._parameterTypeDesignator.GetHashCode(); - result = GenerateHash(result) ^ this._changeIndicator.GetHashCode(); - result = GenerateHash(result) ^ this._partAttachedTo.GetHashCode(); - result = GenerateHash(result) ^ this._parameterType.GetHashCode(); - result = GenerateHash(result) ^ this._parameterValue.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.2.5. Articulation parameters for movable parts and attached parts of an entity. Specifes wether or not a change has occured, the part identifcation of the articulated part to which it is attached, and the type and value of each parameter. + /// + [Serializable] + [XmlRoot] + public partial class ArticulationParameter + { + private byte _parameterTypeDesignator; + + private byte _changeIndicator; + + private ushort _partAttachedTo; + + private int _parameterType; + + private double _parameterValue; + + /// + /// Initializes a new instance of the class. + /// + public ArticulationParameter() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ArticulationParameter left, ArticulationParameter right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ArticulationParameter left, ArticulationParameter right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._parameterTypeDesignator + marshalSize += 1; // this._changeIndicator + marshalSize += 2; // this._partAttachedTo + marshalSize += 4; // this._parameterType + marshalSize += 8; // this._parameterValue + return marshalSize; + } + + /// + /// Gets or sets the parameterTypeDesignator + /// + [XmlElement(Type = typeof(byte), ElementName = "parameterTypeDesignator")] + public byte ParameterTypeDesignator + { + get + { + return this._parameterTypeDesignator; + } + + set + { + this._parameterTypeDesignator = value; + } + } + + /// + /// Gets or sets the changeIndicator + /// + [XmlElement(Type = typeof(byte), ElementName = "changeIndicator")] + public byte ChangeIndicator + { + get + { + return this._changeIndicator; + } + + set + { + this._changeIndicator = value; + } + } + + /// + /// Gets or sets the partAttachedTo + /// + [XmlElement(Type = typeof(ushort), ElementName = "partAttachedTo")] + public ushort PartAttachedTo + { + get + { + return this._partAttachedTo; + } + + set + { + this._partAttachedTo = value; + } + } + + /// + /// Gets or sets the parameterType + /// + [XmlElement(Type = typeof(int), ElementName = "parameterType")] + public int ParameterType + { + get + { + return this._parameterType; + } + + set + { + this._parameterType = value; + } + } + + /// + /// Gets or sets the parameterValue + /// + [XmlElement(Type = typeof(double), ElementName = "parameterValue")] + public double ParameterValue + { + get + { + return this._parameterValue; + } + + set + { + this._parameterValue = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._parameterTypeDesignator); + dos.WriteUnsignedByte((byte)this._changeIndicator); + dos.WriteUnsignedShort((ushort)this._partAttachedTo); + dos.WriteInt((int)this._parameterType); + dos.WriteDouble((double)this._parameterValue); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._parameterTypeDesignator = dis.ReadUnsignedByte(); + this._changeIndicator = dis.ReadUnsignedByte(); + this._partAttachedTo = dis.ReadUnsignedShort(); + this._parameterType = dis.ReadInt(); + this._parameterValue = dis.ReadDouble(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._parameterTypeDesignator.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._changeIndicator.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._partAttachedTo.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._parameterType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._parameterValue.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ArticulationParameter; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ArticulationParameter obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._parameterTypeDesignator != obj._parameterTypeDesignator) + { + ivarsEqual = false; + } + + if (this._changeIndicator != obj._changeIndicator) + { + ivarsEqual = false; + } + + if (this._partAttachedTo != obj._partAttachedTo) + { + ivarsEqual = false; + } + + if (this._parameterType != obj._parameterType) + { + ivarsEqual = false; + } + + if (this._parameterValue != obj._parameterValue) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._parameterTypeDesignator.GetHashCode(); + result = GenerateHash(result) ^ this._changeIndicator.GetHashCode(); + result = GenerateHash(result) ^ this._partAttachedTo.GetHashCode(); + result = GenerateHash(result) ^ this._parameterType.GetHashCode(); + result = GenerateHash(result) ^ this._parameterValue.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/BeamAntennaPattern.cs b/Libs/CsharpDis6/Dis1995/Generated/BeamAntennaPattern.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/BeamAntennaPattern.cs rename to Libs/CsharpDis6/Dis1995/Generated/BeamAntennaPattern.cs index 2b36f6e..617b0c9 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/BeamAntennaPattern.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/BeamAntennaPattern.cs @@ -1,515 +1,515 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.2.4.2. Used when the antenna pattern type field has a value of 1. Specifies the direction, patter, and polarization of radiation from an antenna. - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(Orientation))] - public partial class BeamAntennaPattern - { - /// - /// The rotation that transformst he reference coordinate sytem into the beam coordinate system. Either world coordinates or entity coordinates may be used as the reference coordinate system, as specified by teh reference system field of the antenna pattern record. - /// - private Orientation _beamDirection = new Orientation(); - - private float _azimuthBeamwidth; - - private float _referenceSystem; - - private short _padding1; - - private byte _padding2; - - /// - /// Magnigute of the z-component in beam coordinates at some arbitrary single point in the mainbeam and in the far field of the antenna. - /// - private float _ez; - - /// - /// Magnigute of the x-component in beam coordinates at some arbitrary single point in the mainbeam and in the far field of the antenna. - /// - private float _ex; - - /// - /// THe phase angle between Ez and Ex in radians. - /// - private float _phase; - - /// - /// Initializes a new instance of the class. - /// - public BeamAntennaPattern() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(BeamAntennaPattern left, BeamAntennaPattern right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(BeamAntennaPattern left, BeamAntennaPattern right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += this._beamDirection.GetMarshalledSize(); // this._beamDirection - marshalSize += 4; // this._azimuthBeamwidth - marshalSize += 4; // this._referenceSystem - marshalSize += 2; // this._padding1 - marshalSize += 1; // this._padding2 - marshalSize += 4; // this._ez - marshalSize += 4; // this._ex - marshalSize += 4; // this._phase - return marshalSize; - } - - /// - /// Gets or sets the The rotation that transformst he reference coordinate sytem into the beam coordinate system. Either world coordinates or entity coordinates may be used as the reference coordinate system, as specified by teh reference system field of the antenna pattern record. - /// - [XmlElement(Type = typeof(Orientation), ElementName = "beamDirection")] - public Orientation BeamDirection - { - get - { - return this._beamDirection; - } - - set - { - this._beamDirection = value; - } - } - - /// - /// Gets or sets the azimuthBeamwidth - /// - [XmlElement(Type = typeof(float), ElementName = "azimuthBeamwidth")] - public float AzimuthBeamwidth - { - get - { - return this._azimuthBeamwidth; - } - - set - { - this._azimuthBeamwidth = value; - } - } - - /// - /// Gets or sets the referenceSystem - /// - [XmlElement(Type = typeof(float), ElementName = "referenceSystem")] - public float ReferenceSystem - { - get - { - return this._referenceSystem; - } - - set - { - this._referenceSystem = value; - } - } - - /// - /// Gets or sets the padding1 - /// - [XmlElement(Type = typeof(short), ElementName = "padding1")] - public short Padding1 - { - get - { - return this._padding1; - } - - set - { - this._padding1 = value; - } - } - - /// - /// Gets or sets the padding2 - /// - [XmlElement(Type = typeof(byte), ElementName = "padding2")] - public byte Padding2 - { - get - { - return this._padding2; - } - - set - { - this._padding2 = value; - } - } - - /// - /// Gets or sets the Magnigute of the z-component in beam coordinates at some arbitrary single point in the mainbeam and in the far field of the antenna. - /// - [XmlElement(Type = typeof(float), ElementName = "ez")] - public float Ez - { - get - { - return this._ez; - } - - set - { - this._ez = value; - } - } - - /// - /// Gets or sets the Magnigute of the x-component in beam coordinates at some arbitrary single point in the mainbeam and in the far field of the antenna. - /// - [XmlElement(Type = typeof(float), ElementName = "ex")] - public float Ex - { - get - { - return this._ex; - } - - set - { - this._ex = value; - } - } - - /// - /// Gets or sets the THe phase angle between Ez and Ex in radians. - /// - [XmlElement(Type = typeof(float), ElementName = "phase")] - public float Phase - { - get - { - return this._phase; - } - - set - { - this._phase = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - this._beamDirection.Marshal(dos); - dos.WriteFloat((float)this._azimuthBeamwidth); - dos.WriteFloat((float)this._referenceSystem); - dos.WriteShort((short)this._padding1); - dos.WriteByte((byte)this._padding2); - dos.WriteFloat((float)this._ez); - dos.WriteFloat((float)this._ex); - dos.WriteFloat((float)this._phase); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._beamDirection.Unmarshal(dis); - this._azimuthBeamwidth = dis.ReadFloat(); - this._referenceSystem = dis.ReadFloat(); - this._padding1 = dis.ReadShort(); - this._padding2 = dis.ReadByte(); - this._ez = dis.ReadFloat(); - this._ex = dis.ReadFloat(); - this._phase = dis.ReadFloat(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine(""); - this._beamDirection.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._azimuthBeamwidth.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._referenceSystem.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._ez.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._ex.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._phase.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as BeamAntennaPattern; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(BeamAntennaPattern obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (!this._beamDirection.Equals(obj._beamDirection)) - { - ivarsEqual = false; - } - - if (this._azimuthBeamwidth != obj._azimuthBeamwidth) - { - ivarsEqual = false; - } - - if (this._referenceSystem != obj._referenceSystem) - { - ivarsEqual = false; - } - - if (this._padding1 != obj._padding1) - { - ivarsEqual = false; - } - - if (this._padding2 != obj._padding2) - { - ivarsEqual = false; - } - - if (this._ez != obj._ez) - { - ivarsEqual = false; - } - - if (this._ex != obj._ex) - { - ivarsEqual = false; - } - - if (this._phase != obj._phase) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._beamDirection.GetHashCode(); - result = GenerateHash(result) ^ this._azimuthBeamwidth.GetHashCode(); - result = GenerateHash(result) ^ this._referenceSystem.GetHashCode(); - result = GenerateHash(result) ^ this._padding1.GetHashCode(); - result = GenerateHash(result) ^ this._padding2.GetHashCode(); - result = GenerateHash(result) ^ this._ez.GetHashCode(); - result = GenerateHash(result) ^ this._ex.GetHashCode(); - result = GenerateHash(result) ^ this._phase.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.2.4.2. Used when the antenna pattern type field has a value of 1. Specifies the direction, patter, and polarization of radiation from an antenna. + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(Orientation))] + public partial class BeamAntennaPattern + { + /// + /// The rotation that transformst he reference coordinate sytem into the beam coordinate system. Either world coordinates or entity coordinates may be used as the reference coordinate system, as specified by teh reference system field of the antenna pattern record. + /// + private Orientation _beamDirection = new Orientation(); + + private float _azimuthBeamwidth; + + private float _referenceSystem; + + private short _padding1; + + private byte _padding2; + + /// + /// Magnigute of the z-component in beam coordinates at some arbitrary single point in the mainbeam and in the far field of the antenna. + /// + private float _ez; + + /// + /// Magnigute of the x-component in beam coordinates at some arbitrary single point in the mainbeam and in the far field of the antenna. + /// + private float _ex; + + /// + /// THe phase angle between Ez and Ex in radians. + /// + private float _phase; + + /// + /// Initializes a new instance of the class. + /// + public BeamAntennaPattern() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(BeamAntennaPattern left, BeamAntennaPattern right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(BeamAntennaPattern left, BeamAntennaPattern right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += this._beamDirection.GetMarshalledSize(); // this._beamDirection + marshalSize += 4; // this._azimuthBeamwidth + marshalSize += 4; // this._referenceSystem + marshalSize += 2; // this._padding1 + marshalSize += 1; // this._padding2 + marshalSize += 4; // this._ez + marshalSize += 4; // this._ex + marshalSize += 4; // this._phase + return marshalSize; + } + + /// + /// Gets or sets the The rotation that transformst he reference coordinate sytem into the beam coordinate system. Either world coordinates or entity coordinates may be used as the reference coordinate system, as specified by teh reference system field of the antenna pattern record. + /// + [XmlElement(Type = typeof(Orientation), ElementName = "beamDirection")] + public Orientation BeamDirection + { + get + { + return this._beamDirection; + } + + set + { + this._beamDirection = value; + } + } + + /// + /// Gets or sets the azimuthBeamwidth + /// + [XmlElement(Type = typeof(float), ElementName = "azimuthBeamwidth")] + public float AzimuthBeamwidth + { + get + { + return this._azimuthBeamwidth; + } + + set + { + this._azimuthBeamwidth = value; + } + } + + /// + /// Gets or sets the referenceSystem + /// + [XmlElement(Type = typeof(float), ElementName = "referenceSystem")] + public float ReferenceSystem + { + get + { + return this._referenceSystem; + } + + set + { + this._referenceSystem = value; + } + } + + /// + /// Gets or sets the padding1 + /// + [XmlElement(Type = typeof(short), ElementName = "padding1")] + public short Padding1 + { + get + { + return this._padding1; + } + + set + { + this._padding1 = value; + } + } + + /// + /// Gets or sets the padding2 + /// + [XmlElement(Type = typeof(byte), ElementName = "padding2")] + public byte Padding2 + { + get + { + return this._padding2; + } + + set + { + this._padding2 = value; + } + } + + /// + /// Gets or sets the Magnigute of the z-component in beam coordinates at some arbitrary single point in the mainbeam and in the far field of the antenna. + /// + [XmlElement(Type = typeof(float), ElementName = "ez")] + public float Ez + { + get + { + return this._ez; + } + + set + { + this._ez = value; + } + } + + /// + /// Gets or sets the Magnigute of the x-component in beam coordinates at some arbitrary single point in the mainbeam and in the far field of the antenna. + /// + [XmlElement(Type = typeof(float), ElementName = "ex")] + public float Ex + { + get + { + return this._ex; + } + + set + { + this._ex = value; + } + } + + /// + /// Gets or sets the THe phase angle between Ez and Ex in radians. + /// + [XmlElement(Type = typeof(float), ElementName = "phase")] + public float Phase + { + get + { + return this._phase; + } + + set + { + this._phase = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + this._beamDirection.Marshal(dos); + dos.WriteFloat((float)this._azimuthBeamwidth); + dos.WriteFloat((float)this._referenceSystem); + dos.WriteShort((short)this._padding1); + dos.WriteByte((byte)this._padding2); + dos.WriteFloat((float)this._ez); + dos.WriteFloat((float)this._ex); + dos.WriteFloat((float)this._phase); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._beamDirection.Unmarshal(dis); + this._azimuthBeamwidth = dis.ReadFloat(); + this._referenceSystem = dis.ReadFloat(); + this._padding1 = dis.ReadShort(); + this._padding2 = dis.ReadByte(); + this._ez = dis.ReadFloat(); + this._ex = dis.ReadFloat(); + this._phase = dis.ReadFloat(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine(""); + this._beamDirection.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._azimuthBeamwidth.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._referenceSystem.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._ez.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._ex.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._phase.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as BeamAntennaPattern; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(BeamAntennaPattern obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (!this._beamDirection.Equals(obj._beamDirection)) + { + ivarsEqual = false; + } + + if (this._azimuthBeamwidth != obj._azimuthBeamwidth) + { + ivarsEqual = false; + } + + if (this._referenceSystem != obj._referenceSystem) + { + ivarsEqual = false; + } + + if (this._padding1 != obj._padding1) + { + ivarsEqual = false; + } + + if (this._padding2 != obj._padding2) + { + ivarsEqual = false; + } + + if (this._ez != obj._ez) + { + ivarsEqual = false; + } + + if (this._ex != obj._ex) + { + ivarsEqual = false; + } + + if (this._phase != obj._phase) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._beamDirection.GetHashCode(); + result = GenerateHash(result) ^ this._azimuthBeamwidth.GetHashCode(); + result = GenerateHash(result) ^ this._referenceSystem.GetHashCode(); + result = GenerateHash(result) ^ this._padding1.GetHashCode(); + result = GenerateHash(result) ^ this._padding2.GetHashCode(); + result = GenerateHash(result) ^ this._ez.GetHashCode(); + result = GenerateHash(result) ^ this._ex.GetHashCode(); + result = GenerateHash(result) ^ this._phase.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/BurstDescriptor.cs b/Libs/CsharpDis6/Dis1995/Generated/BurstDescriptor.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/BurstDescriptor.cs rename to Libs/CsharpDis6/Dis1995/Generated/BurstDescriptor.cs index 886ac7c..4b6e145 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/BurstDescriptor.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/BurstDescriptor.cs @@ -1,431 +1,431 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.2.7. Specifies the type of muntion fired, the type of warhead, the type of fuse, the number of rounds fired, and the rate at which the roudns are fired in rounds per minute. - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityType))] - public partial class BurstDescriptor - { - /// - /// What munition was used in the burst - /// - private EntityType _munition = new EntityType(); - - /// - /// type of warhead - /// - private ushort _warhead; - - /// - /// type of fuse used - /// - private ushort _fuse; - - /// - /// how many of the munition were fired - /// - private ushort _quantity; - - /// - /// rate at which the munition was fired - /// - private ushort _rate; - - /// - /// Initializes a new instance of the class. - /// - public BurstDescriptor() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(BurstDescriptor left, BurstDescriptor right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(BurstDescriptor left, BurstDescriptor right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += this._munition.GetMarshalledSize(); // this._munition - marshalSize += 2; // this._warhead - marshalSize += 2; // this._fuse - marshalSize += 2; // this._quantity - marshalSize += 2; // this._rate - return marshalSize; - } - - /// - /// Gets or sets the What munition was used in the burst - /// - [XmlElement(Type = typeof(EntityType), ElementName = "munition")] - public EntityType Munition - { - get - { - return this._munition; - } - - set - { - this._munition = value; - } - } - - /// - /// Gets or sets the type of warhead - /// - [XmlElement(Type = typeof(ushort), ElementName = "warhead")] - public ushort Warhead - { - get - { - return this._warhead; - } - - set - { - this._warhead = value; - } - } - - /// - /// Gets or sets the type of fuse used - /// - [XmlElement(Type = typeof(ushort), ElementName = "fuse")] - public ushort Fuse - { - get - { - return this._fuse; - } - - set - { - this._fuse = value; - } - } - - /// - /// Gets or sets the how many of the munition were fired - /// - [XmlElement(Type = typeof(ushort), ElementName = "quantity")] - public ushort Quantity - { - get - { - return this._quantity; - } - - set - { - this._quantity = value; - } - } - - /// - /// Gets or sets the rate at which the munition was fired - /// - [XmlElement(Type = typeof(ushort), ElementName = "rate")] - public ushort Rate - { - get - { - return this._rate; - } - - set - { - this._rate = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - this._munition.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._warhead); - dos.WriteUnsignedShort((ushort)this._fuse); - dos.WriteUnsignedShort((ushort)this._quantity); - dos.WriteUnsignedShort((ushort)this._rate); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._munition.Unmarshal(dis); - this._warhead = dis.ReadUnsignedShort(); - this._fuse = dis.ReadUnsignedShort(); - this._quantity = dis.ReadUnsignedShort(); - this._rate = dis.ReadUnsignedShort(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine(""); - this._munition.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._warhead.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fuse.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._quantity.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._rate.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as BurstDescriptor; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(BurstDescriptor obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (!this._munition.Equals(obj._munition)) - { - ivarsEqual = false; - } - - if (this._warhead != obj._warhead) - { - ivarsEqual = false; - } - - if (this._fuse != obj._fuse) - { - ivarsEqual = false; - } - - if (this._quantity != obj._quantity) - { - ivarsEqual = false; - } - - if (this._rate != obj._rate) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._munition.GetHashCode(); - result = GenerateHash(result) ^ this._warhead.GetHashCode(); - result = GenerateHash(result) ^ this._fuse.GetHashCode(); - result = GenerateHash(result) ^ this._quantity.GetHashCode(); - result = GenerateHash(result) ^ this._rate.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.2.7. Specifies the type of muntion fired, the type of warhead, the type of fuse, the number of rounds fired, and the rate at which the roudns are fired in rounds per minute. + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityType))] + public partial class BurstDescriptor + { + /// + /// What munition was used in the burst + /// + private EntityType _munition = new EntityType(); + + /// + /// type of warhead + /// + private ushort _warhead; + + /// + /// type of fuse used + /// + private ushort _fuse; + + /// + /// how many of the munition were fired + /// + private ushort _quantity; + + /// + /// rate at which the munition was fired + /// + private ushort _rate; + + /// + /// Initializes a new instance of the class. + /// + public BurstDescriptor() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(BurstDescriptor left, BurstDescriptor right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(BurstDescriptor left, BurstDescriptor right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += this._munition.GetMarshalledSize(); // this._munition + marshalSize += 2; // this._warhead + marshalSize += 2; // this._fuse + marshalSize += 2; // this._quantity + marshalSize += 2; // this._rate + return marshalSize; + } + + /// + /// Gets or sets the What munition was used in the burst + /// + [XmlElement(Type = typeof(EntityType), ElementName = "munition")] + public EntityType Munition + { + get + { + return this._munition; + } + + set + { + this._munition = value; + } + } + + /// + /// Gets or sets the type of warhead + /// + [XmlElement(Type = typeof(ushort), ElementName = "warhead")] + public ushort Warhead + { + get + { + return this._warhead; + } + + set + { + this._warhead = value; + } + } + + /// + /// Gets or sets the type of fuse used + /// + [XmlElement(Type = typeof(ushort), ElementName = "fuse")] + public ushort Fuse + { + get + { + return this._fuse; + } + + set + { + this._fuse = value; + } + } + + /// + /// Gets or sets the how many of the munition were fired + /// + [XmlElement(Type = typeof(ushort), ElementName = "quantity")] + public ushort Quantity + { + get + { + return this._quantity; + } + + set + { + this._quantity = value; + } + } + + /// + /// Gets or sets the rate at which the munition was fired + /// + [XmlElement(Type = typeof(ushort), ElementName = "rate")] + public ushort Rate + { + get + { + return this._rate; + } + + set + { + this._rate = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + this._munition.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._warhead); + dos.WriteUnsignedShort((ushort)this._fuse); + dos.WriteUnsignedShort((ushort)this._quantity); + dos.WriteUnsignedShort((ushort)this._rate); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._munition.Unmarshal(dis); + this._warhead = dis.ReadUnsignedShort(); + this._fuse = dis.ReadUnsignedShort(); + this._quantity = dis.ReadUnsignedShort(); + this._rate = dis.ReadUnsignedShort(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine(""); + this._munition.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._warhead.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fuse.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._quantity.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._rate.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as BurstDescriptor; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(BurstDescriptor obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (!this._munition.Equals(obj._munition)) + { + ivarsEqual = false; + } + + if (this._warhead != obj._warhead) + { + ivarsEqual = false; + } + + if (this._fuse != obj._fuse) + { + ivarsEqual = false; + } + + if (this._quantity != obj._quantity) + { + ivarsEqual = false; + } + + if (this._rate != obj._rate) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._munition.GetHashCode(); + result = GenerateHash(result) ^ this._warhead.GetHashCode(); + result = GenerateHash(result) ^ this._fuse.GetHashCode(); + result = GenerateHash(result) ^ this._quantity.GetHashCode(); + result = GenerateHash(result) ^ this._rate.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/ClockTime.cs b/Libs/CsharpDis6/Dis1995/Generated/ClockTime.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/ClockTime.cs rename to Libs/CsharpDis6/Dis1995/Generated/ClockTime.cs index a4a1806..de25b84 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/ClockTime.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/ClockTime.cs @@ -1,332 +1,332 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.2.8. Time measurements that exceed one hour. Hours is the number of hours since January 1, 1970, UTC - /// - [Serializable] - [XmlRoot] - public partial class ClockTime - { - /// - /// Hours in UTC - /// - private int _hour; - - /// - /// Time past the hour - /// - private uint _timePastHour; - - /// - /// Initializes a new instance of the class. - /// - public ClockTime() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ClockTime left, ClockTime right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ClockTime left, ClockTime right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._hour - marshalSize += 4; // this._timePastHour - return marshalSize; - } - - /// - /// Gets or sets the Hours in UTC - /// - [XmlElement(Type = typeof(int), ElementName = "hour")] - public int Hour - { - get - { - return this._hour; - } - - set - { - this._hour = value; - } - } - - /// - /// Gets or sets the Time past the hour - /// - [XmlElement(Type = typeof(uint), ElementName = "timePastHour")] - public uint TimePastHour - { - get - { - return this._timePastHour; - } - - set - { - this._timePastHour = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteInt((int)this._hour); - dos.WriteUnsignedInt((uint)this._timePastHour); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._hour = dis.ReadInt(); - this._timePastHour = dis.ReadUnsignedInt(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._hour.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._timePastHour.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ClockTime; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ClockTime obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._hour != obj._hour) - { - ivarsEqual = false; - } - - if (this._timePastHour != obj._timePastHour) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._hour.GetHashCode(); - result = GenerateHash(result) ^ this._timePastHour.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.2.8. Time measurements that exceed one hour. Hours is the number of hours since January 1, 1970, UTC + /// + [Serializable] + [XmlRoot] + public partial class ClockTime + { + /// + /// Hours in UTC + /// + private int _hour; + + /// + /// Time past the hour + /// + private uint _timePastHour; + + /// + /// Initializes a new instance of the class. + /// + public ClockTime() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ClockTime left, ClockTime right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ClockTime left, ClockTime right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._hour + marshalSize += 4; // this._timePastHour + return marshalSize; + } + + /// + /// Gets or sets the Hours in UTC + /// + [XmlElement(Type = typeof(int), ElementName = "hour")] + public int Hour + { + get + { + return this._hour; + } + + set + { + this._hour = value; + } + } + + /// + /// Gets or sets the Time past the hour + /// + [XmlElement(Type = typeof(uint), ElementName = "timePastHour")] + public uint TimePastHour + { + get + { + return this._timePastHour; + } + + set + { + this._timePastHour = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteInt((int)this._hour); + dos.WriteUnsignedInt((uint)this._timePastHour); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._hour = dis.ReadInt(); + this._timePastHour = dis.ReadUnsignedInt(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._hour.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._timePastHour.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ClockTime; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ClockTime obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._hour != obj._hour) + { + ivarsEqual = false; + } + + if (this._timePastHour != obj._timePastHour) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._hour.GetHashCode(); + result = GenerateHash(result) ^ this._timePastHour.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/CollisionPdu.cs b/Libs/CsharpDis6/Dis1995/Generated/CollisionPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/CollisionPdu.cs rename to Libs/CsharpDis6/Dis1995/Generated/CollisionPdu.cs index b78fd98..a6db5cd 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/CollisionPdu.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/CollisionPdu.cs @@ -1,542 +1,542 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.3.3.2. Information about a collision - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(EventID))] - [XmlInclude(typeof(Vector3Float))] - public partial class CollisionPdu : EntityInformationPdu, IEquatable - { - /// - /// ID of the entity that issued the collision PDU - /// - private EntityID _issuingEntityID = new EntityID(); - - /// - /// ID of entity that has collided with the issuing entity ID - /// - private EntityID _collidingEntityID = new EntityID(); - - /// - /// ID of event - /// - private EventID _eventID = new EventID(); - - /// - /// ID of event - /// - private byte _collisionType; - - /// - /// some padding - /// - private byte _pad; - - /// - /// velocity at collision - /// - private Vector3Float _velocity = new Vector3Float(); - - /// - /// mass of issuing entity - /// - private float _mass; - - /// - /// Location with respect to entity the issuing entity collided with - /// - private Vector3Float _location = new Vector3Float(); - - /// - /// Initializes a new instance of the class. - /// - public CollisionPdu() - { - PduType = (byte)4; - ProtocolFamily = (byte)1; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(CollisionPdu left, CollisionPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(CollisionPdu left, CollisionPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._issuingEntityID.GetMarshalledSize(); // this._issuingEntityID - marshalSize += this._collidingEntityID.GetMarshalledSize(); // this._collidingEntityID - marshalSize += this._eventID.GetMarshalledSize(); // this._eventID - marshalSize += 1; // this._collisionType - marshalSize += 1; // this._pad - marshalSize += this._velocity.GetMarshalledSize(); // this._velocity - marshalSize += 4; // this._mass - marshalSize += this._location.GetMarshalledSize(); // this._location - return marshalSize; - } - - /// - /// Gets or sets the ID of the entity that issued the collision PDU - /// - [XmlElement(Type = typeof(EntityID), ElementName = "issuingEntityID")] - public EntityID IssuingEntityID - { - get - { - return this._issuingEntityID; - } - - set - { - this._issuingEntityID = value; - } - } - - /// - /// Gets or sets the ID of entity that has collided with the issuing entity ID - /// - [XmlElement(Type = typeof(EntityID), ElementName = "collidingEntityID")] - public EntityID CollidingEntityID - { - get - { - return this._collidingEntityID; - } - - set - { - this._collidingEntityID = value; - } - } - - /// - /// Gets or sets the ID of event - /// - [XmlElement(Type = typeof(EventID), ElementName = "eventID")] - public EventID EventID - { - get - { - return this._eventID; - } - - set - { - this._eventID = value; - } - } - - /// - /// Gets or sets the ID of event - /// - [XmlElement(Type = typeof(byte), ElementName = "collisionType")] - public byte CollisionType - { - get - { - return this._collisionType; - } - - set - { - this._collisionType = value; - } - } - - /// - /// Gets or sets the some padding - /// - [XmlElement(Type = typeof(byte), ElementName = "pad")] - public byte Pad - { - get - { - return this._pad; - } - - set - { - this._pad = value; - } - } - - /// - /// Gets or sets the velocity at collision - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "velocity")] - public Vector3Float Velocity - { - get - { - return this._velocity; - } - - set - { - this._velocity = value; - } - } - - /// - /// Gets or sets the mass of issuing entity - /// - [XmlElement(Type = typeof(float), ElementName = "mass")] - public float Mass - { - get - { - return this._mass; - } - - set - { - this._mass = value; - } - } - - /// - /// Gets or sets the Location with respect to entity the issuing entity collided with - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "location")] - public Vector3Float Location - { - get - { - return this._location; - } - - set - { - this._location = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._issuingEntityID.Marshal(dos); - this._collidingEntityID.Marshal(dos); - this._eventID.Marshal(dos); - dos.WriteUnsignedByte((byte)this._collisionType); - dos.WriteByte((byte)this._pad); - this._velocity.Marshal(dos); - dos.WriteFloat((float)this._mass); - this._location.Marshal(dos); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._issuingEntityID.Unmarshal(dis); - this._collidingEntityID.Unmarshal(dis); - this._eventID.Unmarshal(dis); - this._collisionType = dis.ReadUnsignedByte(); - this._pad = dis.ReadByte(); - this._velocity.Unmarshal(dis); - this._mass = dis.ReadFloat(); - this._location.Unmarshal(dis); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._issuingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._collidingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._eventID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._collisionType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._velocity.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._mass.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._location.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as CollisionPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(CollisionPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._issuingEntityID.Equals(obj._issuingEntityID)) - { - ivarsEqual = false; - } - - if (!this._collidingEntityID.Equals(obj._collidingEntityID)) - { - ivarsEqual = false; - } - - if (!this._eventID.Equals(obj._eventID)) - { - ivarsEqual = false; - } - - if (this._collisionType != obj._collisionType) - { - ivarsEqual = false; - } - - if (this._pad != obj._pad) - { - ivarsEqual = false; - } - - if (!this._velocity.Equals(obj._velocity)) - { - ivarsEqual = false; - } - - if (this._mass != obj._mass) - { - ivarsEqual = false; - } - - if (!this._location.Equals(obj._location)) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._issuingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._collidingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._eventID.GetHashCode(); - result = GenerateHash(result) ^ this._collisionType.GetHashCode(); - result = GenerateHash(result) ^ this._pad.GetHashCode(); - result = GenerateHash(result) ^ this._velocity.GetHashCode(); - result = GenerateHash(result) ^ this._mass.GetHashCode(); - result = GenerateHash(result) ^ this._location.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.3.3.2. Information about a collision + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(EventID))] + [XmlInclude(typeof(Vector3Float))] + public partial class CollisionPdu : EntityInformationPdu, IEquatable + { + /// + /// ID of the entity that issued the collision PDU + /// + private EntityID _issuingEntityID = new EntityID(); + + /// + /// ID of entity that has collided with the issuing entity ID + /// + private EntityID _collidingEntityID = new EntityID(); + + /// + /// ID of event + /// + private EventID _eventID = new EventID(); + + /// + /// ID of event + /// + private byte _collisionType; + + /// + /// some padding + /// + private byte _pad; + + /// + /// velocity at collision + /// + private Vector3Float _velocity = new Vector3Float(); + + /// + /// mass of issuing entity + /// + private float _mass; + + /// + /// Location with respect to entity the issuing entity collided with + /// + private Vector3Float _location = new Vector3Float(); + + /// + /// Initializes a new instance of the class. + /// + public CollisionPdu() + { + PduType = (byte)4; + ProtocolFamily = (byte)1; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(CollisionPdu left, CollisionPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(CollisionPdu left, CollisionPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._issuingEntityID.GetMarshalledSize(); // this._issuingEntityID + marshalSize += this._collidingEntityID.GetMarshalledSize(); // this._collidingEntityID + marshalSize += this._eventID.GetMarshalledSize(); // this._eventID + marshalSize += 1; // this._collisionType + marshalSize += 1; // this._pad + marshalSize += this._velocity.GetMarshalledSize(); // this._velocity + marshalSize += 4; // this._mass + marshalSize += this._location.GetMarshalledSize(); // this._location + return marshalSize; + } + + /// + /// Gets or sets the ID of the entity that issued the collision PDU + /// + [XmlElement(Type = typeof(EntityID), ElementName = "issuingEntityID")] + public EntityID IssuingEntityID + { + get + { + return this._issuingEntityID; + } + + set + { + this._issuingEntityID = value; + } + } + + /// + /// Gets or sets the ID of entity that has collided with the issuing entity ID + /// + [XmlElement(Type = typeof(EntityID), ElementName = "collidingEntityID")] + public EntityID CollidingEntityID + { + get + { + return this._collidingEntityID; + } + + set + { + this._collidingEntityID = value; + } + } + + /// + /// Gets or sets the ID of event + /// + [XmlElement(Type = typeof(EventID), ElementName = "eventID")] + public EventID EventID + { + get + { + return this._eventID; + } + + set + { + this._eventID = value; + } + } + + /// + /// Gets or sets the ID of event + /// + [XmlElement(Type = typeof(byte), ElementName = "collisionType")] + public byte CollisionType + { + get + { + return this._collisionType; + } + + set + { + this._collisionType = value; + } + } + + /// + /// Gets or sets the some padding + /// + [XmlElement(Type = typeof(byte), ElementName = "pad")] + public byte Pad + { + get + { + return this._pad; + } + + set + { + this._pad = value; + } + } + + /// + /// Gets or sets the velocity at collision + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "velocity")] + public Vector3Float Velocity + { + get + { + return this._velocity; + } + + set + { + this._velocity = value; + } + } + + /// + /// Gets or sets the mass of issuing entity + /// + [XmlElement(Type = typeof(float), ElementName = "mass")] + public float Mass + { + get + { + return this._mass; + } + + set + { + this._mass = value; + } + } + + /// + /// Gets or sets the Location with respect to entity the issuing entity collided with + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "location")] + public Vector3Float Location + { + get + { + return this._location; + } + + set + { + this._location = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._issuingEntityID.Marshal(dos); + this._collidingEntityID.Marshal(dos); + this._eventID.Marshal(dos); + dos.WriteUnsignedByte((byte)this._collisionType); + dos.WriteByte((byte)this._pad); + this._velocity.Marshal(dos); + dos.WriteFloat((float)this._mass); + this._location.Marshal(dos); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._issuingEntityID.Unmarshal(dis); + this._collidingEntityID.Unmarshal(dis); + this._eventID.Unmarshal(dis); + this._collisionType = dis.ReadUnsignedByte(); + this._pad = dis.ReadByte(); + this._velocity.Unmarshal(dis); + this._mass = dis.ReadFloat(); + this._location.Unmarshal(dis); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._issuingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._collidingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._eventID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._collisionType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._velocity.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._mass.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._location.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as CollisionPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(CollisionPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._issuingEntityID.Equals(obj._issuingEntityID)) + { + ivarsEqual = false; + } + + if (!this._collidingEntityID.Equals(obj._collidingEntityID)) + { + ivarsEqual = false; + } + + if (!this._eventID.Equals(obj._eventID)) + { + ivarsEqual = false; + } + + if (this._collisionType != obj._collisionType) + { + ivarsEqual = false; + } + + if (this._pad != obj._pad) + { + ivarsEqual = false; + } + + if (!this._velocity.Equals(obj._velocity)) + { + ivarsEqual = false; + } + + if (this._mass != obj._mass) + { + ivarsEqual = false; + } + + if (!this._location.Equals(obj._location)) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._issuingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._collidingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._eventID.GetHashCode(); + result = GenerateHash(result) ^ this._collisionType.GetHashCode(); + result = GenerateHash(result) ^ this._pad.GetHashCode(); + result = GenerateHash(result) ^ this._velocity.GetHashCode(); + result = GenerateHash(result) ^ this._mass.GetHashCode(); + result = GenerateHash(result) ^ this._location.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/CommentPdu.cs b/Libs/CsharpDis6/Dis1995/Generated/CommentPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/CommentPdu.cs rename to Libs/CsharpDis6/Dis1995/Generated/CommentPdu.cs index 2529aa1..f4d4f23 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/CommentPdu.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/CommentPdu.cs @@ -1,484 +1,484 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.3.6.12. Arbitrary messages can be entered into the data stream via use of this PDU - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(FixedDatum))] - [XmlInclude(typeof(VariableDatum))] - public partial class CommentPdu : SimulationManagementPdu, IEquatable - { - /// - /// Number of fixed datum records - /// - private uint _fixedDatumRecordCount; - - /// - /// Number of variable datum records - /// - private uint _variableDatumRecordCount; - - /// - /// variable length list of fixed datums - /// - private List _fixedDatums = new List(); - - /// - /// variable length list of variable length datums - /// - private List _variableDatums = new List(); - - /// - /// Initializes a new instance of the class. - /// - public CommentPdu() - { - PduType = (byte)22; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(CommentPdu left, CommentPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(CommentPdu left, CommentPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 4; // this._fixedDatumRecordCount - marshalSize += 4; // this._variableDatumRecordCount - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - FixedDatum listElement = (FixedDatum)this._fixedDatums[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - VariableDatum listElement = (VariableDatum)this._variableDatums[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Number of fixed datum records - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getfixedDatumRecordCount method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "fixedDatumRecordCount")] - public uint FixedDatumRecordCount - { - get - { - return this._fixedDatumRecordCount; - } - - set - { - this._fixedDatumRecordCount = value; - } - } - - /// - /// Gets or sets the Number of variable datum records - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getvariableDatumRecordCount method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "variableDatumRecordCount")] - public uint VariableDatumRecordCount - { - get - { - return this._variableDatumRecordCount; - } - - set - { - this._variableDatumRecordCount = value; - } - } - - /// - /// Gets the variable length list of fixed datums - /// - [XmlElement(ElementName = "fixedDatumsList", Type = typeof(List))] - public List FixedDatums - { - get - { - return this._fixedDatums; - } - } - - /// - /// Gets the variable length list of variable length datums - /// - [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] - public List VariableDatums - { - get - { - return this._variableDatums; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._fixedDatums.Count); - dos.WriteUnsignedInt((uint)this._variableDatums.Count); - - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; - aFixedDatum.Marshal(dos); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; - aVariableDatum.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._fixedDatumRecordCount = dis.ReadUnsignedInt(); - this._variableDatumRecordCount = dis.ReadUnsignedInt(); - - for (int idx = 0; idx < this.FixedDatumRecordCount; idx++) - { - FixedDatum anX = new FixedDatum(); - anX.Unmarshal(dis); - this._fixedDatums.Add(anX); - } - - for (int idx = 0; idx < this.VariableDatumRecordCount; idx++) - { - VariableDatum anX = new VariableDatum(); - anX.Unmarshal(dis); - this._variableDatums.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._fixedDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - sb.AppendLine(""); - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; - aFixedDatum.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - sb.AppendLine(""); - VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; - aVariableDatum.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as CommentPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(CommentPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._fixedDatumRecordCount != obj._fixedDatumRecordCount) - { - ivarsEqual = false; - } - - if (this._variableDatumRecordCount != obj._variableDatumRecordCount) - { - ivarsEqual = false; - } - - if (this._fixedDatums.Count != obj._fixedDatums.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - if (!this._fixedDatums[idx].Equals(obj._fixedDatums[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._variableDatums.Count != obj._variableDatums.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._fixedDatumRecordCount.GetHashCode(); - result = GenerateHash(result) ^ this._variableDatumRecordCount.GetHashCode(); - - if (this._fixedDatums.Count > 0) - { - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - result = GenerateHash(result) ^ this._fixedDatums[idx].GetHashCode(); - } - } - - if (this._variableDatums.Count > 0) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.3.6.12. Arbitrary messages can be entered into the data stream via use of this PDU + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(FixedDatum))] + [XmlInclude(typeof(VariableDatum))] + public partial class CommentPdu : SimulationManagementPdu, IEquatable + { + /// + /// Number of fixed datum records + /// + private uint _fixedDatumRecordCount; + + /// + /// Number of variable datum records + /// + private uint _variableDatumRecordCount; + + /// + /// variable length list of fixed datums + /// + private List _fixedDatums = new List(); + + /// + /// variable length list of variable length datums + /// + private List _variableDatums = new List(); + + /// + /// Initializes a new instance of the class. + /// + public CommentPdu() + { + PduType = (byte)22; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(CommentPdu left, CommentPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(CommentPdu left, CommentPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 4; // this._fixedDatumRecordCount + marshalSize += 4; // this._variableDatumRecordCount + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + FixedDatum listElement = (FixedDatum)this._fixedDatums[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + VariableDatum listElement = (VariableDatum)this._variableDatums[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Number of fixed datum records + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getfixedDatumRecordCount method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "fixedDatumRecordCount")] + public uint FixedDatumRecordCount + { + get + { + return this._fixedDatumRecordCount; + } + + set + { + this._fixedDatumRecordCount = value; + } + } + + /// + /// Gets or sets the Number of variable datum records + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getvariableDatumRecordCount method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "variableDatumRecordCount")] + public uint VariableDatumRecordCount + { + get + { + return this._variableDatumRecordCount; + } + + set + { + this._variableDatumRecordCount = value; + } + } + + /// + /// Gets the variable length list of fixed datums + /// + [XmlElement(ElementName = "fixedDatumsList", Type = typeof(List))] + public List FixedDatums + { + get + { + return this._fixedDatums; + } + } + + /// + /// Gets the variable length list of variable length datums + /// + [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] + public List VariableDatums + { + get + { + return this._variableDatums; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._fixedDatums.Count); + dos.WriteUnsignedInt((uint)this._variableDatums.Count); + + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; + aFixedDatum.Marshal(dos); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; + aVariableDatum.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._fixedDatumRecordCount = dis.ReadUnsignedInt(); + this._variableDatumRecordCount = dis.ReadUnsignedInt(); + + for (int idx = 0; idx < this.FixedDatumRecordCount; idx++) + { + FixedDatum anX = new FixedDatum(); + anX.Unmarshal(dis); + this._fixedDatums.Add(anX); + } + + for (int idx = 0; idx < this.VariableDatumRecordCount; idx++) + { + VariableDatum anX = new VariableDatum(); + anX.Unmarshal(dis); + this._variableDatums.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._fixedDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + sb.AppendLine(""); + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; + aFixedDatum.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + sb.AppendLine(""); + VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; + aVariableDatum.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as CommentPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(CommentPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._fixedDatumRecordCount != obj._fixedDatumRecordCount) + { + ivarsEqual = false; + } + + if (this._variableDatumRecordCount != obj._variableDatumRecordCount) + { + ivarsEqual = false; + } + + if (this._fixedDatums.Count != obj._fixedDatums.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + if (!this._fixedDatums[idx].Equals(obj._fixedDatums[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._variableDatums.Count != obj._variableDatums.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._fixedDatumRecordCount.GetHashCode(); + result = GenerateHash(result) ^ this._variableDatumRecordCount.GetHashCode(); + + if (this._fixedDatums.Count > 0) + { + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + result = GenerateHash(result) ^ this._fixedDatums[idx].GetHashCode(); + } + } + + if (this._variableDatums.Count > 0) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/CreateEntityPdu.cs b/Libs/CsharpDis6/Dis1995/Generated/CreateEntityPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/CreateEntityPdu.cs rename to Libs/CsharpDis6/Dis1995/Generated/CreateEntityPdu.cs index 6d454da..e19230d 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/CreateEntityPdu.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/CreateEntityPdu.cs @@ -1,304 +1,304 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.3.6.1. Create a new entity - /// - [Serializable] - [XmlRoot] - public partial class CreateEntityPdu : SimulationManagementPdu, IEquatable - { - /// - /// Identifier for the request - /// - private uint _requestID; - - /// - /// Initializes a new instance of the class. - /// - public CreateEntityPdu() - { - PduType = (byte)11; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(CreateEntityPdu left, CreateEntityPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(CreateEntityPdu left, CreateEntityPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 4; // this._requestID - return marshalSize; - } - - /// - /// Gets or sets the Identifier for the request - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._requestID); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._requestID = dis.ReadUnsignedInt(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as CreateEntityPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(CreateEntityPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.3.6.1. Create a new entity + /// + [Serializable] + [XmlRoot] + public partial class CreateEntityPdu : SimulationManagementPdu, IEquatable + { + /// + /// Identifier for the request + /// + private uint _requestID; + + /// + /// Initializes a new instance of the class. + /// + public CreateEntityPdu() + { + PduType = (byte)11; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(CreateEntityPdu left, CreateEntityPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(CreateEntityPdu left, CreateEntityPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 4; // this._requestID + return marshalSize; + } + + /// + /// Gets or sets the Identifier for the request + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._requestID); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._requestID = dis.ReadUnsignedInt(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as CreateEntityPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(CreateEntityPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/DataPdu.cs b/Libs/CsharpDis6/Dis1995/Generated/DataPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/DataPdu.cs rename to Libs/CsharpDis6/Dis1995/Generated/DataPdu.cs index e9d77d0..044222c 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/DataPdu.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/DataPdu.cs @@ -1,548 +1,548 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.3.6.10. Information issued in response to a data query pdu or a set data pdu is communicated using a data pdu. - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(FixedDatum))] - [XmlInclude(typeof(VariableDatum))] - public partial class DataPdu : SimulationManagementPdu, IEquatable - { - /// - /// ID of request - /// - private uint _requestID; - - /// - /// padding - /// - private uint _padding1; - - /// - /// Number of fixed datum records - /// - private uint _fixedDatumRecordCount; - - /// - /// Number of variable datum records - /// - private uint _variableDatumRecordCount; - - /// - /// variable length list of fixed datums - /// - private List _fixedDatums = new List(); - - /// - /// variable length list of variable length datums - /// - private List _variableDatums = new List(); - - /// - /// Initializes a new instance of the class. - /// - public DataPdu() - { - PduType = (byte)20; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(DataPdu left, DataPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(DataPdu left, DataPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 4; // this._requestID - marshalSize += 4; // this._padding1 - marshalSize += 4; // this._fixedDatumRecordCount - marshalSize += 4; // this._variableDatumRecordCount - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - FixedDatum listElement = (FixedDatum)this._fixedDatums[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - VariableDatum listElement = (VariableDatum)this._variableDatums[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the ID of request - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(uint), ElementName = "padding1")] - public uint Padding1 - { - get - { - return this._padding1; - } - - set - { - this._padding1 = value; - } - } - - /// - /// Gets or sets the Number of fixed datum records - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getfixedDatumRecordCount method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "fixedDatumRecordCount")] - public uint FixedDatumRecordCount - { - get - { - return this._fixedDatumRecordCount; - } - - set - { - this._fixedDatumRecordCount = value; - } - } - - /// - /// Gets or sets the Number of variable datum records - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getvariableDatumRecordCount method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "variableDatumRecordCount")] - public uint VariableDatumRecordCount - { - get - { - return this._variableDatumRecordCount; - } - - set - { - this._variableDatumRecordCount = value; - } - } - - /// - /// Gets the variable length list of fixed datums - /// - [XmlElement(ElementName = "fixedDatumsList", Type = typeof(List))] - public List FixedDatums - { - get - { - return this._fixedDatums; - } - } - - /// - /// Gets the variable length list of variable length datums - /// - [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] - public List VariableDatums - { - get - { - return this._variableDatums; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._requestID); - dos.WriteUnsignedInt((uint)this._padding1); - dos.WriteUnsignedInt((uint)this._fixedDatums.Count); - dos.WriteUnsignedInt((uint)this._variableDatums.Count); - - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; - aFixedDatum.Marshal(dos); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; - aVariableDatum.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._requestID = dis.ReadUnsignedInt(); - this._padding1 = dis.ReadUnsignedInt(); - this._fixedDatumRecordCount = dis.ReadUnsignedInt(); - this._variableDatumRecordCount = dis.ReadUnsignedInt(); - - for (int idx = 0; idx < this.FixedDatumRecordCount; idx++) - { - FixedDatum anX = new FixedDatum(); - anX.Unmarshal(dis); - this._fixedDatums.Add(anX); - } - - for (int idx = 0; idx < this.VariableDatumRecordCount; idx++) - { - VariableDatum anX = new VariableDatum(); - anX.Unmarshal(dis); - this._variableDatums.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fixedDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - sb.AppendLine(""); - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; - aFixedDatum.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - sb.AppendLine(""); - VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; - aVariableDatum.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as DataPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(DataPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - if (this._padding1 != obj._padding1) - { - ivarsEqual = false; - } - - if (this._fixedDatumRecordCount != obj._fixedDatumRecordCount) - { - ivarsEqual = false; - } - - if (this._variableDatumRecordCount != obj._variableDatumRecordCount) - { - ivarsEqual = false; - } - - if (this._fixedDatums.Count != obj._fixedDatums.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - if (!this._fixedDatums[idx].Equals(obj._fixedDatums[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._variableDatums.Count != obj._variableDatums.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - result = GenerateHash(result) ^ this._padding1.GetHashCode(); - result = GenerateHash(result) ^ this._fixedDatumRecordCount.GetHashCode(); - result = GenerateHash(result) ^ this._variableDatumRecordCount.GetHashCode(); - - if (this._fixedDatums.Count > 0) - { - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - result = GenerateHash(result) ^ this._fixedDatums[idx].GetHashCode(); - } - } - - if (this._variableDatums.Count > 0) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.3.6.10. Information issued in response to a data query pdu or a set data pdu is communicated using a data pdu. + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(FixedDatum))] + [XmlInclude(typeof(VariableDatum))] + public partial class DataPdu : SimulationManagementPdu, IEquatable + { + /// + /// ID of request + /// + private uint _requestID; + + /// + /// padding + /// + private uint _padding1; + + /// + /// Number of fixed datum records + /// + private uint _fixedDatumRecordCount; + + /// + /// Number of variable datum records + /// + private uint _variableDatumRecordCount; + + /// + /// variable length list of fixed datums + /// + private List _fixedDatums = new List(); + + /// + /// variable length list of variable length datums + /// + private List _variableDatums = new List(); + + /// + /// Initializes a new instance of the class. + /// + public DataPdu() + { + PduType = (byte)20; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(DataPdu left, DataPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(DataPdu left, DataPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 4; // this._requestID + marshalSize += 4; // this._padding1 + marshalSize += 4; // this._fixedDatumRecordCount + marshalSize += 4; // this._variableDatumRecordCount + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + FixedDatum listElement = (FixedDatum)this._fixedDatums[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + VariableDatum listElement = (VariableDatum)this._variableDatums[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the ID of request + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(uint), ElementName = "padding1")] + public uint Padding1 + { + get + { + return this._padding1; + } + + set + { + this._padding1 = value; + } + } + + /// + /// Gets or sets the Number of fixed datum records + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getfixedDatumRecordCount method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "fixedDatumRecordCount")] + public uint FixedDatumRecordCount + { + get + { + return this._fixedDatumRecordCount; + } + + set + { + this._fixedDatumRecordCount = value; + } + } + + /// + /// Gets or sets the Number of variable datum records + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getvariableDatumRecordCount method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "variableDatumRecordCount")] + public uint VariableDatumRecordCount + { + get + { + return this._variableDatumRecordCount; + } + + set + { + this._variableDatumRecordCount = value; + } + } + + /// + /// Gets the variable length list of fixed datums + /// + [XmlElement(ElementName = "fixedDatumsList", Type = typeof(List))] + public List FixedDatums + { + get + { + return this._fixedDatums; + } + } + + /// + /// Gets the variable length list of variable length datums + /// + [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] + public List VariableDatums + { + get + { + return this._variableDatums; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._requestID); + dos.WriteUnsignedInt((uint)this._padding1); + dos.WriteUnsignedInt((uint)this._fixedDatums.Count); + dos.WriteUnsignedInt((uint)this._variableDatums.Count); + + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; + aFixedDatum.Marshal(dos); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; + aVariableDatum.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._requestID = dis.ReadUnsignedInt(); + this._padding1 = dis.ReadUnsignedInt(); + this._fixedDatumRecordCount = dis.ReadUnsignedInt(); + this._variableDatumRecordCount = dis.ReadUnsignedInt(); + + for (int idx = 0; idx < this.FixedDatumRecordCount; idx++) + { + FixedDatum anX = new FixedDatum(); + anX.Unmarshal(dis); + this._fixedDatums.Add(anX); + } + + for (int idx = 0; idx < this.VariableDatumRecordCount; idx++) + { + VariableDatum anX = new VariableDatum(); + anX.Unmarshal(dis); + this._variableDatums.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fixedDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + sb.AppendLine(""); + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; + aFixedDatum.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + sb.AppendLine(""); + VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; + aVariableDatum.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as DataPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(DataPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + if (this._padding1 != obj._padding1) + { + ivarsEqual = false; + } + + if (this._fixedDatumRecordCount != obj._fixedDatumRecordCount) + { + ivarsEqual = false; + } + + if (this._variableDatumRecordCount != obj._variableDatumRecordCount) + { + ivarsEqual = false; + } + + if (this._fixedDatums.Count != obj._fixedDatums.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + if (!this._fixedDatums[idx].Equals(obj._fixedDatums[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._variableDatums.Count != obj._variableDatums.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + result = GenerateHash(result) ^ this._padding1.GetHashCode(); + result = GenerateHash(result) ^ this._fixedDatumRecordCount.GetHashCode(); + result = GenerateHash(result) ^ this._variableDatumRecordCount.GetHashCode(); + + if (this._fixedDatums.Count > 0) + { + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + result = GenerateHash(result) ^ this._fixedDatums[idx].GetHashCode(); + } + } + + if (this._variableDatums.Count > 0) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/DataQueryPdu.cs b/Libs/CsharpDis6/Dis1995/Generated/DataQueryPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/DataQueryPdu.cs rename to Libs/CsharpDis6/Dis1995/Generated/DataQueryPdu.cs index 9539bb1..d8131dd 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/DataQueryPdu.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/DataQueryPdu.cs @@ -1,548 +1,548 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.3.6.8. Request for data from an entity - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(FixedDatum))] - [XmlInclude(typeof(VariableDatum))] - public partial class DataQueryPdu : SimulationManagementPdu, IEquatable - { - /// - /// ID of request - /// - private uint _requestID; - - /// - /// time issues between issues of Data PDUs. Zero means send once only. - /// - private uint _timeInterval; - - /// - /// Number of fixed datum records - /// - private uint _fixedDatumRecordCount; - - /// - /// Number of variable datum records - /// - private uint _variableDatumRecordCount; - - /// - /// variable length list of fixed datums - /// - private List _fixedDatums = new List(); - - /// - /// variable length list of variable length datums - /// - private List _variableDatums = new List(); - - /// - /// Initializes a new instance of the class. - /// - public DataQueryPdu() - { - PduType = (byte)18; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(DataQueryPdu left, DataQueryPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(DataQueryPdu left, DataQueryPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 4; // this._requestID - marshalSize += 4; // this._timeInterval - marshalSize += 4; // this._fixedDatumRecordCount - marshalSize += 4; // this._variableDatumRecordCount - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - FixedDatum listElement = (FixedDatum)this._fixedDatums[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - VariableDatum listElement = (VariableDatum)this._variableDatums[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the ID of request - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Gets or sets the time issues between issues of Data PDUs. Zero means send once only. - /// - [XmlElement(Type = typeof(uint), ElementName = "timeInterval")] - public uint TimeInterval - { - get - { - return this._timeInterval; - } - - set - { - this._timeInterval = value; - } - } - - /// - /// Gets or sets the Number of fixed datum records - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getfixedDatumRecordCount method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "fixedDatumRecordCount")] - public uint FixedDatumRecordCount - { - get - { - return this._fixedDatumRecordCount; - } - - set - { - this._fixedDatumRecordCount = value; - } - } - - /// - /// Gets or sets the Number of variable datum records - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getvariableDatumRecordCount method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "variableDatumRecordCount")] - public uint VariableDatumRecordCount - { - get - { - return this._variableDatumRecordCount; - } - - set - { - this._variableDatumRecordCount = value; - } - } - - /// - /// Gets the variable length list of fixed datums - /// - [XmlElement(ElementName = "fixedDatumsList", Type = typeof(List))] - public List FixedDatums - { - get - { - return this._fixedDatums; - } - } - - /// - /// Gets the variable length list of variable length datums - /// - [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] - public List VariableDatums - { - get - { - return this._variableDatums; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._requestID); - dos.WriteUnsignedInt((uint)this._timeInterval); - dos.WriteUnsignedInt((uint)this._fixedDatums.Count); - dos.WriteUnsignedInt((uint)this._variableDatums.Count); - - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; - aFixedDatum.Marshal(dos); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; - aVariableDatum.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._requestID = dis.ReadUnsignedInt(); - this._timeInterval = dis.ReadUnsignedInt(); - this._fixedDatumRecordCount = dis.ReadUnsignedInt(); - this._variableDatumRecordCount = dis.ReadUnsignedInt(); - - for (int idx = 0; idx < this.FixedDatumRecordCount; idx++) - { - FixedDatum anX = new FixedDatum(); - anX.Unmarshal(dis); - this._fixedDatums.Add(anX); - } - - for (int idx = 0; idx < this.VariableDatumRecordCount; idx++) - { - VariableDatum anX = new VariableDatum(); - anX.Unmarshal(dis); - this._variableDatums.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._timeInterval.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fixedDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - sb.AppendLine(""); - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; - aFixedDatum.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - sb.AppendLine(""); - VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; - aVariableDatum.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as DataQueryPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(DataQueryPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - if (this._timeInterval != obj._timeInterval) - { - ivarsEqual = false; - } - - if (this._fixedDatumRecordCount != obj._fixedDatumRecordCount) - { - ivarsEqual = false; - } - - if (this._variableDatumRecordCount != obj._variableDatumRecordCount) - { - ivarsEqual = false; - } - - if (this._fixedDatums.Count != obj._fixedDatums.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - if (!this._fixedDatums[idx].Equals(obj._fixedDatums[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._variableDatums.Count != obj._variableDatums.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - result = GenerateHash(result) ^ this._timeInterval.GetHashCode(); - result = GenerateHash(result) ^ this._fixedDatumRecordCount.GetHashCode(); - result = GenerateHash(result) ^ this._variableDatumRecordCount.GetHashCode(); - - if (this._fixedDatums.Count > 0) - { - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - result = GenerateHash(result) ^ this._fixedDatums[idx].GetHashCode(); - } - } - - if (this._variableDatums.Count > 0) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.3.6.8. Request for data from an entity + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(FixedDatum))] + [XmlInclude(typeof(VariableDatum))] + public partial class DataQueryPdu : SimulationManagementPdu, IEquatable + { + /// + /// ID of request + /// + private uint _requestID; + + /// + /// time issues between issues of Data PDUs. Zero means send once only. + /// + private uint _timeInterval; + + /// + /// Number of fixed datum records + /// + private uint _fixedDatumRecordCount; + + /// + /// Number of variable datum records + /// + private uint _variableDatumRecordCount; + + /// + /// variable length list of fixed datums + /// + private List _fixedDatums = new List(); + + /// + /// variable length list of variable length datums + /// + private List _variableDatums = new List(); + + /// + /// Initializes a new instance of the class. + /// + public DataQueryPdu() + { + PduType = (byte)18; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(DataQueryPdu left, DataQueryPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(DataQueryPdu left, DataQueryPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 4; // this._requestID + marshalSize += 4; // this._timeInterval + marshalSize += 4; // this._fixedDatumRecordCount + marshalSize += 4; // this._variableDatumRecordCount + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + FixedDatum listElement = (FixedDatum)this._fixedDatums[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + VariableDatum listElement = (VariableDatum)this._variableDatums[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the ID of request + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Gets or sets the time issues between issues of Data PDUs. Zero means send once only. + /// + [XmlElement(Type = typeof(uint), ElementName = "timeInterval")] + public uint TimeInterval + { + get + { + return this._timeInterval; + } + + set + { + this._timeInterval = value; + } + } + + /// + /// Gets or sets the Number of fixed datum records + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getfixedDatumRecordCount method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "fixedDatumRecordCount")] + public uint FixedDatumRecordCount + { + get + { + return this._fixedDatumRecordCount; + } + + set + { + this._fixedDatumRecordCount = value; + } + } + + /// + /// Gets or sets the Number of variable datum records + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getvariableDatumRecordCount method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "variableDatumRecordCount")] + public uint VariableDatumRecordCount + { + get + { + return this._variableDatumRecordCount; + } + + set + { + this._variableDatumRecordCount = value; + } + } + + /// + /// Gets the variable length list of fixed datums + /// + [XmlElement(ElementName = "fixedDatumsList", Type = typeof(List))] + public List FixedDatums + { + get + { + return this._fixedDatums; + } + } + + /// + /// Gets the variable length list of variable length datums + /// + [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] + public List VariableDatums + { + get + { + return this._variableDatums; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._requestID); + dos.WriteUnsignedInt((uint)this._timeInterval); + dos.WriteUnsignedInt((uint)this._fixedDatums.Count); + dos.WriteUnsignedInt((uint)this._variableDatums.Count); + + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; + aFixedDatum.Marshal(dos); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; + aVariableDatum.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._requestID = dis.ReadUnsignedInt(); + this._timeInterval = dis.ReadUnsignedInt(); + this._fixedDatumRecordCount = dis.ReadUnsignedInt(); + this._variableDatumRecordCount = dis.ReadUnsignedInt(); + + for (int idx = 0; idx < this.FixedDatumRecordCount; idx++) + { + FixedDatum anX = new FixedDatum(); + anX.Unmarshal(dis); + this._fixedDatums.Add(anX); + } + + for (int idx = 0; idx < this.VariableDatumRecordCount; idx++) + { + VariableDatum anX = new VariableDatum(); + anX.Unmarshal(dis); + this._variableDatums.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._timeInterval.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fixedDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + sb.AppendLine(""); + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; + aFixedDatum.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + sb.AppendLine(""); + VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; + aVariableDatum.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as DataQueryPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(DataQueryPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + if (this._timeInterval != obj._timeInterval) + { + ivarsEqual = false; + } + + if (this._fixedDatumRecordCount != obj._fixedDatumRecordCount) + { + ivarsEqual = false; + } + + if (this._variableDatumRecordCount != obj._variableDatumRecordCount) + { + ivarsEqual = false; + } + + if (this._fixedDatums.Count != obj._fixedDatums.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + if (!this._fixedDatums[idx].Equals(obj._fixedDatums[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._variableDatums.Count != obj._variableDatums.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + result = GenerateHash(result) ^ this._timeInterval.GetHashCode(); + result = GenerateHash(result) ^ this._fixedDatumRecordCount.GetHashCode(); + result = GenerateHash(result) ^ this._variableDatumRecordCount.GetHashCode(); + + if (this._fixedDatums.Count > 0) + { + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + result = GenerateHash(result) ^ this._fixedDatums[idx].GetHashCode(); + } + } + + if (this._variableDatums.Count > 0) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/DeadReckoningParameter.cs b/Libs/CsharpDis6/Dis1995/Generated/DeadReckoningParameter.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/DeadReckoningParameter.cs rename to Libs/CsharpDis6/Dis1995/Generated/DeadReckoningParameter.cs index 3eeb7df..e9f3bb3 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/DeadReckoningParameter.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/DeadReckoningParameter.cs @@ -1,431 +1,431 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// represents values used in dead reckoning algorithms - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(Vector3Float))] - public partial class DeadReckoningParameter - { - /// - /// enumeration of what dead reckoning algorighm to use - /// - private byte _deadReckoningAlgorithm; - - /// - /// other parameters to use in the dead reckoning algorithm - /// - private byte[] _otherParameters = new byte[15]; - - /// - /// Linear acceleration of the entity - /// - private Vector3Float _entityLinearAcceleration = new Vector3Float(); - - /// - /// angular velocity of the entity - /// - private Vector3Float _entityAngularVelocity = new Vector3Float(); - - /// - /// Initializes a new instance of the class. - /// - public DeadReckoningParameter() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(DeadReckoningParameter left, DeadReckoningParameter right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(DeadReckoningParameter left, DeadReckoningParameter right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._deadReckoningAlgorithm - marshalSize += 15 * 1; // _otherParameters - marshalSize += this._entityLinearAcceleration.GetMarshalledSize(); // this._entityLinearAcceleration - marshalSize += this._entityAngularVelocity.GetMarshalledSize(); // this._entityAngularVelocity - return marshalSize; - } - - /// - /// Gets or sets the enumeration of what dead reckoning algorighm to use - /// - [XmlElement(Type = typeof(byte), ElementName = "deadReckoningAlgorithm")] - public byte DeadReckoningAlgorithm - { - get - { - return this._deadReckoningAlgorithm; - } - - set - { - this._deadReckoningAlgorithm = value; - } - } - - /// - /// Gets or sets the other parameters to use in the dead reckoning algorithm - /// - [XmlArray(ElementName = "otherParameters")] - public byte[] OtherParameters - { - get - { - return this._otherParameters; - } - - set - { - this._otherParameters = value; - } -} - - /// - /// Gets or sets the Linear acceleration of the entity - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "entityLinearAcceleration")] - public Vector3Float EntityLinearAcceleration - { - get - { - return this._entityLinearAcceleration; - } - - set - { - this._entityLinearAcceleration = value; - } - } - - /// - /// Gets or sets the angular velocity of the entity - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "entityAngularVelocity")] - public Vector3Float EntityAngularVelocity - { - get - { - return this._entityAngularVelocity; - } - - set - { - this._entityAngularVelocity = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._deadReckoningAlgorithm); - - for (int idx = 0; idx < this._otherParameters.Length; idx++) - { - dos.WriteByte(this._otherParameters[idx]); - } - - this._entityLinearAcceleration.Marshal(dos); - this._entityAngularVelocity.Marshal(dos); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._deadReckoningAlgorithm = dis.ReadUnsignedByte(); - - for (int idx = 0; idx < this._otherParameters.Length; idx++) - { - this._otherParameters[idx] = dis.ReadByte(); - } - - this._entityLinearAcceleration.Unmarshal(dis); - this._entityAngularVelocity.Unmarshal(dis); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._deadReckoningAlgorithm.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._otherParameters.Length; idx++) - { - sb.AppendLine("" + this._otherParameters[idx] + ""); - } - - sb.AppendLine(""); - this._entityLinearAcceleration.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._entityAngularVelocity.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as DeadReckoningParameter; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(DeadReckoningParameter obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._deadReckoningAlgorithm != obj._deadReckoningAlgorithm) - { - ivarsEqual = false; - } - - if (obj._otherParameters.Length != 15) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < 15; idx++) - { - if (this._otherParameters[idx] != obj._otherParameters[idx]) - { - ivarsEqual = false; - } - } - } - - if (!this._entityLinearAcceleration.Equals(obj._entityLinearAcceleration)) - { - ivarsEqual = false; - } - - if (!this._entityAngularVelocity.Equals(obj._entityAngularVelocity)) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._deadReckoningAlgorithm.GetHashCode(); - - for (int idx = 0; idx < 15; idx++) - { - result = GenerateHash(result) ^ this._otherParameters[idx].GetHashCode(); - } - - result = GenerateHash(result) ^ this._entityLinearAcceleration.GetHashCode(); - result = GenerateHash(result) ^ this._entityAngularVelocity.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// represents values used in dead reckoning algorithms + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(Vector3Float))] + public partial class DeadReckoningParameter + { + /// + /// enumeration of what dead reckoning algorighm to use + /// + private byte _deadReckoningAlgorithm; + + /// + /// other parameters to use in the dead reckoning algorithm + /// + private byte[] _otherParameters = new byte[15]; + + /// + /// Linear acceleration of the entity + /// + private Vector3Float _entityLinearAcceleration = new Vector3Float(); + + /// + /// angular velocity of the entity + /// + private Vector3Float _entityAngularVelocity = new Vector3Float(); + + /// + /// Initializes a new instance of the class. + /// + public DeadReckoningParameter() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(DeadReckoningParameter left, DeadReckoningParameter right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(DeadReckoningParameter left, DeadReckoningParameter right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._deadReckoningAlgorithm + marshalSize += 15 * 1; // _otherParameters + marshalSize += this._entityLinearAcceleration.GetMarshalledSize(); // this._entityLinearAcceleration + marshalSize += this._entityAngularVelocity.GetMarshalledSize(); // this._entityAngularVelocity + return marshalSize; + } + + /// + /// Gets or sets the enumeration of what dead reckoning algorighm to use + /// + [XmlElement(Type = typeof(byte), ElementName = "deadReckoningAlgorithm")] + public byte DeadReckoningAlgorithm + { + get + { + return this._deadReckoningAlgorithm; + } + + set + { + this._deadReckoningAlgorithm = value; + } + } + + /// + /// Gets or sets the other parameters to use in the dead reckoning algorithm + /// + [XmlArray(ElementName = "otherParameters")] + public byte[] OtherParameters + { + get + { + return this._otherParameters; + } + + set + { + this._otherParameters = value; + } +} + + /// + /// Gets or sets the Linear acceleration of the entity + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "entityLinearAcceleration")] + public Vector3Float EntityLinearAcceleration + { + get + { + return this._entityLinearAcceleration; + } + + set + { + this._entityLinearAcceleration = value; + } + } + + /// + /// Gets or sets the angular velocity of the entity + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "entityAngularVelocity")] + public Vector3Float EntityAngularVelocity + { + get + { + return this._entityAngularVelocity; + } + + set + { + this._entityAngularVelocity = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._deadReckoningAlgorithm); + + for (int idx = 0; idx < this._otherParameters.Length; idx++) + { + dos.WriteByte(this._otherParameters[idx]); + } + + this._entityLinearAcceleration.Marshal(dos); + this._entityAngularVelocity.Marshal(dos); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._deadReckoningAlgorithm = dis.ReadUnsignedByte(); + + for (int idx = 0; idx < this._otherParameters.Length; idx++) + { + this._otherParameters[idx] = dis.ReadByte(); + } + + this._entityLinearAcceleration.Unmarshal(dis); + this._entityAngularVelocity.Unmarshal(dis); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._deadReckoningAlgorithm.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._otherParameters.Length; idx++) + { + sb.AppendLine("" + this._otherParameters[idx] + ""); + } + + sb.AppendLine(""); + this._entityLinearAcceleration.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._entityAngularVelocity.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as DeadReckoningParameter; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(DeadReckoningParameter obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._deadReckoningAlgorithm != obj._deadReckoningAlgorithm) + { + ivarsEqual = false; + } + + if (obj._otherParameters.Length != 15) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < 15; idx++) + { + if (this._otherParameters[idx] != obj._otherParameters[idx]) + { + ivarsEqual = false; + } + } + } + + if (!this._entityLinearAcceleration.Equals(obj._entityLinearAcceleration)) + { + ivarsEqual = false; + } + + if (!this._entityAngularVelocity.Equals(obj._entityAngularVelocity)) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._deadReckoningAlgorithm.GetHashCode(); + + for (int idx = 0; idx < 15; idx++) + { + result = GenerateHash(result) ^ this._otherParameters[idx].GetHashCode(); + } + + result = GenerateHash(result) ^ this._entityLinearAcceleration.GetHashCode(); + result = GenerateHash(result) ^ this._entityAngularVelocity.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/DesignatorPdu.cs b/Libs/CsharpDis6/Dis1995/Generated/DesignatorPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/DesignatorPdu.cs rename to Libs/CsharpDis6/Dis1995/Generated/DesignatorPdu.cs index 2de5816..2421885 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/DesignatorPdu.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/DesignatorPdu.cs @@ -1,669 +1,669 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.3.7.2. Handles designating operations - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(Vector3Float))] - [XmlInclude(typeof(Vector3Double))] - public partial class DesignatorPdu : DistributedEmissionsPdu, IEquatable - { - /// - /// ID of the entity designating - /// - private EntityID _designatingEntityID = new EntityID(); - - /// - /// This field shall specify a unique emitter database number assigned to differentiate between otherwise similar or identical emitter beams within an emitter system. - /// - private ushort _codeName; - - /// - /// ID of the entity being designated - /// - private EntityID _designatedEntityID = new EntityID(); - - /// - /// This field shall identify the designator code being used by the designating entity - /// - private ushort _designatorCode; - - /// - /// This field shall identify the designator output power in watts - /// - private float _designatorPower; - - /// - /// This field shall identify the designator wavelength in units of microns - /// - private float _designatorWavelength; - - /// - /// designtor spot wrt the designated entity - /// - private Vector3Float _designatorSpotWrtDesignated = new Vector3Float(); - - /// - /// designtor spot wrt the designated entity - /// - private Vector3Double _designatorSpotLocation = new Vector3Double(); - - /// - /// Dead reckoning algorithm - /// - private byte _deadReckoningAlgorithm; - - /// - /// padding - /// - private ushort _padding1; - - /// - /// padding - /// - private byte _padding2; - - /// - /// linear accelleration of entity - /// - private Vector3Float _entityLinearAcceleration = new Vector3Float(); - - /// - /// Initializes a new instance of the class. - /// - public DesignatorPdu() - { - PduType = (byte)24; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(DesignatorPdu left, DesignatorPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(DesignatorPdu left, DesignatorPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._designatingEntityID.GetMarshalledSize(); // this._designatingEntityID - marshalSize += 2; // this._codeName - marshalSize += this._designatedEntityID.GetMarshalledSize(); // this._designatedEntityID - marshalSize += 2; // this._designatorCode - marshalSize += 4; // this._designatorPower - marshalSize += 4; // this._designatorWavelength - marshalSize += this._designatorSpotWrtDesignated.GetMarshalledSize(); // this._designatorSpotWrtDesignated - marshalSize += this._designatorSpotLocation.GetMarshalledSize(); // this._designatorSpotLocation - marshalSize += 1; // this._deadReckoningAlgorithm - marshalSize += 2; // this._padding1 - marshalSize += 1; // this._padding2 - marshalSize += this._entityLinearAcceleration.GetMarshalledSize(); // this._entityLinearAcceleration - return marshalSize; - } - - /// - /// Gets or sets the ID of the entity designating - /// - [XmlElement(Type = typeof(EntityID), ElementName = "designatingEntityID")] - public EntityID DesignatingEntityID - { - get - { - return this._designatingEntityID; - } - - set - { - this._designatingEntityID = value; - } - } - - /// - /// Gets or sets the This field shall specify a unique emitter database number assigned to differentiate between otherwise similar or identical emitter beams within an emitter system. - /// - [XmlElement(Type = typeof(ushort), ElementName = "codeName")] - public ushort CodeName - { - get - { - return this._codeName; - } - - set - { - this._codeName = value; - } - } - - /// - /// Gets or sets the ID of the entity being designated - /// - [XmlElement(Type = typeof(EntityID), ElementName = "designatedEntityID")] - public EntityID DesignatedEntityID - { - get - { - return this._designatedEntityID; - } - - set - { - this._designatedEntityID = value; - } - } - - /// - /// Gets or sets the This field shall identify the designator code being used by the designating entity - /// - [XmlElement(Type = typeof(ushort), ElementName = "designatorCode")] - public ushort DesignatorCode - { - get - { - return this._designatorCode; - } - - set - { - this._designatorCode = value; - } - } - - /// - /// Gets or sets the This field shall identify the designator output power in watts - /// - [XmlElement(Type = typeof(float), ElementName = "designatorPower")] - public float DesignatorPower - { - get - { - return this._designatorPower; - } - - set - { - this._designatorPower = value; - } - } - - /// - /// Gets or sets the This field shall identify the designator wavelength in units of microns - /// - [XmlElement(Type = typeof(float), ElementName = "designatorWavelength")] - public float DesignatorWavelength - { - get - { - return this._designatorWavelength; - } - - set - { - this._designatorWavelength = value; - } - } - - /// - /// Gets or sets the designtor spot wrt the designated entity - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "designatorSpotWrtDesignated")] - public Vector3Float DesignatorSpotWrtDesignated - { - get - { - return this._designatorSpotWrtDesignated; - } - - set - { - this._designatorSpotWrtDesignated = value; - } - } - - /// - /// Gets or sets the designtor spot wrt the designated entity - /// - [XmlElement(Type = typeof(Vector3Double), ElementName = "designatorSpotLocation")] - public Vector3Double DesignatorSpotLocation - { - get - { - return this._designatorSpotLocation; - } - - set - { - this._designatorSpotLocation = value; - } - } - - /// - /// Gets or sets the Dead reckoning algorithm - /// - [XmlElement(Type = typeof(byte), ElementName = "deadReckoningAlgorithm")] - public byte DeadReckoningAlgorithm - { - get - { - return this._deadReckoningAlgorithm; - } - - set - { - this._deadReckoningAlgorithm = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(ushort), ElementName = "padding1")] - public ushort Padding1 - { - get - { - return this._padding1; - } - - set - { - this._padding1 = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "padding2")] - public byte Padding2 - { - get - { - return this._padding2; - } - - set - { - this._padding2 = value; - } - } - - /// - /// Gets or sets the linear accelleration of entity - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "entityLinearAcceleration")] - public Vector3Float EntityLinearAcceleration - { - get - { - return this._entityLinearAcceleration; - } - - set - { - this._entityLinearAcceleration = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._designatingEntityID.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._codeName); - this._designatedEntityID.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._designatorCode); - dos.WriteFloat((float)this._designatorPower); - dos.WriteFloat((float)this._designatorWavelength); - this._designatorSpotWrtDesignated.Marshal(dos); - this._designatorSpotLocation.Marshal(dos); - dos.WriteByte((byte)this._deadReckoningAlgorithm); - dos.WriteUnsignedShort((ushort)this._padding1); - dos.WriteByte((byte)this._padding2); - this._entityLinearAcceleration.Marshal(dos); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._designatingEntityID.Unmarshal(dis); - this._codeName = dis.ReadUnsignedShort(); - this._designatedEntityID.Unmarshal(dis); - this._designatorCode = dis.ReadUnsignedShort(); - this._designatorPower = dis.ReadFloat(); - this._designatorWavelength = dis.ReadFloat(); - this._designatorSpotWrtDesignated.Unmarshal(dis); - this._designatorSpotLocation.Unmarshal(dis); - this._deadReckoningAlgorithm = dis.ReadByte(); - this._padding1 = dis.ReadUnsignedShort(); - this._padding2 = dis.ReadByte(); - this._entityLinearAcceleration.Unmarshal(dis); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._designatingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._codeName.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._designatedEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._designatorCode.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._designatorPower.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._designatorWavelength.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._designatorSpotWrtDesignated.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._designatorSpotLocation.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._deadReckoningAlgorithm.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._entityLinearAcceleration.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as DesignatorPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(DesignatorPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._designatingEntityID.Equals(obj._designatingEntityID)) - { - ivarsEqual = false; - } - - if (this._codeName != obj._codeName) - { - ivarsEqual = false; - } - - if (!this._designatedEntityID.Equals(obj._designatedEntityID)) - { - ivarsEqual = false; - } - - if (this._designatorCode != obj._designatorCode) - { - ivarsEqual = false; - } - - if (this._designatorPower != obj._designatorPower) - { - ivarsEqual = false; - } - - if (this._designatorWavelength != obj._designatorWavelength) - { - ivarsEqual = false; - } - - if (!this._designatorSpotWrtDesignated.Equals(obj._designatorSpotWrtDesignated)) - { - ivarsEqual = false; - } - - if (!this._designatorSpotLocation.Equals(obj._designatorSpotLocation)) - { - ivarsEqual = false; - } - - if (this._deadReckoningAlgorithm != obj._deadReckoningAlgorithm) - { - ivarsEqual = false; - } - - if (this._padding1 != obj._padding1) - { - ivarsEqual = false; - } - - if (this._padding2 != obj._padding2) - { - ivarsEqual = false; - } - - if (!this._entityLinearAcceleration.Equals(obj._entityLinearAcceleration)) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._designatingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._codeName.GetHashCode(); - result = GenerateHash(result) ^ this._designatedEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._designatorCode.GetHashCode(); - result = GenerateHash(result) ^ this._designatorPower.GetHashCode(); - result = GenerateHash(result) ^ this._designatorWavelength.GetHashCode(); - result = GenerateHash(result) ^ this._designatorSpotWrtDesignated.GetHashCode(); - result = GenerateHash(result) ^ this._designatorSpotLocation.GetHashCode(); - result = GenerateHash(result) ^ this._deadReckoningAlgorithm.GetHashCode(); - result = GenerateHash(result) ^ this._padding1.GetHashCode(); - result = GenerateHash(result) ^ this._padding2.GetHashCode(); - result = GenerateHash(result) ^ this._entityLinearAcceleration.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.3.7.2. Handles designating operations + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(Vector3Float))] + [XmlInclude(typeof(Vector3Double))] + public partial class DesignatorPdu : DistributedEmissionsPdu, IEquatable + { + /// + /// ID of the entity designating + /// + private EntityID _designatingEntityID = new EntityID(); + + /// + /// This field shall specify a unique emitter database number assigned to differentiate between otherwise similar or identical emitter beams within an emitter system. + /// + private ushort _codeName; + + /// + /// ID of the entity being designated + /// + private EntityID _designatedEntityID = new EntityID(); + + /// + /// This field shall identify the designator code being used by the designating entity + /// + private ushort _designatorCode; + + /// + /// This field shall identify the designator output power in watts + /// + private float _designatorPower; + + /// + /// This field shall identify the designator wavelength in units of microns + /// + private float _designatorWavelength; + + /// + /// designtor spot wrt the designated entity + /// + private Vector3Float _designatorSpotWrtDesignated = new Vector3Float(); + + /// + /// designtor spot wrt the designated entity + /// + private Vector3Double _designatorSpotLocation = new Vector3Double(); + + /// + /// Dead reckoning algorithm + /// + private byte _deadReckoningAlgorithm; + + /// + /// padding + /// + private ushort _padding1; + + /// + /// padding + /// + private byte _padding2; + + /// + /// linear accelleration of entity + /// + private Vector3Float _entityLinearAcceleration = new Vector3Float(); + + /// + /// Initializes a new instance of the class. + /// + public DesignatorPdu() + { + PduType = (byte)24; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(DesignatorPdu left, DesignatorPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(DesignatorPdu left, DesignatorPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._designatingEntityID.GetMarshalledSize(); // this._designatingEntityID + marshalSize += 2; // this._codeName + marshalSize += this._designatedEntityID.GetMarshalledSize(); // this._designatedEntityID + marshalSize += 2; // this._designatorCode + marshalSize += 4; // this._designatorPower + marshalSize += 4; // this._designatorWavelength + marshalSize += this._designatorSpotWrtDesignated.GetMarshalledSize(); // this._designatorSpotWrtDesignated + marshalSize += this._designatorSpotLocation.GetMarshalledSize(); // this._designatorSpotLocation + marshalSize += 1; // this._deadReckoningAlgorithm + marshalSize += 2; // this._padding1 + marshalSize += 1; // this._padding2 + marshalSize += this._entityLinearAcceleration.GetMarshalledSize(); // this._entityLinearAcceleration + return marshalSize; + } + + /// + /// Gets or sets the ID of the entity designating + /// + [XmlElement(Type = typeof(EntityID), ElementName = "designatingEntityID")] + public EntityID DesignatingEntityID + { + get + { + return this._designatingEntityID; + } + + set + { + this._designatingEntityID = value; + } + } + + /// + /// Gets or sets the This field shall specify a unique emitter database number assigned to differentiate between otherwise similar or identical emitter beams within an emitter system. + /// + [XmlElement(Type = typeof(ushort), ElementName = "codeName")] + public ushort CodeName + { + get + { + return this._codeName; + } + + set + { + this._codeName = value; + } + } + + /// + /// Gets or sets the ID of the entity being designated + /// + [XmlElement(Type = typeof(EntityID), ElementName = "designatedEntityID")] + public EntityID DesignatedEntityID + { + get + { + return this._designatedEntityID; + } + + set + { + this._designatedEntityID = value; + } + } + + /// + /// Gets or sets the This field shall identify the designator code being used by the designating entity + /// + [XmlElement(Type = typeof(ushort), ElementName = "designatorCode")] + public ushort DesignatorCode + { + get + { + return this._designatorCode; + } + + set + { + this._designatorCode = value; + } + } + + /// + /// Gets or sets the This field shall identify the designator output power in watts + /// + [XmlElement(Type = typeof(float), ElementName = "designatorPower")] + public float DesignatorPower + { + get + { + return this._designatorPower; + } + + set + { + this._designatorPower = value; + } + } + + /// + /// Gets or sets the This field shall identify the designator wavelength in units of microns + /// + [XmlElement(Type = typeof(float), ElementName = "designatorWavelength")] + public float DesignatorWavelength + { + get + { + return this._designatorWavelength; + } + + set + { + this._designatorWavelength = value; + } + } + + /// + /// Gets or sets the designtor spot wrt the designated entity + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "designatorSpotWrtDesignated")] + public Vector3Float DesignatorSpotWrtDesignated + { + get + { + return this._designatorSpotWrtDesignated; + } + + set + { + this._designatorSpotWrtDesignated = value; + } + } + + /// + /// Gets or sets the designtor spot wrt the designated entity + /// + [XmlElement(Type = typeof(Vector3Double), ElementName = "designatorSpotLocation")] + public Vector3Double DesignatorSpotLocation + { + get + { + return this._designatorSpotLocation; + } + + set + { + this._designatorSpotLocation = value; + } + } + + /// + /// Gets or sets the Dead reckoning algorithm + /// + [XmlElement(Type = typeof(byte), ElementName = "deadReckoningAlgorithm")] + public byte DeadReckoningAlgorithm + { + get + { + return this._deadReckoningAlgorithm; + } + + set + { + this._deadReckoningAlgorithm = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(ushort), ElementName = "padding1")] + public ushort Padding1 + { + get + { + return this._padding1; + } + + set + { + this._padding1 = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "padding2")] + public byte Padding2 + { + get + { + return this._padding2; + } + + set + { + this._padding2 = value; + } + } + + /// + /// Gets or sets the linear accelleration of entity + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "entityLinearAcceleration")] + public Vector3Float EntityLinearAcceleration + { + get + { + return this._entityLinearAcceleration; + } + + set + { + this._entityLinearAcceleration = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._designatingEntityID.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._codeName); + this._designatedEntityID.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._designatorCode); + dos.WriteFloat((float)this._designatorPower); + dos.WriteFloat((float)this._designatorWavelength); + this._designatorSpotWrtDesignated.Marshal(dos); + this._designatorSpotLocation.Marshal(dos); + dos.WriteByte((byte)this._deadReckoningAlgorithm); + dos.WriteUnsignedShort((ushort)this._padding1); + dos.WriteByte((byte)this._padding2); + this._entityLinearAcceleration.Marshal(dos); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._designatingEntityID.Unmarshal(dis); + this._codeName = dis.ReadUnsignedShort(); + this._designatedEntityID.Unmarshal(dis); + this._designatorCode = dis.ReadUnsignedShort(); + this._designatorPower = dis.ReadFloat(); + this._designatorWavelength = dis.ReadFloat(); + this._designatorSpotWrtDesignated.Unmarshal(dis); + this._designatorSpotLocation.Unmarshal(dis); + this._deadReckoningAlgorithm = dis.ReadByte(); + this._padding1 = dis.ReadUnsignedShort(); + this._padding2 = dis.ReadByte(); + this._entityLinearAcceleration.Unmarshal(dis); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._designatingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._codeName.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._designatedEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._designatorCode.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._designatorPower.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._designatorWavelength.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._designatorSpotWrtDesignated.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._designatorSpotLocation.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._deadReckoningAlgorithm.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._entityLinearAcceleration.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as DesignatorPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(DesignatorPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._designatingEntityID.Equals(obj._designatingEntityID)) + { + ivarsEqual = false; + } + + if (this._codeName != obj._codeName) + { + ivarsEqual = false; + } + + if (!this._designatedEntityID.Equals(obj._designatedEntityID)) + { + ivarsEqual = false; + } + + if (this._designatorCode != obj._designatorCode) + { + ivarsEqual = false; + } + + if (this._designatorPower != obj._designatorPower) + { + ivarsEqual = false; + } + + if (this._designatorWavelength != obj._designatorWavelength) + { + ivarsEqual = false; + } + + if (!this._designatorSpotWrtDesignated.Equals(obj._designatorSpotWrtDesignated)) + { + ivarsEqual = false; + } + + if (!this._designatorSpotLocation.Equals(obj._designatorSpotLocation)) + { + ivarsEqual = false; + } + + if (this._deadReckoningAlgorithm != obj._deadReckoningAlgorithm) + { + ivarsEqual = false; + } + + if (this._padding1 != obj._padding1) + { + ivarsEqual = false; + } + + if (this._padding2 != obj._padding2) + { + ivarsEqual = false; + } + + if (!this._entityLinearAcceleration.Equals(obj._entityLinearAcceleration)) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._designatingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._codeName.GetHashCode(); + result = GenerateHash(result) ^ this._designatedEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._designatorCode.GetHashCode(); + result = GenerateHash(result) ^ this._designatorPower.GetHashCode(); + result = GenerateHash(result) ^ this._designatorWavelength.GetHashCode(); + result = GenerateHash(result) ^ this._designatorSpotWrtDesignated.GetHashCode(); + result = GenerateHash(result) ^ this._designatorSpotLocation.GetHashCode(); + result = GenerateHash(result) ^ this._deadReckoningAlgorithm.GetHashCode(); + result = GenerateHash(result) ^ this._padding1.GetHashCode(); + result = GenerateHash(result) ^ this._padding2.GetHashCode(); + result = GenerateHash(result) ^ this._entityLinearAcceleration.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/DetonationPdu.cs b/Libs/CsharpDis6/Dis1995/Generated/DetonationPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/DetonationPdu.cs rename to Libs/CsharpDis6/Dis1995/Generated/DetonationPdu.cs index b427d28..6cd5d87 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/DetonationPdu.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/DetonationPdu.cs @@ -1,614 +1,614 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.3.4.2. Information about Stuff Exploding - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(EventID))] - [XmlInclude(typeof(Vector3Float))] - [XmlInclude(typeof(Vector3Double))] - [XmlInclude(typeof(BurstDescriptor))] - [XmlInclude(typeof(ArticulationParameter))] - public partial class DetonationPdu : Warfare, IEquatable - { - /// - /// ID of muntion that was fired - /// - private EntityID _munitionID = new EntityID(); - - /// - /// ID firing event - /// - private EventID _eventID = new EventID(); - - /// - /// ID firing event - /// - private Vector3Float _velocity = new Vector3Float(); - - /// - /// where the detonation is, in world coordinates - /// - private Vector3Double _locationInWorldCoordinates = new Vector3Double(); - - /// - /// Describes munition used - /// - private BurstDescriptor _burstDescriptor = new BurstDescriptor(); - - /// - /// result of the explosion - /// - private byte _detonationResult; - - /// - /// How many articulation parameters we have - /// - private byte _numberOfArticulationParameters; - - /// - /// padding - /// - private short _pad; - - private List _articulationParameters = new List(); - - /// - /// Initializes a new instance of the class. - /// - public DetonationPdu() - { - PduType = (byte)3; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(DetonationPdu left, DetonationPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(DetonationPdu left, DetonationPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._munitionID.GetMarshalledSize(); // this._munitionID - marshalSize += this._eventID.GetMarshalledSize(); // this._eventID - marshalSize += this._velocity.GetMarshalledSize(); // this._velocity - marshalSize += this._locationInWorldCoordinates.GetMarshalledSize(); // this._locationInWorldCoordinates - marshalSize += this._burstDescriptor.GetMarshalledSize(); // this._burstDescriptor - marshalSize += 1; // this._detonationResult - marshalSize += 1; // this._numberOfArticulationParameters - marshalSize += 2; // this._pad - for (int idx = 0; idx < this._articulationParameters.Count; idx++) - { - ArticulationParameter listElement = (ArticulationParameter)this._articulationParameters[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the ID of muntion that was fired - /// - [XmlElement(Type = typeof(EntityID), ElementName = "munitionID")] - public EntityID MunitionID - { - get - { - return this._munitionID; - } - - set - { - this._munitionID = value; - } - } - - /// - /// Gets or sets the ID firing event - /// - [XmlElement(Type = typeof(EventID), ElementName = "eventID")] - public EventID EventID - { - get - { - return this._eventID; - } - - set - { - this._eventID = value; - } - } - - /// - /// Gets or sets the ID firing event - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "velocity")] - public Vector3Float Velocity - { - get - { - return this._velocity; - } - - set - { - this._velocity = value; - } - } - - /// - /// Gets or sets the where the detonation is, in world coordinates - /// - [XmlElement(Type = typeof(Vector3Double), ElementName = "locationInWorldCoordinates")] - public Vector3Double LocationInWorldCoordinates - { - get - { - return this._locationInWorldCoordinates; - } - - set - { - this._locationInWorldCoordinates = value; - } - } - - /// - /// Gets or sets the Describes munition used - /// - [XmlElement(Type = typeof(BurstDescriptor), ElementName = "burstDescriptor")] - public BurstDescriptor BurstDescriptor - { - get - { - return this._burstDescriptor; - } - - set - { - this._burstDescriptor = value; - } - } - - /// - /// Gets or sets the result of the explosion - /// - [XmlElement(Type = typeof(byte), ElementName = "detonationResult")] - public byte DetonationResult - { - get - { - return this._detonationResult; - } - - set - { - this._detonationResult = value; - } - } - - /// - /// Gets or sets the How many articulation parameters we have - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfArticulationParameters method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfArticulationParameters")] - public byte NumberOfArticulationParameters - { - get - { - return this._numberOfArticulationParameters; - } - - set - { - this._numberOfArticulationParameters = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(short), ElementName = "pad")] - public short Pad - { - get - { - return this._pad; - } - - set - { - this._pad = value; - } - } - - /// - /// Gets the articulationParameters - /// - [XmlElement(ElementName = "articulationParametersList", Type = typeof(List))] - public List ArticulationParameters - { - get - { - return this._articulationParameters; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._munitionID.Marshal(dos); - this._eventID.Marshal(dos); - this._velocity.Marshal(dos); - this._locationInWorldCoordinates.Marshal(dos); - this._burstDescriptor.Marshal(dos); - dos.WriteUnsignedByte((byte)this._detonationResult); - dos.WriteUnsignedByte((byte)this._articulationParameters.Count); - dos.WriteShort((short)this._pad); - - for (int idx = 0; idx < this._articulationParameters.Count; idx++) - { - ArticulationParameter aArticulationParameter = (ArticulationParameter)this._articulationParameters[idx]; - aArticulationParameter.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._munitionID.Unmarshal(dis); - this._eventID.Unmarshal(dis); - this._velocity.Unmarshal(dis); - this._locationInWorldCoordinates.Unmarshal(dis); - this._burstDescriptor.Unmarshal(dis); - this._detonationResult = dis.ReadUnsignedByte(); - this._numberOfArticulationParameters = dis.ReadUnsignedByte(); - this._pad = dis.ReadShort(); - - for (int idx = 0; idx < this.NumberOfArticulationParameters; idx++) - { - ArticulationParameter anX = new ArticulationParameter(); - anX.Unmarshal(dis); - this._articulationParameters.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._munitionID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._eventID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._velocity.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._locationInWorldCoordinates.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._burstDescriptor.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._detonationResult.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._articulationParameters.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._articulationParameters.Count; idx++) - { - sb.AppendLine(""); - ArticulationParameter aArticulationParameter = (ArticulationParameter)this._articulationParameters[idx]; - aArticulationParameter.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as DetonationPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(DetonationPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._munitionID.Equals(obj._munitionID)) - { - ivarsEqual = false; - } - - if (!this._eventID.Equals(obj._eventID)) - { - ivarsEqual = false; - } - - if (!this._velocity.Equals(obj._velocity)) - { - ivarsEqual = false; - } - - if (!this._locationInWorldCoordinates.Equals(obj._locationInWorldCoordinates)) - { - ivarsEqual = false; - } - - if (!this._burstDescriptor.Equals(obj._burstDescriptor)) - { - ivarsEqual = false; - } - - if (this._detonationResult != obj._detonationResult) - { - ivarsEqual = false; - } - - if (this._numberOfArticulationParameters != obj._numberOfArticulationParameters) - { - ivarsEqual = false; - } - - if (this._pad != obj._pad) - { - ivarsEqual = false; - } - - if (this._articulationParameters.Count != obj._articulationParameters.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._articulationParameters.Count; idx++) - { - if (!this._articulationParameters[idx].Equals(obj._articulationParameters[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._munitionID.GetHashCode(); - result = GenerateHash(result) ^ this._eventID.GetHashCode(); - result = GenerateHash(result) ^ this._velocity.GetHashCode(); - result = GenerateHash(result) ^ this._locationInWorldCoordinates.GetHashCode(); - result = GenerateHash(result) ^ this._burstDescriptor.GetHashCode(); - result = GenerateHash(result) ^ this._detonationResult.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfArticulationParameters.GetHashCode(); - result = GenerateHash(result) ^ this._pad.GetHashCode(); - - if (this._articulationParameters.Count > 0) - { - for (int idx = 0; idx < this._articulationParameters.Count; idx++) - { - result = GenerateHash(result) ^ this._articulationParameters[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.3.4.2. Information about Stuff Exploding + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(EventID))] + [XmlInclude(typeof(Vector3Float))] + [XmlInclude(typeof(Vector3Double))] + [XmlInclude(typeof(BurstDescriptor))] + [XmlInclude(typeof(ArticulationParameter))] + public partial class DetonationPdu : Warfare, IEquatable + { + /// + /// ID of muntion that was fired + /// + private EntityID _munitionID = new EntityID(); + + /// + /// ID firing event + /// + private EventID _eventID = new EventID(); + + /// + /// ID firing event + /// + private Vector3Float _velocity = new Vector3Float(); + + /// + /// where the detonation is, in world coordinates + /// + private Vector3Double _locationInWorldCoordinates = new Vector3Double(); + + /// + /// Describes munition used + /// + private BurstDescriptor _burstDescriptor = new BurstDescriptor(); + + /// + /// result of the explosion + /// + private byte _detonationResult; + + /// + /// How many articulation parameters we have + /// + private byte _numberOfArticulationParameters; + + /// + /// padding + /// + private short _pad; + + private List _articulationParameters = new List(); + + /// + /// Initializes a new instance of the class. + /// + public DetonationPdu() + { + PduType = (byte)3; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(DetonationPdu left, DetonationPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(DetonationPdu left, DetonationPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._munitionID.GetMarshalledSize(); // this._munitionID + marshalSize += this._eventID.GetMarshalledSize(); // this._eventID + marshalSize += this._velocity.GetMarshalledSize(); // this._velocity + marshalSize += this._locationInWorldCoordinates.GetMarshalledSize(); // this._locationInWorldCoordinates + marshalSize += this._burstDescriptor.GetMarshalledSize(); // this._burstDescriptor + marshalSize += 1; // this._detonationResult + marshalSize += 1; // this._numberOfArticulationParameters + marshalSize += 2; // this._pad + for (int idx = 0; idx < this._articulationParameters.Count; idx++) + { + ArticulationParameter listElement = (ArticulationParameter)this._articulationParameters[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the ID of muntion that was fired + /// + [XmlElement(Type = typeof(EntityID), ElementName = "munitionID")] + public EntityID MunitionID + { + get + { + return this._munitionID; + } + + set + { + this._munitionID = value; + } + } + + /// + /// Gets or sets the ID firing event + /// + [XmlElement(Type = typeof(EventID), ElementName = "eventID")] + public EventID EventID + { + get + { + return this._eventID; + } + + set + { + this._eventID = value; + } + } + + /// + /// Gets or sets the ID firing event + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "velocity")] + public Vector3Float Velocity + { + get + { + return this._velocity; + } + + set + { + this._velocity = value; + } + } + + /// + /// Gets or sets the where the detonation is, in world coordinates + /// + [XmlElement(Type = typeof(Vector3Double), ElementName = "locationInWorldCoordinates")] + public Vector3Double LocationInWorldCoordinates + { + get + { + return this._locationInWorldCoordinates; + } + + set + { + this._locationInWorldCoordinates = value; + } + } + + /// + /// Gets or sets the Describes munition used + /// + [XmlElement(Type = typeof(BurstDescriptor), ElementName = "burstDescriptor")] + public BurstDescriptor BurstDescriptor + { + get + { + return this._burstDescriptor; + } + + set + { + this._burstDescriptor = value; + } + } + + /// + /// Gets or sets the result of the explosion + /// + [XmlElement(Type = typeof(byte), ElementName = "detonationResult")] + public byte DetonationResult + { + get + { + return this._detonationResult; + } + + set + { + this._detonationResult = value; + } + } + + /// + /// Gets or sets the How many articulation parameters we have + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfArticulationParameters method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfArticulationParameters")] + public byte NumberOfArticulationParameters + { + get + { + return this._numberOfArticulationParameters; + } + + set + { + this._numberOfArticulationParameters = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(short), ElementName = "pad")] + public short Pad + { + get + { + return this._pad; + } + + set + { + this._pad = value; + } + } + + /// + /// Gets the articulationParameters + /// + [XmlElement(ElementName = "articulationParametersList", Type = typeof(List))] + public List ArticulationParameters + { + get + { + return this._articulationParameters; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._munitionID.Marshal(dos); + this._eventID.Marshal(dos); + this._velocity.Marshal(dos); + this._locationInWorldCoordinates.Marshal(dos); + this._burstDescriptor.Marshal(dos); + dos.WriteUnsignedByte((byte)this._detonationResult); + dos.WriteUnsignedByte((byte)this._articulationParameters.Count); + dos.WriteShort((short)this._pad); + + for (int idx = 0; idx < this._articulationParameters.Count; idx++) + { + ArticulationParameter aArticulationParameter = (ArticulationParameter)this._articulationParameters[idx]; + aArticulationParameter.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._munitionID.Unmarshal(dis); + this._eventID.Unmarshal(dis); + this._velocity.Unmarshal(dis); + this._locationInWorldCoordinates.Unmarshal(dis); + this._burstDescriptor.Unmarshal(dis); + this._detonationResult = dis.ReadUnsignedByte(); + this._numberOfArticulationParameters = dis.ReadUnsignedByte(); + this._pad = dis.ReadShort(); + + for (int idx = 0; idx < this.NumberOfArticulationParameters; idx++) + { + ArticulationParameter anX = new ArticulationParameter(); + anX.Unmarshal(dis); + this._articulationParameters.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._munitionID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._eventID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._velocity.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._locationInWorldCoordinates.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._burstDescriptor.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._detonationResult.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._articulationParameters.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._articulationParameters.Count; idx++) + { + sb.AppendLine(""); + ArticulationParameter aArticulationParameter = (ArticulationParameter)this._articulationParameters[idx]; + aArticulationParameter.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as DetonationPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(DetonationPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._munitionID.Equals(obj._munitionID)) + { + ivarsEqual = false; + } + + if (!this._eventID.Equals(obj._eventID)) + { + ivarsEqual = false; + } + + if (!this._velocity.Equals(obj._velocity)) + { + ivarsEqual = false; + } + + if (!this._locationInWorldCoordinates.Equals(obj._locationInWorldCoordinates)) + { + ivarsEqual = false; + } + + if (!this._burstDescriptor.Equals(obj._burstDescriptor)) + { + ivarsEqual = false; + } + + if (this._detonationResult != obj._detonationResult) + { + ivarsEqual = false; + } + + if (this._numberOfArticulationParameters != obj._numberOfArticulationParameters) + { + ivarsEqual = false; + } + + if (this._pad != obj._pad) + { + ivarsEqual = false; + } + + if (this._articulationParameters.Count != obj._articulationParameters.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._articulationParameters.Count; idx++) + { + if (!this._articulationParameters[idx].Equals(obj._articulationParameters[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._munitionID.GetHashCode(); + result = GenerateHash(result) ^ this._eventID.GetHashCode(); + result = GenerateHash(result) ^ this._velocity.GetHashCode(); + result = GenerateHash(result) ^ this._locationInWorldCoordinates.GetHashCode(); + result = GenerateHash(result) ^ this._burstDescriptor.GetHashCode(); + result = GenerateHash(result) ^ this._detonationResult.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfArticulationParameters.GetHashCode(); + result = GenerateHash(result) ^ this._pad.GetHashCode(); + + if (this._articulationParameters.Count > 0) + { + for (int idx = 0; idx < this._articulationParameters.Count; idx++) + { + result = GenerateHash(result) ^ this._articulationParameters[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/DistributedEmissionsPdu.cs b/Libs/CsharpDis6/Dis1995/Generated/DistributedEmissionsPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/DistributedEmissionsPdu.cs rename to Libs/CsharpDis6/Dis1995/Generated/DistributedEmissionsPdu.cs index 6e20847..6bf9644 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/DistributedEmissionsPdu.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/DistributedEmissionsPdu.cs @@ -1,271 +1,271 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.3.7. Electronic Emmisions - /// - [Serializable] - [XmlRoot] - public partial class DistributedEmissionsPdu : Pdu, IEquatable - { - /// - /// Initializes a new instance of the class. - /// - public DistributedEmissionsPdu() - { - ProtocolFamily = (byte)6; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(DistributedEmissionsPdu left, DistributedEmissionsPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(DistributedEmissionsPdu left, DistributedEmissionsPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - return marshalSize; - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public virtual void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as DistributedEmissionsPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(DistributedEmissionsPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.3.7. Electronic Emmisions + /// + [Serializable] + [XmlRoot] + public partial class DistributedEmissionsPdu : Pdu, IEquatable + { + /// + /// Initializes a new instance of the class. + /// + public DistributedEmissionsPdu() + { + ProtocolFamily = (byte)6; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(DistributedEmissionsPdu left, DistributedEmissionsPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(DistributedEmissionsPdu left, DistributedEmissionsPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + return marshalSize; + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public virtual void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as DistributedEmissionsPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(DistributedEmissionsPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/EightByteChunk.cs b/Libs/CsharpDis6/Dis1995/Generated/EightByteChunk.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/EightByteChunk.cs rename to Libs/CsharpDis6/Dis1995/Generated/EightByteChunk.cs index 73f015d..74b03bc 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/EightByteChunk.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/EightByteChunk.cs @@ -1,324 +1,324 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// 64 bit piece of data - /// - [Serializable] - [XmlRoot] - public partial class EightByteChunk - { - /// - /// Eight bytes of arbitrary data - /// - private byte[] _otherParameters = new byte[8]; - - /// - /// Initializes a new instance of the class. - /// - public EightByteChunk() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(EightByteChunk left, EightByteChunk right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(EightByteChunk left, EightByteChunk right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 8 * 1; // _otherParameters - return marshalSize; - } - - /// - /// Gets or sets the Eight bytes of arbitrary data - /// - [XmlArray(ElementName = "otherParameters")] - public byte[] OtherParameters - { - get - { - return this._otherParameters; - } - - set - { - this._otherParameters = value; - } -} - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - for (int idx = 0; idx < this._otherParameters.Length; idx++) - { - dos.WriteByte(this._otherParameters[idx]); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - for (int idx = 0; idx < this._otherParameters.Length; idx++) - { - this._otherParameters[idx] = dis.ReadByte(); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - for (int idx = 0; idx < this._otherParameters.Length; idx++) - { - sb.AppendLine("" + this._otherParameters[idx] + ""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as EightByteChunk; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(EightByteChunk obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (obj._otherParameters.Length != 8) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < 8; idx++) - { - if (this._otherParameters[idx] != obj._otherParameters[idx]) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - for (int idx = 0; idx < 8; idx++) - { - result = GenerateHash(result) ^ this._otherParameters[idx].GetHashCode(); - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// 64 bit piece of data + /// + [Serializable] + [XmlRoot] + public partial class EightByteChunk + { + /// + /// Eight bytes of arbitrary data + /// + private byte[] _otherParameters = new byte[8]; + + /// + /// Initializes a new instance of the class. + /// + public EightByteChunk() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(EightByteChunk left, EightByteChunk right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(EightByteChunk left, EightByteChunk right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 8 * 1; // _otherParameters + return marshalSize; + } + + /// + /// Gets or sets the Eight bytes of arbitrary data + /// + [XmlArray(ElementName = "otherParameters")] + public byte[] OtherParameters + { + get + { + return this._otherParameters; + } + + set + { + this._otherParameters = value; + } +} + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + for (int idx = 0; idx < this._otherParameters.Length; idx++) + { + dos.WriteByte(this._otherParameters[idx]); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + for (int idx = 0; idx < this._otherParameters.Length; idx++) + { + this._otherParameters[idx] = dis.ReadByte(); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + for (int idx = 0; idx < this._otherParameters.Length; idx++) + { + sb.AppendLine("" + this._otherParameters[idx] + ""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as EightByteChunk; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(EightByteChunk obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (obj._otherParameters.Length != 8) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < 8; idx++) + { + if (this._otherParameters[idx] != obj._otherParameters[idx]) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + for (int idx = 0; idx < 8; idx++) + { + result = GenerateHash(result) ^ this._otherParameters[idx].GetHashCode(); + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/ElectronicEmmisionsPdu.cs b/Libs/CsharpDis6/Dis1995/Generated/ElectronicEmmisionsPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/ElectronicEmmisionsPdu.cs rename to Libs/CsharpDis6/Dis1995/Generated/ElectronicEmmisionsPdu.cs index f9fdf10..8a9b2a6 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/ElectronicEmmisionsPdu.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/ElectronicEmmisionsPdu.cs @@ -1,735 +1,735 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.3.7.1. Information about active electronic warfare (EW) emissions and active EW countermeasures shall be com- municated using an Electromagnetic Emission PDU. - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(EventID))] - [XmlInclude(typeof(EmitterSystem))] - [XmlInclude(typeof(Vector3Float))] - [XmlInclude(typeof(FundamentalParameterData))] - public partial class ElectronicEmmisionsPdu : DistributedEmissionsPdu, IEquatable - { - /// - /// ID of the entity emitting - /// - private EntityID _emittingEntityID = new EntityID(); - - /// - /// ID of event - /// - private EventID _eventID = new EventID(); - - /// - /// This field shall be used to indicate if the data in the PDU represents a state update or just data that has changed since issuance of the last Electromagnetic Emission PDU [rela- tive to the identified entity and emission system(s)]. - /// - private byte _stateUpdateIndicator; - - /// - /// This field shall specify the number of emission systems being described in the current PDU. - /// - private byte _numberOfSystems; - - /// - /// padding. - /// - private ushort _emissionsPadding; - - /// - /// This field shall specify the length of this emitter systems data (including beam data and its track/jam information) in 32-bit words. The length shall include the System Data Length field. - /// - private byte _systemDataLength; - - /// - /// This field shall specify the number of beams being described in the current PDU for the system being described. - /// - private byte _numberOfBeams; - - /// - /// padding. - /// - private ushort _emissionsPadding2; - - /// - /// This field shall specify information about a particular emitter system - /// - private EmitterSystem _emitterSystem = new EmitterSystem(); - - /// - /// Location with respect to the entity - /// - private Vector3Float _location = new Vector3Float(); - - /// - /// This field shall specify the length of this beams data (including track/ jam information) in 32-bit words. The length shall include the Beam Data Length field - /// - private byte _beamDataLength; - - /// - /// This field shall specify a unique emitter database number assigned to differentiate between otherwise similar or identical emitter beams within an emitter system. - /// - private byte _beamIdNumber; - - /// - /// This field shall specify a Beam Parameter Index number that shall be used by receiving entities in conjunction with the Emitter Name field to provide a pointer to the stored database parameters required to regenerate the beam. - /// - private ushort _beamParameterIndex; - - /// - /// Fundamental parameter data such as frequency range, beam sweep, etc. - /// - private FundamentalParameterData _fundamentalParameterData = new FundamentalParameterData(); - - /// - /// Initializes a new instance of the class. - /// - public ElectronicEmmisionsPdu() - { - PduType = (byte)23; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ElectronicEmmisionsPdu left, ElectronicEmmisionsPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ElectronicEmmisionsPdu left, ElectronicEmmisionsPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._emittingEntityID.GetMarshalledSize(); // this._emittingEntityID - marshalSize += this._eventID.GetMarshalledSize(); // this._eventID - marshalSize += 1; // this._stateUpdateIndicator - marshalSize += 1; // this._numberOfSystems - marshalSize += 2; // this._emissionsPadding - marshalSize += 1; // this._systemDataLength - marshalSize += 1; // this._numberOfBeams - marshalSize += 2; // this._emissionsPadding2 - marshalSize += this._emitterSystem.GetMarshalledSize(); // this._emitterSystem - marshalSize += this._location.GetMarshalledSize(); // this._location - marshalSize += 1; // this._beamDataLength - marshalSize += 1; // this._beamIdNumber - marshalSize += 2; // this._beamParameterIndex - marshalSize += this._fundamentalParameterData.GetMarshalledSize(); // this._fundamentalParameterData - return marshalSize; - } - - /// - /// Gets or sets the ID of the entity emitting - /// - [XmlElement(Type = typeof(EntityID), ElementName = "emittingEntityID")] - public EntityID EmittingEntityID - { - get - { - return this._emittingEntityID; - } - - set - { - this._emittingEntityID = value; - } - } - - /// - /// Gets or sets the ID of event - /// - [XmlElement(Type = typeof(EventID), ElementName = "eventID")] - public EventID EventID - { - get - { - return this._eventID; - } - - set - { - this._eventID = value; - } - } - - /// - /// Gets or sets the This field shall be used to indicate if the data in the PDU represents a state update or just data that has changed since issuance of the last Electromagnetic Emission PDU [rela- tive to the identified entity and emission system(s)]. - /// - [XmlElement(Type = typeof(byte), ElementName = "stateUpdateIndicator")] - public byte StateUpdateIndicator - { - get - { - return this._stateUpdateIndicator; - } - - set - { - this._stateUpdateIndicator = value; - } - } - - /// - /// Gets or sets the This field shall specify the number of emission systems being described in the current PDU. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfSystems")] - public byte NumberOfSystems - { - get - { - return this._numberOfSystems; - } - - set - { - this._numberOfSystems = value; - } - } - - /// - /// Gets or sets the padding. - /// - [XmlElement(Type = typeof(ushort), ElementName = "emissionsPadding")] - public ushort EmissionsPadding - { - get - { - return this._emissionsPadding; - } - - set - { - this._emissionsPadding = value; - } - } - - /// - /// Gets or sets the This field shall specify the length of this emitter systems data (including beam data and its track/jam information) in 32-bit words. The length shall include the System Data Length field. - /// - [XmlElement(Type = typeof(byte), ElementName = "systemDataLength")] - public byte SystemDataLength - { - get - { - return this._systemDataLength; - } - - set - { - this._systemDataLength = value; - } - } - - /// - /// Gets or sets the This field shall specify the number of beams being described in the current PDU for the system being described. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfBeams")] - public byte NumberOfBeams - { - get - { - return this._numberOfBeams; - } - - set - { - this._numberOfBeams = value; - } - } - - /// - /// Gets or sets the padding. - /// - [XmlElement(Type = typeof(ushort), ElementName = "emissionsPadding2")] - public ushort EmissionsPadding2 - { - get - { - return this._emissionsPadding2; - } - - set - { - this._emissionsPadding2 = value; - } - } - - /// - /// Gets or sets the This field shall specify information about a particular emitter system - /// - [XmlElement(Type = typeof(EmitterSystem), ElementName = "emitterSystem")] - public EmitterSystem EmitterSystem - { - get - { - return this._emitterSystem; - } - - set - { - this._emitterSystem = value; - } - } - - /// - /// Gets or sets the Location with respect to the entity - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "location")] - public Vector3Float Location - { - get - { - return this._location; - } - - set - { - this._location = value; - } - } - - /// - /// Gets or sets the This field shall specify the length of this beams data (including track/ jam information) in 32-bit words. The length shall include the Beam Data Length field - /// - [XmlElement(Type = typeof(byte), ElementName = "beamDataLength")] - public byte BeamDataLength - { - get - { - return this._beamDataLength; - } - - set - { - this._beamDataLength = value; - } - } - - /// - /// Gets or sets the This field shall specify a unique emitter database number assigned to differentiate between otherwise similar or identical emitter beams within an emitter system. - /// - [XmlElement(Type = typeof(byte), ElementName = "beamIdNumber")] - public byte BeamIdNumber - { - get - { - return this._beamIdNumber; - } - - set - { - this._beamIdNumber = value; - } - } - - /// - /// Gets or sets the This field shall specify a Beam Parameter Index number that shall be used by receiving entities in conjunction with the Emitter Name field to provide a pointer to the stored database parameters required to regenerate the beam. - /// - [XmlElement(Type = typeof(ushort), ElementName = "beamParameterIndex")] - public ushort BeamParameterIndex - { - get - { - return this._beamParameterIndex; - } - - set - { - this._beamParameterIndex = value; - } - } - - /// - /// Gets or sets the Fundamental parameter data such as frequency range, beam sweep, etc. - /// - [XmlElement(Type = typeof(FundamentalParameterData), ElementName = "fundamentalParameterData")] - public FundamentalParameterData FundamentalParameterData - { - get - { - return this._fundamentalParameterData; - } - - set - { - this._fundamentalParameterData = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._emittingEntityID.Marshal(dos); - this._eventID.Marshal(dos); - dos.WriteUnsignedByte((byte)this._stateUpdateIndicator); - dos.WriteUnsignedByte((byte)this._numberOfSystems); - dos.WriteUnsignedShort((ushort)this._emissionsPadding); - dos.WriteUnsignedByte((byte)this._systemDataLength); - dos.WriteUnsignedByte((byte)this._numberOfBeams); - dos.WriteUnsignedShort((ushort)this._emissionsPadding2); - this._emitterSystem.Marshal(dos); - this._location.Marshal(dos); - dos.WriteUnsignedByte((byte)this._beamDataLength); - dos.WriteUnsignedByte((byte)this._beamIdNumber); - dos.WriteUnsignedShort((ushort)this._beamParameterIndex); - this._fundamentalParameterData.Marshal(dos); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._emittingEntityID.Unmarshal(dis); - this._eventID.Unmarshal(dis); - this._stateUpdateIndicator = dis.ReadUnsignedByte(); - this._numberOfSystems = dis.ReadUnsignedByte(); - this._emissionsPadding = dis.ReadUnsignedShort(); - this._systemDataLength = dis.ReadUnsignedByte(); - this._numberOfBeams = dis.ReadUnsignedByte(); - this._emissionsPadding2 = dis.ReadUnsignedShort(); - this._emitterSystem.Unmarshal(dis); - this._location.Unmarshal(dis); - this._beamDataLength = dis.ReadUnsignedByte(); - this._beamIdNumber = dis.ReadUnsignedByte(); - this._beamParameterIndex = dis.ReadUnsignedShort(); - this._fundamentalParameterData.Unmarshal(dis); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._emittingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._eventID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._stateUpdateIndicator.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._numberOfSystems.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._emissionsPadding.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._systemDataLength.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._numberOfBeams.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._emissionsPadding2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._emitterSystem.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._location.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._beamDataLength.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._beamIdNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._beamParameterIndex.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._fundamentalParameterData.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ElectronicEmmisionsPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ElectronicEmmisionsPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._emittingEntityID.Equals(obj._emittingEntityID)) - { - ivarsEqual = false; - } - - if (!this._eventID.Equals(obj._eventID)) - { - ivarsEqual = false; - } - - if (this._stateUpdateIndicator != obj._stateUpdateIndicator) - { - ivarsEqual = false; - } - - if (this._numberOfSystems != obj._numberOfSystems) - { - ivarsEqual = false; - } - - if (this._emissionsPadding != obj._emissionsPadding) - { - ivarsEqual = false; - } - - if (this._systemDataLength != obj._systemDataLength) - { - ivarsEqual = false; - } - - if (this._numberOfBeams != obj._numberOfBeams) - { - ivarsEqual = false; - } - - if (this._emissionsPadding2 != obj._emissionsPadding2) - { - ivarsEqual = false; - } - - if (!this._emitterSystem.Equals(obj._emitterSystem)) - { - ivarsEqual = false; - } - - if (!this._location.Equals(obj._location)) - { - ivarsEqual = false; - } - - if (this._beamDataLength != obj._beamDataLength) - { - ivarsEqual = false; - } - - if (this._beamIdNumber != obj._beamIdNumber) - { - ivarsEqual = false; - } - - if (this._beamParameterIndex != obj._beamParameterIndex) - { - ivarsEqual = false; - } - - if (!this._fundamentalParameterData.Equals(obj._fundamentalParameterData)) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._emittingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._eventID.GetHashCode(); - result = GenerateHash(result) ^ this._stateUpdateIndicator.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfSystems.GetHashCode(); - result = GenerateHash(result) ^ this._emissionsPadding.GetHashCode(); - result = GenerateHash(result) ^ this._systemDataLength.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfBeams.GetHashCode(); - result = GenerateHash(result) ^ this._emissionsPadding2.GetHashCode(); - result = GenerateHash(result) ^ this._emitterSystem.GetHashCode(); - result = GenerateHash(result) ^ this._location.GetHashCode(); - result = GenerateHash(result) ^ this._beamDataLength.GetHashCode(); - result = GenerateHash(result) ^ this._beamIdNumber.GetHashCode(); - result = GenerateHash(result) ^ this._beamParameterIndex.GetHashCode(); - result = GenerateHash(result) ^ this._fundamentalParameterData.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.3.7.1. Information about active electronic warfare (EW) emissions and active EW countermeasures shall be com- municated using an Electromagnetic Emission PDU. + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(EventID))] + [XmlInclude(typeof(EmitterSystem))] + [XmlInclude(typeof(Vector3Float))] + [XmlInclude(typeof(FundamentalParameterData))] + public partial class ElectronicEmmisionsPdu : DistributedEmissionsPdu, IEquatable + { + /// + /// ID of the entity emitting + /// + private EntityID _emittingEntityID = new EntityID(); + + /// + /// ID of event + /// + private EventID _eventID = new EventID(); + + /// + /// This field shall be used to indicate if the data in the PDU represents a state update or just data that has changed since issuance of the last Electromagnetic Emission PDU [rela- tive to the identified entity and emission system(s)]. + /// + private byte _stateUpdateIndicator; + + /// + /// This field shall specify the number of emission systems being described in the current PDU. + /// + private byte _numberOfSystems; + + /// + /// padding. + /// + private ushort _emissionsPadding; + + /// + /// This field shall specify the length of this emitter systems data (including beam data and its track/jam information) in 32-bit words. The length shall include the System Data Length field. + /// + private byte _systemDataLength; + + /// + /// This field shall specify the number of beams being described in the current PDU for the system being described. + /// + private byte _numberOfBeams; + + /// + /// padding. + /// + private ushort _emissionsPadding2; + + /// + /// This field shall specify information about a particular emitter system + /// + private EmitterSystem _emitterSystem = new EmitterSystem(); + + /// + /// Location with respect to the entity + /// + private Vector3Float _location = new Vector3Float(); + + /// + /// This field shall specify the length of this beams data (including track/ jam information) in 32-bit words. The length shall include the Beam Data Length field + /// + private byte _beamDataLength; + + /// + /// This field shall specify a unique emitter database number assigned to differentiate between otherwise similar or identical emitter beams within an emitter system. + /// + private byte _beamIdNumber; + + /// + /// This field shall specify a Beam Parameter Index number that shall be used by receiving entities in conjunction with the Emitter Name field to provide a pointer to the stored database parameters required to regenerate the beam. + /// + private ushort _beamParameterIndex; + + /// + /// Fundamental parameter data such as frequency range, beam sweep, etc. + /// + private FundamentalParameterData _fundamentalParameterData = new FundamentalParameterData(); + + /// + /// Initializes a new instance of the class. + /// + public ElectronicEmmisionsPdu() + { + PduType = (byte)23; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ElectronicEmmisionsPdu left, ElectronicEmmisionsPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ElectronicEmmisionsPdu left, ElectronicEmmisionsPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._emittingEntityID.GetMarshalledSize(); // this._emittingEntityID + marshalSize += this._eventID.GetMarshalledSize(); // this._eventID + marshalSize += 1; // this._stateUpdateIndicator + marshalSize += 1; // this._numberOfSystems + marshalSize += 2; // this._emissionsPadding + marshalSize += 1; // this._systemDataLength + marshalSize += 1; // this._numberOfBeams + marshalSize += 2; // this._emissionsPadding2 + marshalSize += this._emitterSystem.GetMarshalledSize(); // this._emitterSystem + marshalSize += this._location.GetMarshalledSize(); // this._location + marshalSize += 1; // this._beamDataLength + marshalSize += 1; // this._beamIdNumber + marshalSize += 2; // this._beamParameterIndex + marshalSize += this._fundamentalParameterData.GetMarshalledSize(); // this._fundamentalParameterData + return marshalSize; + } + + /// + /// Gets or sets the ID of the entity emitting + /// + [XmlElement(Type = typeof(EntityID), ElementName = "emittingEntityID")] + public EntityID EmittingEntityID + { + get + { + return this._emittingEntityID; + } + + set + { + this._emittingEntityID = value; + } + } + + /// + /// Gets or sets the ID of event + /// + [XmlElement(Type = typeof(EventID), ElementName = "eventID")] + public EventID EventID + { + get + { + return this._eventID; + } + + set + { + this._eventID = value; + } + } + + /// + /// Gets or sets the This field shall be used to indicate if the data in the PDU represents a state update or just data that has changed since issuance of the last Electromagnetic Emission PDU [rela- tive to the identified entity and emission system(s)]. + /// + [XmlElement(Type = typeof(byte), ElementName = "stateUpdateIndicator")] + public byte StateUpdateIndicator + { + get + { + return this._stateUpdateIndicator; + } + + set + { + this._stateUpdateIndicator = value; + } + } + + /// + /// Gets or sets the This field shall specify the number of emission systems being described in the current PDU. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfSystems")] + public byte NumberOfSystems + { + get + { + return this._numberOfSystems; + } + + set + { + this._numberOfSystems = value; + } + } + + /// + /// Gets or sets the padding. + /// + [XmlElement(Type = typeof(ushort), ElementName = "emissionsPadding")] + public ushort EmissionsPadding + { + get + { + return this._emissionsPadding; + } + + set + { + this._emissionsPadding = value; + } + } + + /// + /// Gets or sets the This field shall specify the length of this emitter systems data (including beam data and its track/jam information) in 32-bit words. The length shall include the System Data Length field. + /// + [XmlElement(Type = typeof(byte), ElementName = "systemDataLength")] + public byte SystemDataLength + { + get + { + return this._systemDataLength; + } + + set + { + this._systemDataLength = value; + } + } + + /// + /// Gets or sets the This field shall specify the number of beams being described in the current PDU for the system being described. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfBeams")] + public byte NumberOfBeams + { + get + { + return this._numberOfBeams; + } + + set + { + this._numberOfBeams = value; + } + } + + /// + /// Gets or sets the padding. + /// + [XmlElement(Type = typeof(ushort), ElementName = "emissionsPadding2")] + public ushort EmissionsPadding2 + { + get + { + return this._emissionsPadding2; + } + + set + { + this._emissionsPadding2 = value; + } + } + + /// + /// Gets or sets the This field shall specify information about a particular emitter system + /// + [XmlElement(Type = typeof(EmitterSystem), ElementName = "emitterSystem")] + public EmitterSystem EmitterSystem + { + get + { + return this._emitterSystem; + } + + set + { + this._emitterSystem = value; + } + } + + /// + /// Gets or sets the Location with respect to the entity + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "location")] + public Vector3Float Location + { + get + { + return this._location; + } + + set + { + this._location = value; + } + } + + /// + /// Gets or sets the This field shall specify the length of this beams data (including track/ jam information) in 32-bit words. The length shall include the Beam Data Length field + /// + [XmlElement(Type = typeof(byte), ElementName = "beamDataLength")] + public byte BeamDataLength + { + get + { + return this._beamDataLength; + } + + set + { + this._beamDataLength = value; + } + } + + /// + /// Gets or sets the This field shall specify a unique emitter database number assigned to differentiate between otherwise similar or identical emitter beams within an emitter system. + /// + [XmlElement(Type = typeof(byte), ElementName = "beamIdNumber")] + public byte BeamIdNumber + { + get + { + return this._beamIdNumber; + } + + set + { + this._beamIdNumber = value; + } + } + + /// + /// Gets or sets the This field shall specify a Beam Parameter Index number that shall be used by receiving entities in conjunction with the Emitter Name field to provide a pointer to the stored database parameters required to regenerate the beam. + /// + [XmlElement(Type = typeof(ushort), ElementName = "beamParameterIndex")] + public ushort BeamParameterIndex + { + get + { + return this._beamParameterIndex; + } + + set + { + this._beamParameterIndex = value; + } + } + + /// + /// Gets or sets the Fundamental parameter data such as frequency range, beam sweep, etc. + /// + [XmlElement(Type = typeof(FundamentalParameterData), ElementName = "fundamentalParameterData")] + public FundamentalParameterData FundamentalParameterData + { + get + { + return this._fundamentalParameterData; + } + + set + { + this._fundamentalParameterData = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._emittingEntityID.Marshal(dos); + this._eventID.Marshal(dos); + dos.WriteUnsignedByte((byte)this._stateUpdateIndicator); + dos.WriteUnsignedByte((byte)this._numberOfSystems); + dos.WriteUnsignedShort((ushort)this._emissionsPadding); + dos.WriteUnsignedByte((byte)this._systemDataLength); + dos.WriteUnsignedByte((byte)this._numberOfBeams); + dos.WriteUnsignedShort((ushort)this._emissionsPadding2); + this._emitterSystem.Marshal(dos); + this._location.Marshal(dos); + dos.WriteUnsignedByte((byte)this._beamDataLength); + dos.WriteUnsignedByte((byte)this._beamIdNumber); + dos.WriteUnsignedShort((ushort)this._beamParameterIndex); + this._fundamentalParameterData.Marshal(dos); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._emittingEntityID.Unmarshal(dis); + this._eventID.Unmarshal(dis); + this._stateUpdateIndicator = dis.ReadUnsignedByte(); + this._numberOfSystems = dis.ReadUnsignedByte(); + this._emissionsPadding = dis.ReadUnsignedShort(); + this._systemDataLength = dis.ReadUnsignedByte(); + this._numberOfBeams = dis.ReadUnsignedByte(); + this._emissionsPadding2 = dis.ReadUnsignedShort(); + this._emitterSystem.Unmarshal(dis); + this._location.Unmarshal(dis); + this._beamDataLength = dis.ReadUnsignedByte(); + this._beamIdNumber = dis.ReadUnsignedByte(); + this._beamParameterIndex = dis.ReadUnsignedShort(); + this._fundamentalParameterData.Unmarshal(dis); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._emittingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._eventID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._stateUpdateIndicator.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._numberOfSystems.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._emissionsPadding.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._systemDataLength.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._numberOfBeams.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._emissionsPadding2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._emitterSystem.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._location.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._beamDataLength.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._beamIdNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._beamParameterIndex.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._fundamentalParameterData.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ElectronicEmmisionsPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ElectronicEmmisionsPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._emittingEntityID.Equals(obj._emittingEntityID)) + { + ivarsEqual = false; + } + + if (!this._eventID.Equals(obj._eventID)) + { + ivarsEqual = false; + } + + if (this._stateUpdateIndicator != obj._stateUpdateIndicator) + { + ivarsEqual = false; + } + + if (this._numberOfSystems != obj._numberOfSystems) + { + ivarsEqual = false; + } + + if (this._emissionsPadding != obj._emissionsPadding) + { + ivarsEqual = false; + } + + if (this._systemDataLength != obj._systemDataLength) + { + ivarsEqual = false; + } + + if (this._numberOfBeams != obj._numberOfBeams) + { + ivarsEqual = false; + } + + if (this._emissionsPadding2 != obj._emissionsPadding2) + { + ivarsEqual = false; + } + + if (!this._emitterSystem.Equals(obj._emitterSystem)) + { + ivarsEqual = false; + } + + if (!this._location.Equals(obj._location)) + { + ivarsEqual = false; + } + + if (this._beamDataLength != obj._beamDataLength) + { + ivarsEqual = false; + } + + if (this._beamIdNumber != obj._beamIdNumber) + { + ivarsEqual = false; + } + + if (this._beamParameterIndex != obj._beamParameterIndex) + { + ivarsEqual = false; + } + + if (!this._fundamentalParameterData.Equals(obj._fundamentalParameterData)) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._emittingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._eventID.GetHashCode(); + result = GenerateHash(result) ^ this._stateUpdateIndicator.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfSystems.GetHashCode(); + result = GenerateHash(result) ^ this._emissionsPadding.GetHashCode(); + result = GenerateHash(result) ^ this._systemDataLength.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfBeams.GetHashCode(); + result = GenerateHash(result) ^ this._emissionsPadding2.GetHashCode(); + result = GenerateHash(result) ^ this._emitterSystem.GetHashCode(); + result = GenerateHash(result) ^ this._location.GetHashCode(); + result = GenerateHash(result) ^ this._beamDataLength.GetHashCode(); + result = GenerateHash(result) ^ this._beamIdNumber.GetHashCode(); + result = GenerateHash(result) ^ this._beamParameterIndex.GetHashCode(); + result = GenerateHash(result) ^ this._fundamentalParameterData.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/EmitterSystem.cs b/Libs/CsharpDis6/Dis1995/Generated/EmitterSystem.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/EmitterSystem.cs rename to Libs/CsharpDis6/Dis1995/Generated/EmitterSystem.cs index 10a96e4..8daf5f9 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/EmitterSystem.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/EmitterSystem.cs @@ -1,364 +1,364 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.2.11. This field shall specify information about a particular emitter system - /// - [Serializable] - [XmlRoot] - public partial class EmitterSystem - { - /// - /// Name of the emitter, 16 bit enumeration - /// - private ushort _emitterName; - - /// - /// function of the emitter, 8 bit enumeration - /// - private byte _function; - - /// - /// emitter ID, 8 bit enumeration - /// - private byte _emitterIdNumber; - - /// - /// Initializes a new instance of the class. - /// - public EmitterSystem() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(EmitterSystem left, EmitterSystem right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(EmitterSystem left, EmitterSystem right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 2; // this._emitterName - marshalSize += 1; // this._function - marshalSize += 1; // this._emitterIdNumber - return marshalSize; - } - - /// - /// Gets or sets the Name of the emitter, 16 bit enumeration - /// - [XmlElement(Type = typeof(ushort), ElementName = "emitterName")] - public ushort EmitterName - { - get - { - return this._emitterName; - } - - set - { - this._emitterName = value; - } - } - - /// - /// Gets or sets the function of the emitter, 8 bit enumeration - /// - [XmlElement(Type = typeof(byte), ElementName = "function")] - public byte Function - { - get - { - return this._function; - } - - set - { - this._function = value; - } - } - - /// - /// Gets or sets the emitter ID, 8 bit enumeration - /// - [XmlElement(Type = typeof(byte), ElementName = "emitterIdNumber")] - public byte EmitterIdNumber - { - get - { - return this._emitterIdNumber; - } - - set - { - this._emitterIdNumber = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._emitterName); - dos.WriteUnsignedByte((byte)this._function); - dos.WriteUnsignedByte((byte)this._emitterIdNumber); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._emitterName = dis.ReadUnsignedShort(); - this._function = dis.ReadUnsignedByte(); - this._emitterIdNumber = dis.ReadUnsignedByte(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._emitterName.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._function.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._emitterIdNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as EmitterSystem; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(EmitterSystem obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._emitterName != obj._emitterName) - { - ivarsEqual = false; - } - - if (this._function != obj._function) - { - ivarsEqual = false; - } - - if (this._emitterIdNumber != obj._emitterIdNumber) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._emitterName.GetHashCode(); - result = GenerateHash(result) ^ this._function.GetHashCode(); - result = GenerateHash(result) ^ this._emitterIdNumber.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.2.11. This field shall specify information about a particular emitter system + /// + [Serializable] + [XmlRoot] + public partial class EmitterSystem + { + /// + /// Name of the emitter, 16 bit enumeration + /// + private ushort _emitterName; + + /// + /// function of the emitter, 8 bit enumeration + /// + private byte _function; + + /// + /// emitter ID, 8 bit enumeration + /// + private byte _emitterIdNumber; + + /// + /// Initializes a new instance of the class. + /// + public EmitterSystem() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(EmitterSystem left, EmitterSystem right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(EmitterSystem left, EmitterSystem right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 2; // this._emitterName + marshalSize += 1; // this._function + marshalSize += 1; // this._emitterIdNumber + return marshalSize; + } + + /// + /// Gets or sets the Name of the emitter, 16 bit enumeration + /// + [XmlElement(Type = typeof(ushort), ElementName = "emitterName")] + public ushort EmitterName + { + get + { + return this._emitterName; + } + + set + { + this._emitterName = value; + } + } + + /// + /// Gets or sets the function of the emitter, 8 bit enumeration + /// + [XmlElement(Type = typeof(byte), ElementName = "function")] + public byte Function + { + get + { + return this._function; + } + + set + { + this._function = value; + } + } + + /// + /// Gets or sets the emitter ID, 8 bit enumeration + /// + [XmlElement(Type = typeof(byte), ElementName = "emitterIdNumber")] + public byte EmitterIdNumber + { + get + { + return this._emitterIdNumber; + } + + set + { + this._emitterIdNumber = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._emitterName); + dos.WriteUnsignedByte((byte)this._function); + dos.WriteUnsignedByte((byte)this._emitterIdNumber); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._emitterName = dis.ReadUnsignedShort(); + this._function = dis.ReadUnsignedByte(); + this._emitterIdNumber = dis.ReadUnsignedByte(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._emitterName.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._function.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._emitterIdNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as EmitterSystem; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(EmitterSystem obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._emitterName != obj._emitterName) + { + ivarsEqual = false; + } + + if (this._function != obj._function) + { + ivarsEqual = false; + } + + if (this._emitterIdNumber != obj._emitterIdNumber) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._emitterName.GetHashCode(); + result = GenerateHash(result) ^ this._function.GetHashCode(); + result = GenerateHash(result) ^ this._emitterIdNumber.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/EntityID.cs b/Libs/CsharpDis6/Dis1995/Generated/EntityID.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/EntityID.cs rename to Libs/CsharpDis6/Dis1995/Generated/EntityID.cs index 695f5ac..4d1a0af 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/EntityID.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/EntityID.cs @@ -1,364 +1,364 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Each entity in a given DIS simulation application shall be given an entity identifier number unique to all other entities in that application. This identifier number is valid for the duration of the exercise; however, entity identifier numbers may be reused when all possible numbers have been exhausted. No entity shall have an entity identifier number of NO_ENTITY, ALL_ENTITIES, or RQST_ASSIGN_ID. The entity iden- tifier number need not be registered or retained for future exercises. The entity identifier number shall be specified by a 16-bit unsigned integer. An entity identifier number equal to zero with valid site and application identification shall address a simulation application. An entity identifier number equal to ALL_ENTITIES shall mean all entities within the specified site and application. An entity identifier number equal to RQST_ASSIGN_ID allows the receiver of the create entity to define the entity identifier number of the new entity. - /// - [Serializable] - [XmlRoot] - public partial class EntityID - { - /// - /// The site ID - /// - private ushort _site; - - /// - /// The application ID - /// - private ushort _application; - - /// - /// the entity ID - /// - private ushort _entity; - - /// - /// Initializes a new instance of the class. - /// - public EntityID() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(EntityID left, EntityID right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(EntityID left, EntityID right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 2; // this._site - marshalSize += 2; // this._application - marshalSize += 2; // this._entity - return marshalSize; - } - - /// - /// Gets or sets the The site ID - /// - [XmlElement(Type = typeof(ushort), ElementName = "site")] - public ushort Site - { - get - { - return this._site; - } - - set - { - this._site = value; - } - } - - /// - /// Gets or sets the The application ID - /// - [XmlElement(Type = typeof(ushort), ElementName = "application")] - public ushort Application - { - get - { - return this._application; - } - - set - { - this._application = value; - } - } - - /// - /// Gets or sets the the entity ID - /// - [XmlElement(Type = typeof(ushort), ElementName = "entity")] - public ushort Entity - { - get - { - return this._entity; - } - - set - { - this._entity = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._site); - dos.WriteUnsignedShort((ushort)this._application); - dos.WriteUnsignedShort((ushort)this._entity); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._site = dis.ReadUnsignedShort(); - this._application = dis.ReadUnsignedShort(); - this._entity = dis.ReadUnsignedShort(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._site.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._application.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._entity.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as EntityID; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(EntityID obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._site != obj._site) - { - ivarsEqual = false; - } - - if (this._application != obj._application) - { - ivarsEqual = false; - } - - if (this._entity != obj._entity) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._site.GetHashCode(); - result = GenerateHash(result) ^ this._application.GetHashCode(); - result = GenerateHash(result) ^ this._entity.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Each entity in a given DIS simulation application shall be given an entity identifier number unique to all other entities in that application. This identifier number is valid for the duration of the exercise; however, entity identifier numbers may be reused when all possible numbers have been exhausted. No entity shall have an entity identifier number of NO_ENTITY, ALL_ENTITIES, or RQST_ASSIGN_ID. The entity iden- tifier number need not be registered or retained for future exercises. The entity identifier number shall be specified by a 16-bit unsigned integer. An entity identifier number equal to zero with valid site and application identification shall address a simulation application. An entity identifier number equal to ALL_ENTITIES shall mean all entities within the specified site and application. An entity identifier number equal to RQST_ASSIGN_ID allows the receiver of the create entity to define the entity identifier number of the new entity. + /// + [Serializable] + [XmlRoot] + public partial class EntityID + { + /// + /// The site ID + /// + private ushort _site; + + /// + /// The application ID + /// + private ushort _application; + + /// + /// the entity ID + /// + private ushort _entity; + + /// + /// Initializes a new instance of the class. + /// + public EntityID() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(EntityID left, EntityID right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(EntityID left, EntityID right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 2; // this._site + marshalSize += 2; // this._application + marshalSize += 2; // this._entity + return marshalSize; + } + + /// + /// Gets or sets the The site ID + /// + [XmlElement(Type = typeof(ushort), ElementName = "site")] + public ushort Site + { + get + { + return this._site; + } + + set + { + this._site = value; + } + } + + /// + /// Gets or sets the The application ID + /// + [XmlElement(Type = typeof(ushort), ElementName = "application")] + public ushort Application + { + get + { + return this._application; + } + + set + { + this._application = value; + } + } + + /// + /// Gets or sets the the entity ID + /// + [XmlElement(Type = typeof(ushort), ElementName = "entity")] + public ushort Entity + { + get + { + return this._entity; + } + + set + { + this._entity = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._site); + dos.WriteUnsignedShort((ushort)this._application); + dos.WriteUnsignedShort((ushort)this._entity); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._site = dis.ReadUnsignedShort(); + this._application = dis.ReadUnsignedShort(); + this._entity = dis.ReadUnsignedShort(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._site.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._application.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._entity.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as EntityID; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(EntityID obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._site != obj._site) + { + ivarsEqual = false; + } + + if (this._application != obj._application) + { + ivarsEqual = false; + } + + if (this._entity != obj._entity) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._site.GetHashCode(); + result = GenerateHash(result) ^ this._application.GetHashCode(); + result = GenerateHash(result) ^ this._entity.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/EntityInformationPdu.cs b/Libs/CsharpDis6/Dis1995/Generated/EntityInformationPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/EntityInformationPdu.cs rename to Libs/CsharpDis6/Dis1995/Generated/EntityInformationPdu.cs index 45da503..49461c4 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/EntityInformationPdu.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/EntityInformationPdu.cs @@ -1,271 +1,271 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.3.3. Common superclass for EntityState and Collision PDUs. This should be abstract. - /// - [Serializable] - [XmlRoot] - public partial class EntityInformationPdu : Pdu, IEquatable - { - /// - /// Initializes a new instance of the class. - /// - public EntityInformationPdu() - { - ProtocolFamily = (byte)1; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(EntityInformationPdu left, EntityInformationPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(EntityInformationPdu left, EntityInformationPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - return marshalSize; - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public virtual void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as EntityInformationPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(EntityInformationPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.3.3. Common superclass for EntityState and Collision PDUs. This should be abstract. + /// + [Serializable] + [XmlRoot] + public partial class EntityInformationPdu : Pdu, IEquatable + { + /// + /// Initializes a new instance of the class. + /// + public EntityInformationPdu() + { + ProtocolFamily = (byte)1; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(EntityInformationPdu left, EntityInformationPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(EntityInformationPdu left, EntityInformationPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + return marshalSize; + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public virtual void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as EntityInformationPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(EntityInformationPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/EntityStatePdu.cs b/Libs/CsharpDis6/Dis1995/Generated/EntityStatePdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/EntityStatePdu.cs rename to Libs/CsharpDis6/Dis1995/Generated/EntityStatePdu.cs index 19340ef..6efe3e8 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/EntityStatePdu.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/EntityStatePdu.cs @@ -1,774 +1,774 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.3.3.1. Represents the postion and state of one entity in the world - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(EntityType))] - [XmlInclude(typeof(Vector3Float))] - [XmlInclude(typeof(Vector3Double))] - [XmlInclude(typeof(Orientation))] - [XmlInclude(typeof(DeadReckoningParameter))] - [XmlInclude(typeof(ArticulationParameter))] - public partial class EntityStatePdu : EntityInformationPdu, IEquatable - { - /// - /// Unique ID for an entity that is tied to this state information - /// - private EntityID _entityID = new EntityID(); - - private byte _forceId; - - /// - /// How many articulation parameters are in the variable length list - /// - private byte _articulationParameterCount; - - /// - /// Describes the type of entity in the world - /// - private EntityType _entityType = new EntityType(); - - private EntityType _alternativeEntityType = new EntityType(); - - /// - /// Describes the speed of the entity in the world - /// - private Vector3Float _entityLinearVelocity = new Vector3Float(); - - /// - /// describes the location of the entity in the world - /// - private Vector3Double _entityLocation = new Vector3Double(); - - /// - /// describes the orientation of the entity, in euler angles - /// - private Orientation _entityOrientation = new Orientation(); - - /// - /// a series of bit flags that are used to help draw the entity, such as smoking, on fire, etc. - /// - private int _entityAppearance; - - /// - /// parameters used for dead reckoning - /// - private DeadReckoningParameter _deadReckoningParameters = new DeadReckoningParameter(); - - /// - /// characters that can be used for debugging, or to draw unique strings on the side of entities in the world - /// - private byte[] _marking = new byte[12]; - - /// - /// a series of bit flags - /// - private int _capabilities; - - /// - /// variable length list of articulation parameters - /// - private List _articulationParameters = new List(); - - /// - /// Initializes a new instance of the class. - /// - public EntityStatePdu() - { - PduType = (byte)1; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(EntityStatePdu left, EntityStatePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(EntityStatePdu left, EntityStatePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._entityID.GetMarshalledSize(); // this._entityID - marshalSize += 1; // this._forceId - marshalSize += 1; // this._articulationParameterCount - marshalSize += this._entityType.GetMarshalledSize(); // this._entityType - marshalSize += this._alternativeEntityType.GetMarshalledSize(); // this._alternativeEntityType - marshalSize += this._entityLinearVelocity.GetMarshalledSize(); // this._entityLinearVelocity - marshalSize += this._entityLocation.GetMarshalledSize(); // this._entityLocation - marshalSize += this._entityOrientation.GetMarshalledSize(); // this._entityOrientation - marshalSize += 4; // this._entityAppearance - marshalSize += this._deadReckoningParameters.GetMarshalledSize(); // this._deadReckoningParameters - marshalSize += 12 * 1; // _marking - marshalSize += 4; // this._capabilities - for (int idx = 0; idx < this._articulationParameters.Count; idx++) - { - ArticulationParameter listElement = (ArticulationParameter)this._articulationParameters[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Unique ID for an entity that is tied to this state information - /// - [XmlElement(Type = typeof(EntityID), ElementName = "entityID")] - public EntityID EntityID - { - get - { - return this._entityID; - } - - set - { - this._entityID = value; - } - } - - /// - /// Gets or sets the forceId - /// - [XmlElement(Type = typeof(byte), ElementName = "forceId")] - public byte ForceId - { - get - { - return this._forceId; - } - - set - { - this._forceId = value; - } - } - - /// - /// Gets or sets the How many articulation parameters are in the variable length list - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getarticulationParameterCount method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "articulationParameterCount")] - public byte ArticulationParameterCount - { - get - { - return this._articulationParameterCount; - } - - set - { - this._articulationParameterCount = value; - } - } - - /// - /// Gets or sets the Describes the type of entity in the world - /// - [XmlElement(Type = typeof(EntityType), ElementName = "entityType")] - public EntityType EntityType - { - get - { - return this._entityType; - } - - set - { - this._entityType = value; - } - } - - /// - /// Gets or sets the alternativeEntityType - /// - [XmlElement(Type = typeof(EntityType), ElementName = "alternativeEntityType")] - public EntityType AlternativeEntityType - { - get - { - return this._alternativeEntityType; - } - - set - { - this._alternativeEntityType = value; - } - } - - /// - /// Gets or sets the Describes the speed of the entity in the world - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "entityLinearVelocity")] - public Vector3Float EntityLinearVelocity - { - get - { - return this._entityLinearVelocity; - } - - set - { - this._entityLinearVelocity = value; - } - } - - /// - /// Gets or sets the describes the location of the entity in the world - /// - [XmlElement(Type = typeof(Vector3Double), ElementName = "entityLocation")] - public Vector3Double EntityLocation - { - get - { - return this._entityLocation; - } - - set - { - this._entityLocation = value; - } - } - - /// - /// Gets or sets the describes the orientation of the entity, in euler angles - /// - [XmlElement(Type = typeof(Orientation), ElementName = "entityOrientation")] - public Orientation EntityOrientation - { - get - { - return this._entityOrientation; - } - - set - { - this._entityOrientation = value; - } - } - - /// - /// Gets or sets the a series of bit flags that are used to help draw the entity, such as smoking, on fire, etc. - /// - [XmlElement(Type = typeof(int), ElementName = "entityAppearance")] - public int EntityAppearance - { - get - { - return this._entityAppearance; - } - - set - { - this._entityAppearance = value; - } - } - - /// - /// Gets or sets the parameters used for dead reckoning - /// - [XmlElement(Type = typeof(DeadReckoningParameter), ElementName = "deadReckoningParameters")] - public DeadReckoningParameter DeadReckoningParameters - { - get - { - return this._deadReckoningParameters; - } - - set - { - this._deadReckoningParameters = value; - } - } - - /// - /// Gets or sets the characters that can be used for debugging, or to draw unique strings on the side of entities in the world - /// - [XmlArray(ElementName = "marking")] - public byte[] Marking - { - get - { - return this._marking; - } - - set - { - this._marking = value; - } -} - - /// - /// Gets or sets the a series of bit flags - /// - [XmlElement(Type = typeof(int), ElementName = "capabilities")] - public int Capabilities - { - get - { - return this._capabilities; - } - - set - { - this._capabilities = value; - } - } - - /// - /// Gets the variable length list of articulation parameters - /// - [XmlElement(ElementName = "articulationParametersList", Type = typeof(List))] - public List ArticulationParameters - { - get - { - return this._articulationParameters; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._entityID.Marshal(dos); - dos.WriteUnsignedByte((byte)this._forceId); - dos.WriteByte((byte)this._articulationParameters.Count); - this._entityType.Marshal(dos); - this._alternativeEntityType.Marshal(dos); - this._entityLinearVelocity.Marshal(dos); - this._entityLocation.Marshal(dos); - this._entityOrientation.Marshal(dos); - dos.WriteInt((int)this._entityAppearance); - this._deadReckoningParameters.Marshal(dos); - - for (int idx = 0; idx < this._marking.Length; idx++) - { - dos.WriteByte(this._marking[idx]); - } - - dos.WriteInt((int)this._capabilities); - - for (int idx = 0; idx < this._articulationParameters.Count; idx++) - { - ArticulationParameter aArticulationParameter = (ArticulationParameter)this._articulationParameters[idx]; - aArticulationParameter.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._entityID.Unmarshal(dis); - this._forceId = dis.ReadUnsignedByte(); - this._articulationParameterCount = dis.ReadByte(); - this._entityType.Unmarshal(dis); - this._alternativeEntityType.Unmarshal(dis); - this._entityLinearVelocity.Unmarshal(dis); - this._entityLocation.Unmarshal(dis); - this._entityOrientation.Unmarshal(dis); - this._entityAppearance = dis.ReadInt(); - this._deadReckoningParameters.Unmarshal(dis); - - for (int idx = 0; idx < this._marking.Length; idx++) - { - this._marking[idx] = dis.ReadByte(); - } - - this._capabilities = dis.ReadInt(); - - for (int idx = 0; idx < this.ArticulationParameterCount; idx++) - { - ArticulationParameter anX = new ArticulationParameter(); - anX.Unmarshal(dis); - this._articulationParameters.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._entityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._forceId.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._articulationParameters.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._entityType.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._alternativeEntityType.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._entityLinearVelocity.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._entityLocation.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._entityOrientation.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._entityAppearance.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._deadReckoningParameters.Reflection(sb); - sb.AppendLine(""); - for (int idx = 0; idx < this._marking.Length; idx++) - { - sb.AppendLine("" + this._marking[idx] + ""); - } - - sb.AppendLine("" + this._capabilities.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._articulationParameters.Count; idx++) - { - sb.AppendLine(""); - ArticulationParameter aArticulationParameter = (ArticulationParameter)this._articulationParameters[idx]; - aArticulationParameter.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as EntityStatePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(EntityStatePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._entityID.Equals(obj._entityID)) - { - ivarsEqual = false; - } - - if (this._forceId != obj._forceId) - { - ivarsEqual = false; - } - - if (this._articulationParameterCount != obj._articulationParameterCount) - { - ivarsEqual = false; - } - - if (!this._entityType.Equals(obj._entityType)) - { - ivarsEqual = false; - } - - if (!this._alternativeEntityType.Equals(obj._alternativeEntityType)) - { - ivarsEqual = false; - } - - if (!this._entityLinearVelocity.Equals(obj._entityLinearVelocity)) - { - ivarsEqual = false; - } - - if (!this._entityLocation.Equals(obj._entityLocation)) - { - ivarsEqual = false; - } - - if (!this._entityOrientation.Equals(obj._entityOrientation)) - { - ivarsEqual = false; - } - - if (this._entityAppearance != obj._entityAppearance) - { - ivarsEqual = false; - } - - if (!this._deadReckoningParameters.Equals(obj._deadReckoningParameters)) - { - ivarsEqual = false; - } - - if (obj._marking.Length != 12) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < 12; idx++) - { - if (this._marking[idx] != obj._marking[idx]) - { - ivarsEqual = false; - } - } - } - - if (this._capabilities != obj._capabilities) - { - ivarsEqual = false; - } - - if (this._articulationParameters.Count != obj._articulationParameters.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._articulationParameters.Count; idx++) - { - if (!this._articulationParameters[idx].Equals(obj._articulationParameters[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._entityID.GetHashCode(); - result = GenerateHash(result) ^ this._forceId.GetHashCode(); - result = GenerateHash(result) ^ this._articulationParameterCount.GetHashCode(); - result = GenerateHash(result) ^ this._entityType.GetHashCode(); - result = GenerateHash(result) ^ this._alternativeEntityType.GetHashCode(); - result = GenerateHash(result) ^ this._entityLinearVelocity.GetHashCode(); - result = GenerateHash(result) ^ this._entityLocation.GetHashCode(); - result = GenerateHash(result) ^ this._entityOrientation.GetHashCode(); - result = GenerateHash(result) ^ this._entityAppearance.GetHashCode(); - result = GenerateHash(result) ^ this._deadReckoningParameters.GetHashCode(); - - for (int idx = 0; idx < 12; idx++) - { - result = GenerateHash(result) ^ this._marking[idx].GetHashCode(); - } - - result = GenerateHash(result) ^ this._capabilities.GetHashCode(); - - if (this._articulationParameters.Count > 0) - { - for (int idx = 0; idx < this._articulationParameters.Count; idx++) - { - result = GenerateHash(result) ^ this._articulationParameters[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.3.3.1. Represents the postion and state of one entity in the world + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(EntityType))] + [XmlInclude(typeof(Vector3Float))] + [XmlInclude(typeof(Vector3Double))] + [XmlInclude(typeof(Orientation))] + [XmlInclude(typeof(DeadReckoningParameter))] + [XmlInclude(typeof(ArticulationParameter))] + public partial class EntityStatePdu : EntityInformationPdu, IEquatable + { + /// + /// Unique ID for an entity that is tied to this state information + /// + private EntityID _entityID = new EntityID(); + + private byte _forceId; + + /// + /// How many articulation parameters are in the variable length list + /// + private byte _articulationParameterCount; + + /// + /// Describes the type of entity in the world + /// + private EntityType _entityType = new EntityType(); + + private EntityType _alternativeEntityType = new EntityType(); + + /// + /// Describes the speed of the entity in the world + /// + private Vector3Float _entityLinearVelocity = new Vector3Float(); + + /// + /// describes the location of the entity in the world + /// + private Vector3Double _entityLocation = new Vector3Double(); + + /// + /// describes the orientation of the entity, in euler angles + /// + private Orientation _entityOrientation = new Orientation(); + + /// + /// a series of bit flags that are used to help draw the entity, such as smoking, on fire, etc. + /// + private int _entityAppearance; + + /// + /// parameters used for dead reckoning + /// + private DeadReckoningParameter _deadReckoningParameters = new DeadReckoningParameter(); + + /// + /// characters that can be used for debugging, or to draw unique strings on the side of entities in the world + /// + private byte[] _marking = new byte[12]; + + /// + /// a series of bit flags + /// + private int _capabilities; + + /// + /// variable length list of articulation parameters + /// + private List _articulationParameters = new List(); + + /// + /// Initializes a new instance of the class. + /// + public EntityStatePdu() + { + PduType = (byte)1; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(EntityStatePdu left, EntityStatePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(EntityStatePdu left, EntityStatePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._entityID.GetMarshalledSize(); // this._entityID + marshalSize += 1; // this._forceId + marshalSize += 1; // this._articulationParameterCount + marshalSize += this._entityType.GetMarshalledSize(); // this._entityType + marshalSize += this._alternativeEntityType.GetMarshalledSize(); // this._alternativeEntityType + marshalSize += this._entityLinearVelocity.GetMarshalledSize(); // this._entityLinearVelocity + marshalSize += this._entityLocation.GetMarshalledSize(); // this._entityLocation + marshalSize += this._entityOrientation.GetMarshalledSize(); // this._entityOrientation + marshalSize += 4; // this._entityAppearance + marshalSize += this._deadReckoningParameters.GetMarshalledSize(); // this._deadReckoningParameters + marshalSize += 12 * 1; // _marking + marshalSize += 4; // this._capabilities + for (int idx = 0; idx < this._articulationParameters.Count; idx++) + { + ArticulationParameter listElement = (ArticulationParameter)this._articulationParameters[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Unique ID for an entity that is tied to this state information + /// + [XmlElement(Type = typeof(EntityID), ElementName = "entityID")] + public EntityID EntityID + { + get + { + return this._entityID; + } + + set + { + this._entityID = value; + } + } + + /// + /// Gets or sets the forceId + /// + [XmlElement(Type = typeof(byte), ElementName = "forceId")] + public byte ForceId + { + get + { + return this._forceId; + } + + set + { + this._forceId = value; + } + } + + /// + /// Gets or sets the How many articulation parameters are in the variable length list + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getarticulationParameterCount method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "articulationParameterCount")] + public byte ArticulationParameterCount + { + get + { + return this._articulationParameterCount; + } + + set + { + this._articulationParameterCount = value; + } + } + + /// + /// Gets or sets the Describes the type of entity in the world + /// + [XmlElement(Type = typeof(EntityType), ElementName = "entityType")] + public EntityType EntityType + { + get + { + return this._entityType; + } + + set + { + this._entityType = value; + } + } + + /// + /// Gets or sets the alternativeEntityType + /// + [XmlElement(Type = typeof(EntityType), ElementName = "alternativeEntityType")] + public EntityType AlternativeEntityType + { + get + { + return this._alternativeEntityType; + } + + set + { + this._alternativeEntityType = value; + } + } + + /// + /// Gets or sets the Describes the speed of the entity in the world + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "entityLinearVelocity")] + public Vector3Float EntityLinearVelocity + { + get + { + return this._entityLinearVelocity; + } + + set + { + this._entityLinearVelocity = value; + } + } + + /// + /// Gets or sets the describes the location of the entity in the world + /// + [XmlElement(Type = typeof(Vector3Double), ElementName = "entityLocation")] + public Vector3Double EntityLocation + { + get + { + return this._entityLocation; + } + + set + { + this._entityLocation = value; + } + } + + /// + /// Gets or sets the describes the orientation of the entity, in euler angles + /// + [XmlElement(Type = typeof(Orientation), ElementName = "entityOrientation")] + public Orientation EntityOrientation + { + get + { + return this._entityOrientation; + } + + set + { + this._entityOrientation = value; + } + } + + /// + /// Gets or sets the a series of bit flags that are used to help draw the entity, such as smoking, on fire, etc. + /// + [XmlElement(Type = typeof(int), ElementName = "entityAppearance")] + public int EntityAppearance + { + get + { + return this._entityAppearance; + } + + set + { + this._entityAppearance = value; + } + } + + /// + /// Gets or sets the parameters used for dead reckoning + /// + [XmlElement(Type = typeof(DeadReckoningParameter), ElementName = "deadReckoningParameters")] + public DeadReckoningParameter DeadReckoningParameters + { + get + { + return this._deadReckoningParameters; + } + + set + { + this._deadReckoningParameters = value; + } + } + + /// + /// Gets or sets the characters that can be used for debugging, or to draw unique strings on the side of entities in the world + /// + [XmlArray(ElementName = "marking")] + public byte[] Marking + { + get + { + return this._marking; + } + + set + { + this._marking = value; + } +} + + /// + /// Gets or sets the a series of bit flags + /// + [XmlElement(Type = typeof(int), ElementName = "capabilities")] + public int Capabilities + { + get + { + return this._capabilities; + } + + set + { + this._capabilities = value; + } + } + + /// + /// Gets the variable length list of articulation parameters + /// + [XmlElement(ElementName = "articulationParametersList", Type = typeof(List))] + public List ArticulationParameters + { + get + { + return this._articulationParameters; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._entityID.Marshal(dos); + dos.WriteUnsignedByte((byte)this._forceId); + dos.WriteByte((byte)this._articulationParameters.Count); + this._entityType.Marshal(dos); + this._alternativeEntityType.Marshal(dos); + this._entityLinearVelocity.Marshal(dos); + this._entityLocation.Marshal(dos); + this._entityOrientation.Marshal(dos); + dos.WriteInt((int)this._entityAppearance); + this._deadReckoningParameters.Marshal(dos); + + for (int idx = 0; idx < this._marking.Length; idx++) + { + dos.WriteByte(this._marking[idx]); + } + + dos.WriteInt((int)this._capabilities); + + for (int idx = 0; idx < this._articulationParameters.Count; idx++) + { + ArticulationParameter aArticulationParameter = (ArticulationParameter)this._articulationParameters[idx]; + aArticulationParameter.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._entityID.Unmarshal(dis); + this._forceId = dis.ReadUnsignedByte(); + this._articulationParameterCount = dis.ReadByte(); + this._entityType.Unmarshal(dis); + this._alternativeEntityType.Unmarshal(dis); + this._entityLinearVelocity.Unmarshal(dis); + this._entityLocation.Unmarshal(dis); + this._entityOrientation.Unmarshal(dis); + this._entityAppearance = dis.ReadInt(); + this._deadReckoningParameters.Unmarshal(dis); + + for (int idx = 0; idx < this._marking.Length; idx++) + { + this._marking[idx] = dis.ReadByte(); + } + + this._capabilities = dis.ReadInt(); + + for (int idx = 0; idx < this.ArticulationParameterCount; idx++) + { + ArticulationParameter anX = new ArticulationParameter(); + anX.Unmarshal(dis); + this._articulationParameters.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._entityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._forceId.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._articulationParameters.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._entityType.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._alternativeEntityType.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._entityLinearVelocity.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._entityLocation.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._entityOrientation.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._entityAppearance.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._deadReckoningParameters.Reflection(sb); + sb.AppendLine(""); + for (int idx = 0; idx < this._marking.Length; idx++) + { + sb.AppendLine("" + this._marking[idx] + ""); + } + + sb.AppendLine("" + this._capabilities.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._articulationParameters.Count; idx++) + { + sb.AppendLine(""); + ArticulationParameter aArticulationParameter = (ArticulationParameter)this._articulationParameters[idx]; + aArticulationParameter.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as EntityStatePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(EntityStatePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._entityID.Equals(obj._entityID)) + { + ivarsEqual = false; + } + + if (this._forceId != obj._forceId) + { + ivarsEqual = false; + } + + if (this._articulationParameterCount != obj._articulationParameterCount) + { + ivarsEqual = false; + } + + if (!this._entityType.Equals(obj._entityType)) + { + ivarsEqual = false; + } + + if (!this._alternativeEntityType.Equals(obj._alternativeEntityType)) + { + ivarsEqual = false; + } + + if (!this._entityLinearVelocity.Equals(obj._entityLinearVelocity)) + { + ivarsEqual = false; + } + + if (!this._entityLocation.Equals(obj._entityLocation)) + { + ivarsEqual = false; + } + + if (!this._entityOrientation.Equals(obj._entityOrientation)) + { + ivarsEqual = false; + } + + if (this._entityAppearance != obj._entityAppearance) + { + ivarsEqual = false; + } + + if (!this._deadReckoningParameters.Equals(obj._deadReckoningParameters)) + { + ivarsEqual = false; + } + + if (obj._marking.Length != 12) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < 12; idx++) + { + if (this._marking[idx] != obj._marking[idx]) + { + ivarsEqual = false; + } + } + } + + if (this._capabilities != obj._capabilities) + { + ivarsEqual = false; + } + + if (this._articulationParameters.Count != obj._articulationParameters.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._articulationParameters.Count; idx++) + { + if (!this._articulationParameters[idx].Equals(obj._articulationParameters[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._entityID.GetHashCode(); + result = GenerateHash(result) ^ this._forceId.GetHashCode(); + result = GenerateHash(result) ^ this._articulationParameterCount.GetHashCode(); + result = GenerateHash(result) ^ this._entityType.GetHashCode(); + result = GenerateHash(result) ^ this._alternativeEntityType.GetHashCode(); + result = GenerateHash(result) ^ this._entityLinearVelocity.GetHashCode(); + result = GenerateHash(result) ^ this._entityLocation.GetHashCode(); + result = GenerateHash(result) ^ this._entityOrientation.GetHashCode(); + result = GenerateHash(result) ^ this._entityAppearance.GetHashCode(); + result = GenerateHash(result) ^ this._deadReckoningParameters.GetHashCode(); + + for (int idx = 0; idx < 12; idx++) + { + result = GenerateHash(result) ^ this._marking[idx].GetHashCode(); + } + + result = GenerateHash(result) ^ this._capabilities.GetHashCode(); + + if (this._articulationParameters.Count > 0) + { + for (int idx = 0; idx < this._articulationParameters.Count; idx++) + { + result = GenerateHash(result) ^ this._articulationParameters[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/EntityType.cs b/Libs/CsharpDis6/Dis1995/Generated/EntityType.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/EntityType.cs rename to Libs/CsharpDis6/Dis1995/Generated/EntityType.cs index ed3094a..fdc937b 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/EntityType.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/EntityType.cs @@ -1,489 +1,489 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.2.16. Identifies the type of entity, including kind of entity, domain (surface, subsurface, air, etc) country, category, etc. - /// - [Serializable] - [XmlRoot] - public partial class EntityType - { - /// - /// Kind of entity - /// - private byte _entityKind; - - /// - /// Domain of entity (air, surface, subsurface, space, etc) - /// - private byte _domain; - - /// - /// country to which the design of the entity is attributed - /// - private ushort _country; - - /// - /// category of entity - /// - private byte _category; - - /// - /// subcategory of entity - /// - private byte _subcategory; - - /// - /// specific info based on subcategory field - /// - private byte _specific; - - private byte _extra; - - /// - /// Initializes a new instance of the class. - /// - public EntityType() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(EntityType left, EntityType right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(EntityType left, EntityType right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._entityKind - marshalSize += 1; // this._domain - marshalSize += 2; // this._country - marshalSize += 1; // this._category - marshalSize += 1; // this._subcategory - marshalSize += 1; // this._specific - marshalSize += 1; // this._extra - return marshalSize; - } - - /// - /// Gets or sets the Kind of entity - /// - [XmlElement(Type = typeof(byte), ElementName = "entityKind")] - public byte EntityKind - { - get - { - return this._entityKind; - } - - set - { - this._entityKind = value; - } - } - - /// - /// Gets or sets the Domain of entity (air, surface, subsurface, space, etc) - /// - [XmlElement(Type = typeof(byte), ElementName = "domain")] - public byte Domain - { - get - { - return this._domain; - } - - set - { - this._domain = value; - } - } - - /// - /// Gets or sets the country to which the design of the entity is attributed - /// - [XmlElement(Type = typeof(ushort), ElementName = "country")] - public ushort Country - { - get - { - return this._country; - } - - set - { - this._country = value; - } - } - - /// - /// Gets or sets the category of entity - /// - [XmlElement(Type = typeof(byte), ElementName = "category")] - public byte Category - { - get - { - return this._category; - } - - set - { - this._category = value; - } - } - - /// - /// Gets or sets the subcategory of entity - /// - [XmlElement(Type = typeof(byte), ElementName = "subcategory")] - public byte Subcategory - { - get - { - return this._subcategory; - } - - set - { - this._subcategory = value; - } - } - - /// - /// Gets or sets the specific info based on subcategory field - /// - [XmlElement(Type = typeof(byte), ElementName = "specific")] - public byte Specific - { - get - { - return this._specific; - } - - set - { - this._specific = value; - } - } - - /// - /// Gets or sets the extra - /// - [XmlElement(Type = typeof(byte), ElementName = "extra")] - public byte Extra - { - get - { - return this._extra; - } - - set - { - this._extra = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._entityKind); - dos.WriteUnsignedByte((byte)this._domain); - dos.WriteUnsignedShort((ushort)this._country); - dos.WriteUnsignedByte((byte)this._category); - dos.WriteUnsignedByte((byte)this._subcategory); - dos.WriteUnsignedByte((byte)this._specific); - dos.WriteUnsignedByte((byte)this._extra); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._entityKind = dis.ReadUnsignedByte(); - this._domain = dis.ReadUnsignedByte(); - this._country = dis.ReadUnsignedShort(); - this._category = dis.ReadUnsignedByte(); - this._subcategory = dis.ReadUnsignedByte(); - this._specific = dis.ReadUnsignedByte(); - this._extra = dis.ReadUnsignedByte(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._entityKind.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._domain.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._country.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._category.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._subcategory.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._specific.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._extra.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as EntityType; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(EntityType obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._entityKind != obj._entityKind) - { - ivarsEqual = false; - } - - if (this._domain != obj._domain) - { - ivarsEqual = false; - } - - if (this._country != obj._country) - { - ivarsEqual = false; - } - - if (this._category != obj._category) - { - ivarsEqual = false; - } - - if (this._subcategory != obj._subcategory) - { - ivarsEqual = false; - } - - if (this._specific != obj._specific) - { - ivarsEqual = false; - } - - if (this._extra != obj._extra) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._entityKind.GetHashCode(); - result = GenerateHash(result) ^ this._domain.GetHashCode(); - result = GenerateHash(result) ^ this._country.GetHashCode(); - result = GenerateHash(result) ^ this._category.GetHashCode(); - result = GenerateHash(result) ^ this._subcategory.GetHashCode(); - result = GenerateHash(result) ^ this._specific.GetHashCode(); - result = GenerateHash(result) ^ this._extra.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.2.16. Identifies the type of entity, including kind of entity, domain (surface, subsurface, air, etc) country, category, etc. + /// + [Serializable] + [XmlRoot] + public partial class EntityType + { + /// + /// Kind of entity + /// + private byte _entityKind; + + /// + /// Domain of entity (air, surface, subsurface, space, etc) + /// + private byte _domain; + + /// + /// country to which the design of the entity is attributed + /// + private ushort _country; + + /// + /// category of entity + /// + private byte _category; + + /// + /// subcategory of entity + /// + private byte _subcategory; + + /// + /// specific info based on subcategory field + /// + private byte _specific; + + private byte _extra; + + /// + /// Initializes a new instance of the class. + /// + public EntityType() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(EntityType left, EntityType right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(EntityType left, EntityType right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._entityKind + marshalSize += 1; // this._domain + marshalSize += 2; // this._country + marshalSize += 1; // this._category + marshalSize += 1; // this._subcategory + marshalSize += 1; // this._specific + marshalSize += 1; // this._extra + return marshalSize; + } + + /// + /// Gets or sets the Kind of entity + /// + [XmlElement(Type = typeof(byte), ElementName = "entityKind")] + public byte EntityKind + { + get + { + return this._entityKind; + } + + set + { + this._entityKind = value; + } + } + + /// + /// Gets or sets the Domain of entity (air, surface, subsurface, space, etc) + /// + [XmlElement(Type = typeof(byte), ElementName = "domain")] + public byte Domain + { + get + { + return this._domain; + } + + set + { + this._domain = value; + } + } + + /// + /// Gets or sets the country to which the design of the entity is attributed + /// + [XmlElement(Type = typeof(ushort), ElementName = "country")] + public ushort Country + { + get + { + return this._country; + } + + set + { + this._country = value; + } + } + + /// + /// Gets or sets the category of entity + /// + [XmlElement(Type = typeof(byte), ElementName = "category")] + public byte Category + { + get + { + return this._category; + } + + set + { + this._category = value; + } + } + + /// + /// Gets or sets the subcategory of entity + /// + [XmlElement(Type = typeof(byte), ElementName = "subcategory")] + public byte Subcategory + { + get + { + return this._subcategory; + } + + set + { + this._subcategory = value; + } + } + + /// + /// Gets or sets the specific info based on subcategory field + /// + [XmlElement(Type = typeof(byte), ElementName = "specific")] + public byte Specific + { + get + { + return this._specific; + } + + set + { + this._specific = value; + } + } + + /// + /// Gets or sets the extra + /// + [XmlElement(Type = typeof(byte), ElementName = "extra")] + public byte Extra + { + get + { + return this._extra; + } + + set + { + this._extra = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._entityKind); + dos.WriteUnsignedByte((byte)this._domain); + dos.WriteUnsignedShort((ushort)this._country); + dos.WriteUnsignedByte((byte)this._category); + dos.WriteUnsignedByte((byte)this._subcategory); + dos.WriteUnsignedByte((byte)this._specific); + dos.WriteUnsignedByte((byte)this._extra); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._entityKind = dis.ReadUnsignedByte(); + this._domain = dis.ReadUnsignedByte(); + this._country = dis.ReadUnsignedShort(); + this._category = dis.ReadUnsignedByte(); + this._subcategory = dis.ReadUnsignedByte(); + this._specific = dis.ReadUnsignedByte(); + this._extra = dis.ReadUnsignedByte(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._entityKind.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._domain.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._country.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._category.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._subcategory.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._specific.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._extra.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as EntityType; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(EntityType obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._entityKind != obj._entityKind) + { + ivarsEqual = false; + } + + if (this._domain != obj._domain) + { + ivarsEqual = false; + } + + if (this._country != obj._country) + { + ivarsEqual = false; + } + + if (this._category != obj._category) + { + ivarsEqual = false; + } + + if (this._subcategory != obj._subcategory) + { + ivarsEqual = false; + } + + if (this._specific != obj._specific) + { + ivarsEqual = false; + } + + if (this._extra != obj._extra) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._entityKind.GetHashCode(); + result = GenerateHash(result) ^ this._domain.GetHashCode(); + result = GenerateHash(result) ^ this._country.GetHashCode(); + result = GenerateHash(result) ^ this._category.GetHashCode(); + result = GenerateHash(result) ^ this._subcategory.GetHashCode(); + result = GenerateHash(result) ^ this._specific.GetHashCode(); + result = GenerateHash(result) ^ this._extra.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/EventID.cs b/Libs/CsharpDis6/Dis1995/Generated/EventID.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/EventID.cs rename to Libs/CsharpDis6/Dis1995/Generated/EventID.cs index 6a91db4..b20d071 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/EventID.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/EventID.cs @@ -1,364 +1,364 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.2.18. Identifies a unique event in a simulation via the combination of three values - /// - [Serializable] - [XmlRoot] - public partial class EventID - { - /// - /// The application ID - /// - private ushort _application; - - /// - /// The site ID - /// - private ushort _site; - - /// - /// the number of the event - /// - private ushort _eventNumber; - - /// - /// Initializes a new instance of the class. - /// - public EventID() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(EventID left, EventID right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(EventID left, EventID right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 2; // this._application - marshalSize += 2; // this._site - marshalSize += 2; // this._eventNumber - return marshalSize; - } - - /// - /// Gets or sets the The application ID - /// - [XmlElement(Type = typeof(ushort), ElementName = "application")] - public ushort Application - { - get - { - return this._application; - } - - set - { - this._application = value; - } - } - - /// - /// Gets or sets the The site ID - /// - [XmlElement(Type = typeof(ushort), ElementName = "site")] - public ushort Site - { - get - { - return this._site; - } - - set - { - this._site = value; - } - } - - /// - /// Gets or sets the the number of the event - /// - [XmlElement(Type = typeof(ushort), ElementName = "eventNumber")] - public ushort EventNumber - { - get - { - return this._eventNumber; - } - - set - { - this._eventNumber = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._application); - dos.WriteUnsignedShort((ushort)this._site); - dos.WriteUnsignedShort((ushort)this._eventNumber); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._application = dis.ReadUnsignedShort(); - this._site = dis.ReadUnsignedShort(); - this._eventNumber = dis.ReadUnsignedShort(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._application.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._site.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._eventNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as EventID; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(EventID obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._application != obj._application) - { - ivarsEqual = false; - } - - if (this._site != obj._site) - { - ivarsEqual = false; - } - - if (this._eventNumber != obj._eventNumber) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._application.GetHashCode(); - result = GenerateHash(result) ^ this._site.GetHashCode(); - result = GenerateHash(result) ^ this._eventNumber.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.2.18. Identifies a unique event in a simulation via the combination of three values + /// + [Serializable] + [XmlRoot] + public partial class EventID + { + /// + /// The application ID + /// + private ushort _application; + + /// + /// The site ID + /// + private ushort _site; + + /// + /// the number of the event + /// + private ushort _eventNumber; + + /// + /// Initializes a new instance of the class. + /// + public EventID() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(EventID left, EventID right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(EventID left, EventID right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 2; // this._application + marshalSize += 2; // this._site + marshalSize += 2; // this._eventNumber + return marshalSize; + } + + /// + /// Gets or sets the The application ID + /// + [XmlElement(Type = typeof(ushort), ElementName = "application")] + public ushort Application + { + get + { + return this._application; + } + + set + { + this._application = value; + } + } + + /// + /// Gets or sets the The site ID + /// + [XmlElement(Type = typeof(ushort), ElementName = "site")] + public ushort Site + { + get + { + return this._site; + } + + set + { + this._site = value; + } + } + + /// + /// Gets or sets the the number of the event + /// + [XmlElement(Type = typeof(ushort), ElementName = "eventNumber")] + public ushort EventNumber + { + get + { + return this._eventNumber; + } + + set + { + this._eventNumber = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._application); + dos.WriteUnsignedShort((ushort)this._site); + dos.WriteUnsignedShort((ushort)this._eventNumber); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._application = dis.ReadUnsignedShort(); + this._site = dis.ReadUnsignedShort(); + this._eventNumber = dis.ReadUnsignedShort(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._application.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._site.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._eventNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as EventID; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(EventID obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._application != obj._application) + { + ivarsEqual = false; + } + + if (this._site != obj._site) + { + ivarsEqual = false; + } + + if (this._eventNumber != obj._eventNumber) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._application.GetHashCode(); + result = GenerateHash(result) ^ this._site.GetHashCode(); + result = GenerateHash(result) ^ this._eventNumber.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/EventReportPdu.cs b/Libs/CsharpDis6/Dis1995/Generated/EventReportPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/EventReportPdu.cs rename to Libs/CsharpDis6/Dis1995/Generated/EventReportPdu.cs index ea9df59..5cddc46 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/EventReportPdu.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/EventReportPdu.cs @@ -1,548 +1,548 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.3.6.11. Reports occurance of a significant event to the simulation manager - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(FixedDatum))] - [XmlInclude(typeof(VariableDatum))] - public partial class EventReportPdu : SimulationManagementPdu, IEquatable - { - /// - /// Type of event - /// - private uint _eventType; - - /// - /// padding - /// - private uint _padding1; - - /// - /// Number of fixed datum records - /// - private uint _fixedDatumRecordCount; - - /// - /// Number of variable datum records - /// - private uint _variableDatumRecordCount; - - /// - /// variable length list of fixed datums - /// - private List _fixedDatums = new List(); - - /// - /// variable length list of variable length datums - /// - private List _variableDatums = new List(); - - /// - /// Initializes a new instance of the class. - /// - public EventReportPdu() - { - PduType = (byte)21; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(EventReportPdu left, EventReportPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(EventReportPdu left, EventReportPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 4; // this._eventType - marshalSize += 4; // this._padding1 - marshalSize += 4; // this._fixedDatumRecordCount - marshalSize += 4; // this._variableDatumRecordCount - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - FixedDatum listElement = (FixedDatum)this._fixedDatums[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - VariableDatum listElement = (VariableDatum)this._variableDatums[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Type of event - /// - [XmlElement(Type = typeof(uint), ElementName = "eventType")] - public uint EventType - { - get - { - return this._eventType; - } - - set - { - this._eventType = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(uint), ElementName = "padding1")] - public uint Padding1 - { - get - { - return this._padding1; - } - - set - { - this._padding1 = value; - } - } - - /// - /// Gets or sets the Number of fixed datum records - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getfixedDatumRecordCount method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "fixedDatumRecordCount")] - public uint FixedDatumRecordCount - { - get - { - return this._fixedDatumRecordCount; - } - - set - { - this._fixedDatumRecordCount = value; - } - } - - /// - /// Gets or sets the Number of variable datum records - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getvariableDatumRecordCount method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "variableDatumRecordCount")] - public uint VariableDatumRecordCount - { - get - { - return this._variableDatumRecordCount; - } - - set - { - this._variableDatumRecordCount = value; - } - } - - /// - /// Gets the variable length list of fixed datums - /// - [XmlElement(ElementName = "fixedDatumsList", Type = typeof(List))] - public List FixedDatums - { - get - { - return this._fixedDatums; - } - } - - /// - /// Gets the variable length list of variable length datums - /// - [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] - public List VariableDatums - { - get - { - return this._variableDatums; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._eventType); - dos.WriteUnsignedInt((uint)this._padding1); - dos.WriteUnsignedInt((uint)this._fixedDatums.Count); - dos.WriteUnsignedInt((uint)this._variableDatums.Count); - - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; - aFixedDatum.Marshal(dos); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; - aVariableDatum.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._eventType = dis.ReadUnsignedInt(); - this._padding1 = dis.ReadUnsignedInt(); - this._fixedDatumRecordCount = dis.ReadUnsignedInt(); - this._variableDatumRecordCount = dis.ReadUnsignedInt(); - - for (int idx = 0; idx < this.FixedDatumRecordCount; idx++) - { - FixedDatum anX = new FixedDatum(); - anX.Unmarshal(dis); - this._fixedDatums.Add(anX); - } - - for (int idx = 0; idx < this.VariableDatumRecordCount; idx++) - { - VariableDatum anX = new VariableDatum(); - anX.Unmarshal(dis); - this._variableDatums.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._eventType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fixedDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - sb.AppendLine(""); - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; - aFixedDatum.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - sb.AppendLine(""); - VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; - aVariableDatum.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as EventReportPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(EventReportPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._eventType != obj._eventType) - { - ivarsEqual = false; - } - - if (this._padding1 != obj._padding1) - { - ivarsEqual = false; - } - - if (this._fixedDatumRecordCount != obj._fixedDatumRecordCount) - { - ivarsEqual = false; - } - - if (this._variableDatumRecordCount != obj._variableDatumRecordCount) - { - ivarsEqual = false; - } - - if (this._fixedDatums.Count != obj._fixedDatums.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - if (!this._fixedDatums[idx].Equals(obj._fixedDatums[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._variableDatums.Count != obj._variableDatums.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._eventType.GetHashCode(); - result = GenerateHash(result) ^ this._padding1.GetHashCode(); - result = GenerateHash(result) ^ this._fixedDatumRecordCount.GetHashCode(); - result = GenerateHash(result) ^ this._variableDatumRecordCount.GetHashCode(); - - if (this._fixedDatums.Count > 0) - { - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - result = GenerateHash(result) ^ this._fixedDatums[idx].GetHashCode(); - } - } - - if (this._variableDatums.Count > 0) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.3.6.11. Reports occurance of a significant event to the simulation manager + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(FixedDatum))] + [XmlInclude(typeof(VariableDatum))] + public partial class EventReportPdu : SimulationManagementPdu, IEquatable + { + /// + /// Type of event + /// + private uint _eventType; + + /// + /// padding + /// + private uint _padding1; + + /// + /// Number of fixed datum records + /// + private uint _fixedDatumRecordCount; + + /// + /// Number of variable datum records + /// + private uint _variableDatumRecordCount; + + /// + /// variable length list of fixed datums + /// + private List _fixedDatums = new List(); + + /// + /// variable length list of variable length datums + /// + private List _variableDatums = new List(); + + /// + /// Initializes a new instance of the class. + /// + public EventReportPdu() + { + PduType = (byte)21; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(EventReportPdu left, EventReportPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(EventReportPdu left, EventReportPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 4; // this._eventType + marshalSize += 4; // this._padding1 + marshalSize += 4; // this._fixedDatumRecordCount + marshalSize += 4; // this._variableDatumRecordCount + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + FixedDatum listElement = (FixedDatum)this._fixedDatums[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + VariableDatum listElement = (VariableDatum)this._variableDatums[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Type of event + /// + [XmlElement(Type = typeof(uint), ElementName = "eventType")] + public uint EventType + { + get + { + return this._eventType; + } + + set + { + this._eventType = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(uint), ElementName = "padding1")] + public uint Padding1 + { + get + { + return this._padding1; + } + + set + { + this._padding1 = value; + } + } + + /// + /// Gets or sets the Number of fixed datum records + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getfixedDatumRecordCount method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "fixedDatumRecordCount")] + public uint FixedDatumRecordCount + { + get + { + return this._fixedDatumRecordCount; + } + + set + { + this._fixedDatumRecordCount = value; + } + } + + /// + /// Gets or sets the Number of variable datum records + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getvariableDatumRecordCount method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "variableDatumRecordCount")] + public uint VariableDatumRecordCount + { + get + { + return this._variableDatumRecordCount; + } + + set + { + this._variableDatumRecordCount = value; + } + } + + /// + /// Gets the variable length list of fixed datums + /// + [XmlElement(ElementName = "fixedDatumsList", Type = typeof(List))] + public List FixedDatums + { + get + { + return this._fixedDatums; + } + } + + /// + /// Gets the variable length list of variable length datums + /// + [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] + public List VariableDatums + { + get + { + return this._variableDatums; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._eventType); + dos.WriteUnsignedInt((uint)this._padding1); + dos.WriteUnsignedInt((uint)this._fixedDatums.Count); + dos.WriteUnsignedInt((uint)this._variableDatums.Count); + + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; + aFixedDatum.Marshal(dos); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; + aVariableDatum.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._eventType = dis.ReadUnsignedInt(); + this._padding1 = dis.ReadUnsignedInt(); + this._fixedDatumRecordCount = dis.ReadUnsignedInt(); + this._variableDatumRecordCount = dis.ReadUnsignedInt(); + + for (int idx = 0; idx < this.FixedDatumRecordCount; idx++) + { + FixedDatum anX = new FixedDatum(); + anX.Unmarshal(dis); + this._fixedDatums.Add(anX); + } + + for (int idx = 0; idx < this.VariableDatumRecordCount; idx++) + { + VariableDatum anX = new VariableDatum(); + anX.Unmarshal(dis); + this._variableDatums.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._eventType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fixedDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + sb.AppendLine(""); + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; + aFixedDatum.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + sb.AppendLine(""); + VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; + aVariableDatum.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as EventReportPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(EventReportPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._eventType != obj._eventType) + { + ivarsEqual = false; + } + + if (this._padding1 != obj._padding1) + { + ivarsEqual = false; + } + + if (this._fixedDatumRecordCount != obj._fixedDatumRecordCount) + { + ivarsEqual = false; + } + + if (this._variableDatumRecordCount != obj._variableDatumRecordCount) + { + ivarsEqual = false; + } + + if (this._fixedDatums.Count != obj._fixedDatums.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + if (!this._fixedDatums[idx].Equals(obj._fixedDatums[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._variableDatums.Count != obj._variableDatums.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._eventType.GetHashCode(); + result = GenerateHash(result) ^ this._padding1.GetHashCode(); + result = GenerateHash(result) ^ this._fixedDatumRecordCount.GetHashCode(); + result = GenerateHash(result) ^ this._variableDatumRecordCount.GetHashCode(); + + if (this._fixedDatums.Count > 0) + { + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + result = GenerateHash(result) ^ this._fixedDatums[idx].GetHashCode(); + } + } + + if (this._variableDatums.Count > 0) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/FirePdu.cs b/Libs/CsharpDis6/Dis1995/Generated/FirePdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/FirePdu.cs rename to Libs/CsharpDis6/Dis1995/Generated/FirePdu.cs index 52472c1..e29c7b2 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/FirePdu.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/FirePdu.cs @@ -1,508 +1,508 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Sectioin 5.3.4.1. Information about someone firing something - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(EventID))] - [XmlInclude(typeof(Vector3Double))] - [XmlInclude(typeof(BurstDescriptor))] - [XmlInclude(typeof(Vector3Float))] - public partial class FirePdu : Warfare, IEquatable - { - /// - /// ID of the munition that is being shot - /// - private EntityID _munitionID = new EntityID(); - - /// - /// ID of event - /// - private EventID _eventID = new EventID(); - - private int _fireMissionIndex; - - /// - /// location of the firing event - /// - private Vector3Double _locationInWorldCoordinates = new Vector3Double(); - - /// - /// Describes munitions used in the firing event - /// - private BurstDescriptor _burstDescriptor = new BurstDescriptor(); - - /// - /// Velocity of the ammunition - /// - private Vector3Float _velocity = new Vector3Float(); - - /// - /// range to the target - /// - private float _range; - - /// - /// Initializes a new instance of the class. - /// - public FirePdu() - { - PduType = (byte)2; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(FirePdu left, FirePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(FirePdu left, FirePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._munitionID.GetMarshalledSize(); // this._munitionID - marshalSize += this._eventID.GetMarshalledSize(); // this._eventID - marshalSize += 4; // this._fireMissionIndex - marshalSize += this._locationInWorldCoordinates.GetMarshalledSize(); // this._locationInWorldCoordinates - marshalSize += this._burstDescriptor.GetMarshalledSize(); // this._burstDescriptor - marshalSize += this._velocity.GetMarshalledSize(); // this._velocity - marshalSize += 4; // this._range - return marshalSize; - } - - /// - /// Gets or sets the ID of the munition that is being shot - /// - [XmlElement(Type = typeof(EntityID), ElementName = "munitionID")] - public EntityID MunitionID - { - get - { - return this._munitionID; - } - - set - { - this._munitionID = value; - } - } - - /// - /// Gets or sets the ID of event - /// - [XmlElement(Type = typeof(EventID), ElementName = "eventID")] - public EventID EventID - { - get - { - return this._eventID; - } - - set - { - this._eventID = value; - } - } - - /// - /// Gets or sets the fireMissionIndex - /// - [XmlElement(Type = typeof(int), ElementName = "fireMissionIndex")] - public int FireMissionIndex - { - get - { - return this._fireMissionIndex; - } - - set - { - this._fireMissionIndex = value; - } - } - - /// - /// Gets or sets the location of the firing event - /// - [XmlElement(Type = typeof(Vector3Double), ElementName = "locationInWorldCoordinates")] - public Vector3Double LocationInWorldCoordinates - { - get - { - return this._locationInWorldCoordinates; - } - - set - { - this._locationInWorldCoordinates = value; - } - } - - /// - /// Gets or sets the Describes munitions used in the firing event - /// - [XmlElement(Type = typeof(BurstDescriptor), ElementName = "burstDescriptor")] - public BurstDescriptor BurstDescriptor - { - get - { - return this._burstDescriptor; - } - - set - { - this._burstDescriptor = value; - } - } - - /// - /// Gets or sets the Velocity of the ammunition - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "velocity")] - public Vector3Float Velocity - { - get - { - return this._velocity; - } - - set - { - this._velocity = value; - } - } - - /// - /// Gets or sets the range to the target - /// - [XmlElement(Type = typeof(float), ElementName = "range")] - public float Range - { - get - { - return this._range; - } - - set - { - this._range = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._munitionID.Marshal(dos); - this._eventID.Marshal(dos); - dos.WriteInt((int)this._fireMissionIndex); - this._locationInWorldCoordinates.Marshal(dos); - this._burstDescriptor.Marshal(dos); - this._velocity.Marshal(dos); - dos.WriteFloat((float)this._range); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._munitionID.Unmarshal(dis); - this._eventID.Unmarshal(dis); - this._fireMissionIndex = dis.ReadInt(); - this._locationInWorldCoordinates.Unmarshal(dis); - this._burstDescriptor.Unmarshal(dis); - this._velocity.Unmarshal(dis); - this._range = dis.ReadFloat(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._munitionID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._eventID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._fireMissionIndex.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._locationInWorldCoordinates.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._burstDescriptor.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._velocity.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._range.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as FirePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(FirePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._munitionID.Equals(obj._munitionID)) - { - ivarsEqual = false; - } - - if (!this._eventID.Equals(obj._eventID)) - { - ivarsEqual = false; - } - - if (this._fireMissionIndex != obj._fireMissionIndex) - { - ivarsEqual = false; - } - - if (!this._locationInWorldCoordinates.Equals(obj._locationInWorldCoordinates)) - { - ivarsEqual = false; - } - - if (!this._burstDescriptor.Equals(obj._burstDescriptor)) - { - ivarsEqual = false; - } - - if (!this._velocity.Equals(obj._velocity)) - { - ivarsEqual = false; - } - - if (this._range != obj._range) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._munitionID.GetHashCode(); - result = GenerateHash(result) ^ this._eventID.GetHashCode(); - result = GenerateHash(result) ^ this._fireMissionIndex.GetHashCode(); - result = GenerateHash(result) ^ this._locationInWorldCoordinates.GetHashCode(); - result = GenerateHash(result) ^ this._burstDescriptor.GetHashCode(); - result = GenerateHash(result) ^ this._velocity.GetHashCode(); - result = GenerateHash(result) ^ this._range.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Sectioin 5.3.4.1. Information about someone firing something + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(EventID))] + [XmlInclude(typeof(Vector3Double))] + [XmlInclude(typeof(BurstDescriptor))] + [XmlInclude(typeof(Vector3Float))] + public partial class FirePdu : Warfare, IEquatable + { + /// + /// ID of the munition that is being shot + /// + private EntityID _munitionID = new EntityID(); + + /// + /// ID of event + /// + private EventID _eventID = new EventID(); + + private int _fireMissionIndex; + + /// + /// location of the firing event + /// + private Vector3Double _locationInWorldCoordinates = new Vector3Double(); + + /// + /// Describes munitions used in the firing event + /// + private BurstDescriptor _burstDescriptor = new BurstDescriptor(); + + /// + /// Velocity of the ammunition + /// + private Vector3Float _velocity = new Vector3Float(); + + /// + /// range to the target + /// + private float _range; + + /// + /// Initializes a new instance of the class. + /// + public FirePdu() + { + PduType = (byte)2; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(FirePdu left, FirePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(FirePdu left, FirePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._munitionID.GetMarshalledSize(); // this._munitionID + marshalSize += this._eventID.GetMarshalledSize(); // this._eventID + marshalSize += 4; // this._fireMissionIndex + marshalSize += this._locationInWorldCoordinates.GetMarshalledSize(); // this._locationInWorldCoordinates + marshalSize += this._burstDescriptor.GetMarshalledSize(); // this._burstDescriptor + marshalSize += this._velocity.GetMarshalledSize(); // this._velocity + marshalSize += 4; // this._range + return marshalSize; + } + + /// + /// Gets or sets the ID of the munition that is being shot + /// + [XmlElement(Type = typeof(EntityID), ElementName = "munitionID")] + public EntityID MunitionID + { + get + { + return this._munitionID; + } + + set + { + this._munitionID = value; + } + } + + /// + /// Gets or sets the ID of event + /// + [XmlElement(Type = typeof(EventID), ElementName = "eventID")] + public EventID EventID + { + get + { + return this._eventID; + } + + set + { + this._eventID = value; + } + } + + /// + /// Gets or sets the fireMissionIndex + /// + [XmlElement(Type = typeof(int), ElementName = "fireMissionIndex")] + public int FireMissionIndex + { + get + { + return this._fireMissionIndex; + } + + set + { + this._fireMissionIndex = value; + } + } + + /// + /// Gets or sets the location of the firing event + /// + [XmlElement(Type = typeof(Vector3Double), ElementName = "locationInWorldCoordinates")] + public Vector3Double LocationInWorldCoordinates + { + get + { + return this._locationInWorldCoordinates; + } + + set + { + this._locationInWorldCoordinates = value; + } + } + + /// + /// Gets or sets the Describes munitions used in the firing event + /// + [XmlElement(Type = typeof(BurstDescriptor), ElementName = "burstDescriptor")] + public BurstDescriptor BurstDescriptor + { + get + { + return this._burstDescriptor; + } + + set + { + this._burstDescriptor = value; + } + } + + /// + /// Gets or sets the Velocity of the ammunition + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "velocity")] + public Vector3Float Velocity + { + get + { + return this._velocity; + } + + set + { + this._velocity = value; + } + } + + /// + /// Gets or sets the range to the target + /// + [XmlElement(Type = typeof(float), ElementName = "range")] + public float Range + { + get + { + return this._range; + } + + set + { + this._range = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._munitionID.Marshal(dos); + this._eventID.Marshal(dos); + dos.WriteInt((int)this._fireMissionIndex); + this._locationInWorldCoordinates.Marshal(dos); + this._burstDescriptor.Marshal(dos); + this._velocity.Marshal(dos); + dos.WriteFloat((float)this._range); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._munitionID.Unmarshal(dis); + this._eventID.Unmarshal(dis); + this._fireMissionIndex = dis.ReadInt(); + this._locationInWorldCoordinates.Unmarshal(dis); + this._burstDescriptor.Unmarshal(dis); + this._velocity.Unmarshal(dis); + this._range = dis.ReadFloat(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._munitionID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._eventID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._fireMissionIndex.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._locationInWorldCoordinates.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._burstDescriptor.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._velocity.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._range.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as FirePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(FirePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._munitionID.Equals(obj._munitionID)) + { + ivarsEqual = false; + } + + if (!this._eventID.Equals(obj._eventID)) + { + ivarsEqual = false; + } + + if (this._fireMissionIndex != obj._fireMissionIndex) + { + ivarsEqual = false; + } + + if (!this._locationInWorldCoordinates.Equals(obj._locationInWorldCoordinates)) + { + ivarsEqual = false; + } + + if (!this._burstDescriptor.Equals(obj._burstDescriptor)) + { + ivarsEqual = false; + } + + if (!this._velocity.Equals(obj._velocity)) + { + ivarsEqual = false; + } + + if (this._range != obj._range) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._munitionID.GetHashCode(); + result = GenerateHash(result) ^ this._eventID.GetHashCode(); + result = GenerateHash(result) ^ this._fireMissionIndex.GetHashCode(); + result = GenerateHash(result) ^ this._locationInWorldCoordinates.GetHashCode(); + result = GenerateHash(result) ^ this._burstDescriptor.GetHashCode(); + result = GenerateHash(result) ^ this._velocity.GetHashCode(); + result = GenerateHash(result) ^ this._range.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/FixedDatum.cs b/Libs/CsharpDis6/Dis1995/Generated/FixedDatum.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/FixedDatum.cs rename to Libs/CsharpDis6/Dis1995/Generated/FixedDatum.cs index 2622206..4246664 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/FixedDatum.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/FixedDatum.cs @@ -1,332 +1,332 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.2.18. Fixed Datum Record - /// - [Serializable] - [XmlRoot] - public partial class FixedDatum - { - /// - /// ID of the fixed datum - /// - private uint _fixedDatumID; - - /// - /// Value for the fixed datum - /// - private uint _fixedDatumValue; - - /// - /// Initializes a new instance of the class. - /// - public FixedDatum() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(FixedDatum left, FixedDatum right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(FixedDatum left, FixedDatum right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._fixedDatumID - marshalSize += 4; // this._fixedDatumValue - return marshalSize; - } - - /// - /// Gets or sets the ID of the fixed datum - /// - [XmlElement(Type = typeof(uint), ElementName = "fixedDatumID")] - public uint FixedDatumID - { - get - { - return this._fixedDatumID; - } - - set - { - this._fixedDatumID = value; - } - } - - /// - /// Gets or sets the Value for the fixed datum - /// - [XmlElement(Type = typeof(uint), ElementName = "fixedDatumValue")] - public uint FixedDatumValue - { - get - { - return this._fixedDatumValue; - } - - set - { - this._fixedDatumValue = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._fixedDatumID); - dos.WriteUnsignedInt((uint)this._fixedDatumValue); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._fixedDatumID = dis.ReadUnsignedInt(); - this._fixedDatumValue = dis.ReadUnsignedInt(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._fixedDatumID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fixedDatumValue.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as FixedDatum; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(FixedDatum obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._fixedDatumID != obj._fixedDatumID) - { - ivarsEqual = false; - } - - if (this._fixedDatumValue != obj._fixedDatumValue) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._fixedDatumID.GetHashCode(); - result = GenerateHash(result) ^ this._fixedDatumValue.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.2.18. Fixed Datum Record + /// + [Serializable] + [XmlRoot] + public partial class FixedDatum + { + /// + /// ID of the fixed datum + /// + private uint _fixedDatumID; + + /// + /// Value for the fixed datum + /// + private uint _fixedDatumValue; + + /// + /// Initializes a new instance of the class. + /// + public FixedDatum() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(FixedDatum left, FixedDatum right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(FixedDatum left, FixedDatum right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._fixedDatumID + marshalSize += 4; // this._fixedDatumValue + return marshalSize; + } + + /// + /// Gets or sets the ID of the fixed datum + /// + [XmlElement(Type = typeof(uint), ElementName = "fixedDatumID")] + public uint FixedDatumID + { + get + { + return this._fixedDatumID; + } + + set + { + this._fixedDatumID = value; + } + } + + /// + /// Gets or sets the Value for the fixed datum + /// + [XmlElement(Type = typeof(uint), ElementName = "fixedDatumValue")] + public uint FixedDatumValue + { + get + { + return this._fixedDatumValue; + } + + set + { + this._fixedDatumValue = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._fixedDatumID); + dos.WriteUnsignedInt((uint)this._fixedDatumValue); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._fixedDatumID = dis.ReadUnsignedInt(); + this._fixedDatumValue = dis.ReadUnsignedInt(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._fixedDatumID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fixedDatumValue.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as FixedDatum; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(FixedDatum obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._fixedDatumID != obj._fixedDatumID) + { + ivarsEqual = false; + } + + if (this._fixedDatumValue != obj._fixedDatumValue) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._fixedDatumID.GetHashCode(); + result = GenerateHash(result) ^ this._fixedDatumValue.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/FundamentalParameterData.cs b/Libs/CsharpDis6/Dis1995/Generated/FundamentalParameterData.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/FundamentalParameterData.cs rename to Libs/CsharpDis6/Dis1995/Generated/FundamentalParameterData.cs index 73eb03c..a893a74 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/FundamentalParameterData.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/FundamentalParameterData.cs @@ -1,588 +1,588 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.2.22. Contains electromagnetic emmision regineratin parameters that are variable throughout a scenario dependent on the actions of the participants in the simulation. Also provides basic parametric data that may be used to support low-fidelity simulations. - /// - [Serializable] - [XmlRoot] - public partial class FundamentalParameterData - { - /// - /// center frequency of the emission in hertz. - /// - private float _frequency; - - /// - /// Bandwidth of the frequencies corresponding to the fequency field. - /// - private float _frequencyRange; - - /// - /// Effective radiated power for the emission in DdBm. For a radar noise jammer, indicates the peak of the transmitted power. - /// - private float _effectiveRadiatedPower; - - /// - /// Average repetition frequency of the emission in hertz. - /// - private float _pulseRepetitionFrequency; - - /// - /// Average pulse width of the emission in microseconds. - /// - private float _pusleWidth; - - /// - /// Specifies the beam azimuth an elevation centers and corresponding half-angles to describe the scan volume - /// - private float _beamAzimuthCenter; - - /// - /// Specifies the beam azimuth sweep to determine scan volume - /// - private float _beamAzimuthSweep; - - /// - /// Specifies the beam elevation center to determine scan volume - /// - private float _beamElevationCenter; - - /// - /// Specifies the beam elevation sweep to determine scan volume - /// - private float _beamElevationSweep; - - /// - /// allows receiver to synchronize its regenerated scan pattern to that of the emmitter. Specifies the percentage of time a scan is through its pattern from its origion. - /// - private float _beamSweepSync; - - /// - /// Initializes a new instance of the class. - /// - public FundamentalParameterData() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(FundamentalParameterData left, FundamentalParameterData right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(FundamentalParameterData left, FundamentalParameterData right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._frequency - marshalSize += 4; // this._frequencyRange - marshalSize += 4; // this._effectiveRadiatedPower - marshalSize += 4; // this._pulseRepetitionFrequency - marshalSize += 4; // this._pusleWidth - marshalSize += 4; // this._beamAzimuthCenter - marshalSize += 4; // this._beamAzimuthSweep - marshalSize += 4; // this._beamElevationCenter - marshalSize += 4; // this._beamElevationSweep - marshalSize += 4; // this._beamSweepSync - return marshalSize; - } - - /// - /// Gets or sets the center frequency of the emission in hertz. - /// - [XmlElement(Type = typeof(float), ElementName = "frequency")] - public float Frequency - { - get - { - return this._frequency; - } - - set - { - this._frequency = value; - } - } - - /// - /// Gets or sets the Bandwidth of the frequencies corresponding to the fequency field. - /// - [XmlElement(Type = typeof(float), ElementName = "frequencyRange")] - public float FrequencyRange - { - get - { - return this._frequencyRange; - } - - set - { - this._frequencyRange = value; - } - } - - /// - /// Gets or sets the Effective radiated power for the emission in DdBm. For a radar noise jammer, indicates the peak of the transmitted power. - /// - [XmlElement(Type = typeof(float), ElementName = "effectiveRadiatedPower")] - public float EffectiveRadiatedPower - { - get - { - return this._effectiveRadiatedPower; - } - - set - { - this._effectiveRadiatedPower = value; - } - } - - /// - /// Gets or sets the Average repetition frequency of the emission in hertz. - /// - [XmlElement(Type = typeof(float), ElementName = "pulseRepetitionFrequency")] - public float PulseRepetitionFrequency - { - get - { - return this._pulseRepetitionFrequency; - } - - set - { - this._pulseRepetitionFrequency = value; - } - } - - /// - /// Gets or sets the Average pulse width of the emission in microseconds. - /// - [XmlElement(Type = typeof(float), ElementName = "pusleWidth")] - public float PusleWidth - { - get - { - return this._pusleWidth; - } - - set - { - this._pusleWidth = value; - } - } - - /// - /// Gets or sets the Specifies the beam azimuth an elevation centers and corresponding half-angles to describe the scan volume - /// - [XmlElement(Type = typeof(float), ElementName = "beamAzimuthCenter")] - public float BeamAzimuthCenter - { - get - { - return this._beamAzimuthCenter; - } - - set - { - this._beamAzimuthCenter = value; - } - } - - /// - /// Gets or sets the Specifies the beam azimuth sweep to determine scan volume - /// - [XmlElement(Type = typeof(float), ElementName = "beamAzimuthSweep")] - public float BeamAzimuthSweep - { - get - { - return this._beamAzimuthSweep; - } - - set - { - this._beamAzimuthSweep = value; - } - } - - /// - /// Gets or sets the Specifies the beam elevation center to determine scan volume - /// - [XmlElement(Type = typeof(float), ElementName = "beamElevationCenter")] - public float BeamElevationCenter - { - get - { - return this._beamElevationCenter; - } - - set - { - this._beamElevationCenter = value; - } - } - - /// - /// Gets or sets the Specifies the beam elevation sweep to determine scan volume - /// - [XmlElement(Type = typeof(float), ElementName = "beamElevationSweep")] - public float BeamElevationSweep - { - get - { - return this._beamElevationSweep; - } - - set - { - this._beamElevationSweep = value; - } - } - - /// - /// Gets or sets the allows receiver to synchronize its regenerated scan pattern to that of the emmitter. Specifies the percentage of time a scan is through its pattern from its origion. - /// - [XmlElement(Type = typeof(float), ElementName = "beamSweepSync")] - public float BeamSweepSync - { - get - { - return this._beamSweepSync; - } - - set - { - this._beamSweepSync = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteFloat((float)this._frequency); - dos.WriteFloat((float)this._frequencyRange); - dos.WriteFloat((float)this._effectiveRadiatedPower); - dos.WriteFloat((float)this._pulseRepetitionFrequency); - dos.WriteFloat((float)this._pusleWidth); - dos.WriteFloat((float)this._beamAzimuthCenter); - dos.WriteFloat((float)this._beamAzimuthSweep); - dos.WriteFloat((float)this._beamElevationCenter); - dos.WriteFloat((float)this._beamElevationSweep); - dos.WriteFloat((float)this._beamSweepSync); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._frequency = dis.ReadFloat(); - this._frequencyRange = dis.ReadFloat(); - this._effectiveRadiatedPower = dis.ReadFloat(); - this._pulseRepetitionFrequency = dis.ReadFloat(); - this._pusleWidth = dis.ReadFloat(); - this._beamAzimuthCenter = dis.ReadFloat(); - this._beamAzimuthSweep = dis.ReadFloat(); - this._beamElevationCenter = dis.ReadFloat(); - this._beamElevationSweep = dis.ReadFloat(); - this._beamSweepSync = dis.ReadFloat(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._frequency.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._frequencyRange.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._effectiveRadiatedPower.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pulseRepetitionFrequency.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pusleWidth.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._beamAzimuthCenter.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._beamAzimuthSweep.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._beamElevationCenter.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._beamElevationSweep.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._beamSweepSync.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as FundamentalParameterData; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(FundamentalParameterData obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._frequency != obj._frequency) - { - ivarsEqual = false; - } - - if (this._frequencyRange != obj._frequencyRange) - { - ivarsEqual = false; - } - - if (this._effectiveRadiatedPower != obj._effectiveRadiatedPower) - { - ivarsEqual = false; - } - - if (this._pulseRepetitionFrequency != obj._pulseRepetitionFrequency) - { - ivarsEqual = false; - } - - if (this._pusleWidth != obj._pusleWidth) - { - ivarsEqual = false; - } - - if (this._beamAzimuthCenter != obj._beamAzimuthCenter) - { - ivarsEqual = false; - } - - if (this._beamAzimuthSweep != obj._beamAzimuthSweep) - { - ivarsEqual = false; - } - - if (this._beamElevationCenter != obj._beamElevationCenter) - { - ivarsEqual = false; - } - - if (this._beamElevationSweep != obj._beamElevationSweep) - { - ivarsEqual = false; - } - - if (this._beamSweepSync != obj._beamSweepSync) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._frequency.GetHashCode(); - result = GenerateHash(result) ^ this._frequencyRange.GetHashCode(); - result = GenerateHash(result) ^ this._effectiveRadiatedPower.GetHashCode(); - result = GenerateHash(result) ^ this._pulseRepetitionFrequency.GetHashCode(); - result = GenerateHash(result) ^ this._pusleWidth.GetHashCode(); - result = GenerateHash(result) ^ this._beamAzimuthCenter.GetHashCode(); - result = GenerateHash(result) ^ this._beamAzimuthSweep.GetHashCode(); - result = GenerateHash(result) ^ this._beamElevationCenter.GetHashCode(); - result = GenerateHash(result) ^ this._beamElevationSweep.GetHashCode(); - result = GenerateHash(result) ^ this._beamSweepSync.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.2.22. Contains electromagnetic emmision regineratin parameters that are variable throughout a scenario dependent on the actions of the participants in the simulation. Also provides basic parametric data that may be used to support low-fidelity simulations. + /// + [Serializable] + [XmlRoot] + public partial class FundamentalParameterData + { + /// + /// center frequency of the emission in hertz. + /// + private float _frequency; + + /// + /// Bandwidth of the frequencies corresponding to the fequency field. + /// + private float _frequencyRange; + + /// + /// Effective radiated power for the emission in DdBm. For a radar noise jammer, indicates the peak of the transmitted power. + /// + private float _effectiveRadiatedPower; + + /// + /// Average repetition frequency of the emission in hertz. + /// + private float _pulseRepetitionFrequency; + + /// + /// Average pulse width of the emission in microseconds. + /// + private float _pusleWidth; + + /// + /// Specifies the beam azimuth an elevation centers and corresponding half-angles to describe the scan volume + /// + private float _beamAzimuthCenter; + + /// + /// Specifies the beam azimuth sweep to determine scan volume + /// + private float _beamAzimuthSweep; + + /// + /// Specifies the beam elevation center to determine scan volume + /// + private float _beamElevationCenter; + + /// + /// Specifies the beam elevation sweep to determine scan volume + /// + private float _beamElevationSweep; + + /// + /// allows receiver to synchronize its regenerated scan pattern to that of the emmitter. Specifies the percentage of time a scan is through its pattern from its origion. + /// + private float _beamSweepSync; + + /// + /// Initializes a new instance of the class. + /// + public FundamentalParameterData() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(FundamentalParameterData left, FundamentalParameterData right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(FundamentalParameterData left, FundamentalParameterData right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._frequency + marshalSize += 4; // this._frequencyRange + marshalSize += 4; // this._effectiveRadiatedPower + marshalSize += 4; // this._pulseRepetitionFrequency + marshalSize += 4; // this._pusleWidth + marshalSize += 4; // this._beamAzimuthCenter + marshalSize += 4; // this._beamAzimuthSweep + marshalSize += 4; // this._beamElevationCenter + marshalSize += 4; // this._beamElevationSweep + marshalSize += 4; // this._beamSweepSync + return marshalSize; + } + + /// + /// Gets or sets the center frequency of the emission in hertz. + /// + [XmlElement(Type = typeof(float), ElementName = "frequency")] + public float Frequency + { + get + { + return this._frequency; + } + + set + { + this._frequency = value; + } + } + + /// + /// Gets or sets the Bandwidth of the frequencies corresponding to the fequency field. + /// + [XmlElement(Type = typeof(float), ElementName = "frequencyRange")] + public float FrequencyRange + { + get + { + return this._frequencyRange; + } + + set + { + this._frequencyRange = value; + } + } + + /// + /// Gets or sets the Effective radiated power for the emission in DdBm. For a radar noise jammer, indicates the peak of the transmitted power. + /// + [XmlElement(Type = typeof(float), ElementName = "effectiveRadiatedPower")] + public float EffectiveRadiatedPower + { + get + { + return this._effectiveRadiatedPower; + } + + set + { + this._effectiveRadiatedPower = value; + } + } + + /// + /// Gets or sets the Average repetition frequency of the emission in hertz. + /// + [XmlElement(Type = typeof(float), ElementName = "pulseRepetitionFrequency")] + public float PulseRepetitionFrequency + { + get + { + return this._pulseRepetitionFrequency; + } + + set + { + this._pulseRepetitionFrequency = value; + } + } + + /// + /// Gets or sets the Average pulse width of the emission in microseconds. + /// + [XmlElement(Type = typeof(float), ElementName = "pusleWidth")] + public float PusleWidth + { + get + { + return this._pusleWidth; + } + + set + { + this._pusleWidth = value; + } + } + + /// + /// Gets or sets the Specifies the beam azimuth an elevation centers and corresponding half-angles to describe the scan volume + /// + [XmlElement(Type = typeof(float), ElementName = "beamAzimuthCenter")] + public float BeamAzimuthCenter + { + get + { + return this._beamAzimuthCenter; + } + + set + { + this._beamAzimuthCenter = value; + } + } + + /// + /// Gets or sets the Specifies the beam azimuth sweep to determine scan volume + /// + [XmlElement(Type = typeof(float), ElementName = "beamAzimuthSweep")] + public float BeamAzimuthSweep + { + get + { + return this._beamAzimuthSweep; + } + + set + { + this._beamAzimuthSweep = value; + } + } + + /// + /// Gets or sets the Specifies the beam elevation center to determine scan volume + /// + [XmlElement(Type = typeof(float), ElementName = "beamElevationCenter")] + public float BeamElevationCenter + { + get + { + return this._beamElevationCenter; + } + + set + { + this._beamElevationCenter = value; + } + } + + /// + /// Gets or sets the Specifies the beam elevation sweep to determine scan volume + /// + [XmlElement(Type = typeof(float), ElementName = "beamElevationSweep")] + public float BeamElevationSweep + { + get + { + return this._beamElevationSweep; + } + + set + { + this._beamElevationSweep = value; + } + } + + /// + /// Gets or sets the allows receiver to synchronize its regenerated scan pattern to that of the emmitter. Specifies the percentage of time a scan is through its pattern from its origion. + /// + [XmlElement(Type = typeof(float), ElementName = "beamSweepSync")] + public float BeamSweepSync + { + get + { + return this._beamSweepSync; + } + + set + { + this._beamSweepSync = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteFloat((float)this._frequency); + dos.WriteFloat((float)this._frequencyRange); + dos.WriteFloat((float)this._effectiveRadiatedPower); + dos.WriteFloat((float)this._pulseRepetitionFrequency); + dos.WriteFloat((float)this._pusleWidth); + dos.WriteFloat((float)this._beamAzimuthCenter); + dos.WriteFloat((float)this._beamAzimuthSweep); + dos.WriteFloat((float)this._beamElevationCenter); + dos.WriteFloat((float)this._beamElevationSweep); + dos.WriteFloat((float)this._beamSweepSync); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._frequency = dis.ReadFloat(); + this._frequencyRange = dis.ReadFloat(); + this._effectiveRadiatedPower = dis.ReadFloat(); + this._pulseRepetitionFrequency = dis.ReadFloat(); + this._pusleWidth = dis.ReadFloat(); + this._beamAzimuthCenter = dis.ReadFloat(); + this._beamAzimuthSweep = dis.ReadFloat(); + this._beamElevationCenter = dis.ReadFloat(); + this._beamElevationSweep = dis.ReadFloat(); + this._beamSweepSync = dis.ReadFloat(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._frequency.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._frequencyRange.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._effectiveRadiatedPower.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pulseRepetitionFrequency.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pusleWidth.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._beamAzimuthCenter.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._beamAzimuthSweep.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._beamElevationCenter.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._beamElevationSweep.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._beamSweepSync.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as FundamentalParameterData; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(FundamentalParameterData obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._frequency != obj._frequency) + { + ivarsEqual = false; + } + + if (this._frequencyRange != obj._frequencyRange) + { + ivarsEqual = false; + } + + if (this._effectiveRadiatedPower != obj._effectiveRadiatedPower) + { + ivarsEqual = false; + } + + if (this._pulseRepetitionFrequency != obj._pulseRepetitionFrequency) + { + ivarsEqual = false; + } + + if (this._pusleWidth != obj._pusleWidth) + { + ivarsEqual = false; + } + + if (this._beamAzimuthCenter != obj._beamAzimuthCenter) + { + ivarsEqual = false; + } + + if (this._beamAzimuthSweep != obj._beamAzimuthSweep) + { + ivarsEqual = false; + } + + if (this._beamElevationCenter != obj._beamElevationCenter) + { + ivarsEqual = false; + } + + if (this._beamElevationSweep != obj._beamElevationSweep) + { + ivarsEqual = false; + } + + if (this._beamSweepSync != obj._beamSweepSync) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._frequency.GetHashCode(); + result = GenerateHash(result) ^ this._frequencyRange.GetHashCode(); + result = GenerateHash(result) ^ this._effectiveRadiatedPower.GetHashCode(); + result = GenerateHash(result) ^ this._pulseRepetitionFrequency.GetHashCode(); + result = GenerateHash(result) ^ this._pusleWidth.GetHashCode(); + result = GenerateHash(result) ^ this._beamAzimuthCenter.GetHashCode(); + result = GenerateHash(result) ^ this._beamAzimuthSweep.GetHashCode(); + result = GenerateHash(result) ^ this._beamElevationCenter.GetHashCode(); + result = GenerateHash(result) ^ this._beamElevationSweep.GetHashCode(); + result = GenerateHash(result) ^ this._beamSweepSync.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/LogisticsPdu.cs b/Libs/CsharpDis6/Dis1995/Generated/LogisticsPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/LogisticsPdu.cs rename to Libs/CsharpDis6/Dis1995/Generated/LogisticsPdu.cs index 1cca11c..7bcabf1 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/LogisticsPdu.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/LogisticsPdu.cs @@ -1,271 +1,271 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.3.5. Abstract superclass for logistics PDUs - /// - [Serializable] - [XmlRoot] - public partial class LogisticsPdu : Pdu, IEquatable - { - /// - /// Initializes a new instance of the class. - /// - public LogisticsPdu() - { - ProtocolFamily = (byte)3; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(LogisticsPdu left, LogisticsPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(LogisticsPdu left, LogisticsPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - return marshalSize; - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public virtual void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as LogisticsPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(LogisticsPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.3.5. Abstract superclass for logistics PDUs + /// + [Serializable] + [XmlRoot] + public partial class LogisticsPdu : Pdu, IEquatable + { + /// + /// Initializes a new instance of the class. + /// + public LogisticsPdu() + { + ProtocolFamily = (byte)3; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(LogisticsPdu left, LogisticsPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(LogisticsPdu left, LogisticsPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + return marshalSize; + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public virtual void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as LogisticsPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(LogisticsPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/ModulationType.cs b/Libs/CsharpDis6/Dis1995/Generated/ModulationType.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/ModulationType.cs rename to Libs/CsharpDis6/Dis1995/Generated/ModulationType.cs index 1133dcd..dbd36ad 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/ModulationType.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/ModulationType.cs @@ -1,396 +1,396 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Radio modulation - /// - [Serializable] - [XmlRoot] - public partial class ModulationType - { - /// - /// spread spectrum, 16 bit boolean array - /// - private ushort _spreadSpectrum; - - /// - /// major - /// - private ushort _major; - - /// - /// detail - /// - private ushort _detail; - - /// - /// system - /// - private ushort _system; - - /// - /// Initializes a new instance of the class. - /// - public ModulationType() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ModulationType left, ModulationType right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ModulationType left, ModulationType right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 2; // this._spreadSpectrum - marshalSize += 2; // this._major - marshalSize += 2; // this._detail - marshalSize += 2; // this._system - return marshalSize; - } - - /// - /// Gets or sets the spread spectrum, 16 bit boolean array - /// - [XmlElement(Type = typeof(ushort), ElementName = "spreadSpectrum")] - public ushort SpreadSpectrum - { - get - { - return this._spreadSpectrum; - } - - set - { - this._spreadSpectrum = value; - } - } - - /// - /// Gets or sets the major - /// - [XmlElement(Type = typeof(ushort), ElementName = "major")] - public ushort Major - { - get - { - return this._major; - } - - set - { - this._major = value; - } - } - - /// - /// Gets or sets the detail - /// - [XmlElement(Type = typeof(ushort), ElementName = "detail")] - public ushort Detail - { - get - { - return this._detail; - } - - set - { - this._detail = value; - } - } - - /// - /// Gets or sets the system - /// - [XmlElement(Type = typeof(ushort), ElementName = "system")] - public ushort System_ - { - get - { - return this._system; - } - - set - { - this._system = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._spreadSpectrum); - dos.WriteUnsignedShort((ushort)this._major); - dos.WriteUnsignedShort((ushort)this._detail); - dos.WriteUnsignedShort((ushort)this._system); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._spreadSpectrum = dis.ReadUnsignedShort(); - this._major = dis.ReadUnsignedShort(); - this._detail = dis.ReadUnsignedShort(); - this._system = dis.ReadUnsignedShort(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._spreadSpectrum.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._major.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._detail.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._system.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ModulationType; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ModulationType obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._spreadSpectrum != obj._spreadSpectrum) - { - ivarsEqual = false; - } - - if (this._major != obj._major) - { - ivarsEqual = false; - } - - if (this._detail != obj._detail) - { - ivarsEqual = false; - } - - if (this._system != obj._system) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._spreadSpectrum.GetHashCode(); - result = GenerateHash(result) ^ this._major.GetHashCode(); - result = GenerateHash(result) ^ this._detail.GetHashCode(); - result = GenerateHash(result) ^ this._system.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Radio modulation + /// + [Serializable] + [XmlRoot] + public partial class ModulationType + { + /// + /// spread spectrum, 16 bit boolean array + /// + private ushort _spreadSpectrum; + + /// + /// major + /// + private ushort _major; + + /// + /// detail + /// + private ushort _detail; + + /// + /// system + /// + private ushort _system; + + /// + /// Initializes a new instance of the class. + /// + public ModulationType() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ModulationType left, ModulationType right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ModulationType left, ModulationType right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 2; // this._spreadSpectrum + marshalSize += 2; // this._major + marshalSize += 2; // this._detail + marshalSize += 2; // this._system + return marshalSize; + } + + /// + /// Gets or sets the spread spectrum, 16 bit boolean array + /// + [XmlElement(Type = typeof(ushort), ElementName = "spreadSpectrum")] + public ushort SpreadSpectrum + { + get + { + return this._spreadSpectrum; + } + + set + { + this._spreadSpectrum = value; + } + } + + /// + /// Gets or sets the major + /// + [XmlElement(Type = typeof(ushort), ElementName = "major")] + public ushort Major + { + get + { + return this._major; + } + + set + { + this._major = value; + } + } + + /// + /// Gets or sets the detail + /// + [XmlElement(Type = typeof(ushort), ElementName = "detail")] + public ushort Detail + { + get + { + return this._detail; + } + + set + { + this._detail = value; + } + } + + /// + /// Gets or sets the system + /// + [XmlElement(Type = typeof(ushort), ElementName = "system")] + public ushort System_ + { + get + { + return this._system; + } + + set + { + this._system = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._spreadSpectrum); + dos.WriteUnsignedShort((ushort)this._major); + dos.WriteUnsignedShort((ushort)this._detail); + dos.WriteUnsignedShort((ushort)this._system); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._spreadSpectrum = dis.ReadUnsignedShort(); + this._major = dis.ReadUnsignedShort(); + this._detail = dis.ReadUnsignedShort(); + this._system = dis.ReadUnsignedShort(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._spreadSpectrum.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._major.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._detail.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._system.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ModulationType; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ModulationType obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._spreadSpectrum != obj._spreadSpectrum) + { + ivarsEqual = false; + } + + if (this._major != obj._major) + { + ivarsEqual = false; + } + + if (this._detail != obj._detail) + { + ivarsEqual = false; + } + + if (this._system != obj._system) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._spreadSpectrum.GetHashCode(); + result = GenerateHash(result) ^ this._major.GetHashCode(); + result = GenerateHash(result) ^ this._detail.GetHashCode(); + result = GenerateHash(result) ^ this._system.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/Orientation.cs b/Libs/CsharpDis6/Dis1995/Generated/Orientation.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/Orientation.cs rename to Libs/CsharpDis6/Dis1995/Generated/Orientation.cs index 0d53662..c6fe174 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/Orientation.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/Orientation.cs @@ -1,355 +1,355 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.2.17. Three floating point values representing an orientation, psi, theta, and phi, aka the euler angles, in radians - /// - [Serializable] - [XmlRoot] - public partial class Orientation - { - private float _psi; - - private float _theta; - - private float _phi; - - /// - /// Initializes a new instance of the class. - /// - public Orientation() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(Orientation left, Orientation right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(Orientation left, Orientation right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._psi - marshalSize += 4; // this._theta - marshalSize += 4; // this._phi - return marshalSize; - } - - /// - /// Gets or sets the psi - /// - [XmlElement(Type = typeof(float), ElementName = "psi")] - public float Psi - { - get - { - return this._psi; - } - - set - { - this._psi = value; - } - } - - /// - /// Gets or sets the theta - /// - [XmlElement(Type = typeof(float), ElementName = "theta")] - public float Theta - { - get - { - return this._theta; - } - - set - { - this._theta = value; - } - } - - /// - /// Gets or sets the phi - /// - [XmlElement(Type = typeof(float), ElementName = "phi")] - public float Phi - { - get - { - return this._phi; - } - - set - { - this._phi = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteFloat((float)this._psi); - dos.WriteFloat((float)this._theta); - dos.WriteFloat((float)this._phi); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._psi = dis.ReadFloat(); - this._theta = dis.ReadFloat(); - this._phi = dis.ReadFloat(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._psi.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._theta.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._phi.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as Orientation; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(Orientation obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._psi != obj._psi) - { - ivarsEqual = false; - } - - if (this._theta != obj._theta) - { - ivarsEqual = false; - } - - if (this._phi != obj._phi) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._psi.GetHashCode(); - result = GenerateHash(result) ^ this._theta.GetHashCode(); - result = GenerateHash(result) ^ this._phi.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.2.17. Three floating point values representing an orientation, psi, theta, and phi, aka the euler angles, in radians + /// + [Serializable] + [XmlRoot] + public partial class Orientation + { + private float _psi; + + private float _theta; + + private float _phi; + + /// + /// Initializes a new instance of the class. + /// + public Orientation() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(Orientation left, Orientation right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(Orientation left, Orientation right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._psi + marshalSize += 4; // this._theta + marshalSize += 4; // this._phi + return marshalSize; + } + + /// + /// Gets or sets the psi + /// + [XmlElement(Type = typeof(float), ElementName = "psi")] + public float Psi + { + get + { + return this._psi; + } + + set + { + this._psi = value; + } + } + + /// + /// Gets or sets the theta + /// + [XmlElement(Type = typeof(float), ElementName = "theta")] + public float Theta + { + get + { + return this._theta; + } + + set + { + this._theta = value; + } + } + + /// + /// Gets or sets the phi + /// + [XmlElement(Type = typeof(float), ElementName = "phi")] + public float Phi + { + get + { + return this._phi; + } + + set + { + this._phi = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteFloat((float)this._psi); + dos.WriteFloat((float)this._theta); + dos.WriteFloat((float)this._phi); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._psi = dis.ReadFloat(); + this._theta = dis.ReadFloat(); + this._phi = dis.ReadFloat(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._psi.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._theta.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._phi.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as Orientation; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(Orientation obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._psi != obj._psi) + { + ivarsEqual = false; + } + + if (this._theta != obj._theta) + { + ivarsEqual = false; + } + + if (this._phi != obj._phi) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._psi.GetHashCode(); + result = GenerateHash(result) ^ this._theta.GetHashCode(); + result = GenerateHash(result) ^ this._phi.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/Pdu.cs b/Libs/CsharpDis6/Dis1995/Generated/Pdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/Pdu.cs rename to Libs/CsharpDis6/Dis1995/Generated/Pdu.cs index 7552217..997673a 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/Pdu.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/Pdu.cs @@ -1,492 +1,492 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// The superclass for all PDUs. This incorporates the PduHeader record, section 5.2.29. - /// - [Serializable] - [XmlRoot] - public partial class Pdu : PduBase, IPdu - { - /// - /// The version of the protocol. 5=DIS-1995, 6=DIS-1998. - /// - private byte _protocolVersion = 5; - - /// - /// Exercise ID - /// - private byte _exerciseID; - - /// - /// Type of pdu, unique for each PDU class - /// - private byte _pduType; - - /// - /// value that refers to the protocol family, eg SimulationManagement, et - /// - private byte _protocolFamily; - - /// - /// Timestamp value - /// - private uint _timestamp; - - /// - /// Length, in bytes, of the PDU - /// - private ushort _length; - - /// - /// zero-filled array of padding - /// - private short _padding; - - /// - /// Initializes a new instance of the class. - /// - public Pdu() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(Pdu left, Pdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(Pdu left, Pdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._protocolVersion - marshalSize += 1; // this._exerciseID - marshalSize += 1; // this._pduType - marshalSize += 1; // this._protocolFamily - marshalSize += 4; // this._timestamp - marshalSize += 2; // this._length - marshalSize += 2; // this._padding - return marshalSize; - } - - /// - /// Gets or sets the The version of the protocol. 5=DIS-1995, 6=DIS-1998. - /// - [XmlElement(Type = typeof(byte), ElementName = "protocolVersion")] - public byte ProtocolVersion - { - get - { - return this._protocolVersion; - } - - set - { - this._protocolVersion = value; - } - } - - /// - /// Gets or sets the Exercise ID - /// - [XmlElement(Type = typeof(byte), ElementName = "exerciseID")] - public byte ExerciseID - { - get - { - return this._exerciseID; - } - - set - { - this._exerciseID = value; - } - } - - /// - /// Gets or sets the Type of pdu, unique for each PDU class - /// - [XmlElement(Type = typeof(byte), ElementName = "pduType")] - public byte PduType - { - get - { - return this._pduType; - } - - set - { - this._pduType = value; - } - } - - /// - /// Gets or sets the value that refers to the protocol family, eg SimulationManagement, et - /// - [XmlElement(Type = typeof(byte), ElementName = "protocolFamily")] - public byte ProtocolFamily - { - get - { - return this._protocolFamily; - } - - set - { - this._protocolFamily = value; - } - } - - /// - /// Gets or sets the Timestamp value - /// - [XmlElement(Type = typeof(uint), ElementName = "timestamp")] - public uint Timestamp - { - get - { - return this._timestamp; - } - - set - { - this._timestamp = value; - } - } - - /// - /// Gets or sets the Length, in bytes, of the PDU - /// - [XmlElement(Type = typeof(ushort), ElementName = "length")] - public ushort Length - { - get - { - return this._length; - } - - set - { - this._length = value; - } - } - - /// - /// Gets or sets the zero-filled array of padding - /// - [XmlElement(Type = typeof(short), ElementName = "padding")] - public short Padding - { - get - { - return this._padding; - } - - set - { - this._padding = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._protocolVersion); - dos.WriteUnsignedByte((byte)this._exerciseID); - dos.WriteUnsignedByte((byte)this._pduType); - dos.WriteUnsignedByte((byte)this._protocolFamily); - dos.WriteUnsignedInt((uint)this._timestamp); - dos.WriteUnsignedShort((ushort)this._length); - dos.WriteShort((short)this._padding); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._protocolVersion = dis.ReadUnsignedByte(); - this._exerciseID = dis.ReadUnsignedByte(); - this._pduType = dis.ReadUnsignedByte(); - this._protocolFamily = dis.ReadUnsignedByte(); - this._timestamp = dis.ReadUnsignedInt(); - this._length = dis.ReadUnsignedShort(); - this._padding = dis.ReadShort(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._protocolVersion.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._exerciseID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pduType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._protocolFamily.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._timestamp.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._length.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as Pdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(Pdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._protocolVersion != obj._protocolVersion) - { - ivarsEqual = false; - } - - if (this._exerciseID != obj._exerciseID) - { - ivarsEqual = false; - } - - if (this._pduType != obj._pduType) - { - ivarsEqual = false; - } - - if (this._protocolFamily != obj._protocolFamily) - { - ivarsEqual = false; - } - - if (this._timestamp != obj._timestamp) - { - ivarsEqual = false; - } - - if (this._length != obj._length) - { - ivarsEqual = false; - } - - if (this._padding != obj._padding) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._protocolVersion.GetHashCode(); - result = GenerateHash(result) ^ this._exerciseID.GetHashCode(); - result = GenerateHash(result) ^ this._pduType.GetHashCode(); - result = GenerateHash(result) ^ this._protocolFamily.GetHashCode(); - result = GenerateHash(result) ^ this._timestamp.GetHashCode(); - result = GenerateHash(result) ^ this._length.GetHashCode(); - result = GenerateHash(result) ^ this._padding.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// The superclass for all PDUs. This incorporates the PduHeader record, section 5.2.29. + /// + [Serializable] + [XmlRoot] + public partial class Pdu : PduBase, IPdu + { + /// + /// The version of the protocol. 5=DIS-1995, 6=DIS-1998. + /// + private byte _protocolVersion = 5; + + /// + /// Exercise ID + /// + private byte _exerciseID; + + /// + /// Type of pdu, unique for each PDU class + /// + private byte _pduType; + + /// + /// value that refers to the protocol family, eg SimulationManagement, et + /// + private byte _protocolFamily; + + /// + /// Timestamp value + /// + private uint _timestamp; + + /// + /// Length, in bytes, of the PDU + /// + private ushort _length; + + /// + /// zero-filled array of padding + /// + private short _padding; + + /// + /// Initializes a new instance of the class. + /// + public Pdu() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(Pdu left, Pdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(Pdu left, Pdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._protocolVersion + marshalSize += 1; // this._exerciseID + marshalSize += 1; // this._pduType + marshalSize += 1; // this._protocolFamily + marshalSize += 4; // this._timestamp + marshalSize += 2; // this._length + marshalSize += 2; // this._padding + return marshalSize; + } + + /// + /// Gets or sets the The version of the protocol. 5=DIS-1995, 6=DIS-1998. + /// + [XmlElement(Type = typeof(byte), ElementName = "protocolVersion")] + public byte ProtocolVersion + { + get + { + return this._protocolVersion; + } + + set + { + this._protocolVersion = value; + } + } + + /// + /// Gets or sets the Exercise ID + /// + [XmlElement(Type = typeof(byte), ElementName = "exerciseID")] + public byte ExerciseID + { + get + { + return this._exerciseID; + } + + set + { + this._exerciseID = value; + } + } + + /// + /// Gets or sets the Type of pdu, unique for each PDU class + /// + [XmlElement(Type = typeof(byte), ElementName = "pduType")] + public byte PduType + { + get + { + return this._pduType; + } + + set + { + this._pduType = value; + } + } + + /// + /// Gets or sets the value that refers to the protocol family, eg SimulationManagement, et + /// + [XmlElement(Type = typeof(byte), ElementName = "protocolFamily")] + public byte ProtocolFamily + { + get + { + return this._protocolFamily; + } + + set + { + this._protocolFamily = value; + } + } + + /// + /// Gets or sets the Timestamp value + /// + [XmlElement(Type = typeof(uint), ElementName = "timestamp")] + public uint Timestamp + { + get + { + return this._timestamp; + } + + set + { + this._timestamp = value; + } + } + + /// + /// Gets or sets the Length, in bytes, of the PDU + /// + [XmlElement(Type = typeof(ushort), ElementName = "length")] + public ushort Length + { + get + { + return this._length; + } + + set + { + this._length = value; + } + } + + /// + /// Gets or sets the zero-filled array of padding + /// + [XmlElement(Type = typeof(short), ElementName = "padding")] + public short Padding + { + get + { + return this._padding; + } + + set + { + this._padding = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._protocolVersion); + dos.WriteUnsignedByte((byte)this._exerciseID); + dos.WriteUnsignedByte((byte)this._pduType); + dos.WriteUnsignedByte((byte)this._protocolFamily); + dos.WriteUnsignedInt((uint)this._timestamp); + dos.WriteUnsignedShort((ushort)this._length); + dos.WriteShort((short)this._padding); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._protocolVersion = dis.ReadUnsignedByte(); + this._exerciseID = dis.ReadUnsignedByte(); + this._pduType = dis.ReadUnsignedByte(); + this._protocolFamily = dis.ReadUnsignedByte(); + this._timestamp = dis.ReadUnsignedInt(); + this._length = dis.ReadUnsignedShort(); + this._padding = dis.ReadShort(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._protocolVersion.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._exerciseID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pduType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._protocolFamily.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._timestamp.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._length.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as Pdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(Pdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._protocolVersion != obj._protocolVersion) + { + ivarsEqual = false; + } + + if (this._exerciseID != obj._exerciseID) + { + ivarsEqual = false; + } + + if (this._pduType != obj._pduType) + { + ivarsEqual = false; + } + + if (this._protocolFamily != obj._protocolFamily) + { + ivarsEqual = false; + } + + if (this._timestamp != obj._timestamp) + { + ivarsEqual = false; + } + + if (this._length != obj._length) + { + ivarsEqual = false; + } + + if (this._padding != obj._padding) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._protocolVersion.GetHashCode(); + result = GenerateHash(result) ^ this._exerciseID.GetHashCode(); + result = GenerateHash(result) ^ this._pduType.GetHashCode(); + result = GenerateHash(result) ^ this._protocolFamily.GetHashCode(); + result = GenerateHash(result) ^ this._timestamp.GetHashCode(); + result = GenerateHash(result) ^ this._length.GetHashCode(); + result = GenerateHash(result) ^ this._padding.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/RadioCommunicationsPdu.cs b/Libs/CsharpDis6/Dis1995/Generated/RadioCommunicationsPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/RadioCommunicationsPdu.cs rename to Libs/CsharpDis6/Dis1995/Generated/RadioCommunicationsPdu.cs index 9867fd2..e0bfb44 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/RadioCommunicationsPdu.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/RadioCommunicationsPdu.cs @@ -1,339 +1,339 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.3.8. Abstract superclass for radio communications PDUs. - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - public partial class RadioCommunicationsPdu : Pdu, IEquatable - { - /// - /// ID of the entitythat is the source of the communication - /// - private EntityID _entityId = new EntityID(); - - /// - /// particular radio within an entity - /// - private ushort _radioId; - - /// - /// Initializes a new instance of the class. - /// - public RadioCommunicationsPdu() - { - ProtocolFamily = (byte)4; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(RadioCommunicationsPdu left, RadioCommunicationsPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(RadioCommunicationsPdu left, RadioCommunicationsPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._entityId.GetMarshalledSize(); // this._entityId - marshalSize += 2; // this._radioId - return marshalSize; - } - - /// - /// Gets or sets the ID of the entitythat is the source of the communication - /// - [XmlElement(Type = typeof(EntityID), ElementName = "entityId")] - public EntityID EntityId - { - get - { - return this._entityId; - } - - set - { - this._entityId = value; - } - } - - /// - /// Gets or sets the particular radio within an entity - /// - [XmlElement(Type = typeof(ushort), ElementName = "radioId")] - public ushort RadioId - { - get - { - return this._radioId; - } - - set - { - this._radioId = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public virtual void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._entityId.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._radioId); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._entityId.Unmarshal(dis); - this._radioId = dis.ReadUnsignedShort(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._entityId.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._radioId.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as RadioCommunicationsPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(RadioCommunicationsPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._entityId.Equals(obj._entityId)) - { - ivarsEqual = false; - } - - if (this._radioId != obj._radioId) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._entityId.GetHashCode(); - result = GenerateHash(result) ^ this._radioId.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.3.8. Abstract superclass for radio communications PDUs. + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + public partial class RadioCommunicationsPdu : Pdu, IEquatable + { + /// + /// ID of the entitythat is the source of the communication + /// + private EntityID _entityId = new EntityID(); + + /// + /// particular radio within an entity + /// + private ushort _radioId; + + /// + /// Initializes a new instance of the class. + /// + public RadioCommunicationsPdu() + { + ProtocolFamily = (byte)4; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(RadioCommunicationsPdu left, RadioCommunicationsPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(RadioCommunicationsPdu left, RadioCommunicationsPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._entityId.GetMarshalledSize(); // this._entityId + marshalSize += 2; // this._radioId + return marshalSize; + } + + /// + /// Gets or sets the ID of the entitythat is the source of the communication + /// + [XmlElement(Type = typeof(EntityID), ElementName = "entityId")] + public EntityID EntityId + { + get + { + return this._entityId; + } + + set + { + this._entityId = value; + } + } + + /// + /// Gets or sets the particular radio within an entity + /// + [XmlElement(Type = typeof(ushort), ElementName = "radioId")] + public ushort RadioId + { + get + { + return this._radioId; + } + + set + { + this._radioId = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public virtual void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._entityId.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._radioId); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._entityId.Unmarshal(dis); + this._radioId = dis.ReadUnsignedShort(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._entityId.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._radioId.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as RadioCommunicationsPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(RadioCommunicationsPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._entityId.Equals(obj._entityId)) + { + ivarsEqual = false; + } + + if (this._radioId != obj._radioId) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._entityId.GetHashCode(); + result = GenerateHash(result) ^ this._radioId.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/RadioEntityType.cs b/Libs/CsharpDis6/Dis1995/Generated/RadioEntityType.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/RadioEntityType.cs rename to Libs/CsharpDis6/Dis1995/Generated/RadioEntityType.cs index 2bd679a..c4b918c 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/RadioEntityType.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/RadioEntityType.cs @@ -1,489 +1,489 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.2.25. Identifies the type of radio - /// - [Serializable] - [XmlRoot] - public partial class RadioEntityType - { - /// - /// Kind of entity - /// - private byte _entityKind; - - /// - /// Domain of entity (air, surface, subsurface, space, etc) - /// - private byte _domain; - - /// - /// country to which the design of the entity is attributed - /// - private ushort _country; - - /// - /// category of entity - /// - private byte _category; - - /// - /// subcategory of entity - /// - private byte _subcategory; - - /// - /// specific info based on subcategory field - /// - private byte _nomenclatureVersion; - - private ushort _nomenclature; - - /// - /// Initializes a new instance of the class. - /// - public RadioEntityType() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(RadioEntityType left, RadioEntityType right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(RadioEntityType left, RadioEntityType right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._entityKind - marshalSize += 1; // this._domain - marshalSize += 2; // this._country - marshalSize += 1; // this._category - marshalSize += 1; // this._subcategory - marshalSize += 1; // this._nomenclatureVersion - marshalSize += 2; // this._nomenclature - return marshalSize; - } - - /// - /// Gets or sets the Kind of entity - /// - [XmlElement(Type = typeof(byte), ElementName = "entityKind")] - public byte EntityKind - { - get - { - return this._entityKind; - } - - set - { - this._entityKind = value; - } - } - - /// - /// Gets or sets the Domain of entity (air, surface, subsurface, space, etc) - /// - [XmlElement(Type = typeof(byte), ElementName = "domain")] - public byte Domain - { - get - { - return this._domain; - } - - set - { - this._domain = value; - } - } - - /// - /// Gets or sets the country to which the design of the entity is attributed - /// - [XmlElement(Type = typeof(ushort), ElementName = "country")] - public ushort Country - { - get - { - return this._country; - } - - set - { - this._country = value; - } - } - - /// - /// Gets or sets the category of entity - /// - [XmlElement(Type = typeof(byte), ElementName = "category")] - public byte Category - { - get - { - return this._category; - } - - set - { - this._category = value; - } - } - - /// - /// Gets or sets the subcategory of entity - /// - [XmlElement(Type = typeof(byte), ElementName = "subcategory")] - public byte Subcategory - { - get - { - return this._subcategory; - } - - set - { - this._subcategory = value; - } - } - - /// - /// Gets or sets the specific info based on subcategory field - /// - [XmlElement(Type = typeof(byte), ElementName = "nomenclatureVersion")] - public byte NomenclatureVersion - { - get - { - return this._nomenclatureVersion; - } - - set - { - this._nomenclatureVersion = value; - } - } - - /// - /// Gets or sets the nomenclature - /// - [XmlElement(Type = typeof(ushort), ElementName = "nomenclature")] - public ushort Nomenclature - { - get - { - return this._nomenclature; - } - - set - { - this._nomenclature = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._entityKind); - dos.WriteUnsignedByte((byte)this._domain); - dos.WriteUnsignedShort((ushort)this._country); - dos.WriteUnsignedByte((byte)this._category); - dos.WriteUnsignedByte((byte)this._subcategory); - dos.WriteUnsignedByte((byte)this._nomenclatureVersion); - dos.WriteUnsignedShort((ushort)this._nomenclature); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._entityKind = dis.ReadUnsignedByte(); - this._domain = dis.ReadUnsignedByte(); - this._country = dis.ReadUnsignedShort(); - this._category = dis.ReadUnsignedByte(); - this._subcategory = dis.ReadUnsignedByte(); - this._nomenclatureVersion = dis.ReadUnsignedByte(); - this._nomenclature = dis.ReadUnsignedShort(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._entityKind.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._domain.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._country.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._category.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._subcategory.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._nomenclatureVersion.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._nomenclature.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as RadioEntityType; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(RadioEntityType obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._entityKind != obj._entityKind) - { - ivarsEqual = false; - } - - if (this._domain != obj._domain) - { - ivarsEqual = false; - } - - if (this._country != obj._country) - { - ivarsEqual = false; - } - - if (this._category != obj._category) - { - ivarsEqual = false; - } - - if (this._subcategory != obj._subcategory) - { - ivarsEqual = false; - } - - if (this._nomenclatureVersion != obj._nomenclatureVersion) - { - ivarsEqual = false; - } - - if (this._nomenclature != obj._nomenclature) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._entityKind.GetHashCode(); - result = GenerateHash(result) ^ this._domain.GetHashCode(); - result = GenerateHash(result) ^ this._country.GetHashCode(); - result = GenerateHash(result) ^ this._category.GetHashCode(); - result = GenerateHash(result) ^ this._subcategory.GetHashCode(); - result = GenerateHash(result) ^ this._nomenclatureVersion.GetHashCode(); - result = GenerateHash(result) ^ this._nomenclature.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.2.25. Identifies the type of radio + /// + [Serializable] + [XmlRoot] + public partial class RadioEntityType + { + /// + /// Kind of entity + /// + private byte _entityKind; + + /// + /// Domain of entity (air, surface, subsurface, space, etc) + /// + private byte _domain; + + /// + /// country to which the design of the entity is attributed + /// + private ushort _country; + + /// + /// category of entity + /// + private byte _category; + + /// + /// subcategory of entity + /// + private byte _subcategory; + + /// + /// specific info based on subcategory field + /// + private byte _nomenclatureVersion; + + private ushort _nomenclature; + + /// + /// Initializes a new instance of the class. + /// + public RadioEntityType() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(RadioEntityType left, RadioEntityType right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(RadioEntityType left, RadioEntityType right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._entityKind + marshalSize += 1; // this._domain + marshalSize += 2; // this._country + marshalSize += 1; // this._category + marshalSize += 1; // this._subcategory + marshalSize += 1; // this._nomenclatureVersion + marshalSize += 2; // this._nomenclature + return marshalSize; + } + + /// + /// Gets or sets the Kind of entity + /// + [XmlElement(Type = typeof(byte), ElementName = "entityKind")] + public byte EntityKind + { + get + { + return this._entityKind; + } + + set + { + this._entityKind = value; + } + } + + /// + /// Gets or sets the Domain of entity (air, surface, subsurface, space, etc) + /// + [XmlElement(Type = typeof(byte), ElementName = "domain")] + public byte Domain + { + get + { + return this._domain; + } + + set + { + this._domain = value; + } + } + + /// + /// Gets or sets the country to which the design of the entity is attributed + /// + [XmlElement(Type = typeof(ushort), ElementName = "country")] + public ushort Country + { + get + { + return this._country; + } + + set + { + this._country = value; + } + } + + /// + /// Gets or sets the category of entity + /// + [XmlElement(Type = typeof(byte), ElementName = "category")] + public byte Category + { + get + { + return this._category; + } + + set + { + this._category = value; + } + } + + /// + /// Gets or sets the subcategory of entity + /// + [XmlElement(Type = typeof(byte), ElementName = "subcategory")] + public byte Subcategory + { + get + { + return this._subcategory; + } + + set + { + this._subcategory = value; + } + } + + /// + /// Gets or sets the specific info based on subcategory field + /// + [XmlElement(Type = typeof(byte), ElementName = "nomenclatureVersion")] + public byte NomenclatureVersion + { + get + { + return this._nomenclatureVersion; + } + + set + { + this._nomenclatureVersion = value; + } + } + + /// + /// Gets or sets the nomenclature + /// + [XmlElement(Type = typeof(ushort), ElementName = "nomenclature")] + public ushort Nomenclature + { + get + { + return this._nomenclature; + } + + set + { + this._nomenclature = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._entityKind); + dos.WriteUnsignedByte((byte)this._domain); + dos.WriteUnsignedShort((ushort)this._country); + dos.WriteUnsignedByte((byte)this._category); + dos.WriteUnsignedByte((byte)this._subcategory); + dos.WriteUnsignedByte((byte)this._nomenclatureVersion); + dos.WriteUnsignedShort((ushort)this._nomenclature); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._entityKind = dis.ReadUnsignedByte(); + this._domain = dis.ReadUnsignedByte(); + this._country = dis.ReadUnsignedShort(); + this._category = dis.ReadUnsignedByte(); + this._subcategory = dis.ReadUnsignedByte(); + this._nomenclatureVersion = dis.ReadUnsignedByte(); + this._nomenclature = dis.ReadUnsignedShort(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._entityKind.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._domain.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._country.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._category.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._subcategory.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._nomenclatureVersion.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._nomenclature.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as RadioEntityType; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(RadioEntityType obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._entityKind != obj._entityKind) + { + ivarsEqual = false; + } + + if (this._domain != obj._domain) + { + ivarsEqual = false; + } + + if (this._country != obj._country) + { + ivarsEqual = false; + } + + if (this._category != obj._category) + { + ivarsEqual = false; + } + + if (this._subcategory != obj._subcategory) + { + ivarsEqual = false; + } + + if (this._nomenclatureVersion != obj._nomenclatureVersion) + { + ivarsEqual = false; + } + + if (this._nomenclature != obj._nomenclature) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._entityKind.GetHashCode(); + result = GenerateHash(result) ^ this._domain.GetHashCode(); + result = GenerateHash(result) ^ this._country.GetHashCode(); + result = GenerateHash(result) ^ this._category.GetHashCode(); + result = GenerateHash(result) ^ this._subcategory.GetHashCode(); + result = GenerateHash(result) ^ this._nomenclatureVersion.GetHashCode(); + result = GenerateHash(result) ^ this._nomenclature.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/ReceiverPdu.cs b/Libs/CsharpDis6/Dis1995/Generated/ReceiverPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/ReceiverPdu.cs rename to Libs/CsharpDis6/Dis1995/Generated/ReceiverPdu.cs index 1cd0e58..21b1890 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/ReceiverPdu.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/ReceiverPdu.cs @@ -1,435 +1,435 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.3.8.3. Communication of a receiver state. - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - public partial class ReceiverPdu : RadioCommunicationsPdu, IEquatable - { - /// - /// encoding scheme used, and enumeration - /// - private ushort _receiverState; - - /// - /// padding - /// - private ushort _padding1; - - /// - /// received power - /// - private float _receivedPoser; - - /// - /// ID of transmitter - /// - private EntityID _transmitterEntityId = new EntityID(); - - /// - /// ID of transmitting radio - /// - private ushort _transmitterRadioId; - - /// - /// Initializes a new instance of the class. - /// - public ReceiverPdu() - { - PduType = (byte)27; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ReceiverPdu left, ReceiverPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ReceiverPdu left, ReceiverPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 2; // this._receiverState - marshalSize += 2; // this._padding1 - marshalSize += 4; // this._receivedPoser - marshalSize += this._transmitterEntityId.GetMarshalledSize(); // this._transmitterEntityId - marshalSize += 2; // this._transmitterRadioId - return marshalSize; - } - - /// - /// Gets or sets the encoding scheme used, and enumeration - /// - [XmlElement(Type = typeof(ushort), ElementName = "receiverState")] - public ushort ReceiverState - { - get - { - return this._receiverState; - } - - set - { - this._receiverState = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(ushort), ElementName = "padding1")] - public ushort Padding1 - { - get - { - return this._padding1; - } - - set - { - this._padding1 = value; - } - } - - /// - /// Gets or sets the received power - /// - [XmlElement(Type = typeof(float), ElementName = "receivedPoser")] - public float ReceivedPoser - { - get - { - return this._receivedPoser; - } - - set - { - this._receivedPoser = value; - } - } - - /// - /// Gets or sets the ID of transmitter - /// - [XmlElement(Type = typeof(EntityID), ElementName = "transmitterEntityId")] - public EntityID TransmitterEntityId - { - get - { - return this._transmitterEntityId; - } - - set - { - this._transmitterEntityId = value; - } - } - - /// - /// Gets or sets the ID of transmitting radio - /// - [XmlElement(Type = typeof(ushort), ElementName = "transmitterRadioId")] - public ushort TransmitterRadioId - { - get - { - return this._transmitterRadioId; - } - - set - { - this._transmitterRadioId = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._receiverState); - dos.WriteUnsignedShort((ushort)this._padding1); - dos.WriteFloat((float)this._receivedPoser); - this._transmitterEntityId.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._transmitterRadioId); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._receiverState = dis.ReadUnsignedShort(); - this._padding1 = dis.ReadUnsignedShort(); - this._receivedPoser = dis.ReadFloat(); - this._transmitterEntityId.Unmarshal(dis); - this._transmitterRadioId = dis.ReadUnsignedShort(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._receiverState.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._receivedPoser.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._transmitterEntityId.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._transmitterRadioId.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ReceiverPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ReceiverPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._receiverState != obj._receiverState) - { - ivarsEqual = false; - } - - if (this._padding1 != obj._padding1) - { - ivarsEqual = false; - } - - if (this._receivedPoser != obj._receivedPoser) - { - ivarsEqual = false; - } - - if (!this._transmitterEntityId.Equals(obj._transmitterEntityId)) - { - ivarsEqual = false; - } - - if (this._transmitterRadioId != obj._transmitterRadioId) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._receiverState.GetHashCode(); - result = GenerateHash(result) ^ this._padding1.GetHashCode(); - result = GenerateHash(result) ^ this._receivedPoser.GetHashCode(); - result = GenerateHash(result) ^ this._transmitterEntityId.GetHashCode(); - result = GenerateHash(result) ^ this._transmitterRadioId.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.3.8.3. Communication of a receiver state. + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + public partial class ReceiverPdu : RadioCommunicationsPdu, IEquatable + { + /// + /// encoding scheme used, and enumeration + /// + private ushort _receiverState; + + /// + /// padding + /// + private ushort _padding1; + + /// + /// received power + /// + private float _receivedPoser; + + /// + /// ID of transmitter + /// + private EntityID _transmitterEntityId = new EntityID(); + + /// + /// ID of transmitting radio + /// + private ushort _transmitterRadioId; + + /// + /// Initializes a new instance of the class. + /// + public ReceiverPdu() + { + PduType = (byte)27; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ReceiverPdu left, ReceiverPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ReceiverPdu left, ReceiverPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 2; // this._receiverState + marshalSize += 2; // this._padding1 + marshalSize += 4; // this._receivedPoser + marshalSize += this._transmitterEntityId.GetMarshalledSize(); // this._transmitterEntityId + marshalSize += 2; // this._transmitterRadioId + return marshalSize; + } + + /// + /// Gets or sets the encoding scheme used, and enumeration + /// + [XmlElement(Type = typeof(ushort), ElementName = "receiverState")] + public ushort ReceiverState + { + get + { + return this._receiverState; + } + + set + { + this._receiverState = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(ushort), ElementName = "padding1")] + public ushort Padding1 + { + get + { + return this._padding1; + } + + set + { + this._padding1 = value; + } + } + + /// + /// Gets or sets the received power + /// + [XmlElement(Type = typeof(float), ElementName = "receivedPoser")] + public float ReceivedPoser + { + get + { + return this._receivedPoser; + } + + set + { + this._receivedPoser = value; + } + } + + /// + /// Gets or sets the ID of transmitter + /// + [XmlElement(Type = typeof(EntityID), ElementName = "transmitterEntityId")] + public EntityID TransmitterEntityId + { + get + { + return this._transmitterEntityId; + } + + set + { + this._transmitterEntityId = value; + } + } + + /// + /// Gets or sets the ID of transmitting radio + /// + [XmlElement(Type = typeof(ushort), ElementName = "transmitterRadioId")] + public ushort TransmitterRadioId + { + get + { + return this._transmitterRadioId; + } + + set + { + this._transmitterRadioId = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._receiverState); + dos.WriteUnsignedShort((ushort)this._padding1); + dos.WriteFloat((float)this._receivedPoser); + this._transmitterEntityId.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._transmitterRadioId); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._receiverState = dis.ReadUnsignedShort(); + this._padding1 = dis.ReadUnsignedShort(); + this._receivedPoser = dis.ReadFloat(); + this._transmitterEntityId.Unmarshal(dis); + this._transmitterRadioId = dis.ReadUnsignedShort(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._receiverState.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._receivedPoser.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._transmitterEntityId.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._transmitterRadioId.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ReceiverPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ReceiverPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._receiverState != obj._receiverState) + { + ivarsEqual = false; + } + + if (this._padding1 != obj._padding1) + { + ivarsEqual = false; + } + + if (this._receivedPoser != obj._receivedPoser) + { + ivarsEqual = false; + } + + if (!this._transmitterEntityId.Equals(obj._transmitterEntityId)) + { + ivarsEqual = false; + } + + if (this._transmitterRadioId != obj._transmitterRadioId) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._receiverState.GetHashCode(); + result = GenerateHash(result) ^ this._padding1.GetHashCode(); + result = GenerateHash(result) ^ this._receivedPoser.GetHashCode(); + result = GenerateHash(result) ^ this._transmitterEntityId.GetHashCode(); + result = GenerateHash(result) ^ this._transmitterRadioId.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/RemoveEntityPdu.cs b/Libs/CsharpDis6/Dis1995/Generated/RemoveEntityPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/RemoveEntityPdu.cs rename to Libs/CsharpDis6/Dis1995/Generated/RemoveEntityPdu.cs index de12c63..7c11457 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/RemoveEntityPdu.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/RemoveEntityPdu.cs @@ -1,304 +1,304 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.3.6.2. Remove an entity - /// - [Serializable] - [XmlRoot] - public partial class RemoveEntityPdu : SimulationManagementPdu, IEquatable - { - /// - /// Identifier for the request - /// - private uint _requestID; - - /// - /// Initializes a new instance of the class. - /// - public RemoveEntityPdu() - { - PduType = (byte)12; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(RemoveEntityPdu left, RemoveEntityPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(RemoveEntityPdu left, RemoveEntityPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 4; // this._requestID - return marshalSize; - } - - /// - /// Gets or sets the Identifier for the request - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._requestID); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._requestID = dis.ReadUnsignedInt(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as RemoveEntityPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(RemoveEntityPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.3.6.2. Remove an entity + /// + [Serializable] + [XmlRoot] + public partial class RemoveEntityPdu : SimulationManagementPdu, IEquatable + { + /// + /// Identifier for the request + /// + private uint _requestID; + + /// + /// Initializes a new instance of the class. + /// + public RemoveEntityPdu() + { + PduType = (byte)12; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(RemoveEntityPdu left, RemoveEntityPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(RemoveEntityPdu left, RemoveEntityPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 4; // this._requestID + return marshalSize; + } + + /// + /// Gets or sets the Identifier for the request + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._requestID); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._requestID = dis.ReadUnsignedInt(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as RemoveEntityPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(RemoveEntityPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/RepairCompletePdu.cs b/Libs/CsharpDis6/Dis1995/Generated/RepairCompletePdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/RepairCompletePdu.cs rename to Libs/CsharpDis6/Dis1995/Generated/RepairCompletePdu.cs index 6949caa..5a42e21 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/RepairCompletePdu.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/RepairCompletePdu.cs @@ -1,405 +1,405 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.2.5.5. Repair is complete - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - public partial class RepairCompletePdu : LogisticsPdu, IEquatable - { - /// - /// Entity that is receiving service - /// - private EntityID _receivingEntityID = new EntityID(); - - /// - /// Entity that is supplying - /// - private EntityID _repairingEntityID = new EntityID(); - - /// - /// Enumeration for type of repair - /// - private ushort _repair; - - /// - /// padding - /// - private short _padding; - - /// - /// Initializes a new instance of the class. - /// - public RepairCompletePdu() - { - PduType = (byte)9; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(RepairCompletePdu left, RepairCompletePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(RepairCompletePdu left, RepairCompletePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._receivingEntityID.GetMarshalledSize(); // this._receivingEntityID - marshalSize += this._repairingEntityID.GetMarshalledSize(); // this._repairingEntityID - marshalSize += 2; // this._repair - marshalSize += 2; // this._padding - return marshalSize; - } - - /// - /// Gets or sets the Entity that is receiving service - /// - [XmlElement(Type = typeof(EntityID), ElementName = "receivingEntityID")] - public EntityID ReceivingEntityID - { - get - { - return this._receivingEntityID; - } - - set - { - this._receivingEntityID = value; - } - } - - /// - /// Gets or sets the Entity that is supplying - /// - [XmlElement(Type = typeof(EntityID), ElementName = "repairingEntityID")] - public EntityID RepairingEntityID - { - get - { - return this._repairingEntityID; - } - - set - { - this._repairingEntityID = value; - } - } - - /// - /// Gets or sets the Enumeration for type of repair - /// - [XmlElement(Type = typeof(ushort), ElementName = "repair")] - public ushort Repair - { - get - { - return this._repair; - } - - set - { - this._repair = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(short), ElementName = "padding")] - public short Padding - { - get - { - return this._padding; - } - - set - { - this._padding = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._receivingEntityID.Marshal(dos); - this._repairingEntityID.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._repair); - dos.WriteShort((short)this._padding); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._receivingEntityID.Unmarshal(dis); - this._repairingEntityID.Unmarshal(dis); - this._repair = dis.ReadUnsignedShort(); - this._padding = dis.ReadShort(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._receivingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._repairingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._repair.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as RepairCompletePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(RepairCompletePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._receivingEntityID.Equals(obj._receivingEntityID)) - { - ivarsEqual = false; - } - - if (!this._repairingEntityID.Equals(obj._repairingEntityID)) - { - ivarsEqual = false; - } - - if (this._repair != obj._repair) - { - ivarsEqual = false; - } - - if (this._padding != obj._padding) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._receivingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._repairingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._repair.GetHashCode(); - result = GenerateHash(result) ^ this._padding.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.2.5.5. Repair is complete + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + public partial class RepairCompletePdu : LogisticsPdu, IEquatable + { + /// + /// Entity that is receiving service + /// + private EntityID _receivingEntityID = new EntityID(); + + /// + /// Entity that is supplying + /// + private EntityID _repairingEntityID = new EntityID(); + + /// + /// Enumeration for type of repair + /// + private ushort _repair; + + /// + /// padding + /// + private short _padding; + + /// + /// Initializes a new instance of the class. + /// + public RepairCompletePdu() + { + PduType = (byte)9; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(RepairCompletePdu left, RepairCompletePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(RepairCompletePdu left, RepairCompletePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._receivingEntityID.GetMarshalledSize(); // this._receivingEntityID + marshalSize += this._repairingEntityID.GetMarshalledSize(); // this._repairingEntityID + marshalSize += 2; // this._repair + marshalSize += 2; // this._padding + return marshalSize; + } + + /// + /// Gets or sets the Entity that is receiving service + /// + [XmlElement(Type = typeof(EntityID), ElementName = "receivingEntityID")] + public EntityID ReceivingEntityID + { + get + { + return this._receivingEntityID; + } + + set + { + this._receivingEntityID = value; + } + } + + /// + /// Gets or sets the Entity that is supplying + /// + [XmlElement(Type = typeof(EntityID), ElementName = "repairingEntityID")] + public EntityID RepairingEntityID + { + get + { + return this._repairingEntityID; + } + + set + { + this._repairingEntityID = value; + } + } + + /// + /// Gets or sets the Enumeration for type of repair + /// + [XmlElement(Type = typeof(ushort), ElementName = "repair")] + public ushort Repair + { + get + { + return this._repair; + } + + set + { + this._repair = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(short), ElementName = "padding")] + public short Padding + { + get + { + return this._padding; + } + + set + { + this._padding = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._receivingEntityID.Marshal(dos); + this._repairingEntityID.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._repair); + dos.WriteShort((short)this._padding); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._receivingEntityID.Unmarshal(dis); + this._repairingEntityID.Unmarshal(dis); + this._repair = dis.ReadUnsignedShort(); + this._padding = dis.ReadShort(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._receivingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._repairingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._repair.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as RepairCompletePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(RepairCompletePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._receivingEntityID.Equals(obj._receivingEntityID)) + { + ivarsEqual = false; + } + + if (!this._repairingEntityID.Equals(obj._repairingEntityID)) + { + ivarsEqual = false; + } + + if (this._repair != obj._repair) + { + ivarsEqual = false; + } + + if (this._padding != obj._padding) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._receivingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._repairingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._repair.GetHashCode(); + result = GenerateHash(result) ^ this._padding.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/RepairResponsePdu.cs b/Libs/CsharpDis6/Dis1995/Generated/RepairResponsePdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/RepairResponsePdu.cs rename to Libs/CsharpDis6/Dis1995/Generated/RepairResponsePdu.cs index 6c69c14..6bea994 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/RepairResponsePdu.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/RepairResponsePdu.cs @@ -1,437 +1,437 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.2.5.6. Sent after repair conplete PDU - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - public partial class RepairResponsePdu : LogisticsPdu, IEquatable - { - /// - /// Entity that is receiving service - /// - private EntityID _receivingEntityID = new EntityID(); - - /// - /// Entity that is supplying - /// - private EntityID _repairingEntityID = new EntityID(); - - /// - /// Result of repair operation - /// - private byte _repairResult; - - /// - /// padding - /// - private short _padding1; - - /// - /// padding - /// - private byte _padding2; - - /// - /// Initializes a new instance of the class. - /// - public RepairResponsePdu() - { - PduType = (byte)10; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(RepairResponsePdu left, RepairResponsePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(RepairResponsePdu left, RepairResponsePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._receivingEntityID.GetMarshalledSize(); // this._receivingEntityID - marshalSize += this._repairingEntityID.GetMarshalledSize(); // this._repairingEntityID - marshalSize += 1; // this._repairResult - marshalSize += 2; // this._padding1 - marshalSize += 1; // this._padding2 - return marshalSize; - } - - /// - /// Gets or sets the Entity that is receiving service - /// - [XmlElement(Type = typeof(EntityID), ElementName = "receivingEntityID")] - public EntityID ReceivingEntityID - { - get - { - return this._receivingEntityID; - } - - set - { - this._receivingEntityID = value; - } - } - - /// - /// Gets or sets the Entity that is supplying - /// - [XmlElement(Type = typeof(EntityID), ElementName = "repairingEntityID")] - public EntityID RepairingEntityID - { - get - { - return this._repairingEntityID; - } - - set - { - this._repairingEntityID = value; - } - } - - /// - /// Gets or sets the Result of repair operation - /// - [XmlElement(Type = typeof(byte), ElementName = "repairResult")] - public byte RepairResult - { - get - { - return this._repairResult; - } - - set - { - this._repairResult = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(short), ElementName = "padding1")] - public short Padding1 - { - get - { - return this._padding1; - } - - set - { - this._padding1 = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "padding2")] - public byte Padding2 - { - get - { - return this._padding2; - } - - set - { - this._padding2 = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._receivingEntityID.Marshal(dos); - this._repairingEntityID.Marshal(dos); - dos.WriteUnsignedByte((byte)this._repairResult); - dos.WriteShort((short)this._padding1); - dos.WriteByte((byte)this._padding2); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._receivingEntityID.Unmarshal(dis); - this._repairingEntityID.Unmarshal(dis); - this._repairResult = dis.ReadUnsignedByte(); - this._padding1 = dis.ReadShort(); - this._padding2 = dis.ReadByte(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._receivingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._repairingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._repairResult.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as RepairResponsePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(RepairResponsePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._receivingEntityID.Equals(obj._receivingEntityID)) - { - ivarsEqual = false; - } - - if (!this._repairingEntityID.Equals(obj._repairingEntityID)) - { - ivarsEqual = false; - } - - if (this._repairResult != obj._repairResult) - { - ivarsEqual = false; - } - - if (this._padding1 != obj._padding1) - { - ivarsEqual = false; - } - - if (this._padding2 != obj._padding2) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._receivingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._repairingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._repairResult.GetHashCode(); - result = GenerateHash(result) ^ this._padding1.GetHashCode(); - result = GenerateHash(result) ^ this._padding2.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.2.5.6. Sent after repair conplete PDU + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + public partial class RepairResponsePdu : LogisticsPdu, IEquatable + { + /// + /// Entity that is receiving service + /// + private EntityID _receivingEntityID = new EntityID(); + + /// + /// Entity that is supplying + /// + private EntityID _repairingEntityID = new EntityID(); + + /// + /// Result of repair operation + /// + private byte _repairResult; + + /// + /// padding + /// + private short _padding1; + + /// + /// padding + /// + private byte _padding2; + + /// + /// Initializes a new instance of the class. + /// + public RepairResponsePdu() + { + PduType = (byte)10; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(RepairResponsePdu left, RepairResponsePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(RepairResponsePdu left, RepairResponsePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._receivingEntityID.GetMarshalledSize(); // this._receivingEntityID + marshalSize += this._repairingEntityID.GetMarshalledSize(); // this._repairingEntityID + marshalSize += 1; // this._repairResult + marshalSize += 2; // this._padding1 + marshalSize += 1; // this._padding2 + return marshalSize; + } + + /// + /// Gets or sets the Entity that is receiving service + /// + [XmlElement(Type = typeof(EntityID), ElementName = "receivingEntityID")] + public EntityID ReceivingEntityID + { + get + { + return this._receivingEntityID; + } + + set + { + this._receivingEntityID = value; + } + } + + /// + /// Gets or sets the Entity that is supplying + /// + [XmlElement(Type = typeof(EntityID), ElementName = "repairingEntityID")] + public EntityID RepairingEntityID + { + get + { + return this._repairingEntityID; + } + + set + { + this._repairingEntityID = value; + } + } + + /// + /// Gets or sets the Result of repair operation + /// + [XmlElement(Type = typeof(byte), ElementName = "repairResult")] + public byte RepairResult + { + get + { + return this._repairResult; + } + + set + { + this._repairResult = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(short), ElementName = "padding1")] + public short Padding1 + { + get + { + return this._padding1; + } + + set + { + this._padding1 = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "padding2")] + public byte Padding2 + { + get + { + return this._padding2; + } + + set + { + this._padding2 = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._receivingEntityID.Marshal(dos); + this._repairingEntityID.Marshal(dos); + dos.WriteUnsignedByte((byte)this._repairResult); + dos.WriteShort((short)this._padding1); + dos.WriteByte((byte)this._padding2); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._receivingEntityID.Unmarshal(dis); + this._repairingEntityID.Unmarshal(dis); + this._repairResult = dis.ReadUnsignedByte(); + this._padding1 = dis.ReadShort(); + this._padding2 = dis.ReadByte(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._receivingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._repairingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._repairResult.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as RepairResponsePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(RepairResponsePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._receivingEntityID.Equals(obj._receivingEntityID)) + { + ivarsEqual = false; + } + + if (!this._repairingEntityID.Equals(obj._repairingEntityID)) + { + ivarsEqual = false; + } + + if (this._repairResult != obj._repairResult) + { + ivarsEqual = false; + } + + if (this._padding1 != obj._padding1) + { + ivarsEqual = false; + } + + if (this._padding2 != obj._padding2) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._receivingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._repairingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._repairResult.GetHashCode(); + result = GenerateHash(result) ^ this._padding1.GetHashCode(); + result = GenerateHash(result) ^ this._padding2.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/ResupplyCancelPdu.cs b/Libs/CsharpDis6/Dis1995/Generated/ResupplyCancelPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/ResupplyCancelPdu.cs rename to Libs/CsharpDis6/Dis1995/Generated/ResupplyCancelPdu.cs index a090dd7..9627e0e 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/ResupplyCancelPdu.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/ResupplyCancelPdu.cs @@ -1,341 +1,341 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.2.5.4. Cancel of resupply by either the receiving or supplying entity - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - public partial class ResupplyCancelPdu : LogisticsPdu, IEquatable - { - /// - /// Entity that is receiving service - /// - private EntityID _receivingEntityID = new EntityID(); - - /// - /// Entity that is supplying - /// - private EntityID _supplyingEntityID = new EntityID(); - - /// - /// Initializes a new instance of the class. - /// - public ResupplyCancelPdu() - { - PduType = (byte)8; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ResupplyCancelPdu left, ResupplyCancelPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ResupplyCancelPdu left, ResupplyCancelPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._receivingEntityID.GetMarshalledSize(); // this._receivingEntityID - marshalSize += this._supplyingEntityID.GetMarshalledSize(); // this._supplyingEntityID - return marshalSize; - } - - /// - /// Gets or sets the Entity that is receiving service - /// - [XmlElement(Type = typeof(EntityID), ElementName = "receivingEntityID")] - public EntityID ReceivingEntityID - { - get - { - return this._receivingEntityID; - } - - set - { - this._receivingEntityID = value; - } - } - - /// - /// Gets or sets the Entity that is supplying - /// - [XmlElement(Type = typeof(EntityID), ElementName = "supplyingEntityID")] - public EntityID SupplyingEntityID - { - get - { - return this._supplyingEntityID; - } - - set - { - this._supplyingEntityID = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._receivingEntityID.Marshal(dos); - this._supplyingEntityID.Marshal(dos); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._receivingEntityID.Unmarshal(dis); - this._supplyingEntityID.Unmarshal(dis); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._receivingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._supplyingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ResupplyCancelPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ResupplyCancelPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._receivingEntityID.Equals(obj._receivingEntityID)) - { - ivarsEqual = false; - } - - if (!this._supplyingEntityID.Equals(obj._supplyingEntityID)) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._receivingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._supplyingEntityID.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.2.5.4. Cancel of resupply by either the receiving or supplying entity + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + public partial class ResupplyCancelPdu : LogisticsPdu, IEquatable + { + /// + /// Entity that is receiving service + /// + private EntityID _receivingEntityID = new EntityID(); + + /// + /// Entity that is supplying + /// + private EntityID _supplyingEntityID = new EntityID(); + + /// + /// Initializes a new instance of the class. + /// + public ResupplyCancelPdu() + { + PduType = (byte)8; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ResupplyCancelPdu left, ResupplyCancelPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ResupplyCancelPdu left, ResupplyCancelPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._receivingEntityID.GetMarshalledSize(); // this._receivingEntityID + marshalSize += this._supplyingEntityID.GetMarshalledSize(); // this._supplyingEntityID + return marshalSize; + } + + /// + /// Gets or sets the Entity that is receiving service + /// + [XmlElement(Type = typeof(EntityID), ElementName = "receivingEntityID")] + public EntityID ReceivingEntityID + { + get + { + return this._receivingEntityID; + } + + set + { + this._receivingEntityID = value; + } + } + + /// + /// Gets or sets the Entity that is supplying + /// + [XmlElement(Type = typeof(EntityID), ElementName = "supplyingEntityID")] + public EntityID SupplyingEntityID + { + get + { + return this._supplyingEntityID; + } + + set + { + this._supplyingEntityID = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._receivingEntityID.Marshal(dos); + this._supplyingEntityID.Marshal(dos); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._receivingEntityID.Unmarshal(dis); + this._supplyingEntityID.Unmarshal(dis); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._receivingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._supplyingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ResupplyCancelPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ResupplyCancelPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._receivingEntityID.Equals(obj._receivingEntityID)) + { + ivarsEqual = false; + } + + if (!this._supplyingEntityID.Equals(obj._supplyingEntityID)) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._receivingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._supplyingEntityID.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/ResupplyOfferPdu.cs b/Libs/CsharpDis6/Dis1995/Generated/ResupplyOfferPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/ResupplyOfferPdu.cs rename to Libs/CsharpDis6/Dis1995/Generated/ResupplyOfferPdu.cs index b85e3fb..1811317 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/ResupplyOfferPdu.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/ResupplyOfferPdu.cs @@ -1,508 +1,508 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.3.5.2. Information about a request for supplies - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(SupplyQuantity))] - public partial class ResupplyOfferPdu : LogisticsPdu, IEquatable - { - /// - /// Entity that is receiving service - /// - private EntityID _receivingEntityID = new EntityID(); - - /// - /// Entity that is supplying - /// - private EntityID _supplyingEntityID = new EntityID(); - - /// - /// how many supplies are being offered - /// - private byte _numberOfSupplyTypes; - - /// - /// padding - /// - private short _padding1; - - /// - /// padding - /// - private byte _padding2; - - private List _supplies = new List(); - - /// - /// Initializes a new instance of the class. - /// - public ResupplyOfferPdu() - { - PduType = (byte)6; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ResupplyOfferPdu left, ResupplyOfferPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ResupplyOfferPdu left, ResupplyOfferPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._receivingEntityID.GetMarshalledSize(); // this._receivingEntityID - marshalSize += this._supplyingEntityID.GetMarshalledSize(); // this._supplyingEntityID - marshalSize += 1; // this._numberOfSupplyTypes - marshalSize += 2; // this._padding1 - marshalSize += 1; // this._padding2 - for (int idx = 0; idx < this._supplies.Count; idx++) - { - SupplyQuantity listElement = (SupplyQuantity)this._supplies[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Entity that is receiving service - /// - [XmlElement(Type = typeof(EntityID), ElementName = "receivingEntityID")] - public EntityID ReceivingEntityID - { - get - { - return this._receivingEntityID; - } - - set - { - this._receivingEntityID = value; - } - } - - /// - /// Gets or sets the Entity that is supplying - /// - [XmlElement(Type = typeof(EntityID), ElementName = "supplyingEntityID")] - public EntityID SupplyingEntityID - { - get - { - return this._supplyingEntityID; - } - - set - { - this._supplyingEntityID = value; - } - } - - /// - /// Gets or sets the how many supplies are being offered - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfSupplyTypes method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfSupplyTypes")] - public byte NumberOfSupplyTypes - { - get - { - return this._numberOfSupplyTypes; - } - - set - { - this._numberOfSupplyTypes = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(short), ElementName = "padding1")] - public short Padding1 - { - get - { - return this._padding1; - } - - set - { - this._padding1 = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "padding2")] - public byte Padding2 - { - get - { - return this._padding2; - } - - set - { - this._padding2 = value; - } - } - - /// - /// Gets the supplies - /// - [XmlElement(ElementName = "suppliesList", Type = typeof(List))] - public List Supplies - { - get - { - return this._supplies; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._receivingEntityID.Marshal(dos); - this._supplyingEntityID.Marshal(dos); - dos.WriteUnsignedByte((byte)this._supplies.Count); - dos.WriteShort((short)this._padding1); - dos.WriteByte((byte)this._padding2); - - for (int idx = 0; idx < this._supplies.Count; idx++) - { - SupplyQuantity aSupplyQuantity = (SupplyQuantity)this._supplies[idx]; - aSupplyQuantity.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._receivingEntityID.Unmarshal(dis); - this._supplyingEntityID.Unmarshal(dis); - this._numberOfSupplyTypes = dis.ReadUnsignedByte(); - this._padding1 = dis.ReadShort(); - this._padding2 = dis.ReadByte(); - - for (int idx = 0; idx < this.NumberOfSupplyTypes; idx++) - { - SupplyQuantity anX = new SupplyQuantity(); - anX.Unmarshal(dis); - this._supplies.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._receivingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._supplyingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._supplies.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._supplies.Count; idx++) - { - sb.AppendLine(""); - SupplyQuantity aSupplyQuantity = (SupplyQuantity)this._supplies[idx]; - aSupplyQuantity.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ResupplyOfferPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ResupplyOfferPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._receivingEntityID.Equals(obj._receivingEntityID)) - { - ivarsEqual = false; - } - - if (!this._supplyingEntityID.Equals(obj._supplyingEntityID)) - { - ivarsEqual = false; - } - - if (this._numberOfSupplyTypes != obj._numberOfSupplyTypes) - { - ivarsEqual = false; - } - - if (this._padding1 != obj._padding1) - { - ivarsEqual = false; - } - - if (this._padding2 != obj._padding2) - { - ivarsEqual = false; - } - - if (this._supplies.Count != obj._supplies.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._supplies.Count; idx++) - { - if (!this._supplies[idx].Equals(obj._supplies[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._receivingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._supplyingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfSupplyTypes.GetHashCode(); - result = GenerateHash(result) ^ this._padding1.GetHashCode(); - result = GenerateHash(result) ^ this._padding2.GetHashCode(); - - if (this._supplies.Count > 0) - { - for (int idx = 0; idx < this._supplies.Count; idx++) - { - result = GenerateHash(result) ^ this._supplies[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.3.5.2. Information about a request for supplies + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(SupplyQuantity))] + public partial class ResupplyOfferPdu : LogisticsPdu, IEquatable + { + /// + /// Entity that is receiving service + /// + private EntityID _receivingEntityID = new EntityID(); + + /// + /// Entity that is supplying + /// + private EntityID _supplyingEntityID = new EntityID(); + + /// + /// how many supplies are being offered + /// + private byte _numberOfSupplyTypes; + + /// + /// padding + /// + private short _padding1; + + /// + /// padding + /// + private byte _padding2; + + private List _supplies = new List(); + + /// + /// Initializes a new instance of the class. + /// + public ResupplyOfferPdu() + { + PduType = (byte)6; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ResupplyOfferPdu left, ResupplyOfferPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ResupplyOfferPdu left, ResupplyOfferPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._receivingEntityID.GetMarshalledSize(); // this._receivingEntityID + marshalSize += this._supplyingEntityID.GetMarshalledSize(); // this._supplyingEntityID + marshalSize += 1; // this._numberOfSupplyTypes + marshalSize += 2; // this._padding1 + marshalSize += 1; // this._padding2 + for (int idx = 0; idx < this._supplies.Count; idx++) + { + SupplyQuantity listElement = (SupplyQuantity)this._supplies[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Entity that is receiving service + /// + [XmlElement(Type = typeof(EntityID), ElementName = "receivingEntityID")] + public EntityID ReceivingEntityID + { + get + { + return this._receivingEntityID; + } + + set + { + this._receivingEntityID = value; + } + } + + /// + /// Gets or sets the Entity that is supplying + /// + [XmlElement(Type = typeof(EntityID), ElementName = "supplyingEntityID")] + public EntityID SupplyingEntityID + { + get + { + return this._supplyingEntityID; + } + + set + { + this._supplyingEntityID = value; + } + } + + /// + /// Gets or sets the how many supplies are being offered + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfSupplyTypes method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfSupplyTypes")] + public byte NumberOfSupplyTypes + { + get + { + return this._numberOfSupplyTypes; + } + + set + { + this._numberOfSupplyTypes = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(short), ElementName = "padding1")] + public short Padding1 + { + get + { + return this._padding1; + } + + set + { + this._padding1 = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "padding2")] + public byte Padding2 + { + get + { + return this._padding2; + } + + set + { + this._padding2 = value; + } + } + + /// + /// Gets the supplies + /// + [XmlElement(ElementName = "suppliesList", Type = typeof(List))] + public List Supplies + { + get + { + return this._supplies; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._receivingEntityID.Marshal(dos); + this._supplyingEntityID.Marshal(dos); + dos.WriteUnsignedByte((byte)this._supplies.Count); + dos.WriteShort((short)this._padding1); + dos.WriteByte((byte)this._padding2); + + for (int idx = 0; idx < this._supplies.Count; idx++) + { + SupplyQuantity aSupplyQuantity = (SupplyQuantity)this._supplies[idx]; + aSupplyQuantity.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._receivingEntityID.Unmarshal(dis); + this._supplyingEntityID.Unmarshal(dis); + this._numberOfSupplyTypes = dis.ReadUnsignedByte(); + this._padding1 = dis.ReadShort(); + this._padding2 = dis.ReadByte(); + + for (int idx = 0; idx < this.NumberOfSupplyTypes; idx++) + { + SupplyQuantity anX = new SupplyQuantity(); + anX.Unmarshal(dis); + this._supplies.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._receivingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._supplyingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._supplies.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._supplies.Count; idx++) + { + sb.AppendLine(""); + SupplyQuantity aSupplyQuantity = (SupplyQuantity)this._supplies[idx]; + aSupplyQuantity.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ResupplyOfferPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ResupplyOfferPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._receivingEntityID.Equals(obj._receivingEntityID)) + { + ivarsEqual = false; + } + + if (!this._supplyingEntityID.Equals(obj._supplyingEntityID)) + { + ivarsEqual = false; + } + + if (this._numberOfSupplyTypes != obj._numberOfSupplyTypes) + { + ivarsEqual = false; + } + + if (this._padding1 != obj._padding1) + { + ivarsEqual = false; + } + + if (this._padding2 != obj._padding2) + { + ivarsEqual = false; + } + + if (this._supplies.Count != obj._supplies.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._supplies.Count; idx++) + { + if (!this._supplies[idx].Equals(obj._supplies[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._receivingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._supplyingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfSupplyTypes.GetHashCode(); + result = GenerateHash(result) ^ this._padding1.GetHashCode(); + result = GenerateHash(result) ^ this._padding2.GetHashCode(); + + if (this._supplies.Count > 0) + { + for (int idx = 0; idx < this._supplies.Count; idx++) + { + result = GenerateHash(result) ^ this._supplies[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/ResupplyReceivedPdu.cs b/Libs/CsharpDis6/Dis1995/Generated/ResupplyReceivedPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/ResupplyReceivedPdu.cs rename to Libs/CsharpDis6/Dis1995/Generated/ResupplyReceivedPdu.cs index 49ca659..ec39047 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/ResupplyReceivedPdu.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/ResupplyReceivedPdu.cs @@ -1,508 +1,508 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.3.5.3. Receipt of supplies is communiated - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(SupplyQuantity))] - public partial class ResupplyReceivedPdu : LogisticsPdu, IEquatable - { - /// - /// Entity that is receiving service - /// - private EntityID _receivingEntityID = new EntityID(); - - /// - /// Entity that is supplying - /// - private EntityID _supplyingEntityID = new EntityID(); - - /// - /// how many supplies are being offered - /// - private byte _numberOfSupplyTypes; - - /// - /// padding - /// - private short _padding1; - - /// - /// padding - /// - private byte _padding2; - - private List _supplies = new List(); - - /// - /// Initializes a new instance of the class. - /// - public ResupplyReceivedPdu() - { - PduType = (byte)7; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ResupplyReceivedPdu left, ResupplyReceivedPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ResupplyReceivedPdu left, ResupplyReceivedPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._receivingEntityID.GetMarshalledSize(); // this._receivingEntityID - marshalSize += this._supplyingEntityID.GetMarshalledSize(); // this._supplyingEntityID - marshalSize += 1; // this._numberOfSupplyTypes - marshalSize += 2; // this._padding1 - marshalSize += 1; // this._padding2 - for (int idx = 0; idx < this._supplies.Count; idx++) - { - SupplyQuantity listElement = (SupplyQuantity)this._supplies[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Entity that is receiving service - /// - [XmlElement(Type = typeof(EntityID), ElementName = "receivingEntityID")] - public EntityID ReceivingEntityID - { - get - { - return this._receivingEntityID; - } - - set - { - this._receivingEntityID = value; - } - } - - /// - /// Gets or sets the Entity that is supplying - /// - [XmlElement(Type = typeof(EntityID), ElementName = "supplyingEntityID")] - public EntityID SupplyingEntityID - { - get - { - return this._supplyingEntityID; - } - - set - { - this._supplyingEntityID = value; - } - } - - /// - /// Gets or sets the how many supplies are being offered - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfSupplyTypes method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfSupplyTypes")] - public byte NumberOfSupplyTypes - { - get - { - return this._numberOfSupplyTypes; - } - - set - { - this._numberOfSupplyTypes = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(short), ElementName = "padding1")] - public short Padding1 - { - get - { - return this._padding1; - } - - set - { - this._padding1 = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "padding2")] - public byte Padding2 - { - get - { - return this._padding2; - } - - set - { - this._padding2 = value; - } - } - - /// - /// Gets the supplies - /// - [XmlElement(ElementName = "suppliesList", Type = typeof(List))] - public List Supplies - { - get - { - return this._supplies; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._receivingEntityID.Marshal(dos); - this._supplyingEntityID.Marshal(dos); - dos.WriteUnsignedByte((byte)this._supplies.Count); - dos.WriteShort((short)this._padding1); - dos.WriteByte((byte)this._padding2); - - for (int idx = 0; idx < this._supplies.Count; idx++) - { - SupplyQuantity aSupplyQuantity = (SupplyQuantity)this._supplies[idx]; - aSupplyQuantity.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._receivingEntityID.Unmarshal(dis); - this._supplyingEntityID.Unmarshal(dis); - this._numberOfSupplyTypes = dis.ReadUnsignedByte(); - this._padding1 = dis.ReadShort(); - this._padding2 = dis.ReadByte(); - - for (int idx = 0; idx < this.NumberOfSupplyTypes; idx++) - { - SupplyQuantity anX = new SupplyQuantity(); - anX.Unmarshal(dis); - this._supplies.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._receivingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._supplyingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._supplies.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._supplies.Count; idx++) - { - sb.AppendLine(""); - SupplyQuantity aSupplyQuantity = (SupplyQuantity)this._supplies[idx]; - aSupplyQuantity.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ResupplyReceivedPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ResupplyReceivedPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._receivingEntityID.Equals(obj._receivingEntityID)) - { - ivarsEqual = false; - } - - if (!this._supplyingEntityID.Equals(obj._supplyingEntityID)) - { - ivarsEqual = false; - } - - if (this._numberOfSupplyTypes != obj._numberOfSupplyTypes) - { - ivarsEqual = false; - } - - if (this._padding1 != obj._padding1) - { - ivarsEqual = false; - } - - if (this._padding2 != obj._padding2) - { - ivarsEqual = false; - } - - if (this._supplies.Count != obj._supplies.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._supplies.Count; idx++) - { - if (!this._supplies[idx].Equals(obj._supplies[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._receivingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._supplyingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfSupplyTypes.GetHashCode(); - result = GenerateHash(result) ^ this._padding1.GetHashCode(); - result = GenerateHash(result) ^ this._padding2.GetHashCode(); - - if (this._supplies.Count > 0) - { - for (int idx = 0; idx < this._supplies.Count; idx++) - { - result = GenerateHash(result) ^ this._supplies[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.3.5.3. Receipt of supplies is communiated + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(SupplyQuantity))] + public partial class ResupplyReceivedPdu : LogisticsPdu, IEquatable + { + /// + /// Entity that is receiving service + /// + private EntityID _receivingEntityID = new EntityID(); + + /// + /// Entity that is supplying + /// + private EntityID _supplyingEntityID = new EntityID(); + + /// + /// how many supplies are being offered + /// + private byte _numberOfSupplyTypes; + + /// + /// padding + /// + private short _padding1; + + /// + /// padding + /// + private byte _padding2; + + private List _supplies = new List(); + + /// + /// Initializes a new instance of the class. + /// + public ResupplyReceivedPdu() + { + PduType = (byte)7; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ResupplyReceivedPdu left, ResupplyReceivedPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ResupplyReceivedPdu left, ResupplyReceivedPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._receivingEntityID.GetMarshalledSize(); // this._receivingEntityID + marshalSize += this._supplyingEntityID.GetMarshalledSize(); // this._supplyingEntityID + marshalSize += 1; // this._numberOfSupplyTypes + marshalSize += 2; // this._padding1 + marshalSize += 1; // this._padding2 + for (int idx = 0; idx < this._supplies.Count; idx++) + { + SupplyQuantity listElement = (SupplyQuantity)this._supplies[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Entity that is receiving service + /// + [XmlElement(Type = typeof(EntityID), ElementName = "receivingEntityID")] + public EntityID ReceivingEntityID + { + get + { + return this._receivingEntityID; + } + + set + { + this._receivingEntityID = value; + } + } + + /// + /// Gets or sets the Entity that is supplying + /// + [XmlElement(Type = typeof(EntityID), ElementName = "supplyingEntityID")] + public EntityID SupplyingEntityID + { + get + { + return this._supplyingEntityID; + } + + set + { + this._supplyingEntityID = value; + } + } + + /// + /// Gets or sets the how many supplies are being offered + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfSupplyTypes method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfSupplyTypes")] + public byte NumberOfSupplyTypes + { + get + { + return this._numberOfSupplyTypes; + } + + set + { + this._numberOfSupplyTypes = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(short), ElementName = "padding1")] + public short Padding1 + { + get + { + return this._padding1; + } + + set + { + this._padding1 = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "padding2")] + public byte Padding2 + { + get + { + return this._padding2; + } + + set + { + this._padding2 = value; + } + } + + /// + /// Gets the supplies + /// + [XmlElement(ElementName = "suppliesList", Type = typeof(List))] + public List Supplies + { + get + { + return this._supplies; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._receivingEntityID.Marshal(dos); + this._supplyingEntityID.Marshal(dos); + dos.WriteUnsignedByte((byte)this._supplies.Count); + dos.WriteShort((short)this._padding1); + dos.WriteByte((byte)this._padding2); + + for (int idx = 0; idx < this._supplies.Count; idx++) + { + SupplyQuantity aSupplyQuantity = (SupplyQuantity)this._supplies[idx]; + aSupplyQuantity.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._receivingEntityID.Unmarshal(dis); + this._supplyingEntityID.Unmarshal(dis); + this._numberOfSupplyTypes = dis.ReadUnsignedByte(); + this._padding1 = dis.ReadShort(); + this._padding2 = dis.ReadByte(); + + for (int idx = 0; idx < this.NumberOfSupplyTypes; idx++) + { + SupplyQuantity anX = new SupplyQuantity(); + anX.Unmarshal(dis); + this._supplies.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._receivingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._supplyingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._supplies.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._supplies.Count; idx++) + { + sb.AppendLine(""); + SupplyQuantity aSupplyQuantity = (SupplyQuantity)this._supplies[idx]; + aSupplyQuantity.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ResupplyReceivedPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ResupplyReceivedPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._receivingEntityID.Equals(obj._receivingEntityID)) + { + ivarsEqual = false; + } + + if (!this._supplyingEntityID.Equals(obj._supplyingEntityID)) + { + ivarsEqual = false; + } + + if (this._numberOfSupplyTypes != obj._numberOfSupplyTypes) + { + ivarsEqual = false; + } + + if (this._padding1 != obj._padding1) + { + ivarsEqual = false; + } + + if (this._padding2 != obj._padding2) + { + ivarsEqual = false; + } + + if (this._supplies.Count != obj._supplies.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._supplies.Count; idx++) + { + if (!this._supplies[idx].Equals(obj._supplies[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._receivingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._supplyingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfSupplyTypes.GetHashCode(); + result = GenerateHash(result) ^ this._padding1.GetHashCode(); + result = GenerateHash(result) ^ this._padding2.GetHashCode(); + + if (this._supplies.Count > 0) + { + for (int idx = 0; idx < this._supplies.Count; idx++) + { + result = GenerateHash(result) ^ this._supplies[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/ServiceRequestPdu.cs b/Libs/CsharpDis6/Dis1995/Generated/ServiceRequestPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/ServiceRequestPdu.cs rename to Libs/CsharpDis6/Dis1995/Generated/ServiceRequestPdu.cs index 3877693..4150574 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/ServiceRequestPdu.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/ServiceRequestPdu.cs @@ -1,508 +1,508 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.3.5.1. Information about a request for supplies - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(SupplyQuantity))] - public partial class ServiceRequestPdu : LogisticsPdu, IEquatable - { - /// - /// Entity that is requesting service - /// - private EntityID _requestingEntityID = new EntityID(); - - /// - /// Entity that is providing the service - /// - private EntityID _servicingEntityID = new EntityID(); - - /// - /// type of service requested - /// - private byte _serviceTypeRequested; - - /// - /// How many requested - /// - private byte _numberOfSupplyTypes; - - /// - /// padding - /// - private short _serviceRequestPadding; - - private List _supplies = new List(); - - /// - /// Initializes a new instance of the class. - /// - public ServiceRequestPdu() - { - PduType = (byte)5; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ServiceRequestPdu left, ServiceRequestPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ServiceRequestPdu left, ServiceRequestPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._requestingEntityID.GetMarshalledSize(); // this._requestingEntityID - marshalSize += this._servicingEntityID.GetMarshalledSize(); // this._servicingEntityID - marshalSize += 1; // this._serviceTypeRequested - marshalSize += 1; // this._numberOfSupplyTypes - marshalSize += 2; // this._serviceRequestPadding - for (int idx = 0; idx < this._supplies.Count; idx++) - { - SupplyQuantity listElement = (SupplyQuantity)this._supplies[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Entity that is requesting service - /// - [XmlElement(Type = typeof(EntityID), ElementName = "requestingEntityID")] - public EntityID RequestingEntityID - { - get - { - return this._requestingEntityID; - } - - set - { - this._requestingEntityID = value; - } - } - - /// - /// Gets or sets the Entity that is providing the service - /// - [XmlElement(Type = typeof(EntityID), ElementName = "servicingEntityID")] - public EntityID ServicingEntityID - { - get - { - return this._servicingEntityID; - } - - set - { - this._servicingEntityID = value; - } - } - - /// - /// Gets or sets the type of service requested - /// - [XmlElement(Type = typeof(byte), ElementName = "serviceTypeRequested")] - public byte ServiceTypeRequested - { - get - { - return this._serviceTypeRequested; - } - - set - { - this._serviceTypeRequested = value; - } - } - - /// - /// Gets or sets the How many requested - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfSupplyTypes method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfSupplyTypes")] - public byte NumberOfSupplyTypes - { - get - { - return this._numberOfSupplyTypes; - } - - set - { - this._numberOfSupplyTypes = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(short), ElementName = "serviceRequestPadding")] - public short ServiceRequestPadding - { - get - { - return this._serviceRequestPadding; - } - - set - { - this._serviceRequestPadding = value; - } - } - - /// - /// Gets the supplies - /// - [XmlElement(ElementName = "suppliesList", Type = typeof(List))] - public List Supplies - { - get - { - return this._supplies; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._requestingEntityID.Marshal(dos); - this._servicingEntityID.Marshal(dos); - dos.WriteUnsignedByte((byte)this._serviceTypeRequested); - dos.WriteUnsignedByte((byte)this._supplies.Count); - dos.WriteShort((short)this._serviceRequestPadding); - - for (int idx = 0; idx < this._supplies.Count; idx++) - { - SupplyQuantity aSupplyQuantity = (SupplyQuantity)this._supplies[idx]; - aSupplyQuantity.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._requestingEntityID.Unmarshal(dis); - this._servicingEntityID.Unmarshal(dis); - this._serviceTypeRequested = dis.ReadUnsignedByte(); - this._numberOfSupplyTypes = dis.ReadUnsignedByte(); - this._serviceRequestPadding = dis.ReadShort(); - - for (int idx = 0; idx < this.NumberOfSupplyTypes; idx++) - { - SupplyQuantity anX = new SupplyQuantity(); - anX.Unmarshal(dis); - this._supplies.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._requestingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._servicingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._serviceTypeRequested.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._supplies.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._serviceRequestPadding.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._supplies.Count; idx++) - { - sb.AppendLine(""); - SupplyQuantity aSupplyQuantity = (SupplyQuantity)this._supplies[idx]; - aSupplyQuantity.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ServiceRequestPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ServiceRequestPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._requestingEntityID.Equals(obj._requestingEntityID)) - { - ivarsEqual = false; - } - - if (!this._servicingEntityID.Equals(obj._servicingEntityID)) - { - ivarsEqual = false; - } - - if (this._serviceTypeRequested != obj._serviceTypeRequested) - { - ivarsEqual = false; - } - - if (this._numberOfSupplyTypes != obj._numberOfSupplyTypes) - { - ivarsEqual = false; - } - - if (this._serviceRequestPadding != obj._serviceRequestPadding) - { - ivarsEqual = false; - } - - if (this._supplies.Count != obj._supplies.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._supplies.Count; idx++) - { - if (!this._supplies[idx].Equals(obj._supplies[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._requestingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._servicingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._serviceTypeRequested.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfSupplyTypes.GetHashCode(); - result = GenerateHash(result) ^ this._serviceRequestPadding.GetHashCode(); - - if (this._supplies.Count > 0) - { - for (int idx = 0; idx < this._supplies.Count; idx++) - { - result = GenerateHash(result) ^ this._supplies[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.3.5.1. Information about a request for supplies + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(SupplyQuantity))] + public partial class ServiceRequestPdu : LogisticsPdu, IEquatable + { + /// + /// Entity that is requesting service + /// + private EntityID _requestingEntityID = new EntityID(); + + /// + /// Entity that is providing the service + /// + private EntityID _servicingEntityID = new EntityID(); + + /// + /// type of service requested + /// + private byte _serviceTypeRequested; + + /// + /// How many requested + /// + private byte _numberOfSupplyTypes; + + /// + /// padding + /// + private short _serviceRequestPadding; + + private List _supplies = new List(); + + /// + /// Initializes a new instance of the class. + /// + public ServiceRequestPdu() + { + PduType = (byte)5; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ServiceRequestPdu left, ServiceRequestPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ServiceRequestPdu left, ServiceRequestPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._requestingEntityID.GetMarshalledSize(); // this._requestingEntityID + marshalSize += this._servicingEntityID.GetMarshalledSize(); // this._servicingEntityID + marshalSize += 1; // this._serviceTypeRequested + marshalSize += 1; // this._numberOfSupplyTypes + marshalSize += 2; // this._serviceRequestPadding + for (int idx = 0; idx < this._supplies.Count; idx++) + { + SupplyQuantity listElement = (SupplyQuantity)this._supplies[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Entity that is requesting service + /// + [XmlElement(Type = typeof(EntityID), ElementName = "requestingEntityID")] + public EntityID RequestingEntityID + { + get + { + return this._requestingEntityID; + } + + set + { + this._requestingEntityID = value; + } + } + + /// + /// Gets or sets the Entity that is providing the service + /// + [XmlElement(Type = typeof(EntityID), ElementName = "servicingEntityID")] + public EntityID ServicingEntityID + { + get + { + return this._servicingEntityID; + } + + set + { + this._servicingEntityID = value; + } + } + + /// + /// Gets or sets the type of service requested + /// + [XmlElement(Type = typeof(byte), ElementName = "serviceTypeRequested")] + public byte ServiceTypeRequested + { + get + { + return this._serviceTypeRequested; + } + + set + { + this._serviceTypeRequested = value; + } + } + + /// + /// Gets or sets the How many requested + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfSupplyTypes method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfSupplyTypes")] + public byte NumberOfSupplyTypes + { + get + { + return this._numberOfSupplyTypes; + } + + set + { + this._numberOfSupplyTypes = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(short), ElementName = "serviceRequestPadding")] + public short ServiceRequestPadding + { + get + { + return this._serviceRequestPadding; + } + + set + { + this._serviceRequestPadding = value; + } + } + + /// + /// Gets the supplies + /// + [XmlElement(ElementName = "suppliesList", Type = typeof(List))] + public List Supplies + { + get + { + return this._supplies; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._requestingEntityID.Marshal(dos); + this._servicingEntityID.Marshal(dos); + dos.WriteUnsignedByte((byte)this._serviceTypeRequested); + dos.WriteUnsignedByte((byte)this._supplies.Count); + dos.WriteShort((short)this._serviceRequestPadding); + + for (int idx = 0; idx < this._supplies.Count; idx++) + { + SupplyQuantity aSupplyQuantity = (SupplyQuantity)this._supplies[idx]; + aSupplyQuantity.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._requestingEntityID.Unmarshal(dis); + this._servicingEntityID.Unmarshal(dis); + this._serviceTypeRequested = dis.ReadUnsignedByte(); + this._numberOfSupplyTypes = dis.ReadUnsignedByte(); + this._serviceRequestPadding = dis.ReadShort(); + + for (int idx = 0; idx < this.NumberOfSupplyTypes; idx++) + { + SupplyQuantity anX = new SupplyQuantity(); + anX.Unmarshal(dis); + this._supplies.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._requestingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._servicingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._serviceTypeRequested.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._supplies.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._serviceRequestPadding.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._supplies.Count; idx++) + { + sb.AppendLine(""); + SupplyQuantity aSupplyQuantity = (SupplyQuantity)this._supplies[idx]; + aSupplyQuantity.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ServiceRequestPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ServiceRequestPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._requestingEntityID.Equals(obj._requestingEntityID)) + { + ivarsEqual = false; + } + + if (!this._servicingEntityID.Equals(obj._servicingEntityID)) + { + ivarsEqual = false; + } + + if (this._serviceTypeRequested != obj._serviceTypeRequested) + { + ivarsEqual = false; + } + + if (this._numberOfSupplyTypes != obj._numberOfSupplyTypes) + { + ivarsEqual = false; + } + + if (this._serviceRequestPadding != obj._serviceRequestPadding) + { + ivarsEqual = false; + } + + if (this._supplies.Count != obj._supplies.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._supplies.Count; idx++) + { + if (!this._supplies[idx].Equals(obj._supplies[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._requestingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._servicingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._serviceTypeRequested.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfSupplyTypes.GetHashCode(); + result = GenerateHash(result) ^ this._serviceRequestPadding.GetHashCode(); + + if (this._supplies.Count > 0) + { + for (int idx = 0; idx < this._supplies.Count; idx++) + { + result = GenerateHash(result) ^ this._supplies[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/SetDataPdu.cs b/Libs/CsharpDis6/Dis1995/Generated/SetDataPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/SetDataPdu.cs rename to Libs/CsharpDis6/Dis1995/Generated/SetDataPdu.cs index 48fc12b..288c3a9 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/SetDataPdu.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/SetDataPdu.cs @@ -1,548 +1,548 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.3.6.9. Change state information with the data contained in this - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(FixedDatum))] - [XmlInclude(typeof(VariableDatum))] - public partial class SetDataPdu : SimulationManagementPdu, IEquatable - { - /// - /// ID of request - /// - private uint _requestID; - - /// - /// padding - /// - private uint _padding1; - - /// - /// Number of fixed datum records - /// - private uint _fixedDatumRecordCount; - - /// - /// Number of variable datum records - /// - private uint _variableDatumRecordCount; - - /// - /// variable length list of fixed datums - /// - private List _fixedDatums = new List(); - - /// - /// variable length list of variable length datums - /// - private List _variableDatums = new List(); - - /// - /// Initializes a new instance of the class. - /// - public SetDataPdu() - { - PduType = (byte)19; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(SetDataPdu left, SetDataPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(SetDataPdu left, SetDataPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 4; // this._requestID - marshalSize += 4; // this._padding1 - marshalSize += 4; // this._fixedDatumRecordCount - marshalSize += 4; // this._variableDatumRecordCount - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - FixedDatum listElement = (FixedDatum)this._fixedDatums[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - VariableDatum listElement = (VariableDatum)this._variableDatums[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the ID of request - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(uint), ElementName = "padding1")] - public uint Padding1 - { - get - { - return this._padding1; - } - - set - { - this._padding1 = value; - } - } - - /// - /// Gets or sets the Number of fixed datum records - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getfixedDatumRecordCount method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "fixedDatumRecordCount")] - public uint FixedDatumRecordCount - { - get - { - return this._fixedDatumRecordCount; - } - - set - { - this._fixedDatumRecordCount = value; - } - } - - /// - /// Gets or sets the Number of variable datum records - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getvariableDatumRecordCount method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "variableDatumRecordCount")] - public uint VariableDatumRecordCount - { - get - { - return this._variableDatumRecordCount; - } - - set - { - this._variableDatumRecordCount = value; - } - } - - /// - /// Gets the variable length list of fixed datums - /// - [XmlElement(ElementName = "fixedDatumsList", Type = typeof(List))] - public List FixedDatums - { - get - { - return this._fixedDatums; - } - } - - /// - /// Gets the variable length list of variable length datums - /// - [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] - public List VariableDatums - { - get - { - return this._variableDatums; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._requestID); - dos.WriteUnsignedInt((uint)this._padding1); - dos.WriteUnsignedInt((uint)this._fixedDatums.Count); - dos.WriteUnsignedInt((uint)this._variableDatums.Count); - - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; - aFixedDatum.Marshal(dos); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; - aVariableDatum.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._requestID = dis.ReadUnsignedInt(); - this._padding1 = dis.ReadUnsignedInt(); - this._fixedDatumRecordCount = dis.ReadUnsignedInt(); - this._variableDatumRecordCount = dis.ReadUnsignedInt(); - - for (int idx = 0; idx < this.FixedDatumRecordCount; idx++) - { - FixedDatum anX = new FixedDatum(); - anX.Unmarshal(dis); - this._fixedDatums.Add(anX); - } - - for (int idx = 0; idx < this.VariableDatumRecordCount; idx++) - { - VariableDatum anX = new VariableDatum(); - anX.Unmarshal(dis); - this._variableDatums.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fixedDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - sb.AppendLine(""); - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; - aFixedDatum.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - sb.AppendLine(""); - VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; - aVariableDatum.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as SetDataPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(SetDataPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - if (this._padding1 != obj._padding1) - { - ivarsEqual = false; - } - - if (this._fixedDatumRecordCount != obj._fixedDatumRecordCount) - { - ivarsEqual = false; - } - - if (this._variableDatumRecordCount != obj._variableDatumRecordCount) - { - ivarsEqual = false; - } - - if (this._fixedDatums.Count != obj._fixedDatums.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - if (!this._fixedDatums[idx].Equals(obj._fixedDatums[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._variableDatums.Count != obj._variableDatums.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - result = GenerateHash(result) ^ this._padding1.GetHashCode(); - result = GenerateHash(result) ^ this._fixedDatumRecordCount.GetHashCode(); - result = GenerateHash(result) ^ this._variableDatumRecordCount.GetHashCode(); - - if (this._fixedDatums.Count > 0) - { - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - result = GenerateHash(result) ^ this._fixedDatums[idx].GetHashCode(); - } - } - - if (this._variableDatums.Count > 0) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.3.6.9. Change state information with the data contained in this + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(FixedDatum))] + [XmlInclude(typeof(VariableDatum))] + public partial class SetDataPdu : SimulationManagementPdu, IEquatable + { + /// + /// ID of request + /// + private uint _requestID; + + /// + /// padding + /// + private uint _padding1; + + /// + /// Number of fixed datum records + /// + private uint _fixedDatumRecordCount; + + /// + /// Number of variable datum records + /// + private uint _variableDatumRecordCount; + + /// + /// variable length list of fixed datums + /// + private List _fixedDatums = new List(); + + /// + /// variable length list of variable length datums + /// + private List _variableDatums = new List(); + + /// + /// Initializes a new instance of the class. + /// + public SetDataPdu() + { + PduType = (byte)19; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(SetDataPdu left, SetDataPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(SetDataPdu left, SetDataPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 4; // this._requestID + marshalSize += 4; // this._padding1 + marshalSize += 4; // this._fixedDatumRecordCount + marshalSize += 4; // this._variableDatumRecordCount + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + FixedDatum listElement = (FixedDatum)this._fixedDatums[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + VariableDatum listElement = (VariableDatum)this._variableDatums[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the ID of request + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(uint), ElementName = "padding1")] + public uint Padding1 + { + get + { + return this._padding1; + } + + set + { + this._padding1 = value; + } + } + + /// + /// Gets or sets the Number of fixed datum records + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getfixedDatumRecordCount method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "fixedDatumRecordCount")] + public uint FixedDatumRecordCount + { + get + { + return this._fixedDatumRecordCount; + } + + set + { + this._fixedDatumRecordCount = value; + } + } + + /// + /// Gets or sets the Number of variable datum records + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getvariableDatumRecordCount method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "variableDatumRecordCount")] + public uint VariableDatumRecordCount + { + get + { + return this._variableDatumRecordCount; + } + + set + { + this._variableDatumRecordCount = value; + } + } + + /// + /// Gets the variable length list of fixed datums + /// + [XmlElement(ElementName = "fixedDatumsList", Type = typeof(List))] + public List FixedDatums + { + get + { + return this._fixedDatums; + } + } + + /// + /// Gets the variable length list of variable length datums + /// + [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] + public List VariableDatums + { + get + { + return this._variableDatums; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._requestID); + dos.WriteUnsignedInt((uint)this._padding1); + dos.WriteUnsignedInt((uint)this._fixedDatums.Count); + dos.WriteUnsignedInt((uint)this._variableDatums.Count); + + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; + aFixedDatum.Marshal(dos); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; + aVariableDatum.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._requestID = dis.ReadUnsignedInt(); + this._padding1 = dis.ReadUnsignedInt(); + this._fixedDatumRecordCount = dis.ReadUnsignedInt(); + this._variableDatumRecordCount = dis.ReadUnsignedInt(); + + for (int idx = 0; idx < this.FixedDatumRecordCount; idx++) + { + FixedDatum anX = new FixedDatum(); + anX.Unmarshal(dis); + this._fixedDatums.Add(anX); + } + + for (int idx = 0; idx < this.VariableDatumRecordCount; idx++) + { + VariableDatum anX = new VariableDatum(); + anX.Unmarshal(dis); + this._variableDatums.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fixedDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + sb.AppendLine(""); + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; + aFixedDatum.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + sb.AppendLine(""); + VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; + aVariableDatum.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as SetDataPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(SetDataPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + if (this._padding1 != obj._padding1) + { + ivarsEqual = false; + } + + if (this._fixedDatumRecordCount != obj._fixedDatumRecordCount) + { + ivarsEqual = false; + } + + if (this._variableDatumRecordCount != obj._variableDatumRecordCount) + { + ivarsEqual = false; + } + + if (this._fixedDatums.Count != obj._fixedDatums.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + if (!this._fixedDatums[idx].Equals(obj._fixedDatums[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._variableDatums.Count != obj._variableDatums.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + result = GenerateHash(result) ^ this._padding1.GetHashCode(); + result = GenerateHash(result) ^ this._fixedDatumRecordCount.GetHashCode(); + result = GenerateHash(result) ^ this._variableDatumRecordCount.GetHashCode(); + + if (this._fixedDatums.Count > 0) + { + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + result = GenerateHash(result) ^ this._fixedDatums[idx].GetHashCode(); + } + } + + if (this._variableDatums.Count > 0) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/SignalPdu.cs b/Libs/CsharpDis6/Dis1995/Generated/SignalPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/SignalPdu.cs rename to Libs/CsharpDis6/Dis1995/Generated/SignalPdu.cs index 763b7b8..0b5796b 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/SignalPdu.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/SignalPdu.cs @@ -1,432 +1,432 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.3.8.1. Detailed information about a radio transmitter. This PDU requires manually written code to comnplete. - /// - [Serializable] - [XmlRoot] - public partial class SignalPdu : RadioCommunicationsPdu, IEquatable - { - /// - /// encoding scheme used, and enumeration - /// - private ushort _encodingScheme; - - /// - /// tdl type - /// - private ushort _tdlType; - - /// - /// sample rate - /// - private uint _sampleRate; - - /// - /// length od data - /// - private short _dataLength; - - /// - /// number of samples - /// - private short _samples; - - /// - /// Initializes a new instance of the class. - /// - public SignalPdu() - { - PduType = (byte)26; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(SignalPdu left, SignalPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(SignalPdu left, SignalPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 2; // this._encodingScheme - marshalSize += 2; // this._tdlType - marshalSize += 4; // this._sampleRate - marshalSize += 2; // this._dataLength - marshalSize += 2; // this._samples - return marshalSize; - } - - /// - /// Gets or sets the encoding scheme used, and enumeration - /// - [XmlElement(Type = typeof(ushort), ElementName = "encodingScheme")] - public ushort EncodingScheme - { - get - { - return this._encodingScheme; - } - - set - { - this._encodingScheme = value; - } - } - - /// - /// Gets or sets the tdl type - /// - [XmlElement(Type = typeof(ushort), ElementName = "tdlType")] - public ushort TdlType - { - get - { - return this._tdlType; - } - - set - { - this._tdlType = value; - } - } - - /// - /// Gets or sets the sample rate - /// - [XmlElement(Type = typeof(uint), ElementName = "sampleRate")] - public uint SampleRate - { - get - { - return this._sampleRate; - } - - set - { - this._sampleRate = value; - } - } - - /// - /// Gets or sets the length od data - /// - [XmlElement(Type = typeof(short), ElementName = "dataLength")] - public short DataLength - { - get - { - return this._dataLength; - } - - set - { - this._dataLength = value; - } - } - - /// - /// Gets or sets the number of samples - /// - [XmlElement(Type = typeof(short), ElementName = "samples")] - public short Samples - { - get - { - return this._samples; - } - - set - { - this._samples = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._encodingScheme); - dos.WriteUnsignedShort((ushort)this._tdlType); - dos.WriteUnsignedInt((uint)this._sampleRate); - dos.WriteShort((short)this._dataLength); - dos.WriteShort((short)this._samples); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._encodingScheme = dis.ReadUnsignedShort(); - this._tdlType = dis.ReadUnsignedShort(); - this._sampleRate = dis.ReadUnsignedInt(); - this._dataLength = dis.ReadShort(); - this._samples = dis.ReadShort(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._encodingScheme.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._tdlType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._sampleRate.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._dataLength.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._samples.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as SignalPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(SignalPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._encodingScheme != obj._encodingScheme) - { - ivarsEqual = false; - } - - if (this._tdlType != obj._tdlType) - { - ivarsEqual = false; - } - - if (this._sampleRate != obj._sampleRate) - { - ivarsEqual = false; - } - - if (this._dataLength != obj._dataLength) - { - ivarsEqual = false; - } - - if (this._samples != obj._samples) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._encodingScheme.GetHashCode(); - result = GenerateHash(result) ^ this._tdlType.GetHashCode(); - result = GenerateHash(result) ^ this._sampleRate.GetHashCode(); - result = GenerateHash(result) ^ this._dataLength.GetHashCode(); - result = GenerateHash(result) ^ this._samples.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.3.8.1. Detailed information about a radio transmitter. This PDU requires manually written code to comnplete. + /// + [Serializable] + [XmlRoot] + public partial class SignalPdu : RadioCommunicationsPdu, IEquatable + { + /// + /// encoding scheme used, and enumeration + /// + private ushort _encodingScheme; + + /// + /// tdl type + /// + private ushort _tdlType; + + /// + /// sample rate + /// + private uint _sampleRate; + + /// + /// length od data + /// + private short _dataLength; + + /// + /// number of samples + /// + private short _samples; + + /// + /// Initializes a new instance of the class. + /// + public SignalPdu() + { + PduType = (byte)26; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(SignalPdu left, SignalPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(SignalPdu left, SignalPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 2; // this._encodingScheme + marshalSize += 2; // this._tdlType + marshalSize += 4; // this._sampleRate + marshalSize += 2; // this._dataLength + marshalSize += 2; // this._samples + return marshalSize; + } + + /// + /// Gets or sets the encoding scheme used, and enumeration + /// + [XmlElement(Type = typeof(ushort), ElementName = "encodingScheme")] + public ushort EncodingScheme + { + get + { + return this._encodingScheme; + } + + set + { + this._encodingScheme = value; + } + } + + /// + /// Gets or sets the tdl type + /// + [XmlElement(Type = typeof(ushort), ElementName = "tdlType")] + public ushort TdlType + { + get + { + return this._tdlType; + } + + set + { + this._tdlType = value; + } + } + + /// + /// Gets or sets the sample rate + /// + [XmlElement(Type = typeof(uint), ElementName = "sampleRate")] + public uint SampleRate + { + get + { + return this._sampleRate; + } + + set + { + this._sampleRate = value; + } + } + + /// + /// Gets or sets the length od data + /// + [XmlElement(Type = typeof(short), ElementName = "dataLength")] + public short DataLength + { + get + { + return this._dataLength; + } + + set + { + this._dataLength = value; + } + } + + /// + /// Gets or sets the number of samples + /// + [XmlElement(Type = typeof(short), ElementName = "samples")] + public short Samples + { + get + { + return this._samples; + } + + set + { + this._samples = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._encodingScheme); + dos.WriteUnsignedShort((ushort)this._tdlType); + dos.WriteUnsignedInt((uint)this._sampleRate); + dos.WriteShort((short)this._dataLength); + dos.WriteShort((short)this._samples); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._encodingScheme = dis.ReadUnsignedShort(); + this._tdlType = dis.ReadUnsignedShort(); + this._sampleRate = dis.ReadUnsignedInt(); + this._dataLength = dis.ReadShort(); + this._samples = dis.ReadShort(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._encodingScheme.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._tdlType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._sampleRate.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._dataLength.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._samples.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as SignalPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(SignalPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._encodingScheme != obj._encodingScheme) + { + ivarsEqual = false; + } + + if (this._tdlType != obj._tdlType) + { + ivarsEqual = false; + } + + if (this._sampleRate != obj._sampleRate) + { + ivarsEqual = false; + } + + if (this._dataLength != obj._dataLength) + { + ivarsEqual = false; + } + + if (this._samples != obj._samples) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._encodingScheme.GetHashCode(); + result = GenerateHash(result) ^ this._tdlType.GetHashCode(); + result = GenerateHash(result) ^ this._sampleRate.GetHashCode(); + result = GenerateHash(result) ^ this._dataLength.GetHashCode(); + result = GenerateHash(result) ^ this._samples.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/SimulationAddress.cs b/Libs/CsharpDis6/Dis1995/Generated/SimulationAddress.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/SimulationAddress.cs rename to Libs/CsharpDis6/Dis1995/Generated/SimulationAddress.cs index 182bcd2..e5b9918 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/SimulationAddress.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/SimulationAddress.cs @@ -1,332 +1,332 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.2.14.1. A Simulation Address record shall consist of the Site Identification number and the Application Identification number. - /// - [Serializable] - [XmlRoot] - public partial class SimulationAddress - { - /// - /// The site ID - /// - private ushort _site; - - /// - /// The application ID - /// - private ushort _application; - - /// - /// Initializes a new instance of the class. - /// - public SimulationAddress() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(SimulationAddress left, SimulationAddress right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(SimulationAddress left, SimulationAddress right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 2; // this._site - marshalSize += 2; // this._application - return marshalSize; - } - - /// - /// Gets or sets the The site ID - /// - [XmlElement(Type = typeof(ushort), ElementName = "site")] - public ushort Site - { - get - { - return this._site; - } - - set - { - this._site = value; - } - } - - /// - /// Gets or sets the The application ID - /// - [XmlElement(Type = typeof(ushort), ElementName = "application")] - public ushort Application - { - get - { - return this._application; - } - - set - { - this._application = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._site); - dos.WriteUnsignedShort((ushort)this._application); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._site = dis.ReadUnsignedShort(); - this._application = dis.ReadUnsignedShort(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._site.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._application.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as SimulationAddress; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(SimulationAddress obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._site != obj._site) - { - ivarsEqual = false; - } - - if (this._application != obj._application) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._site.GetHashCode(); - result = GenerateHash(result) ^ this._application.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.2.14.1. A Simulation Address record shall consist of the Site Identification number and the Application Identification number. + /// + [Serializable] + [XmlRoot] + public partial class SimulationAddress + { + /// + /// The site ID + /// + private ushort _site; + + /// + /// The application ID + /// + private ushort _application; + + /// + /// Initializes a new instance of the class. + /// + public SimulationAddress() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(SimulationAddress left, SimulationAddress right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(SimulationAddress left, SimulationAddress right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 2; // this._site + marshalSize += 2; // this._application + return marshalSize; + } + + /// + /// Gets or sets the The site ID + /// + [XmlElement(Type = typeof(ushort), ElementName = "site")] + public ushort Site + { + get + { + return this._site; + } + + set + { + this._site = value; + } + } + + /// + /// Gets or sets the The application ID + /// + [XmlElement(Type = typeof(ushort), ElementName = "application")] + public ushort Application + { + get + { + return this._application; + } + + set + { + this._application = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._site); + dos.WriteUnsignedShort((ushort)this._application); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._site = dis.ReadUnsignedShort(); + this._application = dis.ReadUnsignedShort(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._site.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._application.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as SimulationAddress; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(SimulationAddress obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._site != obj._site) + { + ivarsEqual = false; + } + + if (this._application != obj._application) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._site.GetHashCode(); + result = GenerateHash(result) ^ this._application.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/SimulationManagementPdu.cs b/Libs/CsharpDis6/Dis1995/Generated/SimulationManagementPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/SimulationManagementPdu.cs rename to Libs/CsharpDis6/Dis1995/Generated/SimulationManagementPdu.cs index d6ec467..f94b66f 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/SimulationManagementPdu.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/SimulationManagementPdu.cs @@ -1,341 +1,341 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.3.6. Abstract superclass for PDUs relating to the simulation itself - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - public partial class SimulationManagementPdu : Pdu, IEquatable - { - /// - /// Entity that is sending message - /// - private EntityID _originatingEntityID = new EntityID(); - - /// - /// Entity that is intended to receive message - /// - private EntityID _receivingEntityID = new EntityID(); - - /// - /// Initializes a new instance of the class. - /// - public SimulationManagementPdu() - { - ProtocolFamily = (byte)5; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(SimulationManagementPdu left, SimulationManagementPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(SimulationManagementPdu left, SimulationManagementPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._originatingEntityID.GetMarshalledSize(); // this._originatingEntityID - marshalSize += this._receivingEntityID.GetMarshalledSize(); // this._receivingEntityID - return marshalSize; - } - - /// - /// Gets or sets the Entity that is sending message - /// - [XmlElement(Type = typeof(EntityID), ElementName = "originatingEntityID")] - public EntityID OriginatingEntityID - { - get - { - return this._originatingEntityID; - } - - set - { - this._originatingEntityID = value; - } - } - - /// - /// Gets or sets the Entity that is intended to receive message - /// - [XmlElement(Type = typeof(EntityID), ElementName = "receivingEntityID")] - public EntityID ReceivingEntityID - { - get - { - return this._receivingEntityID; - } - - set - { - this._receivingEntityID = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public virtual void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._originatingEntityID.Marshal(dos); - this._receivingEntityID.Marshal(dos); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._originatingEntityID.Unmarshal(dis); - this._receivingEntityID.Unmarshal(dis); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._originatingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._receivingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as SimulationManagementPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(SimulationManagementPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._originatingEntityID.Equals(obj._originatingEntityID)) - { - ivarsEqual = false; - } - - if (!this._receivingEntityID.Equals(obj._receivingEntityID)) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._originatingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._receivingEntityID.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.3.6. Abstract superclass for PDUs relating to the simulation itself + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + public partial class SimulationManagementPdu : Pdu, IEquatable + { + /// + /// Entity that is sending message + /// + private EntityID _originatingEntityID = new EntityID(); + + /// + /// Entity that is intended to receive message + /// + private EntityID _receivingEntityID = new EntityID(); + + /// + /// Initializes a new instance of the class. + /// + public SimulationManagementPdu() + { + ProtocolFamily = (byte)5; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(SimulationManagementPdu left, SimulationManagementPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(SimulationManagementPdu left, SimulationManagementPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._originatingEntityID.GetMarshalledSize(); // this._originatingEntityID + marshalSize += this._receivingEntityID.GetMarshalledSize(); // this._receivingEntityID + return marshalSize; + } + + /// + /// Gets or sets the Entity that is sending message + /// + [XmlElement(Type = typeof(EntityID), ElementName = "originatingEntityID")] + public EntityID OriginatingEntityID + { + get + { + return this._originatingEntityID; + } + + set + { + this._originatingEntityID = value; + } + } + + /// + /// Gets or sets the Entity that is intended to receive message + /// + [XmlElement(Type = typeof(EntityID), ElementName = "receivingEntityID")] + public EntityID ReceivingEntityID + { + get + { + return this._receivingEntityID; + } + + set + { + this._receivingEntityID = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public virtual void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._originatingEntityID.Marshal(dos); + this._receivingEntityID.Marshal(dos); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._originatingEntityID.Unmarshal(dis); + this._receivingEntityID.Unmarshal(dis); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._originatingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._receivingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as SimulationManagementPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(SimulationManagementPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._originatingEntityID.Equals(obj._originatingEntityID)) + { + ivarsEqual = false; + } + + if (!this._receivingEntityID.Equals(obj._receivingEntityID)) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._originatingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._receivingEntityID.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/SphericalHarmonicAntennaPattern.cs b/Libs/CsharpDis6/Dis1995/Generated/SphericalHarmonicAntennaPattern.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/SphericalHarmonicAntennaPattern.cs rename to Libs/CsharpDis6/Dis1995/Generated/SphericalHarmonicAntennaPattern.cs index 9c35051..321c490 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/SphericalHarmonicAntennaPattern.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/SphericalHarmonicAntennaPattern.cs @@ -1,297 +1,297 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.2.4.3. Used when the antenna pattern type in the transmitter pdu is of value 2. Specified the direction and radiation pattern from a radio transmitter's antenna. NOTE: this class must be hand-coded to clean up some implementation details. - /// - [Serializable] - [XmlRoot] - public partial class SphericalHarmonicAntennaPattern - { - private byte _order; - - /// - /// Initializes a new instance of the class. - /// - public SphericalHarmonicAntennaPattern() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(SphericalHarmonicAntennaPattern left, SphericalHarmonicAntennaPattern right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(SphericalHarmonicAntennaPattern left, SphericalHarmonicAntennaPattern right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._order - return marshalSize; - } - - /// - /// Gets or sets the order - /// - [XmlElement(Type = typeof(byte), ElementName = "order")] - public byte Order - { - get - { - return this._order; - } - - set - { - this._order = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteByte((byte)this._order); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._order = dis.ReadByte(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._order.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as SphericalHarmonicAntennaPattern; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(SphericalHarmonicAntennaPattern obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._order != obj._order) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._order.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.2.4.3. Used when the antenna pattern type in the transmitter pdu is of value 2. Specified the direction and radiation pattern from a radio transmitter's antenna. NOTE: this class must be hand-coded to clean up some implementation details. + /// + [Serializable] + [XmlRoot] + public partial class SphericalHarmonicAntennaPattern + { + private byte _order; + + /// + /// Initializes a new instance of the class. + /// + public SphericalHarmonicAntennaPattern() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(SphericalHarmonicAntennaPattern left, SphericalHarmonicAntennaPattern right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(SphericalHarmonicAntennaPattern left, SphericalHarmonicAntennaPattern right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._order + return marshalSize; + } + + /// + /// Gets or sets the order + /// + [XmlElement(Type = typeof(byte), ElementName = "order")] + public byte Order + { + get + { + return this._order; + } + + set + { + this._order = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteByte((byte)this._order); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._order = dis.ReadByte(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._order.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as SphericalHarmonicAntennaPattern; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(SphericalHarmonicAntennaPattern obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._order != obj._order) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._order.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/StartResumePdu.cs b/Libs/CsharpDis6/Dis1995/Generated/StartResumePdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/StartResumePdu.cs rename to Libs/CsharpDis6/Dis1995/Generated/StartResumePdu.cs index a95d2a7..ad7bc45 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/StartResumePdu.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/StartResumePdu.cs @@ -1,373 +1,373 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.2.6.3. Start or resume an exercise - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(ClockTime))] - public partial class StartResumePdu : SimulationManagementPdu, IEquatable - { - /// - /// UTC time at which the simulation shall start or resume - /// - private ClockTime _realWorldTime = new ClockTime(); - - /// - /// Simulation clock time at which the simulation shall start or resume - /// - private ClockTime _simulationTime = new ClockTime(); - - /// - /// Identifier for the request - /// - private uint _requestID; - - /// - /// Initializes a new instance of the class. - /// - public StartResumePdu() - { - PduType = (byte)13; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(StartResumePdu left, StartResumePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(StartResumePdu left, StartResumePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._realWorldTime.GetMarshalledSize(); // this._realWorldTime - marshalSize += this._simulationTime.GetMarshalledSize(); // this._simulationTime - marshalSize += 4; // this._requestID - return marshalSize; - } - - /// - /// Gets or sets the UTC time at which the simulation shall start or resume - /// - [XmlElement(Type = typeof(ClockTime), ElementName = "realWorldTime")] - public ClockTime RealWorldTime - { - get - { - return this._realWorldTime; - } - - set - { - this._realWorldTime = value; - } - } - - /// - /// Gets or sets the Simulation clock time at which the simulation shall start or resume - /// - [XmlElement(Type = typeof(ClockTime), ElementName = "simulationTime")] - public ClockTime SimulationTime - { - get - { - return this._simulationTime; - } - - set - { - this._simulationTime = value; - } - } - - /// - /// Gets or sets the Identifier for the request - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._realWorldTime.Marshal(dos); - this._simulationTime.Marshal(dos); - dos.WriteUnsignedInt((uint)this._requestID); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._realWorldTime.Unmarshal(dis); - this._simulationTime.Unmarshal(dis); - this._requestID = dis.ReadUnsignedInt(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._realWorldTime.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._simulationTime.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as StartResumePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(StartResumePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._realWorldTime.Equals(obj._realWorldTime)) - { - ivarsEqual = false; - } - - if (!this._simulationTime.Equals(obj._simulationTime)) - { - ivarsEqual = false; - } - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._realWorldTime.GetHashCode(); - result = GenerateHash(result) ^ this._simulationTime.GetHashCode(); - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.2.6.3. Start or resume an exercise + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(ClockTime))] + public partial class StartResumePdu : SimulationManagementPdu, IEquatable + { + /// + /// UTC time at which the simulation shall start or resume + /// + private ClockTime _realWorldTime = new ClockTime(); + + /// + /// Simulation clock time at which the simulation shall start or resume + /// + private ClockTime _simulationTime = new ClockTime(); + + /// + /// Identifier for the request + /// + private uint _requestID; + + /// + /// Initializes a new instance of the class. + /// + public StartResumePdu() + { + PduType = (byte)13; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(StartResumePdu left, StartResumePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(StartResumePdu left, StartResumePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._realWorldTime.GetMarshalledSize(); // this._realWorldTime + marshalSize += this._simulationTime.GetMarshalledSize(); // this._simulationTime + marshalSize += 4; // this._requestID + return marshalSize; + } + + /// + /// Gets or sets the UTC time at which the simulation shall start or resume + /// + [XmlElement(Type = typeof(ClockTime), ElementName = "realWorldTime")] + public ClockTime RealWorldTime + { + get + { + return this._realWorldTime; + } + + set + { + this._realWorldTime = value; + } + } + + /// + /// Gets or sets the Simulation clock time at which the simulation shall start or resume + /// + [XmlElement(Type = typeof(ClockTime), ElementName = "simulationTime")] + public ClockTime SimulationTime + { + get + { + return this._simulationTime; + } + + set + { + this._simulationTime = value; + } + } + + /// + /// Gets or sets the Identifier for the request + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._realWorldTime.Marshal(dos); + this._simulationTime.Marshal(dos); + dos.WriteUnsignedInt((uint)this._requestID); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._realWorldTime.Unmarshal(dis); + this._simulationTime.Unmarshal(dis); + this._requestID = dis.ReadUnsignedInt(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._realWorldTime.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._simulationTime.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as StartResumePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(StartResumePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._realWorldTime.Equals(obj._realWorldTime)) + { + ivarsEqual = false; + } + + if (!this._simulationTime.Equals(obj._simulationTime)) + { + ivarsEqual = false; + } + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._realWorldTime.GetHashCode(); + result = GenerateHash(result) ^ this._simulationTime.GetHashCode(); + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/StopFreezePdu.cs b/Libs/CsharpDis6/Dis1995/Generated/StopFreezePdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/StopFreezePdu.cs rename to Libs/CsharpDis6/Dis1995/Generated/StopFreezePdu.cs index 978e163..f8a7dc7 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/StopFreezePdu.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/StopFreezePdu.cs @@ -1,435 +1,435 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.2.3.4. Stop or freeze an exercise - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(ClockTime))] - public partial class StopFreezePdu : SimulationManagementPdu, IEquatable - { - /// - /// UTC time at which the simulation shall stop or freeze - /// - private ClockTime _realWorldTime = new ClockTime(); - - /// - /// Reason the simulation was stopped or frozen - /// - private byte _reason; - - /// - /// Internal behavior of the simulation and its appearance while frozento the other participants - /// - private byte _frozenBehavior; - - /// - /// padding - /// - private short _padding1; - - /// - /// Request ID that is unique - /// - private uint _requestID; - - /// - /// Initializes a new instance of the class. - /// - public StopFreezePdu() - { - PduType = (byte)14; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(StopFreezePdu left, StopFreezePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(StopFreezePdu left, StopFreezePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._realWorldTime.GetMarshalledSize(); // this._realWorldTime - marshalSize += 1; // this._reason - marshalSize += 1; // this._frozenBehavior - marshalSize += 2; // this._padding1 - marshalSize += 4; // this._requestID - return marshalSize; - } - - /// - /// Gets or sets the UTC time at which the simulation shall stop or freeze - /// - [XmlElement(Type = typeof(ClockTime), ElementName = "realWorldTime")] - public ClockTime RealWorldTime - { - get - { - return this._realWorldTime; - } - - set - { - this._realWorldTime = value; - } - } - - /// - /// Gets or sets the Reason the simulation was stopped or frozen - /// - [XmlElement(Type = typeof(byte), ElementName = "reason")] - public byte Reason - { - get - { - return this._reason; - } - - set - { - this._reason = value; - } - } - - /// - /// Gets or sets the Internal behavior of the simulation and its appearance while frozento the other participants - /// - [XmlElement(Type = typeof(byte), ElementName = "frozenBehavior")] - public byte FrozenBehavior - { - get - { - return this._frozenBehavior; - } - - set - { - this._frozenBehavior = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(short), ElementName = "padding1")] - public short Padding1 - { - get - { - return this._padding1; - } - - set - { - this._padding1 = value; - } - } - - /// - /// Gets or sets the Request ID that is unique - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._realWorldTime.Marshal(dos); - dos.WriteUnsignedByte((byte)this._reason); - dos.WriteUnsignedByte((byte)this._frozenBehavior); - dos.WriteShort((short)this._padding1); - dos.WriteUnsignedInt((uint)this._requestID); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._realWorldTime.Unmarshal(dis); - this._reason = dis.ReadUnsignedByte(); - this._frozenBehavior = dis.ReadUnsignedByte(); - this._padding1 = dis.ReadShort(); - this._requestID = dis.ReadUnsignedInt(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._realWorldTime.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._reason.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._frozenBehavior.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as StopFreezePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(StopFreezePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._realWorldTime.Equals(obj._realWorldTime)) - { - ivarsEqual = false; - } - - if (this._reason != obj._reason) - { - ivarsEqual = false; - } - - if (this._frozenBehavior != obj._frozenBehavior) - { - ivarsEqual = false; - } - - if (this._padding1 != obj._padding1) - { - ivarsEqual = false; - } - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._realWorldTime.GetHashCode(); - result = GenerateHash(result) ^ this._reason.GetHashCode(); - result = GenerateHash(result) ^ this._frozenBehavior.GetHashCode(); - result = GenerateHash(result) ^ this._padding1.GetHashCode(); - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.2.3.4. Stop or freeze an exercise + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(ClockTime))] + public partial class StopFreezePdu : SimulationManagementPdu, IEquatable + { + /// + /// UTC time at which the simulation shall stop or freeze + /// + private ClockTime _realWorldTime = new ClockTime(); + + /// + /// Reason the simulation was stopped or frozen + /// + private byte _reason; + + /// + /// Internal behavior of the simulation and its appearance while frozento the other participants + /// + private byte _frozenBehavior; + + /// + /// padding + /// + private short _padding1; + + /// + /// Request ID that is unique + /// + private uint _requestID; + + /// + /// Initializes a new instance of the class. + /// + public StopFreezePdu() + { + PduType = (byte)14; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(StopFreezePdu left, StopFreezePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(StopFreezePdu left, StopFreezePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._realWorldTime.GetMarshalledSize(); // this._realWorldTime + marshalSize += 1; // this._reason + marshalSize += 1; // this._frozenBehavior + marshalSize += 2; // this._padding1 + marshalSize += 4; // this._requestID + return marshalSize; + } + + /// + /// Gets or sets the UTC time at which the simulation shall stop or freeze + /// + [XmlElement(Type = typeof(ClockTime), ElementName = "realWorldTime")] + public ClockTime RealWorldTime + { + get + { + return this._realWorldTime; + } + + set + { + this._realWorldTime = value; + } + } + + /// + /// Gets or sets the Reason the simulation was stopped or frozen + /// + [XmlElement(Type = typeof(byte), ElementName = "reason")] + public byte Reason + { + get + { + return this._reason; + } + + set + { + this._reason = value; + } + } + + /// + /// Gets or sets the Internal behavior of the simulation and its appearance while frozento the other participants + /// + [XmlElement(Type = typeof(byte), ElementName = "frozenBehavior")] + public byte FrozenBehavior + { + get + { + return this._frozenBehavior; + } + + set + { + this._frozenBehavior = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(short), ElementName = "padding1")] + public short Padding1 + { + get + { + return this._padding1; + } + + set + { + this._padding1 = value; + } + } + + /// + /// Gets or sets the Request ID that is unique + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._realWorldTime.Marshal(dos); + dos.WriteUnsignedByte((byte)this._reason); + dos.WriteUnsignedByte((byte)this._frozenBehavior); + dos.WriteShort((short)this._padding1); + dos.WriteUnsignedInt((uint)this._requestID); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._realWorldTime.Unmarshal(dis); + this._reason = dis.ReadUnsignedByte(); + this._frozenBehavior = dis.ReadUnsignedByte(); + this._padding1 = dis.ReadShort(); + this._requestID = dis.ReadUnsignedInt(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._realWorldTime.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._reason.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._frozenBehavior.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as StopFreezePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(StopFreezePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._realWorldTime.Equals(obj._realWorldTime)) + { + ivarsEqual = false; + } + + if (this._reason != obj._reason) + { + ivarsEqual = false; + } + + if (this._frozenBehavior != obj._frozenBehavior) + { + ivarsEqual = false; + } + + if (this._padding1 != obj._padding1) + { + ivarsEqual = false; + } + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._realWorldTime.GetHashCode(); + result = GenerateHash(result) ^ this._reason.GetHashCode(); + result = GenerateHash(result) ^ this._frozenBehavior.GetHashCode(); + result = GenerateHash(result) ^ this._padding1.GetHashCode(); + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/SupplyQuantity.cs b/Libs/CsharpDis6/Dis1995/Generated/SupplyQuantity.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/SupplyQuantity.cs rename to Libs/CsharpDis6/Dis1995/Generated/SupplyQuantity.cs index 121427a..7daadc2 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/SupplyQuantity.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/SupplyQuantity.cs @@ -1,335 +1,335 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.2.30. A supply, and the amount of that supply. Similar to an entity kind but with the addition of a quantity. - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - public partial class SupplyQuantity - { - /// - /// Type of supply - /// - private EntityID _supplyType = new EntityID(); - - /// - /// quantity to be supplied - /// - private byte _quantity; - - /// - /// Initializes a new instance of the class. - /// - public SupplyQuantity() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(SupplyQuantity left, SupplyQuantity right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(SupplyQuantity left, SupplyQuantity right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += this._supplyType.GetMarshalledSize(); // this._supplyType - marshalSize += 1; // this._quantity - return marshalSize; - } - - /// - /// Gets or sets the Type of supply - /// - [XmlElement(Type = typeof(EntityID), ElementName = "supplyType")] - public EntityID SupplyType - { - get - { - return this._supplyType; - } - - set - { - this._supplyType = value; - } - } - - /// - /// Gets or sets the quantity to be supplied - /// - [XmlElement(Type = typeof(byte), ElementName = "quantity")] - public byte Quantity - { - get - { - return this._quantity; - } - - set - { - this._quantity = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - this._supplyType.Marshal(dos); - dos.WriteUnsignedByte((byte)this._quantity); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._supplyType.Unmarshal(dis); - this._quantity = dis.ReadUnsignedByte(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine(""); - this._supplyType.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._quantity.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as SupplyQuantity; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(SupplyQuantity obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (!this._supplyType.Equals(obj._supplyType)) - { - ivarsEqual = false; - } - - if (this._quantity != obj._quantity) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._supplyType.GetHashCode(); - result = GenerateHash(result) ^ this._quantity.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.2.30. A supply, and the amount of that supply. Similar to an entity kind but with the addition of a quantity. + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + public partial class SupplyQuantity + { + /// + /// Type of supply + /// + private EntityID _supplyType = new EntityID(); + + /// + /// quantity to be supplied + /// + private byte _quantity; + + /// + /// Initializes a new instance of the class. + /// + public SupplyQuantity() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(SupplyQuantity left, SupplyQuantity right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(SupplyQuantity left, SupplyQuantity right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += this._supplyType.GetMarshalledSize(); // this._supplyType + marshalSize += 1; // this._quantity + return marshalSize; + } + + /// + /// Gets or sets the Type of supply + /// + [XmlElement(Type = typeof(EntityID), ElementName = "supplyType")] + public EntityID SupplyType + { + get + { + return this._supplyType; + } + + set + { + this._supplyType = value; + } + } + + /// + /// Gets or sets the quantity to be supplied + /// + [XmlElement(Type = typeof(byte), ElementName = "quantity")] + public byte Quantity + { + get + { + return this._quantity; + } + + set + { + this._quantity = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + this._supplyType.Marshal(dos); + dos.WriteUnsignedByte((byte)this._quantity); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._supplyType.Unmarshal(dis); + this._quantity = dis.ReadUnsignedByte(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine(""); + this._supplyType.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._quantity.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as SupplyQuantity; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(SupplyQuantity obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (!this._supplyType.Equals(obj._supplyType)) + { + ivarsEqual = false; + } + + if (this._quantity != obj._quantity) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._supplyType.GetHashCode(); + result = GenerateHash(result) ^ this._quantity.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/TransmitterPdu.cs b/Libs/CsharpDis6/Dis1995/Generated/TransmitterPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/TransmitterPdu.cs rename to Libs/CsharpDis6/Dis1995/Generated/TransmitterPdu.cs index 8aa92ce..fb4cc90 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/TransmitterPdu.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/TransmitterPdu.cs @@ -1,975 +1,975 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.3.8.1. Detailed information about a radio transmitter. This PDU requires manually written code to complete. - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(RadioEntityType))] - [XmlInclude(typeof(Vector3Double))] - [XmlInclude(typeof(ModulationType))] - [XmlInclude(typeof(Vector3Float))] - [XmlInclude(typeof(Vector3Float))] - public partial class TransmitterPdu : RadioCommunicationsPdu, IEquatable - { - /// - /// linear accelleration of entity - /// - private RadioEntityType _radioEntityType = new RadioEntityType(); - - /// - /// transmit state - /// - private byte _transmitState; - - /// - /// input source - /// - private byte _inputSource; - - /// - /// padding - /// - private ushort _padding1; - - /// - /// Location of antenna - /// - private Vector3Double _antennaLocation = new Vector3Double(); - - /// - /// relative location of antenna - /// - private Vector3Double _relativeAntennaLocation = new Vector3Double(); - - /// - /// atenna pattern type - /// - private ushort _antennaPatternType; - - /// - /// atenna pattern length - /// - private ushort _antennaPatternCount; - - /// - /// frequency - /// - private double _frequency; - - /// - /// transmit frequency Bandwidth - /// - private float _transmitFrequencyBandwidth; - - /// - /// transmission power - /// - private float _power; - - /// - /// modulation - /// - private ModulationType _modulationType = new ModulationType(); - - /// - /// crypto system enumeration - /// - private ushort _cryptoSystem; - - /// - /// crypto system key identifer - /// - private ushort _cryptoKeyId; - - /// - /// how many modulation parameters we have - /// - private byte _modulationParameterCount; - - /// - /// padding2 - /// - private ushort _padding2; - - /// - /// padding3 - /// - private byte _padding3; - - /// - /// variable length list of modulation parameters - /// - private List _modulationParametersList = new List(); - - /// - /// variable length list of antenna pattern records - /// - private List _antennaPatternList = new List(); - - /// - /// Initializes a new instance of the class. - /// - public TransmitterPdu() - { - PduType = (byte)25; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(TransmitterPdu left, TransmitterPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(TransmitterPdu left, TransmitterPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._radioEntityType.GetMarshalledSize(); // this._radioEntityType - marshalSize += 1; // this._transmitState - marshalSize += 1; // this._inputSource - marshalSize += 2; // this._padding1 - marshalSize += this._antennaLocation.GetMarshalledSize(); // this._antennaLocation - marshalSize += this._relativeAntennaLocation.GetMarshalledSize(); // this._relativeAntennaLocation - marshalSize += 2; // this._antennaPatternType - marshalSize += 2; // this._antennaPatternCount - marshalSize += 8; // this._frequency - marshalSize += 4; // this._transmitFrequencyBandwidth - marshalSize += 4; // this._power - marshalSize += this._modulationType.GetMarshalledSize(); // this._modulationType - marshalSize += 2; // this._cryptoSystem - marshalSize += 2; // this._cryptoKeyId - marshalSize += 1; // this._modulationParameterCount - marshalSize += 2; // this._padding2 - marshalSize += 1; // this._padding3 - for (int idx = 0; idx < this._modulationParametersList.Count; idx++) - { - Vector3Float listElement = (Vector3Float)this._modulationParametersList[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._antennaPatternList.Count; idx++) - { - Vector3Float listElement = (Vector3Float)this._antennaPatternList[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the linear accelleration of entity - /// - [XmlElement(Type = typeof(RadioEntityType), ElementName = "radioEntityType")] - public RadioEntityType RadioEntityType - { - get - { - return this._radioEntityType; - } - - set - { - this._radioEntityType = value; - } - } - - /// - /// Gets or sets the transmit state - /// - [XmlElement(Type = typeof(byte), ElementName = "transmitState")] - public byte TransmitState - { - get - { - return this._transmitState; - } - - set - { - this._transmitState = value; - } - } - - /// - /// Gets or sets the input source - /// - [XmlElement(Type = typeof(byte), ElementName = "inputSource")] - public byte InputSource - { - get - { - return this._inputSource; - } - - set - { - this._inputSource = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(ushort), ElementName = "padding1")] - public ushort Padding1 - { - get - { - return this._padding1; - } - - set - { - this._padding1 = value; - } - } - - /// - /// Gets or sets the Location of antenna - /// - [XmlElement(Type = typeof(Vector3Double), ElementName = "antennaLocation")] - public Vector3Double AntennaLocation - { - get - { - return this._antennaLocation; - } - - set - { - this._antennaLocation = value; - } - } - - /// - /// Gets or sets the relative location of antenna - /// - [XmlElement(Type = typeof(Vector3Double), ElementName = "relativeAntennaLocation")] - public Vector3Double RelativeAntennaLocation - { - get - { - return this._relativeAntennaLocation; - } - - set - { - this._relativeAntennaLocation = value; - } - } - - /// - /// Gets or sets the atenna pattern type - /// - [XmlElement(Type = typeof(ushort), ElementName = "antennaPatternType")] - public ushort AntennaPatternType - { - get - { - return this._antennaPatternType; - } - - set - { - this._antennaPatternType = value; - } - } - - /// - /// Gets or sets the atenna pattern length - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getantennaPatternCount method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(ushort), ElementName = "antennaPatternCount")] - public ushort AntennaPatternCount - { - get - { - return this._antennaPatternCount; - } - - set - { - this._antennaPatternCount = value; - } - } - - /// - /// Gets or sets the frequency - /// - [XmlElement(Type = typeof(double), ElementName = "frequency")] - public double Frequency - { - get - { - return this._frequency; - } - - set - { - this._frequency = value; - } - } - - /// - /// Gets or sets the transmit frequency Bandwidth - /// - [XmlElement(Type = typeof(float), ElementName = "transmitFrequencyBandwidth")] - public float TransmitFrequencyBandwidth - { - get - { - return this._transmitFrequencyBandwidth; - } - - set - { - this._transmitFrequencyBandwidth = value; - } - } - - /// - /// Gets or sets the transmission power - /// - [XmlElement(Type = typeof(float), ElementName = "power")] - public float Power - { - get - { - return this._power; - } - - set - { - this._power = value; - } - } - - /// - /// Gets or sets the modulation - /// - [XmlElement(Type = typeof(ModulationType), ElementName = "modulationType")] - public ModulationType ModulationType - { - get - { - return this._modulationType; - } - - set - { - this._modulationType = value; - } - } - - /// - /// Gets or sets the crypto system enumeration - /// - [XmlElement(Type = typeof(ushort), ElementName = "cryptoSystem")] - public ushort CryptoSystem - { - get - { - return this._cryptoSystem; - } - - set - { - this._cryptoSystem = value; - } - } - - /// - /// Gets or sets the crypto system key identifer - /// - [XmlElement(Type = typeof(ushort), ElementName = "cryptoKeyId")] - public ushort CryptoKeyId - { - get - { - return this._cryptoKeyId; - } - - set - { - this._cryptoKeyId = value; - } - } - - /// - /// Gets or sets the how many modulation parameters we have - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getmodulationParameterCount method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "modulationParameterCount")] - public byte ModulationParameterCount - { - get - { - return this._modulationParameterCount; - } - - set - { - this._modulationParameterCount = value; - } - } - - /// - /// Gets or sets the padding2 - /// - [XmlElement(Type = typeof(ushort), ElementName = "padding2")] - public ushort Padding2 - { - get - { - return this._padding2; - } - - set - { - this._padding2 = value; - } - } - - /// - /// Gets or sets the padding3 - /// - [XmlElement(Type = typeof(byte), ElementName = "padding3")] - public byte Padding3 - { - get - { - return this._padding3; - } - - set - { - this._padding3 = value; - } - } - - /// - /// Gets the variable length list of modulation parameters - /// - [XmlElement(ElementName = "modulationParametersListList", Type = typeof(List))] - public List ModulationParametersList - { - get - { - return this._modulationParametersList; - } - } - - /// - /// Gets the variable length list of antenna pattern records - /// - [XmlElement(ElementName = "antennaPatternListList", Type = typeof(List))] - public List AntennaPatternList - { - get - { - return this._antennaPatternList; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._radioEntityType.Marshal(dos); - dos.WriteUnsignedByte((byte)this._transmitState); - dos.WriteUnsignedByte((byte)this._inputSource); - dos.WriteUnsignedShort((ushort)this._padding1); - this._antennaLocation.Marshal(dos); - this._relativeAntennaLocation.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._antennaPatternType); - dos.WriteUnsignedShort((ushort)this._antennaPatternList.Count); - dos.WriteDouble((double)this._frequency); - dos.WriteFloat((float)this._transmitFrequencyBandwidth); - dos.WriteFloat((float)this._power); - this._modulationType.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._cryptoSystem); - dos.WriteUnsignedShort((ushort)this._cryptoKeyId); - dos.WriteUnsignedByte((byte)this._modulationParametersList.Count); - dos.WriteUnsignedShort((ushort)this._padding2); - dos.WriteUnsignedByte((byte)this._padding3); - - for (int idx = 0; idx < this._modulationParametersList.Count; idx++) - { - Vector3Float aVector3Float = (Vector3Float)this._modulationParametersList[idx]; - aVector3Float.Marshal(dos); - } - - for (int idx = 0; idx < this._antennaPatternList.Count; idx++) - { - Vector3Float aVector3Float = (Vector3Float)this._antennaPatternList[idx]; - aVector3Float.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._radioEntityType.Unmarshal(dis); - this._transmitState = dis.ReadUnsignedByte(); - this._inputSource = dis.ReadUnsignedByte(); - this._padding1 = dis.ReadUnsignedShort(); - this._antennaLocation.Unmarshal(dis); - this._relativeAntennaLocation.Unmarshal(dis); - this._antennaPatternType = dis.ReadUnsignedShort(); - this._antennaPatternCount = dis.ReadUnsignedShort(); - this._frequency = dis.ReadDouble(); - this._transmitFrequencyBandwidth = dis.ReadFloat(); - this._power = dis.ReadFloat(); - this._modulationType.Unmarshal(dis); - this._cryptoSystem = dis.ReadUnsignedShort(); - this._cryptoKeyId = dis.ReadUnsignedShort(); - this._modulationParameterCount = dis.ReadUnsignedByte(); - this._padding2 = dis.ReadUnsignedShort(); - this._padding3 = dis.ReadUnsignedByte(); - - for (int idx = 0; idx < this.ModulationParameterCount; idx++) - { - Vector3Float anX = new Vector3Float(); - anX.Unmarshal(dis); - this._modulationParametersList.Add(anX); - } - - for (int idx = 0; idx < this.AntennaPatternCount; idx++) - { - Vector3Float anX = new Vector3Float(); - anX.Unmarshal(dis); - this._antennaPatternList.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._radioEntityType.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._transmitState.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._inputSource.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._antennaLocation.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._relativeAntennaLocation.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._antennaPatternType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._antennaPatternList.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._frequency.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._transmitFrequencyBandwidth.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._power.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._modulationType.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._cryptoSystem.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._cryptoKeyId.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._modulationParametersList.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding3.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._modulationParametersList.Count; idx++) - { - sb.AppendLine(""); - Vector3Float aVector3Float = (Vector3Float)this._modulationParametersList[idx]; - aVector3Float.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._antennaPatternList.Count; idx++) - { - sb.AppendLine(""); - Vector3Float aVector3Float = (Vector3Float)this._antennaPatternList[idx]; - aVector3Float.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as TransmitterPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(TransmitterPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._radioEntityType.Equals(obj._radioEntityType)) - { - ivarsEqual = false; - } - - if (this._transmitState != obj._transmitState) - { - ivarsEqual = false; - } - - if (this._inputSource != obj._inputSource) - { - ivarsEqual = false; - } - - if (this._padding1 != obj._padding1) - { - ivarsEqual = false; - } - - if (!this._antennaLocation.Equals(obj._antennaLocation)) - { - ivarsEqual = false; - } - - if (!this._relativeAntennaLocation.Equals(obj._relativeAntennaLocation)) - { - ivarsEqual = false; - } - - if (this._antennaPatternType != obj._antennaPatternType) - { - ivarsEqual = false; - } - - if (this._antennaPatternCount != obj._antennaPatternCount) - { - ivarsEqual = false; - } - - if (this._frequency != obj._frequency) - { - ivarsEqual = false; - } - - if (this._transmitFrequencyBandwidth != obj._transmitFrequencyBandwidth) - { - ivarsEqual = false; - } - - if (this._power != obj._power) - { - ivarsEqual = false; - } - - if (!this._modulationType.Equals(obj._modulationType)) - { - ivarsEqual = false; - } - - if (this._cryptoSystem != obj._cryptoSystem) - { - ivarsEqual = false; - } - - if (this._cryptoKeyId != obj._cryptoKeyId) - { - ivarsEqual = false; - } - - if (this._modulationParameterCount != obj._modulationParameterCount) - { - ivarsEqual = false; - } - - if (this._padding2 != obj._padding2) - { - ivarsEqual = false; - } - - if (this._padding3 != obj._padding3) - { - ivarsEqual = false; - } - - if (this._modulationParametersList.Count != obj._modulationParametersList.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._modulationParametersList.Count; idx++) - { - if (!this._modulationParametersList[idx].Equals(obj._modulationParametersList[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._antennaPatternList.Count != obj._antennaPatternList.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._antennaPatternList.Count; idx++) - { - if (!this._antennaPatternList[idx].Equals(obj._antennaPatternList[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._radioEntityType.GetHashCode(); - result = GenerateHash(result) ^ this._transmitState.GetHashCode(); - result = GenerateHash(result) ^ this._inputSource.GetHashCode(); - result = GenerateHash(result) ^ this._padding1.GetHashCode(); - result = GenerateHash(result) ^ this._antennaLocation.GetHashCode(); - result = GenerateHash(result) ^ this._relativeAntennaLocation.GetHashCode(); - result = GenerateHash(result) ^ this._antennaPatternType.GetHashCode(); - result = GenerateHash(result) ^ this._antennaPatternCount.GetHashCode(); - result = GenerateHash(result) ^ this._frequency.GetHashCode(); - result = GenerateHash(result) ^ this._transmitFrequencyBandwidth.GetHashCode(); - result = GenerateHash(result) ^ this._power.GetHashCode(); - result = GenerateHash(result) ^ this._modulationType.GetHashCode(); - result = GenerateHash(result) ^ this._cryptoSystem.GetHashCode(); - result = GenerateHash(result) ^ this._cryptoKeyId.GetHashCode(); - result = GenerateHash(result) ^ this._modulationParameterCount.GetHashCode(); - result = GenerateHash(result) ^ this._padding2.GetHashCode(); - result = GenerateHash(result) ^ this._padding3.GetHashCode(); - - if (this._modulationParametersList.Count > 0) - { - for (int idx = 0; idx < this._modulationParametersList.Count; idx++) - { - result = GenerateHash(result) ^ this._modulationParametersList[idx].GetHashCode(); - } - } - - if (this._antennaPatternList.Count > 0) - { - for (int idx = 0; idx < this._antennaPatternList.Count; idx++) - { - result = GenerateHash(result) ^ this._antennaPatternList[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.3.8.1. Detailed information about a radio transmitter. This PDU requires manually written code to complete. + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(RadioEntityType))] + [XmlInclude(typeof(Vector3Double))] + [XmlInclude(typeof(ModulationType))] + [XmlInclude(typeof(Vector3Float))] + [XmlInclude(typeof(Vector3Float))] + public partial class TransmitterPdu : RadioCommunicationsPdu, IEquatable + { + /// + /// linear accelleration of entity + /// + private RadioEntityType _radioEntityType = new RadioEntityType(); + + /// + /// transmit state + /// + private byte _transmitState; + + /// + /// input source + /// + private byte _inputSource; + + /// + /// padding + /// + private ushort _padding1; + + /// + /// Location of antenna + /// + private Vector3Double _antennaLocation = new Vector3Double(); + + /// + /// relative location of antenna + /// + private Vector3Double _relativeAntennaLocation = new Vector3Double(); + + /// + /// atenna pattern type + /// + private ushort _antennaPatternType; + + /// + /// atenna pattern length + /// + private ushort _antennaPatternCount; + + /// + /// frequency + /// + private double _frequency; + + /// + /// transmit frequency Bandwidth + /// + private float _transmitFrequencyBandwidth; + + /// + /// transmission power + /// + private float _power; + + /// + /// modulation + /// + private ModulationType _modulationType = new ModulationType(); + + /// + /// crypto system enumeration + /// + private ushort _cryptoSystem; + + /// + /// crypto system key identifer + /// + private ushort _cryptoKeyId; + + /// + /// how many modulation parameters we have + /// + private byte _modulationParameterCount; + + /// + /// padding2 + /// + private ushort _padding2; + + /// + /// padding3 + /// + private byte _padding3; + + /// + /// variable length list of modulation parameters + /// + private List _modulationParametersList = new List(); + + /// + /// variable length list of antenna pattern records + /// + private List _antennaPatternList = new List(); + + /// + /// Initializes a new instance of the class. + /// + public TransmitterPdu() + { + PduType = (byte)25; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(TransmitterPdu left, TransmitterPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(TransmitterPdu left, TransmitterPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._radioEntityType.GetMarshalledSize(); // this._radioEntityType + marshalSize += 1; // this._transmitState + marshalSize += 1; // this._inputSource + marshalSize += 2; // this._padding1 + marshalSize += this._antennaLocation.GetMarshalledSize(); // this._antennaLocation + marshalSize += this._relativeAntennaLocation.GetMarshalledSize(); // this._relativeAntennaLocation + marshalSize += 2; // this._antennaPatternType + marshalSize += 2; // this._antennaPatternCount + marshalSize += 8; // this._frequency + marshalSize += 4; // this._transmitFrequencyBandwidth + marshalSize += 4; // this._power + marshalSize += this._modulationType.GetMarshalledSize(); // this._modulationType + marshalSize += 2; // this._cryptoSystem + marshalSize += 2; // this._cryptoKeyId + marshalSize += 1; // this._modulationParameterCount + marshalSize += 2; // this._padding2 + marshalSize += 1; // this._padding3 + for (int idx = 0; idx < this._modulationParametersList.Count; idx++) + { + Vector3Float listElement = (Vector3Float)this._modulationParametersList[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._antennaPatternList.Count; idx++) + { + Vector3Float listElement = (Vector3Float)this._antennaPatternList[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the linear accelleration of entity + /// + [XmlElement(Type = typeof(RadioEntityType), ElementName = "radioEntityType")] + public RadioEntityType RadioEntityType + { + get + { + return this._radioEntityType; + } + + set + { + this._radioEntityType = value; + } + } + + /// + /// Gets or sets the transmit state + /// + [XmlElement(Type = typeof(byte), ElementName = "transmitState")] + public byte TransmitState + { + get + { + return this._transmitState; + } + + set + { + this._transmitState = value; + } + } + + /// + /// Gets or sets the input source + /// + [XmlElement(Type = typeof(byte), ElementName = "inputSource")] + public byte InputSource + { + get + { + return this._inputSource; + } + + set + { + this._inputSource = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(ushort), ElementName = "padding1")] + public ushort Padding1 + { + get + { + return this._padding1; + } + + set + { + this._padding1 = value; + } + } + + /// + /// Gets or sets the Location of antenna + /// + [XmlElement(Type = typeof(Vector3Double), ElementName = "antennaLocation")] + public Vector3Double AntennaLocation + { + get + { + return this._antennaLocation; + } + + set + { + this._antennaLocation = value; + } + } + + /// + /// Gets or sets the relative location of antenna + /// + [XmlElement(Type = typeof(Vector3Double), ElementName = "relativeAntennaLocation")] + public Vector3Double RelativeAntennaLocation + { + get + { + return this._relativeAntennaLocation; + } + + set + { + this._relativeAntennaLocation = value; + } + } + + /// + /// Gets or sets the atenna pattern type + /// + [XmlElement(Type = typeof(ushort), ElementName = "antennaPatternType")] + public ushort AntennaPatternType + { + get + { + return this._antennaPatternType; + } + + set + { + this._antennaPatternType = value; + } + } + + /// + /// Gets or sets the atenna pattern length + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getantennaPatternCount method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(ushort), ElementName = "antennaPatternCount")] + public ushort AntennaPatternCount + { + get + { + return this._antennaPatternCount; + } + + set + { + this._antennaPatternCount = value; + } + } + + /// + /// Gets or sets the frequency + /// + [XmlElement(Type = typeof(double), ElementName = "frequency")] + public double Frequency + { + get + { + return this._frequency; + } + + set + { + this._frequency = value; + } + } + + /// + /// Gets or sets the transmit frequency Bandwidth + /// + [XmlElement(Type = typeof(float), ElementName = "transmitFrequencyBandwidth")] + public float TransmitFrequencyBandwidth + { + get + { + return this._transmitFrequencyBandwidth; + } + + set + { + this._transmitFrequencyBandwidth = value; + } + } + + /// + /// Gets or sets the transmission power + /// + [XmlElement(Type = typeof(float), ElementName = "power")] + public float Power + { + get + { + return this._power; + } + + set + { + this._power = value; + } + } + + /// + /// Gets or sets the modulation + /// + [XmlElement(Type = typeof(ModulationType), ElementName = "modulationType")] + public ModulationType ModulationType + { + get + { + return this._modulationType; + } + + set + { + this._modulationType = value; + } + } + + /// + /// Gets or sets the crypto system enumeration + /// + [XmlElement(Type = typeof(ushort), ElementName = "cryptoSystem")] + public ushort CryptoSystem + { + get + { + return this._cryptoSystem; + } + + set + { + this._cryptoSystem = value; + } + } + + /// + /// Gets or sets the crypto system key identifer + /// + [XmlElement(Type = typeof(ushort), ElementName = "cryptoKeyId")] + public ushort CryptoKeyId + { + get + { + return this._cryptoKeyId; + } + + set + { + this._cryptoKeyId = value; + } + } + + /// + /// Gets or sets the how many modulation parameters we have + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getmodulationParameterCount method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "modulationParameterCount")] + public byte ModulationParameterCount + { + get + { + return this._modulationParameterCount; + } + + set + { + this._modulationParameterCount = value; + } + } + + /// + /// Gets or sets the padding2 + /// + [XmlElement(Type = typeof(ushort), ElementName = "padding2")] + public ushort Padding2 + { + get + { + return this._padding2; + } + + set + { + this._padding2 = value; + } + } + + /// + /// Gets or sets the padding3 + /// + [XmlElement(Type = typeof(byte), ElementName = "padding3")] + public byte Padding3 + { + get + { + return this._padding3; + } + + set + { + this._padding3 = value; + } + } + + /// + /// Gets the variable length list of modulation parameters + /// + [XmlElement(ElementName = "modulationParametersListList", Type = typeof(List))] + public List ModulationParametersList + { + get + { + return this._modulationParametersList; + } + } + + /// + /// Gets the variable length list of antenna pattern records + /// + [XmlElement(ElementName = "antennaPatternListList", Type = typeof(List))] + public List AntennaPatternList + { + get + { + return this._antennaPatternList; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._radioEntityType.Marshal(dos); + dos.WriteUnsignedByte((byte)this._transmitState); + dos.WriteUnsignedByte((byte)this._inputSource); + dos.WriteUnsignedShort((ushort)this._padding1); + this._antennaLocation.Marshal(dos); + this._relativeAntennaLocation.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._antennaPatternType); + dos.WriteUnsignedShort((ushort)this._antennaPatternList.Count); + dos.WriteDouble((double)this._frequency); + dos.WriteFloat((float)this._transmitFrequencyBandwidth); + dos.WriteFloat((float)this._power); + this._modulationType.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._cryptoSystem); + dos.WriteUnsignedShort((ushort)this._cryptoKeyId); + dos.WriteUnsignedByte((byte)this._modulationParametersList.Count); + dos.WriteUnsignedShort((ushort)this._padding2); + dos.WriteUnsignedByte((byte)this._padding3); + + for (int idx = 0; idx < this._modulationParametersList.Count; idx++) + { + Vector3Float aVector3Float = (Vector3Float)this._modulationParametersList[idx]; + aVector3Float.Marshal(dos); + } + + for (int idx = 0; idx < this._antennaPatternList.Count; idx++) + { + Vector3Float aVector3Float = (Vector3Float)this._antennaPatternList[idx]; + aVector3Float.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._radioEntityType.Unmarshal(dis); + this._transmitState = dis.ReadUnsignedByte(); + this._inputSource = dis.ReadUnsignedByte(); + this._padding1 = dis.ReadUnsignedShort(); + this._antennaLocation.Unmarshal(dis); + this._relativeAntennaLocation.Unmarshal(dis); + this._antennaPatternType = dis.ReadUnsignedShort(); + this._antennaPatternCount = dis.ReadUnsignedShort(); + this._frequency = dis.ReadDouble(); + this._transmitFrequencyBandwidth = dis.ReadFloat(); + this._power = dis.ReadFloat(); + this._modulationType.Unmarshal(dis); + this._cryptoSystem = dis.ReadUnsignedShort(); + this._cryptoKeyId = dis.ReadUnsignedShort(); + this._modulationParameterCount = dis.ReadUnsignedByte(); + this._padding2 = dis.ReadUnsignedShort(); + this._padding3 = dis.ReadUnsignedByte(); + + for (int idx = 0; idx < this.ModulationParameterCount; idx++) + { + Vector3Float anX = new Vector3Float(); + anX.Unmarshal(dis); + this._modulationParametersList.Add(anX); + } + + for (int idx = 0; idx < this.AntennaPatternCount; idx++) + { + Vector3Float anX = new Vector3Float(); + anX.Unmarshal(dis); + this._antennaPatternList.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._radioEntityType.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._transmitState.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._inputSource.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._antennaLocation.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._relativeAntennaLocation.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._antennaPatternType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._antennaPatternList.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._frequency.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._transmitFrequencyBandwidth.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._power.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._modulationType.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._cryptoSystem.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._cryptoKeyId.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._modulationParametersList.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding3.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._modulationParametersList.Count; idx++) + { + sb.AppendLine(""); + Vector3Float aVector3Float = (Vector3Float)this._modulationParametersList[idx]; + aVector3Float.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._antennaPatternList.Count; idx++) + { + sb.AppendLine(""); + Vector3Float aVector3Float = (Vector3Float)this._antennaPatternList[idx]; + aVector3Float.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as TransmitterPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(TransmitterPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._radioEntityType.Equals(obj._radioEntityType)) + { + ivarsEqual = false; + } + + if (this._transmitState != obj._transmitState) + { + ivarsEqual = false; + } + + if (this._inputSource != obj._inputSource) + { + ivarsEqual = false; + } + + if (this._padding1 != obj._padding1) + { + ivarsEqual = false; + } + + if (!this._antennaLocation.Equals(obj._antennaLocation)) + { + ivarsEqual = false; + } + + if (!this._relativeAntennaLocation.Equals(obj._relativeAntennaLocation)) + { + ivarsEqual = false; + } + + if (this._antennaPatternType != obj._antennaPatternType) + { + ivarsEqual = false; + } + + if (this._antennaPatternCount != obj._antennaPatternCount) + { + ivarsEqual = false; + } + + if (this._frequency != obj._frequency) + { + ivarsEqual = false; + } + + if (this._transmitFrequencyBandwidth != obj._transmitFrequencyBandwidth) + { + ivarsEqual = false; + } + + if (this._power != obj._power) + { + ivarsEqual = false; + } + + if (!this._modulationType.Equals(obj._modulationType)) + { + ivarsEqual = false; + } + + if (this._cryptoSystem != obj._cryptoSystem) + { + ivarsEqual = false; + } + + if (this._cryptoKeyId != obj._cryptoKeyId) + { + ivarsEqual = false; + } + + if (this._modulationParameterCount != obj._modulationParameterCount) + { + ivarsEqual = false; + } + + if (this._padding2 != obj._padding2) + { + ivarsEqual = false; + } + + if (this._padding3 != obj._padding3) + { + ivarsEqual = false; + } + + if (this._modulationParametersList.Count != obj._modulationParametersList.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._modulationParametersList.Count; idx++) + { + if (!this._modulationParametersList[idx].Equals(obj._modulationParametersList[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._antennaPatternList.Count != obj._antennaPatternList.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._antennaPatternList.Count; idx++) + { + if (!this._antennaPatternList[idx].Equals(obj._antennaPatternList[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._radioEntityType.GetHashCode(); + result = GenerateHash(result) ^ this._transmitState.GetHashCode(); + result = GenerateHash(result) ^ this._inputSource.GetHashCode(); + result = GenerateHash(result) ^ this._padding1.GetHashCode(); + result = GenerateHash(result) ^ this._antennaLocation.GetHashCode(); + result = GenerateHash(result) ^ this._relativeAntennaLocation.GetHashCode(); + result = GenerateHash(result) ^ this._antennaPatternType.GetHashCode(); + result = GenerateHash(result) ^ this._antennaPatternCount.GetHashCode(); + result = GenerateHash(result) ^ this._frequency.GetHashCode(); + result = GenerateHash(result) ^ this._transmitFrequencyBandwidth.GetHashCode(); + result = GenerateHash(result) ^ this._power.GetHashCode(); + result = GenerateHash(result) ^ this._modulationType.GetHashCode(); + result = GenerateHash(result) ^ this._cryptoSystem.GetHashCode(); + result = GenerateHash(result) ^ this._cryptoKeyId.GetHashCode(); + result = GenerateHash(result) ^ this._modulationParameterCount.GetHashCode(); + result = GenerateHash(result) ^ this._padding2.GetHashCode(); + result = GenerateHash(result) ^ this._padding3.GetHashCode(); + + if (this._modulationParametersList.Count > 0) + { + for (int idx = 0; idx < this._modulationParametersList.Count; idx++) + { + result = GenerateHash(result) ^ this._modulationParametersList[idx].GetHashCode(); + } + } + + if (this._antennaPatternList.Count > 0) + { + for (int idx = 0; idx < this._antennaPatternList.Count; idx++) + { + result = GenerateHash(result) ^ this._antennaPatternList[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/VariableDatum.cs b/Libs/CsharpDis6/Dis1995/Generated/VariableDatum.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/VariableDatum.cs rename to Libs/CsharpDis6/Dis1995/Generated/VariableDatum.cs index 134b599..6ee155a 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/VariableDatum.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/VariableDatum.cs @@ -1,406 +1,406 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.2.32. Variable Datum Record - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EightByteChunk))] - public partial class VariableDatum - { - /// - /// ID of the variable datum - /// - private uint _variableDatumID; - - /// - /// length of the variable datums - /// - private uint _variableDatumLength; - - /// - /// variable length list of 64-bit datums - /// - private List _variableDatums = new List(); - - /// - /// Initializes a new instance of the class. - /// - public VariableDatum() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(VariableDatum left, VariableDatum right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(VariableDatum left, VariableDatum right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._variableDatumID - marshalSize += 4; // this._variableDatumLength - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - EightByteChunk listElement = (EightByteChunk)this._variableDatums[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the ID of the variable datum - /// - [XmlElement(Type = typeof(uint), ElementName = "variableDatumID")] - public uint VariableDatumID - { - get - { - return this._variableDatumID; - } - - set - { - this._variableDatumID = value; - } - } - - /// - /// Gets or sets the length of the variable datums - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getvariableDatumLength method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "variableDatumLength")] - public uint VariableDatumLength - { - get - { - return this._variableDatumLength; - } - - set - { - this._variableDatumLength = value; - } - } - - /// - /// Gets the variable length list of 64-bit datums - /// - [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] - public List VariableDatums - { - get - { - return this._variableDatums; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._variableDatumID); - dos.WriteUnsignedInt((uint)this._variableDatums.Count); - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - EightByteChunk aEightByteChunk = (EightByteChunk)this._variableDatums[idx]; - aEightByteChunk.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._variableDatumID = dis.ReadUnsignedInt(); - this._variableDatumLength = dis.ReadUnsignedInt(); - - for (int idx = 0; idx < this.VariableDatumLength; idx++) - { - EightByteChunk anX = new EightByteChunk(); - anX.Unmarshal(dis); - this._variableDatums.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._variableDatumID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - sb.AppendLine(""); - EightByteChunk aEightByteChunk = (EightByteChunk)this._variableDatums[idx]; - aEightByteChunk.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as VariableDatum; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(VariableDatum obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._variableDatumID != obj._variableDatumID) - { - ivarsEqual = false; - } - - if (this._variableDatumLength != obj._variableDatumLength) - { - ivarsEqual = false; - } - - if (this._variableDatums.Count != obj._variableDatums.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._variableDatumID.GetHashCode(); - result = GenerateHash(result) ^ this._variableDatumLength.GetHashCode(); - - if (this._variableDatums.Count > 0) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.2.32. Variable Datum Record + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EightByteChunk))] + public partial class VariableDatum + { + /// + /// ID of the variable datum + /// + private uint _variableDatumID; + + /// + /// length of the variable datums + /// + private uint _variableDatumLength; + + /// + /// variable length list of 64-bit datums + /// + private List _variableDatums = new List(); + + /// + /// Initializes a new instance of the class. + /// + public VariableDatum() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(VariableDatum left, VariableDatum right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(VariableDatum left, VariableDatum right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._variableDatumID + marshalSize += 4; // this._variableDatumLength + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + EightByteChunk listElement = (EightByteChunk)this._variableDatums[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the ID of the variable datum + /// + [XmlElement(Type = typeof(uint), ElementName = "variableDatumID")] + public uint VariableDatumID + { + get + { + return this._variableDatumID; + } + + set + { + this._variableDatumID = value; + } + } + + /// + /// Gets or sets the length of the variable datums + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getvariableDatumLength method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "variableDatumLength")] + public uint VariableDatumLength + { + get + { + return this._variableDatumLength; + } + + set + { + this._variableDatumLength = value; + } + } + + /// + /// Gets the variable length list of 64-bit datums + /// + [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] + public List VariableDatums + { + get + { + return this._variableDatums; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._variableDatumID); + dos.WriteUnsignedInt((uint)this._variableDatums.Count); + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + EightByteChunk aEightByteChunk = (EightByteChunk)this._variableDatums[idx]; + aEightByteChunk.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._variableDatumID = dis.ReadUnsignedInt(); + this._variableDatumLength = dis.ReadUnsignedInt(); + + for (int idx = 0; idx < this.VariableDatumLength; idx++) + { + EightByteChunk anX = new EightByteChunk(); + anX.Unmarshal(dis); + this._variableDatums.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._variableDatumID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + sb.AppendLine(""); + EightByteChunk aEightByteChunk = (EightByteChunk)this._variableDatums[idx]; + aEightByteChunk.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as VariableDatum; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(VariableDatum obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._variableDatumID != obj._variableDatumID) + { + ivarsEqual = false; + } + + if (this._variableDatumLength != obj._variableDatumLength) + { + ivarsEqual = false; + } + + if (this._variableDatums.Count != obj._variableDatums.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._variableDatumID.GetHashCode(); + result = GenerateHash(result) ^ this._variableDatumLength.GetHashCode(); + + if (this._variableDatums.Count > 0) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/Vector3Double.cs b/Libs/CsharpDis6/Dis1995/Generated/Vector3Double.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/Vector3Double.cs rename to Libs/CsharpDis6/Dis1995/Generated/Vector3Double.cs index 10e1cbf..e982a55 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/Vector3Double.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/Vector3Double.cs @@ -1,364 +1,364 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.3.34. Three double precision floating point values, x, y, and z - /// - [Serializable] - [XmlRoot] - public partial class Vector3Double - { - /// - /// X value - /// - private double _x; - - /// - /// Y value - /// - private double _y; - - /// - /// Z value - /// - private double _z; - - /// - /// Initializes a new instance of the class. - /// - public Vector3Double() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(Vector3Double left, Vector3Double right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(Vector3Double left, Vector3Double right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 8; // this._x - marshalSize += 8; // this._y - marshalSize += 8; // this._z - return marshalSize; - } - - /// - /// Gets or sets the X value - /// - [XmlElement(Type = typeof(double), ElementName = "x")] - public double X - { - get - { - return this._x; - } - - set - { - this._x = value; - } - } - - /// - /// Gets or sets the Y value - /// - [XmlElement(Type = typeof(double), ElementName = "y")] - public double Y - { - get - { - return this._y; - } - - set - { - this._y = value; - } - } - - /// - /// Gets or sets the Z value - /// - [XmlElement(Type = typeof(double), ElementName = "z")] - public double Z - { - get - { - return this._z; - } - - set - { - this._z = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteDouble((double)this._x); - dos.WriteDouble((double)this._y); - dos.WriteDouble((double)this._z); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._x = dis.ReadDouble(); - this._y = dis.ReadDouble(); - this._z = dis.ReadDouble(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._x.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._y.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._z.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as Vector3Double; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(Vector3Double obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._x != obj._x) - { - ivarsEqual = false; - } - - if (this._y != obj._y) - { - ivarsEqual = false; - } - - if (this._z != obj._z) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._x.GetHashCode(); - result = GenerateHash(result) ^ this._y.GetHashCode(); - result = GenerateHash(result) ^ this._z.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.3.34. Three double precision floating point values, x, y, and z + /// + [Serializable] + [XmlRoot] + public partial class Vector3Double + { + /// + /// X value + /// + private double _x; + + /// + /// Y value + /// + private double _y; + + /// + /// Z value + /// + private double _z; + + /// + /// Initializes a new instance of the class. + /// + public Vector3Double() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(Vector3Double left, Vector3Double right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(Vector3Double left, Vector3Double right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 8; // this._x + marshalSize += 8; // this._y + marshalSize += 8; // this._z + return marshalSize; + } + + /// + /// Gets or sets the X value + /// + [XmlElement(Type = typeof(double), ElementName = "x")] + public double X + { + get + { + return this._x; + } + + set + { + this._x = value; + } + } + + /// + /// Gets or sets the Y value + /// + [XmlElement(Type = typeof(double), ElementName = "y")] + public double Y + { + get + { + return this._y; + } + + set + { + this._y = value; + } + } + + /// + /// Gets or sets the Z value + /// + [XmlElement(Type = typeof(double), ElementName = "z")] + public double Z + { + get + { + return this._z; + } + + set + { + this._z = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteDouble((double)this._x); + dos.WriteDouble((double)this._y); + dos.WriteDouble((double)this._z); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._x = dis.ReadDouble(); + this._y = dis.ReadDouble(); + this._z = dis.ReadDouble(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._x.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._y.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._z.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as Vector3Double; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(Vector3Double obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._x != obj._x) + { + ivarsEqual = false; + } + + if (this._y != obj._y) + { + ivarsEqual = false; + } + + if (this._z != obj._z) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._x.GetHashCode(); + result = GenerateHash(result) ^ this._y.GetHashCode(); + result = GenerateHash(result) ^ this._z.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/Vector3Float.cs b/Libs/CsharpDis6/Dis1995/Generated/Vector3Float.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/Vector3Float.cs rename to Libs/CsharpDis6/Dis1995/Generated/Vector3Float.cs index 5cc6eac..6c9a9e4 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/Vector3Float.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/Vector3Float.cs @@ -1,364 +1,364 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.2.33. Three floating point values, x, y, and z - /// - [Serializable] - [XmlRoot] - public partial class Vector3Float - { - /// - /// X value - /// - private float _x; - - /// - /// y Value - /// - private float _y; - - /// - /// Z value - /// - private float _z; - - /// - /// Initializes a new instance of the class. - /// - public Vector3Float() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(Vector3Float left, Vector3Float right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(Vector3Float left, Vector3Float right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._x - marshalSize += 4; // this._y - marshalSize += 4; // this._z - return marshalSize; - } - - /// - /// Gets or sets the X value - /// - [XmlElement(Type = typeof(float), ElementName = "x")] - public float X - { - get - { - return this._x; - } - - set - { - this._x = value; - } - } - - /// - /// Gets or sets the y Value - /// - [XmlElement(Type = typeof(float), ElementName = "y")] - public float Y - { - get - { - return this._y; - } - - set - { - this._y = value; - } - } - - /// - /// Gets or sets the Z value - /// - [XmlElement(Type = typeof(float), ElementName = "z")] - public float Z - { - get - { - return this._z; - } - - set - { - this._z = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteFloat((float)this._x); - dos.WriteFloat((float)this._y); - dos.WriteFloat((float)this._z); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._x = dis.ReadFloat(); - this._y = dis.ReadFloat(); - this._z = dis.ReadFloat(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._x.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._y.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._z.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as Vector3Float; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(Vector3Float obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._x != obj._x) - { - ivarsEqual = false; - } - - if (this._y != obj._y) - { - ivarsEqual = false; - } - - if (this._z != obj._z) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._x.GetHashCode(); - result = GenerateHash(result) ^ this._y.GetHashCode(); - result = GenerateHash(result) ^ this._z.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.2.33. Three floating point values, x, y, and z + /// + [Serializable] + [XmlRoot] + public partial class Vector3Float + { + /// + /// X value + /// + private float _x; + + /// + /// y Value + /// + private float _y; + + /// + /// Z value + /// + private float _z; + + /// + /// Initializes a new instance of the class. + /// + public Vector3Float() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(Vector3Float left, Vector3Float right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(Vector3Float left, Vector3Float right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._x + marshalSize += 4; // this._y + marshalSize += 4; // this._z + return marshalSize; + } + + /// + /// Gets or sets the X value + /// + [XmlElement(Type = typeof(float), ElementName = "x")] + public float X + { + get + { + return this._x; + } + + set + { + this._x = value; + } + } + + /// + /// Gets or sets the y Value + /// + [XmlElement(Type = typeof(float), ElementName = "y")] + public float Y + { + get + { + return this._y; + } + + set + { + this._y = value; + } + } + + /// + /// Gets or sets the Z value + /// + [XmlElement(Type = typeof(float), ElementName = "z")] + public float Z + { + get + { + return this._z; + } + + set + { + this._z = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteFloat((float)this._x); + dos.WriteFloat((float)this._y); + dos.WriteFloat((float)this._z); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._x = dis.ReadFloat(); + this._y = dis.ReadFloat(); + this._z = dis.ReadFloat(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._x.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._y.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._z.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as Vector3Float; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(Vector3Float obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._x != obj._x) + { + ivarsEqual = false; + } + + if (this._y != obj._y) + { + ivarsEqual = false; + } + + if (this._z != obj._z) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._x.GetHashCode(); + result = GenerateHash(result) ^ this._y.GetHashCode(); + result = GenerateHash(result) ^ this._z.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/Warfare.cs b/Libs/CsharpDis6/Dis1995/Generated/Warfare.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/Generated/Warfare.cs rename to Libs/CsharpDis6/Dis1995/Generated/Warfare.cs index 6f08683..070201c 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Generated/Warfare.cs +++ b/Libs/CsharpDis6/Dis1995/Generated/Warfare.cs @@ -1,341 +1,341 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1995 -{ - /// - /// Section 5.3.4. abstract superclass for fire and detonation pdus that have shared information - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - public partial class Warfare : Pdu, IEquatable - { - /// - /// ID of the entity that shot - /// - private EntityID _firingEntityID = new EntityID(); - - /// - /// ID of the entity that is being shot at - /// - private EntityID _targetEntityID = new EntityID(); - - /// - /// Initializes a new instance of the class. - /// - public Warfare() - { - ProtocolFamily = (byte)2; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(Warfare left, Warfare right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(Warfare left, Warfare right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._firingEntityID.GetMarshalledSize(); // this._firingEntityID - marshalSize += this._targetEntityID.GetMarshalledSize(); // this._targetEntityID - return marshalSize; - } - - /// - /// Gets or sets the ID of the entity that shot - /// - [XmlElement(Type = typeof(EntityID), ElementName = "firingEntityID")] - public EntityID FiringEntityID - { - get - { - return this._firingEntityID; - } - - set - { - this._firingEntityID = value; - } - } - - /// - /// Gets or sets the ID of the entity that is being shot at - /// - [XmlElement(Type = typeof(EntityID), ElementName = "targetEntityID")] - public EntityID TargetEntityID - { - get - { - return this._targetEntityID; - } - - set - { - this._targetEntityID = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public virtual void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._firingEntityID.Marshal(dos); - this._targetEntityID.Marshal(dos); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._firingEntityID.Unmarshal(dis); - this._targetEntityID.Unmarshal(dis); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._firingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._targetEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as Warfare; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(Warfare obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._firingEntityID.Equals(obj._firingEntityID)) - { - ivarsEqual = false; - } - - if (!this._targetEntityID.Equals(obj._targetEntityID)) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._firingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._targetEntityID.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1995 +{ + /// + /// Section 5.3.4. abstract superclass for fire and detonation pdus that have shared information + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + public partial class Warfare : Pdu, IEquatable + { + /// + /// ID of the entity that shot + /// + private EntityID _firingEntityID = new EntityID(); + + /// + /// ID of the entity that is being shot at + /// + private EntityID _targetEntityID = new EntityID(); + + /// + /// Initializes a new instance of the class. + /// + public Warfare() + { + ProtocolFamily = (byte)2; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(Warfare left, Warfare right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(Warfare left, Warfare right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._firingEntityID.GetMarshalledSize(); // this._firingEntityID + marshalSize += this._targetEntityID.GetMarshalledSize(); // this._targetEntityID + return marshalSize; + } + + /// + /// Gets or sets the ID of the entity that shot + /// + [XmlElement(Type = typeof(EntityID), ElementName = "firingEntityID")] + public EntityID FiringEntityID + { + get + { + return this._firingEntityID; + } + + set + { + this._firingEntityID = value; + } + } + + /// + /// Gets or sets the ID of the entity that is being shot at + /// + [XmlElement(Type = typeof(EntityID), ElementName = "targetEntityID")] + public EntityID TargetEntityID + { + get + { + return this._targetEntityID; + } + + set + { + this._targetEntityID = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public virtual void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._firingEntityID.Marshal(dos); + this._targetEntityID.Marshal(dos); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._firingEntityID.Unmarshal(dis); + this._targetEntityID.Unmarshal(dis); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._firingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._targetEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as Warfare; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(Warfare obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._firingEntityID.Equals(obj._firingEntityID)) + { + ivarsEqual = false; + } + + if (!this._targetEntityID.Equals(obj._targetEntityID)) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._firingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._targetEntityID.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/PduFactory.cs b/Libs/CsharpDis6/Dis1995/PduFactory.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1995/PduFactory.cs rename to Libs/CsharpDis6/Dis1995/PduFactory.cs index b4d8bb4..649b4ab 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/PduFactory.cs +++ b/Libs/CsharpDis6/Dis1995/PduFactory.cs @@ -1,122 +1,122 @@ -using System; -using OpenDis.Core; -using OpenDis.Enumerations; - -namespace OpenDis.Dis1995 -{ - internal static class PduFactory - { - /// - /// Creates the PDU. - /// - /// The type of PDU to be created. - /// Returns the corresponding PDU instance or null if type equals 0. - /// if the PDU type specified in parameter is not supported. - public static IPdu CreatePdu(byte type) - { - return CreatePdu((PduType)type); - } - - /// - /// Creates the PDU. - /// - /// The type of PDU to be created. - /// Returns the corresponding PDU instance or null if PduType.Other is specified. - /// if the PDU type specified in parameter is not supported. - public static IPdu CreatePdu(PduType type) - { - IPdu pdu = null; - - switch (type) - { - case PduType.Other: - pdu = new Pdu(); - break; - case PduType.EntityState: - pdu = new EntityStatePdu(); - break; - case PduType.Fire: - pdu = new FirePdu(); - break; - case PduType.Detonation: - pdu = new DetonationPdu(); - break; - case PduType.Collision: - pdu = new CollisionPdu(); - break; - case PduType.ServiceRequest: - pdu = new ServiceRequestPdu(); - break; - case PduType.ResupplyOffer: - pdu = new ResupplyOfferPdu(); - break; - case PduType.ResupplyReceived: - pdu = new ResupplyReceivedPdu(); - break; - case PduType.ResupplyCancel: - pdu = new ResupplyCancelPdu(); - break; - case PduType.RepairComplete: - pdu = new RepairCompletePdu(); - break; - case PduType.RepairResponse: - pdu = new RepairResponsePdu(); - break; - case PduType.CreateEntity: - pdu = new CreateEntityPdu(); - break; - case PduType.RemoveEntity: - pdu = new RemoveEntityPdu(); - break; - case PduType.StartResume: - pdu = new StartResumePdu(); - break; - case PduType.StopFreeze: - pdu = new StopFreezePdu(); - break; - case PduType.Acknowledge: - pdu = new AcknowledgePdu(); - break; - case PduType.ActionRequest: - pdu = new ActionRequestPdu(); - break; - case PduType.ActionResponse: - pdu = new ActionResponsePdu(); - break; - case PduType.DataQuery: - pdu = new DataQueryPdu(); - break; - case PduType.SetData: - pdu = new SetDataPdu(); - break; - case PduType.Data: - pdu = new DataPdu(); - break; - case PduType.EventReport: - pdu = new EventReportPdu(); - break; - case PduType.Comment: - pdu = new CommentPdu(); - break; - case PduType.ElectromagneticEmission: - throw new NotImplementedException(); - case PduType.Designator: - pdu = new DesignatorPdu(); - break; - case PduType.Transmitter: - pdu = new TransmitterPdu(); - break; - case PduType.Signal: - pdu = new SignalPdu(); - break; - case PduType.Receiver: - pdu = new ReceiverPdu(); - break; - default: - throw new NotImplementedException(); - } - - return pdu; - } - } -} +using System; +using OpenDis.Core; +using OpenDis.Enumerations; + +namespace OpenDis.Dis1995 +{ + internal static class PduFactory + { + /// + /// Creates the PDU. + /// + /// The type of PDU to be created. + /// Returns the corresponding PDU instance or null if type equals 0. + /// if the PDU type specified in parameter is not supported. + public static IPdu CreatePdu(byte type) + { + return CreatePdu((PduType)type); + } + + /// + /// Creates the PDU. + /// + /// The type of PDU to be created. + /// Returns the corresponding PDU instance or null if PduType.Other is specified. + /// if the PDU type specified in parameter is not supported. + public static IPdu CreatePdu(PduType type) + { + IPdu pdu = null; + + switch (type) + { + case PduType.Other: + pdu = new Pdu(); + break; + case PduType.EntityState: + pdu = new EntityStatePdu(); + break; + case PduType.Fire: + pdu = new FirePdu(); + break; + case PduType.Detonation: + pdu = new DetonationPdu(); + break; + case PduType.Collision: + pdu = new CollisionPdu(); + break; + case PduType.ServiceRequest: + pdu = new ServiceRequestPdu(); + break; + case PduType.ResupplyOffer: + pdu = new ResupplyOfferPdu(); + break; + case PduType.ResupplyReceived: + pdu = new ResupplyReceivedPdu(); + break; + case PduType.ResupplyCancel: + pdu = new ResupplyCancelPdu(); + break; + case PduType.RepairComplete: + pdu = new RepairCompletePdu(); + break; + case PduType.RepairResponse: + pdu = new RepairResponsePdu(); + break; + case PduType.CreateEntity: + pdu = new CreateEntityPdu(); + break; + case PduType.RemoveEntity: + pdu = new RemoveEntityPdu(); + break; + case PduType.StartResume: + pdu = new StartResumePdu(); + break; + case PduType.StopFreeze: + pdu = new StopFreezePdu(); + break; + case PduType.Acknowledge: + pdu = new AcknowledgePdu(); + break; + case PduType.ActionRequest: + pdu = new ActionRequestPdu(); + break; + case PduType.ActionResponse: + pdu = new ActionResponsePdu(); + break; + case PduType.DataQuery: + pdu = new DataQueryPdu(); + break; + case PduType.SetData: + pdu = new SetDataPdu(); + break; + case PduType.Data: + pdu = new DataPdu(); + break; + case PduType.EventReport: + pdu = new EventReportPdu(); + break; + case PduType.Comment: + pdu = new CommentPdu(); + break; + case PduType.ElectromagneticEmission: + throw new NotImplementedException(); + case PduType.Designator: + pdu = new DesignatorPdu(); + break; + case PduType.Transmitter: + pdu = new TransmitterPdu(); + break; + case PduType.Signal: + pdu = new SignalPdu(); + break; + case PduType.Receiver: + pdu = new ReceiverPdu(); + break; + default: + throw new NotImplementedException(); + } + + return pdu; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Vector3Double.cs b/Libs/CsharpDis6/Dis1995/Vector3Double.cs similarity index 96% rename from Libs/CsharpDis6/OpenDis/Dis1995/Vector3Double.cs rename to Libs/CsharpDis6/Dis1995/Vector3Double.cs index d1ac111..ad6dc3d 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Vector3Double.cs +++ b/Libs/CsharpDis6/Dis1995/Vector3Double.cs @@ -1,19 +1,19 @@ -using System; - -namespace OpenDis.Dis1995 -{ - /// - /// Three floating point values, x, y, and z. - /// - public partial class Vector3Double - { - /// - /// Calculates the length of the vector. - /// - /// The length of a vector. - public double CalculateLength() - { - return Math.Sqrt(Math.Pow(this.X, 2) + Math.Pow(this.Y, 2) + Math.Pow(this.Z, 2)); - } - } -} +using System; + +namespace OpenDis.Dis1995 +{ + /// + /// Three floating point values, x, y, and z. + /// + public partial class Vector3Double + { + /// + /// Calculates the length of the vector. + /// + /// The length of a vector. + public double CalculateLength() + { + return Math.Sqrt(Math.Pow(this.X, 2) + Math.Pow(this.Y, 2) + Math.Pow(this.Z, 2)); + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1995/Vector3Float.cs b/Libs/CsharpDis6/Dis1995/Vector3Float.cs similarity index 96% rename from Libs/CsharpDis6/OpenDis/Dis1995/Vector3Float.cs rename to Libs/CsharpDis6/Dis1995/Vector3Float.cs index 7baaa33..90af941 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1995/Vector3Float.cs +++ b/Libs/CsharpDis6/Dis1995/Vector3Float.cs @@ -1,19 +1,19 @@ -using System; - -namespace OpenDis.Dis1995 -{ - /// - /// Three floating point values, x, y, and z. - /// - public partial class Vector3Float - { - /// - /// Calculates the length of the vector. - /// - /// The length of a vector. - public double CalculateLength() - { - return Math.Sqrt(Math.Pow(this.X, 2) + Math.Pow(this.Y, 2) + Math.Pow(this.Z, 2)); - } - } -} +using System; + +namespace OpenDis.Dis1995 +{ + /// + /// Three floating point values, x, y, and z. + /// + public partial class Vector3Float + { + /// + /// Calculates the length of the vector. + /// + /// The length of a vector. + public double CalculateLength() + { + return Math.Sqrt(Math.Pow(this.X, 2) + Math.Pow(this.Y, 2) + Math.Pow(this.Z, 2)); + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/EntityID.cs b/Libs/CsharpDis6/Dis1998/EntityID.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Dis1998/EntityID.cs rename to Libs/CsharpDis6/Dis1998/EntityID.cs index 4c09732..131efac 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/EntityID.cs +++ b/Libs/CsharpDis6/Dis1998/EntityID.cs @@ -1,21 +1,21 @@ -using System; - -namespace OpenDis.Dis1998 -{ - /// - /// Each entity in a given DIS simulation application shall be given an entity identifier number unique to all other entities in that application. This identifier number is valid for the duration of the exercise; however, entity identifier numbers may be reused when all possible numbers have been exhausted. No entity shall have an entity identifier number of NO_ENTITY, ALL_ENTITIES, or RQST_ASSIGN_ID. The entity iden- tifier number need not be registered or retained for future exercises. The entity identifier number shall be specified by a 16-bit unsigned integer. An entity identifier number equal to zero with valid site and application identification shall address a simulation application. An entity identifier number equal to ALL_ENTITIES shall mean all entities within the specified site and application. An entity identifier number equal to RQST_ASSIGN_ID allows the receiver of the create entity to define the entity identifier number of the new entity. - /// - public partial class EntityID - { - /// - /// Returns a that represents this instance. - /// - /// - /// A that represents this instance. - /// - public override string ToString() - { - return string.Format("{0:00}{1:00}{2:00}", this.Site, this.Application, this.Entity); - } - } -} +using System; + +namespace OpenDis.Dis1998 +{ + /// + /// Each entity in a given DIS simulation application shall be given an entity identifier number unique to all other entities in that application. This identifier number is valid for the duration of the exercise; however, entity identifier numbers may be reused when all possible numbers have been exhausted. No entity shall have an entity identifier number of NO_ENTITY, ALL_ENTITIES, or RQST_ASSIGN_ID. The entity iden- tifier number need not be registered or retained for future exercises. The entity identifier number shall be specified by a 16-bit unsigned integer. An entity identifier number equal to zero with valid site and application identification shall address a simulation application. An entity identifier number equal to ALL_ENTITIES shall mean all entities within the specified site and application. An entity identifier number equal to RQST_ASSIGN_ID allows the receiver of the create entity to define the entity identifier number of the new entity. + /// + public partial class EntityID + { + /// + /// Returns a that represents this instance. + /// + /// + /// A that represents this instance. + /// + public override string ToString() + { + return string.Format("{0:00}{1:00}{2:00}", this.Site, this.Application, this.Entity); + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/AcknowledgePdu.cs b/Libs/CsharpDis6/Dis1998/Generated/AcknowledgePdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/AcknowledgePdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/AcknowledgePdu.cs index f143b2d..2fbd054 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/AcknowledgePdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/AcknowledgePdu.cs @@ -1,368 +1,368 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.6.5. Acknowledge the receiptof a start/resume, stop/freeze, or RemoveEntityPDU. COMPLETE - /// - [Serializable] - [XmlRoot] - public partial class AcknowledgePdu : SimulationManagementFamilyPdu, IEquatable - { - /// - /// type of message being acknowledged - /// - private ushort _acknowledgeFlag; - - /// - /// Whether or not the receiving entity was able to comply with the request - /// - private ushort _responseFlag; - - /// - /// Request ID that is unique - /// - private uint _requestID; - - /// - /// Initializes a new instance of the class. - /// - public AcknowledgePdu() - { - PduType = (byte)15; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(AcknowledgePdu left, AcknowledgePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(AcknowledgePdu left, AcknowledgePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 2; // this._acknowledgeFlag - marshalSize += 2; // this._responseFlag - marshalSize += 4; // this._requestID - return marshalSize; - } - - /// - /// Gets or sets the type of message being acknowledged - /// - [XmlElement(Type = typeof(ushort), ElementName = "acknowledgeFlag")] - public ushort AcknowledgeFlag - { - get - { - return this._acknowledgeFlag; - } - - set - { - this._acknowledgeFlag = value; - } - } - - /// - /// Gets or sets the Whether or not the receiving entity was able to comply with the request - /// - [XmlElement(Type = typeof(ushort), ElementName = "responseFlag")] - public ushort ResponseFlag - { - get - { - return this._responseFlag; - } - - set - { - this._responseFlag = value; - } - } - - /// - /// Gets or sets the Request ID that is unique - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._acknowledgeFlag); - dos.WriteUnsignedShort((ushort)this._responseFlag); - dos.WriteUnsignedInt((uint)this._requestID); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._acknowledgeFlag = dis.ReadUnsignedShort(); - this._responseFlag = dis.ReadUnsignedShort(); - this._requestID = dis.ReadUnsignedInt(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._acknowledgeFlag.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._responseFlag.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as AcknowledgePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(AcknowledgePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._acknowledgeFlag != obj._acknowledgeFlag) - { - ivarsEqual = false; - } - - if (this._responseFlag != obj._responseFlag) - { - ivarsEqual = false; - } - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._acknowledgeFlag.GetHashCode(); - result = GenerateHash(result) ^ this._responseFlag.GetHashCode(); - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.6.5. Acknowledge the receiptof a start/resume, stop/freeze, or RemoveEntityPDU. COMPLETE + /// + [Serializable] + [XmlRoot] + public partial class AcknowledgePdu : SimulationManagementFamilyPdu, IEquatable + { + /// + /// type of message being acknowledged + /// + private ushort _acknowledgeFlag; + + /// + /// Whether or not the receiving entity was able to comply with the request + /// + private ushort _responseFlag; + + /// + /// Request ID that is unique + /// + private uint _requestID; + + /// + /// Initializes a new instance of the class. + /// + public AcknowledgePdu() + { + PduType = (byte)15; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(AcknowledgePdu left, AcknowledgePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(AcknowledgePdu left, AcknowledgePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 2; // this._acknowledgeFlag + marshalSize += 2; // this._responseFlag + marshalSize += 4; // this._requestID + return marshalSize; + } + + /// + /// Gets or sets the type of message being acknowledged + /// + [XmlElement(Type = typeof(ushort), ElementName = "acknowledgeFlag")] + public ushort AcknowledgeFlag + { + get + { + return this._acknowledgeFlag; + } + + set + { + this._acknowledgeFlag = value; + } + } + + /// + /// Gets or sets the Whether or not the receiving entity was able to comply with the request + /// + [XmlElement(Type = typeof(ushort), ElementName = "responseFlag")] + public ushort ResponseFlag + { + get + { + return this._responseFlag; + } + + set + { + this._responseFlag = value; + } + } + + /// + /// Gets or sets the Request ID that is unique + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._acknowledgeFlag); + dos.WriteUnsignedShort((ushort)this._responseFlag); + dos.WriteUnsignedInt((uint)this._requestID); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._acknowledgeFlag = dis.ReadUnsignedShort(); + this._responseFlag = dis.ReadUnsignedShort(); + this._requestID = dis.ReadUnsignedInt(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._acknowledgeFlag.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._responseFlag.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as AcknowledgePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(AcknowledgePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._acknowledgeFlag != obj._acknowledgeFlag) + { + ivarsEqual = false; + } + + if (this._responseFlag != obj._responseFlag) + { + ivarsEqual = false; + } + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._acknowledgeFlag.GetHashCode(); + result = GenerateHash(result) ^ this._responseFlag.GetHashCode(); + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/AcknowledgeReliablePdu.cs b/Libs/CsharpDis6/Dis1998/Generated/AcknowledgeReliablePdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/AcknowledgeReliablePdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/AcknowledgeReliablePdu.cs index 81f6738..1d787f6 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/AcknowledgeReliablePdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/AcknowledgeReliablePdu.cs @@ -1,368 +1,368 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.12.5: Ack receipt of a start-resume, stop-freeze, create-entity or remove enitty (reliable) pdus. COMPLETE - /// - [Serializable] - [XmlRoot] - public partial class AcknowledgeReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable - { - /// - /// ack flags - /// - private ushort _acknowledgeFlag; - - /// - /// response flags - /// - private ushort _responseFlag; - - /// - /// Request ID - /// - private uint _requestID; - - /// - /// Initializes a new instance of the class. - /// - public AcknowledgeReliablePdu() - { - PduType = (byte)55; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(AcknowledgeReliablePdu left, AcknowledgeReliablePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(AcknowledgeReliablePdu left, AcknowledgeReliablePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 2; // this._acknowledgeFlag - marshalSize += 2; // this._responseFlag - marshalSize += 4; // this._requestID - return marshalSize; - } - - /// - /// Gets or sets the ack flags - /// - [XmlElement(Type = typeof(ushort), ElementName = "acknowledgeFlag")] - public ushort AcknowledgeFlag - { - get - { - return this._acknowledgeFlag; - } - - set - { - this._acknowledgeFlag = value; - } - } - - /// - /// Gets or sets the response flags - /// - [XmlElement(Type = typeof(ushort), ElementName = "responseFlag")] - public ushort ResponseFlag - { - get - { - return this._responseFlag; - } - - set - { - this._responseFlag = value; - } - } - - /// - /// Gets or sets the Request ID - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._acknowledgeFlag); - dos.WriteUnsignedShort((ushort)this._responseFlag); - dos.WriteUnsignedInt((uint)this._requestID); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._acknowledgeFlag = dis.ReadUnsignedShort(); - this._responseFlag = dis.ReadUnsignedShort(); - this._requestID = dis.ReadUnsignedInt(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._acknowledgeFlag.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._responseFlag.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as AcknowledgeReliablePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(AcknowledgeReliablePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._acknowledgeFlag != obj._acknowledgeFlag) - { - ivarsEqual = false; - } - - if (this._responseFlag != obj._responseFlag) - { - ivarsEqual = false; - } - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._acknowledgeFlag.GetHashCode(); - result = GenerateHash(result) ^ this._responseFlag.GetHashCode(); - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.12.5: Ack receipt of a start-resume, stop-freeze, create-entity or remove enitty (reliable) pdus. COMPLETE + /// + [Serializable] + [XmlRoot] + public partial class AcknowledgeReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable + { + /// + /// ack flags + /// + private ushort _acknowledgeFlag; + + /// + /// response flags + /// + private ushort _responseFlag; + + /// + /// Request ID + /// + private uint _requestID; + + /// + /// Initializes a new instance of the class. + /// + public AcknowledgeReliablePdu() + { + PduType = (byte)55; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(AcknowledgeReliablePdu left, AcknowledgeReliablePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(AcknowledgeReliablePdu left, AcknowledgeReliablePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 2; // this._acknowledgeFlag + marshalSize += 2; // this._responseFlag + marshalSize += 4; // this._requestID + return marshalSize; + } + + /// + /// Gets or sets the ack flags + /// + [XmlElement(Type = typeof(ushort), ElementName = "acknowledgeFlag")] + public ushort AcknowledgeFlag + { + get + { + return this._acknowledgeFlag; + } + + set + { + this._acknowledgeFlag = value; + } + } + + /// + /// Gets or sets the response flags + /// + [XmlElement(Type = typeof(ushort), ElementName = "responseFlag")] + public ushort ResponseFlag + { + get + { + return this._responseFlag; + } + + set + { + this._responseFlag = value; + } + } + + /// + /// Gets or sets the Request ID + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._acknowledgeFlag); + dos.WriteUnsignedShort((ushort)this._responseFlag); + dos.WriteUnsignedInt((uint)this._requestID); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._acknowledgeFlag = dis.ReadUnsignedShort(); + this._responseFlag = dis.ReadUnsignedShort(); + this._requestID = dis.ReadUnsignedInt(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._acknowledgeFlag.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._responseFlag.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as AcknowledgeReliablePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(AcknowledgeReliablePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._acknowledgeFlag != obj._acknowledgeFlag) + { + ivarsEqual = false; + } + + if (this._responseFlag != obj._responseFlag) + { + ivarsEqual = false; + } + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._acknowledgeFlag.GetHashCode(); + result = GenerateHash(result) ^ this._responseFlag.GetHashCode(); + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/AcousticBeamData.cs b/Libs/CsharpDis6/Dis1998/Generated/AcousticBeamData.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/AcousticBeamData.cs rename to Libs/CsharpDis6/Dis1998/Generated/AcousticBeamData.cs index 2e7951a..a85b9ec 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/AcousticBeamData.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/AcousticBeamData.cs @@ -1,399 +1,399 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Used in UA PDU - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(AcousticBeamFundamentalParameter))] - public partial class AcousticBeamData - { - /// - /// beam data length - /// - private ushort _beamDataLength; - - /// - /// beamIDNumber - /// - private byte _beamIDNumber; - - /// - /// padding - /// - private ushort _pad2; - - /// - /// fundamental data parameters - /// - private AcousticBeamFundamentalParameter _fundamentalDataParameters = new AcousticBeamFundamentalParameter(); - - /// - /// Initializes a new instance of the class. - /// - public AcousticBeamData() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(AcousticBeamData left, AcousticBeamData right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(AcousticBeamData left, AcousticBeamData right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 2; // this._beamDataLength - marshalSize += 1; // this._beamIDNumber - marshalSize += 2; // this._pad2 - marshalSize += this._fundamentalDataParameters.GetMarshalledSize(); // this._fundamentalDataParameters - return marshalSize; - } - - /// - /// Gets or sets the beam data length - /// - [XmlElement(Type = typeof(ushort), ElementName = "beamDataLength")] - public ushort BeamDataLength - { - get - { - return this._beamDataLength; - } - - set - { - this._beamDataLength = value; - } - } - - /// - /// Gets or sets the beamIDNumber - /// - [XmlElement(Type = typeof(byte), ElementName = "beamIDNumber")] - public byte BeamIDNumber - { - get - { - return this._beamIDNumber; - } - - set - { - this._beamIDNumber = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(ushort), ElementName = "pad2")] - public ushort Pad2 - { - get - { - return this._pad2; - } - - set - { - this._pad2 = value; - } - } - - /// - /// Gets or sets the fundamental data parameters - /// - [XmlElement(Type = typeof(AcousticBeamFundamentalParameter), ElementName = "fundamentalDataParameters")] - public AcousticBeamFundamentalParameter FundamentalDataParameters - { - get - { - return this._fundamentalDataParameters; - } - - set - { - this._fundamentalDataParameters = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._beamDataLength); - dos.WriteUnsignedByte((byte)this._beamIDNumber); - dos.WriteUnsignedShort((ushort)this._pad2); - this._fundamentalDataParameters.Marshal(dos); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._beamDataLength = dis.ReadUnsignedShort(); - this._beamIDNumber = dis.ReadUnsignedByte(); - this._pad2 = dis.ReadUnsignedShort(); - this._fundamentalDataParameters.Unmarshal(dis); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._beamDataLength.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._beamIDNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._fundamentalDataParameters.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as AcousticBeamData; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(AcousticBeamData obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._beamDataLength != obj._beamDataLength) - { - ivarsEqual = false; - } - - if (this._beamIDNumber != obj._beamIDNumber) - { - ivarsEqual = false; - } - - if (this._pad2 != obj._pad2) - { - ivarsEqual = false; - } - - if (!this._fundamentalDataParameters.Equals(obj._fundamentalDataParameters)) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._beamDataLength.GetHashCode(); - result = GenerateHash(result) ^ this._beamIDNumber.GetHashCode(); - result = GenerateHash(result) ^ this._pad2.GetHashCode(); - result = GenerateHash(result) ^ this._fundamentalDataParameters.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Used in UA PDU + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(AcousticBeamFundamentalParameter))] + public partial class AcousticBeamData + { + /// + /// beam data length + /// + private ushort _beamDataLength; + + /// + /// beamIDNumber + /// + private byte _beamIDNumber; + + /// + /// padding + /// + private ushort _pad2; + + /// + /// fundamental data parameters + /// + private AcousticBeamFundamentalParameter _fundamentalDataParameters = new AcousticBeamFundamentalParameter(); + + /// + /// Initializes a new instance of the class. + /// + public AcousticBeamData() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(AcousticBeamData left, AcousticBeamData right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(AcousticBeamData left, AcousticBeamData right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 2; // this._beamDataLength + marshalSize += 1; // this._beamIDNumber + marshalSize += 2; // this._pad2 + marshalSize += this._fundamentalDataParameters.GetMarshalledSize(); // this._fundamentalDataParameters + return marshalSize; + } + + /// + /// Gets or sets the beam data length + /// + [XmlElement(Type = typeof(ushort), ElementName = "beamDataLength")] + public ushort BeamDataLength + { + get + { + return this._beamDataLength; + } + + set + { + this._beamDataLength = value; + } + } + + /// + /// Gets or sets the beamIDNumber + /// + [XmlElement(Type = typeof(byte), ElementName = "beamIDNumber")] + public byte BeamIDNumber + { + get + { + return this._beamIDNumber; + } + + set + { + this._beamIDNumber = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(ushort), ElementName = "pad2")] + public ushort Pad2 + { + get + { + return this._pad2; + } + + set + { + this._pad2 = value; + } + } + + /// + /// Gets or sets the fundamental data parameters + /// + [XmlElement(Type = typeof(AcousticBeamFundamentalParameter), ElementName = "fundamentalDataParameters")] + public AcousticBeamFundamentalParameter FundamentalDataParameters + { + get + { + return this._fundamentalDataParameters; + } + + set + { + this._fundamentalDataParameters = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._beamDataLength); + dos.WriteUnsignedByte((byte)this._beamIDNumber); + dos.WriteUnsignedShort((ushort)this._pad2); + this._fundamentalDataParameters.Marshal(dos); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._beamDataLength = dis.ReadUnsignedShort(); + this._beamIDNumber = dis.ReadUnsignedByte(); + this._pad2 = dis.ReadUnsignedShort(); + this._fundamentalDataParameters.Unmarshal(dis); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._beamDataLength.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._beamIDNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._fundamentalDataParameters.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as AcousticBeamData; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(AcousticBeamData obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._beamDataLength != obj._beamDataLength) + { + ivarsEqual = false; + } + + if (this._beamIDNumber != obj._beamIDNumber) + { + ivarsEqual = false; + } + + if (this._pad2 != obj._pad2) + { + ivarsEqual = false; + } + + if (!this._fundamentalDataParameters.Equals(obj._fundamentalDataParameters)) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._beamDataLength.GetHashCode(); + result = GenerateHash(result) ^ this._beamIDNumber.GetHashCode(); + result = GenerateHash(result) ^ this._pad2.GetHashCode(); + result = GenerateHash(result) ^ this._fundamentalDataParameters.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/AcousticBeamFundamentalParameter.cs b/Libs/CsharpDis6/Dis1998/Generated/AcousticBeamFundamentalParameter.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/AcousticBeamFundamentalParameter.cs rename to Libs/CsharpDis6/Dis1998/Generated/AcousticBeamFundamentalParameter.cs index 2b34247..0229463 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/AcousticBeamFundamentalParameter.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/AcousticBeamFundamentalParameter.cs @@ -1,460 +1,460 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Used in UaPdu - /// - [Serializable] - [XmlRoot] - public partial class AcousticBeamFundamentalParameter - { - /// - /// parameter index - /// - private ushort _activeEmissionParameterIndex; - - /// - /// scan pattern - /// - private ushort _scanPattern; - - /// - /// beam center azimuth - /// - private float _beamCenterAzimuth; - - /// - /// azimuthal beamwidth - /// - private float _azimuthalBeamwidth; - - /// - /// beam center - /// - private float _beamCenterDE; - - /// - /// DE beamwidth (vertical beamwidth) - /// - private float _deBeamwidth; - - /// - /// Initializes a new instance of the class. - /// - public AcousticBeamFundamentalParameter() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(AcousticBeamFundamentalParameter left, AcousticBeamFundamentalParameter right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(AcousticBeamFundamentalParameter left, AcousticBeamFundamentalParameter right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 2; // this._activeEmissionParameterIndex - marshalSize += 2; // this._scanPattern - marshalSize += 4; // this._beamCenterAzimuth - marshalSize += 4; // this._azimuthalBeamwidth - marshalSize += 4; // this._beamCenterDE - marshalSize += 4; // this._deBeamwidth - return marshalSize; - } - - /// - /// Gets or sets the parameter index - /// - [XmlElement(Type = typeof(ushort), ElementName = "activeEmissionParameterIndex")] - public ushort ActiveEmissionParameterIndex - { - get - { - return this._activeEmissionParameterIndex; - } - - set - { - this._activeEmissionParameterIndex = value; - } - } - - /// - /// Gets or sets the scan pattern - /// - [XmlElement(Type = typeof(ushort), ElementName = "scanPattern")] - public ushort ScanPattern - { - get - { - return this._scanPattern; - } - - set - { - this._scanPattern = value; - } - } - - /// - /// Gets or sets the beam center azimuth - /// - [XmlElement(Type = typeof(float), ElementName = "beamCenterAzimuth")] - public float BeamCenterAzimuth - { - get - { - return this._beamCenterAzimuth; - } - - set - { - this._beamCenterAzimuth = value; - } - } - - /// - /// Gets or sets the azimuthal beamwidth - /// - [XmlElement(Type = typeof(float), ElementName = "azimuthalBeamwidth")] - public float AzimuthalBeamwidth - { - get - { - return this._azimuthalBeamwidth; - } - - set - { - this._azimuthalBeamwidth = value; - } - } - - /// - /// Gets or sets the beam center - /// - [XmlElement(Type = typeof(float), ElementName = "beamCenterDE")] - public float BeamCenterDE - { - get - { - return this._beamCenterDE; - } - - set - { - this._beamCenterDE = value; - } - } - - /// - /// Gets or sets the DE beamwidth (vertical beamwidth) - /// - [XmlElement(Type = typeof(float), ElementName = "deBeamwidth")] - public float DeBeamwidth - { - get - { - return this._deBeamwidth; - } - - set - { - this._deBeamwidth = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._activeEmissionParameterIndex); - dos.WriteUnsignedShort((ushort)this._scanPattern); - dos.WriteFloat((float)this._beamCenterAzimuth); - dos.WriteFloat((float)this._azimuthalBeamwidth); - dos.WriteFloat((float)this._beamCenterDE); - dos.WriteFloat((float)this._deBeamwidth); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._activeEmissionParameterIndex = dis.ReadUnsignedShort(); - this._scanPattern = dis.ReadUnsignedShort(); - this._beamCenterAzimuth = dis.ReadFloat(); - this._azimuthalBeamwidth = dis.ReadFloat(); - this._beamCenterDE = dis.ReadFloat(); - this._deBeamwidth = dis.ReadFloat(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._activeEmissionParameterIndex.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._scanPattern.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._beamCenterAzimuth.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._azimuthalBeamwidth.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._beamCenterDE.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._deBeamwidth.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as AcousticBeamFundamentalParameter; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(AcousticBeamFundamentalParameter obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._activeEmissionParameterIndex != obj._activeEmissionParameterIndex) - { - ivarsEqual = false; - } - - if (this._scanPattern != obj._scanPattern) - { - ivarsEqual = false; - } - - if (this._beamCenterAzimuth != obj._beamCenterAzimuth) - { - ivarsEqual = false; - } - - if (this._azimuthalBeamwidth != obj._azimuthalBeamwidth) - { - ivarsEqual = false; - } - - if (this._beamCenterDE != obj._beamCenterDE) - { - ivarsEqual = false; - } - - if (this._deBeamwidth != obj._deBeamwidth) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._activeEmissionParameterIndex.GetHashCode(); - result = GenerateHash(result) ^ this._scanPattern.GetHashCode(); - result = GenerateHash(result) ^ this._beamCenterAzimuth.GetHashCode(); - result = GenerateHash(result) ^ this._azimuthalBeamwidth.GetHashCode(); - result = GenerateHash(result) ^ this._beamCenterDE.GetHashCode(); - result = GenerateHash(result) ^ this._deBeamwidth.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Used in UaPdu + /// + [Serializable] + [XmlRoot] + public partial class AcousticBeamFundamentalParameter + { + /// + /// parameter index + /// + private ushort _activeEmissionParameterIndex; + + /// + /// scan pattern + /// + private ushort _scanPattern; + + /// + /// beam center azimuth + /// + private float _beamCenterAzimuth; + + /// + /// azimuthal beamwidth + /// + private float _azimuthalBeamwidth; + + /// + /// beam center + /// + private float _beamCenterDE; + + /// + /// DE beamwidth (vertical beamwidth) + /// + private float _deBeamwidth; + + /// + /// Initializes a new instance of the class. + /// + public AcousticBeamFundamentalParameter() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(AcousticBeamFundamentalParameter left, AcousticBeamFundamentalParameter right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(AcousticBeamFundamentalParameter left, AcousticBeamFundamentalParameter right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 2; // this._activeEmissionParameterIndex + marshalSize += 2; // this._scanPattern + marshalSize += 4; // this._beamCenterAzimuth + marshalSize += 4; // this._azimuthalBeamwidth + marshalSize += 4; // this._beamCenterDE + marshalSize += 4; // this._deBeamwidth + return marshalSize; + } + + /// + /// Gets or sets the parameter index + /// + [XmlElement(Type = typeof(ushort), ElementName = "activeEmissionParameterIndex")] + public ushort ActiveEmissionParameterIndex + { + get + { + return this._activeEmissionParameterIndex; + } + + set + { + this._activeEmissionParameterIndex = value; + } + } + + /// + /// Gets or sets the scan pattern + /// + [XmlElement(Type = typeof(ushort), ElementName = "scanPattern")] + public ushort ScanPattern + { + get + { + return this._scanPattern; + } + + set + { + this._scanPattern = value; + } + } + + /// + /// Gets or sets the beam center azimuth + /// + [XmlElement(Type = typeof(float), ElementName = "beamCenterAzimuth")] + public float BeamCenterAzimuth + { + get + { + return this._beamCenterAzimuth; + } + + set + { + this._beamCenterAzimuth = value; + } + } + + /// + /// Gets or sets the azimuthal beamwidth + /// + [XmlElement(Type = typeof(float), ElementName = "azimuthalBeamwidth")] + public float AzimuthalBeamwidth + { + get + { + return this._azimuthalBeamwidth; + } + + set + { + this._azimuthalBeamwidth = value; + } + } + + /// + /// Gets or sets the beam center + /// + [XmlElement(Type = typeof(float), ElementName = "beamCenterDE")] + public float BeamCenterDE + { + get + { + return this._beamCenterDE; + } + + set + { + this._beamCenterDE = value; + } + } + + /// + /// Gets or sets the DE beamwidth (vertical beamwidth) + /// + [XmlElement(Type = typeof(float), ElementName = "deBeamwidth")] + public float DeBeamwidth + { + get + { + return this._deBeamwidth; + } + + set + { + this._deBeamwidth = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._activeEmissionParameterIndex); + dos.WriteUnsignedShort((ushort)this._scanPattern); + dos.WriteFloat((float)this._beamCenterAzimuth); + dos.WriteFloat((float)this._azimuthalBeamwidth); + dos.WriteFloat((float)this._beamCenterDE); + dos.WriteFloat((float)this._deBeamwidth); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._activeEmissionParameterIndex = dis.ReadUnsignedShort(); + this._scanPattern = dis.ReadUnsignedShort(); + this._beamCenterAzimuth = dis.ReadFloat(); + this._azimuthalBeamwidth = dis.ReadFloat(); + this._beamCenterDE = dis.ReadFloat(); + this._deBeamwidth = dis.ReadFloat(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._activeEmissionParameterIndex.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._scanPattern.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._beamCenterAzimuth.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._azimuthalBeamwidth.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._beamCenterDE.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._deBeamwidth.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as AcousticBeamFundamentalParameter; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(AcousticBeamFundamentalParameter obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._activeEmissionParameterIndex != obj._activeEmissionParameterIndex) + { + ivarsEqual = false; + } + + if (this._scanPattern != obj._scanPattern) + { + ivarsEqual = false; + } + + if (this._beamCenterAzimuth != obj._beamCenterAzimuth) + { + ivarsEqual = false; + } + + if (this._azimuthalBeamwidth != obj._azimuthalBeamwidth) + { + ivarsEqual = false; + } + + if (this._beamCenterDE != obj._beamCenterDE) + { + ivarsEqual = false; + } + + if (this._deBeamwidth != obj._deBeamwidth) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._activeEmissionParameterIndex.GetHashCode(); + result = GenerateHash(result) ^ this._scanPattern.GetHashCode(); + result = GenerateHash(result) ^ this._beamCenterAzimuth.GetHashCode(); + result = GenerateHash(result) ^ this._azimuthalBeamwidth.GetHashCode(); + result = GenerateHash(result) ^ this._beamCenterDE.GetHashCode(); + result = GenerateHash(result) ^ this._deBeamwidth.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/AcousticEmitter.cs b/Libs/CsharpDis6/Dis1998/Generated/AcousticEmitter.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/AcousticEmitter.cs rename to Libs/CsharpDis6/Dis1998/Generated/AcousticEmitter.cs index 96e6329..a353d23 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/AcousticEmitter.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/AcousticEmitter.cs @@ -1,364 +1,364 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.2.35. information about a specific UA emmtter - /// - [Serializable] - [XmlRoot] - public partial class AcousticEmitter - { - /// - /// the system for a particular UA emitter, and an enumeration - /// - private ushort _acousticName; - - /// - /// The function of the acoustic system - /// - private byte _function; - - /// - /// The UA emitter identification number relative to a specific system - /// - private byte _acousticIdNumber; - - /// - /// Initializes a new instance of the class. - /// - public AcousticEmitter() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(AcousticEmitter left, AcousticEmitter right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(AcousticEmitter left, AcousticEmitter right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 2; // this._acousticName - marshalSize += 1; // this._function - marshalSize += 1; // this._acousticIdNumber - return marshalSize; - } - - /// - /// Gets or sets the the system for a particular UA emitter, and an enumeration - /// - [XmlElement(Type = typeof(ushort), ElementName = "acousticName")] - public ushort AcousticName - { - get - { - return this._acousticName; - } - - set - { - this._acousticName = value; - } - } - - /// - /// Gets or sets the The function of the acoustic system - /// - [XmlElement(Type = typeof(byte), ElementName = "function")] - public byte Function - { - get - { - return this._function; - } - - set - { - this._function = value; - } - } - - /// - /// Gets or sets the The UA emitter identification number relative to a specific system - /// - [XmlElement(Type = typeof(byte), ElementName = "acousticIdNumber")] - public byte AcousticIdNumber - { - get - { - return this._acousticIdNumber; - } - - set - { - this._acousticIdNumber = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._acousticName); - dos.WriteUnsignedByte((byte)this._function); - dos.WriteUnsignedByte((byte)this._acousticIdNumber); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._acousticName = dis.ReadUnsignedShort(); - this._function = dis.ReadUnsignedByte(); - this._acousticIdNumber = dis.ReadUnsignedByte(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._acousticName.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._function.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._acousticIdNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as AcousticEmitter; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(AcousticEmitter obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._acousticName != obj._acousticName) - { - ivarsEqual = false; - } - - if (this._function != obj._function) - { - ivarsEqual = false; - } - - if (this._acousticIdNumber != obj._acousticIdNumber) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._acousticName.GetHashCode(); - result = GenerateHash(result) ^ this._function.GetHashCode(); - result = GenerateHash(result) ^ this._acousticIdNumber.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.2.35. information about a specific UA emmtter + /// + [Serializable] + [XmlRoot] + public partial class AcousticEmitter + { + /// + /// the system for a particular UA emitter, and an enumeration + /// + private ushort _acousticName; + + /// + /// The function of the acoustic system + /// + private byte _function; + + /// + /// The UA emitter identification number relative to a specific system + /// + private byte _acousticIdNumber; + + /// + /// Initializes a new instance of the class. + /// + public AcousticEmitter() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(AcousticEmitter left, AcousticEmitter right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(AcousticEmitter left, AcousticEmitter right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 2; // this._acousticName + marshalSize += 1; // this._function + marshalSize += 1; // this._acousticIdNumber + return marshalSize; + } + + /// + /// Gets or sets the the system for a particular UA emitter, and an enumeration + /// + [XmlElement(Type = typeof(ushort), ElementName = "acousticName")] + public ushort AcousticName + { + get + { + return this._acousticName; + } + + set + { + this._acousticName = value; + } + } + + /// + /// Gets or sets the The function of the acoustic system + /// + [XmlElement(Type = typeof(byte), ElementName = "function")] + public byte Function + { + get + { + return this._function; + } + + set + { + this._function = value; + } + } + + /// + /// Gets or sets the The UA emitter identification number relative to a specific system + /// + [XmlElement(Type = typeof(byte), ElementName = "acousticIdNumber")] + public byte AcousticIdNumber + { + get + { + return this._acousticIdNumber; + } + + set + { + this._acousticIdNumber = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._acousticName); + dos.WriteUnsignedByte((byte)this._function); + dos.WriteUnsignedByte((byte)this._acousticIdNumber); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._acousticName = dis.ReadUnsignedShort(); + this._function = dis.ReadUnsignedByte(); + this._acousticIdNumber = dis.ReadUnsignedByte(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._acousticName.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._function.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._acousticIdNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as AcousticEmitter; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(AcousticEmitter obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._acousticName != obj._acousticName) + { + ivarsEqual = false; + } + + if (this._function != obj._function) + { + ivarsEqual = false; + } + + if (this._acousticIdNumber != obj._acousticIdNumber) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._acousticName.GetHashCode(); + result = GenerateHash(result) ^ this._function.GetHashCode(); + result = GenerateHash(result) ^ this._acousticIdNumber.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/AcousticEmitterSystem.cs b/Libs/CsharpDis6/Dis1998/Generated/AcousticEmitterSystem.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/AcousticEmitterSystem.cs rename to Libs/CsharpDis6/Dis1998/Generated/AcousticEmitterSystem.cs index f068b81..8b60099 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/AcousticEmitterSystem.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/AcousticEmitterSystem.cs @@ -1,364 +1,364 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// 5.3.35: Information about a particular UA emitter shall be represented using an Acoustic Emitter System record. This record shall consist of three fields: Acoustic Name, Function, and Acoustic ID Number - /// - [Serializable] - [XmlRoot] - public partial class AcousticEmitterSystem - { - /// - /// This field shall specify the system for a particular UA emitter. - /// - private ushort _acousticName; - - /// - /// This field shall describe the function of the acoustic system. - /// - private byte _acousticFunction; - - /// - /// This field shall specify the UA emitter identification number relative to a specific system. This field shall be represented by an 8-bit unsigned integer. This field allows the differentiation of multiple systems on an entity, even if in some instances two or more of the systems may be identical UA emitter types. Numbering of systems shall begin with the value 1. - /// - private byte _acousticID; - - /// - /// Initializes a new instance of the class. - /// - public AcousticEmitterSystem() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(AcousticEmitterSystem left, AcousticEmitterSystem right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(AcousticEmitterSystem left, AcousticEmitterSystem right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 2; // this._acousticName - marshalSize += 1; // this._acousticFunction - marshalSize += 1; // this._acousticID - return marshalSize; - } - - /// - /// Gets or sets the This field shall specify the system for a particular UA emitter. - /// - [XmlElement(Type = typeof(ushort), ElementName = "acousticName")] - public ushort AcousticName - { - get - { - return this._acousticName; - } - - set - { - this._acousticName = value; - } - } - - /// - /// Gets or sets the This field shall describe the function of the acoustic system. - /// - [XmlElement(Type = typeof(byte), ElementName = "acousticFunction")] - public byte AcousticFunction - { - get - { - return this._acousticFunction; - } - - set - { - this._acousticFunction = value; - } - } - - /// - /// Gets or sets the This field shall specify the UA emitter identification number relative to a specific system. This field shall be represented by an 8-bit unsigned integer. This field allows the differentiation of multiple systems on an entity, even if in some instances two or more of the systems may be identical UA emitter types. Numbering of systems shall begin with the value 1. - /// - [XmlElement(Type = typeof(byte), ElementName = "acousticID")] - public byte AcousticID - { - get - { - return this._acousticID; - } - - set - { - this._acousticID = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._acousticName); - dos.WriteUnsignedByte((byte)this._acousticFunction); - dos.WriteUnsignedByte((byte)this._acousticID); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._acousticName = dis.ReadUnsignedShort(); - this._acousticFunction = dis.ReadUnsignedByte(); - this._acousticID = dis.ReadUnsignedByte(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._acousticName.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._acousticFunction.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._acousticID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as AcousticEmitterSystem; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(AcousticEmitterSystem obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._acousticName != obj._acousticName) - { - ivarsEqual = false; - } - - if (this._acousticFunction != obj._acousticFunction) - { - ivarsEqual = false; - } - - if (this._acousticID != obj._acousticID) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._acousticName.GetHashCode(); - result = GenerateHash(result) ^ this._acousticFunction.GetHashCode(); - result = GenerateHash(result) ^ this._acousticID.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// 5.3.35: Information about a particular UA emitter shall be represented using an Acoustic Emitter System record. This record shall consist of three fields: Acoustic Name, Function, and Acoustic ID Number + /// + [Serializable] + [XmlRoot] + public partial class AcousticEmitterSystem + { + /// + /// This field shall specify the system for a particular UA emitter. + /// + private ushort _acousticName; + + /// + /// This field shall describe the function of the acoustic system. + /// + private byte _acousticFunction; + + /// + /// This field shall specify the UA emitter identification number relative to a specific system. This field shall be represented by an 8-bit unsigned integer. This field allows the differentiation of multiple systems on an entity, even if in some instances two or more of the systems may be identical UA emitter types. Numbering of systems shall begin with the value 1. + /// + private byte _acousticID; + + /// + /// Initializes a new instance of the class. + /// + public AcousticEmitterSystem() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(AcousticEmitterSystem left, AcousticEmitterSystem right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(AcousticEmitterSystem left, AcousticEmitterSystem right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 2; // this._acousticName + marshalSize += 1; // this._acousticFunction + marshalSize += 1; // this._acousticID + return marshalSize; + } + + /// + /// Gets or sets the This field shall specify the system for a particular UA emitter. + /// + [XmlElement(Type = typeof(ushort), ElementName = "acousticName")] + public ushort AcousticName + { + get + { + return this._acousticName; + } + + set + { + this._acousticName = value; + } + } + + /// + /// Gets or sets the This field shall describe the function of the acoustic system. + /// + [XmlElement(Type = typeof(byte), ElementName = "acousticFunction")] + public byte AcousticFunction + { + get + { + return this._acousticFunction; + } + + set + { + this._acousticFunction = value; + } + } + + /// + /// Gets or sets the This field shall specify the UA emitter identification number relative to a specific system. This field shall be represented by an 8-bit unsigned integer. This field allows the differentiation of multiple systems on an entity, even if in some instances two or more of the systems may be identical UA emitter types. Numbering of systems shall begin with the value 1. + /// + [XmlElement(Type = typeof(byte), ElementName = "acousticID")] + public byte AcousticID + { + get + { + return this._acousticID; + } + + set + { + this._acousticID = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._acousticName); + dos.WriteUnsignedByte((byte)this._acousticFunction); + dos.WriteUnsignedByte((byte)this._acousticID); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._acousticName = dis.ReadUnsignedShort(); + this._acousticFunction = dis.ReadUnsignedByte(); + this._acousticID = dis.ReadUnsignedByte(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._acousticName.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._acousticFunction.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._acousticID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as AcousticEmitterSystem; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(AcousticEmitterSystem obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._acousticName != obj._acousticName) + { + ivarsEqual = false; + } + + if (this._acousticFunction != obj._acousticFunction) + { + ivarsEqual = false; + } + + if (this._acousticID != obj._acousticID) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._acousticName.GetHashCode(); + result = GenerateHash(result) ^ this._acousticFunction.GetHashCode(); + result = GenerateHash(result) ^ this._acousticID.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/AcousticEmitterSystemData.cs b/Libs/CsharpDis6/Dis1998/Generated/AcousticEmitterSystemData.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/AcousticEmitterSystemData.cs rename to Libs/CsharpDis6/Dis1998/Generated/AcousticEmitterSystemData.cs index 2a53953..0a7ec1b 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/AcousticEmitterSystemData.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/AcousticEmitterSystemData.cs @@ -1,508 +1,508 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Used in the UA pdu; ties together an emmitter and a location. This requires manual cleanup; the beam data should not be attached to each emitter system. - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(AcousticEmitterSystem))] - [XmlInclude(typeof(Vector3Float))] - [XmlInclude(typeof(AcousticBeamData))] - public partial class AcousticEmitterSystemData - { - /// - /// Length of emitter system data - /// - private byte _emitterSystemDataLength; - - /// - /// Number of beams - /// - private byte _numberOfBeams; - - /// - /// padding - /// - private ushort _pad2; - - /// - /// This field shall specify the system for a particular UA emitter. - /// - private AcousticEmitterSystem _acousticEmitterSystem = new AcousticEmitterSystem(); - - /// - /// Represents the location wrt the entity - /// - private Vector3Float _emitterLocation = new Vector3Float(); - - /// - /// For each beam in numberOfBeams, an emitter system. This is not right--the beam records need to be at the end of the PDU, rather than attached to each system. - /// - private List _beamRecords = new List(); - - /// - /// Initializes a new instance of the class. - /// - public AcousticEmitterSystemData() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(AcousticEmitterSystemData left, AcousticEmitterSystemData right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(AcousticEmitterSystemData left, AcousticEmitterSystemData right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._emitterSystemDataLength - marshalSize += 1; // this._numberOfBeams - marshalSize += 2; // this._pad2 - marshalSize += this._acousticEmitterSystem.GetMarshalledSize(); // this._acousticEmitterSystem - marshalSize += this._emitterLocation.GetMarshalledSize(); // this._emitterLocation - for (int idx = 0; idx < this._beamRecords.Count; idx++) - { - AcousticBeamData listElement = (AcousticBeamData)this._beamRecords[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Length of emitter system data - /// - [XmlElement(Type = typeof(byte), ElementName = "emitterSystemDataLength")] - public byte EmitterSystemDataLength - { - get - { - return this._emitterSystemDataLength; - } - - set - { - this._emitterSystemDataLength = value; - } - } - - /// - /// Gets or sets the Number of beams - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfBeams method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfBeams")] - public byte NumberOfBeams - { - get - { - return this._numberOfBeams; - } - - set - { - this._numberOfBeams = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(ushort), ElementName = "pad2")] - public ushort Pad2 - { - get - { - return this._pad2; - } - - set - { - this._pad2 = value; - } - } - - /// - /// Gets or sets the This field shall specify the system for a particular UA emitter. - /// - [XmlElement(Type = typeof(AcousticEmitterSystem), ElementName = "acousticEmitterSystem")] - public AcousticEmitterSystem AcousticEmitterSystem - { - get - { - return this._acousticEmitterSystem; - } - - set - { - this._acousticEmitterSystem = value; - } - } - - /// - /// Gets or sets the Represents the location wrt the entity - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "emitterLocation")] - public Vector3Float EmitterLocation - { - get - { - return this._emitterLocation; - } - - set - { - this._emitterLocation = value; - } - } - - /// - /// Gets the For each beam in numberOfBeams, an emitter system. This is not right--the beam records need to be at the end of the PDU, rather than attached to each system. - /// - [XmlElement(ElementName = "beamRecordsList", Type = typeof(List))] - public List BeamRecords - { - get - { - return this._beamRecords; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._emitterSystemDataLength); - dos.WriteUnsignedByte((byte)this._beamRecords.Count); - dos.WriteUnsignedShort((ushort)this._pad2); - this._acousticEmitterSystem.Marshal(dos); - this._emitterLocation.Marshal(dos); - - for (int idx = 0; idx < this._beamRecords.Count; idx++) - { - AcousticBeamData aAcousticBeamData = (AcousticBeamData)this._beamRecords[idx]; - aAcousticBeamData.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._emitterSystemDataLength = dis.ReadUnsignedByte(); - this._numberOfBeams = dis.ReadUnsignedByte(); - this._pad2 = dis.ReadUnsignedShort(); - this._acousticEmitterSystem.Unmarshal(dis); - this._emitterLocation.Unmarshal(dis); - - for (int idx = 0; idx < this.NumberOfBeams; idx++) - { - AcousticBeamData anX = new AcousticBeamData(); - anX.Unmarshal(dis); - this._beamRecords.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._emitterSystemDataLength.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._beamRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._acousticEmitterSystem.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._emitterLocation.Reflection(sb); - sb.AppendLine(""); - for (int idx = 0; idx < this._beamRecords.Count; idx++) - { - sb.AppendLine(""); - AcousticBeamData aAcousticBeamData = (AcousticBeamData)this._beamRecords[idx]; - aAcousticBeamData.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as AcousticEmitterSystemData; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(AcousticEmitterSystemData obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._emitterSystemDataLength != obj._emitterSystemDataLength) - { - ivarsEqual = false; - } - - if (this._numberOfBeams != obj._numberOfBeams) - { - ivarsEqual = false; - } - - if (this._pad2 != obj._pad2) - { - ivarsEqual = false; - } - - if (!this._acousticEmitterSystem.Equals(obj._acousticEmitterSystem)) - { - ivarsEqual = false; - } - - if (!this._emitterLocation.Equals(obj._emitterLocation)) - { - ivarsEqual = false; - } - - if (this._beamRecords.Count != obj._beamRecords.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._beamRecords.Count; idx++) - { - if (!this._beamRecords[idx].Equals(obj._beamRecords[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._emitterSystemDataLength.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfBeams.GetHashCode(); - result = GenerateHash(result) ^ this._pad2.GetHashCode(); - result = GenerateHash(result) ^ this._acousticEmitterSystem.GetHashCode(); - result = GenerateHash(result) ^ this._emitterLocation.GetHashCode(); - - if (this._beamRecords.Count > 0) - { - for (int idx = 0; idx < this._beamRecords.Count; idx++) - { - result = GenerateHash(result) ^ this._beamRecords[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Used in the UA pdu; ties together an emmitter and a location. This requires manual cleanup; the beam data should not be attached to each emitter system. + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(AcousticEmitterSystem))] + [XmlInclude(typeof(Vector3Float))] + [XmlInclude(typeof(AcousticBeamData))] + public partial class AcousticEmitterSystemData + { + /// + /// Length of emitter system data + /// + private byte _emitterSystemDataLength; + + /// + /// Number of beams + /// + private byte _numberOfBeams; + + /// + /// padding + /// + private ushort _pad2; + + /// + /// This field shall specify the system for a particular UA emitter. + /// + private AcousticEmitterSystem _acousticEmitterSystem = new AcousticEmitterSystem(); + + /// + /// Represents the location wrt the entity + /// + private Vector3Float _emitterLocation = new Vector3Float(); + + /// + /// For each beam in numberOfBeams, an emitter system. This is not right--the beam records need to be at the end of the PDU, rather than attached to each system. + /// + private List _beamRecords = new List(); + + /// + /// Initializes a new instance of the class. + /// + public AcousticEmitterSystemData() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(AcousticEmitterSystemData left, AcousticEmitterSystemData right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(AcousticEmitterSystemData left, AcousticEmitterSystemData right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._emitterSystemDataLength + marshalSize += 1; // this._numberOfBeams + marshalSize += 2; // this._pad2 + marshalSize += this._acousticEmitterSystem.GetMarshalledSize(); // this._acousticEmitterSystem + marshalSize += this._emitterLocation.GetMarshalledSize(); // this._emitterLocation + for (int idx = 0; idx < this._beamRecords.Count; idx++) + { + AcousticBeamData listElement = (AcousticBeamData)this._beamRecords[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Length of emitter system data + /// + [XmlElement(Type = typeof(byte), ElementName = "emitterSystemDataLength")] + public byte EmitterSystemDataLength + { + get + { + return this._emitterSystemDataLength; + } + + set + { + this._emitterSystemDataLength = value; + } + } + + /// + /// Gets or sets the Number of beams + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfBeams method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfBeams")] + public byte NumberOfBeams + { + get + { + return this._numberOfBeams; + } + + set + { + this._numberOfBeams = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(ushort), ElementName = "pad2")] + public ushort Pad2 + { + get + { + return this._pad2; + } + + set + { + this._pad2 = value; + } + } + + /// + /// Gets or sets the This field shall specify the system for a particular UA emitter. + /// + [XmlElement(Type = typeof(AcousticEmitterSystem), ElementName = "acousticEmitterSystem")] + public AcousticEmitterSystem AcousticEmitterSystem + { + get + { + return this._acousticEmitterSystem; + } + + set + { + this._acousticEmitterSystem = value; + } + } + + /// + /// Gets or sets the Represents the location wrt the entity + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "emitterLocation")] + public Vector3Float EmitterLocation + { + get + { + return this._emitterLocation; + } + + set + { + this._emitterLocation = value; + } + } + + /// + /// Gets the For each beam in numberOfBeams, an emitter system. This is not right--the beam records need to be at the end of the PDU, rather than attached to each system. + /// + [XmlElement(ElementName = "beamRecordsList", Type = typeof(List))] + public List BeamRecords + { + get + { + return this._beamRecords; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._emitterSystemDataLength); + dos.WriteUnsignedByte((byte)this._beamRecords.Count); + dos.WriteUnsignedShort((ushort)this._pad2); + this._acousticEmitterSystem.Marshal(dos); + this._emitterLocation.Marshal(dos); + + for (int idx = 0; idx < this._beamRecords.Count; idx++) + { + AcousticBeamData aAcousticBeamData = (AcousticBeamData)this._beamRecords[idx]; + aAcousticBeamData.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._emitterSystemDataLength = dis.ReadUnsignedByte(); + this._numberOfBeams = dis.ReadUnsignedByte(); + this._pad2 = dis.ReadUnsignedShort(); + this._acousticEmitterSystem.Unmarshal(dis); + this._emitterLocation.Unmarshal(dis); + + for (int idx = 0; idx < this.NumberOfBeams; idx++) + { + AcousticBeamData anX = new AcousticBeamData(); + anX.Unmarshal(dis); + this._beamRecords.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._emitterSystemDataLength.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._beamRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._acousticEmitterSystem.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._emitterLocation.Reflection(sb); + sb.AppendLine(""); + for (int idx = 0; idx < this._beamRecords.Count; idx++) + { + sb.AppendLine(""); + AcousticBeamData aAcousticBeamData = (AcousticBeamData)this._beamRecords[idx]; + aAcousticBeamData.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as AcousticEmitterSystemData; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(AcousticEmitterSystemData obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._emitterSystemDataLength != obj._emitterSystemDataLength) + { + ivarsEqual = false; + } + + if (this._numberOfBeams != obj._numberOfBeams) + { + ivarsEqual = false; + } + + if (this._pad2 != obj._pad2) + { + ivarsEqual = false; + } + + if (!this._acousticEmitterSystem.Equals(obj._acousticEmitterSystem)) + { + ivarsEqual = false; + } + + if (!this._emitterLocation.Equals(obj._emitterLocation)) + { + ivarsEqual = false; + } + + if (this._beamRecords.Count != obj._beamRecords.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._beamRecords.Count; idx++) + { + if (!this._beamRecords[idx].Equals(obj._beamRecords[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._emitterSystemDataLength.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfBeams.GetHashCode(); + result = GenerateHash(result) ^ this._pad2.GetHashCode(); + result = GenerateHash(result) ^ this._acousticEmitterSystem.GetHashCode(); + result = GenerateHash(result) ^ this._emitterLocation.GetHashCode(); + + if (this._beamRecords.Count > 0) + { + for (int idx = 0; idx < this._beamRecords.Count; idx++) + { + result = GenerateHash(result) ^ this._beamRecords[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ActionRequestPdu.cs b/Libs/CsharpDis6/Dis1998/Generated/ActionRequestPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/ActionRequestPdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/ActionRequestPdu.cs index d793ece..3ecc730 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ActionRequestPdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/ActionRequestPdu.cs @@ -1,548 +1,548 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.6.6. Request from simulation manager to an entity. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(FixedDatum))] - [XmlInclude(typeof(VariableDatum))] - public partial class ActionRequestPdu : SimulationManagementFamilyPdu, IEquatable - { - /// - /// Request ID that is unique - /// - private uint _requestID; - - /// - /// identifies the action being requested - /// - private uint _actionID; - - /// - /// Number of fixed datum records - /// - private uint _numberOfFixedDatumRecords; - - /// - /// Number of variable datum records - /// - private uint _numberOfVariableDatumRecords; - - /// - /// variable length list of fixed datums - /// - private List _fixedDatums = new List(); - - /// - /// variable length list of variable length datums - /// - private List _variableDatums = new List(); - - /// - /// Initializes a new instance of the class. - /// - public ActionRequestPdu() - { - PduType = (byte)16; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ActionRequestPdu left, ActionRequestPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ActionRequestPdu left, ActionRequestPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 4; // this._requestID - marshalSize += 4; // this._actionID - marshalSize += 4; // this._numberOfFixedDatumRecords - marshalSize += 4; // this._numberOfVariableDatumRecords - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - FixedDatum listElement = (FixedDatum)this._fixedDatums[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - VariableDatum listElement = (VariableDatum)this._variableDatums[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Request ID that is unique - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Gets or sets the identifies the action being requested - /// - [XmlElement(Type = typeof(uint), ElementName = "actionID")] - public uint ActionID - { - get - { - return this._actionID; - } - - set - { - this._actionID = value; - } - } - - /// - /// Gets or sets the Number of fixed datum records - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] - public uint NumberOfFixedDatumRecords - { - get - { - return this._numberOfFixedDatumRecords; - } - - set - { - this._numberOfFixedDatumRecords = value; - } - } - - /// - /// Gets or sets the Number of variable datum records - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] - public uint NumberOfVariableDatumRecords - { - get - { - return this._numberOfVariableDatumRecords; - } - - set - { - this._numberOfVariableDatumRecords = value; - } - } - - /// - /// Gets the variable length list of fixed datums - /// - [XmlElement(ElementName = "fixedDatumsList", Type = typeof(List))] - public List FixedDatums - { - get - { - return this._fixedDatums; - } - } - - /// - /// Gets the variable length list of variable length datums - /// - [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] - public List VariableDatums - { - get - { - return this._variableDatums; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._requestID); - dos.WriteUnsignedInt((uint)this._actionID); - dos.WriteUnsignedInt((uint)this._fixedDatums.Count); - dos.WriteUnsignedInt((uint)this._variableDatums.Count); - - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; - aFixedDatum.Marshal(dos); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; - aVariableDatum.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._requestID = dis.ReadUnsignedInt(); - this._actionID = dis.ReadUnsignedInt(); - this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); - this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); - - for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) - { - FixedDatum anX = new FixedDatum(); - anX.Unmarshal(dis); - this._fixedDatums.Add(anX); - } - - for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) - { - VariableDatum anX = new VariableDatum(); - anX.Unmarshal(dis); - this._variableDatums.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._actionID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fixedDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - sb.AppendLine(""); - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; - aFixedDatum.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - sb.AppendLine(""); - VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; - aVariableDatum.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ActionRequestPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ActionRequestPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - if (this._actionID != obj._actionID) - { - ivarsEqual = false; - } - - if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) - { - ivarsEqual = false; - } - - if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) - { - ivarsEqual = false; - } - - if (this._fixedDatums.Count != obj._fixedDatums.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - if (!this._fixedDatums[idx].Equals(obj._fixedDatums[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._variableDatums.Count != obj._variableDatums.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - result = GenerateHash(result) ^ this._actionID.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); - - if (this._fixedDatums.Count > 0) - { - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - result = GenerateHash(result) ^ this._fixedDatums[idx].GetHashCode(); - } - } - - if (this._variableDatums.Count > 0) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.6.6. Request from simulation manager to an entity. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(FixedDatum))] + [XmlInclude(typeof(VariableDatum))] + public partial class ActionRequestPdu : SimulationManagementFamilyPdu, IEquatable + { + /// + /// Request ID that is unique + /// + private uint _requestID; + + /// + /// identifies the action being requested + /// + private uint _actionID; + + /// + /// Number of fixed datum records + /// + private uint _numberOfFixedDatumRecords; + + /// + /// Number of variable datum records + /// + private uint _numberOfVariableDatumRecords; + + /// + /// variable length list of fixed datums + /// + private List _fixedDatums = new List(); + + /// + /// variable length list of variable length datums + /// + private List _variableDatums = new List(); + + /// + /// Initializes a new instance of the class. + /// + public ActionRequestPdu() + { + PduType = (byte)16; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ActionRequestPdu left, ActionRequestPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ActionRequestPdu left, ActionRequestPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 4; // this._requestID + marshalSize += 4; // this._actionID + marshalSize += 4; // this._numberOfFixedDatumRecords + marshalSize += 4; // this._numberOfVariableDatumRecords + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + FixedDatum listElement = (FixedDatum)this._fixedDatums[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + VariableDatum listElement = (VariableDatum)this._variableDatums[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Request ID that is unique + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Gets or sets the identifies the action being requested + /// + [XmlElement(Type = typeof(uint), ElementName = "actionID")] + public uint ActionID + { + get + { + return this._actionID; + } + + set + { + this._actionID = value; + } + } + + /// + /// Gets or sets the Number of fixed datum records + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] + public uint NumberOfFixedDatumRecords + { + get + { + return this._numberOfFixedDatumRecords; + } + + set + { + this._numberOfFixedDatumRecords = value; + } + } + + /// + /// Gets or sets the Number of variable datum records + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] + public uint NumberOfVariableDatumRecords + { + get + { + return this._numberOfVariableDatumRecords; + } + + set + { + this._numberOfVariableDatumRecords = value; + } + } + + /// + /// Gets the variable length list of fixed datums + /// + [XmlElement(ElementName = "fixedDatumsList", Type = typeof(List))] + public List FixedDatums + { + get + { + return this._fixedDatums; + } + } + + /// + /// Gets the variable length list of variable length datums + /// + [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] + public List VariableDatums + { + get + { + return this._variableDatums; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._requestID); + dos.WriteUnsignedInt((uint)this._actionID); + dos.WriteUnsignedInt((uint)this._fixedDatums.Count); + dos.WriteUnsignedInt((uint)this._variableDatums.Count); + + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; + aFixedDatum.Marshal(dos); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; + aVariableDatum.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._requestID = dis.ReadUnsignedInt(); + this._actionID = dis.ReadUnsignedInt(); + this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); + this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); + + for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) + { + FixedDatum anX = new FixedDatum(); + anX.Unmarshal(dis); + this._fixedDatums.Add(anX); + } + + for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) + { + VariableDatum anX = new VariableDatum(); + anX.Unmarshal(dis); + this._variableDatums.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._actionID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fixedDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + sb.AppendLine(""); + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; + aFixedDatum.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + sb.AppendLine(""); + VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; + aVariableDatum.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ActionRequestPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ActionRequestPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + if (this._actionID != obj._actionID) + { + ivarsEqual = false; + } + + if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) + { + ivarsEqual = false; + } + + if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) + { + ivarsEqual = false; + } + + if (this._fixedDatums.Count != obj._fixedDatums.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + if (!this._fixedDatums[idx].Equals(obj._fixedDatums[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._variableDatums.Count != obj._variableDatums.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + result = GenerateHash(result) ^ this._actionID.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); + + if (this._fixedDatums.Count > 0) + { + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + result = GenerateHash(result) ^ this._fixedDatums[idx].GetHashCode(); + } + } + + if (this._variableDatums.Count > 0) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ActionRequestReliablePdu.cs b/Libs/CsharpDis6/Dis1998/Generated/ActionRequestReliablePdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/ActionRequestReliablePdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/ActionRequestReliablePdu.cs index 089559e..83214d4 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ActionRequestReliablePdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/ActionRequestReliablePdu.cs @@ -1,644 +1,644 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.12.6: request from a simulation manager to a managed entity to perform a specified action. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(FixedDatum))] - [XmlInclude(typeof(VariableDatum))] - public partial class ActionRequestReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable - { - /// - /// level of reliability service used for this transaction - /// - private byte _requiredReliabilityService; - - /// - /// padding - /// - private ushort _pad1; - - /// - /// padding - /// - private byte _pad2; - - /// - /// request ID - /// - private uint _requestID; - - /// - /// request ID - /// - private uint _actionID; - - /// - /// Fixed datum record count - /// - private uint _numberOfFixedDatumRecords; - - /// - /// variable datum record count - /// - private uint _numberOfVariableDatumRecords; - - /// - /// Fixed datum records - /// - private List _fixedDatumRecords = new List(); - - /// - /// Variable datum records - /// - private List _variableDatumRecords = new List(); - - /// - /// Initializes a new instance of the class. - /// - public ActionRequestReliablePdu() - { - PduType = (byte)56; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ActionRequestReliablePdu left, ActionRequestReliablePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ActionRequestReliablePdu left, ActionRequestReliablePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 1; // this._requiredReliabilityService - marshalSize += 2; // this._pad1 - marshalSize += 1; // this._pad2 - marshalSize += 4; // this._requestID - marshalSize += 4; // this._actionID - marshalSize += 4; // this._numberOfFixedDatumRecords - marshalSize += 4; // this._numberOfVariableDatumRecords - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - FixedDatum listElement = (FixedDatum)this._fixedDatumRecords[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - VariableDatum listElement = (VariableDatum)this._variableDatumRecords[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the level of reliability service used for this transaction - /// - [XmlElement(Type = typeof(byte), ElementName = "requiredReliabilityService")] - public byte RequiredReliabilityService - { - get - { - return this._requiredReliabilityService; - } - - set - { - this._requiredReliabilityService = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(ushort), ElementName = "pad1")] - public ushort Pad1 - { - get - { - return this._pad1; - } - - set - { - this._pad1 = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "pad2")] - public byte Pad2 - { - get - { - return this._pad2; - } - - set - { - this._pad2 = value; - } - } - - /// - /// Gets or sets the request ID - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Gets or sets the request ID - /// - [XmlElement(Type = typeof(uint), ElementName = "actionID")] - public uint ActionID - { - get - { - return this._actionID; - } - - set - { - this._actionID = value; - } - } - - /// - /// Gets or sets the Fixed datum record count - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] - public uint NumberOfFixedDatumRecords - { - get - { - return this._numberOfFixedDatumRecords; - } - - set - { - this._numberOfFixedDatumRecords = value; - } - } - - /// - /// Gets or sets the variable datum record count - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] - public uint NumberOfVariableDatumRecords - { - get - { - return this._numberOfVariableDatumRecords; - } - - set - { - this._numberOfVariableDatumRecords = value; - } - } - - /// - /// Gets the Fixed datum records - /// - [XmlElement(ElementName = "fixedDatumRecordsList", Type = typeof(List))] - public List FixedDatumRecords - { - get - { - return this._fixedDatumRecords; - } - } - - /// - /// Gets the Variable datum records - /// - [XmlElement(ElementName = "variableDatumRecordsList", Type = typeof(List))] - public List VariableDatumRecords - { - get - { - return this._variableDatumRecords; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._requiredReliabilityService); - dos.WriteUnsignedShort((ushort)this._pad1); - dos.WriteUnsignedByte((byte)this._pad2); - dos.WriteUnsignedInt((uint)this._requestID); - dos.WriteUnsignedInt((uint)this._actionID); - dos.WriteUnsignedInt((uint)this._fixedDatumRecords.Count); - dos.WriteUnsignedInt((uint)this._variableDatumRecords.Count); - - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; - aFixedDatum.Marshal(dos); - } - - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; - aVariableDatum.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._requiredReliabilityService = dis.ReadUnsignedByte(); - this._pad1 = dis.ReadUnsignedShort(); - this._pad2 = dis.ReadUnsignedByte(); - this._requestID = dis.ReadUnsignedInt(); - this._actionID = dis.ReadUnsignedInt(); - this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); - this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); - - for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) - { - FixedDatum anX = new FixedDatum(); - anX.Unmarshal(dis); - this._fixedDatumRecords.Add(anX); - } - - for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) - { - VariableDatum anX = new VariableDatum(); - anX.Unmarshal(dis); - this._variableDatumRecords.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._requiredReliabilityService.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._actionID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fixedDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - sb.AppendLine(""); - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; - aFixedDatum.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - sb.AppendLine(""); - VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; - aVariableDatum.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ActionRequestReliablePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ActionRequestReliablePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._requiredReliabilityService != obj._requiredReliabilityService) - { - ivarsEqual = false; - } - - if (this._pad1 != obj._pad1) - { - ivarsEqual = false; - } - - if (this._pad2 != obj._pad2) - { - ivarsEqual = false; - } - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - if (this._actionID != obj._actionID) - { - ivarsEqual = false; - } - - if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) - { - ivarsEqual = false; - } - - if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) - { - ivarsEqual = false; - } - - if (this._fixedDatumRecords.Count != obj._fixedDatumRecords.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - if (!this._fixedDatumRecords[idx].Equals(obj._fixedDatumRecords[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._variableDatumRecords.Count != obj._variableDatumRecords.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - if (!this._variableDatumRecords[idx].Equals(obj._variableDatumRecords[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._requiredReliabilityService.GetHashCode(); - result = GenerateHash(result) ^ this._pad1.GetHashCode(); - result = GenerateHash(result) ^ this._pad2.GetHashCode(); - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - result = GenerateHash(result) ^ this._actionID.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); - - if (this._fixedDatumRecords.Count > 0) - { - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - result = GenerateHash(result) ^ this._fixedDatumRecords[idx].GetHashCode(); - } - } - - if (this._variableDatumRecords.Count > 0) - { - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - result = GenerateHash(result) ^ this._variableDatumRecords[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.12.6: request from a simulation manager to a managed entity to perform a specified action. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(FixedDatum))] + [XmlInclude(typeof(VariableDatum))] + public partial class ActionRequestReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable + { + /// + /// level of reliability service used for this transaction + /// + private byte _requiredReliabilityService; + + /// + /// padding + /// + private ushort _pad1; + + /// + /// padding + /// + private byte _pad2; + + /// + /// request ID + /// + private uint _requestID; + + /// + /// request ID + /// + private uint _actionID; + + /// + /// Fixed datum record count + /// + private uint _numberOfFixedDatumRecords; + + /// + /// variable datum record count + /// + private uint _numberOfVariableDatumRecords; + + /// + /// Fixed datum records + /// + private List _fixedDatumRecords = new List(); + + /// + /// Variable datum records + /// + private List _variableDatumRecords = new List(); + + /// + /// Initializes a new instance of the class. + /// + public ActionRequestReliablePdu() + { + PduType = (byte)56; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ActionRequestReliablePdu left, ActionRequestReliablePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ActionRequestReliablePdu left, ActionRequestReliablePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 1; // this._requiredReliabilityService + marshalSize += 2; // this._pad1 + marshalSize += 1; // this._pad2 + marshalSize += 4; // this._requestID + marshalSize += 4; // this._actionID + marshalSize += 4; // this._numberOfFixedDatumRecords + marshalSize += 4; // this._numberOfVariableDatumRecords + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + FixedDatum listElement = (FixedDatum)this._fixedDatumRecords[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + VariableDatum listElement = (VariableDatum)this._variableDatumRecords[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the level of reliability service used for this transaction + /// + [XmlElement(Type = typeof(byte), ElementName = "requiredReliabilityService")] + public byte RequiredReliabilityService + { + get + { + return this._requiredReliabilityService; + } + + set + { + this._requiredReliabilityService = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(ushort), ElementName = "pad1")] + public ushort Pad1 + { + get + { + return this._pad1; + } + + set + { + this._pad1 = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "pad2")] + public byte Pad2 + { + get + { + return this._pad2; + } + + set + { + this._pad2 = value; + } + } + + /// + /// Gets or sets the request ID + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Gets or sets the request ID + /// + [XmlElement(Type = typeof(uint), ElementName = "actionID")] + public uint ActionID + { + get + { + return this._actionID; + } + + set + { + this._actionID = value; + } + } + + /// + /// Gets or sets the Fixed datum record count + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] + public uint NumberOfFixedDatumRecords + { + get + { + return this._numberOfFixedDatumRecords; + } + + set + { + this._numberOfFixedDatumRecords = value; + } + } + + /// + /// Gets or sets the variable datum record count + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] + public uint NumberOfVariableDatumRecords + { + get + { + return this._numberOfVariableDatumRecords; + } + + set + { + this._numberOfVariableDatumRecords = value; + } + } + + /// + /// Gets the Fixed datum records + /// + [XmlElement(ElementName = "fixedDatumRecordsList", Type = typeof(List))] + public List FixedDatumRecords + { + get + { + return this._fixedDatumRecords; + } + } + + /// + /// Gets the Variable datum records + /// + [XmlElement(ElementName = "variableDatumRecordsList", Type = typeof(List))] + public List VariableDatumRecords + { + get + { + return this._variableDatumRecords; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._requiredReliabilityService); + dos.WriteUnsignedShort((ushort)this._pad1); + dos.WriteUnsignedByte((byte)this._pad2); + dos.WriteUnsignedInt((uint)this._requestID); + dos.WriteUnsignedInt((uint)this._actionID); + dos.WriteUnsignedInt((uint)this._fixedDatumRecords.Count); + dos.WriteUnsignedInt((uint)this._variableDatumRecords.Count); + + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; + aFixedDatum.Marshal(dos); + } + + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; + aVariableDatum.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._requiredReliabilityService = dis.ReadUnsignedByte(); + this._pad1 = dis.ReadUnsignedShort(); + this._pad2 = dis.ReadUnsignedByte(); + this._requestID = dis.ReadUnsignedInt(); + this._actionID = dis.ReadUnsignedInt(); + this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); + this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); + + for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) + { + FixedDatum anX = new FixedDatum(); + anX.Unmarshal(dis); + this._fixedDatumRecords.Add(anX); + } + + for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) + { + VariableDatum anX = new VariableDatum(); + anX.Unmarshal(dis); + this._variableDatumRecords.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._requiredReliabilityService.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._actionID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fixedDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + sb.AppendLine(""); + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; + aFixedDatum.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + sb.AppendLine(""); + VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; + aVariableDatum.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ActionRequestReliablePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ActionRequestReliablePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._requiredReliabilityService != obj._requiredReliabilityService) + { + ivarsEqual = false; + } + + if (this._pad1 != obj._pad1) + { + ivarsEqual = false; + } + + if (this._pad2 != obj._pad2) + { + ivarsEqual = false; + } + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + if (this._actionID != obj._actionID) + { + ivarsEqual = false; + } + + if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) + { + ivarsEqual = false; + } + + if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) + { + ivarsEqual = false; + } + + if (this._fixedDatumRecords.Count != obj._fixedDatumRecords.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + if (!this._fixedDatumRecords[idx].Equals(obj._fixedDatumRecords[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._variableDatumRecords.Count != obj._variableDatumRecords.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + if (!this._variableDatumRecords[idx].Equals(obj._variableDatumRecords[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._requiredReliabilityService.GetHashCode(); + result = GenerateHash(result) ^ this._pad1.GetHashCode(); + result = GenerateHash(result) ^ this._pad2.GetHashCode(); + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + result = GenerateHash(result) ^ this._actionID.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); + + if (this._fixedDatumRecords.Count > 0) + { + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + result = GenerateHash(result) ^ this._fixedDatumRecords[idx].GetHashCode(); + } + } + + if (this._variableDatumRecords.Count > 0) + { + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + result = GenerateHash(result) ^ this._variableDatumRecords[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ActionResponsePdu.cs b/Libs/CsharpDis6/Dis1998/Generated/ActionResponsePdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/ActionResponsePdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/ActionResponsePdu.cs index ea70bfa..1307a23 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ActionResponsePdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/ActionResponsePdu.cs @@ -1,548 +1,548 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.6.7. response to an action request PDU. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(FixedDatum))] - [XmlInclude(typeof(VariableDatum))] - public partial class ActionResponsePdu : SimulationManagementFamilyPdu, IEquatable - { - /// - /// Request ID that is unique - /// - private uint _requestID; - - /// - /// Status of response - /// - private uint _requestStatus; - - /// - /// Number of fixed datum records - /// - private uint _numberOfFixedDatumRecords; - - /// - /// Number of variable datum records - /// - private uint _numberOfVariableDatumRecords; - - /// - /// variable length list of fixed datums - /// - private List _fixedDatums = new List(); - - /// - /// variable length list of variable length datums - /// - private List _variableDatums = new List(); - - /// - /// Initializes a new instance of the class. - /// - public ActionResponsePdu() - { - PduType = (byte)17; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ActionResponsePdu left, ActionResponsePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ActionResponsePdu left, ActionResponsePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 4; // this._requestID - marshalSize += 4; // this._requestStatus - marshalSize += 4; // this._numberOfFixedDatumRecords - marshalSize += 4; // this._numberOfVariableDatumRecords - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - FixedDatum listElement = (FixedDatum)this._fixedDatums[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - VariableDatum listElement = (VariableDatum)this._variableDatums[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Request ID that is unique - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Gets or sets the Status of response - /// - [XmlElement(Type = typeof(uint), ElementName = "requestStatus")] - public uint RequestStatus - { - get - { - return this._requestStatus; - } - - set - { - this._requestStatus = value; - } - } - - /// - /// Gets or sets the Number of fixed datum records - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] - public uint NumberOfFixedDatumRecords - { - get - { - return this._numberOfFixedDatumRecords; - } - - set - { - this._numberOfFixedDatumRecords = value; - } - } - - /// - /// Gets or sets the Number of variable datum records - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] - public uint NumberOfVariableDatumRecords - { - get - { - return this._numberOfVariableDatumRecords; - } - - set - { - this._numberOfVariableDatumRecords = value; - } - } - - /// - /// Gets the variable length list of fixed datums - /// - [XmlElement(ElementName = "fixedDatumsList", Type = typeof(List))] - public List FixedDatums - { - get - { - return this._fixedDatums; - } - } - - /// - /// Gets the variable length list of variable length datums - /// - [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] - public List VariableDatums - { - get - { - return this._variableDatums; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._requestID); - dos.WriteUnsignedInt((uint)this._requestStatus); - dos.WriteUnsignedInt((uint)this._fixedDatums.Count); - dos.WriteUnsignedInt((uint)this._variableDatums.Count); - - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; - aFixedDatum.Marshal(dos); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; - aVariableDatum.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._requestID = dis.ReadUnsignedInt(); - this._requestStatus = dis.ReadUnsignedInt(); - this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); - this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); - - for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) - { - FixedDatum anX = new FixedDatum(); - anX.Unmarshal(dis); - this._fixedDatums.Add(anX); - } - - for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) - { - VariableDatum anX = new VariableDatum(); - anX.Unmarshal(dis); - this._variableDatums.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._requestStatus.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fixedDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - sb.AppendLine(""); - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; - aFixedDatum.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - sb.AppendLine(""); - VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; - aVariableDatum.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ActionResponsePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ActionResponsePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - if (this._requestStatus != obj._requestStatus) - { - ivarsEqual = false; - } - - if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) - { - ivarsEqual = false; - } - - if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) - { - ivarsEqual = false; - } - - if (this._fixedDatums.Count != obj._fixedDatums.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - if (!this._fixedDatums[idx].Equals(obj._fixedDatums[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._variableDatums.Count != obj._variableDatums.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - result = GenerateHash(result) ^ this._requestStatus.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); - - if (this._fixedDatums.Count > 0) - { - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - result = GenerateHash(result) ^ this._fixedDatums[idx].GetHashCode(); - } - } - - if (this._variableDatums.Count > 0) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.6.7. response to an action request PDU. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(FixedDatum))] + [XmlInclude(typeof(VariableDatum))] + public partial class ActionResponsePdu : SimulationManagementFamilyPdu, IEquatable + { + /// + /// Request ID that is unique + /// + private uint _requestID; + + /// + /// Status of response + /// + private uint _requestStatus; + + /// + /// Number of fixed datum records + /// + private uint _numberOfFixedDatumRecords; + + /// + /// Number of variable datum records + /// + private uint _numberOfVariableDatumRecords; + + /// + /// variable length list of fixed datums + /// + private List _fixedDatums = new List(); + + /// + /// variable length list of variable length datums + /// + private List _variableDatums = new List(); + + /// + /// Initializes a new instance of the class. + /// + public ActionResponsePdu() + { + PduType = (byte)17; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ActionResponsePdu left, ActionResponsePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ActionResponsePdu left, ActionResponsePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 4; // this._requestID + marshalSize += 4; // this._requestStatus + marshalSize += 4; // this._numberOfFixedDatumRecords + marshalSize += 4; // this._numberOfVariableDatumRecords + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + FixedDatum listElement = (FixedDatum)this._fixedDatums[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + VariableDatum listElement = (VariableDatum)this._variableDatums[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Request ID that is unique + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Gets or sets the Status of response + /// + [XmlElement(Type = typeof(uint), ElementName = "requestStatus")] + public uint RequestStatus + { + get + { + return this._requestStatus; + } + + set + { + this._requestStatus = value; + } + } + + /// + /// Gets or sets the Number of fixed datum records + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] + public uint NumberOfFixedDatumRecords + { + get + { + return this._numberOfFixedDatumRecords; + } + + set + { + this._numberOfFixedDatumRecords = value; + } + } + + /// + /// Gets or sets the Number of variable datum records + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] + public uint NumberOfVariableDatumRecords + { + get + { + return this._numberOfVariableDatumRecords; + } + + set + { + this._numberOfVariableDatumRecords = value; + } + } + + /// + /// Gets the variable length list of fixed datums + /// + [XmlElement(ElementName = "fixedDatumsList", Type = typeof(List))] + public List FixedDatums + { + get + { + return this._fixedDatums; + } + } + + /// + /// Gets the variable length list of variable length datums + /// + [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] + public List VariableDatums + { + get + { + return this._variableDatums; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._requestID); + dos.WriteUnsignedInt((uint)this._requestStatus); + dos.WriteUnsignedInt((uint)this._fixedDatums.Count); + dos.WriteUnsignedInt((uint)this._variableDatums.Count); + + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; + aFixedDatum.Marshal(dos); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; + aVariableDatum.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._requestID = dis.ReadUnsignedInt(); + this._requestStatus = dis.ReadUnsignedInt(); + this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); + this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); + + for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) + { + FixedDatum anX = new FixedDatum(); + anX.Unmarshal(dis); + this._fixedDatums.Add(anX); + } + + for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) + { + VariableDatum anX = new VariableDatum(); + anX.Unmarshal(dis); + this._variableDatums.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._requestStatus.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fixedDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + sb.AppendLine(""); + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; + aFixedDatum.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + sb.AppendLine(""); + VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; + aVariableDatum.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ActionResponsePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ActionResponsePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + if (this._requestStatus != obj._requestStatus) + { + ivarsEqual = false; + } + + if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) + { + ivarsEqual = false; + } + + if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) + { + ivarsEqual = false; + } + + if (this._fixedDatums.Count != obj._fixedDatums.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + if (!this._fixedDatums[idx].Equals(obj._fixedDatums[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._variableDatums.Count != obj._variableDatums.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + result = GenerateHash(result) ^ this._requestStatus.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); + + if (this._fixedDatums.Count > 0) + { + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + result = GenerateHash(result) ^ this._fixedDatums[idx].GetHashCode(); + } + } + + if (this._variableDatums.Count > 0) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ActionResponseReliablePdu.cs b/Libs/CsharpDis6/Dis1998/Generated/ActionResponseReliablePdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/ActionResponseReliablePdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/ActionResponseReliablePdu.cs index 6686d5b..3e77978 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ActionResponseReliablePdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/ActionResponseReliablePdu.cs @@ -1,548 +1,548 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.12.7: Response from an entity to an action request PDU. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(FixedDatum))] - [XmlInclude(typeof(VariableDatum))] - public partial class ActionResponseReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable - { - /// - /// request ID - /// - private uint _requestID; - - /// - /// status of response - /// - private uint _responseStatus; - - /// - /// Fixed datum record count - /// - private uint _numberOfFixedDatumRecords; - - /// - /// variable datum record count - /// - private uint _numberOfVariableDatumRecords; - - /// - /// Fixed datum records - /// - private List _fixedDatumRecords = new List(); - - /// - /// Variable datum records - /// - private List _variableDatumRecords = new List(); - - /// - /// Initializes a new instance of the class. - /// - public ActionResponseReliablePdu() - { - PduType = (byte)57; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ActionResponseReliablePdu left, ActionResponseReliablePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ActionResponseReliablePdu left, ActionResponseReliablePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 4; // this._requestID - marshalSize += 4; // this._responseStatus - marshalSize += 4; // this._numberOfFixedDatumRecords - marshalSize += 4; // this._numberOfVariableDatumRecords - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - FixedDatum listElement = (FixedDatum)this._fixedDatumRecords[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - VariableDatum listElement = (VariableDatum)this._variableDatumRecords[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the request ID - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Gets or sets the status of response - /// - [XmlElement(Type = typeof(uint), ElementName = "responseStatus")] - public uint ResponseStatus - { - get - { - return this._responseStatus; - } - - set - { - this._responseStatus = value; - } - } - - /// - /// Gets or sets the Fixed datum record count - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] - public uint NumberOfFixedDatumRecords - { - get - { - return this._numberOfFixedDatumRecords; - } - - set - { - this._numberOfFixedDatumRecords = value; - } - } - - /// - /// Gets or sets the variable datum record count - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] - public uint NumberOfVariableDatumRecords - { - get - { - return this._numberOfVariableDatumRecords; - } - - set - { - this._numberOfVariableDatumRecords = value; - } - } - - /// - /// Gets the Fixed datum records - /// - [XmlElement(ElementName = "fixedDatumRecordsList", Type = typeof(List))] - public List FixedDatumRecords - { - get - { - return this._fixedDatumRecords; - } - } - - /// - /// Gets the Variable datum records - /// - [XmlElement(ElementName = "variableDatumRecordsList", Type = typeof(List))] - public List VariableDatumRecords - { - get - { - return this._variableDatumRecords; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._requestID); - dos.WriteUnsignedInt((uint)this._responseStatus); - dos.WriteUnsignedInt((uint)this._fixedDatumRecords.Count); - dos.WriteUnsignedInt((uint)this._variableDatumRecords.Count); - - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; - aFixedDatum.Marshal(dos); - } - - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; - aVariableDatum.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._requestID = dis.ReadUnsignedInt(); - this._responseStatus = dis.ReadUnsignedInt(); - this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); - this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); - - for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) - { - FixedDatum anX = new FixedDatum(); - anX.Unmarshal(dis); - this._fixedDatumRecords.Add(anX); - } - - for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) - { - VariableDatum anX = new VariableDatum(); - anX.Unmarshal(dis); - this._variableDatumRecords.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._responseStatus.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fixedDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - sb.AppendLine(""); - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; - aFixedDatum.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - sb.AppendLine(""); - VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; - aVariableDatum.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ActionResponseReliablePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ActionResponseReliablePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - if (this._responseStatus != obj._responseStatus) - { - ivarsEqual = false; - } - - if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) - { - ivarsEqual = false; - } - - if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) - { - ivarsEqual = false; - } - - if (this._fixedDatumRecords.Count != obj._fixedDatumRecords.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - if (!this._fixedDatumRecords[idx].Equals(obj._fixedDatumRecords[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._variableDatumRecords.Count != obj._variableDatumRecords.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - if (!this._variableDatumRecords[idx].Equals(obj._variableDatumRecords[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - result = GenerateHash(result) ^ this._responseStatus.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); - - if (this._fixedDatumRecords.Count > 0) - { - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - result = GenerateHash(result) ^ this._fixedDatumRecords[idx].GetHashCode(); - } - } - - if (this._variableDatumRecords.Count > 0) - { - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - result = GenerateHash(result) ^ this._variableDatumRecords[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.12.7: Response from an entity to an action request PDU. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(FixedDatum))] + [XmlInclude(typeof(VariableDatum))] + public partial class ActionResponseReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable + { + /// + /// request ID + /// + private uint _requestID; + + /// + /// status of response + /// + private uint _responseStatus; + + /// + /// Fixed datum record count + /// + private uint _numberOfFixedDatumRecords; + + /// + /// variable datum record count + /// + private uint _numberOfVariableDatumRecords; + + /// + /// Fixed datum records + /// + private List _fixedDatumRecords = new List(); + + /// + /// Variable datum records + /// + private List _variableDatumRecords = new List(); + + /// + /// Initializes a new instance of the class. + /// + public ActionResponseReliablePdu() + { + PduType = (byte)57; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ActionResponseReliablePdu left, ActionResponseReliablePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ActionResponseReliablePdu left, ActionResponseReliablePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 4; // this._requestID + marshalSize += 4; // this._responseStatus + marshalSize += 4; // this._numberOfFixedDatumRecords + marshalSize += 4; // this._numberOfVariableDatumRecords + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + FixedDatum listElement = (FixedDatum)this._fixedDatumRecords[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + VariableDatum listElement = (VariableDatum)this._variableDatumRecords[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the request ID + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Gets or sets the status of response + /// + [XmlElement(Type = typeof(uint), ElementName = "responseStatus")] + public uint ResponseStatus + { + get + { + return this._responseStatus; + } + + set + { + this._responseStatus = value; + } + } + + /// + /// Gets or sets the Fixed datum record count + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] + public uint NumberOfFixedDatumRecords + { + get + { + return this._numberOfFixedDatumRecords; + } + + set + { + this._numberOfFixedDatumRecords = value; + } + } + + /// + /// Gets or sets the variable datum record count + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] + public uint NumberOfVariableDatumRecords + { + get + { + return this._numberOfVariableDatumRecords; + } + + set + { + this._numberOfVariableDatumRecords = value; + } + } + + /// + /// Gets the Fixed datum records + /// + [XmlElement(ElementName = "fixedDatumRecordsList", Type = typeof(List))] + public List FixedDatumRecords + { + get + { + return this._fixedDatumRecords; + } + } + + /// + /// Gets the Variable datum records + /// + [XmlElement(ElementName = "variableDatumRecordsList", Type = typeof(List))] + public List VariableDatumRecords + { + get + { + return this._variableDatumRecords; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._requestID); + dos.WriteUnsignedInt((uint)this._responseStatus); + dos.WriteUnsignedInt((uint)this._fixedDatumRecords.Count); + dos.WriteUnsignedInt((uint)this._variableDatumRecords.Count); + + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; + aFixedDatum.Marshal(dos); + } + + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; + aVariableDatum.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._requestID = dis.ReadUnsignedInt(); + this._responseStatus = dis.ReadUnsignedInt(); + this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); + this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); + + for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) + { + FixedDatum anX = new FixedDatum(); + anX.Unmarshal(dis); + this._fixedDatumRecords.Add(anX); + } + + for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) + { + VariableDatum anX = new VariableDatum(); + anX.Unmarshal(dis); + this._variableDatumRecords.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._responseStatus.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fixedDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + sb.AppendLine(""); + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; + aFixedDatum.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + sb.AppendLine(""); + VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; + aVariableDatum.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ActionResponseReliablePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ActionResponseReliablePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + if (this._responseStatus != obj._responseStatus) + { + ivarsEqual = false; + } + + if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) + { + ivarsEqual = false; + } + + if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) + { + ivarsEqual = false; + } + + if (this._fixedDatumRecords.Count != obj._fixedDatumRecords.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + if (!this._fixedDatumRecords[idx].Equals(obj._fixedDatumRecords[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._variableDatumRecords.Count != obj._variableDatumRecords.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + if (!this._variableDatumRecords[idx].Equals(obj._variableDatumRecords[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + result = GenerateHash(result) ^ this._responseStatus.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); + + if (this._fixedDatumRecords.Count > 0) + { + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + result = GenerateHash(result) ^ this._fixedDatumRecords[idx].GetHashCode(); + } + } + + if (this._variableDatumRecords.Count > 0) + { + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + result = GenerateHash(result) ^ this._variableDatumRecords[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/AggregateID.cs b/Libs/CsharpDis6/Dis1998/Generated/AggregateID.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/AggregateID.cs rename to Libs/CsharpDis6/Dis1998/Generated/AggregateID.cs index 25ffbc1..c0296c6 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/AggregateID.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/AggregateID.cs @@ -1,364 +1,364 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.2.36. Each agregate in a given simulation app is given an aggregate identifier number unique for all other aggregates in that app and in that exercise. The id is valid for the duration of the the exercise. - /// - [Serializable] - [XmlRoot] - public partial class AggregateID - { - /// - /// The site ID - /// - private ushort _site; - - /// - /// The application ID - /// - private ushort _application; - - /// - /// the aggregate ID - /// - private ushort _aggregateID; - - /// - /// Initializes a new instance of the class. - /// - public AggregateID() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(AggregateID left, AggregateID right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(AggregateID left, AggregateID right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 2; // this._site - marshalSize += 2; // this._application - marshalSize += 2; // this._aggregateID - return marshalSize; - } - - /// - /// Gets or sets the The site ID - /// - [XmlElement(Type = typeof(ushort), ElementName = "site")] - public ushort Site - { - get - { - return this._site; - } - - set - { - this._site = value; - } - } - - /// - /// Gets or sets the The application ID - /// - [XmlElement(Type = typeof(ushort), ElementName = "application")] - public ushort Application - { - get - { - return this._application; - } - - set - { - this._application = value; - } - } - - /// - /// Gets or sets the the aggregate ID - /// - [XmlElement(Type = typeof(ushort), ElementName = "aggregateID")] - public ushort AggregateID_ - { - get - { - return this._aggregateID; - } - - set - { - this._aggregateID = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._site); - dos.WriteUnsignedShort((ushort)this._application); - dos.WriteUnsignedShort((ushort)this._aggregateID); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._site = dis.ReadUnsignedShort(); - this._application = dis.ReadUnsignedShort(); - this._aggregateID = dis.ReadUnsignedShort(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._site.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._application.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._aggregateID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as AggregateID; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(AggregateID obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._site != obj._site) - { - ivarsEqual = false; - } - - if (this._application != obj._application) - { - ivarsEqual = false; - } - - if (this._aggregateID != obj._aggregateID) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._site.GetHashCode(); - result = GenerateHash(result) ^ this._application.GetHashCode(); - result = GenerateHash(result) ^ this._aggregateID.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.2.36. Each agregate in a given simulation app is given an aggregate identifier number unique for all other aggregates in that app and in that exercise. The id is valid for the duration of the the exercise. + /// + [Serializable] + [XmlRoot] + public partial class AggregateID + { + /// + /// The site ID + /// + private ushort _site; + + /// + /// The application ID + /// + private ushort _application; + + /// + /// the aggregate ID + /// + private ushort _aggregateID; + + /// + /// Initializes a new instance of the class. + /// + public AggregateID() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(AggregateID left, AggregateID right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(AggregateID left, AggregateID right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 2; // this._site + marshalSize += 2; // this._application + marshalSize += 2; // this._aggregateID + return marshalSize; + } + + /// + /// Gets or sets the The site ID + /// + [XmlElement(Type = typeof(ushort), ElementName = "site")] + public ushort Site + { + get + { + return this._site; + } + + set + { + this._site = value; + } + } + + /// + /// Gets or sets the The application ID + /// + [XmlElement(Type = typeof(ushort), ElementName = "application")] + public ushort Application + { + get + { + return this._application; + } + + set + { + this._application = value; + } + } + + /// + /// Gets or sets the the aggregate ID + /// + [XmlElement(Type = typeof(ushort), ElementName = "aggregateID")] + public ushort AggregateID_ + { + get + { + return this._aggregateID; + } + + set + { + this._aggregateID = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._site); + dos.WriteUnsignedShort((ushort)this._application); + dos.WriteUnsignedShort((ushort)this._aggregateID); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._site = dis.ReadUnsignedShort(); + this._application = dis.ReadUnsignedShort(); + this._aggregateID = dis.ReadUnsignedShort(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._site.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._application.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._aggregateID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as AggregateID; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(AggregateID obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._site != obj._site) + { + ivarsEqual = false; + } + + if (this._application != obj._application) + { + ivarsEqual = false; + } + + if (this._aggregateID != obj._aggregateID) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._site.GetHashCode(); + result = GenerateHash(result) ^ this._application.GetHashCode(); + result = GenerateHash(result) ^ this._aggregateID.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/AggregateMarking.cs b/Libs/CsharpDis6/Dis1998/Generated/AggregateMarking.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/AggregateMarking.cs rename to Libs/CsharpDis6/Dis1998/Generated/AggregateMarking.cs index ee45e0f..5c9c56c 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/AggregateMarking.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/AggregateMarking.cs @@ -1,359 +1,359 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.2.37. Specifies the character set used inthe first byte, followed by up to 31 characters of text data. - /// - [Serializable] - [XmlRoot] - public partial class AggregateMarking - { - /// - /// The character set - /// - private byte _characterSet; - - /// - /// The characters - /// - private byte[] _characters = new byte[31]; - - /// - /// Initializes a new instance of the class. - /// - public AggregateMarking() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(AggregateMarking left, AggregateMarking right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(AggregateMarking left, AggregateMarking right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._characterSet - marshalSize += 31 * 1; // _characters - return marshalSize; - } - - /// - /// Gets or sets the The character set - /// - [XmlElement(Type = typeof(byte), ElementName = "characterSet")] - public byte CharacterSet - { - get - { - return this._characterSet; - } - - set - { - this._characterSet = value; - } - } - - /// - /// Gets or sets the The characters - /// - [XmlArray(ElementName = "characters")] - public byte[] Characters - { - get - { - return this._characters; - } - - set - { - this._characters = value; - } -} - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._characterSet); - - for (int idx = 0; idx < this._characters.Length; idx++) - { - dos.WriteByte(this._characters[idx]); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._characterSet = dis.ReadUnsignedByte(); - - for (int idx = 0; idx < this._characters.Length; idx++) - { - this._characters[idx] = dis.ReadByte(); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._characterSet.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._characters.Length; idx++) - { - sb.AppendLine("" + this._characters[idx] + ""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as AggregateMarking; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(AggregateMarking obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._characterSet != obj._characterSet) - { - ivarsEqual = false; - } - - if (obj._characters.Length != 31) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < 31; idx++) - { - if (this._characters[idx] != obj._characters[idx]) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._characterSet.GetHashCode(); - - for (int idx = 0; idx < 31; idx++) - { - result = GenerateHash(result) ^ this._characters[idx].GetHashCode(); - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.2.37. Specifies the character set used inthe first byte, followed by up to 31 characters of text data. + /// + [Serializable] + [XmlRoot] + public partial class AggregateMarking + { + /// + /// The character set + /// + private byte _characterSet; + + /// + /// The characters + /// + private byte[] _characters = new byte[31]; + + /// + /// Initializes a new instance of the class. + /// + public AggregateMarking() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(AggregateMarking left, AggregateMarking right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(AggregateMarking left, AggregateMarking right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._characterSet + marshalSize += 31 * 1; // _characters + return marshalSize; + } + + /// + /// Gets or sets the The character set + /// + [XmlElement(Type = typeof(byte), ElementName = "characterSet")] + public byte CharacterSet + { + get + { + return this._characterSet; + } + + set + { + this._characterSet = value; + } + } + + /// + /// Gets or sets the The characters + /// + [XmlArray(ElementName = "characters")] + public byte[] Characters + { + get + { + return this._characters; + } + + set + { + this._characters = value; + } +} + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._characterSet); + + for (int idx = 0; idx < this._characters.Length; idx++) + { + dos.WriteByte(this._characters[idx]); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._characterSet = dis.ReadUnsignedByte(); + + for (int idx = 0; idx < this._characters.Length; idx++) + { + this._characters[idx] = dis.ReadByte(); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._characterSet.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._characters.Length; idx++) + { + sb.AppendLine("" + this._characters[idx] + ""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as AggregateMarking; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(AggregateMarking obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._characterSet != obj._characterSet) + { + ivarsEqual = false; + } + + if (obj._characters.Length != 31) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < 31; idx++) + { + if (this._characters[idx] != obj._characters[idx]) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._characterSet.GetHashCode(); + + for (int idx = 0; idx < 31; idx++) + { + result = GenerateHash(result) ^ this._characters[idx].GetHashCode(); + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/AggregateStatePdu.cs b/Libs/CsharpDis6/Dis1998/Generated/AggregateStatePdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/AggregateStatePdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/AggregateStatePdu.cs index b438dc6..49a4497 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/AggregateStatePdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/AggregateStatePdu.cs @@ -1,1180 +1,1180 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.9.1 informationa bout aggregating entities anc communicating information about the aggregated entities. requires manual intervention to fix the padding between entityID lists and silent aggregate sysem lists--this padding is dependent on how many entityIDs there are, and needs to be on a 32 bit word boundary. UNFINISHED - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(EntityType))] - [XmlInclude(typeof(AggregateMarking))] - [XmlInclude(typeof(Vector3Float))] - [XmlInclude(typeof(Orientation))] - [XmlInclude(typeof(Vector3Double))] - [XmlInclude(typeof(AggregateID))] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(EntityType))] - [XmlInclude(typeof(EntityType))] - [XmlInclude(typeof(VariableDatum))] - public partial class AggregateStatePdu : EntityManagementFamilyPdu, IEquatable - { - /// - /// ID of aggregated entities - /// - private EntityID _aggregateID = new EntityID(); - - /// - /// force ID - /// - private byte _forceID; - - /// - /// state of aggregate - /// - private byte _aggregateState; - - /// - /// entity type of the aggregated entities - /// - private EntityType _aggregateType = new EntityType(); - - /// - /// formation of aggregated entities - /// - private uint _formation; - - /// - /// marking for aggregate; first char is charset type, rest is char data - /// - private AggregateMarking _aggregateMarking = new AggregateMarking(); - - /// - /// dimensions of bounding box for the aggregated entities, origin at the center of mass - /// - private Vector3Float _dimensions = new Vector3Float(); - - /// - /// orientation of the bounding box - /// - private Orientation _orientation = new Orientation(); - - /// - /// center of mass of the aggregation - /// - private Vector3Double _centerOfMass = new Vector3Double(); - - /// - /// velocity of aggregation - /// - private Vector3Float _velocity = new Vector3Float(); - - /// - /// number of aggregates - /// - private ushort _numberOfDisAggregates; - - /// - /// number of entities - /// - private ushort _numberOfDisEntities; - - /// - /// number of silent aggregate types - /// - private ushort _numberOfSilentAggregateTypes; - - /// - /// number of silent entity types - /// - private ushort _numberOfSilentEntityTypes; - - /// - /// aggregates list - /// - private List _aggregateIDList = new List(); - - /// - /// entity ID list - /// - private List _entityIDList = new List(); - - /// - /// ^^^padding to put the start of the next list on a 32 bit boundary. This needs to be fixed - /// - private byte _pad2; - - /// - /// silent entity types - /// - private List _silentAggregateSystemList = new List(); - - /// - /// silent entity types - /// - private List _silentEntitySystemList = new List(); - - /// - /// number of variable datum records - /// - private uint _numberOfVariableDatumRecords; - - /// - /// variableDatums - /// - private List _variableDatumList = new List(); - - /// - /// Initializes a new instance of the class. - /// - public AggregateStatePdu() - { - PduType = (byte)33; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(AggregateStatePdu left, AggregateStatePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(AggregateStatePdu left, AggregateStatePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._aggregateID.GetMarshalledSize(); // this._aggregateID - marshalSize += 1; // this._forceID - marshalSize += 1; // this._aggregateState - marshalSize += this._aggregateType.GetMarshalledSize(); // this._aggregateType - marshalSize += 4; // this._formation - marshalSize += this._aggregateMarking.GetMarshalledSize(); // this._aggregateMarking - marshalSize += this._dimensions.GetMarshalledSize(); // this._dimensions - marshalSize += this._orientation.GetMarshalledSize(); // this._orientation - marshalSize += this._centerOfMass.GetMarshalledSize(); // this._centerOfMass - marshalSize += this._velocity.GetMarshalledSize(); // this._velocity - marshalSize += 2; // this._numberOfDisAggregates - marshalSize += 2; // this._numberOfDisEntities - marshalSize += 2; // this._numberOfSilentAggregateTypes - marshalSize += 2; // this._numberOfSilentEntityTypes - for (int idx = 0; idx < this._aggregateIDList.Count; idx++) - { - AggregateID listElement = (AggregateID)this._aggregateIDList[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._entityIDList.Count; idx++) - { - EntityID listElement = (EntityID)this._entityIDList[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - marshalSize += 1; // this._pad2 - for (int idx = 0; idx < this._silentAggregateSystemList.Count; idx++) - { - EntityType listElement = (EntityType)this._silentAggregateSystemList[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._silentEntitySystemList.Count; idx++) - { - EntityType listElement = (EntityType)this._silentEntitySystemList[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - marshalSize += 4; // this._numberOfVariableDatumRecords - for (int idx = 0; idx < this._variableDatumList.Count; idx++) - { - VariableDatum listElement = (VariableDatum)this._variableDatumList[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the ID of aggregated entities - /// - [XmlElement(Type = typeof(EntityID), ElementName = "aggregateID")] - public EntityID AggregateID - { - get - { - return this._aggregateID; - } - - set - { - this._aggregateID = value; - } - } - - /// - /// Gets or sets the force ID - /// - [XmlElement(Type = typeof(byte), ElementName = "forceID")] - public byte ForceID - { - get - { - return this._forceID; - } - - set - { - this._forceID = value; - } - } - - /// - /// Gets or sets the state of aggregate - /// - [XmlElement(Type = typeof(byte), ElementName = "aggregateState")] - public byte AggregateState - { - get - { - return this._aggregateState; - } - - set - { - this._aggregateState = value; - } - } - - /// - /// Gets or sets the entity type of the aggregated entities - /// - [XmlElement(Type = typeof(EntityType), ElementName = "aggregateType")] - public EntityType AggregateType - { - get - { - return this._aggregateType; - } - - set - { - this._aggregateType = value; - } - } - - /// - /// Gets or sets the formation of aggregated entities - /// - [XmlElement(Type = typeof(uint), ElementName = "formation")] - public uint Formation - { - get - { - return this._formation; - } - - set - { - this._formation = value; - } - } - - /// - /// Gets or sets the marking for aggregate; first char is charset type, rest is char data - /// - [XmlElement(Type = typeof(AggregateMarking), ElementName = "aggregateMarking")] - public AggregateMarking AggregateMarking - { - get - { - return this._aggregateMarking; - } - - set - { - this._aggregateMarking = value; - } - } - - /// - /// Gets or sets the dimensions of bounding box for the aggregated entities, origin at the center of mass - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "dimensions")] - public Vector3Float Dimensions - { - get - { - return this._dimensions; - } - - set - { - this._dimensions = value; - } - } - - /// - /// Gets or sets the orientation of the bounding box - /// - [XmlElement(Type = typeof(Orientation), ElementName = "orientation")] - public Orientation Orientation - { - get - { - return this._orientation; - } - - set - { - this._orientation = value; - } - } - - /// - /// Gets or sets the center of mass of the aggregation - /// - [XmlElement(Type = typeof(Vector3Double), ElementName = "centerOfMass")] - public Vector3Double CenterOfMass - { - get - { - return this._centerOfMass; - } - - set - { - this._centerOfMass = value; - } - } - - /// - /// Gets or sets the velocity of aggregation - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "velocity")] - public Vector3Float Velocity - { - get - { - return this._velocity; - } - - set - { - this._velocity = value; - } - } - - /// - /// Gets or sets the number of aggregates - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfDisAggregates method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(ushort), ElementName = "numberOfDisAggregates")] - public ushort NumberOfDisAggregates - { - get - { - return this._numberOfDisAggregates; - } - - set - { - this._numberOfDisAggregates = value; - } - } - - /// - /// Gets or sets the number of entities - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfDisEntities method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(ushort), ElementName = "numberOfDisEntities")] - public ushort NumberOfDisEntities - { - get - { - return this._numberOfDisEntities; - } - - set - { - this._numberOfDisEntities = value; - } - } - - /// - /// Gets or sets the number of silent aggregate types - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfSilentAggregateTypes method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(ushort), ElementName = "numberOfSilentAggregateTypes")] - public ushort NumberOfSilentAggregateTypes - { - get - { - return this._numberOfSilentAggregateTypes; - } - - set - { - this._numberOfSilentAggregateTypes = value; - } - } - - /// - /// Gets or sets the number of silent entity types - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfSilentEntityTypes method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(ushort), ElementName = "numberOfSilentEntityTypes")] - public ushort NumberOfSilentEntityTypes - { - get - { - return this._numberOfSilentEntityTypes; - } - - set - { - this._numberOfSilentEntityTypes = value; - } - } - - /// - /// Gets the aggregates list - /// - [XmlElement(ElementName = "aggregateIDListList", Type = typeof(List))] - public List AggregateIDList - { - get - { - return this._aggregateIDList; - } - } - - /// - /// Gets the entity ID list - /// - [XmlElement(ElementName = "entityIDListList", Type = typeof(List))] - public List EntityIDList - { - get - { - return this._entityIDList; - } - } - - /// - /// Gets or sets the ^^^padding to put the start of the next list on a 32 bit boundary. This needs to be fixed - /// - [XmlElement(Type = typeof(byte), ElementName = "pad2")] - public byte Pad2 - { - get - { - return this._pad2; - } - - set - { - this._pad2 = value; - } - } - - /// - /// Gets the silent entity types - /// - [XmlElement(ElementName = "silentAggregateSystemListList", Type = typeof(List))] - public List SilentAggregateSystemList - { - get - { - return this._silentAggregateSystemList; - } - } - - /// - /// Gets the silent entity types - /// - [XmlElement(ElementName = "silentEntitySystemListList", Type = typeof(List))] - public List SilentEntitySystemList - { - get - { - return this._silentEntitySystemList; - } - } - - /// - /// Gets or sets the number of variable datum records - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] - public uint NumberOfVariableDatumRecords - { - get - { - return this._numberOfVariableDatumRecords; - } - - set - { - this._numberOfVariableDatumRecords = value; - } - } - - /// - /// Gets the variableDatums - /// - [XmlElement(ElementName = "variableDatumListList", Type = typeof(List))] - public List VariableDatumList - { - get - { - return this._variableDatumList; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._aggregateID.Marshal(dos); - dos.WriteUnsignedByte((byte)this._forceID); - dos.WriteUnsignedByte((byte)this._aggregateState); - this._aggregateType.Marshal(dos); - dos.WriteUnsignedInt((uint)this._formation); - this._aggregateMarking.Marshal(dos); - this._dimensions.Marshal(dos); - this._orientation.Marshal(dos); - this._centerOfMass.Marshal(dos); - this._velocity.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._aggregateIDList.Count); - dos.WriteUnsignedShort((ushort)this._entityIDList.Count); - dos.WriteUnsignedShort((ushort)this._silentAggregateSystemList.Count); - dos.WriteUnsignedShort((ushort)this._silentEntitySystemList.Count); - - for (int idx = 0; idx < this._aggregateIDList.Count; idx++) - { - AggregateID aAggregateID = (AggregateID)this._aggregateIDList[idx]; - aAggregateID.Marshal(dos); - } - - for (int idx = 0; idx < this._entityIDList.Count; idx++) - { - EntityID aEntityID = (EntityID)this._entityIDList[idx]; - aEntityID.Marshal(dos); - } - - dos.WriteUnsignedByte((byte)this._pad2); - - for (int idx = 0; idx < this._silentAggregateSystemList.Count; idx++) - { - EntityType aEntityType = (EntityType)this._silentAggregateSystemList[idx]; - aEntityType.Marshal(dos); - } - - for (int idx = 0; idx < this._silentEntitySystemList.Count; idx++) - { - EntityType aEntityType = (EntityType)this._silentEntitySystemList[idx]; - aEntityType.Marshal(dos); - } - - dos.WriteUnsignedInt((uint)this._variableDatumList.Count); - - for (int idx = 0; idx < this._variableDatumList.Count; idx++) - { - VariableDatum aVariableDatum = (VariableDatum)this._variableDatumList[idx]; - aVariableDatum.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._aggregateID.Unmarshal(dis); - this._forceID = dis.ReadUnsignedByte(); - this._aggregateState = dis.ReadUnsignedByte(); - this._aggregateType.Unmarshal(dis); - this._formation = dis.ReadUnsignedInt(); - this._aggregateMarking.Unmarshal(dis); - this._dimensions.Unmarshal(dis); - this._orientation.Unmarshal(dis); - this._centerOfMass.Unmarshal(dis); - this._velocity.Unmarshal(dis); - this._numberOfDisAggregates = dis.ReadUnsignedShort(); - this._numberOfDisEntities = dis.ReadUnsignedShort(); - this._numberOfSilentAggregateTypes = dis.ReadUnsignedShort(); - this._numberOfSilentEntityTypes = dis.ReadUnsignedShort(); - - for (int idx = 0; idx < this.NumberOfDisAggregates; idx++) - { - AggregateID anX = new AggregateID(); - anX.Unmarshal(dis); - this._aggregateIDList.Add(anX); - } - - for (int idx = 0; idx < this.NumberOfDisEntities; idx++) - { - EntityID anX = new EntityID(); - anX.Unmarshal(dis); - this._entityIDList.Add(anX); - } - - this._pad2 = dis.ReadUnsignedByte(); - - for (int idx = 0; idx < this.NumberOfSilentAggregateTypes; idx++) - { - EntityType anX = new EntityType(); - anX.Unmarshal(dis); - this._silentAggregateSystemList.Add(anX); - } - - for (int idx = 0; idx < this.NumberOfSilentEntityTypes; idx++) - { - EntityType anX = new EntityType(); - anX.Unmarshal(dis); - this._silentEntitySystemList.Add(anX); - } - - this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); - - for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) - { - VariableDatum anX = new VariableDatum(); - anX.Unmarshal(dis); - this._variableDatumList.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._aggregateID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._forceID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._aggregateState.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._aggregateType.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._formation.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._aggregateMarking.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._dimensions.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._orientation.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._centerOfMass.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._velocity.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._aggregateIDList.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._entityIDList.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._silentAggregateSystemList.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._silentEntitySystemList.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._aggregateIDList.Count; idx++) - { - sb.AppendLine(""); - AggregateID aAggregateID = (AggregateID)this._aggregateIDList[idx]; - aAggregateID.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._entityIDList.Count; idx++) - { - sb.AppendLine(""); - EntityID aEntityID = (EntityID)this._entityIDList[idx]; - aEntityID.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._silentAggregateSystemList.Count; idx++) - { - sb.AppendLine(""); - EntityType aEntityType = (EntityType)this._silentAggregateSystemList[idx]; - aEntityType.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._silentEntitySystemList.Count; idx++) - { - sb.AppendLine(""); - EntityType aEntityType = (EntityType)this._silentEntitySystemList[idx]; - aEntityType.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine("" + this._variableDatumList.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._variableDatumList.Count; idx++) - { - sb.AppendLine(""); - VariableDatum aVariableDatum = (VariableDatum)this._variableDatumList[idx]; - aVariableDatum.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as AggregateStatePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(AggregateStatePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._aggregateID.Equals(obj._aggregateID)) - { - ivarsEqual = false; - } - - if (this._forceID != obj._forceID) - { - ivarsEqual = false; - } - - if (this._aggregateState != obj._aggregateState) - { - ivarsEqual = false; - } - - if (!this._aggregateType.Equals(obj._aggregateType)) - { - ivarsEqual = false; - } - - if (this._formation != obj._formation) - { - ivarsEqual = false; - } - - if (!this._aggregateMarking.Equals(obj._aggregateMarking)) - { - ivarsEqual = false; - } - - if (!this._dimensions.Equals(obj._dimensions)) - { - ivarsEqual = false; - } - - if (!this._orientation.Equals(obj._orientation)) - { - ivarsEqual = false; - } - - if (!this._centerOfMass.Equals(obj._centerOfMass)) - { - ivarsEqual = false; - } - - if (!this._velocity.Equals(obj._velocity)) - { - ivarsEqual = false; - } - - if (this._numberOfDisAggregates != obj._numberOfDisAggregates) - { - ivarsEqual = false; - } - - if (this._numberOfDisEntities != obj._numberOfDisEntities) - { - ivarsEqual = false; - } - - if (this._numberOfSilentAggregateTypes != obj._numberOfSilentAggregateTypes) - { - ivarsEqual = false; - } - - if (this._numberOfSilentEntityTypes != obj._numberOfSilentEntityTypes) - { - ivarsEqual = false; - } - - if (this._aggregateIDList.Count != obj._aggregateIDList.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._aggregateIDList.Count; idx++) - { - if (!this._aggregateIDList[idx].Equals(obj._aggregateIDList[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._entityIDList.Count != obj._entityIDList.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._entityIDList.Count; idx++) - { - if (!this._entityIDList[idx].Equals(obj._entityIDList[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._pad2 != obj._pad2) - { - ivarsEqual = false; - } - - if (this._silentAggregateSystemList.Count != obj._silentAggregateSystemList.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._silentAggregateSystemList.Count; idx++) - { - if (!this._silentAggregateSystemList[idx].Equals(obj._silentAggregateSystemList[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._silentEntitySystemList.Count != obj._silentEntitySystemList.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._silentEntitySystemList.Count; idx++) - { - if (!this._silentEntitySystemList[idx].Equals(obj._silentEntitySystemList[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) - { - ivarsEqual = false; - } - - if (this._variableDatumList.Count != obj._variableDatumList.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._variableDatumList.Count; idx++) - { - if (!this._variableDatumList[idx].Equals(obj._variableDatumList[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._aggregateID.GetHashCode(); - result = GenerateHash(result) ^ this._forceID.GetHashCode(); - result = GenerateHash(result) ^ this._aggregateState.GetHashCode(); - result = GenerateHash(result) ^ this._aggregateType.GetHashCode(); - result = GenerateHash(result) ^ this._formation.GetHashCode(); - result = GenerateHash(result) ^ this._aggregateMarking.GetHashCode(); - result = GenerateHash(result) ^ this._dimensions.GetHashCode(); - result = GenerateHash(result) ^ this._orientation.GetHashCode(); - result = GenerateHash(result) ^ this._centerOfMass.GetHashCode(); - result = GenerateHash(result) ^ this._velocity.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfDisAggregates.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfDisEntities.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfSilentAggregateTypes.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfSilentEntityTypes.GetHashCode(); - - if (this._aggregateIDList.Count > 0) - { - for (int idx = 0; idx < this._aggregateIDList.Count; idx++) - { - result = GenerateHash(result) ^ this._aggregateIDList[idx].GetHashCode(); - } - } - - if (this._entityIDList.Count > 0) - { - for (int idx = 0; idx < this._entityIDList.Count; idx++) - { - result = GenerateHash(result) ^ this._entityIDList[idx].GetHashCode(); - } - } - - result = GenerateHash(result) ^ this._pad2.GetHashCode(); - - if (this._silentAggregateSystemList.Count > 0) - { - for (int idx = 0; idx < this._silentAggregateSystemList.Count; idx++) - { - result = GenerateHash(result) ^ this._silentAggregateSystemList[idx].GetHashCode(); - } - } - - if (this._silentEntitySystemList.Count > 0) - { - for (int idx = 0; idx < this._silentEntitySystemList.Count; idx++) - { - result = GenerateHash(result) ^ this._silentEntitySystemList[idx].GetHashCode(); - } - } - - result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); - - if (this._variableDatumList.Count > 0) - { - for (int idx = 0; idx < this._variableDatumList.Count; idx++) - { - result = GenerateHash(result) ^ this._variableDatumList[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.9.1 informationa bout aggregating entities anc communicating information about the aggregated entities. requires manual intervention to fix the padding between entityID lists and silent aggregate sysem lists--this padding is dependent on how many entityIDs there are, and needs to be on a 32 bit word boundary. UNFINISHED + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(EntityType))] + [XmlInclude(typeof(AggregateMarking))] + [XmlInclude(typeof(Vector3Float))] + [XmlInclude(typeof(Orientation))] + [XmlInclude(typeof(Vector3Double))] + [XmlInclude(typeof(AggregateID))] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(EntityType))] + [XmlInclude(typeof(EntityType))] + [XmlInclude(typeof(VariableDatum))] + public partial class AggregateStatePdu : EntityManagementFamilyPdu, IEquatable + { + /// + /// ID of aggregated entities + /// + private EntityID _aggregateID = new EntityID(); + + /// + /// force ID + /// + private byte _forceID; + + /// + /// state of aggregate + /// + private byte _aggregateState; + + /// + /// entity type of the aggregated entities + /// + private EntityType _aggregateType = new EntityType(); + + /// + /// formation of aggregated entities + /// + private uint _formation; + + /// + /// marking for aggregate; first char is charset type, rest is char data + /// + private AggregateMarking _aggregateMarking = new AggregateMarking(); + + /// + /// dimensions of bounding box for the aggregated entities, origin at the center of mass + /// + private Vector3Float _dimensions = new Vector3Float(); + + /// + /// orientation of the bounding box + /// + private Orientation _orientation = new Orientation(); + + /// + /// center of mass of the aggregation + /// + private Vector3Double _centerOfMass = new Vector3Double(); + + /// + /// velocity of aggregation + /// + private Vector3Float _velocity = new Vector3Float(); + + /// + /// number of aggregates + /// + private ushort _numberOfDisAggregates; + + /// + /// number of entities + /// + private ushort _numberOfDisEntities; + + /// + /// number of silent aggregate types + /// + private ushort _numberOfSilentAggregateTypes; + + /// + /// number of silent entity types + /// + private ushort _numberOfSilentEntityTypes; + + /// + /// aggregates list + /// + private List _aggregateIDList = new List(); + + /// + /// entity ID list + /// + private List _entityIDList = new List(); + + /// + /// ^^^padding to put the start of the next list on a 32 bit boundary. This needs to be fixed + /// + private byte _pad2; + + /// + /// silent entity types + /// + private List _silentAggregateSystemList = new List(); + + /// + /// silent entity types + /// + private List _silentEntitySystemList = new List(); + + /// + /// number of variable datum records + /// + private uint _numberOfVariableDatumRecords; + + /// + /// variableDatums + /// + private List _variableDatumList = new List(); + + /// + /// Initializes a new instance of the class. + /// + public AggregateStatePdu() + { + PduType = (byte)33; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(AggregateStatePdu left, AggregateStatePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(AggregateStatePdu left, AggregateStatePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._aggregateID.GetMarshalledSize(); // this._aggregateID + marshalSize += 1; // this._forceID + marshalSize += 1; // this._aggregateState + marshalSize += this._aggregateType.GetMarshalledSize(); // this._aggregateType + marshalSize += 4; // this._formation + marshalSize += this._aggregateMarking.GetMarshalledSize(); // this._aggregateMarking + marshalSize += this._dimensions.GetMarshalledSize(); // this._dimensions + marshalSize += this._orientation.GetMarshalledSize(); // this._orientation + marshalSize += this._centerOfMass.GetMarshalledSize(); // this._centerOfMass + marshalSize += this._velocity.GetMarshalledSize(); // this._velocity + marshalSize += 2; // this._numberOfDisAggregates + marshalSize += 2; // this._numberOfDisEntities + marshalSize += 2; // this._numberOfSilentAggregateTypes + marshalSize += 2; // this._numberOfSilentEntityTypes + for (int idx = 0; idx < this._aggregateIDList.Count; idx++) + { + AggregateID listElement = (AggregateID)this._aggregateIDList[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._entityIDList.Count; idx++) + { + EntityID listElement = (EntityID)this._entityIDList[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + marshalSize += 1; // this._pad2 + for (int idx = 0; idx < this._silentAggregateSystemList.Count; idx++) + { + EntityType listElement = (EntityType)this._silentAggregateSystemList[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._silentEntitySystemList.Count; idx++) + { + EntityType listElement = (EntityType)this._silentEntitySystemList[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + marshalSize += 4; // this._numberOfVariableDatumRecords + for (int idx = 0; idx < this._variableDatumList.Count; idx++) + { + VariableDatum listElement = (VariableDatum)this._variableDatumList[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the ID of aggregated entities + /// + [XmlElement(Type = typeof(EntityID), ElementName = "aggregateID")] + public EntityID AggregateID + { + get + { + return this._aggregateID; + } + + set + { + this._aggregateID = value; + } + } + + /// + /// Gets or sets the force ID + /// + [XmlElement(Type = typeof(byte), ElementName = "forceID")] + public byte ForceID + { + get + { + return this._forceID; + } + + set + { + this._forceID = value; + } + } + + /// + /// Gets or sets the state of aggregate + /// + [XmlElement(Type = typeof(byte), ElementName = "aggregateState")] + public byte AggregateState + { + get + { + return this._aggregateState; + } + + set + { + this._aggregateState = value; + } + } + + /// + /// Gets or sets the entity type of the aggregated entities + /// + [XmlElement(Type = typeof(EntityType), ElementName = "aggregateType")] + public EntityType AggregateType + { + get + { + return this._aggregateType; + } + + set + { + this._aggregateType = value; + } + } + + /// + /// Gets or sets the formation of aggregated entities + /// + [XmlElement(Type = typeof(uint), ElementName = "formation")] + public uint Formation + { + get + { + return this._formation; + } + + set + { + this._formation = value; + } + } + + /// + /// Gets or sets the marking for aggregate; first char is charset type, rest is char data + /// + [XmlElement(Type = typeof(AggregateMarking), ElementName = "aggregateMarking")] + public AggregateMarking AggregateMarking + { + get + { + return this._aggregateMarking; + } + + set + { + this._aggregateMarking = value; + } + } + + /// + /// Gets or sets the dimensions of bounding box for the aggregated entities, origin at the center of mass + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "dimensions")] + public Vector3Float Dimensions + { + get + { + return this._dimensions; + } + + set + { + this._dimensions = value; + } + } + + /// + /// Gets or sets the orientation of the bounding box + /// + [XmlElement(Type = typeof(Orientation), ElementName = "orientation")] + public Orientation Orientation + { + get + { + return this._orientation; + } + + set + { + this._orientation = value; + } + } + + /// + /// Gets or sets the center of mass of the aggregation + /// + [XmlElement(Type = typeof(Vector3Double), ElementName = "centerOfMass")] + public Vector3Double CenterOfMass + { + get + { + return this._centerOfMass; + } + + set + { + this._centerOfMass = value; + } + } + + /// + /// Gets or sets the velocity of aggregation + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "velocity")] + public Vector3Float Velocity + { + get + { + return this._velocity; + } + + set + { + this._velocity = value; + } + } + + /// + /// Gets or sets the number of aggregates + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfDisAggregates method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(ushort), ElementName = "numberOfDisAggregates")] + public ushort NumberOfDisAggregates + { + get + { + return this._numberOfDisAggregates; + } + + set + { + this._numberOfDisAggregates = value; + } + } + + /// + /// Gets or sets the number of entities + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfDisEntities method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(ushort), ElementName = "numberOfDisEntities")] + public ushort NumberOfDisEntities + { + get + { + return this._numberOfDisEntities; + } + + set + { + this._numberOfDisEntities = value; + } + } + + /// + /// Gets or sets the number of silent aggregate types + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfSilentAggregateTypes method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(ushort), ElementName = "numberOfSilentAggregateTypes")] + public ushort NumberOfSilentAggregateTypes + { + get + { + return this._numberOfSilentAggregateTypes; + } + + set + { + this._numberOfSilentAggregateTypes = value; + } + } + + /// + /// Gets or sets the number of silent entity types + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfSilentEntityTypes method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(ushort), ElementName = "numberOfSilentEntityTypes")] + public ushort NumberOfSilentEntityTypes + { + get + { + return this._numberOfSilentEntityTypes; + } + + set + { + this._numberOfSilentEntityTypes = value; + } + } + + /// + /// Gets the aggregates list + /// + [XmlElement(ElementName = "aggregateIDListList", Type = typeof(List))] + public List AggregateIDList + { + get + { + return this._aggregateIDList; + } + } + + /// + /// Gets the entity ID list + /// + [XmlElement(ElementName = "entityIDListList", Type = typeof(List))] + public List EntityIDList + { + get + { + return this._entityIDList; + } + } + + /// + /// Gets or sets the ^^^padding to put the start of the next list on a 32 bit boundary. This needs to be fixed + /// + [XmlElement(Type = typeof(byte), ElementName = "pad2")] + public byte Pad2 + { + get + { + return this._pad2; + } + + set + { + this._pad2 = value; + } + } + + /// + /// Gets the silent entity types + /// + [XmlElement(ElementName = "silentAggregateSystemListList", Type = typeof(List))] + public List SilentAggregateSystemList + { + get + { + return this._silentAggregateSystemList; + } + } + + /// + /// Gets the silent entity types + /// + [XmlElement(ElementName = "silentEntitySystemListList", Type = typeof(List))] + public List SilentEntitySystemList + { + get + { + return this._silentEntitySystemList; + } + } + + /// + /// Gets or sets the number of variable datum records + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] + public uint NumberOfVariableDatumRecords + { + get + { + return this._numberOfVariableDatumRecords; + } + + set + { + this._numberOfVariableDatumRecords = value; + } + } + + /// + /// Gets the variableDatums + /// + [XmlElement(ElementName = "variableDatumListList", Type = typeof(List))] + public List VariableDatumList + { + get + { + return this._variableDatumList; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._aggregateID.Marshal(dos); + dos.WriteUnsignedByte((byte)this._forceID); + dos.WriteUnsignedByte((byte)this._aggregateState); + this._aggregateType.Marshal(dos); + dos.WriteUnsignedInt((uint)this._formation); + this._aggregateMarking.Marshal(dos); + this._dimensions.Marshal(dos); + this._orientation.Marshal(dos); + this._centerOfMass.Marshal(dos); + this._velocity.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._aggregateIDList.Count); + dos.WriteUnsignedShort((ushort)this._entityIDList.Count); + dos.WriteUnsignedShort((ushort)this._silentAggregateSystemList.Count); + dos.WriteUnsignedShort((ushort)this._silentEntitySystemList.Count); + + for (int idx = 0; idx < this._aggregateIDList.Count; idx++) + { + AggregateID aAggregateID = (AggregateID)this._aggregateIDList[idx]; + aAggregateID.Marshal(dos); + } + + for (int idx = 0; idx < this._entityIDList.Count; idx++) + { + EntityID aEntityID = (EntityID)this._entityIDList[idx]; + aEntityID.Marshal(dos); + } + + dos.WriteUnsignedByte((byte)this._pad2); + + for (int idx = 0; idx < this._silentAggregateSystemList.Count; idx++) + { + EntityType aEntityType = (EntityType)this._silentAggregateSystemList[idx]; + aEntityType.Marshal(dos); + } + + for (int idx = 0; idx < this._silentEntitySystemList.Count; idx++) + { + EntityType aEntityType = (EntityType)this._silentEntitySystemList[idx]; + aEntityType.Marshal(dos); + } + + dos.WriteUnsignedInt((uint)this._variableDatumList.Count); + + for (int idx = 0; idx < this._variableDatumList.Count; idx++) + { + VariableDatum aVariableDatum = (VariableDatum)this._variableDatumList[idx]; + aVariableDatum.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._aggregateID.Unmarshal(dis); + this._forceID = dis.ReadUnsignedByte(); + this._aggregateState = dis.ReadUnsignedByte(); + this._aggregateType.Unmarshal(dis); + this._formation = dis.ReadUnsignedInt(); + this._aggregateMarking.Unmarshal(dis); + this._dimensions.Unmarshal(dis); + this._orientation.Unmarshal(dis); + this._centerOfMass.Unmarshal(dis); + this._velocity.Unmarshal(dis); + this._numberOfDisAggregates = dis.ReadUnsignedShort(); + this._numberOfDisEntities = dis.ReadUnsignedShort(); + this._numberOfSilentAggregateTypes = dis.ReadUnsignedShort(); + this._numberOfSilentEntityTypes = dis.ReadUnsignedShort(); + + for (int idx = 0; idx < this.NumberOfDisAggregates; idx++) + { + AggregateID anX = new AggregateID(); + anX.Unmarshal(dis); + this._aggregateIDList.Add(anX); + } + + for (int idx = 0; idx < this.NumberOfDisEntities; idx++) + { + EntityID anX = new EntityID(); + anX.Unmarshal(dis); + this._entityIDList.Add(anX); + } + + this._pad2 = dis.ReadUnsignedByte(); + + for (int idx = 0; idx < this.NumberOfSilentAggregateTypes; idx++) + { + EntityType anX = new EntityType(); + anX.Unmarshal(dis); + this._silentAggregateSystemList.Add(anX); + } + + for (int idx = 0; idx < this.NumberOfSilentEntityTypes; idx++) + { + EntityType anX = new EntityType(); + anX.Unmarshal(dis); + this._silentEntitySystemList.Add(anX); + } + + this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); + + for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) + { + VariableDatum anX = new VariableDatum(); + anX.Unmarshal(dis); + this._variableDatumList.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._aggregateID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._forceID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._aggregateState.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._aggregateType.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._formation.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._aggregateMarking.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._dimensions.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._orientation.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._centerOfMass.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._velocity.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._aggregateIDList.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._entityIDList.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._silentAggregateSystemList.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._silentEntitySystemList.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._aggregateIDList.Count; idx++) + { + sb.AppendLine(""); + AggregateID aAggregateID = (AggregateID)this._aggregateIDList[idx]; + aAggregateID.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._entityIDList.Count; idx++) + { + sb.AppendLine(""); + EntityID aEntityID = (EntityID)this._entityIDList[idx]; + aEntityID.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._silentAggregateSystemList.Count; idx++) + { + sb.AppendLine(""); + EntityType aEntityType = (EntityType)this._silentAggregateSystemList[idx]; + aEntityType.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._silentEntitySystemList.Count; idx++) + { + sb.AppendLine(""); + EntityType aEntityType = (EntityType)this._silentEntitySystemList[idx]; + aEntityType.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine("" + this._variableDatumList.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._variableDatumList.Count; idx++) + { + sb.AppendLine(""); + VariableDatum aVariableDatum = (VariableDatum)this._variableDatumList[idx]; + aVariableDatum.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as AggregateStatePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(AggregateStatePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._aggregateID.Equals(obj._aggregateID)) + { + ivarsEqual = false; + } + + if (this._forceID != obj._forceID) + { + ivarsEqual = false; + } + + if (this._aggregateState != obj._aggregateState) + { + ivarsEqual = false; + } + + if (!this._aggregateType.Equals(obj._aggregateType)) + { + ivarsEqual = false; + } + + if (this._formation != obj._formation) + { + ivarsEqual = false; + } + + if (!this._aggregateMarking.Equals(obj._aggregateMarking)) + { + ivarsEqual = false; + } + + if (!this._dimensions.Equals(obj._dimensions)) + { + ivarsEqual = false; + } + + if (!this._orientation.Equals(obj._orientation)) + { + ivarsEqual = false; + } + + if (!this._centerOfMass.Equals(obj._centerOfMass)) + { + ivarsEqual = false; + } + + if (!this._velocity.Equals(obj._velocity)) + { + ivarsEqual = false; + } + + if (this._numberOfDisAggregates != obj._numberOfDisAggregates) + { + ivarsEqual = false; + } + + if (this._numberOfDisEntities != obj._numberOfDisEntities) + { + ivarsEqual = false; + } + + if (this._numberOfSilentAggregateTypes != obj._numberOfSilentAggregateTypes) + { + ivarsEqual = false; + } + + if (this._numberOfSilentEntityTypes != obj._numberOfSilentEntityTypes) + { + ivarsEqual = false; + } + + if (this._aggregateIDList.Count != obj._aggregateIDList.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._aggregateIDList.Count; idx++) + { + if (!this._aggregateIDList[idx].Equals(obj._aggregateIDList[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._entityIDList.Count != obj._entityIDList.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._entityIDList.Count; idx++) + { + if (!this._entityIDList[idx].Equals(obj._entityIDList[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._pad2 != obj._pad2) + { + ivarsEqual = false; + } + + if (this._silentAggregateSystemList.Count != obj._silentAggregateSystemList.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._silentAggregateSystemList.Count; idx++) + { + if (!this._silentAggregateSystemList[idx].Equals(obj._silentAggregateSystemList[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._silentEntitySystemList.Count != obj._silentEntitySystemList.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._silentEntitySystemList.Count; idx++) + { + if (!this._silentEntitySystemList[idx].Equals(obj._silentEntitySystemList[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) + { + ivarsEqual = false; + } + + if (this._variableDatumList.Count != obj._variableDatumList.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._variableDatumList.Count; idx++) + { + if (!this._variableDatumList[idx].Equals(obj._variableDatumList[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._aggregateID.GetHashCode(); + result = GenerateHash(result) ^ this._forceID.GetHashCode(); + result = GenerateHash(result) ^ this._aggregateState.GetHashCode(); + result = GenerateHash(result) ^ this._aggregateType.GetHashCode(); + result = GenerateHash(result) ^ this._formation.GetHashCode(); + result = GenerateHash(result) ^ this._aggregateMarking.GetHashCode(); + result = GenerateHash(result) ^ this._dimensions.GetHashCode(); + result = GenerateHash(result) ^ this._orientation.GetHashCode(); + result = GenerateHash(result) ^ this._centerOfMass.GetHashCode(); + result = GenerateHash(result) ^ this._velocity.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfDisAggregates.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfDisEntities.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfSilentAggregateTypes.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfSilentEntityTypes.GetHashCode(); + + if (this._aggregateIDList.Count > 0) + { + for (int idx = 0; idx < this._aggregateIDList.Count; idx++) + { + result = GenerateHash(result) ^ this._aggregateIDList[idx].GetHashCode(); + } + } + + if (this._entityIDList.Count > 0) + { + for (int idx = 0; idx < this._entityIDList.Count; idx++) + { + result = GenerateHash(result) ^ this._entityIDList[idx].GetHashCode(); + } + } + + result = GenerateHash(result) ^ this._pad2.GetHashCode(); + + if (this._silentAggregateSystemList.Count > 0) + { + for (int idx = 0; idx < this._silentAggregateSystemList.Count; idx++) + { + result = GenerateHash(result) ^ this._silentAggregateSystemList[idx].GetHashCode(); + } + } + + if (this._silentEntitySystemList.Count > 0) + { + for (int idx = 0; idx < this._silentEntitySystemList.Count; idx++) + { + result = GenerateHash(result) ^ this._silentEntitySystemList[idx].GetHashCode(); + } + } + + result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); + + if (this._variableDatumList.Count > 0) + { + for (int idx = 0; idx < this._variableDatumList.Count; idx++) + { + result = GenerateHash(result) ^ this._variableDatumList[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/AggregateType.cs b/Libs/CsharpDis6/Dis1998/Generated/AggregateType.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/AggregateType.cs rename to Libs/CsharpDis6/Dis1998/Generated/AggregateType.cs index b86272e..2a46fdb 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/AggregateType.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/AggregateType.cs @@ -1,489 +1,489 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.2.38. Identifies the type of aggregate including kind of entity, domain (surface, subsurface, air, etc) country, category, etc. - /// - [Serializable] - [XmlRoot] - public partial class AggregateType - { - /// - /// Kind of entity - /// - private byte _aggregateKind; - - /// - /// Domain of entity (air, surface, subsurface, space, etc) - /// - private byte _domain; - - /// - /// country to which the design of the entity is attributed - /// - private ushort _country; - - /// - /// category of entity - /// - private byte _category; - - /// - /// subcategory of entity - /// - private byte _subcategory; - - /// - /// specific info based on subcategory field - /// - private byte _specific; - - private byte _extra; - - /// - /// Initializes a new instance of the class. - /// - public AggregateType() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(AggregateType left, AggregateType right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(AggregateType left, AggregateType right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._aggregateKind - marshalSize += 1; // this._domain - marshalSize += 2; // this._country - marshalSize += 1; // this._category - marshalSize += 1; // this._subcategory - marshalSize += 1; // this._specific - marshalSize += 1; // this._extra - return marshalSize; - } - - /// - /// Gets or sets the Kind of entity - /// - [XmlElement(Type = typeof(byte), ElementName = "aggregateKind")] - public byte AggregateKind - { - get - { - return this._aggregateKind; - } - - set - { - this._aggregateKind = value; - } - } - - /// - /// Gets or sets the Domain of entity (air, surface, subsurface, space, etc) - /// - [XmlElement(Type = typeof(byte), ElementName = "domain")] - public byte Domain - { - get - { - return this._domain; - } - - set - { - this._domain = value; - } - } - - /// - /// Gets or sets the country to which the design of the entity is attributed - /// - [XmlElement(Type = typeof(ushort), ElementName = "country")] - public ushort Country - { - get - { - return this._country; - } - - set - { - this._country = value; - } - } - - /// - /// Gets or sets the category of entity - /// - [XmlElement(Type = typeof(byte), ElementName = "category")] - public byte Category - { - get - { - return this._category; - } - - set - { - this._category = value; - } - } - - /// - /// Gets or sets the subcategory of entity - /// - [XmlElement(Type = typeof(byte), ElementName = "subcategory")] - public byte Subcategory - { - get - { - return this._subcategory; - } - - set - { - this._subcategory = value; - } - } - - /// - /// Gets or sets the specific info based on subcategory field - /// - [XmlElement(Type = typeof(byte), ElementName = "specific")] - public byte Specific - { - get - { - return this._specific; - } - - set - { - this._specific = value; - } - } - - /// - /// Gets or sets the extra - /// - [XmlElement(Type = typeof(byte), ElementName = "extra")] - public byte Extra - { - get - { - return this._extra; - } - - set - { - this._extra = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._aggregateKind); - dos.WriteUnsignedByte((byte)this._domain); - dos.WriteUnsignedShort((ushort)this._country); - dos.WriteUnsignedByte((byte)this._category); - dos.WriteUnsignedByte((byte)this._subcategory); - dos.WriteUnsignedByte((byte)this._specific); - dos.WriteUnsignedByte((byte)this._extra); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._aggregateKind = dis.ReadUnsignedByte(); - this._domain = dis.ReadUnsignedByte(); - this._country = dis.ReadUnsignedShort(); - this._category = dis.ReadUnsignedByte(); - this._subcategory = dis.ReadUnsignedByte(); - this._specific = dis.ReadUnsignedByte(); - this._extra = dis.ReadUnsignedByte(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._aggregateKind.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._domain.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._country.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._category.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._subcategory.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._specific.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._extra.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as AggregateType; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(AggregateType obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._aggregateKind != obj._aggregateKind) - { - ivarsEqual = false; - } - - if (this._domain != obj._domain) - { - ivarsEqual = false; - } - - if (this._country != obj._country) - { - ivarsEqual = false; - } - - if (this._category != obj._category) - { - ivarsEqual = false; - } - - if (this._subcategory != obj._subcategory) - { - ivarsEqual = false; - } - - if (this._specific != obj._specific) - { - ivarsEqual = false; - } - - if (this._extra != obj._extra) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._aggregateKind.GetHashCode(); - result = GenerateHash(result) ^ this._domain.GetHashCode(); - result = GenerateHash(result) ^ this._country.GetHashCode(); - result = GenerateHash(result) ^ this._category.GetHashCode(); - result = GenerateHash(result) ^ this._subcategory.GetHashCode(); - result = GenerateHash(result) ^ this._specific.GetHashCode(); - result = GenerateHash(result) ^ this._extra.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.2.38. Identifies the type of aggregate including kind of entity, domain (surface, subsurface, air, etc) country, category, etc. + /// + [Serializable] + [XmlRoot] + public partial class AggregateType + { + /// + /// Kind of entity + /// + private byte _aggregateKind; + + /// + /// Domain of entity (air, surface, subsurface, space, etc) + /// + private byte _domain; + + /// + /// country to which the design of the entity is attributed + /// + private ushort _country; + + /// + /// category of entity + /// + private byte _category; + + /// + /// subcategory of entity + /// + private byte _subcategory; + + /// + /// specific info based on subcategory field + /// + private byte _specific; + + private byte _extra; + + /// + /// Initializes a new instance of the class. + /// + public AggregateType() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(AggregateType left, AggregateType right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(AggregateType left, AggregateType right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._aggregateKind + marshalSize += 1; // this._domain + marshalSize += 2; // this._country + marshalSize += 1; // this._category + marshalSize += 1; // this._subcategory + marshalSize += 1; // this._specific + marshalSize += 1; // this._extra + return marshalSize; + } + + /// + /// Gets or sets the Kind of entity + /// + [XmlElement(Type = typeof(byte), ElementName = "aggregateKind")] + public byte AggregateKind + { + get + { + return this._aggregateKind; + } + + set + { + this._aggregateKind = value; + } + } + + /// + /// Gets or sets the Domain of entity (air, surface, subsurface, space, etc) + /// + [XmlElement(Type = typeof(byte), ElementName = "domain")] + public byte Domain + { + get + { + return this._domain; + } + + set + { + this._domain = value; + } + } + + /// + /// Gets or sets the country to which the design of the entity is attributed + /// + [XmlElement(Type = typeof(ushort), ElementName = "country")] + public ushort Country + { + get + { + return this._country; + } + + set + { + this._country = value; + } + } + + /// + /// Gets or sets the category of entity + /// + [XmlElement(Type = typeof(byte), ElementName = "category")] + public byte Category + { + get + { + return this._category; + } + + set + { + this._category = value; + } + } + + /// + /// Gets or sets the subcategory of entity + /// + [XmlElement(Type = typeof(byte), ElementName = "subcategory")] + public byte Subcategory + { + get + { + return this._subcategory; + } + + set + { + this._subcategory = value; + } + } + + /// + /// Gets or sets the specific info based on subcategory field + /// + [XmlElement(Type = typeof(byte), ElementName = "specific")] + public byte Specific + { + get + { + return this._specific; + } + + set + { + this._specific = value; + } + } + + /// + /// Gets or sets the extra + /// + [XmlElement(Type = typeof(byte), ElementName = "extra")] + public byte Extra + { + get + { + return this._extra; + } + + set + { + this._extra = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._aggregateKind); + dos.WriteUnsignedByte((byte)this._domain); + dos.WriteUnsignedShort((ushort)this._country); + dos.WriteUnsignedByte((byte)this._category); + dos.WriteUnsignedByte((byte)this._subcategory); + dos.WriteUnsignedByte((byte)this._specific); + dos.WriteUnsignedByte((byte)this._extra); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._aggregateKind = dis.ReadUnsignedByte(); + this._domain = dis.ReadUnsignedByte(); + this._country = dis.ReadUnsignedShort(); + this._category = dis.ReadUnsignedByte(); + this._subcategory = dis.ReadUnsignedByte(); + this._specific = dis.ReadUnsignedByte(); + this._extra = dis.ReadUnsignedByte(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._aggregateKind.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._domain.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._country.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._category.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._subcategory.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._specific.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._extra.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as AggregateType; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(AggregateType obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._aggregateKind != obj._aggregateKind) + { + ivarsEqual = false; + } + + if (this._domain != obj._domain) + { + ivarsEqual = false; + } + + if (this._country != obj._country) + { + ivarsEqual = false; + } + + if (this._category != obj._category) + { + ivarsEqual = false; + } + + if (this._subcategory != obj._subcategory) + { + ivarsEqual = false; + } + + if (this._specific != obj._specific) + { + ivarsEqual = false; + } + + if (this._extra != obj._extra) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._aggregateKind.GetHashCode(); + result = GenerateHash(result) ^ this._domain.GetHashCode(); + result = GenerateHash(result) ^ this._country.GetHashCode(); + result = GenerateHash(result) ^ this._category.GetHashCode(); + result = GenerateHash(result) ^ this._subcategory.GetHashCode(); + result = GenerateHash(result) ^ this._specific.GetHashCode(); + result = GenerateHash(result) ^ this._extra.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/AngularVelocityVector.cs b/Libs/CsharpDis6/Dis1998/Generated/AngularVelocityVector.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/AngularVelocityVector.cs rename to Libs/CsharpDis6/Dis1998/Generated/AngularVelocityVector.cs index 1a6c274..324db8b 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/AngularVelocityVector.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/AngularVelocityVector.cs @@ -1,364 +1,364 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// 5.2.2: angular velocity measured in radians per second out each of the entity's own coordinate axes. - /// - [Serializable] - [XmlRoot] - public partial class AngularVelocityVector - { - /// - /// velocity about the x axis - /// - private float _x; - - /// - /// velocity about the y axis - /// - private float _y; - - /// - /// velocity about the zaxis - /// - private float _z; - - /// - /// Initializes a new instance of the class. - /// - public AngularVelocityVector() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(AngularVelocityVector left, AngularVelocityVector right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(AngularVelocityVector left, AngularVelocityVector right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._x - marshalSize += 4; // this._y - marshalSize += 4; // this._z - return marshalSize; - } - - /// - /// Gets or sets the velocity about the x axis - /// - [XmlElement(Type = typeof(float), ElementName = "x")] - public float X - { - get - { - return this._x; - } - - set - { - this._x = value; - } - } - - /// - /// Gets or sets the velocity about the y axis - /// - [XmlElement(Type = typeof(float), ElementName = "y")] - public float Y - { - get - { - return this._y; - } - - set - { - this._y = value; - } - } - - /// - /// Gets or sets the velocity about the zaxis - /// - [XmlElement(Type = typeof(float), ElementName = "z")] - public float Z - { - get - { - return this._z; - } - - set - { - this._z = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteFloat((float)this._x); - dos.WriteFloat((float)this._y); - dos.WriteFloat((float)this._z); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._x = dis.ReadFloat(); - this._y = dis.ReadFloat(); - this._z = dis.ReadFloat(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._x.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._y.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._z.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as AngularVelocityVector; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(AngularVelocityVector obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._x != obj._x) - { - ivarsEqual = false; - } - - if (this._y != obj._y) - { - ivarsEqual = false; - } - - if (this._z != obj._z) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._x.GetHashCode(); - result = GenerateHash(result) ^ this._y.GetHashCode(); - result = GenerateHash(result) ^ this._z.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// 5.2.2: angular velocity measured in radians per second out each of the entity's own coordinate axes. + /// + [Serializable] + [XmlRoot] + public partial class AngularVelocityVector + { + /// + /// velocity about the x axis + /// + private float _x; + + /// + /// velocity about the y axis + /// + private float _y; + + /// + /// velocity about the zaxis + /// + private float _z; + + /// + /// Initializes a new instance of the class. + /// + public AngularVelocityVector() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(AngularVelocityVector left, AngularVelocityVector right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(AngularVelocityVector left, AngularVelocityVector right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._x + marshalSize += 4; // this._y + marshalSize += 4; // this._z + return marshalSize; + } + + /// + /// Gets or sets the velocity about the x axis + /// + [XmlElement(Type = typeof(float), ElementName = "x")] + public float X + { + get + { + return this._x; + } + + set + { + this._x = value; + } + } + + /// + /// Gets or sets the velocity about the y axis + /// + [XmlElement(Type = typeof(float), ElementName = "y")] + public float Y + { + get + { + return this._y; + } + + set + { + this._y = value; + } + } + + /// + /// Gets or sets the velocity about the zaxis + /// + [XmlElement(Type = typeof(float), ElementName = "z")] + public float Z + { + get + { + return this._z; + } + + set + { + this._z = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteFloat((float)this._x); + dos.WriteFloat((float)this._y); + dos.WriteFloat((float)this._z); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._x = dis.ReadFloat(); + this._y = dis.ReadFloat(); + this._z = dis.ReadFloat(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._x.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._y.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._z.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as AngularVelocityVector; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(AngularVelocityVector obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._x != obj._x) + { + ivarsEqual = false; + } + + if (this._y != obj._y) + { + ivarsEqual = false; + } + + if (this._z != obj._z) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._x.GetHashCode(); + result = GenerateHash(result) ^ this._y.GetHashCode(); + result = GenerateHash(result) ^ this._z.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/AntennaLocation.cs b/Libs/CsharpDis6/Dis1998/Generated/AntennaLocation.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/AntennaLocation.cs rename to Libs/CsharpDis6/Dis1998/Generated/AntennaLocation.cs index 96ed0ad..d6945ac 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/AntennaLocation.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/AntennaLocation.cs @@ -1,338 +1,338 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// 5.2.3: location of the radiating portion of the antenna, specified in world coordinates and entity coordinates. - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(Vector3Double))] - [XmlInclude(typeof(Vector3Float))] - public partial class AntennaLocation - { - /// - /// Location of the radiating portion of the antenna in world coordinates - /// - private Vector3Double _antennaLocation = new Vector3Double(); - - /// - /// Location of the radiating portion of the antenna in entity coordinates - /// - private Vector3Float _relativeAntennaLocation = new Vector3Float(); - - /// - /// Initializes a new instance of the class. - /// - public AntennaLocation() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(AntennaLocation left, AntennaLocation right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(AntennaLocation left, AntennaLocation right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += this._antennaLocation.GetMarshalledSize(); // this._antennaLocation - marshalSize += this._relativeAntennaLocation.GetMarshalledSize(); // this._relativeAntennaLocation - return marshalSize; - } - - /// - /// Gets or sets the Location of the radiating portion of the antenna in world coordinates - /// - [XmlElement(Type = typeof(Vector3Double), ElementName = "antennaLocation")] - public Vector3Double AntennaLocation_ - { - get - { - return this._antennaLocation; - } - - set - { - this._antennaLocation = value; - } - } - - /// - /// Gets or sets the Location of the radiating portion of the antenna in entity coordinates - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "relativeAntennaLocation")] - public Vector3Float RelativeAntennaLocation - { - get - { - return this._relativeAntennaLocation; - } - - set - { - this._relativeAntennaLocation = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - this._antennaLocation.Marshal(dos); - this._relativeAntennaLocation.Marshal(dos); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._antennaLocation.Unmarshal(dis); - this._relativeAntennaLocation.Unmarshal(dis); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine(""); - this._antennaLocation.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._relativeAntennaLocation.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as AntennaLocation; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(AntennaLocation obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (!this._antennaLocation.Equals(obj._antennaLocation)) - { - ivarsEqual = false; - } - - if (!this._relativeAntennaLocation.Equals(obj._relativeAntennaLocation)) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._antennaLocation.GetHashCode(); - result = GenerateHash(result) ^ this._relativeAntennaLocation.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// 5.2.3: location of the radiating portion of the antenna, specified in world coordinates and entity coordinates. + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(Vector3Double))] + [XmlInclude(typeof(Vector3Float))] + public partial class AntennaLocation + { + /// + /// Location of the radiating portion of the antenna in world coordinates + /// + private Vector3Double _antennaLocation = new Vector3Double(); + + /// + /// Location of the radiating portion of the antenna in entity coordinates + /// + private Vector3Float _relativeAntennaLocation = new Vector3Float(); + + /// + /// Initializes a new instance of the class. + /// + public AntennaLocation() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(AntennaLocation left, AntennaLocation right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(AntennaLocation left, AntennaLocation right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += this._antennaLocation.GetMarshalledSize(); // this._antennaLocation + marshalSize += this._relativeAntennaLocation.GetMarshalledSize(); // this._relativeAntennaLocation + return marshalSize; + } + + /// + /// Gets or sets the Location of the radiating portion of the antenna in world coordinates + /// + [XmlElement(Type = typeof(Vector3Double), ElementName = "antennaLocation")] + public Vector3Double AntennaLocation_ + { + get + { + return this._antennaLocation; + } + + set + { + this._antennaLocation = value; + } + } + + /// + /// Gets or sets the Location of the radiating portion of the antenna in entity coordinates + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "relativeAntennaLocation")] + public Vector3Float RelativeAntennaLocation + { + get + { + return this._relativeAntennaLocation; + } + + set + { + this._relativeAntennaLocation = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + this._antennaLocation.Marshal(dos); + this._relativeAntennaLocation.Marshal(dos); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._antennaLocation.Unmarshal(dis); + this._relativeAntennaLocation.Unmarshal(dis); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine(""); + this._antennaLocation.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._relativeAntennaLocation.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as AntennaLocation; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(AntennaLocation obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (!this._antennaLocation.Equals(obj._antennaLocation)) + { + ivarsEqual = false; + } + + if (!this._relativeAntennaLocation.Equals(obj._relativeAntennaLocation)) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._antennaLocation.GetHashCode(); + result = GenerateHash(result) ^ this._relativeAntennaLocation.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ApaData.cs b/Libs/CsharpDis6/Dis1998/Generated/ApaData.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/ApaData.cs rename to Libs/CsharpDis6/Dis1998/Generated/ApaData.cs index 1f1e5ef..b63527d 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ApaData.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/ApaData.cs @@ -1,332 +1,332 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Used in UA PDU - /// - [Serializable] - [XmlRoot] - public partial class ApaData - { - /// - /// Index of APA parameter - /// - private ushort _parameterIndex; - - /// - /// Index of APA parameter - /// - private short _parameterValue; - - /// - /// Initializes a new instance of the class. - /// - public ApaData() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ApaData left, ApaData right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ApaData left, ApaData right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 2; // this._parameterIndex - marshalSize += 2; // this._parameterValue - return marshalSize; - } - - /// - /// Gets or sets the Index of APA parameter - /// - [XmlElement(Type = typeof(ushort), ElementName = "parameterIndex")] - public ushort ParameterIndex - { - get - { - return this._parameterIndex; - } - - set - { - this._parameterIndex = value; - } - } - - /// - /// Gets or sets the Index of APA parameter - /// - [XmlElement(Type = typeof(short), ElementName = "parameterValue")] - public short ParameterValue - { - get - { - return this._parameterValue; - } - - set - { - this._parameterValue = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._parameterIndex); - dos.WriteShort((short)this._parameterValue); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._parameterIndex = dis.ReadUnsignedShort(); - this._parameterValue = dis.ReadShort(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._parameterIndex.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._parameterValue.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ApaData; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ApaData obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._parameterIndex != obj._parameterIndex) - { - ivarsEqual = false; - } - - if (this._parameterValue != obj._parameterValue) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._parameterIndex.GetHashCode(); - result = GenerateHash(result) ^ this._parameterValue.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Used in UA PDU + /// + [Serializable] + [XmlRoot] + public partial class ApaData + { + /// + /// Index of APA parameter + /// + private ushort _parameterIndex; + + /// + /// Index of APA parameter + /// + private short _parameterValue; + + /// + /// Initializes a new instance of the class. + /// + public ApaData() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ApaData left, ApaData right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ApaData left, ApaData right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 2; // this._parameterIndex + marshalSize += 2; // this._parameterValue + return marshalSize; + } + + /// + /// Gets or sets the Index of APA parameter + /// + [XmlElement(Type = typeof(ushort), ElementName = "parameterIndex")] + public ushort ParameterIndex + { + get + { + return this._parameterIndex; + } + + set + { + this._parameterIndex = value; + } + } + + /// + /// Gets or sets the Index of APA parameter + /// + [XmlElement(Type = typeof(short), ElementName = "parameterValue")] + public short ParameterValue + { + get + { + return this._parameterValue; + } + + set + { + this._parameterValue = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._parameterIndex); + dos.WriteShort((short)this._parameterValue); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._parameterIndex = dis.ReadUnsignedShort(); + this._parameterValue = dis.ReadShort(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._parameterIndex.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._parameterValue.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ApaData; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ApaData obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._parameterIndex != obj._parameterIndex) + { + ivarsEqual = false; + } + + if (this._parameterValue != obj._parameterValue) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._parameterIndex.GetHashCode(); + result = GenerateHash(result) ^ this._parameterValue.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ArealObjectStatePdu.cs b/Libs/CsharpDis6/Dis1998/Generated/ArealObjectStatePdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/ArealObjectStatePdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/ArealObjectStatePdu.cs index 5e06897..f419f91 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ArealObjectStatePdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/ArealObjectStatePdu.cs @@ -1,682 +1,682 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.11.5: Information about the addition/modification of an oobject that is geometrically achored to the terrain with a set of three or more points that come to a closure. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(EntityType))] - [XmlInclude(typeof(SixByteChunk))] - [XmlInclude(typeof(SimulationAddress))] - [XmlInclude(typeof(Vector3Double))] - public partial class ArealObjectStatePdu : SyntheticEnvironmentFamilyPdu, IEquatable - { - /// - /// Object in synthetic environment - /// - private EntityID _objectID = new EntityID(); - - /// - /// Object with which this point object is associated - /// - private EntityID _referencedObjectID = new EntityID(); - - /// - /// unique update number of each state transition of an object - /// - private ushort _updateNumber; - - /// - /// force ID - /// - private byte _forceID; - - /// - /// modifications enumeration - /// - private byte _modifications; - - /// - /// Object type - /// - private EntityType _objectType = new EntityType(); - - /// - /// Object appearance - /// - private SixByteChunk _objectAppearance = new SixByteChunk(); - - /// - /// Number of points - /// - private ushort _numberOfPoints; - - /// - /// requesterID - /// - private SimulationAddress _requesterID = new SimulationAddress(); - - /// - /// receiver ID - /// - private SimulationAddress _receivingID = new SimulationAddress(); - - /// - /// location of object - /// - private List _objectLocation = new List(); - - /// - /// Initializes a new instance of the class. - /// - public ArealObjectStatePdu() - { - PduType = (byte)45; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ArealObjectStatePdu left, ArealObjectStatePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ArealObjectStatePdu left, ArealObjectStatePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._objectID.GetMarshalledSize(); // this._objectID - marshalSize += this._referencedObjectID.GetMarshalledSize(); // this._referencedObjectID - marshalSize += 2; // this._updateNumber - marshalSize += 1; // this._forceID - marshalSize += 1; // this._modifications - marshalSize += this._objectType.GetMarshalledSize(); // this._objectType - marshalSize += this._objectAppearance.GetMarshalledSize(); // this._objectAppearance - marshalSize += 2; // this._numberOfPoints - marshalSize += this._requesterID.GetMarshalledSize(); // this._requesterID - marshalSize += this._receivingID.GetMarshalledSize(); // this._receivingID - for (int idx = 0; idx < this._objectLocation.Count; idx++) - { - Vector3Double listElement = (Vector3Double)this._objectLocation[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Object in synthetic environment - /// - [XmlElement(Type = typeof(EntityID), ElementName = "objectID")] - public EntityID ObjectID - { - get - { - return this._objectID; - } - - set - { - this._objectID = value; - } - } - - /// - /// Gets or sets the Object with which this point object is associated - /// - [XmlElement(Type = typeof(EntityID), ElementName = "referencedObjectID")] - public EntityID ReferencedObjectID - { - get - { - return this._referencedObjectID; - } - - set - { - this._referencedObjectID = value; - } - } - - /// - /// Gets or sets the unique update number of each state transition of an object - /// - [XmlElement(Type = typeof(ushort), ElementName = "updateNumber")] - public ushort UpdateNumber - { - get - { - return this._updateNumber; - } - - set - { - this._updateNumber = value; - } - } - - /// - /// Gets or sets the force ID - /// - [XmlElement(Type = typeof(byte), ElementName = "forceID")] - public byte ForceID - { - get - { - return this._forceID; - } - - set - { - this._forceID = value; - } - } - - /// - /// Gets or sets the modifications enumeration - /// - [XmlElement(Type = typeof(byte), ElementName = "modifications")] - public byte Modifications - { - get - { - return this._modifications; - } - - set - { - this._modifications = value; - } - } - - /// - /// Gets or sets the Object type - /// - [XmlElement(Type = typeof(EntityType), ElementName = "objectType")] - public EntityType ObjectType - { - get - { - return this._objectType; - } - - set - { - this._objectType = value; - } - } - - /// - /// Gets or sets the Object appearance - /// - [XmlElement(Type = typeof(SixByteChunk), ElementName = "objectAppearance")] - public SixByteChunk ObjectAppearance - { - get - { - return this._objectAppearance; - } - - set - { - this._objectAppearance = value; - } - } - - /// - /// Gets or sets the Number of points - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfPoints method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(ushort), ElementName = "numberOfPoints")] - public ushort NumberOfPoints - { - get - { - return this._numberOfPoints; - } - - set - { - this._numberOfPoints = value; - } - } - - /// - /// Gets or sets the requesterID - /// - [XmlElement(Type = typeof(SimulationAddress), ElementName = "requesterID")] - public SimulationAddress RequesterID - { - get - { - return this._requesterID; - } - - set - { - this._requesterID = value; - } - } - - /// - /// Gets or sets the receiver ID - /// - [XmlElement(Type = typeof(SimulationAddress), ElementName = "receivingID")] - public SimulationAddress ReceivingID - { - get - { - return this._receivingID; - } - - set - { - this._receivingID = value; - } - } - - /// - /// Gets the location of object - /// - [XmlElement(ElementName = "objectLocationList", Type = typeof(List))] - public List ObjectLocation - { - get - { - return this._objectLocation; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._objectID.Marshal(dos); - this._referencedObjectID.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._updateNumber); - dos.WriteUnsignedByte((byte)this._forceID); - dos.WriteUnsignedByte((byte)this._modifications); - this._objectType.Marshal(dos); - this._objectAppearance.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._objectLocation.Count); - this._requesterID.Marshal(dos); - this._receivingID.Marshal(dos); - - for (int idx = 0; idx < this._objectLocation.Count; idx++) - { - Vector3Double aVector3Double = (Vector3Double)this._objectLocation[idx]; - aVector3Double.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._objectID.Unmarshal(dis); - this._referencedObjectID.Unmarshal(dis); - this._updateNumber = dis.ReadUnsignedShort(); - this._forceID = dis.ReadUnsignedByte(); - this._modifications = dis.ReadUnsignedByte(); - this._objectType.Unmarshal(dis); - this._objectAppearance.Unmarshal(dis); - this._numberOfPoints = dis.ReadUnsignedShort(); - this._requesterID.Unmarshal(dis); - this._receivingID.Unmarshal(dis); - - for (int idx = 0; idx < this.NumberOfPoints; idx++) - { - Vector3Double anX = new Vector3Double(); - anX.Unmarshal(dis); - this._objectLocation.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._objectID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._referencedObjectID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._updateNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._forceID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._modifications.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._objectType.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._objectAppearance.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._objectLocation.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._requesterID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._receivingID.Reflection(sb); - sb.AppendLine(""); - for (int idx = 0; idx < this._objectLocation.Count; idx++) - { - sb.AppendLine(""); - Vector3Double aVector3Double = (Vector3Double)this._objectLocation[idx]; - aVector3Double.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ArealObjectStatePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ArealObjectStatePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._objectID.Equals(obj._objectID)) - { - ivarsEqual = false; - } - - if (!this._referencedObjectID.Equals(obj._referencedObjectID)) - { - ivarsEqual = false; - } - - if (this._updateNumber != obj._updateNumber) - { - ivarsEqual = false; - } - - if (this._forceID != obj._forceID) - { - ivarsEqual = false; - } - - if (this._modifications != obj._modifications) - { - ivarsEqual = false; - } - - if (!this._objectType.Equals(obj._objectType)) - { - ivarsEqual = false; - } - - if (!this._objectAppearance.Equals(obj._objectAppearance)) - { - ivarsEqual = false; - } - - if (this._numberOfPoints != obj._numberOfPoints) - { - ivarsEqual = false; - } - - if (!this._requesterID.Equals(obj._requesterID)) - { - ivarsEqual = false; - } - - if (!this._receivingID.Equals(obj._receivingID)) - { - ivarsEqual = false; - } - - if (this._objectLocation.Count != obj._objectLocation.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._objectLocation.Count; idx++) - { - if (!this._objectLocation[idx].Equals(obj._objectLocation[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._objectID.GetHashCode(); - result = GenerateHash(result) ^ this._referencedObjectID.GetHashCode(); - result = GenerateHash(result) ^ this._updateNumber.GetHashCode(); - result = GenerateHash(result) ^ this._forceID.GetHashCode(); - result = GenerateHash(result) ^ this._modifications.GetHashCode(); - result = GenerateHash(result) ^ this._objectType.GetHashCode(); - result = GenerateHash(result) ^ this._objectAppearance.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfPoints.GetHashCode(); - result = GenerateHash(result) ^ this._requesterID.GetHashCode(); - result = GenerateHash(result) ^ this._receivingID.GetHashCode(); - - if (this._objectLocation.Count > 0) - { - for (int idx = 0; idx < this._objectLocation.Count; idx++) - { - result = GenerateHash(result) ^ this._objectLocation[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.11.5: Information about the addition/modification of an oobject that is geometrically achored to the terrain with a set of three or more points that come to a closure. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(EntityType))] + [XmlInclude(typeof(SixByteChunk))] + [XmlInclude(typeof(SimulationAddress))] + [XmlInclude(typeof(Vector3Double))] + public partial class ArealObjectStatePdu : SyntheticEnvironmentFamilyPdu, IEquatable + { + /// + /// Object in synthetic environment + /// + private EntityID _objectID = new EntityID(); + + /// + /// Object with which this point object is associated + /// + private EntityID _referencedObjectID = new EntityID(); + + /// + /// unique update number of each state transition of an object + /// + private ushort _updateNumber; + + /// + /// force ID + /// + private byte _forceID; + + /// + /// modifications enumeration + /// + private byte _modifications; + + /// + /// Object type + /// + private EntityType _objectType = new EntityType(); + + /// + /// Object appearance + /// + private SixByteChunk _objectAppearance = new SixByteChunk(); + + /// + /// Number of points + /// + private ushort _numberOfPoints; + + /// + /// requesterID + /// + private SimulationAddress _requesterID = new SimulationAddress(); + + /// + /// receiver ID + /// + private SimulationAddress _receivingID = new SimulationAddress(); + + /// + /// location of object + /// + private List _objectLocation = new List(); + + /// + /// Initializes a new instance of the class. + /// + public ArealObjectStatePdu() + { + PduType = (byte)45; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ArealObjectStatePdu left, ArealObjectStatePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ArealObjectStatePdu left, ArealObjectStatePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._objectID.GetMarshalledSize(); // this._objectID + marshalSize += this._referencedObjectID.GetMarshalledSize(); // this._referencedObjectID + marshalSize += 2; // this._updateNumber + marshalSize += 1; // this._forceID + marshalSize += 1; // this._modifications + marshalSize += this._objectType.GetMarshalledSize(); // this._objectType + marshalSize += this._objectAppearance.GetMarshalledSize(); // this._objectAppearance + marshalSize += 2; // this._numberOfPoints + marshalSize += this._requesterID.GetMarshalledSize(); // this._requesterID + marshalSize += this._receivingID.GetMarshalledSize(); // this._receivingID + for (int idx = 0; idx < this._objectLocation.Count; idx++) + { + Vector3Double listElement = (Vector3Double)this._objectLocation[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Object in synthetic environment + /// + [XmlElement(Type = typeof(EntityID), ElementName = "objectID")] + public EntityID ObjectID + { + get + { + return this._objectID; + } + + set + { + this._objectID = value; + } + } + + /// + /// Gets or sets the Object with which this point object is associated + /// + [XmlElement(Type = typeof(EntityID), ElementName = "referencedObjectID")] + public EntityID ReferencedObjectID + { + get + { + return this._referencedObjectID; + } + + set + { + this._referencedObjectID = value; + } + } + + /// + /// Gets or sets the unique update number of each state transition of an object + /// + [XmlElement(Type = typeof(ushort), ElementName = "updateNumber")] + public ushort UpdateNumber + { + get + { + return this._updateNumber; + } + + set + { + this._updateNumber = value; + } + } + + /// + /// Gets or sets the force ID + /// + [XmlElement(Type = typeof(byte), ElementName = "forceID")] + public byte ForceID + { + get + { + return this._forceID; + } + + set + { + this._forceID = value; + } + } + + /// + /// Gets or sets the modifications enumeration + /// + [XmlElement(Type = typeof(byte), ElementName = "modifications")] + public byte Modifications + { + get + { + return this._modifications; + } + + set + { + this._modifications = value; + } + } + + /// + /// Gets or sets the Object type + /// + [XmlElement(Type = typeof(EntityType), ElementName = "objectType")] + public EntityType ObjectType + { + get + { + return this._objectType; + } + + set + { + this._objectType = value; + } + } + + /// + /// Gets or sets the Object appearance + /// + [XmlElement(Type = typeof(SixByteChunk), ElementName = "objectAppearance")] + public SixByteChunk ObjectAppearance + { + get + { + return this._objectAppearance; + } + + set + { + this._objectAppearance = value; + } + } + + /// + /// Gets or sets the Number of points + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfPoints method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(ushort), ElementName = "numberOfPoints")] + public ushort NumberOfPoints + { + get + { + return this._numberOfPoints; + } + + set + { + this._numberOfPoints = value; + } + } + + /// + /// Gets or sets the requesterID + /// + [XmlElement(Type = typeof(SimulationAddress), ElementName = "requesterID")] + public SimulationAddress RequesterID + { + get + { + return this._requesterID; + } + + set + { + this._requesterID = value; + } + } + + /// + /// Gets or sets the receiver ID + /// + [XmlElement(Type = typeof(SimulationAddress), ElementName = "receivingID")] + public SimulationAddress ReceivingID + { + get + { + return this._receivingID; + } + + set + { + this._receivingID = value; + } + } + + /// + /// Gets the location of object + /// + [XmlElement(ElementName = "objectLocationList", Type = typeof(List))] + public List ObjectLocation + { + get + { + return this._objectLocation; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._objectID.Marshal(dos); + this._referencedObjectID.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._updateNumber); + dos.WriteUnsignedByte((byte)this._forceID); + dos.WriteUnsignedByte((byte)this._modifications); + this._objectType.Marshal(dos); + this._objectAppearance.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._objectLocation.Count); + this._requesterID.Marshal(dos); + this._receivingID.Marshal(dos); + + for (int idx = 0; idx < this._objectLocation.Count; idx++) + { + Vector3Double aVector3Double = (Vector3Double)this._objectLocation[idx]; + aVector3Double.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._objectID.Unmarshal(dis); + this._referencedObjectID.Unmarshal(dis); + this._updateNumber = dis.ReadUnsignedShort(); + this._forceID = dis.ReadUnsignedByte(); + this._modifications = dis.ReadUnsignedByte(); + this._objectType.Unmarshal(dis); + this._objectAppearance.Unmarshal(dis); + this._numberOfPoints = dis.ReadUnsignedShort(); + this._requesterID.Unmarshal(dis); + this._receivingID.Unmarshal(dis); + + for (int idx = 0; idx < this.NumberOfPoints; idx++) + { + Vector3Double anX = new Vector3Double(); + anX.Unmarshal(dis); + this._objectLocation.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._objectID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._referencedObjectID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._updateNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._forceID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._modifications.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._objectType.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._objectAppearance.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._objectLocation.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._requesterID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._receivingID.Reflection(sb); + sb.AppendLine(""); + for (int idx = 0; idx < this._objectLocation.Count; idx++) + { + sb.AppendLine(""); + Vector3Double aVector3Double = (Vector3Double)this._objectLocation[idx]; + aVector3Double.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ArealObjectStatePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ArealObjectStatePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._objectID.Equals(obj._objectID)) + { + ivarsEqual = false; + } + + if (!this._referencedObjectID.Equals(obj._referencedObjectID)) + { + ivarsEqual = false; + } + + if (this._updateNumber != obj._updateNumber) + { + ivarsEqual = false; + } + + if (this._forceID != obj._forceID) + { + ivarsEqual = false; + } + + if (this._modifications != obj._modifications) + { + ivarsEqual = false; + } + + if (!this._objectType.Equals(obj._objectType)) + { + ivarsEqual = false; + } + + if (!this._objectAppearance.Equals(obj._objectAppearance)) + { + ivarsEqual = false; + } + + if (this._numberOfPoints != obj._numberOfPoints) + { + ivarsEqual = false; + } + + if (!this._requesterID.Equals(obj._requesterID)) + { + ivarsEqual = false; + } + + if (!this._receivingID.Equals(obj._receivingID)) + { + ivarsEqual = false; + } + + if (this._objectLocation.Count != obj._objectLocation.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._objectLocation.Count; idx++) + { + if (!this._objectLocation[idx].Equals(obj._objectLocation[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._objectID.GetHashCode(); + result = GenerateHash(result) ^ this._referencedObjectID.GetHashCode(); + result = GenerateHash(result) ^ this._updateNumber.GetHashCode(); + result = GenerateHash(result) ^ this._forceID.GetHashCode(); + result = GenerateHash(result) ^ this._modifications.GetHashCode(); + result = GenerateHash(result) ^ this._objectType.GetHashCode(); + result = GenerateHash(result) ^ this._objectAppearance.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfPoints.GetHashCode(); + result = GenerateHash(result) ^ this._requesterID.GetHashCode(); + result = GenerateHash(result) ^ this._receivingID.GetHashCode(); + + if (this._objectLocation.Count > 0) + { + for (int idx = 0; idx < this._objectLocation.Count; idx++) + { + result = GenerateHash(result) ^ this._objectLocation[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ArticulationParameter.cs b/Libs/CsharpDis6/Dis1998/Generated/ArticulationParameter.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/ArticulationParameter.cs rename to Libs/CsharpDis6/Dis1998/Generated/ArticulationParameter.cs index cd036ca..e40e079 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ArticulationParameter.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/ArticulationParameter.cs @@ -1,413 +1,413 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.2.5. Articulation parameters for movable parts and attached parts of an entity. Specifes wether or not a change has occured, the part identifcation of the articulated part to which it is attached, and the type and value of each parameter. - /// - [Serializable] - [XmlRoot] - public partial class ArticulationParameter - { - private byte _parameterTypeDesignator; - - private byte _changeIndicator; - - private ushort _partAttachedTo; - - private int _parameterType; - - private double _parameterValue; - - /// - /// Initializes a new instance of the class. - /// - public ArticulationParameter() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ArticulationParameter left, ArticulationParameter right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ArticulationParameter left, ArticulationParameter right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._parameterTypeDesignator - marshalSize += 1; // this._changeIndicator - marshalSize += 2; // this._partAttachedTo - marshalSize += 4; // this._parameterType - marshalSize += 8; // this._parameterValue - return marshalSize; - } - - /// - /// Gets or sets the parameterTypeDesignator - /// - [XmlElement(Type = typeof(byte), ElementName = "parameterTypeDesignator")] - public byte ParameterTypeDesignator - { - get - { - return this._parameterTypeDesignator; - } - - set - { - this._parameterTypeDesignator = value; - } - } - - /// - /// Gets or sets the changeIndicator - /// - [XmlElement(Type = typeof(byte), ElementName = "changeIndicator")] - public byte ChangeIndicator - { - get - { - return this._changeIndicator; - } - - set - { - this._changeIndicator = value; - } - } - - /// - /// Gets or sets the partAttachedTo - /// - [XmlElement(Type = typeof(ushort), ElementName = "partAttachedTo")] - public ushort PartAttachedTo - { - get - { - return this._partAttachedTo; - } - - set - { - this._partAttachedTo = value; - } - } - - /// - /// Gets or sets the parameterType - /// - [XmlElement(Type = typeof(int), ElementName = "parameterType")] - public int ParameterType - { - get - { - return this._parameterType; - } - - set - { - this._parameterType = value; - } - } - - /// - /// Gets or sets the parameterValue - /// - [XmlElement(Type = typeof(double), ElementName = "parameterValue")] - public double ParameterValue - { - get - { - return this._parameterValue; - } - - set - { - this._parameterValue = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._parameterTypeDesignator); - dos.WriteUnsignedByte((byte)this._changeIndicator); - dos.WriteUnsignedShort((ushort)this._partAttachedTo); - dos.WriteInt((int)this._parameterType); - dos.WriteDouble((double)this._parameterValue); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._parameterTypeDesignator = dis.ReadUnsignedByte(); - this._changeIndicator = dis.ReadUnsignedByte(); - this._partAttachedTo = dis.ReadUnsignedShort(); - this._parameterType = dis.ReadInt(); - this._parameterValue = dis.ReadDouble(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._parameterTypeDesignator.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._changeIndicator.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._partAttachedTo.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._parameterType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._parameterValue.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ArticulationParameter; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ArticulationParameter obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._parameterTypeDesignator != obj._parameterTypeDesignator) - { - ivarsEqual = false; - } - - if (this._changeIndicator != obj._changeIndicator) - { - ivarsEqual = false; - } - - if (this._partAttachedTo != obj._partAttachedTo) - { - ivarsEqual = false; - } - - if (this._parameterType != obj._parameterType) - { - ivarsEqual = false; - } - - if (this._parameterValue != obj._parameterValue) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._parameterTypeDesignator.GetHashCode(); - result = GenerateHash(result) ^ this._changeIndicator.GetHashCode(); - result = GenerateHash(result) ^ this._partAttachedTo.GetHashCode(); - result = GenerateHash(result) ^ this._parameterType.GetHashCode(); - result = GenerateHash(result) ^ this._parameterValue.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.2.5. Articulation parameters for movable parts and attached parts of an entity. Specifes wether or not a change has occured, the part identifcation of the articulated part to which it is attached, and the type and value of each parameter. + /// + [Serializable] + [XmlRoot] + public partial class ArticulationParameter + { + private byte _parameterTypeDesignator; + + private byte _changeIndicator; + + private ushort _partAttachedTo; + + private int _parameterType; + + private double _parameterValue; + + /// + /// Initializes a new instance of the class. + /// + public ArticulationParameter() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ArticulationParameter left, ArticulationParameter right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ArticulationParameter left, ArticulationParameter right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._parameterTypeDesignator + marshalSize += 1; // this._changeIndicator + marshalSize += 2; // this._partAttachedTo + marshalSize += 4; // this._parameterType + marshalSize += 8; // this._parameterValue + return marshalSize; + } + + /// + /// Gets or sets the parameterTypeDesignator + /// + [XmlElement(Type = typeof(byte), ElementName = "parameterTypeDesignator")] + public byte ParameterTypeDesignator + { + get + { + return this._parameterTypeDesignator; + } + + set + { + this._parameterTypeDesignator = value; + } + } + + /// + /// Gets or sets the changeIndicator + /// + [XmlElement(Type = typeof(byte), ElementName = "changeIndicator")] + public byte ChangeIndicator + { + get + { + return this._changeIndicator; + } + + set + { + this._changeIndicator = value; + } + } + + /// + /// Gets or sets the partAttachedTo + /// + [XmlElement(Type = typeof(ushort), ElementName = "partAttachedTo")] + public ushort PartAttachedTo + { + get + { + return this._partAttachedTo; + } + + set + { + this._partAttachedTo = value; + } + } + + /// + /// Gets or sets the parameterType + /// + [XmlElement(Type = typeof(int), ElementName = "parameterType")] + public int ParameterType + { + get + { + return this._parameterType; + } + + set + { + this._parameterType = value; + } + } + + /// + /// Gets or sets the parameterValue + /// + [XmlElement(Type = typeof(double), ElementName = "parameterValue")] + public double ParameterValue + { + get + { + return this._parameterValue; + } + + set + { + this._parameterValue = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._parameterTypeDesignator); + dos.WriteUnsignedByte((byte)this._changeIndicator); + dos.WriteUnsignedShort((ushort)this._partAttachedTo); + dos.WriteInt((int)this._parameterType); + dos.WriteDouble((double)this._parameterValue); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._parameterTypeDesignator = dis.ReadUnsignedByte(); + this._changeIndicator = dis.ReadUnsignedByte(); + this._partAttachedTo = dis.ReadUnsignedShort(); + this._parameterType = dis.ReadInt(); + this._parameterValue = dis.ReadDouble(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._parameterTypeDesignator.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._changeIndicator.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._partAttachedTo.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._parameterType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._parameterValue.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ArticulationParameter; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ArticulationParameter obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._parameterTypeDesignator != obj._parameterTypeDesignator) + { + ivarsEqual = false; + } + + if (this._changeIndicator != obj._changeIndicator) + { + ivarsEqual = false; + } + + if (this._partAttachedTo != obj._partAttachedTo) + { + ivarsEqual = false; + } + + if (this._parameterType != obj._parameterType) + { + ivarsEqual = false; + } + + if (this._parameterValue != obj._parameterValue) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._parameterTypeDesignator.GetHashCode(); + result = GenerateHash(result) ^ this._changeIndicator.GetHashCode(); + result = GenerateHash(result) ^ this._partAttachedTo.GetHashCode(); + result = GenerateHash(result) ^ this._parameterType.GetHashCode(); + result = GenerateHash(result) ^ this._parameterValue.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/BeamAntennaPattern.cs b/Libs/CsharpDis6/Dis1998/Generated/BeamAntennaPattern.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/BeamAntennaPattern.cs rename to Libs/CsharpDis6/Dis1998/Generated/BeamAntennaPattern.cs index f7048cd..53935f1 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/BeamAntennaPattern.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/BeamAntennaPattern.cs @@ -1,515 +1,515 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.2.4.2. Used when the antenna pattern type field has a value of 1. Specifies the direction, patter, and polarization of radiation from an antenna. - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(Orientation))] - public partial class BeamAntennaPattern - { - /// - /// The rotation that transformst he reference coordinate sytem into the beam coordinate system. Either world coordinates or entity coordinates may be used as the reference coordinate system, as specified by teh reference system field of the antenna pattern record. - /// - private Orientation _beamDirection = new Orientation(); - - private float _azimuthBeamwidth; - - private float _referenceSystem; - - private short _padding1; - - private byte _padding2; - - /// - /// Magnigute of the z-component in beam coordinates at some arbitrary single point in the mainbeam and in the far field of the antenna. - /// - private float _ez; - - /// - /// Magnigute of the x-component in beam coordinates at some arbitrary single point in the mainbeam and in the far field of the antenna. - /// - private float _ex; - - /// - /// THe phase angle between Ez and Ex in radians. - /// - private float _phase; - - /// - /// Initializes a new instance of the class. - /// - public BeamAntennaPattern() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(BeamAntennaPattern left, BeamAntennaPattern right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(BeamAntennaPattern left, BeamAntennaPattern right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += this._beamDirection.GetMarshalledSize(); // this._beamDirection - marshalSize += 4; // this._azimuthBeamwidth - marshalSize += 4; // this._referenceSystem - marshalSize += 2; // this._padding1 - marshalSize += 1; // this._padding2 - marshalSize += 4; // this._ez - marshalSize += 4; // this._ex - marshalSize += 4; // this._phase - return marshalSize; - } - - /// - /// Gets or sets the The rotation that transformst he reference coordinate sytem into the beam coordinate system. Either world coordinates or entity coordinates may be used as the reference coordinate system, as specified by teh reference system field of the antenna pattern record. - /// - [XmlElement(Type = typeof(Orientation), ElementName = "beamDirection")] - public Orientation BeamDirection - { - get - { - return this._beamDirection; - } - - set - { - this._beamDirection = value; - } - } - - /// - /// Gets or sets the azimuthBeamwidth - /// - [XmlElement(Type = typeof(float), ElementName = "azimuthBeamwidth")] - public float AzimuthBeamwidth - { - get - { - return this._azimuthBeamwidth; - } - - set - { - this._azimuthBeamwidth = value; - } - } - - /// - /// Gets or sets the referenceSystem - /// - [XmlElement(Type = typeof(float), ElementName = "referenceSystem")] - public float ReferenceSystem - { - get - { - return this._referenceSystem; - } - - set - { - this._referenceSystem = value; - } - } - - /// - /// Gets or sets the padding1 - /// - [XmlElement(Type = typeof(short), ElementName = "padding1")] - public short Padding1 - { - get - { - return this._padding1; - } - - set - { - this._padding1 = value; - } - } - - /// - /// Gets or sets the padding2 - /// - [XmlElement(Type = typeof(byte), ElementName = "padding2")] - public byte Padding2 - { - get - { - return this._padding2; - } - - set - { - this._padding2 = value; - } - } - - /// - /// Gets or sets the Magnigute of the z-component in beam coordinates at some arbitrary single point in the mainbeam and in the far field of the antenna. - /// - [XmlElement(Type = typeof(float), ElementName = "ez")] - public float Ez - { - get - { - return this._ez; - } - - set - { - this._ez = value; - } - } - - /// - /// Gets or sets the Magnigute of the x-component in beam coordinates at some arbitrary single point in the mainbeam and in the far field of the antenna. - /// - [XmlElement(Type = typeof(float), ElementName = "ex")] - public float Ex - { - get - { - return this._ex; - } - - set - { - this._ex = value; - } - } - - /// - /// Gets or sets the THe phase angle between Ez and Ex in radians. - /// - [XmlElement(Type = typeof(float), ElementName = "phase")] - public float Phase - { - get - { - return this._phase; - } - - set - { - this._phase = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - this._beamDirection.Marshal(dos); - dos.WriteFloat((float)this._azimuthBeamwidth); - dos.WriteFloat((float)this._referenceSystem); - dos.WriteShort((short)this._padding1); - dos.WriteByte((byte)this._padding2); - dos.WriteFloat((float)this._ez); - dos.WriteFloat((float)this._ex); - dos.WriteFloat((float)this._phase); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._beamDirection.Unmarshal(dis); - this._azimuthBeamwidth = dis.ReadFloat(); - this._referenceSystem = dis.ReadFloat(); - this._padding1 = dis.ReadShort(); - this._padding2 = dis.ReadByte(); - this._ez = dis.ReadFloat(); - this._ex = dis.ReadFloat(); - this._phase = dis.ReadFloat(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine(""); - this._beamDirection.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._azimuthBeamwidth.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._referenceSystem.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._ez.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._ex.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._phase.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as BeamAntennaPattern; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(BeamAntennaPattern obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (!this._beamDirection.Equals(obj._beamDirection)) - { - ivarsEqual = false; - } - - if (this._azimuthBeamwidth != obj._azimuthBeamwidth) - { - ivarsEqual = false; - } - - if (this._referenceSystem != obj._referenceSystem) - { - ivarsEqual = false; - } - - if (this._padding1 != obj._padding1) - { - ivarsEqual = false; - } - - if (this._padding2 != obj._padding2) - { - ivarsEqual = false; - } - - if (this._ez != obj._ez) - { - ivarsEqual = false; - } - - if (this._ex != obj._ex) - { - ivarsEqual = false; - } - - if (this._phase != obj._phase) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._beamDirection.GetHashCode(); - result = GenerateHash(result) ^ this._azimuthBeamwidth.GetHashCode(); - result = GenerateHash(result) ^ this._referenceSystem.GetHashCode(); - result = GenerateHash(result) ^ this._padding1.GetHashCode(); - result = GenerateHash(result) ^ this._padding2.GetHashCode(); - result = GenerateHash(result) ^ this._ez.GetHashCode(); - result = GenerateHash(result) ^ this._ex.GetHashCode(); - result = GenerateHash(result) ^ this._phase.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.2.4.2. Used when the antenna pattern type field has a value of 1. Specifies the direction, patter, and polarization of radiation from an antenna. + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(Orientation))] + public partial class BeamAntennaPattern + { + /// + /// The rotation that transformst he reference coordinate sytem into the beam coordinate system. Either world coordinates or entity coordinates may be used as the reference coordinate system, as specified by teh reference system field of the antenna pattern record. + /// + private Orientation _beamDirection = new Orientation(); + + private float _azimuthBeamwidth; + + private float _referenceSystem; + + private short _padding1; + + private byte _padding2; + + /// + /// Magnigute of the z-component in beam coordinates at some arbitrary single point in the mainbeam and in the far field of the antenna. + /// + private float _ez; + + /// + /// Magnigute of the x-component in beam coordinates at some arbitrary single point in the mainbeam and in the far field of the antenna. + /// + private float _ex; + + /// + /// THe phase angle between Ez and Ex in radians. + /// + private float _phase; + + /// + /// Initializes a new instance of the class. + /// + public BeamAntennaPattern() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(BeamAntennaPattern left, BeamAntennaPattern right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(BeamAntennaPattern left, BeamAntennaPattern right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += this._beamDirection.GetMarshalledSize(); // this._beamDirection + marshalSize += 4; // this._azimuthBeamwidth + marshalSize += 4; // this._referenceSystem + marshalSize += 2; // this._padding1 + marshalSize += 1; // this._padding2 + marshalSize += 4; // this._ez + marshalSize += 4; // this._ex + marshalSize += 4; // this._phase + return marshalSize; + } + + /// + /// Gets or sets the The rotation that transformst he reference coordinate sytem into the beam coordinate system. Either world coordinates or entity coordinates may be used as the reference coordinate system, as specified by teh reference system field of the antenna pattern record. + /// + [XmlElement(Type = typeof(Orientation), ElementName = "beamDirection")] + public Orientation BeamDirection + { + get + { + return this._beamDirection; + } + + set + { + this._beamDirection = value; + } + } + + /// + /// Gets or sets the azimuthBeamwidth + /// + [XmlElement(Type = typeof(float), ElementName = "azimuthBeamwidth")] + public float AzimuthBeamwidth + { + get + { + return this._azimuthBeamwidth; + } + + set + { + this._azimuthBeamwidth = value; + } + } + + /// + /// Gets or sets the referenceSystem + /// + [XmlElement(Type = typeof(float), ElementName = "referenceSystem")] + public float ReferenceSystem + { + get + { + return this._referenceSystem; + } + + set + { + this._referenceSystem = value; + } + } + + /// + /// Gets or sets the padding1 + /// + [XmlElement(Type = typeof(short), ElementName = "padding1")] + public short Padding1 + { + get + { + return this._padding1; + } + + set + { + this._padding1 = value; + } + } + + /// + /// Gets or sets the padding2 + /// + [XmlElement(Type = typeof(byte), ElementName = "padding2")] + public byte Padding2 + { + get + { + return this._padding2; + } + + set + { + this._padding2 = value; + } + } + + /// + /// Gets or sets the Magnigute of the z-component in beam coordinates at some arbitrary single point in the mainbeam and in the far field of the antenna. + /// + [XmlElement(Type = typeof(float), ElementName = "ez")] + public float Ez + { + get + { + return this._ez; + } + + set + { + this._ez = value; + } + } + + /// + /// Gets or sets the Magnigute of the x-component in beam coordinates at some arbitrary single point in the mainbeam and in the far field of the antenna. + /// + [XmlElement(Type = typeof(float), ElementName = "ex")] + public float Ex + { + get + { + return this._ex; + } + + set + { + this._ex = value; + } + } + + /// + /// Gets or sets the THe phase angle between Ez and Ex in radians. + /// + [XmlElement(Type = typeof(float), ElementName = "phase")] + public float Phase + { + get + { + return this._phase; + } + + set + { + this._phase = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + this._beamDirection.Marshal(dos); + dos.WriteFloat((float)this._azimuthBeamwidth); + dos.WriteFloat((float)this._referenceSystem); + dos.WriteShort((short)this._padding1); + dos.WriteByte((byte)this._padding2); + dos.WriteFloat((float)this._ez); + dos.WriteFloat((float)this._ex); + dos.WriteFloat((float)this._phase); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._beamDirection.Unmarshal(dis); + this._azimuthBeamwidth = dis.ReadFloat(); + this._referenceSystem = dis.ReadFloat(); + this._padding1 = dis.ReadShort(); + this._padding2 = dis.ReadByte(); + this._ez = dis.ReadFloat(); + this._ex = dis.ReadFloat(); + this._phase = dis.ReadFloat(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine(""); + this._beamDirection.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._azimuthBeamwidth.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._referenceSystem.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._ez.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._ex.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._phase.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as BeamAntennaPattern; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(BeamAntennaPattern obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (!this._beamDirection.Equals(obj._beamDirection)) + { + ivarsEqual = false; + } + + if (this._azimuthBeamwidth != obj._azimuthBeamwidth) + { + ivarsEqual = false; + } + + if (this._referenceSystem != obj._referenceSystem) + { + ivarsEqual = false; + } + + if (this._padding1 != obj._padding1) + { + ivarsEqual = false; + } + + if (this._padding2 != obj._padding2) + { + ivarsEqual = false; + } + + if (this._ez != obj._ez) + { + ivarsEqual = false; + } + + if (this._ex != obj._ex) + { + ivarsEqual = false; + } + + if (this._phase != obj._phase) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._beamDirection.GetHashCode(); + result = GenerateHash(result) ^ this._azimuthBeamwidth.GetHashCode(); + result = GenerateHash(result) ^ this._referenceSystem.GetHashCode(); + result = GenerateHash(result) ^ this._padding1.GetHashCode(); + result = GenerateHash(result) ^ this._padding2.GetHashCode(); + result = GenerateHash(result) ^ this._ez.GetHashCode(); + result = GenerateHash(result) ^ this._ex.GetHashCode(); + result = GenerateHash(result) ^ this._phase.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/BeamData.cs b/Libs/CsharpDis6/Dis1998/Generated/BeamData.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/BeamData.cs rename to Libs/CsharpDis6/Dis1998/Generated/BeamData.cs index ecea170..715c79e 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/BeamData.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/BeamData.cs @@ -1,428 +1,428 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.2.39. Specification of the data necessary to describe the scan volume of an emitter. - /// - [Serializable] - [XmlRoot] - public partial class BeamData - { - /// - /// Specifies the beam azimuth an elevation centers and corresponding half-angles to describe the scan volume - /// - private float _beamAzimuthCenter; - - /// - /// Specifies the beam azimuth sweep to determine scan volume - /// - private float _beamAzimuthSweep; - - /// - /// Specifies the beam elevation center to determine scan volume - /// - private float _beamElevationCenter; - - /// - /// Specifies the beam elevation sweep to determine scan volume - /// - private float _beamElevationSweep; - - /// - /// allows receiver to synchronize its regenerated scan pattern to that of the emmitter. Specifies the percentage of time a scan is through its pattern from its origion. - /// - private float _beamSweepSync; - - /// - /// Initializes a new instance of the class. - /// - public BeamData() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(BeamData left, BeamData right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(BeamData left, BeamData right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._beamAzimuthCenter - marshalSize += 4; // this._beamAzimuthSweep - marshalSize += 4; // this._beamElevationCenter - marshalSize += 4; // this._beamElevationSweep - marshalSize += 4; // this._beamSweepSync - return marshalSize; - } - - /// - /// Gets or sets the Specifies the beam azimuth an elevation centers and corresponding half-angles to describe the scan volume - /// - [XmlElement(Type = typeof(float), ElementName = "beamAzimuthCenter")] - public float BeamAzimuthCenter - { - get - { - return this._beamAzimuthCenter; - } - - set - { - this._beamAzimuthCenter = value; - } - } - - /// - /// Gets or sets the Specifies the beam azimuth sweep to determine scan volume - /// - [XmlElement(Type = typeof(float), ElementName = "beamAzimuthSweep")] - public float BeamAzimuthSweep - { - get - { - return this._beamAzimuthSweep; - } - - set - { - this._beamAzimuthSweep = value; - } - } - - /// - /// Gets or sets the Specifies the beam elevation center to determine scan volume - /// - [XmlElement(Type = typeof(float), ElementName = "beamElevationCenter")] - public float BeamElevationCenter - { - get - { - return this._beamElevationCenter; - } - - set - { - this._beamElevationCenter = value; - } - } - - /// - /// Gets or sets the Specifies the beam elevation sweep to determine scan volume - /// - [XmlElement(Type = typeof(float), ElementName = "beamElevationSweep")] - public float BeamElevationSweep - { - get - { - return this._beamElevationSweep; - } - - set - { - this._beamElevationSweep = value; - } - } - - /// - /// Gets or sets the allows receiver to synchronize its regenerated scan pattern to that of the emmitter. Specifies the percentage of time a scan is through its pattern from its origion. - /// - [XmlElement(Type = typeof(float), ElementName = "beamSweepSync")] - public float BeamSweepSync - { - get - { - return this._beamSweepSync; - } - - set - { - this._beamSweepSync = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteFloat((float)this._beamAzimuthCenter); - dos.WriteFloat((float)this._beamAzimuthSweep); - dos.WriteFloat((float)this._beamElevationCenter); - dos.WriteFloat((float)this._beamElevationSweep); - dos.WriteFloat((float)this._beamSweepSync); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._beamAzimuthCenter = dis.ReadFloat(); - this._beamAzimuthSweep = dis.ReadFloat(); - this._beamElevationCenter = dis.ReadFloat(); - this._beamElevationSweep = dis.ReadFloat(); - this._beamSweepSync = dis.ReadFloat(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._beamAzimuthCenter.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._beamAzimuthSweep.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._beamElevationCenter.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._beamElevationSweep.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._beamSweepSync.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as BeamData; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(BeamData obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._beamAzimuthCenter != obj._beamAzimuthCenter) - { - ivarsEqual = false; - } - - if (this._beamAzimuthSweep != obj._beamAzimuthSweep) - { - ivarsEqual = false; - } - - if (this._beamElevationCenter != obj._beamElevationCenter) - { - ivarsEqual = false; - } - - if (this._beamElevationSweep != obj._beamElevationSweep) - { - ivarsEqual = false; - } - - if (this._beamSweepSync != obj._beamSweepSync) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._beamAzimuthCenter.GetHashCode(); - result = GenerateHash(result) ^ this._beamAzimuthSweep.GetHashCode(); - result = GenerateHash(result) ^ this._beamElevationCenter.GetHashCode(); - result = GenerateHash(result) ^ this._beamElevationSweep.GetHashCode(); - result = GenerateHash(result) ^ this._beamSweepSync.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.2.39. Specification of the data necessary to describe the scan volume of an emitter. + /// + [Serializable] + [XmlRoot] + public partial class BeamData + { + /// + /// Specifies the beam azimuth an elevation centers and corresponding half-angles to describe the scan volume + /// + private float _beamAzimuthCenter; + + /// + /// Specifies the beam azimuth sweep to determine scan volume + /// + private float _beamAzimuthSweep; + + /// + /// Specifies the beam elevation center to determine scan volume + /// + private float _beamElevationCenter; + + /// + /// Specifies the beam elevation sweep to determine scan volume + /// + private float _beamElevationSweep; + + /// + /// allows receiver to synchronize its regenerated scan pattern to that of the emmitter. Specifies the percentage of time a scan is through its pattern from its origion. + /// + private float _beamSweepSync; + + /// + /// Initializes a new instance of the class. + /// + public BeamData() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(BeamData left, BeamData right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(BeamData left, BeamData right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._beamAzimuthCenter + marshalSize += 4; // this._beamAzimuthSweep + marshalSize += 4; // this._beamElevationCenter + marshalSize += 4; // this._beamElevationSweep + marshalSize += 4; // this._beamSweepSync + return marshalSize; + } + + /// + /// Gets or sets the Specifies the beam azimuth an elevation centers and corresponding half-angles to describe the scan volume + /// + [XmlElement(Type = typeof(float), ElementName = "beamAzimuthCenter")] + public float BeamAzimuthCenter + { + get + { + return this._beamAzimuthCenter; + } + + set + { + this._beamAzimuthCenter = value; + } + } + + /// + /// Gets or sets the Specifies the beam azimuth sweep to determine scan volume + /// + [XmlElement(Type = typeof(float), ElementName = "beamAzimuthSweep")] + public float BeamAzimuthSweep + { + get + { + return this._beamAzimuthSweep; + } + + set + { + this._beamAzimuthSweep = value; + } + } + + /// + /// Gets or sets the Specifies the beam elevation center to determine scan volume + /// + [XmlElement(Type = typeof(float), ElementName = "beamElevationCenter")] + public float BeamElevationCenter + { + get + { + return this._beamElevationCenter; + } + + set + { + this._beamElevationCenter = value; + } + } + + /// + /// Gets or sets the Specifies the beam elevation sweep to determine scan volume + /// + [XmlElement(Type = typeof(float), ElementName = "beamElevationSweep")] + public float BeamElevationSweep + { + get + { + return this._beamElevationSweep; + } + + set + { + this._beamElevationSweep = value; + } + } + + /// + /// Gets or sets the allows receiver to synchronize its regenerated scan pattern to that of the emmitter. Specifies the percentage of time a scan is through its pattern from its origion. + /// + [XmlElement(Type = typeof(float), ElementName = "beamSweepSync")] + public float BeamSweepSync + { + get + { + return this._beamSweepSync; + } + + set + { + this._beamSweepSync = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteFloat((float)this._beamAzimuthCenter); + dos.WriteFloat((float)this._beamAzimuthSweep); + dos.WriteFloat((float)this._beamElevationCenter); + dos.WriteFloat((float)this._beamElevationSweep); + dos.WriteFloat((float)this._beamSweepSync); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._beamAzimuthCenter = dis.ReadFloat(); + this._beamAzimuthSweep = dis.ReadFloat(); + this._beamElevationCenter = dis.ReadFloat(); + this._beamElevationSweep = dis.ReadFloat(); + this._beamSweepSync = dis.ReadFloat(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._beamAzimuthCenter.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._beamAzimuthSweep.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._beamElevationCenter.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._beamElevationSweep.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._beamSweepSync.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as BeamData; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(BeamData obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._beamAzimuthCenter != obj._beamAzimuthCenter) + { + ivarsEqual = false; + } + + if (this._beamAzimuthSweep != obj._beamAzimuthSweep) + { + ivarsEqual = false; + } + + if (this._beamElevationCenter != obj._beamElevationCenter) + { + ivarsEqual = false; + } + + if (this._beamElevationSweep != obj._beamElevationSweep) + { + ivarsEqual = false; + } + + if (this._beamSweepSync != obj._beamSweepSync) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._beamAzimuthCenter.GetHashCode(); + result = GenerateHash(result) ^ this._beamAzimuthSweep.GetHashCode(); + result = GenerateHash(result) ^ this._beamElevationCenter.GetHashCode(); + result = GenerateHash(result) ^ this._beamElevationSweep.GetHashCode(); + result = GenerateHash(result) ^ this._beamSweepSync.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/BurstDescriptor.cs b/Libs/CsharpDis6/Dis1998/Generated/BurstDescriptor.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/BurstDescriptor.cs rename to Libs/CsharpDis6/Dis1998/Generated/BurstDescriptor.cs index 754dac1..1a7f02f 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/BurstDescriptor.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/BurstDescriptor.cs @@ -1,431 +1,431 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.2.7. Specifies the type of muntion fired, the type of warhead, the type of fuse, the number of rounds fired, and the rate at which the roudns are fired in rounds per minute. - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityType))] - public partial class BurstDescriptor - { - /// - /// What munition was used in the burst - /// - private EntityType _munition = new EntityType(); - - /// - /// type of warhead - /// - private ushort _warhead; - - /// - /// type of fuse used - /// - private ushort _fuse; - - /// - /// how many of the munition were fired - /// - private ushort _quantity; - - /// - /// rate at which the munition was fired - /// - private ushort _rate; - - /// - /// Initializes a new instance of the class. - /// - public BurstDescriptor() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(BurstDescriptor left, BurstDescriptor right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(BurstDescriptor left, BurstDescriptor right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += this._munition.GetMarshalledSize(); // this._munition - marshalSize += 2; // this._warhead - marshalSize += 2; // this._fuse - marshalSize += 2; // this._quantity - marshalSize += 2; // this._rate - return marshalSize; - } - - /// - /// Gets or sets the What munition was used in the burst - /// - [XmlElement(Type = typeof(EntityType), ElementName = "munition")] - public EntityType Munition - { - get - { - return this._munition; - } - - set - { - this._munition = value; - } - } - - /// - /// Gets or sets the type of warhead - /// - [XmlElement(Type = typeof(ushort), ElementName = "warhead")] - public ushort Warhead - { - get - { - return this._warhead; - } - - set - { - this._warhead = value; - } - } - - /// - /// Gets or sets the type of fuse used - /// - [XmlElement(Type = typeof(ushort), ElementName = "fuse")] - public ushort Fuse - { - get - { - return this._fuse; - } - - set - { - this._fuse = value; - } - } - - /// - /// Gets or sets the how many of the munition were fired - /// - [XmlElement(Type = typeof(ushort), ElementName = "quantity")] - public ushort Quantity - { - get - { - return this._quantity; - } - - set - { - this._quantity = value; - } - } - - /// - /// Gets or sets the rate at which the munition was fired - /// - [XmlElement(Type = typeof(ushort), ElementName = "rate")] - public ushort Rate - { - get - { - return this._rate; - } - - set - { - this._rate = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - this._munition.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._warhead); - dos.WriteUnsignedShort((ushort)this._fuse); - dos.WriteUnsignedShort((ushort)this._quantity); - dos.WriteUnsignedShort((ushort)this._rate); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._munition.Unmarshal(dis); - this._warhead = dis.ReadUnsignedShort(); - this._fuse = dis.ReadUnsignedShort(); - this._quantity = dis.ReadUnsignedShort(); - this._rate = dis.ReadUnsignedShort(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine(""); - this._munition.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._warhead.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fuse.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._quantity.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._rate.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as BurstDescriptor; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(BurstDescriptor obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (!this._munition.Equals(obj._munition)) - { - ivarsEqual = false; - } - - if (this._warhead != obj._warhead) - { - ivarsEqual = false; - } - - if (this._fuse != obj._fuse) - { - ivarsEqual = false; - } - - if (this._quantity != obj._quantity) - { - ivarsEqual = false; - } - - if (this._rate != obj._rate) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._munition.GetHashCode(); - result = GenerateHash(result) ^ this._warhead.GetHashCode(); - result = GenerateHash(result) ^ this._fuse.GetHashCode(); - result = GenerateHash(result) ^ this._quantity.GetHashCode(); - result = GenerateHash(result) ^ this._rate.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.2.7. Specifies the type of muntion fired, the type of warhead, the type of fuse, the number of rounds fired, and the rate at which the roudns are fired in rounds per minute. + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityType))] + public partial class BurstDescriptor + { + /// + /// What munition was used in the burst + /// + private EntityType _munition = new EntityType(); + + /// + /// type of warhead + /// + private ushort _warhead; + + /// + /// type of fuse used + /// + private ushort _fuse; + + /// + /// how many of the munition were fired + /// + private ushort _quantity; + + /// + /// rate at which the munition was fired + /// + private ushort _rate; + + /// + /// Initializes a new instance of the class. + /// + public BurstDescriptor() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(BurstDescriptor left, BurstDescriptor right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(BurstDescriptor left, BurstDescriptor right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += this._munition.GetMarshalledSize(); // this._munition + marshalSize += 2; // this._warhead + marshalSize += 2; // this._fuse + marshalSize += 2; // this._quantity + marshalSize += 2; // this._rate + return marshalSize; + } + + /// + /// Gets or sets the What munition was used in the burst + /// + [XmlElement(Type = typeof(EntityType), ElementName = "munition")] + public EntityType Munition + { + get + { + return this._munition; + } + + set + { + this._munition = value; + } + } + + /// + /// Gets or sets the type of warhead + /// + [XmlElement(Type = typeof(ushort), ElementName = "warhead")] + public ushort Warhead + { + get + { + return this._warhead; + } + + set + { + this._warhead = value; + } + } + + /// + /// Gets or sets the type of fuse used + /// + [XmlElement(Type = typeof(ushort), ElementName = "fuse")] + public ushort Fuse + { + get + { + return this._fuse; + } + + set + { + this._fuse = value; + } + } + + /// + /// Gets or sets the how many of the munition were fired + /// + [XmlElement(Type = typeof(ushort), ElementName = "quantity")] + public ushort Quantity + { + get + { + return this._quantity; + } + + set + { + this._quantity = value; + } + } + + /// + /// Gets or sets the rate at which the munition was fired + /// + [XmlElement(Type = typeof(ushort), ElementName = "rate")] + public ushort Rate + { + get + { + return this._rate; + } + + set + { + this._rate = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + this._munition.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._warhead); + dos.WriteUnsignedShort((ushort)this._fuse); + dos.WriteUnsignedShort((ushort)this._quantity); + dos.WriteUnsignedShort((ushort)this._rate); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._munition.Unmarshal(dis); + this._warhead = dis.ReadUnsignedShort(); + this._fuse = dis.ReadUnsignedShort(); + this._quantity = dis.ReadUnsignedShort(); + this._rate = dis.ReadUnsignedShort(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine(""); + this._munition.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._warhead.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fuse.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._quantity.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._rate.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as BurstDescriptor; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(BurstDescriptor obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (!this._munition.Equals(obj._munition)) + { + ivarsEqual = false; + } + + if (this._warhead != obj._warhead) + { + ivarsEqual = false; + } + + if (this._fuse != obj._fuse) + { + ivarsEqual = false; + } + + if (this._quantity != obj._quantity) + { + ivarsEqual = false; + } + + if (this._rate != obj._rate) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._munition.GetHashCode(); + result = GenerateHash(result) ^ this._warhead.GetHashCode(); + result = GenerateHash(result) ^ this._fuse.GetHashCode(); + result = GenerateHash(result) ^ this._quantity.GetHashCode(); + result = GenerateHash(result) ^ this._rate.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ClockTime.cs b/Libs/CsharpDis6/Dis1998/Generated/ClockTime.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/ClockTime.cs rename to Libs/CsharpDis6/Dis1998/Generated/ClockTime.cs index 0824678..27814d2 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ClockTime.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/ClockTime.cs @@ -1,332 +1,332 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.2.8. Time measurements that exceed one hour. Hours is the number of hours since January 1, 1970, UTC - /// - [Serializable] - [XmlRoot] - public partial class ClockTime - { - /// - /// Hours in UTC - /// - private int _hour; - - /// - /// Time past the hour - /// - private uint _timePastHour; - - /// - /// Initializes a new instance of the class. - /// - public ClockTime() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ClockTime left, ClockTime right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ClockTime left, ClockTime right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._hour - marshalSize += 4; // this._timePastHour - return marshalSize; - } - - /// - /// Gets or sets the Hours in UTC - /// - [XmlElement(Type = typeof(int), ElementName = "hour")] - public int Hour - { - get - { - return this._hour; - } - - set - { - this._hour = value; - } - } - - /// - /// Gets or sets the Time past the hour - /// - [XmlElement(Type = typeof(uint), ElementName = "timePastHour")] - public uint TimePastHour - { - get - { - return this._timePastHour; - } - - set - { - this._timePastHour = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteInt((int)this._hour); - dos.WriteUnsignedInt((uint)this._timePastHour); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._hour = dis.ReadInt(); - this._timePastHour = dis.ReadUnsignedInt(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._hour.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._timePastHour.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ClockTime; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ClockTime obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._hour != obj._hour) - { - ivarsEqual = false; - } - - if (this._timePastHour != obj._timePastHour) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._hour.GetHashCode(); - result = GenerateHash(result) ^ this._timePastHour.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.2.8. Time measurements that exceed one hour. Hours is the number of hours since January 1, 1970, UTC + /// + [Serializable] + [XmlRoot] + public partial class ClockTime + { + /// + /// Hours in UTC + /// + private int _hour; + + /// + /// Time past the hour + /// + private uint _timePastHour; + + /// + /// Initializes a new instance of the class. + /// + public ClockTime() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ClockTime left, ClockTime right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ClockTime left, ClockTime right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._hour + marshalSize += 4; // this._timePastHour + return marshalSize; + } + + /// + /// Gets or sets the Hours in UTC + /// + [XmlElement(Type = typeof(int), ElementName = "hour")] + public int Hour + { + get + { + return this._hour; + } + + set + { + this._hour = value; + } + } + + /// + /// Gets or sets the Time past the hour + /// + [XmlElement(Type = typeof(uint), ElementName = "timePastHour")] + public uint TimePastHour + { + get + { + return this._timePastHour; + } + + set + { + this._timePastHour = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteInt((int)this._hour); + dos.WriteUnsignedInt((uint)this._timePastHour); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._hour = dis.ReadInt(); + this._timePastHour = dis.ReadUnsignedInt(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._hour.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._timePastHour.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ClockTime; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ClockTime obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._hour != obj._hour) + { + ivarsEqual = false; + } + + if (this._timePastHour != obj._timePastHour) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._hour.GetHashCode(); + result = GenerateHash(result) ^ this._timePastHour.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/CollisionElasticPdu.cs b/Libs/CsharpDis6/Dis1998/Generated/CollisionElasticPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/CollisionElasticPdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/CollisionElasticPdu.cs index f6e15a8..f770a85 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/CollisionElasticPdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/CollisionElasticPdu.cs @@ -1,768 +1,768 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// 5.3.3.3. Information about elastic collisions in a DIS exercise shall be communicated using a Collision-Elastic PDU. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(EventID))] - [XmlInclude(typeof(Vector3Float))] - public partial class CollisionElasticPdu : EntityInformationFamilyPdu, IEquatable - { - /// - /// ID of the entity that issued the collision PDU - /// - private EntityID _issuingEntityID = new EntityID(); - - /// - /// ID of entity that has collided with the issuing entity ID - /// - private EntityID _collidingEntityID = new EntityID(); - - /// - /// ID of event - /// - private EventID _collisionEventID = new EventID(); - - /// - /// some padding - /// - private short _pad; - - /// - /// velocity at collision - /// - private Vector3Float _contactVelocity = new Vector3Float(); - - /// - /// mass of issuing entity - /// - private float _mass; - - /// - /// Location with respect to entity the issuing entity collided with - /// - private Vector3Float _location = new Vector3Float(); - - /// - /// tensor values - /// - private float _collisionResultXX; - - /// - /// tensor values - /// - private float _collisionResultXY; - - /// - /// tensor values - /// - private float _collisionResultXZ; - - /// - /// tensor values - /// - private float _collisionResultYY; - - /// - /// tensor values - /// - private float _collisionResultYZ; - - /// - /// tensor values - /// - private float _collisionResultZZ; - - /// - /// This record shall represent the normal vector to the surface at the point of collision detection. The surface normal shall be represented in world coordinates. - /// - private Vector3Float _unitSurfaceNormal = new Vector3Float(); - - /// - /// This field shall represent the degree to which energy is conserved in a collision - /// - private float _coefficientOfRestitution; - - /// - /// Initializes a new instance of the class. - /// - public CollisionElasticPdu() - { - PduType = (byte)66; - ProtocolFamily = (byte)1; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(CollisionElasticPdu left, CollisionElasticPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(CollisionElasticPdu left, CollisionElasticPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._issuingEntityID.GetMarshalledSize(); // this._issuingEntityID - marshalSize += this._collidingEntityID.GetMarshalledSize(); // this._collidingEntityID - marshalSize += this._collisionEventID.GetMarshalledSize(); // this._collisionEventID - marshalSize += 2; // this._pad - marshalSize += this._contactVelocity.GetMarshalledSize(); // this._contactVelocity - marshalSize += 4; // this._mass - marshalSize += this._location.GetMarshalledSize(); // this._location - marshalSize += 4; // this._collisionResultXX - marshalSize += 4; // this._collisionResultXY - marshalSize += 4; // this._collisionResultXZ - marshalSize += 4; // this._collisionResultYY - marshalSize += 4; // this._collisionResultYZ - marshalSize += 4; // this._collisionResultZZ - marshalSize += this._unitSurfaceNormal.GetMarshalledSize(); // this._unitSurfaceNormal - marshalSize += 4; // this._coefficientOfRestitution - return marshalSize; - } - - /// - /// Gets or sets the ID of the entity that issued the collision PDU - /// - [XmlElement(Type = typeof(EntityID), ElementName = "issuingEntityID")] - public EntityID IssuingEntityID - { - get - { - return this._issuingEntityID; - } - - set - { - this._issuingEntityID = value; - } - } - - /// - /// Gets or sets the ID of entity that has collided with the issuing entity ID - /// - [XmlElement(Type = typeof(EntityID), ElementName = "collidingEntityID")] - public EntityID CollidingEntityID - { - get - { - return this._collidingEntityID; - } - - set - { - this._collidingEntityID = value; - } - } - - /// - /// Gets or sets the ID of event - /// - [XmlElement(Type = typeof(EventID), ElementName = "collisionEventID")] - public EventID CollisionEventID - { - get - { - return this._collisionEventID; - } - - set - { - this._collisionEventID = value; - } - } - - /// - /// Gets or sets the some padding - /// - [XmlElement(Type = typeof(short), ElementName = "pad")] - public short Pad - { - get - { - return this._pad; - } - - set - { - this._pad = value; - } - } - - /// - /// Gets or sets the velocity at collision - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "contactVelocity")] - public Vector3Float ContactVelocity - { - get - { - return this._contactVelocity; - } - - set - { - this._contactVelocity = value; - } - } - - /// - /// Gets or sets the mass of issuing entity - /// - [XmlElement(Type = typeof(float), ElementName = "mass")] - public float Mass - { - get - { - return this._mass; - } - - set - { - this._mass = value; - } - } - - /// - /// Gets or sets the Location with respect to entity the issuing entity collided with - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "location")] - public Vector3Float Location - { - get - { - return this._location; - } - - set - { - this._location = value; - } - } - - /// - /// Gets or sets the tensor values - /// - [XmlElement(Type = typeof(float), ElementName = "collisionResultXX")] - public float CollisionResultXX - { - get - { - return this._collisionResultXX; - } - - set - { - this._collisionResultXX = value; - } - } - - /// - /// Gets or sets the tensor values - /// - [XmlElement(Type = typeof(float), ElementName = "collisionResultXY")] - public float CollisionResultXY - { - get - { - return this._collisionResultXY; - } - - set - { - this._collisionResultXY = value; - } - } - - /// - /// Gets or sets the tensor values - /// - [XmlElement(Type = typeof(float), ElementName = "collisionResultXZ")] - public float CollisionResultXZ - { - get - { - return this._collisionResultXZ; - } - - set - { - this._collisionResultXZ = value; - } - } - - /// - /// Gets or sets the tensor values - /// - [XmlElement(Type = typeof(float), ElementName = "collisionResultYY")] - public float CollisionResultYY - { - get - { - return this._collisionResultYY; - } - - set - { - this._collisionResultYY = value; - } - } - - /// - /// Gets or sets the tensor values - /// - [XmlElement(Type = typeof(float), ElementName = "collisionResultYZ")] - public float CollisionResultYZ - { - get - { - return this._collisionResultYZ; - } - - set - { - this._collisionResultYZ = value; - } - } - - /// - /// Gets or sets the tensor values - /// - [XmlElement(Type = typeof(float), ElementName = "collisionResultZZ")] - public float CollisionResultZZ - { - get - { - return this._collisionResultZZ; - } - - set - { - this._collisionResultZZ = value; - } - } - - /// - /// Gets or sets the This record shall represent the normal vector to the surface at the point of collision detection. The surface normal shall be represented in world coordinates. - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "unitSurfaceNormal")] - public Vector3Float UnitSurfaceNormal - { - get - { - return this._unitSurfaceNormal; - } - - set - { - this._unitSurfaceNormal = value; - } - } - - /// - /// Gets or sets the This field shall represent the degree to which energy is conserved in a collision - /// - [XmlElement(Type = typeof(float), ElementName = "coefficientOfRestitution")] - public float CoefficientOfRestitution - { - get - { - return this._coefficientOfRestitution; - } - - set - { - this._coefficientOfRestitution = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._issuingEntityID.Marshal(dos); - this._collidingEntityID.Marshal(dos); - this._collisionEventID.Marshal(dos); - dos.WriteShort((short)this._pad); - this._contactVelocity.Marshal(dos); - dos.WriteFloat((float)this._mass); - this._location.Marshal(dos); - dos.WriteFloat((float)this._collisionResultXX); - dos.WriteFloat((float)this._collisionResultXY); - dos.WriteFloat((float)this._collisionResultXZ); - dos.WriteFloat((float)this._collisionResultYY); - dos.WriteFloat((float)this._collisionResultYZ); - dos.WriteFloat((float)this._collisionResultZZ); - this._unitSurfaceNormal.Marshal(dos); - dos.WriteFloat((float)this._coefficientOfRestitution); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._issuingEntityID.Unmarshal(dis); - this._collidingEntityID.Unmarshal(dis); - this._collisionEventID.Unmarshal(dis); - this._pad = dis.ReadShort(); - this._contactVelocity.Unmarshal(dis); - this._mass = dis.ReadFloat(); - this._location.Unmarshal(dis); - this._collisionResultXX = dis.ReadFloat(); - this._collisionResultXY = dis.ReadFloat(); - this._collisionResultXZ = dis.ReadFloat(); - this._collisionResultYY = dis.ReadFloat(); - this._collisionResultYZ = dis.ReadFloat(); - this._collisionResultZZ = dis.ReadFloat(); - this._unitSurfaceNormal.Unmarshal(dis); - this._coefficientOfRestitution = dis.ReadFloat(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._issuingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._collidingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._collisionEventID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._pad.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._contactVelocity.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._mass.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._location.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._collisionResultXX.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._collisionResultXY.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._collisionResultXZ.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._collisionResultYY.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._collisionResultYZ.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._collisionResultZZ.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._unitSurfaceNormal.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._coefficientOfRestitution.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as CollisionElasticPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(CollisionElasticPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._issuingEntityID.Equals(obj._issuingEntityID)) - { - ivarsEqual = false; - } - - if (!this._collidingEntityID.Equals(obj._collidingEntityID)) - { - ivarsEqual = false; - } - - if (!this._collisionEventID.Equals(obj._collisionEventID)) - { - ivarsEqual = false; - } - - if (this._pad != obj._pad) - { - ivarsEqual = false; - } - - if (!this._contactVelocity.Equals(obj._contactVelocity)) - { - ivarsEqual = false; - } - - if (this._mass != obj._mass) - { - ivarsEqual = false; - } - - if (!this._location.Equals(obj._location)) - { - ivarsEqual = false; - } - - if (this._collisionResultXX != obj._collisionResultXX) - { - ivarsEqual = false; - } - - if (this._collisionResultXY != obj._collisionResultXY) - { - ivarsEqual = false; - } - - if (this._collisionResultXZ != obj._collisionResultXZ) - { - ivarsEqual = false; - } - - if (this._collisionResultYY != obj._collisionResultYY) - { - ivarsEqual = false; - } - - if (this._collisionResultYZ != obj._collisionResultYZ) - { - ivarsEqual = false; - } - - if (this._collisionResultZZ != obj._collisionResultZZ) - { - ivarsEqual = false; - } - - if (!this._unitSurfaceNormal.Equals(obj._unitSurfaceNormal)) - { - ivarsEqual = false; - } - - if (this._coefficientOfRestitution != obj._coefficientOfRestitution) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._issuingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._collidingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._collisionEventID.GetHashCode(); - result = GenerateHash(result) ^ this._pad.GetHashCode(); - result = GenerateHash(result) ^ this._contactVelocity.GetHashCode(); - result = GenerateHash(result) ^ this._mass.GetHashCode(); - result = GenerateHash(result) ^ this._location.GetHashCode(); - result = GenerateHash(result) ^ this._collisionResultXX.GetHashCode(); - result = GenerateHash(result) ^ this._collisionResultXY.GetHashCode(); - result = GenerateHash(result) ^ this._collisionResultXZ.GetHashCode(); - result = GenerateHash(result) ^ this._collisionResultYY.GetHashCode(); - result = GenerateHash(result) ^ this._collisionResultYZ.GetHashCode(); - result = GenerateHash(result) ^ this._collisionResultZZ.GetHashCode(); - result = GenerateHash(result) ^ this._unitSurfaceNormal.GetHashCode(); - result = GenerateHash(result) ^ this._coefficientOfRestitution.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// 5.3.3.3. Information about elastic collisions in a DIS exercise shall be communicated using a Collision-Elastic PDU. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(EventID))] + [XmlInclude(typeof(Vector3Float))] + public partial class CollisionElasticPdu : EntityInformationFamilyPdu, IEquatable + { + /// + /// ID of the entity that issued the collision PDU + /// + private EntityID _issuingEntityID = new EntityID(); + + /// + /// ID of entity that has collided with the issuing entity ID + /// + private EntityID _collidingEntityID = new EntityID(); + + /// + /// ID of event + /// + private EventID _collisionEventID = new EventID(); + + /// + /// some padding + /// + private short _pad; + + /// + /// velocity at collision + /// + private Vector3Float _contactVelocity = new Vector3Float(); + + /// + /// mass of issuing entity + /// + private float _mass; + + /// + /// Location with respect to entity the issuing entity collided with + /// + private Vector3Float _location = new Vector3Float(); + + /// + /// tensor values + /// + private float _collisionResultXX; + + /// + /// tensor values + /// + private float _collisionResultXY; + + /// + /// tensor values + /// + private float _collisionResultXZ; + + /// + /// tensor values + /// + private float _collisionResultYY; + + /// + /// tensor values + /// + private float _collisionResultYZ; + + /// + /// tensor values + /// + private float _collisionResultZZ; + + /// + /// This record shall represent the normal vector to the surface at the point of collision detection. The surface normal shall be represented in world coordinates. + /// + private Vector3Float _unitSurfaceNormal = new Vector3Float(); + + /// + /// This field shall represent the degree to which energy is conserved in a collision + /// + private float _coefficientOfRestitution; + + /// + /// Initializes a new instance of the class. + /// + public CollisionElasticPdu() + { + PduType = (byte)66; + ProtocolFamily = (byte)1; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(CollisionElasticPdu left, CollisionElasticPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(CollisionElasticPdu left, CollisionElasticPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._issuingEntityID.GetMarshalledSize(); // this._issuingEntityID + marshalSize += this._collidingEntityID.GetMarshalledSize(); // this._collidingEntityID + marshalSize += this._collisionEventID.GetMarshalledSize(); // this._collisionEventID + marshalSize += 2; // this._pad + marshalSize += this._contactVelocity.GetMarshalledSize(); // this._contactVelocity + marshalSize += 4; // this._mass + marshalSize += this._location.GetMarshalledSize(); // this._location + marshalSize += 4; // this._collisionResultXX + marshalSize += 4; // this._collisionResultXY + marshalSize += 4; // this._collisionResultXZ + marshalSize += 4; // this._collisionResultYY + marshalSize += 4; // this._collisionResultYZ + marshalSize += 4; // this._collisionResultZZ + marshalSize += this._unitSurfaceNormal.GetMarshalledSize(); // this._unitSurfaceNormal + marshalSize += 4; // this._coefficientOfRestitution + return marshalSize; + } + + /// + /// Gets or sets the ID of the entity that issued the collision PDU + /// + [XmlElement(Type = typeof(EntityID), ElementName = "issuingEntityID")] + public EntityID IssuingEntityID + { + get + { + return this._issuingEntityID; + } + + set + { + this._issuingEntityID = value; + } + } + + /// + /// Gets or sets the ID of entity that has collided with the issuing entity ID + /// + [XmlElement(Type = typeof(EntityID), ElementName = "collidingEntityID")] + public EntityID CollidingEntityID + { + get + { + return this._collidingEntityID; + } + + set + { + this._collidingEntityID = value; + } + } + + /// + /// Gets or sets the ID of event + /// + [XmlElement(Type = typeof(EventID), ElementName = "collisionEventID")] + public EventID CollisionEventID + { + get + { + return this._collisionEventID; + } + + set + { + this._collisionEventID = value; + } + } + + /// + /// Gets or sets the some padding + /// + [XmlElement(Type = typeof(short), ElementName = "pad")] + public short Pad + { + get + { + return this._pad; + } + + set + { + this._pad = value; + } + } + + /// + /// Gets or sets the velocity at collision + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "contactVelocity")] + public Vector3Float ContactVelocity + { + get + { + return this._contactVelocity; + } + + set + { + this._contactVelocity = value; + } + } + + /// + /// Gets or sets the mass of issuing entity + /// + [XmlElement(Type = typeof(float), ElementName = "mass")] + public float Mass + { + get + { + return this._mass; + } + + set + { + this._mass = value; + } + } + + /// + /// Gets or sets the Location with respect to entity the issuing entity collided with + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "location")] + public Vector3Float Location + { + get + { + return this._location; + } + + set + { + this._location = value; + } + } + + /// + /// Gets or sets the tensor values + /// + [XmlElement(Type = typeof(float), ElementName = "collisionResultXX")] + public float CollisionResultXX + { + get + { + return this._collisionResultXX; + } + + set + { + this._collisionResultXX = value; + } + } + + /// + /// Gets or sets the tensor values + /// + [XmlElement(Type = typeof(float), ElementName = "collisionResultXY")] + public float CollisionResultXY + { + get + { + return this._collisionResultXY; + } + + set + { + this._collisionResultXY = value; + } + } + + /// + /// Gets or sets the tensor values + /// + [XmlElement(Type = typeof(float), ElementName = "collisionResultXZ")] + public float CollisionResultXZ + { + get + { + return this._collisionResultXZ; + } + + set + { + this._collisionResultXZ = value; + } + } + + /// + /// Gets or sets the tensor values + /// + [XmlElement(Type = typeof(float), ElementName = "collisionResultYY")] + public float CollisionResultYY + { + get + { + return this._collisionResultYY; + } + + set + { + this._collisionResultYY = value; + } + } + + /// + /// Gets or sets the tensor values + /// + [XmlElement(Type = typeof(float), ElementName = "collisionResultYZ")] + public float CollisionResultYZ + { + get + { + return this._collisionResultYZ; + } + + set + { + this._collisionResultYZ = value; + } + } + + /// + /// Gets or sets the tensor values + /// + [XmlElement(Type = typeof(float), ElementName = "collisionResultZZ")] + public float CollisionResultZZ + { + get + { + return this._collisionResultZZ; + } + + set + { + this._collisionResultZZ = value; + } + } + + /// + /// Gets or sets the This record shall represent the normal vector to the surface at the point of collision detection. The surface normal shall be represented in world coordinates. + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "unitSurfaceNormal")] + public Vector3Float UnitSurfaceNormal + { + get + { + return this._unitSurfaceNormal; + } + + set + { + this._unitSurfaceNormal = value; + } + } + + /// + /// Gets or sets the This field shall represent the degree to which energy is conserved in a collision + /// + [XmlElement(Type = typeof(float), ElementName = "coefficientOfRestitution")] + public float CoefficientOfRestitution + { + get + { + return this._coefficientOfRestitution; + } + + set + { + this._coefficientOfRestitution = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._issuingEntityID.Marshal(dos); + this._collidingEntityID.Marshal(dos); + this._collisionEventID.Marshal(dos); + dos.WriteShort((short)this._pad); + this._contactVelocity.Marshal(dos); + dos.WriteFloat((float)this._mass); + this._location.Marshal(dos); + dos.WriteFloat((float)this._collisionResultXX); + dos.WriteFloat((float)this._collisionResultXY); + dos.WriteFloat((float)this._collisionResultXZ); + dos.WriteFloat((float)this._collisionResultYY); + dos.WriteFloat((float)this._collisionResultYZ); + dos.WriteFloat((float)this._collisionResultZZ); + this._unitSurfaceNormal.Marshal(dos); + dos.WriteFloat((float)this._coefficientOfRestitution); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._issuingEntityID.Unmarshal(dis); + this._collidingEntityID.Unmarshal(dis); + this._collisionEventID.Unmarshal(dis); + this._pad = dis.ReadShort(); + this._contactVelocity.Unmarshal(dis); + this._mass = dis.ReadFloat(); + this._location.Unmarshal(dis); + this._collisionResultXX = dis.ReadFloat(); + this._collisionResultXY = dis.ReadFloat(); + this._collisionResultXZ = dis.ReadFloat(); + this._collisionResultYY = dis.ReadFloat(); + this._collisionResultYZ = dis.ReadFloat(); + this._collisionResultZZ = dis.ReadFloat(); + this._unitSurfaceNormal.Unmarshal(dis); + this._coefficientOfRestitution = dis.ReadFloat(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._issuingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._collidingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._collisionEventID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._pad.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._contactVelocity.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._mass.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._location.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._collisionResultXX.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._collisionResultXY.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._collisionResultXZ.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._collisionResultYY.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._collisionResultYZ.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._collisionResultZZ.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._unitSurfaceNormal.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._coefficientOfRestitution.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as CollisionElasticPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(CollisionElasticPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._issuingEntityID.Equals(obj._issuingEntityID)) + { + ivarsEqual = false; + } + + if (!this._collidingEntityID.Equals(obj._collidingEntityID)) + { + ivarsEqual = false; + } + + if (!this._collisionEventID.Equals(obj._collisionEventID)) + { + ivarsEqual = false; + } + + if (this._pad != obj._pad) + { + ivarsEqual = false; + } + + if (!this._contactVelocity.Equals(obj._contactVelocity)) + { + ivarsEqual = false; + } + + if (this._mass != obj._mass) + { + ivarsEqual = false; + } + + if (!this._location.Equals(obj._location)) + { + ivarsEqual = false; + } + + if (this._collisionResultXX != obj._collisionResultXX) + { + ivarsEqual = false; + } + + if (this._collisionResultXY != obj._collisionResultXY) + { + ivarsEqual = false; + } + + if (this._collisionResultXZ != obj._collisionResultXZ) + { + ivarsEqual = false; + } + + if (this._collisionResultYY != obj._collisionResultYY) + { + ivarsEqual = false; + } + + if (this._collisionResultYZ != obj._collisionResultYZ) + { + ivarsEqual = false; + } + + if (this._collisionResultZZ != obj._collisionResultZZ) + { + ivarsEqual = false; + } + + if (!this._unitSurfaceNormal.Equals(obj._unitSurfaceNormal)) + { + ivarsEqual = false; + } + + if (this._coefficientOfRestitution != obj._coefficientOfRestitution) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._issuingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._collidingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._collisionEventID.GetHashCode(); + result = GenerateHash(result) ^ this._pad.GetHashCode(); + result = GenerateHash(result) ^ this._contactVelocity.GetHashCode(); + result = GenerateHash(result) ^ this._mass.GetHashCode(); + result = GenerateHash(result) ^ this._location.GetHashCode(); + result = GenerateHash(result) ^ this._collisionResultXX.GetHashCode(); + result = GenerateHash(result) ^ this._collisionResultXY.GetHashCode(); + result = GenerateHash(result) ^ this._collisionResultXZ.GetHashCode(); + result = GenerateHash(result) ^ this._collisionResultYY.GetHashCode(); + result = GenerateHash(result) ^ this._collisionResultYZ.GetHashCode(); + result = GenerateHash(result) ^ this._collisionResultZZ.GetHashCode(); + result = GenerateHash(result) ^ this._unitSurfaceNormal.GetHashCode(); + result = GenerateHash(result) ^ this._coefficientOfRestitution.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/CollisionPdu.cs b/Libs/CsharpDis6/Dis1998/Generated/CollisionPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/CollisionPdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/CollisionPdu.cs index b078537..f9f8ab8 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/CollisionPdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/CollisionPdu.cs @@ -1,542 +1,542 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.3.2. Information about a collision. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(EventID))] - [XmlInclude(typeof(Vector3Float))] - public partial class CollisionPdu : EntityInformationFamilyPdu, IEquatable - { - /// - /// ID of the entity that issued the collision PDU - /// - private EntityID _issuingEntityID = new EntityID(); - - /// - /// ID of entity that has collided with the issuing entity ID - /// - private EntityID _collidingEntityID = new EntityID(); - - /// - /// ID of event - /// - private EventID _eventID = new EventID(); - - /// - /// ID of event - /// - private byte _collisionType; - - /// - /// some padding - /// - private byte _pad; - - /// - /// velocity at collision - /// - private Vector3Float _velocity = new Vector3Float(); - - /// - /// mass of issuing entity - /// - private float _mass; - - /// - /// Location with respect to entity the issuing entity collided with - /// - private Vector3Float _location = new Vector3Float(); - - /// - /// Initializes a new instance of the class. - /// - public CollisionPdu() - { - PduType = (byte)4; - ProtocolFamily = (byte)1; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(CollisionPdu left, CollisionPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(CollisionPdu left, CollisionPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._issuingEntityID.GetMarshalledSize(); // this._issuingEntityID - marshalSize += this._collidingEntityID.GetMarshalledSize(); // this._collidingEntityID - marshalSize += this._eventID.GetMarshalledSize(); // this._eventID - marshalSize += 1; // this._collisionType - marshalSize += 1; // this._pad - marshalSize += this._velocity.GetMarshalledSize(); // this._velocity - marshalSize += 4; // this._mass - marshalSize += this._location.GetMarshalledSize(); // this._location - return marshalSize; - } - - /// - /// Gets or sets the ID of the entity that issued the collision PDU - /// - [XmlElement(Type = typeof(EntityID), ElementName = "issuingEntityID")] - public EntityID IssuingEntityID - { - get - { - return this._issuingEntityID; - } - - set - { - this._issuingEntityID = value; - } - } - - /// - /// Gets or sets the ID of entity that has collided with the issuing entity ID - /// - [XmlElement(Type = typeof(EntityID), ElementName = "collidingEntityID")] - public EntityID CollidingEntityID - { - get - { - return this._collidingEntityID; - } - - set - { - this._collidingEntityID = value; - } - } - - /// - /// Gets or sets the ID of event - /// - [XmlElement(Type = typeof(EventID), ElementName = "eventID")] - public EventID EventID - { - get - { - return this._eventID; - } - - set - { - this._eventID = value; - } - } - - /// - /// Gets or sets the ID of event - /// - [XmlElement(Type = typeof(byte), ElementName = "collisionType")] - public byte CollisionType - { - get - { - return this._collisionType; - } - - set - { - this._collisionType = value; - } - } - - /// - /// Gets or sets the some padding - /// - [XmlElement(Type = typeof(byte), ElementName = "pad")] - public byte Pad - { - get - { - return this._pad; - } - - set - { - this._pad = value; - } - } - - /// - /// Gets or sets the velocity at collision - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "velocity")] - public Vector3Float Velocity - { - get - { - return this._velocity; - } - - set - { - this._velocity = value; - } - } - - /// - /// Gets or sets the mass of issuing entity - /// - [XmlElement(Type = typeof(float), ElementName = "mass")] - public float Mass - { - get - { - return this._mass; - } - - set - { - this._mass = value; - } - } - - /// - /// Gets or sets the Location with respect to entity the issuing entity collided with - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "location")] - public Vector3Float Location - { - get - { - return this._location; - } - - set - { - this._location = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._issuingEntityID.Marshal(dos); - this._collidingEntityID.Marshal(dos); - this._eventID.Marshal(dos); - dos.WriteUnsignedByte((byte)this._collisionType); - dos.WriteByte((byte)this._pad); - this._velocity.Marshal(dos); - dos.WriteFloat((float)this._mass); - this._location.Marshal(dos); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._issuingEntityID.Unmarshal(dis); - this._collidingEntityID.Unmarshal(dis); - this._eventID.Unmarshal(dis); - this._collisionType = dis.ReadUnsignedByte(); - this._pad = dis.ReadByte(); - this._velocity.Unmarshal(dis); - this._mass = dis.ReadFloat(); - this._location.Unmarshal(dis); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._issuingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._collidingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._eventID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._collisionType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._velocity.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._mass.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._location.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as CollisionPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(CollisionPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._issuingEntityID.Equals(obj._issuingEntityID)) - { - ivarsEqual = false; - } - - if (!this._collidingEntityID.Equals(obj._collidingEntityID)) - { - ivarsEqual = false; - } - - if (!this._eventID.Equals(obj._eventID)) - { - ivarsEqual = false; - } - - if (this._collisionType != obj._collisionType) - { - ivarsEqual = false; - } - - if (this._pad != obj._pad) - { - ivarsEqual = false; - } - - if (!this._velocity.Equals(obj._velocity)) - { - ivarsEqual = false; - } - - if (this._mass != obj._mass) - { - ivarsEqual = false; - } - - if (!this._location.Equals(obj._location)) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._issuingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._collidingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._eventID.GetHashCode(); - result = GenerateHash(result) ^ this._collisionType.GetHashCode(); - result = GenerateHash(result) ^ this._pad.GetHashCode(); - result = GenerateHash(result) ^ this._velocity.GetHashCode(); - result = GenerateHash(result) ^ this._mass.GetHashCode(); - result = GenerateHash(result) ^ this._location.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.3.2. Information about a collision. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(EventID))] + [XmlInclude(typeof(Vector3Float))] + public partial class CollisionPdu : EntityInformationFamilyPdu, IEquatable + { + /// + /// ID of the entity that issued the collision PDU + /// + private EntityID _issuingEntityID = new EntityID(); + + /// + /// ID of entity that has collided with the issuing entity ID + /// + private EntityID _collidingEntityID = new EntityID(); + + /// + /// ID of event + /// + private EventID _eventID = new EventID(); + + /// + /// ID of event + /// + private byte _collisionType; + + /// + /// some padding + /// + private byte _pad; + + /// + /// velocity at collision + /// + private Vector3Float _velocity = new Vector3Float(); + + /// + /// mass of issuing entity + /// + private float _mass; + + /// + /// Location with respect to entity the issuing entity collided with + /// + private Vector3Float _location = new Vector3Float(); + + /// + /// Initializes a new instance of the class. + /// + public CollisionPdu() + { + PduType = (byte)4; + ProtocolFamily = (byte)1; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(CollisionPdu left, CollisionPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(CollisionPdu left, CollisionPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._issuingEntityID.GetMarshalledSize(); // this._issuingEntityID + marshalSize += this._collidingEntityID.GetMarshalledSize(); // this._collidingEntityID + marshalSize += this._eventID.GetMarshalledSize(); // this._eventID + marshalSize += 1; // this._collisionType + marshalSize += 1; // this._pad + marshalSize += this._velocity.GetMarshalledSize(); // this._velocity + marshalSize += 4; // this._mass + marshalSize += this._location.GetMarshalledSize(); // this._location + return marshalSize; + } + + /// + /// Gets or sets the ID of the entity that issued the collision PDU + /// + [XmlElement(Type = typeof(EntityID), ElementName = "issuingEntityID")] + public EntityID IssuingEntityID + { + get + { + return this._issuingEntityID; + } + + set + { + this._issuingEntityID = value; + } + } + + /// + /// Gets or sets the ID of entity that has collided with the issuing entity ID + /// + [XmlElement(Type = typeof(EntityID), ElementName = "collidingEntityID")] + public EntityID CollidingEntityID + { + get + { + return this._collidingEntityID; + } + + set + { + this._collidingEntityID = value; + } + } + + /// + /// Gets or sets the ID of event + /// + [XmlElement(Type = typeof(EventID), ElementName = "eventID")] + public EventID EventID + { + get + { + return this._eventID; + } + + set + { + this._eventID = value; + } + } + + /// + /// Gets or sets the ID of event + /// + [XmlElement(Type = typeof(byte), ElementName = "collisionType")] + public byte CollisionType + { + get + { + return this._collisionType; + } + + set + { + this._collisionType = value; + } + } + + /// + /// Gets or sets the some padding + /// + [XmlElement(Type = typeof(byte), ElementName = "pad")] + public byte Pad + { + get + { + return this._pad; + } + + set + { + this._pad = value; + } + } + + /// + /// Gets or sets the velocity at collision + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "velocity")] + public Vector3Float Velocity + { + get + { + return this._velocity; + } + + set + { + this._velocity = value; + } + } + + /// + /// Gets or sets the mass of issuing entity + /// + [XmlElement(Type = typeof(float), ElementName = "mass")] + public float Mass + { + get + { + return this._mass; + } + + set + { + this._mass = value; + } + } + + /// + /// Gets or sets the Location with respect to entity the issuing entity collided with + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "location")] + public Vector3Float Location + { + get + { + return this._location; + } + + set + { + this._location = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._issuingEntityID.Marshal(dos); + this._collidingEntityID.Marshal(dos); + this._eventID.Marshal(dos); + dos.WriteUnsignedByte((byte)this._collisionType); + dos.WriteByte((byte)this._pad); + this._velocity.Marshal(dos); + dos.WriteFloat((float)this._mass); + this._location.Marshal(dos); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._issuingEntityID.Unmarshal(dis); + this._collidingEntityID.Unmarshal(dis); + this._eventID.Unmarshal(dis); + this._collisionType = dis.ReadUnsignedByte(); + this._pad = dis.ReadByte(); + this._velocity.Unmarshal(dis); + this._mass = dis.ReadFloat(); + this._location.Unmarshal(dis); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._issuingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._collidingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._eventID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._collisionType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._velocity.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._mass.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._location.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as CollisionPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(CollisionPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._issuingEntityID.Equals(obj._issuingEntityID)) + { + ivarsEqual = false; + } + + if (!this._collidingEntityID.Equals(obj._collidingEntityID)) + { + ivarsEqual = false; + } + + if (!this._eventID.Equals(obj._eventID)) + { + ivarsEqual = false; + } + + if (this._collisionType != obj._collisionType) + { + ivarsEqual = false; + } + + if (this._pad != obj._pad) + { + ivarsEqual = false; + } + + if (!this._velocity.Equals(obj._velocity)) + { + ivarsEqual = false; + } + + if (this._mass != obj._mass) + { + ivarsEqual = false; + } + + if (!this._location.Equals(obj._location)) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._issuingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._collidingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._eventID.GetHashCode(); + result = GenerateHash(result) ^ this._collisionType.GetHashCode(); + result = GenerateHash(result) ^ this._pad.GetHashCode(); + result = GenerateHash(result) ^ this._velocity.GetHashCode(); + result = GenerateHash(result) ^ this._mass.GetHashCode(); + result = GenerateHash(result) ^ this._location.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/CommentPdu.cs b/Libs/CsharpDis6/Dis1998/Generated/CommentPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/CommentPdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/CommentPdu.cs index 0c3cb2c..5e8770f 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/CommentPdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/CommentPdu.cs @@ -1,484 +1,484 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.6.12. Arbitrary messages can be entered into the data stream via use of this PDU. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(FixedDatum))] - [XmlInclude(typeof(VariableDatum))] - public partial class CommentPdu : SimulationManagementFamilyPdu, IEquatable - { - /// - /// Number of fixed datum records - /// - private uint _numberOfFixedDatumRecords; - - /// - /// Number of variable datum records - /// - private uint _numberOfVariableDatumRecords; - - /// - /// variable length list of fixed datums - /// - private List _fixedDatums = new List(); - - /// - /// variable length list of variable length datums - /// - private List _variableDatums = new List(); - - /// - /// Initializes a new instance of the class. - /// - public CommentPdu() - { - PduType = (byte)22; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(CommentPdu left, CommentPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(CommentPdu left, CommentPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 4; // this._numberOfFixedDatumRecords - marshalSize += 4; // this._numberOfVariableDatumRecords - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - FixedDatum listElement = (FixedDatum)this._fixedDatums[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - VariableDatum listElement = (VariableDatum)this._variableDatums[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Number of fixed datum records - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] - public uint NumberOfFixedDatumRecords - { - get - { - return this._numberOfFixedDatumRecords; - } - - set - { - this._numberOfFixedDatumRecords = value; - } - } - - /// - /// Gets or sets the Number of variable datum records - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] - public uint NumberOfVariableDatumRecords - { - get - { - return this._numberOfVariableDatumRecords; - } - - set - { - this._numberOfVariableDatumRecords = value; - } - } - - /// - /// Gets the variable length list of fixed datums - /// - [XmlElement(ElementName = "fixedDatumsList", Type = typeof(List))] - public List FixedDatums - { - get - { - return this._fixedDatums; - } - } - - /// - /// Gets the variable length list of variable length datums - /// - [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] - public List VariableDatums - { - get - { - return this._variableDatums; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._fixedDatums.Count); - dos.WriteUnsignedInt((uint)this._variableDatums.Count); - - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; - aFixedDatum.Marshal(dos); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; - aVariableDatum.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); - this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); - - for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) - { - FixedDatum anX = new FixedDatum(); - anX.Unmarshal(dis); - this._fixedDatums.Add(anX); - } - - for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) - { - VariableDatum anX = new VariableDatum(); - anX.Unmarshal(dis); - this._variableDatums.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._fixedDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - sb.AppendLine(""); - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; - aFixedDatum.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - sb.AppendLine(""); - VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; - aVariableDatum.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as CommentPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(CommentPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) - { - ivarsEqual = false; - } - - if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) - { - ivarsEqual = false; - } - - if (this._fixedDatums.Count != obj._fixedDatums.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - if (!this._fixedDatums[idx].Equals(obj._fixedDatums[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._variableDatums.Count != obj._variableDatums.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); - - if (this._fixedDatums.Count > 0) - { - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - result = GenerateHash(result) ^ this._fixedDatums[idx].GetHashCode(); - } - } - - if (this._variableDatums.Count > 0) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.6.12. Arbitrary messages can be entered into the data stream via use of this PDU. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(FixedDatum))] + [XmlInclude(typeof(VariableDatum))] + public partial class CommentPdu : SimulationManagementFamilyPdu, IEquatable + { + /// + /// Number of fixed datum records + /// + private uint _numberOfFixedDatumRecords; + + /// + /// Number of variable datum records + /// + private uint _numberOfVariableDatumRecords; + + /// + /// variable length list of fixed datums + /// + private List _fixedDatums = new List(); + + /// + /// variable length list of variable length datums + /// + private List _variableDatums = new List(); + + /// + /// Initializes a new instance of the class. + /// + public CommentPdu() + { + PduType = (byte)22; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(CommentPdu left, CommentPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(CommentPdu left, CommentPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 4; // this._numberOfFixedDatumRecords + marshalSize += 4; // this._numberOfVariableDatumRecords + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + FixedDatum listElement = (FixedDatum)this._fixedDatums[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + VariableDatum listElement = (VariableDatum)this._variableDatums[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Number of fixed datum records + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] + public uint NumberOfFixedDatumRecords + { + get + { + return this._numberOfFixedDatumRecords; + } + + set + { + this._numberOfFixedDatumRecords = value; + } + } + + /// + /// Gets or sets the Number of variable datum records + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] + public uint NumberOfVariableDatumRecords + { + get + { + return this._numberOfVariableDatumRecords; + } + + set + { + this._numberOfVariableDatumRecords = value; + } + } + + /// + /// Gets the variable length list of fixed datums + /// + [XmlElement(ElementName = "fixedDatumsList", Type = typeof(List))] + public List FixedDatums + { + get + { + return this._fixedDatums; + } + } + + /// + /// Gets the variable length list of variable length datums + /// + [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] + public List VariableDatums + { + get + { + return this._variableDatums; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._fixedDatums.Count); + dos.WriteUnsignedInt((uint)this._variableDatums.Count); + + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; + aFixedDatum.Marshal(dos); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; + aVariableDatum.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); + this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); + + for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) + { + FixedDatum anX = new FixedDatum(); + anX.Unmarshal(dis); + this._fixedDatums.Add(anX); + } + + for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) + { + VariableDatum anX = new VariableDatum(); + anX.Unmarshal(dis); + this._variableDatums.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._fixedDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + sb.AppendLine(""); + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; + aFixedDatum.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + sb.AppendLine(""); + VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; + aVariableDatum.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as CommentPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(CommentPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) + { + ivarsEqual = false; + } + + if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) + { + ivarsEqual = false; + } + + if (this._fixedDatums.Count != obj._fixedDatums.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + if (!this._fixedDatums[idx].Equals(obj._fixedDatums[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._variableDatums.Count != obj._variableDatums.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); + + if (this._fixedDatums.Count > 0) + { + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + result = GenerateHash(result) ^ this._fixedDatums[idx].GetHashCode(); + } + } + + if (this._variableDatums.Count > 0) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/CommentReliablePdu.cs b/Libs/CsharpDis6/Dis1998/Generated/CommentReliablePdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/CommentReliablePdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/CommentReliablePdu.cs index 3708581..6c145d5 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/CommentReliablePdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/CommentReliablePdu.cs @@ -1,484 +1,484 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.12.12: Arbitrary messages. Only reliable this time. Neds manual intervention to fix padding in variable datums. UNFINISHED - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(FixedDatum))] - [XmlInclude(typeof(VariableDatum))] - public partial class CommentReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable - { - /// - /// Fixed datum record count - /// - private uint _numberOfFixedDatumRecords; - - /// - /// variable datum record count - /// - private uint _numberOfVariableDatumRecords; - - /// - /// Fixed datum records - /// - private List _fixedDatumRecords = new List(); - - /// - /// Variable datum records - /// - private List _variableDatumRecords = new List(); - - /// - /// Initializes a new instance of the class. - /// - public CommentReliablePdu() - { - PduType = (byte)62; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(CommentReliablePdu left, CommentReliablePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(CommentReliablePdu left, CommentReliablePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 4; // this._numberOfFixedDatumRecords - marshalSize += 4; // this._numberOfVariableDatumRecords - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - FixedDatum listElement = (FixedDatum)this._fixedDatumRecords[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - VariableDatum listElement = (VariableDatum)this._variableDatumRecords[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Fixed datum record count - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] - public uint NumberOfFixedDatumRecords - { - get - { - return this._numberOfFixedDatumRecords; - } - - set - { - this._numberOfFixedDatumRecords = value; - } - } - - /// - /// Gets or sets the variable datum record count - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] - public uint NumberOfVariableDatumRecords - { - get - { - return this._numberOfVariableDatumRecords; - } - - set - { - this._numberOfVariableDatumRecords = value; - } - } - - /// - /// Gets the Fixed datum records - /// - [XmlElement(ElementName = "fixedDatumRecordsList", Type = typeof(List))] - public List FixedDatumRecords - { - get - { - return this._fixedDatumRecords; - } - } - - /// - /// Gets the Variable datum records - /// - [XmlElement(ElementName = "variableDatumRecordsList", Type = typeof(List))] - public List VariableDatumRecords - { - get - { - return this._variableDatumRecords; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._fixedDatumRecords.Count); - dos.WriteUnsignedInt((uint)this._variableDatumRecords.Count); - - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; - aFixedDatum.Marshal(dos); - } - - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; - aVariableDatum.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); - this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); - - for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) - { - FixedDatum anX = new FixedDatum(); - anX.Unmarshal(dis); - this._fixedDatumRecords.Add(anX); - } - - for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) - { - VariableDatum anX = new VariableDatum(); - anX.Unmarshal(dis); - this._variableDatumRecords.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._fixedDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - sb.AppendLine(""); - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; - aFixedDatum.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - sb.AppendLine(""); - VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; - aVariableDatum.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as CommentReliablePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(CommentReliablePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) - { - ivarsEqual = false; - } - - if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) - { - ivarsEqual = false; - } - - if (this._fixedDatumRecords.Count != obj._fixedDatumRecords.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - if (!this._fixedDatumRecords[idx].Equals(obj._fixedDatumRecords[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._variableDatumRecords.Count != obj._variableDatumRecords.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - if (!this._variableDatumRecords[idx].Equals(obj._variableDatumRecords[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); - - if (this._fixedDatumRecords.Count > 0) - { - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - result = GenerateHash(result) ^ this._fixedDatumRecords[idx].GetHashCode(); - } - } - - if (this._variableDatumRecords.Count > 0) - { - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - result = GenerateHash(result) ^ this._variableDatumRecords[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.12.12: Arbitrary messages. Only reliable this time. Neds manual intervention to fix padding in variable datums. UNFINISHED + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(FixedDatum))] + [XmlInclude(typeof(VariableDatum))] + public partial class CommentReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable + { + /// + /// Fixed datum record count + /// + private uint _numberOfFixedDatumRecords; + + /// + /// variable datum record count + /// + private uint _numberOfVariableDatumRecords; + + /// + /// Fixed datum records + /// + private List _fixedDatumRecords = new List(); + + /// + /// Variable datum records + /// + private List _variableDatumRecords = new List(); + + /// + /// Initializes a new instance of the class. + /// + public CommentReliablePdu() + { + PduType = (byte)62; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(CommentReliablePdu left, CommentReliablePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(CommentReliablePdu left, CommentReliablePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 4; // this._numberOfFixedDatumRecords + marshalSize += 4; // this._numberOfVariableDatumRecords + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + FixedDatum listElement = (FixedDatum)this._fixedDatumRecords[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + VariableDatum listElement = (VariableDatum)this._variableDatumRecords[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Fixed datum record count + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] + public uint NumberOfFixedDatumRecords + { + get + { + return this._numberOfFixedDatumRecords; + } + + set + { + this._numberOfFixedDatumRecords = value; + } + } + + /// + /// Gets or sets the variable datum record count + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] + public uint NumberOfVariableDatumRecords + { + get + { + return this._numberOfVariableDatumRecords; + } + + set + { + this._numberOfVariableDatumRecords = value; + } + } + + /// + /// Gets the Fixed datum records + /// + [XmlElement(ElementName = "fixedDatumRecordsList", Type = typeof(List))] + public List FixedDatumRecords + { + get + { + return this._fixedDatumRecords; + } + } + + /// + /// Gets the Variable datum records + /// + [XmlElement(ElementName = "variableDatumRecordsList", Type = typeof(List))] + public List VariableDatumRecords + { + get + { + return this._variableDatumRecords; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._fixedDatumRecords.Count); + dos.WriteUnsignedInt((uint)this._variableDatumRecords.Count); + + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; + aFixedDatum.Marshal(dos); + } + + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; + aVariableDatum.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); + this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); + + for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) + { + FixedDatum anX = new FixedDatum(); + anX.Unmarshal(dis); + this._fixedDatumRecords.Add(anX); + } + + for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) + { + VariableDatum anX = new VariableDatum(); + anX.Unmarshal(dis); + this._variableDatumRecords.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._fixedDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + sb.AppendLine(""); + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; + aFixedDatum.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + sb.AppendLine(""); + VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; + aVariableDatum.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as CommentReliablePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(CommentReliablePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) + { + ivarsEqual = false; + } + + if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) + { + ivarsEqual = false; + } + + if (this._fixedDatumRecords.Count != obj._fixedDatumRecords.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + if (!this._fixedDatumRecords[idx].Equals(obj._fixedDatumRecords[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._variableDatumRecords.Count != obj._variableDatumRecords.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + if (!this._variableDatumRecords[idx].Equals(obj._variableDatumRecords[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); + + if (this._fixedDatumRecords.Count > 0) + { + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + result = GenerateHash(result) ^ this._fixedDatumRecords[idx].GetHashCode(); + } + } + + if (this._variableDatumRecords.Count > 0) + { + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + result = GenerateHash(result) ^ this._variableDatumRecords[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/CreateEntityPdu.cs b/Libs/CsharpDis6/Dis1998/Generated/CreateEntityPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/CreateEntityPdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/CreateEntityPdu.cs index 129f462..2ccb2f3 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/CreateEntityPdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/CreateEntityPdu.cs @@ -1,304 +1,304 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.6.1. Create a new entity. COMPLETE - /// - [Serializable] - [XmlRoot] - public partial class CreateEntityPdu : SimulationManagementFamilyPdu, IEquatable - { - /// - /// Identifier for the request - /// - private uint _requestID; - - /// - /// Initializes a new instance of the class. - /// - public CreateEntityPdu() - { - PduType = (byte)11; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(CreateEntityPdu left, CreateEntityPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(CreateEntityPdu left, CreateEntityPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 4; // this._requestID - return marshalSize; - } - - /// - /// Gets or sets the Identifier for the request - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._requestID); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._requestID = dis.ReadUnsignedInt(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as CreateEntityPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(CreateEntityPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.6.1. Create a new entity. COMPLETE + /// + [Serializable] + [XmlRoot] + public partial class CreateEntityPdu : SimulationManagementFamilyPdu, IEquatable + { + /// + /// Identifier for the request + /// + private uint _requestID; + + /// + /// Initializes a new instance of the class. + /// + public CreateEntityPdu() + { + PduType = (byte)11; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(CreateEntityPdu left, CreateEntityPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(CreateEntityPdu left, CreateEntityPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 4; // this._requestID + return marshalSize; + } + + /// + /// Gets or sets the Identifier for the request + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._requestID); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._requestID = dis.ReadUnsignedInt(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as CreateEntityPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(CreateEntityPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/CreateEntityReliablePdu.cs b/Libs/CsharpDis6/Dis1998/Generated/CreateEntityReliablePdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/CreateEntityReliablePdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/CreateEntityReliablePdu.cs index 13a336d..4c69893 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/CreateEntityReliablePdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/CreateEntityReliablePdu.cs @@ -1,400 +1,400 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.12.1: creation of an entity , reliable. COMPLETE - /// - [Serializable] - [XmlRoot] - public partial class CreateEntityReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable - { - /// - /// level of reliability service used for this transaction - /// - private byte _requiredReliabilityService; - - /// - /// padding - /// - private ushort _pad1; - - /// - /// padding - /// - private byte _pad2; - - /// - /// Request ID - /// - private uint _requestID; - - /// - /// Initializes a new instance of the class. - /// - public CreateEntityReliablePdu() - { - PduType = (byte)51; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(CreateEntityReliablePdu left, CreateEntityReliablePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(CreateEntityReliablePdu left, CreateEntityReliablePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 1; // this._requiredReliabilityService - marshalSize += 2; // this._pad1 - marshalSize += 1; // this._pad2 - marshalSize += 4; // this._requestID - return marshalSize; - } - - /// - /// Gets or sets the level of reliability service used for this transaction - /// - [XmlElement(Type = typeof(byte), ElementName = "requiredReliabilityService")] - public byte RequiredReliabilityService - { - get - { - return this._requiredReliabilityService; - } - - set - { - this._requiredReliabilityService = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(ushort), ElementName = "pad1")] - public ushort Pad1 - { - get - { - return this._pad1; - } - - set - { - this._pad1 = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "pad2")] - public byte Pad2 - { - get - { - return this._pad2; - } - - set - { - this._pad2 = value; - } - } - - /// - /// Gets or sets the Request ID - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._requiredReliabilityService); - dos.WriteUnsignedShort((ushort)this._pad1); - dos.WriteUnsignedByte((byte)this._pad2); - dos.WriteUnsignedInt((uint)this._requestID); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._requiredReliabilityService = dis.ReadUnsignedByte(); - this._pad1 = dis.ReadUnsignedShort(); - this._pad2 = dis.ReadUnsignedByte(); - this._requestID = dis.ReadUnsignedInt(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._requiredReliabilityService.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as CreateEntityReliablePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(CreateEntityReliablePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._requiredReliabilityService != obj._requiredReliabilityService) - { - ivarsEqual = false; - } - - if (this._pad1 != obj._pad1) - { - ivarsEqual = false; - } - - if (this._pad2 != obj._pad2) - { - ivarsEqual = false; - } - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._requiredReliabilityService.GetHashCode(); - result = GenerateHash(result) ^ this._pad1.GetHashCode(); - result = GenerateHash(result) ^ this._pad2.GetHashCode(); - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.12.1: creation of an entity , reliable. COMPLETE + /// + [Serializable] + [XmlRoot] + public partial class CreateEntityReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable + { + /// + /// level of reliability service used for this transaction + /// + private byte _requiredReliabilityService; + + /// + /// padding + /// + private ushort _pad1; + + /// + /// padding + /// + private byte _pad2; + + /// + /// Request ID + /// + private uint _requestID; + + /// + /// Initializes a new instance of the class. + /// + public CreateEntityReliablePdu() + { + PduType = (byte)51; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(CreateEntityReliablePdu left, CreateEntityReliablePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(CreateEntityReliablePdu left, CreateEntityReliablePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 1; // this._requiredReliabilityService + marshalSize += 2; // this._pad1 + marshalSize += 1; // this._pad2 + marshalSize += 4; // this._requestID + return marshalSize; + } + + /// + /// Gets or sets the level of reliability service used for this transaction + /// + [XmlElement(Type = typeof(byte), ElementName = "requiredReliabilityService")] + public byte RequiredReliabilityService + { + get + { + return this._requiredReliabilityService; + } + + set + { + this._requiredReliabilityService = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(ushort), ElementName = "pad1")] + public ushort Pad1 + { + get + { + return this._pad1; + } + + set + { + this._pad1 = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "pad2")] + public byte Pad2 + { + get + { + return this._pad2; + } + + set + { + this._pad2 = value; + } + } + + /// + /// Gets or sets the Request ID + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._requiredReliabilityService); + dos.WriteUnsignedShort((ushort)this._pad1); + dos.WriteUnsignedByte((byte)this._pad2); + dos.WriteUnsignedInt((uint)this._requestID); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._requiredReliabilityService = dis.ReadUnsignedByte(); + this._pad1 = dis.ReadUnsignedShort(); + this._pad2 = dis.ReadUnsignedByte(); + this._requestID = dis.ReadUnsignedInt(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._requiredReliabilityService.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as CreateEntityReliablePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(CreateEntityReliablePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._requiredReliabilityService != obj._requiredReliabilityService) + { + ivarsEqual = false; + } + + if (this._pad1 != obj._pad1) + { + ivarsEqual = false; + } + + if (this._pad2 != obj._pad2) + { + ivarsEqual = false; + } + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._requiredReliabilityService.GetHashCode(); + result = GenerateHash(result) ^ this._pad1.GetHashCode(); + result = GenerateHash(result) ^ this._pad2.GetHashCode(); + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/DataPdu.cs b/Libs/CsharpDis6/Dis1998/Generated/DataPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/DataPdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/DataPdu.cs index 3bc9dc2..e99226f 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/DataPdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/DataPdu.cs @@ -1,548 +1,548 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.6.10. Information issued in response to a data query pdu or a set data pdu is communicated using a data pdu. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(FixedDatum))] - [XmlInclude(typeof(VariableDatum))] - public partial class DataPdu : SimulationManagementFamilyPdu, IEquatable - { - /// - /// ID of request - /// - private uint _requestID; - - /// - /// padding - /// - private uint _padding1; - - /// - /// Number of fixed datum records - /// - private uint _numberOfFixedDatumRecords; - - /// - /// Number of variable datum records - /// - private uint _numberOfVariableDatumRecords; - - /// - /// variable length list of fixed datums - /// - private List _fixedDatums = new List(); - - /// - /// variable length list of variable length datums - /// - private List _variableDatums = new List(); - - /// - /// Initializes a new instance of the class. - /// - public DataPdu() - { - PduType = (byte)20; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(DataPdu left, DataPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(DataPdu left, DataPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 4; // this._requestID - marshalSize += 4; // this._padding1 - marshalSize += 4; // this._numberOfFixedDatumRecords - marshalSize += 4; // this._numberOfVariableDatumRecords - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - FixedDatum listElement = (FixedDatum)this._fixedDatums[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - VariableDatum listElement = (VariableDatum)this._variableDatums[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the ID of request - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(uint), ElementName = "padding1")] - public uint Padding1 - { - get - { - return this._padding1; - } - - set - { - this._padding1 = value; - } - } - - /// - /// Gets or sets the Number of fixed datum records - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] - public uint NumberOfFixedDatumRecords - { - get - { - return this._numberOfFixedDatumRecords; - } - - set - { - this._numberOfFixedDatumRecords = value; - } - } - - /// - /// Gets or sets the Number of variable datum records - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] - public uint NumberOfVariableDatumRecords - { - get - { - return this._numberOfVariableDatumRecords; - } - - set - { - this._numberOfVariableDatumRecords = value; - } - } - - /// - /// Gets the variable length list of fixed datums - /// - [XmlElement(ElementName = "fixedDatumsList", Type = typeof(List))] - public List FixedDatums - { - get - { - return this._fixedDatums; - } - } - - /// - /// Gets the variable length list of variable length datums - /// - [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] - public List VariableDatums - { - get - { - return this._variableDatums; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._requestID); - dos.WriteUnsignedInt((uint)this._padding1); - dos.WriteUnsignedInt((uint)this._fixedDatums.Count); - dos.WriteUnsignedInt((uint)this._variableDatums.Count); - - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; - aFixedDatum.Marshal(dos); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; - aVariableDatum.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._requestID = dis.ReadUnsignedInt(); - this._padding1 = dis.ReadUnsignedInt(); - this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); - this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); - - for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) - { - FixedDatum anX = new FixedDatum(); - anX.Unmarshal(dis); - this._fixedDatums.Add(anX); - } - - for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) - { - VariableDatum anX = new VariableDatum(); - anX.Unmarshal(dis); - this._variableDatums.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fixedDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - sb.AppendLine(""); - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; - aFixedDatum.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - sb.AppendLine(""); - VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; - aVariableDatum.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as DataPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(DataPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - if (this._padding1 != obj._padding1) - { - ivarsEqual = false; - } - - if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) - { - ivarsEqual = false; - } - - if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) - { - ivarsEqual = false; - } - - if (this._fixedDatums.Count != obj._fixedDatums.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - if (!this._fixedDatums[idx].Equals(obj._fixedDatums[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._variableDatums.Count != obj._variableDatums.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - result = GenerateHash(result) ^ this._padding1.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); - - if (this._fixedDatums.Count > 0) - { - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - result = GenerateHash(result) ^ this._fixedDatums[idx].GetHashCode(); - } - } - - if (this._variableDatums.Count > 0) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.6.10. Information issued in response to a data query pdu or a set data pdu is communicated using a data pdu. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(FixedDatum))] + [XmlInclude(typeof(VariableDatum))] + public partial class DataPdu : SimulationManagementFamilyPdu, IEquatable + { + /// + /// ID of request + /// + private uint _requestID; + + /// + /// padding + /// + private uint _padding1; + + /// + /// Number of fixed datum records + /// + private uint _numberOfFixedDatumRecords; + + /// + /// Number of variable datum records + /// + private uint _numberOfVariableDatumRecords; + + /// + /// variable length list of fixed datums + /// + private List _fixedDatums = new List(); + + /// + /// variable length list of variable length datums + /// + private List _variableDatums = new List(); + + /// + /// Initializes a new instance of the class. + /// + public DataPdu() + { + PduType = (byte)20; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(DataPdu left, DataPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(DataPdu left, DataPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 4; // this._requestID + marshalSize += 4; // this._padding1 + marshalSize += 4; // this._numberOfFixedDatumRecords + marshalSize += 4; // this._numberOfVariableDatumRecords + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + FixedDatum listElement = (FixedDatum)this._fixedDatums[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + VariableDatum listElement = (VariableDatum)this._variableDatums[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the ID of request + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(uint), ElementName = "padding1")] + public uint Padding1 + { + get + { + return this._padding1; + } + + set + { + this._padding1 = value; + } + } + + /// + /// Gets or sets the Number of fixed datum records + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] + public uint NumberOfFixedDatumRecords + { + get + { + return this._numberOfFixedDatumRecords; + } + + set + { + this._numberOfFixedDatumRecords = value; + } + } + + /// + /// Gets or sets the Number of variable datum records + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] + public uint NumberOfVariableDatumRecords + { + get + { + return this._numberOfVariableDatumRecords; + } + + set + { + this._numberOfVariableDatumRecords = value; + } + } + + /// + /// Gets the variable length list of fixed datums + /// + [XmlElement(ElementName = "fixedDatumsList", Type = typeof(List))] + public List FixedDatums + { + get + { + return this._fixedDatums; + } + } + + /// + /// Gets the variable length list of variable length datums + /// + [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] + public List VariableDatums + { + get + { + return this._variableDatums; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._requestID); + dos.WriteUnsignedInt((uint)this._padding1); + dos.WriteUnsignedInt((uint)this._fixedDatums.Count); + dos.WriteUnsignedInt((uint)this._variableDatums.Count); + + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; + aFixedDatum.Marshal(dos); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; + aVariableDatum.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._requestID = dis.ReadUnsignedInt(); + this._padding1 = dis.ReadUnsignedInt(); + this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); + this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); + + for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) + { + FixedDatum anX = new FixedDatum(); + anX.Unmarshal(dis); + this._fixedDatums.Add(anX); + } + + for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) + { + VariableDatum anX = new VariableDatum(); + anX.Unmarshal(dis); + this._variableDatums.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fixedDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + sb.AppendLine(""); + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; + aFixedDatum.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + sb.AppendLine(""); + VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; + aVariableDatum.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as DataPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(DataPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + if (this._padding1 != obj._padding1) + { + ivarsEqual = false; + } + + if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) + { + ivarsEqual = false; + } + + if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) + { + ivarsEqual = false; + } + + if (this._fixedDatums.Count != obj._fixedDatums.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + if (!this._fixedDatums[idx].Equals(obj._fixedDatums[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._variableDatums.Count != obj._variableDatums.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + result = GenerateHash(result) ^ this._padding1.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); + + if (this._fixedDatums.Count > 0) + { + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + result = GenerateHash(result) ^ this._fixedDatums[idx].GetHashCode(); + } + } + + if (this._variableDatums.Count > 0) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/DataQueryPdu.cs b/Libs/CsharpDis6/Dis1998/Generated/DataQueryPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/DataQueryPdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/DataQueryPdu.cs index fdcc595..d8abd40 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/DataQueryPdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/DataQueryPdu.cs @@ -1,548 +1,548 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.6.8. Request for data from an entity. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(FixedDatum))] - [XmlInclude(typeof(VariableDatum))] - public partial class DataQueryPdu : SimulationManagementFamilyPdu, IEquatable - { - /// - /// ID of request - /// - private uint _requestID; - - /// - /// time issues between issues of Data PDUs. Zero means send once only. - /// - private uint _timeInterval; - - /// - /// Number of fixed datum records - /// - private uint _numberOfFixedDatumRecords; - - /// - /// Number of variable datum records - /// - private uint _numberOfVariableDatumRecords; - - /// - /// variable length list of fixed datums - /// - private List _fixedDatums = new List(); - - /// - /// variable length list of variable length datums - /// - private List _variableDatums = new List(); - - /// - /// Initializes a new instance of the class. - /// - public DataQueryPdu() - { - PduType = (byte)18; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(DataQueryPdu left, DataQueryPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(DataQueryPdu left, DataQueryPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 4; // this._requestID - marshalSize += 4; // this._timeInterval - marshalSize += 4; // this._numberOfFixedDatumRecords - marshalSize += 4; // this._numberOfVariableDatumRecords - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - FixedDatum listElement = (FixedDatum)this._fixedDatums[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - VariableDatum listElement = (VariableDatum)this._variableDatums[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the ID of request - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Gets or sets the time issues between issues of Data PDUs. Zero means send once only. - /// - [XmlElement(Type = typeof(uint), ElementName = "timeInterval")] - public uint TimeInterval - { - get - { - return this._timeInterval; - } - - set - { - this._timeInterval = value; - } - } - - /// - /// Gets or sets the Number of fixed datum records - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] - public uint NumberOfFixedDatumRecords - { - get - { - return this._numberOfFixedDatumRecords; - } - - set - { - this._numberOfFixedDatumRecords = value; - } - } - - /// - /// Gets or sets the Number of variable datum records - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] - public uint NumberOfVariableDatumRecords - { - get - { - return this._numberOfVariableDatumRecords; - } - - set - { - this._numberOfVariableDatumRecords = value; - } - } - - /// - /// Gets the variable length list of fixed datums - /// - [XmlElement(ElementName = "fixedDatumsList", Type = typeof(List))] - public List FixedDatums - { - get - { - return this._fixedDatums; - } - } - - /// - /// Gets the variable length list of variable length datums - /// - [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] - public List VariableDatums - { - get - { - return this._variableDatums; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._requestID); - dos.WriteUnsignedInt((uint)this._timeInterval); - dos.WriteUnsignedInt((uint)this._fixedDatums.Count); - dos.WriteUnsignedInt((uint)this._variableDatums.Count); - - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; - aFixedDatum.Marshal(dos); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; - aVariableDatum.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._requestID = dis.ReadUnsignedInt(); - this._timeInterval = dis.ReadUnsignedInt(); - this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); - this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); - - for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) - { - FixedDatum anX = new FixedDatum(); - anX.Unmarshal(dis); - this._fixedDatums.Add(anX); - } - - for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) - { - VariableDatum anX = new VariableDatum(); - anX.Unmarshal(dis); - this._variableDatums.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._timeInterval.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fixedDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - sb.AppendLine(""); - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; - aFixedDatum.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - sb.AppendLine(""); - VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; - aVariableDatum.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as DataQueryPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(DataQueryPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - if (this._timeInterval != obj._timeInterval) - { - ivarsEqual = false; - } - - if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) - { - ivarsEqual = false; - } - - if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) - { - ivarsEqual = false; - } - - if (this._fixedDatums.Count != obj._fixedDatums.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - if (!this._fixedDatums[idx].Equals(obj._fixedDatums[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._variableDatums.Count != obj._variableDatums.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - result = GenerateHash(result) ^ this._timeInterval.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); - - if (this._fixedDatums.Count > 0) - { - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - result = GenerateHash(result) ^ this._fixedDatums[idx].GetHashCode(); - } - } - - if (this._variableDatums.Count > 0) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.6.8. Request for data from an entity. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(FixedDatum))] + [XmlInclude(typeof(VariableDatum))] + public partial class DataQueryPdu : SimulationManagementFamilyPdu, IEquatable + { + /// + /// ID of request + /// + private uint _requestID; + + /// + /// time issues between issues of Data PDUs. Zero means send once only. + /// + private uint _timeInterval; + + /// + /// Number of fixed datum records + /// + private uint _numberOfFixedDatumRecords; + + /// + /// Number of variable datum records + /// + private uint _numberOfVariableDatumRecords; + + /// + /// variable length list of fixed datums + /// + private List _fixedDatums = new List(); + + /// + /// variable length list of variable length datums + /// + private List _variableDatums = new List(); + + /// + /// Initializes a new instance of the class. + /// + public DataQueryPdu() + { + PduType = (byte)18; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(DataQueryPdu left, DataQueryPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(DataQueryPdu left, DataQueryPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 4; // this._requestID + marshalSize += 4; // this._timeInterval + marshalSize += 4; // this._numberOfFixedDatumRecords + marshalSize += 4; // this._numberOfVariableDatumRecords + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + FixedDatum listElement = (FixedDatum)this._fixedDatums[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + VariableDatum listElement = (VariableDatum)this._variableDatums[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the ID of request + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Gets or sets the time issues between issues of Data PDUs. Zero means send once only. + /// + [XmlElement(Type = typeof(uint), ElementName = "timeInterval")] + public uint TimeInterval + { + get + { + return this._timeInterval; + } + + set + { + this._timeInterval = value; + } + } + + /// + /// Gets or sets the Number of fixed datum records + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] + public uint NumberOfFixedDatumRecords + { + get + { + return this._numberOfFixedDatumRecords; + } + + set + { + this._numberOfFixedDatumRecords = value; + } + } + + /// + /// Gets or sets the Number of variable datum records + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] + public uint NumberOfVariableDatumRecords + { + get + { + return this._numberOfVariableDatumRecords; + } + + set + { + this._numberOfVariableDatumRecords = value; + } + } + + /// + /// Gets the variable length list of fixed datums + /// + [XmlElement(ElementName = "fixedDatumsList", Type = typeof(List))] + public List FixedDatums + { + get + { + return this._fixedDatums; + } + } + + /// + /// Gets the variable length list of variable length datums + /// + [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] + public List VariableDatums + { + get + { + return this._variableDatums; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._requestID); + dos.WriteUnsignedInt((uint)this._timeInterval); + dos.WriteUnsignedInt((uint)this._fixedDatums.Count); + dos.WriteUnsignedInt((uint)this._variableDatums.Count); + + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; + aFixedDatum.Marshal(dos); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; + aVariableDatum.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._requestID = dis.ReadUnsignedInt(); + this._timeInterval = dis.ReadUnsignedInt(); + this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); + this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); + + for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) + { + FixedDatum anX = new FixedDatum(); + anX.Unmarshal(dis); + this._fixedDatums.Add(anX); + } + + for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) + { + VariableDatum anX = new VariableDatum(); + anX.Unmarshal(dis); + this._variableDatums.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._timeInterval.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fixedDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + sb.AppendLine(""); + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; + aFixedDatum.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + sb.AppendLine(""); + VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; + aVariableDatum.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as DataQueryPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(DataQueryPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + if (this._timeInterval != obj._timeInterval) + { + ivarsEqual = false; + } + + if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) + { + ivarsEqual = false; + } + + if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) + { + ivarsEqual = false; + } + + if (this._fixedDatums.Count != obj._fixedDatums.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + if (!this._fixedDatums[idx].Equals(obj._fixedDatums[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._variableDatums.Count != obj._variableDatums.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + result = GenerateHash(result) ^ this._timeInterval.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); + + if (this._fixedDatums.Count > 0) + { + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + result = GenerateHash(result) ^ this._fixedDatums[idx].GetHashCode(); + } + } + + if (this._variableDatums.Count > 0) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/DataQueryReliablePdu.cs b/Libs/CsharpDis6/Dis1998/Generated/DataQueryReliablePdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/DataQueryReliablePdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/DataQueryReliablePdu.cs index fb68637..33948d8 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/DataQueryReliablePdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/DataQueryReliablePdu.cs @@ -1,644 +1,644 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.12.8: request for data from an entity. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(FixedDatum))] - [XmlInclude(typeof(VariableDatum))] - public partial class DataQueryReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable - { - /// - /// level of reliability service used for this transaction - /// - private byte _requiredReliabilityService; - - /// - /// padding - /// - private ushort _pad1; - - /// - /// padding - /// - private byte _pad2; - - /// - /// request ID - /// - private uint _requestID; - - /// - /// time interval between issuing data query PDUs - /// - private uint _timeInterval; - - /// - /// Fixed datum record count - /// - private uint _numberOfFixedDatumRecords; - - /// - /// variable datum record count - /// - private uint _numberOfVariableDatumRecords; - - /// - /// Fixed datum records - /// - private List _fixedDatumRecords = new List(); - - /// - /// Variable datum records - /// - private List _variableDatumRecords = new List(); - - /// - /// Initializes a new instance of the class. - /// - public DataQueryReliablePdu() - { - PduType = (byte)58; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(DataQueryReliablePdu left, DataQueryReliablePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(DataQueryReliablePdu left, DataQueryReliablePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 1; // this._requiredReliabilityService - marshalSize += 2; // this._pad1 - marshalSize += 1; // this._pad2 - marshalSize += 4; // this._requestID - marshalSize += 4; // this._timeInterval - marshalSize += 4; // this._numberOfFixedDatumRecords - marshalSize += 4; // this._numberOfVariableDatumRecords - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - FixedDatum listElement = (FixedDatum)this._fixedDatumRecords[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - VariableDatum listElement = (VariableDatum)this._variableDatumRecords[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the level of reliability service used for this transaction - /// - [XmlElement(Type = typeof(byte), ElementName = "requiredReliabilityService")] - public byte RequiredReliabilityService - { - get - { - return this._requiredReliabilityService; - } - - set - { - this._requiredReliabilityService = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(ushort), ElementName = "pad1")] - public ushort Pad1 - { - get - { - return this._pad1; - } - - set - { - this._pad1 = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "pad2")] - public byte Pad2 - { - get - { - return this._pad2; - } - - set - { - this._pad2 = value; - } - } - - /// - /// Gets or sets the request ID - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Gets or sets the time interval between issuing data query PDUs - /// - [XmlElement(Type = typeof(uint), ElementName = "timeInterval")] - public uint TimeInterval - { - get - { - return this._timeInterval; - } - - set - { - this._timeInterval = value; - } - } - - /// - /// Gets or sets the Fixed datum record count - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] - public uint NumberOfFixedDatumRecords - { - get - { - return this._numberOfFixedDatumRecords; - } - - set - { - this._numberOfFixedDatumRecords = value; - } - } - - /// - /// Gets or sets the variable datum record count - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] - public uint NumberOfVariableDatumRecords - { - get - { - return this._numberOfVariableDatumRecords; - } - - set - { - this._numberOfVariableDatumRecords = value; - } - } - - /// - /// Gets the Fixed datum records - /// - [XmlElement(ElementName = "fixedDatumRecordsList", Type = typeof(List))] - public List FixedDatumRecords - { - get - { - return this._fixedDatumRecords; - } - } - - /// - /// Gets the Variable datum records - /// - [XmlElement(ElementName = "variableDatumRecordsList", Type = typeof(List))] - public List VariableDatumRecords - { - get - { - return this._variableDatumRecords; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._requiredReliabilityService); - dos.WriteUnsignedShort((ushort)this._pad1); - dos.WriteUnsignedByte((byte)this._pad2); - dos.WriteUnsignedInt((uint)this._requestID); - dos.WriteUnsignedInt((uint)this._timeInterval); - dos.WriteUnsignedInt((uint)this._fixedDatumRecords.Count); - dos.WriteUnsignedInt((uint)this._variableDatumRecords.Count); - - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; - aFixedDatum.Marshal(dos); - } - - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; - aVariableDatum.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._requiredReliabilityService = dis.ReadUnsignedByte(); - this._pad1 = dis.ReadUnsignedShort(); - this._pad2 = dis.ReadUnsignedByte(); - this._requestID = dis.ReadUnsignedInt(); - this._timeInterval = dis.ReadUnsignedInt(); - this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); - this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); - - for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) - { - FixedDatum anX = new FixedDatum(); - anX.Unmarshal(dis); - this._fixedDatumRecords.Add(anX); - } - - for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) - { - VariableDatum anX = new VariableDatum(); - anX.Unmarshal(dis); - this._variableDatumRecords.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._requiredReliabilityService.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._timeInterval.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fixedDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - sb.AppendLine(""); - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; - aFixedDatum.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - sb.AppendLine(""); - VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; - aVariableDatum.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as DataQueryReliablePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(DataQueryReliablePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._requiredReliabilityService != obj._requiredReliabilityService) - { - ivarsEqual = false; - } - - if (this._pad1 != obj._pad1) - { - ivarsEqual = false; - } - - if (this._pad2 != obj._pad2) - { - ivarsEqual = false; - } - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - if (this._timeInterval != obj._timeInterval) - { - ivarsEqual = false; - } - - if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) - { - ivarsEqual = false; - } - - if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) - { - ivarsEqual = false; - } - - if (this._fixedDatumRecords.Count != obj._fixedDatumRecords.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - if (!this._fixedDatumRecords[idx].Equals(obj._fixedDatumRecords[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._variableDatumRecords.Count != obj._variableDatumRecords.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - if (!this._variableDatumRecords[idx].Equals(obj._variableDatumRecords[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._requiredReliabilityService.GetHashCode(); - result = GenerateHash(result) ^ this._pad1.GetHashCode(); - result = GenerateHash(result) ^ this._pad2.GetHashCode(); - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - result = GenerateHash(result) ^ this._timeInterval.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); - - if (this._fixedDatumRecords.Count > 0) - { - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - result = GenerateHash(result) ^ this._fixedDatumRecords[idx].GetHashCode(); - } - } - - if (this._variableDatumRecords.Count > 0) - { - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - result = GenerateHash(result) ^ this._variableDatumRecords[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.12.8: request for data from an entity. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(FixedDatum))] + [XmlInclude(typeof(VariableDatum))] + public partial class DataQueryReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable + { + /// + /// level of reliability service used for this transaction + /// + private byte _requiredReliabilityService; + + /// + /// padding + /// + private ushort _pad1; + + /// + /// padding + /// + private byte _pad2; + + /// + /// request ID + /// + private uint _requestID; + + /// + /// time interval between issuing data query PDUs + /// + private uint _timeInterval; + + /// + /// Fixed datum record count + /// + private uint _numberOfFixedDatumRecords; + + /// + /// variable datum record count + /// + private uint _numberOfVariableDatumRecords; + + /// + /// Fixed datum records + /// + private List _fixedDatumRecords = new List(); + + /// + /// Variable datum records + /// + private List _variableDatumRecords = new List(); + + /// + /// Initializes a new instance of the class. + /// + public DataQueryReliablePdu() + { + PduType = (byte)58; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(DataQueryReliablePdu left, DataQueryReliablePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(DataQueryReliablePdu left, DataQueryReliablePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 1; // this._requiredReliabilityService + marshalSize += 2; // this._pad1 + marshalSize += 1; // this._pad2 + marshalSize += 4; // this._requestID + marshalSize += 4; // this._timeInterval + marshalSize += 4; // this._numberOfFixedDatumRecords + marshalSize += 4; // this._numberOfVariableDatumRecords + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + FixedDatum listElement = (FixedDatum)this._fixedDatumRecords[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + VariableDatum listElement = (VariableDatum)this._variableDatumRecords[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the level of reliability service used for this transaction + /// + [XmlElement(Type = typeof(byte), ElementName = "requiredReliabilityService")] + public byte RequiredReliabilityService + { + get + { + return this._requiredReliabilityService; + } + + set + { + this._requiredReliabilityService = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(ushort), ElementName = "pad1")] + public ushort Pad1 + { + get + { + return this._pad1; + } + + set + { + this._pad1 = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "pad2")] + public byte Pad2 + { + get + { + return this._pad2; + } + + set + { + this._pad2 = value; + } + } + + /// + /// Gets or sets the request ID + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Gets or sets the time interval between issuing data query PDUs + /// + [XmlElement(Type = typeof(uint), ElementName = "timeInterval")] + public uint TimeInterval + { + get + { + return this._timeInterval; + } + + set + { + this._timeInterval = value; + } + } + + /// + /// Gets or sets the Fixed datum record count + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] + public uint NumberOfFixedDatumRecords + { + get + { + return this._numberOfFixedDatumRecords; + } + + set + { + this._numberOfFixedDatumRecords = value; + } + } + + /// + /// Gets or sets the variable datum record count + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] + public uint NumberOfVariableDatumRecords + { + get + { + return this._numberOfVariableDatumRecords; + } + + set + { + this._numberOfVariableDatumRecords = value; + } + } + + /// + /// Gets the Fixed datum records + /// + [XmlElement(ElementName = "fixedDatumRecordsList", Type = typeof(List))] + public List FixedDatumRecords + { + get + { + return this._fixedDatumRecords; + } + } + + /// + /// Gets the Variable datum records + /// + [XmlElement(ElementName = "variableDatumRecordsList", Type = typeof(List))] + public List VariableDatumRecords + { + get + { + return this._variableDatumRecords; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._requiredReliabilityService); + dos.WriteUnsignedShort((ushort)this._pad1); + dos.WriteUnsignedByte((byte)this._pad2); + dos.WriteUnsignedInt((uint)this._requestID); + dos.WriteUnsignedInt((uint)this._timeInterval); + dos.WriteUnsignedInt((uint)this._fixedDatumRecords.Count); + dos.WriteUnsignedInt((uint)this._variableDatumRecords.Count); + + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; + aFixedDatum.Marshal(dos); + } + + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; + aVariableDatum.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._requiredReliabilityService = dis.ReadUnsignedByte(); + this._pad1 = dis.ReadUnsignedShort(); + this._pad2 = dis.ReadUnsignedByte(); + this._requestID = dis.ReadUnsignedInt(); + this._timeInterval = dis.ReadUnsignedInt(); + this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); + this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); + + for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) + { + FixedDatum anX = new FixedDatum(); + anX.Unmarshal(dis); + this._fixedDatumRecords.Add(anX); + } + + for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) + { + VariableDatum anX = new VariableDatum(); + anX.Unmarshal(dis); + this._variableDatumRecords.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._requiredReliabilityService.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._timeInterval.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fixedDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + sb.AppendLine(""); + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; + aFixedDatum.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + sb.AppendLine(""); + VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; + aVariableDatum.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as DataQueryReliablePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(DataQueryReliablePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._requiredReliabilityService != obj._requiredReliabilityService) + { + ivarsEqual = false; + } + + if (this._pad1 != obj._pad1) + { + ivarsEqual = false; + } + + if (this._pad2 != obj._pad2) + { + ivarsEqual = false; + } + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + if (this._timeInterval != obj._timeInterval) + { + ivarsEqual = false; + } + + if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) + { + ivarsEqual = false; + } + + if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) + { + ivarsEqual = false; + } + + if (this._fixedDatumRecords.Count != obj._fixedDatumRecords.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + if (!this._fixedDatumRecords[idx].Equals(obj._fixedDatumRecords[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._variableDatumRecords.Count != obj._variableDatumRecords.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + if (!this._variableDatumRecords[idx].Equals(obj._variableDatumRecords[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._requiredReliabilityService.GetHashCode(); + result = GenerateHash(result) ^ this._pad1.GetHashCode(); + result = GenerateHash(result) ^ this._pad2.GetHashCode(); + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + result = GenerateHash(result) ^ this._timeInterval.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); + + if (this._fixedDatumRecords.Count > 0) + { + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + result = GenerateHash(result) ^ this._fixedDatumRecords[idx].GetHashCode(); + } + } + + if (this._variableDatumRecords.Count > 0) + { + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + result = GenerateHash(result) ^ this._variableDatumRecords[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/DataReliablePdu.cs b/Libs/CsharpDis6/Dis1998/Generated/DataReliablePdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/DataReliablePdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/DataReliablePdu.cs index 5dc6182..01c754c 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/DataReliablePdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/DataReliablePdu.cs @@ -1,612 +1,612 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.12.10: issued in response to a data query R or set dataR pdu. Needs manual intervention to fix padding on variable datums. UNFINSIHED - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(FixedDatum))] - [XmlInclude(typeof(VariableDatum))] - public partial class DataReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable - { - /// - /// Request ID - /// - private uint _requestID; - - /// - /// level of reliability service used for this transaction - /// - private byte _requiredReliabilityService; - - /// - /// padding - /// - private ushort _pad1; - - /// - /// padding - /// - private byte _pad2; - - /// - /// Fixed datum record count - /// - private uint _numberOfFixedDatumRecords; - - /// - /// variable datum record count - /// - private uint _numberOfVariableDatumRecords; - - /// - /// Fixed datum records - /// - private List _fixedDatumRecords = new List(); - - /// - /// Variable datum records - /// - private List _variableDatumRecords = new List(); - - /// - /// Initializes a new instance of the class. - /// - public DataReliablePdu() - { - PduType = (byte)60; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(DataReliablePdu left, DataReliablePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(DataReliablePdu left, DataReliablePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 4; // this._requestID - marshalSize += 1; // this._requiredReliabilityService - marshalSize += 2; // this._pad1 - marshalSize += 1; // this._pad2 - marshalSize += 4; // this._numberOfFixedDatumRecords - marshalSize += 4; // this._numberOfVariableDatumRecords - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - FixedDatum listElement = (FixedDatum)this._fixedDatumRecords[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - VariableDatum listElement = (VariableDatum)this._variableDatumRecords[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Request ID - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Gets or sets the level of reliability service used for this transaction - /// - [XmlElement(Type = typeof(byte), ElementName = "requiredReliabilityService")] - public byte RequiredReliabilityService - { - get - { - return this._requiredReliabilityService; - } - - set - { - this._requiredReliabilityService = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(ushort), ElementName = "pad1")] - public ushort Pad1 - { - get - { - return this._pad1; - } - - set - { - this._pad1 = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "pad2")] - public byte Pad2 - { - get - { - return this._pad2; - } - - set - { - this._pad2 = value; - } - } - - /// - /// Gets or sets the Fixed datum record count - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] - public uint NumberOfFixedDatumRecords - { - get - { - return this._numberOfFixedDatumRecords; - } - - set - { - this._numberOfFixedDatumRecords = value; - } - } - - /// - /// Gets or sets the variable datum record count - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] - public uint NumberOfVariableDatumRecords - { - get - { - return this._numberOfVariableDatumRecords; - } - - set - { - this._numberOfVariableDatumRecords = value; - } - } - - /// - /// Gets the Fixed datum records - /// - [XmlElement(ElementName = "fixedDatumRecordsList", Type = typeof(List))] - public List FixedDatumRecords - { - get - { - return this._fixedDatumRecords; - } - } - - /// - /// Gets the Variable datum records - /// - [XmlElement(ElementName = "variableDatumRecordsList", Type = typeof(List))] - public List VariableDatumRecords - { - get - { - return this._variableDatumRecords; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._requestID); - dos.WriteUnsignedByte((byte)this._requiredReliabilityService); - dos.WriteUnsignedShort((ushort)this._pad1); - dos.WriteUnsignedByte((byte)this._pad2); - dos.WriteUnsignedInt((uint)this._fixedDatumRecords.Count); - dos.WriteUnsignedInt((uint)this._variableDatumRecords.Count); - - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; - aFixedDatum.Marshal(dos); - } - - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; - aVariableDatum.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._requestID = dis.ReadUnsignedInt(); - this._requiredReliabilityService = dis.ReadUnsignedByte(); - this._pad1 = dis.ReadUnsignedShort(); - this._pad2 = dis.ReadUnsignedByte(); - this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); - this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); - - for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) - { - FixedDatum anX = new FixedDatum(); - anX.Unmarshal(dis); - this._fixedDatumRecords.Add(anX); - } - - for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) - { - VariableDatum anX = new VariableDatum(); - anX.Unmarshal(dis); - this._variableDatumRecords.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._requiredReliabilityService.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fixedDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - sb.AppendLine(""); - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; - aFixedDatum.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - sb.AppendLine(""); - VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; - aVariableDatum.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as DataReliablePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(DataReliablePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - if (this._requiredReliabilityService != obj._requiredReliabilityService) - { - ivarsEqual = false; - } - - if (this._pad1 != obj._pad1) - { - ivarsEqual = false; - } - - if (this._pad2 != obj._pad2) - { - ivarsEqual = false; - } - - if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) - { - ivarsEqual = false; - } - - if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) - { - ivarsEqual = false; - } - - if (this._fixedDatumRecords.Count != obj._fixedDatumRecords.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - if (!this._fixedDatumRecords[idx].Equals(obj._fixedDatumRecords[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._variableDatumRecords.Count != obj._variableDatumRecords.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - if (!this._variableDatumRecords[idx].Equals(obj._variableDatumRecords[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - result = GenerateHash(result) ^ this._requiredReliabilityService.GetHashCode(); - result = GenerateHash(result) ^ this._pad1.GetHashCode(); - result = GenerateHash(result) ^ this._pad2.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); - - if (this._fixedDatumRecords.Count > 0) - { - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - result = GenerateHash(result) ^ this._fixedDatumRecords[idx].GetHashCode(); - } - } - - if (this._variableDatumRecords.Count > 0) - { - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - result = GenerateHash(result) ^ this._variableDatumRecords[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.12.10: issued in response to a data query R or set dataR pdu. Needs manual intervention to fix padding on variable datums. UNFINSIHED + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(FixedDatum))] + [XmlInclude(typeof(VariableDatum))] + public partial class DataReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable + { + /// + /// Request ID + /// + private uint _requestID; + + /// + /// level of reliability service used for this transaction + /// + private byte _requiredReliabilityService; + + /// + /// padding + /// + private ushort _pad1; + + /// + /// padding + /// + private byte _pad2; + + /// + /// Fixed datum record count + /// + private uint _numberOfFixedDatumRecords; + + /// + /// variable datum record count + /// + private uint _numberOfVariableDatumRecords; + + /// + /// Fixed datum records + /// + private List _fixedDatumRecords = new List(); + + /// + /// Variable datum records + /// + private List _variableDatumRecords = new List(); + + /// + /// Initializes a new instance of the class. + /// + public DataReliablePdu() + { + PduType = (byte)60; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(DataReliablePdu left, DataReliablePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(DataReliablePdu left, DataReliablePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 4; // this._requestID + marshalSize += 1; // this._requiredReliabilityService + marshalSize += 2; // this._pad1 + marshalSize += 1; // this._pad2 + marshalSize += 4; // this._numberOfFixedDatumRecords + marshalSize += 4; // this._numberOfVariableDatumRecords + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + FixedDatum listElement = (FixedDatum)this._fixedDatumRecords[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + VariableDatum listElement = (VariableDatum)this._variableDatumRecords[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Request ID + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Gets or sets the level of reliability service used for this transaction + /// + [XmlElement(Type = typeof(byte), ElementName = "requiredReliabilityService")] + public byte RequiredReliabilityService + { + get + { + return this._requiredReliabilityService; + } + + set + { + this._requiredReliabilityService = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(ushort), ElementName = "pad1")] + public ushort Pad1 + { + get + { + return this._pad1; + } + + set + { + this._pad1 = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "pad2")] + public byte Pad2 + { + get + { + return this._pad2; + } + + set + { + this._pad2 = value; + } + } + + /// + /// Gets or sets the Fixed datum record count + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] + public uint NumberOfFixedDatumRecords + { + get + { + return this._numberOfFixedDatumRecords; + } + + set + { + this._numberOfFixedDatumRecords = value; + } + } + + /// + /// Gets or sets the variable datum record count + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] + public uint NumberOfVariableDatumRecords + { + get + { + return this._numberOfVariableDatumRecords; + } + + set + { + this._numberOfVariableDatumRecords = value; + } + } + + /// + /// Gets the Fixed datum records + /// + [XmlElement(ElementName = "fixedDatumRecordsList", Type = typeof(List))] + public List FixedDatumRecords + { + get + { + return this._fixedDatumRecords; + } + } + + /// + /// Gets the Variable datum records + /// + [XmlElement(ElementName = "variableDatumRecordsList", Type = typeof(List))] + public List VariableDatumRecords + { + get + { + return this._variableDatumRecords; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._requestID); + dos.WriteUnsignedByte((byte)this._requiredReliabilityService); + dos.WriteUnsignedShort((ushort)this._pad1); + dos.WriteUnsignedByte((byte)this._pad2); + dos.WriteUnsignedInt((uint)this._fixedDatumRecords.Count); + dos.WriteUnsignedInt((uint)this._variableDatumRecords.Count); + + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; + aFixedDatum.Marshal(dos); + } + + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; + aVariableDatum.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._requestID = dis.ReadUnsignedInt(); + this._requiredReliabilityService = dis.ReadUnsignedByte(); + this._pad1 = dis.ReadUnsignedShort(); + this._pad2 = dis.ReadUnsignedByte(); + this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); + this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); + + for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) + { + FixedDatum anX = new FixedDatum(); + anX.Unmarshal(dis); + this._fixedDatumRecords.Add(anX); + } + + for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) + { + VariableDatum anX = new VariableDatum(); + anX.Unmarshal(dis); + this._variableDatumRecords.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._requiredReliabilityService.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fixedDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + sb.AppendLine(""); + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; + aFixedDatum.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + sb.AppendLine(""); + VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; + aVariableDatum.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as DataReliablePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(DataReliablePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + if (this._requiredReliabilityService != obj._requiredReliabilityService) + { + ivarsEqual = false; + } + + if (this._pad1 != obj._pad1) + { + ivarsEqual = false; + } + + if (this._pad2 != obj._pad2) + { + ivarsEqual = false; + } + + if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) + { + ivarsEqual = false; + } + + if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) + { + ivarsEqual = false; + } + + if (this._fixedDatumRecords.Count != obj._fixedDatumRecords.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + if (!this._fixedDatumRecords[idx].Equals(obj._fixedDatumRecords[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._variableDatumRecords.Count != obj._variableDatumRecords.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + if (!this._variableDatumRecords[idx].Equals(obj._variableDatumRecords[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + result = GenerateHash(result) ^ this._requiredReliabilityService.GetHashCode(); + result = GenerateHash(result) ^ this._pad1.GetHashCode(); + result = GenerateHash(result) ^ this._pad2.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); + + if (this._fixedDatumRecords.Count > 0) + { + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + result = GenerateHash(result) ^ this._fixedDatumRecords[idx].GetHashCode(); + } + } + + if (this._variableDatumRecords.Count > 0) + { + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + result = GenerateHash(result) ^ this._variableDatumRecords[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/DeadReckoningParameter.cs b/Libs/CsharpDis6/Dis1998/Generated/DeadReckoningParameter.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/DeadReckoningParameter.cs rename to Libs/CsharpDis6/Dis1998/Generated/DeadReckoningParameter.cs index 448747a..7c5160a 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/DeadReckoningParameter.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/DeadReckoningParameter.cs @@ -1,431 +1,431 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// represents values used in dead reckoning algorithms - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(Vector3Float))] - public partial class DeadReckoningParameter - { - /// - /// enumeration of what dead reckoning algorighm to use - /// - private byte _deadReckoningAlgorithm; - - /// - /// other parameters to use in the dead reckoning algorithm - /// - private byte[] _otherParameters = new byte[15]; - - /// - /// Linear acceleration of the entity - /// - private Vector3Float _entityLinearAcceleration = new Vector3Float(); - - /// - /// angular velocity of the entity - /// - private Vector3Float _entityAngularVelocity = new Vector3Float(); - - /// - /// Initializes a new instance of the class. - /// - public DeadReckoningParameter() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(DeadReckoningParameter left, DeadReckoningParameter right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(DeadReckoningParameter left, DeadReckoningParameter right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._deadReckoningAlgorithm - marshalSize += 15 * 1; // _otherParameters - marshalSize += this._entityLinearAcceleration.GetMarshalledSize(); // this._entityLinearAcceleration - marshalSize += this._entityAngularVelocity.GetMarshalledSize(); // this._entityAngularVelocity - return marshalSize; - } - - /// - /// Gets or sets the enumeration of what dead reckoning algorighm to use - /// - [XmlElement(Type = typeof(byte), ElementName = "deadReckoningAlgorithm")] - public byte DeadReckoningAlgorithm - { - get - { - return this._deadReckoningAlgorithm; - } - - set - { - this._deadReckoningAlgorithm = value; - } - } - - /// - /// Gets or sets the other parameters to use in the dead reckoning algorithm - /// - [XmlArray(ElementName = "otherParameters")] - public byte[] OtherParameters - { - get - { - return this._otherParameters; - } - - set - { - this._otherParameters = value; - } -} - - /// - /// Gets or sets the Linear acceleration of the entity - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "entityLinearAcceleration")] - public Vector3Float EntityLinearAcceleration - { - get - { - return this._entityLinearAcceleration; - } - - set - { - this._entityLinearAcceleration = value; - } - } - - /// - /// Gets or sets the angular velocity of the entity - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "entityAngularVelocity")] - public Vector3Float EntityAngularVelocity - { - get - { - return this._entityAngularVelocity; - } - - set - { - this._entityAngularVelocity = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._deadReckoningAlgorithm); - - for (int idx = 0; idx < this._otherParameters.Length; idx++) - { - dos.WriteByte(this._otherParameters[idx]); - } - - this._entityLinearAcceleration.Marshal(dos); - this._entityAngularVelocity.Marshal(dos); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._deadReckoningAlgorithm = dis.ReadUnsignedByte(); - - for (int idx = 0; idx < this._otherParameters.Length; idx++) - { - this._otherParameters[idx] = dis.ReadByte(); - } - - this._entityLinearAcceleration.Unmarshal(dis); - this._entityAngularVelocity.Unmarshal(dis); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._deadReckoningAlgorithm.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._otherParameters.Length; idx++) - { - sb.AppendLine("" + this._otherParameters[idx] + ""); - } - - sb.AppendLine(""); - this._entityLinearAcceleration.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._entityAngularVelocity.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as DeadReckoningParameter; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(DeadReckoningParameter obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._deadReckoningAlgorithm != obj._deadReckoningAlgorithm) - { - ivarsEqual = false; - } - - if (obj._otherParameters.Length != 15) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < 15; idx++) - { - if (this._otherParameters[idx] != obj._otherParameters[idx]) - { - ivarsEqual = false; - } - } - } - - if (!this._entityLinearAcceleration.Equals(obj._entityLinearAcceleration)) - { - ivarsEqual = false; - } - - if (!this._entityAngularVelocity.Equals(obj._entityAngularVelocity)) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._deadReckoningAlgorithm.GetHashCode(); - - for (int idx = 0; idx < 15; idx++) - { - result = GenerateHash(result) ^ this._otherParameters[idx].GetHashCode(); - } - - result = GenerateHash(result) ^ this._entityLinearAcceleration.GetHashCode(); - result = GenerateHash(result) ^ this._entityAngularVelocity.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// represents values used in dead reckoning algorithms + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(Vector3Float))] + public partial class DeadReckoningParameter + { + /// + /// enumeration of what dead reckoning algorighm to use + /// + private byte _deadReckoningAlgorithm; + + /// + /// other parameters to use in the dead reckoning algorithm + /// + private byte[] _otherParameters = new byte[15]; + + /// + /// Linear acceleration of the entity + /// + private Vector3Float _entityLinearAcceleration = new Vector3Float(); + + /// + /// angular velocity of the entity + /// + private Vector3Float _entityAngularVelocity = new Vector3Float(); + + /// + /// Initializes a new instance of the class. + /// + public DeadReckoningParameter() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(DeadReckoningParameter left, DeadReckoningParameter right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(DeadReckoningParameter left, DeadReckoningParameter right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._deadReckoningAlgorithm + marshalSize += 15 * 1; // _otherParameters + marshalSize += this._entityLinearAcceleration.GetMarshalledSize(); // this._entityLinearAcceleration + marshalSize += this._entityAngularVelocity.GetMarshalledSize(); // this._entityAngularVelocity + return marshalSize; + } + + /// + /// Gets or sets the enumeration of what dead reckoning algorighm to use + /// + [XmlElement(Type = typeof(byte), ElementName = "deadReckoningAlgorithm")] + public byte DeadReckoningAlgorithm + { + get + { + return this._deadReckoningAlgorithm; + } + + set + { + this._deadReckoningAlgorithm = value; + } + } + + /// + /// Gets or sets the other parameters to use in the dead reckoning algorithm + /// + [XmlArray(ElementName = "otherParameters")] + public byte[] OtherParameters + { + get + { + return this._otherParameters; + } + + set + { + this._otherParameters = value; + } +} + + /// + /// Gets or sets the Linear acceleration of the entity + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "entityLinearAcceleration")] + public Vector3Float EntityLinearAcceleration + { + get + { + return this._entityLinearAcceleration; + } + + set + { + this._entityLinearAcceleration = value; + } + } + + /// + /// Gets or sets the angular velocity of the entity + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "entityAngularVelocity")] + public Vector3Float EntityAngularVelocity + { + get + { + return this._entityAngularVelocity; + } + + set + { + this._entityAngularVelocity = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._deadReckoningAlgorithm); + + for (int idx = 0; idx < this._otherParameters.Length; idx++) + { + dos.WriteByte(this._otherParameters[idx]); + } + + this._entityLinearAcceleration.Marshal(dos); + this._entityAngularVelocity.Marshal(dos); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._deadReckoningAlgorithm = dis.ReadUnsignedByte(); + + for (int idx = 0; idx < this._otherParameters.Length; idx++) + { + this._otherParameters[idx] = dis.ReadByte(); + } + + this._entityLinearAcceleration.Unmarshal(dis); + this._entityAngularVelocity.Unmarshal(dis); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._deadReckoningAlgorithm.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._otherParameters.Length; idx++) + { + sb.AppendLine("" + this._otherParameters[idx] + ""); + } + + sb.AppendLine(""); + this._entityLinearAcceleration.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._entityAngularVelocity.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as DeadReckoningParameter; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(DeadReckoningParameter obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._deadReckoningAlgorithm != obj._deadReckoningAlgorithm) + { + ivarsEqual = false; + } + + if (obj._otherParameters.Length != 15) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < 15; idx++) + { + if (this._otherParameters[idx] != obj._otherParameters[idx]) + { + ivarsEqual = false; + } + } + } + + if (!this._entityLinearAcceleration.Equals(obj._entityLinearAcceleration)) + { + ivarsEqual = false; + } + + if (!this._entityAngularVelocity.Equals(obj._entityAngularVelocity)) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._deadReckoningAlgorithm.GetHashCode(); + + for (int idx = 0; idx < 15; idx++) + { + result = GenerateHash(result) ^ this._otherParameters[idx].GetHashCode(); + } + + result = GenerateHash(result) ^ this._entityLinearAcceleration.GetHashCode(); + result = GenerateHash(result) ^ this._entityAngularVelocity.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/DesignatorPdu.cs b/Libs/CsharpDis6/Dis1998/Generated/DesignatorPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/DesignatorPdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/DesignatorPdu.cs index 33ea1ed..6bb28b3 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/DesignatorPdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/DesignatorPdu.cs @@ -1,669 +1,669 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.7.2. Handles designating operations. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(Vector3Float))] - [XmlInclude(typeof(Vector3Double))] - public partial class DesignatorPdu : DistributedEmissionsFamilyPdu, IEquatable - { - /// - /// ID of the entity designating - /// - private EntityID _designatingEntityID = new EntityID(); - - /// - /// This field shall specify a unique emitter database number assigned to differentiate between otherwise similar or identical emitter beams within an emitter system. - /// - private ushort _codeName; - - /// - /// ID of the entity being designated - /// - private EntityID _designatedEntityID = new EntityID(); - - /// - /// This field shall identify the designator code being used by the designating entity - /// - private ushort _designatorCode; - - /// - /// This field shall identify the designator output power in watts - /// - private float _designatorPower; - - /// - /// This field shall identify the designator wavelength in units of microns - /// - private float _designatorWavelength; - - /// - /// designtor spot wrt the designated entity - /// - private Vector3Float _designatorSpotWrtDesignated = new Vector3Float(); - - /// - /// designtor spot wrt the designated entity - /// - private Vector3Double _designatorSpotLocation = new Vector3Double(); - - /// - /// Dead reckoning algorithm - /// - private byte _deadReckoningAlgorithm; - - /// - /// padding - /// - private ushort _padding1; - - /// - /// padding - /// - private byte _padding2; - - /// - /// linear accelleration of entity - /// - private Vector3Float _entityLinearAcceleration = new Vector3Float(); - - /// - /// Initializes a new instance of the class. - /// - public DesignatorPdu() - { - PduType = (byte)24; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(DesignatorPdu left, DesignatorPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(DesignatorPdu left, DesignatorPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._designatingEntityID.GetMarshalledSize(); // this._designatingEntityID - marshalSize += 2; // this._codeName - marshalSize += this._designatedEntityID.GetMarshalledSize(); // this._designatedEntityID - marshalSize += 2; // this._designatorCode - marshalSize += 4; // this._designatorPower - marshalSize += 4; // this._designatorWavelength - marshalSize += this._designatorSpotWrtDesignated.GetMarshalledSize(); // this._designatorSpotWrtDesignated - marshalSize += this._designatorSpotLocation.GetMarshalledSize(); // this._designatorSpotLocation - marshalSize += 1; // this._deadReckoningAlgorithm - marshalSize += 2; // this._padding1 - marshalSize += 1; // this._padding2 - marshalSize += this._entityLinearAcceleration.GetMarshalledSize(); // this._entityLinearAcceleration - return marshalSize; - } - - /// - /// Gets or sets the ID of the entity designating - /// - [XmlElement(Type = typeof(EntityID), ElementName = "designatingEntityID")] - public EntityID DesignatingEntityID - { - get - { - return this._designatingEntityID; - } - - set - { - this._designatingEntityID = value; - } - } - - /// - /// Gets or sets the This field shall specify a unique emitter database number assigned to differentiate between otherwise similar or identical emitter beams within an emitter system. - /// - [XmlElement(Type = typeof(ushort), ElementName = "codeName")] - public ushort CodeName - { - get - { - return this._codeName; - } - - set - { - this._codeName = value; - } - } - - /// - /// Gets or sets the ID of the entity being designated - /// - [XmlElement(Type = typeof(EntityID), ElementName = "designatedEntityID")] - public EntityID DesignatedEntityID - { - get - { - return this._designatedEntityID; - } - - set - { - this._designatedEntityID = value; - } - } - - /// - /// Gets or sets the This field shall identify the designator code being used by the designating entity - /// - [XmlElement(Type = typeof(ushort), ElementName = "designatorCode")] - public ushort DesignatorCode - { - get - { - return this._designatorCode; - } - - set - { - this._designatorCode = value; - } - } - - /// - /// Gets or sets the This field shall identify the designator output power in watts - /// - [XmlElement(Type = typeof(float), ElementName = "designatorPower")] - public float DesignatorPower - { - get - { - return this._designatorPower; - } - - set - { - this._designatorPower = value; - } - } - - /// - /// Gets or sets the This field shall identify the designator wavelength in units of microns - /// - [XmlElement(Type = typeof(float), ElementName = "designatorWavelength")] - public float DesignatorWavelength - { - get - { - return this._designatorWavelength; - } - - set - { - this._designatorWavelength = value; - } - } - - /// - /// Gets or sets the designtor spot wrt the designated entity - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "designatorSpotWrtDesignated")] - public Vector3Float DesignatorSpotWrtDesignated - { - get - { - return this._designatorSpotWrtDesignated; - } - - set - { - this._designatorSpotWrtDesignated = value; - } - } - - /// - /// Gets or sets the designtor spot wrt the designated entity - /// - [XmlElement(Type = typeof(Vector3Double), ElementName = "designatorSpotLocation")] - public Vector3Double DesignatorSpotLocation - { - get - { - return this._designatorSpotLocation; - } - - set - { - this._designatorSpotLocation = value; - } - } - - /// - /// Gets or sets the Dead reckoning algorithm - /// - [XmlElement(Type = typeof(byte), ElementName = "deadReckoningAlgorithm")] - public byte DeadReckoningAlgorithm - { - get - { - return this._deadReckoningAlgorithm; - } - - set - { - this._deadReckoningAlgorithm = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(ushort), ElementName = "padding1")] - public ushort Padding1 - { - get - { - return this._padding1; - } - - set - { - this._padding1 = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "padding2")] - public byte Padding2 - { - get - { - return this._padding2; - } - - set - { - this._padding2 = value; - } - } - - /// - /// Gets or sets the linear accelleration of entity - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "entityLinearAcceleration")] - public Vector3Float EntityLinearAcceleration - { - get - { - return this._entityLinearAcceleration; - } - - set - { - this._entityLinearAcceleration = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._designatingEntityID.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._codeName); - this._designatedEntityID.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._designatorCode); - dos.WriteFloat((float)this._designatorPower); - dos.WriteFloat((float)this._designatorWavelength); - this._designatorSpotWrtDesignated.Marshal(dos); - this._designatorSpotLocation.Marshal(dos); - dos.WriteByte((byte)this._deadReckoningAlgorithm); - dos.WriteUnsignedShort((ushort)this._padding1); - dos.WriteByte((byte)this._padding2); - this._entityLinearAcceleration.Marshal(dos); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._designatingEntityID.Unmarshal(dis); - this._codeName = dis.ReadUnsignedShort(); - this._designatedEntityID.Unmarshal(dis); - this._designatorCode = dis.ReadUnsignedShort(); - this._designatorPower = dis.ReadFloat(); - this._designatorWavelength = dis.ReadFloat(); - this._designatorSpotWrtDesignated.Unmarshal(dis); - this._designatorSpotLocation.Unmarshal(dis); - this._deadReckoningAlgorithm = dis.ReadByte(); - this._padding1 = dis.ReadUnsignedShort(); - this._padding2 = dis.ReadByte(); - this._entityLinearAcceleration.Unmarshal(dis); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._designatingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._codeName.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._designatedEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._designatorCode.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._designatorPower.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._designatorWavelength.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._designatorSpotWrtDesignated.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._designatorSpotLocation.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._deadReckoningAlgorithm.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._entityLinearAcceleration.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as DesignatorPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(DesignatorPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._designatingEntityID.Equals(obj._designatingEntityID)) - { - ivarsEqual = false; - } - - if (this._codeName != obj._codeName) - { - ivarsEqual = false; - } - - if (!this._designatedEntityID.Equals(obj._designatedEntityID)) - { - ivarsEqual = false; - } - - if (this._designatorCode != obj._designatorCode) - { - ivarsEqual = false; - } - - if (this._designatorPower != obj._designatorPower) - { - ivarsEqual = false; - } - - if (this._designatorWavelength != obj._designatorWavelength) - { - ivarsEqual = false; - } - - if (!this._designatorSpotWrtDesignated.Equals(obj._designatorSpotWrtDesignated)) - { - ivarsEqual = false; - } - - if (!this._designatorSpotLocation.Equals(obj._designatorSpotLocation)) - { - ivarsEqual = false; - } - - if (this._deadReckoningAlgorithm != obj._deadReckoningAlgorithm) - { - ivarsEqual = false; - } - - if (this._padding1 != obj._padding1) - { - ivarsEqual = false; - } - - if (this._padding2 != obj._padding2) - { - ivarsEqual = false; - } - - if (!this._entityLinearAcceleration.Equals(obj._entityLinearAcceleration)) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._designatingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._codeName.GetHashCode(); - result = GenerateHash(result) ^ this._designatedEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._designatorCode.GetHashCode(); - result = GenerateHash(result) ^ this._designatorPower.GetHashCode(); - result = GenerateHash(result) ^ this._designatorWavelength.GetHashCode(); - result = GenerateHash(result) ^ this._designatorSpotWrtDesignated.GetHashCode(); - result = GenerateHash(result) ^ this._designatorSpotLocation.GetHashCode(); - result = GenerateHash(result) ^ this._deadReckoningAlgorithm.GetHashCode(); - result = GenerateHash(result) ^ this._padding1.GetHashCode(); - result = GenerateHash(result) ^ this._padding2.GetHashCode(); - result = GenerateHash(result) ^ this._entityLinearAcceleration.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.7.2. Handles designating operations. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(Vector3Float))] + [XmlInclude(typeof(Vector3Double))] + public partial class DesignatorPdu : DistributedEmissionsFamilyPdu, IEquatable + { + /// + /// ID of the entity designating + /// + private EntityID _designatingEntityID = new EntityID(); + + /// + /// This field shall specify a unique emitter database number assigned to differentiate between otherwise similar or identical emitter beams within an emitter system. + /// + private ushort _codeName; + + /// + /// ID of the entity being designated + /// + private EntityID _designatedEntityID = new EntityID(); + + /// + /// This field shall identify the designator code being used by the designating entity + /// + private ushort _designatorCode; + + /// + /// This field shall identify the designator output power in watts + /// + private float _designatorPower; + + /// + /// This field shall identify the designator wavelength in units of microns + /// + private float _designatorWavelength; + + /// + /// designtor spot wrt the designated entity + /// + private Vector3Float _designatorSpotWrtDesignated = new Vector3Float(); + + /// + /// designtor spot wrt the designated entity + /// + private Vector3Double _designatorSpotLocation = new Vector3Double(); + + /// + /// Dead reckoning algorithm + /// + private byte _deadReckoningAlgorithm; + + /// + /// padding + /// + private ushort _padding1; + + /// + /// padding + /// + private byte _padding2; + + /// + /// linear accelleration of entity + /// + private Vector3Float _entityLinearAcceleration = new Vector3Float(); + + /// + /// Initializes a new instance of the class. + /// + public DesignatorPdu() + { + PduType = (byte)24; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(DesignatorPdu left, DesignatorPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(DesignatorPdu left, DesignatorPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._designatingEntityID.GetMarshalledSize(); // this._designatingEntityID + marshalSize += 2; // this._codeName + marshalSize += this._designatedEntityID.GetMarshalledSize(); // this._designatedEntityID + marshalSize += 2; // this._designatorCode + marshalSize += 4; // this._designatorPower + marshalSize += 4; // this._designatorWavelength + marshalSize += this._designatorSpotWrtDesignated.GetMarshalledSize(); // this._designatorSpotWrtDesignated + marshalSize += this._designatorSpotLocation.GetMarshalledSize(); // this._designatorSpotLocation + marshalSize += 1; // this._deadReckoningAlgorithm + marshalSize += 2; // this._padding1 + marshalSize += 1; // this._padding2 + marshalSize += this._entityLinearAcceleration.GetMarshalledSize(); // this._entityLinearAcceleration + return marshalSize; + } + + /// + /// Gets or sets the ID of the entity designating + /// + [XmlElement(Type = typeof(EntityID), ElementName = "designatingEntityID")] + public EntityID DesignatingEntityID + { + get + { + return this._designatingEntityID; + } + + set + { + this._designatingEntityID = value; + } + } + + /// + /// Gets or sets the This field shall specify a unique emitter database number assigned to differentiate between otherwise similar or identical emitter beams within an emitter system. + /// + [XmlElement(Type = typeof(ushort), ElementName = "codeName")] + public ushort CodeName + { + get + { + return this._codeName; + } + + set + { + this._codeName = value; + } + } + + /// + /// Gets or sets the ID of the entity being designated + /// + [XmlElement(Type = typeof(EntityID), ElementName = "designatedEntityID")] + public EntityID DesignatedEntityID + { + get + { + return this._designatedEntityID; + } + + set + { + this._designatedEntityID = value; + } + } + + /// + /// Gets or sets the This field shall identify the designator code being used by the designating entity + /// + [XmlElement(Type = typeof(ushort), ElementName = "designatorCode")] + public ushort DesignatorCode + { + get + { + return this._designatorCode; + } + + set + { + this._designatorCode = value; + } + } + + /// + /// Gets or sets the This field shall identify the designator output power in watts + /// + [XmlElement(Type = typeof(float), ElementName = "designatorPower")] + public float DesignatorPower + { + get + { + return this._designatorPower; + } + + set + { + this._designatorPower = value; + } + } + + /// + /// Gets or sets the This field shall identify the designator wavelength in units of microns + /// + [XmlElement(Type = typeof(float), ElementName = "designatorWavelength")] + public float DesignatorWavelength + { + get + { + return this._designatorWavelength; + } + + set + { + this._designatorWavelength = value; + } + } + + /// + /// Gets or sets the designtor spot wrt the designated entity + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "designatorSpotWrtDesignated")] + public Vector3Float DesignatorSpotWrtDesignated + { + get + { + return this._designatorSpotWrtDesignated; + } + + set + { + this._designatorSpotWrtDesignated = value; + } + } + + /// + /// Gets or sets the designtor spot wrt the designated entity + /// + [XmlElement(Type = typeof(Vector3Double), ElementName = "designatorSpotLocation")] + public Vector3Double DesignatorSpotLocation + { + get + { + return this._designatorSpotLocation; + } + + set + { + this._designatorSpotLocation = value; + } + } + + /// + /// Gets or sets the Dead reckoning algorithm + /// + [XmlElement(Type = typeof(byte), ElementName = "deadReckoningAlgorithm")] + public byte DeadReckoningAlgorithm + { + get + { + return this._deadReckoningAlgorithm; + } + + set + { + this._deadReckoningAlgorithm = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(ushort), ElementName = "padding1")] + public ushort Padding1 + { + get + { + return this._padding1; + } + + set + { + this._padding1 = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "padding2")] + public byte Padding2 + { + get + { + return this._padding2; + } + + set + { + this._padding2 = value; + } + } + + /// + /// Gets or sets the linear accelleration of entity + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "entityLinearAcceleration")] + public Vector3Float EntityLinearAcceleration + { + get + { + return this._entityLinearAcceleration; + } + + set + { + this._entityLinearAcceleration = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._designatingEntityID.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._codeName); + this._designatedEntityID.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._designatorCode); + dos.WriteFloat((float)this._designatorPower); + dos.WriteFloat((float)this._designatorWavelength); + this._designatorSpotWrtDesignated.Marshal(dos); + this._designatorSpotLocation.Marshal(dos); + dos.WriteByte((byte)this._deadReckoningAlgorithm); + dos.WriteUnsignedShort((ushort)this._padding1); + dos.WriteByte((byte)this._padding2); + this._entityLinearAcceleration.Marshal(dos); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._designatingEntityID.Unmarshal(dis); + this._codeName = dis.ReadUnsignedShort(); + this._designatedEntityID.Unmarshal(dis); + this._designatorCode = dis.ReadUnsignedShort(); + this._designatorPower = dis.ReadFloat(); + this._designatorWavelength = dis.ReadFloat(); + this._designatorSpotWrtDesignated.Unmarshal(dis); + this._designatorSpotLocation.Unmarshal(dis); + this._deadReckoningAlgorithm = dis.ReadByte(); + this._padding1 = dis.ReadUnsignedShort(); + this._padding2 = dis.ReadByte(); + this._entityLinearAcceleration.Unmarshal(dis); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._designatingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._codeName.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._designatedEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._designatorCode.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._designatorPower.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._designatorWavelength.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._designatorSpotWrtDesignated.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._designatorSpotLocation.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._deadReckoningAlgorithm.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._entityLinearAcceleration.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as DesignatorPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(DesignatorPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._designatingEntityID.Equals(obj._designatingEntityID)) + { + ivarsEqual = false; + } + + if (this._codeName != obj._codeName) + { + ivarsEqual = false; + } + + if (!this._designatedEntityID.Equals(obj._designatedEntityID)) + { + ivarsEqual = false; + } + + if (this._designatorCode != obj._designatorCode) + { + ivarsEqual = false; + } + + if (this._designatorPower != obj._designatorPower) + { + ivarsEqual = false; + } + + if (this._designatorWavelength != obj._designatorWavelength) + { + ivarsEqual = false; + } + + if (!this._designatorSpotWrtDesignated.Equals(obj._designatorSpotWrtDesignated)) + { + ivarsEqual = false; + } + + if (!this._designatorSpotLocation.Equals(obj._designatorSpotLocation)) + { + ivarsEqual = false; + } + + if (this._deadReckoningAlgorithm != obj._deadReckoningAlgorithm) + { + ivarsEqual = false; + } + + if (this._padding1 != obj._padding1) + { + ivarsEqual = false; + } + + if (this._padding2 != obj._padding2) + { + ivarsEqual = false; + } + + if (!this._entityLinearAcceleration.Equals(obj._entityLinearAcceleration)) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._designatingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._codeName.GetHashCode(); + result = GenerateHash(result) ^ this._designatedEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._designatorCode.GetHashCode(); + result = GenerateHash(result) ^ this._designatorPower.GetHashCode(); + result = GenerateHash(result) ^ this._designatorWavelength.GetHashCode(); + result = GenerateHash(result) ^ this._designatorSpotWrtDesignated.GetHashCode(); + result = GenerateHash(result) ^ this._designatorSpotLocation.GetHashCode(); + result = GenerateHash(result) ^ this._deadReckoningAlgorithm.GetHashCode(); + result = GenerateHash(result) ^ this._padding1.GetHashCode(); + result = GenerateHash(result) ^ this._padding2.GetHashCode(); + result = GenerateHash(result) ^ this._entityLinearAcceleration.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/DetonationPdu.cs b/Libs/CsharpDis6/Dis1998/Generated/DetonationPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/DetonationPdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/DetonationPdu.cs index d681aab..e897b20 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/DetonationPdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/DetonationPdu.cs @@ -1,648 +1,648 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.4.2. Information about stuff exploding. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(EventID))] - [XmlInclude(typeof(Vector3Float))] - [XmlInclude(typeof(Vector3Double))] - [XmlInclude(typeof(BurstDescriptor))] - [XmlInclude(typeof(ArticulationParameter))] - public partial class DetonationPdu : WarfareFamilyPdu, IEquatable - { - /// - /// ID of muntion that was fired - /// - private EntityID _munitionID = new EntityID(); - - /// - /// ID firing event - /// - private EventID _eventID = new EventID(); - - /// - /// ID firing event - /// - private Vector3Float _velocity = new Vector3Float(); - - /// - /// where the detonation is, in world coordinates - /// - private Vector3Double _locationInWorldCoordinates = new Vector3Double(); - - /// - /// Describes munition used - /// - private BurstDescriptor _burstDescriptor = new BurstDescriptor(); - - /// - /// location of the detonation or impact in the target entity's coordinate system. This information should be used for damage assessment. - /// - private Vector3Float _locationInEntityCoordinates = new Vector3Float(); - - /// - /// result of the explosion - /// - private byte _detonationResult; - - /// - /// How many articulation parameters we have - /// - private byte _numberOfArticulationParameters; - - /// - /// padding - /// - private short _pad; - - private List _articulationParameters = new List(); - - /// - /// Initializes a new instance of the class. - /// - public DetonationPdu() - { - PduType = (byte)3; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(DetonationPdu left, DetonationPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(DetonationPdu left, DetonationPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._munitionID.GetMarshalledSize(); // this._munitionID - marshalSize += this._eventID.GetMarshalledSize(); // this._eventID - marshalSize += this._velocity.GetMarshalledSize(); // this._velocity - marshalSize += this._locationInWorldCoordinates.GetMarshalledSize(); // this._locationInWorldCoordinates - marshalSize += this._burstDescriptor.GetMarshalledSize(); // this._burstDescriptor - marshalSize += this._locationInEntityCoordinates.GetMarshalledSize(); // this._locationInEntityCoordinates - marshalSize += 1; // this._detonationResult - marshalSize += 1; // this._numberOfArticulationParameters - marshalSize += 2; // this._pad - for (int idx = 0; idx < this._articulationParameters.Count; idx++) - { - ArticulationParameter listElement = (ArticulationParameter)this._articulationParameters[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the ID of muntion that was fired - /// - [XmlElement(Type = typeof(EntityID), ElementName = "munitionID")] - public EntityID MunitionID - { - get - { - return this._munitionID; - } - - set - { - this._munitionID = value; - } - } - - /// - /// Gets or sets the ID firing event - /// - [XmlElement(Type = typeof(EventID), ElementName = "eventID")] - public EventID EventID - { - get - { - return this._eventID; - } - - set - { - this._eventID = value; - } - } - - /// - /// Gets or sets the ID firing event - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "velocity")] - public Vector3Float Velocity - { - get - { - return this._velocity; - } - - set - { - this._velocity = value; - } - } - - /// - /// Gets or sets the where the detonation is, in world coordinates - /// - [XmlElement(Type = typeof(Vector3Double), ElementName = "locationInWorldCoordinates")] - public Vector3Double LocationInWorldCoordinates - { - get - { - return this._locationInWorldCoordinates; - } - - set - { - this._locationInWorldCoordinates = value; - } - } - - /// - /// Gets or sets the Describes munition used - /// - [XmlElement(Type = typeof(BurstDescriptor), ElementName = "burstDescriptor")] - public BurstDescriptor BurstDescriptor - { - get - { - return this._burstDescriptor; - } - - set - { - this._burstDescriptor = value; - } - } - - /// - /// Gets or sets the location of the detonation or impact in the target entity's coordinate system. This information should be used for damage assessment. - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "locationInEntityCoordinates")] - public Vector3Float LocationInEntityCoordinates - { - get - { - return this._locationInEntityCoordinates; - } - - set - { - this._locationInEntityCoordinates = value; - } - } - - /// - /// Gets or sets the result of the explosion - /// - [XmlElement(Type = typeof(byte), ElementName = "detonationResult")] - public byte DetonationResult - { - get - { - return this._detonationResult; - } - - set - { - this._detonationResult = value; - } - } - - /// - /// Gets or sets the How many articulation parameters we have - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfArticulationParameters method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfArticulationParameters")] - public byte NumberOfArticulationParameters - { - get - { - return this._numberOfArticulationParameters; - } - - set - { - this._numberOfArticulationParameters = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(short), ElementName = "pad")] - public short Pad - { - get - { - return this._pad; - } - - set - { - this._pad = value; - } - } - - /// - /// Gets the articulationParameters - /// - [XmlElement(ElementName = "articulationParametersList", Type = typeof(List))] - public List ArticulationParameters - { - get - { - return this._articulationParameters; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._munitionID.Marshal(dos); - this._eventID.Marshal(dos); - this._velocity.Marshal(dos); - this._locationInWorldCoordinates.Marshal(dos); - this._burstDescriptor.Marshal(dos); - this._locationInEntityCoordinates.Marshal(dos); - dos.WriteUnsignedByte((byte)this._detonationResult); - dos.WriteUnsignedByte((byte)this._articulationParameters.Count); - dos.WriteShort((short)this._pad); - - for (int idx = 0; idx < this._articulationParameters.Count; idx++) - { - ArticulationParameter aArticulationParameter = (ArticulationParameter)this._articulationParameters[idx]; - aArticulationParameter.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._munitionID.Unmarshal(dis); - this._eventID.Unmarshal(dis); - this._velocity.Unmarshal(dis); - this._locationInWorldCoordinates.Unmarshal(dis); - this._burstDescriptor.Unmarshal(dis); - this._locationInEntityCoordinates.Unmarshal(dis); - this._detonationResult = dis.ReadUnsignedByte(); - this._numberOfArticulationParameters = dis.ReadUnsignedByte(); - this._pad = dis.ReadShort(); - - for (int idx = 0; idx < this.NumberOfArticulationParameters; idx++) - { - ArticulationParameter anX = new ArticulationParameter(); - anX.Unmarshal(dis); - this._articulationParameters.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._munitionID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._eventID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._velocity.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._locationInWorldCoordinates.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._burstDescriptor.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._locationInEntityCoordinates.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._detonationResult.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._articulationParameters.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._articulationParameters.Count; idx++) - { - sb.AppendLine(""); - ArticulationParameter aArticulationParameter = (ArticulationParameter)this._articulationParameters[idx]; - aArticulationParameter.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as DetonationPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(DetonationPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._munitionID.Equals(obj._munitionID)) - { - ivarsEqual = false; - } - - if (!this._eventID.Equals(obj._eventID)) - { - ivarsEqual = false; - } - - if (!this._velocity.Equals(obj._velocity)) - { - ivarsEqual = false; - } - - if (!this._locationInWorldCoordinates.Equals(obj._locationInWorldCoordinates)) - { - ivarsEqual = false; - } - - if (!this._burstDescriptor.Equals(obj._burstDescriptor)) - { - ivarsEqual = false; - } - - if (!this._locationInEntityCoordinates.Equals(obj._locationInEntityCoordinates)) - { - ivarsEqual = false; - } - - if (this._detonationResult != obj._detonationResult) - { - ivarsEqual = false; - } - - if (this._numberOfArticulationParameters != obj._numberOfArticulationParameters) - { - ivarsEqual = false; - } - - if (this._pad != obj._pad) - { - ivarsEqual = false; - } - - if (this._articulationParameters.Count != obj._articulationParameters.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._articulationParameters.Count; idx++) - { - if (!this._articulationParameters[idx].Equals(obj._articulationParameters[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._munitionID.GetHashCode(); - result = GenerateHash(result) ^ this._eventID.GetHashCode(); - result = GenerateHash(result) ^ this._velocity.GetHashCode(); - result = GenerateHash(result) ^ this._locationInWorldCoordinates.GetHashCode(); - result = GenerateHash(result) ^ this._burstDescriptor.GetHashCode(); - result = GenerateHash(result) ^ this._locationInEntityCoordinates.GetHashCode(); - result = GenerateHash(result) ^ this._detonationResult.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfArticulationParameters.GetHashCode(); - result = GenerateHash(result) ^ this._pad.GetHashCode(); - - if (this._articulationParameters.Count > 0) - { - for (int idx = 0; idx < this._articulationParameters.Count; idx++) - { - result = GenerateHash(result) ^ this._articulationParameters[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.4.2. Information about stuff exploding. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(EventID))] + [XmlInclude(typeof(Vector3Float))] + [XmlInclude(typeof(Vector3Double))] + [XmlInclude(typeof(BurstDescriptor))] + [XmlInclude(typeof(ArticulationParameter))] + public partial class DetonationPdu : WarfareFamilyPdu, IEquatable + { + /// + /// ID of muntion that was fired + /// + private EntityID _munitionID = new EntityID(); + + /// + /// ID firing event + /// + private EventID _eventID = new EventID(); + + /// + /// ID firing event + /// + private Vector3Float _velocity = new Vector3Float(); + + /// + /// where the detonation is, in world coordinates + /// + private Vector3Double _locationInWorldCoordinates = new Vector3Double(); + + /// + /// Describes munition used + /// + private BurstDescriptor _burstDescriptor = new BurstDescriptor(); + + /// + /// location of the detonation or impact in the target entity's coordinate system. This information should be used for damage assessment. + /// + private Vector3Float _locationInEntityCoordinates = new Vector3Float(); + + /// + /// result of the explosion + /// + private byte _detonationResult; + + /// + /// How many articulation parameters we have + /// + private byte _numberOfArticulationParameters; + + /// + /// padding + /// + private short _pad; + + private List _articulationParameters = new List(); + + /// + /// Initializes a new instance of the class. + /// + public DetonationPdu() + { + PduType = (byte)3; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(DetonationPdu left, DetonationPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(DetonationPdu left, DetonationPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._munitionID.GetMarshalledSize(); // this._munitionID + marshalSize += this._eventID.GetMarshalledSize(); // this._eventID + marshalSize += this._velocity.GetMarshalledSize(); // this._velocity + marshalSize += this._locationInWorldCoordinates.GetMarshalledSize(); // this._locationInWorldCoordinates + marshalSize += this._burstDescriptor.GetMarshalledSize(); // this._burstDescriptor + marshalSize += this._locationInEntityCoordinates.GetMarshalledSize(); // this._locationInEntityCoordinates + marshalSize += 1; // this._detonationResult + marshalSize += 1; // this._numberOfArticulationParameters + marshalSize += 2; // this._pad + for (int idx = 0; idx < this._articulationParameters.Count; idx++) + { + ArticulationParameter listElement = (ArticulationParameter)this._articulationParameters[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the ID of muntion that was fired + /// + [XmlElement(Type = typeof(EntityID), ElementName = "munitionID")] + public EntityID MunitionID + { + get + { + return this._munitionID; + } + + set + { + this._munitionID = value; + } + } + + /// + /// Gets or sets the ID firing event + /// + [XmlElement(Type = typeof(EventID), ElementName = "eventID")] + public EventID EventID + { + get + { + return this._eventID; + } + + set + { + this._eventID = value; + } + } + + /// + /// Gets or sets the ID firing event + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "velocity")] + public Vector3Float Velocity + { + get + { + return this._velocity; + } + + set + { + this._velocity = value; + } + } + + /// + /// Gets or sets the where the detonation is, in world coordinates + /// + [XmlElement(Type = typeof(Vector3Double), ElementName = "locationInWorldCoordinates")] + public Vector3Double LocationInWorldCoordinates + { + get + { + return this._locationInWorldCoordinates; + } + + set + { + this._locationInWorldCoordinates = value; + } + } + + /// + /// Gets or sets the Describes munition used + /// + [XmlElement(Type = typeof(BurstDescriptor), ElementName = "burstDescriptor")] + public BurstDescriptor BurstDescriptor + { + get + { + return this._burstDescriptor; + } + + set + { + this._burstDescriptor = value; + } + } + + /// + /// Gets or sets the location of the detonation or impact in the target entity's coordinate system. This information should be used for damage assessment. + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "locationInEntityCoordinates")] + public Vector3Float LocationInEntityCoordinates + { + get + { + return this._locationInEntityCoordinates; + } + + set + { + this._locationInEntityCoordinates = value; + } + } + + /// + /// Gets or sets the result of the explosion + /// + [XmlElement(Type = typeof(byte), ElementName = "detonationResult")] + public byte DetonationResult + { + get + { + return this._detonationResult; + } + + set + { + this._detonationResult = value; + } + } + + /// + /// Gets or sets the How many articulation parameters we have + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfArticulationParameters method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfArticulationParameters")] + public byte NumberOfArticulationParameters + { + get + { + return this._numberOfArticulationParameters; + } + + set + { + this._numberOfArticulationParameters = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(short), ElementName = "pad")] + public short Pad + { + get + { + return this._pad; + } + + set + { + this._pad = value; + } + } + + /// + /// Gets the articulationParameters + /// + [XmlElement(ElementName = "articulationParametersList", Type = typeof(List))] + public List ArticulationParameters + { + get + { + return this._articulationParameters; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._munitionID.Marshal(dos); + this._eventID.Marshal(dos); + this._velocity.Marshal(dos); + this._locationInWorldCoordinates.Marshal(dos); + this._burstDescriptor.Marshal(dos); + this._locationInEntityCoordinates.Marshal(dos); + dos.WriteUnsignedByte((byte)this._detonationResult); + dos.WriteUnsignedByte((byte)this._articulationParameters.Count); + dos.WriteShort((short)this._pad); + + for (int idx = 0; idx < this._articulationParameters.Count; idx++) + { + ArticulationParameter aArticulationParameter = (ArticulationParameter)this._articulationParameters[idx]; + aArticulationParameter.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._munitionID.Unmarshal(dis); + this._eventID.Unmarshal(dis); + this._velocity.Unmarshal(dis); + this._locationInWorldCoordinates.Unmarshal(dis); + this._burstDescriptor.Unmarshal(dis); + this._locationInEntityCoordinates.Unmarshal(dis); + this._detonationResult = dis.ReadUnsignedByte(); + this._numberOfArticulationParameters = dis.ReadUnsignedByte(); + this._pad = dis.ReadShort(); + + for (int idx = 0; idx < this.NumberOfArticulationParameters; idx++) + { + ArticulationParameter anX = new ArticulationParameter(); + anX.Unmarshal(dis); + this._articulationParameters.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._munitionID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._eventID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._velocity.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._locationInWorldCoordinates.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._burstDescriptor.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._locationInEntityCoordinates.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._detonationResult.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._articulationParameters.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._articulationParameters.Count; idx++) + { + sb.AppendLine(""); + ArticulationParameter aArticulationParameter = (ArticulationParameter)this._articulationParameters[idx]; + aArticulationParameter.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as DetonationPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(DetonationPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._munitionID.Equals(obj._munitionID)) + { + ivarsEqual = false; + } + + if (!this._eventID.Equals(obj._eventID)) + { + ivarsEqual = false; + } + + if (!this._velocity.Equals(obj._velocity)) + { + ivarsEqual = false; + } + + if (!this._locationInWorldCoordinates.Equals(obj._locationInWorldCoordinates)) + { + ivarsEqual = false; + } + + if (!this._burstDescriptor.Equals(obj._burstDescriptor)) + { + ivarsEqual = false; + } + + if (!this._locationInEntityCoordinates.Equals(obj._locationInEntityCoordinates)) + { + ivarsEqual = false; + } + + if (this._detonationResult != obj._detonationResult) + { + ivarsEqual = false; + } + + if (this._numberOfArticulationParameters != obj._numberOfArticulationParameters) + { + ivarsEqual = false; + } + + if (this._pad != obj._pad) + { + ivarsEqual = false; + } + + if (this._articulationParameters.Count != obj._articulationParameters.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._articulationParameters.Count; idx++) + { + if (!this._articulationParameters[idx].Equals(obj._articulationParameters[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._munitionID.GetHashCode(); + result = GenerateHash(result) ^ this._eventID.GetHashCode(); + result = GenerateHash(result) ^ this._velocity.GetHashCode(); + result = GenerateHash(result) ^ this._locationInWorldCoordinates.GetHashCode(); + result = GenerateHash(result) ^ this._burstDescriptor.GetHashCode(); + result = GenerateHash(result) ^ this._locationInEntityCoordinates.GetHashCode(); + result = GenerateHash(result) ^ this._detonationResult.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfArticulationParameters.GetHashCode(); + result = GenerateHash(result) ^ this._pad.GetHashCode(); + + if (this._articulationParameters.Count > 0) + { + for (int idx = 0; idx < this._articulationParameters.Count; idx++) + { + result = GenerateHash(result) ^ this._articulationParameters[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/DistributedEmissionsFamilyPdu.cs b/Libs/CsharpDis6/Dis1998/Generated/DistributedEmissionsFamilyPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/DistributedEmissionsFamilyPdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/DistributedEmissionsFamilyPdu.cs index 963ee06..cf9748d 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/DistributedEmissionsFamilyPdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/DistributedEmissionsFamilyPdu.cs @@ -1,271 +1,271 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.7. Electronic Emissions. Abstract superclass for distirubted emissions PDU - /// - [Serializable] - [XmlRoot] - public partial class DistributedEmissionsFamilyPdu : Pdu, IEquatable - { - /// - /// Initializes a new instance of the class. - /// - public DistributedEmissionsFamilyPdu() - { - ProtocolFamily = (byte)6; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(DistributedEmissionsFamilyPdu left, DistributedEmissionsFamilyPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(DistributedEmissionsFamilyPdu left, DistributedEmissionsFamilyPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - return marshalSize; - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public virtual void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as DistributedEmissionsFamilyPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(DistributedEmissionsFamilyPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.7. Electronic Emissions. Abstract superclass for distirubted emissions PDU + /// + [Serializable] + [XmlRoot] + public partial class DistributedEmissionsFamilyPdu : Pdu, IEquatable + { + /// + /// Initializes a new instance of the class. + /// + public DistributedEmissionsFamilyPdu() + { + ProtocolFamily = (byte)6; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(DistributedEmissionsFamilyPdu left, DistributedEmissionsFamilyPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(DistributedEmissionsFamilyPdu left, DistributedEmissionsFamilyPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + return marshalSize; + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public virtual void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as DistributedEmissionsFamilyPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(DistributedEmissionsFamilyPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/EightByteChunk.cs b/Libs/CsharpDis6/Dis1998/Generated/EightByteChunk.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/EightByteChunk.cs rename to Libs/CsharpDis6/Dis1998/Generated/EightByteChunk.cs index a3bfe4f..5337424 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/EightByteChunk.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/EightByteChunk.cs @@ -1,324 +1,324 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// 64 bit piece of data - /// - [Serializable] - [XmlRoot] - public partial class EightByteChunk - { - /// - /// Eight bytes of arbitrary data - /// - private byte[] _otherParameters = new byte[8]; - - /// - /// Initializes a new instance of the class. - /// - public EightByteChunk() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(EightByteChunk left, EightByteChunk right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(EightByteChunk left, EightByteChunk right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 8 * 1; // _otherParameters - return marshalSize; - } - - /// - /// Gets or sets the Eight bytes of arbitrary data - /// - [XmlArray(ElementName = "otherParameters")] - public byte[] OtherParameters - { - get - { - return this._otherParameters; - } - - set - { - this._otherParameters = value; - } -} - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - for (int idx = 0; idx < this._otherParameters.Length; idx++) - { - dos.WriteByte(this._otherParameters[idx]); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - for (int idx = 0; idx < this._otherParameters.Length; idx++) - { - this._otherParameters[idx] = dis.ReadByte(); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - for (int idx = 0; idx < this._otherParameters.Length; idx++) - { - sb.AppendLine("" + this._otherParameters[idx] + ""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as EightByteChunk; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(EightByteChunk obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (obj._otherParameters.Length != 8) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < 8; idx++) - { - if (this._otherParameters[idx] != obj._otherParameters[idx]) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - for (int idx = 0; idx < 8; idx++) - { - result = GenerateHash(result) ^ this._otherParameters[idx].GetHashCode(); - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// 64 bit piece of data + /// + [Serializable] + [XmlRoot] + public partial class EightByteChunk + { + /// + /// Eight bytes of arbitrary data + /// + private byte[] _otherParameters = new byte[8]; + + /// + /// Initializes a new instance of the class. + /// + public EightByteChunk() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(EightByteChunk left, EightByteChunk right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(EightByteChunk left, EightByteChunk right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 8 * 1; // _otherParameters + return marshalSize; + } + + /// + /// Gets or sets the Eight bytes of arbitrary data + /// + [XmlArray(ElementName = "otherParameters")] + public byte[] OtherParameters + { + get + { + return this._otherParameters; + } + + set + { + this._otherParameters = value; + } +} + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + for (int idx = 0; idx < this._otherParameters.Length; idx++) + { + dos.WriteByte(this._otherParameters[idx]); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + for (int idx = 0; idx < this._otherParameters.Length; idx++) + { + this._otherParameters[idx] = dis.ReadByte(); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + for (int idx = 0; idx < this._otherParameters.Length; idx++) + { + sb.AppendLine("" + this._otherParameters[idx] + ""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as EightByteChunk; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(EightByteChunk obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (obj._otherParameters.Length != 8) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < 8; idx++) + { + if (this._otherParameters[idx] != obj._otherParameters[idx]) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + for (int idx = 0; idx < 8; idx++) + { + result = GenerateHash(result) ^ this._otherParameters[idx].GetHashCode(); + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ElectronicEmissionBeamData.cs b/Libs/CsharpDis6/Dis1998/Generated/ElectronicEmissionBeamData.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/ElectronicEmissionBeamData.cs rename to Libs/CsharpDis6/Dis1998/Generated/ElectronicEmissionBeamData.cs index 5efd4a6..75eff7e 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ElectronicEmissionBeamData.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/ElectronicEmissionBeamData.cs @@ -1,633 +1,633 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Description of one electronic emission beam - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(FundamentalParameterData))] - [XmlInclude(typeof(TrackJamTarget))] - public partial class ElectronicEmissionBeamData - { - /// - /// This field shall specify the length of this beams data in 32 bit words - /// - private byte _beamDataLength; - - /// - /// This field shall specify a unique emitter database number assigned to differentiate between otherwise similar or identical emitter beams within an emitter system. - /// - private byte _beamIDNumber; - - /// - /// This field shall specify a Beam Parameter Index number that shall be used by receiving entities in conjunction with the Emitter Name field to provide a pointer to the stored database parameters required to regenerate the beam. - /// - private ushort _beamParameterIndex; - - /// - /// Fundamental parameter data such as frequency range, beam sweep, etc. - /// - private FundamentalParameterData _fundamentalParameterData = new FundamentalParameterData(); - - /// - /// beam function of a particular beam - /// - private byte _beamFunction; - - /// - /// Number of track/jam targets - /// - private byte _numberOfTrackJamTargets; - - /// - /// wheher or not the receiving simulation apps can assume all the targets in the scan pattern are being tracked/jammed - /// - private byte _highDensityTrackJam; - - /// - /// padding - /// - private byte _pad4; - - /// - /// identify jamming techniques used - /// - private uint _jammingModeSequence; - - /// - /// variable length list of track/jam targets - /// - private List _trackJamTargets = new List(); - - /// - /// Initializes a new instance of the class. - /// - public ElectronicEmissionBeamData() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ElectronicEmissionBeamData left, ElectronicEmissionBeamData right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ElectronicEmissionBeamData left, ElectronicEmissionBeamData right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._beamDataLength - marshalSize += 1; // this._beamIDNumber - marshalSize += 2; // this._beamParameterIndex - marshalSize += this._fundamentalParameterData.GetMarshalledSize(); // this._fundamentalParameterData - marshalSize += 1; // this._beamFunction - marshalSize += 1; // this._numberOfTrackJamTargets - marshalSize += 1; // this._highDensityTrackJam - marshalSize += 1; // this._pad4 - marshalSize += 4; // this._jammingModeSequence - for (int idx = 0; idx < this._trackJamTargets.Count; idx++) - { - TrackJamTarget listElement = (TrackJamTarget)this._trackJamTargets[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the This field shall specify the length of this beams data in 32 bit words - /// - [XmlElement(Type = typeof(byte), ElementName = "beamDataLength")] - public byte BeamDataLength - { - get - { - return this._beamDataLength; - } - - set - { - this._beamDataLength = value; - } - } - - /// - /// Gets or sets the This field shall specify a unique emitter database number assigned to differentiate between otherwise similar or identical emitter beams within an emitter system. - /// - [XmlElement(Type = typeof(byte), ElementName = "beamIDNumber")] - public byte BeamIDNumber - { - get - { - return this._beamIDNumber; - } - - set - { - this._beamIDNumber = value; - } - } - - /// - /// Gets or sets the This field shall specify a Beam Parameter Index number that shall be used by receiving entities in conjunction with the Emitter Name field to provide a pointer to the stored database parameters required to regenerate the beam. - /// - [XmlElement(Type = typeof(ushort), ElementName = "beamParameterIndex")] - public ushort BeamParameterIndex - { - get - { - return this._beamParameterIndex; - } - - set - { - this._beamParameterIndex = value; - } - } - - /// - /// Gets or sets the Fundamental parameter data such as frequency range, beam sweep, etc. - /// - [XmlElement(Type = typeof(FundamentalParameterData), ElementName = "fundamentalParameterData")] - public FundamentalParameterData FundamentalParameterData - { - get - { - return this._fundamentalParameterData; - } - - set - { - this._fundamentalParameterData = value; - } - } - - /// - /// Gets or sets the beam function of a particular beam - /// - [XmlElement(Type = typeof(byte), ElementName = "beamFunction")] - public byte BeamFunction - { - get - { - return this._beamFunction; - } - - set - { - this._beamFunction = value; - } - } - - /// - /// Gets or sets the Number of track/jam targets - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfTrackJamTargets method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfTrackJamTargets")] - public byte NumberOfTrackJamTargets - { - get - { - return this._numberOfTrackJamTargets; - } - - set - { - this._numberOfTrackJamTargets = value; - } - } - - /// - /// Gets or sets the wheher or not the receiving simulation apps can assume all the targets in the scan pattern are being tracked/jammed - /// - [XmlElement(Type = typeof(byte), ElementName = "highDensityTrackJam")] - public byte HighDensityTrackJam - { - get - { - return this._highDensityTrackJam; - } - - set - { - this._highDensityTrackJam = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "pad4")] - public byte Pad4 - { - get - { - return this._pad4; - } - - set - { - this._pad4 = value; - } - } - - /// - /// Gets or sets the identify jamming techniques used - /// - [XmlElement(Type = typeof(uint), ElementName = "jammingModeSequence")] - public uint JammingModeSequence - { - get - { - return this._jammingModeSequence; - } - - set - { - this._jammingModeSequence = value; - } - } - - /// - /// Gets the variable length list of track/jam targets - /// - [XmlElement(ElementName = "trackJamTargetsList", Type = typeof(List))] - public List TrackJamTargets - { - get - { - return this._trackJamTargets; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._beamDataLength); - dos.WriteUnsignedByte((byte)this._beamIDNumber); - dos.WriteUnsignedShort((ushort)this._beamParameterIndex); - this._fundamentalParameterData.Marshal(dos); - dos.WriteUnsignedByte((byte)this._beamFunction); - dos.WriteUnsignedByte((byte)this._trackJamTargets.Count); - dos.WriteUnsignedByte((byte)this._highDensityTrackJam); - dos.WriteUnsignedByte((byte)this._pad4); - dos.WriteUnsignedInt((uint)this._jammingModeSequence); - - for (int idx = 0; idx < this._trackJamTargets.Count; idx++) - { - TrackJamTarget aTrackJamTarget = (TrackJamTarget)this._trackJamTargets[idx]; - aTrackJamTarget.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._beamDataLength = dis.ReadUnsignedByte(); - this._beamIDNumber = dis.ReadUnsignedByte(); - this._beamParameterIndex = dis.ReadUnsignedShort(); - this._fundamentalParameterData.Unmarshal(dis); - this._beamFunction = dis.ReadUnsignedByte(); - this._numberOfTrackJamTargets = dis.ReadUnsignedByte(); - this._highDensityTrackJam = dis.ReadUnsignedByte(); - this._pad4 = dis.ReadUnsignedByte(); - this._jammingModeSequence = dis.ReadUnsignedInt(); - - for (int idx = 0; idx < this.NumberOfTrackJamTargets; idx++) - { - TrackJamTarget anX = new TrackJamTarget(); - anX.Unmarshal(dis); - this._trackJamTargets.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._beamDataLength.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._beamIDNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._beamParameterIndex.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._fundamentalParameterData.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._beamFunction.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._trackJamTargets.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._highDensityTrackJam.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad4.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._jammingModeSequence.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._trackJamTargets.Count; idx++) - { - sb.AppendLine(""); - TrackJamTarget aTrackJamTarget = (TrackJamTarget)this._trackJamTargets[idx]; - aTrackJamTarget.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ElectronicEmissionBeamData; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ElectronicEmissionBeamData obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._beamDataLength != obj._beamDataLength) - { - ivarsEqual = false; - } - - if (this._beamIDNumber != obj._beamIDNumber) - { - ivarsEqual = false; - } - - if (this._beamParameterIndex != obj._beamParameterIndex) - { - ivarsEqual = false; - } - - if (!this._fundamentalParameterData.Equals(obj._fundamentalParameterData)) - { - ivarsEqual = false; - } - - if (this._beamFunction != obj._beamFunction) - { - ivarsEqual = false; - } - - if (this._numberOfTrackJamTargets != obj._numberOfTrackJamTargets) - { - ivarsEqual = false; - } - - if (this._highDensityTrackJam != obj._highDensityTrackJam) - { - ivarsEqual = false; - } - - if (this._pad4 != obj._pad4) - { - ivarsEqual = false; - } - - if (this._jammingModeSequence != obj._jammingModeSequence) - { - ivarsEqual = false; - } - - if (this._trackJamTargets.Count != obj._trackJamTargets.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._trackJamTargets.Count; idx++) - { - if (!this._trackJamTargets[idx].Equals(obj._trackJamTargets[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._beamDataLength.GetHashCode(); - result = GenerateHash(result) ^ this._beamIDNumber.GetHashCode(); - result = GenerateHash(result) ^ this._beamParameterIndex.GetHashCode(); - result = GenerateHash(result) ^ this._fundamentalParameterData.GetHashCode(); - result = GenerateHash(result) ^ this._beamFunction.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfTrackJamTargets.GetHashCode(); - result = GenerateHash(result) ^ this._highDensityTrackJam.GetHashCode(); - result = GenerateHash(result) ^ this._pad4.GetHashCode(); - result = GenerateHash(result) ^ this._jammingModeSequence.GetHashCode(); - - if (this._trackJamTargets.Count > 0) - { - for (int idx = 0; idx < this._trackJamTargets.Count; idx++) - { - result = GenerateHash(result) ^ this._trackJamTargets[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Description of one electronic emission beam + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(FundamentalParameterData))] + [XmlInclude(typeof(TrackJamTarget))] + public partial class ElectronicEmissionBeamData + { + /// + /// This field shall specify the length of this beams data in 32 bit words + /// + private byte _beamDataLength; + + /// + /// This field shall specify a unique emitter database number assigned to differentiate between otherwise similar or identical emitter beams within an emitter system. + /// + private byte _beamIDNumber; + + /// + /// This field shall specify a Beam Parameter Index number that shall be used by receiving entities in conjunction with the Emitter Name field to provide a pointer to the stored database parameters required to regenerate the beam. + /// + private ushort _beamParameterIndex; + + /// + /// Fundamental parameter data such as frequency range, beam sweep, etc. + /// + private FundamentalParameterData _fundamentalParameterData = new FundamentalParameterData(); + + /// + /// beam function of a particular beam + /// + private byte _beamFunction; + + /// + /// Number of track/jam targets + /// + private byte _numberOfTrackJamTargets; + + /// + /// wheher or not the receiving simulation apps can assume all the targets in the scan pattern are being tracked/jammed + /// + private byte _highDensityTrackJam; + + /// + /// padding + /// + private byte _pad4; + + /// + /// identify jamming techniques used + /// + private uint _jammingModeSequence; + + /// + /// variable length list of track/jam targets + /// + private List _trackJamTargets = new List(); + + /// + /// Initializes a new instance of the class. + /// + public ElectronicEmissionBeamData() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ElectronicEmissionBeamData left, ElectronicEmissionBeamData right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ElectronicEmissionBeamData left, ElectronicEmissionBeamData right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._beamDataLength + marshalSize += 1; // this._beamIDNumber + marshalSize += 2; // this._beamParameterIndex + marshalSize += this._fundamentalParameterData.GetMarshalledSize(); // this._fundamentalParameterData + marshalSize += 1; // this._beamFunction + marshalSize += 1; // this._numberOfTrackJamTargets + marshalSize += 1; // this._highDensityTrackJam + marshalSize += 1; // this._pad4 + marshalSize += 4; // this._jammingModeSequence + for (int idx = 0; idx < this._trackJamTargets.Count; idx++) + { + TrackJamTarget listElement = (TrackJamTarget)this._trackJamTargets[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the This field shall specify the length of this beams data in 32 bit words + /// + [XmlElement(Type = typeof(byte), ElementName = "beamDataLength")] + public byte BeamDataLength + { + get + { + return this._beamDataLength; + } + + set + { + this._beamDataLength = value; + } + } + + /// + /// Gets or sets the This field shall specify a unique emitter database number assigned to differentiate between otherwise similar or identical emitter beams within an emitter system. + /// + [XmlElement(Type = typeof(byte), ElementName = "beamIDNumber")] + public byte BeamIDNumber + { + get + { + return this._beamIDNumber; + } + + set + { + this._beamIDNumber = value; + } + } + + /// + /// Gets or sets the This field shall specify a Beam Parameter Index number that shall be used by receiving entities in conjunction with the Emitter Name field to provide a pointer to the stored database parameters required to regenerate the beam. + /// + [XmlElement(Type = typeof(ushort), ElementName = "beamParameterIndex")] + public ushort BeamParameterIndex + { + get + { + return this._beamParameterIndex; + } + + set + { + this._beamParameterIndex = value; + } + } + + /// + /// Gets or sets the Fundamental parameter data such as frequency range, beam sweep, etc. + /// + [XmlElement(Type = typeof(FundamentalParameterData), ElementName = "fundamentalParameterData")] + public FundamentalParameterData FundamentalParameterData + { + get + { + return this._fundamentalParameterData; + } + + set + { + this._fundamentalParameterData = value; + } + } + + /// + /// Gets or sets the beam function of a particular beam + /// + [XmlElement(Type = typeof(byte), ElementName = "beamFunction")] + public byte BeamFunction + { + get + { + return this._beamFunction; + } + + set + { + this._beamFunction = value; + } + } + + /// + /// Gets or sets the Number of track/jam targets + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfTrackJamTargets method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfTrackJamTargets")] + public byte NumberOfTrackJamTargets + { + get + { + return this._numberOfTrackJamTargets; + } + + set + { + this._numberOfTrackJamTargets = value; + } + } + + /// + /// Gets or sets the wheher or not the receiving simulation apps can assume all the targets in the scan pattern are being tracked/jammed + /// + [XmlElement(Type = typeof(byte), ElementName = "highDensityTrackJam")] + public byte HighDensityTrackJam + { + get + { + return this._highDensityTrackJam; + } + + set + { + this._highDensityTrackJam = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "pad4")] + public byte Pad4 + { + get + { + return this._pad4; + } + + set + { + this._pad4 = value; + } + } + + /// + /// Gets or sets the identify jamming techniques used + /// + [XmlElement(Type = typeof(uint), ElementName = "jammingModeSequence")] + public uint JammingModeSequence + { + get + { + return this._jammingModeSequence; + } + + set + { + this._jammingModeSequence = value; + } + } + + /// + /// Gets the variable length list of track/jam targets + /// + [XmlElement(ElementName = "trackJamTargetsList", Type = typeof(List))] + public List TrackJamTargets + { + get + { + return this._trackJamTargets; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._beamDataLength); + dos.WriteUnsignedByte((byte)this._beamIDNumber); + dos.WriteUnsignedShort((ushort)this._beamParameterIndex); + this._fundamentalParameterData.Marshal(dos); + dos.WriteUnsignedByte((byte)this._beamFunction); + dos.WriteUnsignedByte((byte)this._trackJamTargets.Count); + dos.WriteUnsignedByte((byte)this._highDensityTrackJam); + dos.WriteUnsignedByte((byte)this._pad4); + dos.WriteUnsignedInt((uint)this._jammingModeSequence); + + for (int idx = 0; idx < this._trackJamTargets.Count; idx++) + { + TrackJamTarget aTrackJamTarget = (TrackJamTarget)this._trackJamTargets[idx]; + aTrackJamTarget.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._beamDataLength = dis.ReadUnsignedByte(); + this._beamIDNumber = dis.ReadUnsignedByte(); + this._beamParameterIndex = dis.ReadUnsignedShort(); + this._fundamentalParameterData.Unmarshal(dis); + this._beamFunction = dis.ReadUnsignedByte(); + this._numberOfTrackJamTargets = dis.ReadUnsignedByte(); + this._highDensityTrackJam = dis.ReadUnsignedByte(); + this._pad4 = dis.ReadUnsignedByte(); + this._jammingModeSequence = dis.ReadUnsignedInt(); + + for (int idx = 0; idx < this.NumberOfTrackJamTargets; idx++) + { + TrackJamTarget anX = new TrackJamTarget(); + anX.Unmarshal(dis); + this._trackJamTargets.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._beamDataLength.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._beamIDNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._beamParameterIndex.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._fundamentalParameterData.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._beamFunction.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._trackJamTargets.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._highDensityTrackJam.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad4.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._jammingModeSequence.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._trackJamTargets.Count; idx++) + { + sb.AppendLine(""); + TrackJamTarget aTrackJamTarget = (TrackJamTarget)this._trackJamTargets[idx]; + aTrackJamTarget.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ElectronicEmissionBeamData; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ElectronicEmissionBeamData obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._beamDataLength != obj._beamDataLength) + { + ivarsEqual = false; + } + + if (this._beamIDNumber != obj._beamIDNumber) + { + ivarsEqual = false; + } + + if (this._beamParameterIndex != obj._beamParameterIndex) + { + ivarsEqual = false; + } + + if (!this._fundamentalParameterData.Equals(obj._fundamentalParameterData)) + { + ivarsEqual = false; + } + + if (this._beamFunction != obj._beamFunction) + { + ivarsEqual = false; + } + + if (this._numberOfTrackJamTargets != obj._numberOfTrackJamTargets) + { + ivarsEqual = false; + } + + if (this._highDensityTrackJam != obj._highDensityTrackJam) + { + ivarsEqual = false; + } + + if (this._pad4 != obj._pad4) + { + ivarsEqual = false; + } + + if (this._jammingModeSequence != obj._jammingModeSequence) + { + ivarsEqual = false; + } + + if (this._trackJamTargets.Count != obj._trackJamTargets.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._trackJamTargets.Count; idx++) + { + if (!this._trackJamTargets[idx].Equals(obj._trackJamTargets[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._beamDataLength.GetHashCode(); + result = GenerateHash(result) ^ this._beamIDNumber.GetHashCode(); + result = GenerateHash(result) ^ this._beamParameterIndex.GetHashCode(); + result = GenerateHash(result) ^ this._fundamentalParameterData.GetHashCode(); + result = GenerateHash(result) ^ this._beamFunction.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfTrackJamTargets.GetHashCode(); + result = GenerateHash(result) ^ this._highDensityTrackJam.GetHashCode(); + result = GenerateHash(result) ^ this._pad4.GetHashCode(); + result = GenerateHash(result) ^ this._jammingModeSequence.GetHashCode(); + + if (this._trackJamTargets.Count > 0) + { + for (int idx = 0; idx < this._trackJamTargets.Count; idx++) + { + result = GenerateHash(result) ^ this._trackJamTargets[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ElectronicEmissionSystemData.cs b/Libs/CsharpDis6/Dis1998/Generated/ElectronicEmissionSystemData.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/ElectronicEmissionSystemData.cs rename to Libs/CsharpDis6/Dis1998/Generated/ElectronicEmissionSystemData.cs index e676463..f2df330 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ElectronicEmissionSystemData.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/ElectronicEmissionSystemData.cs @@ -1,508 +1,508 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Data about one electronic system - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EmitterSystem))] - [XmlInclude(typeof(Vector3Float))] - [XmlInclude(typeof(ElectronicEmissionBeamData))] - public partial class ElectronicEmissionSystemData - { - /// - /// This field shall specify the length of this emitter system?s data (including beam data and its track/jam information) in 32-bit words. The length shall include the System Data Length field. - /// - private byte _systemDataLength; - - /// - /// This field shall specify the number of beams being described in the current PDU for the system being described. - /// - private byte _numberOfBeams; - - /// - /// padding. - /// - private ushort _emissionsPadding2; - - /// - /// This field shall specify information about a particular emitter system - /// - private EmitterSystem _emitterSystem = new EmitterSystem(); - - /// - /// Location with respect to the entity - /// - private Vector3Float _location = new Vector3Float(); - - /// - /// variable length list of beam data records - /// - private List _beamDataRecords = new List(); - - /// - /// Initializes a new instance of the class. - /// - public ElectronicEmissionSystemData() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ElectronicEmissionSystemData left, ElectronicEmissionSystemData right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ElectronicEmissionSystemData left, ElectronicEmissionSystemData right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._systemDataLength - marshalSize += 1; // this._numberOfBeams - marshalSize += 2; // this._emissionsPadding2 - marshalSize += this._emitterSystem.GetMarshalledSize(); // this._emitterSystem - marshalSize += this._location.GetMarshalledSize(); // this._location - for (int idx = 0; idx < this._beamDataRecords.Count; idx++) - { - ElectronicEmissionBeamData listElement = (ElectronicEmissionBeamData)this._beamDataRecords[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the This field shall specify the length of this emitter system?s data (including beam data and its track/jam information) in 32-bit words. The length shall include the System Data Length field. - /// - [XmlElement(Type = typeof(byte), ElementName = "systemDataLength")] - public byte SystemDataLength - { - get - { - return this._systemDataLength; - } - - set - { - this._systemDataLength = value; - } - } - - /// - /// Gets or sets the This field shall specify the number of beams being described in the current PDU for the system being described. - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfBeams method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfBeams")] - public byte NumberOfBeams - { - get - { - return this._numberOfBeams; - } - - set - { - this._numberOfBeams = value; - } - } - - /// - /// Gets or sets the padding. - /// - [XmlElement(Type = typeof(ushort), ElementName = "emissionsPadding2")] - public ushort EmissionsPadding2 - { - get - { - return this._emissionsPadding2; - } - - set - { - this._emissionsPadding2 = value; - } - } - - /// - /// Gets or sets the This field shall specify information about a particular emitter system - /// - [XmlElement(Type = typeof(EmitterSystem), ElementName = "emitterSystem")] - public EmitterSystem EmitterSystem - { - get - { - return this._emitterSystem; - } - - set - { - this._emitterSystem = value; - } - } - - /// - /// Gets or sets the Location with respect to the entity - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "location")] - public Vector3Float Location - { - get - { - return this._location; - } - - set - { - this._location = value; - } - } - - /// - /// Gets the variable length list of beam data records - /// - [XmlElement(ElementName = "beamDataRecordsList", Type = typeof(List))] - public List BeamDataRecords - { - get - { - return this._beamDataRecords; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._systemDataLength); - dos.WriteUnsignedByte((byte)this._beamDataRecords.Count); - dos.WriteUnsignedShort((ushort)this._emissionsPadding2); - this._emitterSystem.Marshal(dos); - this._location.Marshal(dos); - - for (int idx = 0; idx < this._beamDataRecords.Count; idx++) - { - ElectronicEmissionBeamData aElectronicEmissionBeamData = (ElectronicEmissionBeamData)this._beamDataRecords[idx]; - aElectronicEmissionBeamData.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._systemDataLength = dis.ReadUnsignedByte(); - this._numberOfBeams = dis.ReadUnsignedByte(); - this._emissionsPadding2 = dis.ReadUnsignedShort(); - this._emitterSystem.Unmarshal(dis); - this._location.Unmarshal(dis); - - for (int idx = 0; idx < this.NumberOfBeams; idx++) - { - ElectronicEmissionBeamData anX = new ElectronicEmissionBeamData(); - anX.Unmarshal(dis); - this._beamDataRecords.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._systemDataLength.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._beamDataRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._emissionsPadding2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._emitterSystem.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._location.Reflection(sb); - sb.AppendLine(""); - for (int idx = 0; idx < this._beamDataRecords.Count; idx++) - { - sb.AppendLine(""); - ElectronicEmissionBeamData aElectronicEmissionBeamData = (ElectronicEmissionBeamData)this._beamDataRecords[idx]; - aElectronicEmissionBeamData.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ElectronicEmissionSystemData; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ElectronicEmissionSystemData obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._systemDataLength != obj._systemDataLength) - { - ivarsEqual = false; - } - - if (this._numberOfBeams != obj._numberOfBeams) - { - ivarsEqual = false; - } - - if (this._emissionsPadding2 != obj._emissionsPadding2) - { - ivarsEqual = false; - } - - if (!this._emitterSystem.Equals(obj._emitterSystem)) - { - ivarsEqual = false; - } - - if (!this._location.Equals(obj._location)) - { - ivarsEqual = false; - } - - if (this._beamDataRecords.Count != obj._beamDataRecords.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._beamDataRecords.Count; idx++) - { - if (!this._beamDataRecords[idx].Equals(obj._beamDataRecords[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._systemDataLength.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfBeams.GetHashCode(); - result = GenerateHash(result) ^ this._emissionsPadding2.GetHashCode(); - result = GenerateHash(result) ^ this._emitterSystem.GetHashCode(); - result = GenerateHash(result) ^ this._location.GetHashCode(); - - if (this._beamDataRecords.Count > 0) - { - for (int idx = 0; idx < this._beamDataRecords.Count; idx++) - { - result = GenerateHash(result) ^ this._beamDataRecords[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Data about one electronic system + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EmitterSystem))] + [XmlInclude(typeof(Vector3Float))] + [XmlInclude(typeof(ElectronicEmissionBeamData))] + public partial class ElectronicEmissionSystemData + { + /// + /// This field shall specify the length of this emitter system?s data (including beam data and its track/jam information) in 32-bit words. The length shall include the System Data Length field. + /// + private byte _systemDataLength; + + /// + /// This field shall specify the number of beams being described in the current PDU for the system being described. + /// + private byte _numberOfBeams; + + /// + /// padding. + /// + private ushort _emissionsPadding2; + + /// + /// This field shall specify information about a particular emitter system + /// + private EmitterSystem _emitterSystem = new EmitterSystem(); + + /// + /// Location with respect to the entity + /// + private Vector3Float _location = new Vector3Float(); + + /// + /// variable length list of beam data records + /// + private List _beamDataRecords = new List(); + + /// + /// Initializes a new instance of the class. + /// + public ElectronicEmissionSystemData() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ElectronicEmissionSystemData left, ElectronicEmissionSystemData right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ElectronicEmissionSystemData left, ElectronicEmissionSystemData right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._systemDataLength + marshalSize += 1; // this._numberOfBeams + marshalSize += 2; // this._emissionsPadding2 + marshalSize += this._emitterSystem.GetMarshalledSize(); // this._emitterSystem + marshalSize += this._location.GetMarshalledSize(); // this._location + for (int idx = 0; idx < this._beamDataRecords.Count; idx++) + { + ElectronicEmissionBeamData listElement = (ElectronicEmissionBeamData)this._beamDataRecords[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the This field shall specify the length of this emitter system?s data (including beam data and its track/jam information) in 32-bit words. The length shall include the System Data Length field. + /// + [XmlElement(Type = typeof(byte), ElementName = "systemDataLength")] + public byte SystemDataLength + { + get + { + return this._systemDataLength; + } + + set + { + this._systemDataLength = value; + } + } + + /// + /// Gets or sets the This field shall specify the number of beams being described in the current PDU for the system being described. + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfBeams method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfBeams")] + public byte NumberOfBeams + { + get + { + return this._numberOfBeams; + } + + set + { + this._numberOfBeams = value; + } + } + + /// + /// Gets or sets the padding. + /// + [XmlElement(Type = typeof(ushort), ElementName = "emissionsPadding2")] + public ushort EmissionsPadding2 + { + get + { + return this._emissionsPadding2; + } + + set + { + this._emissionsPadding2 = value; + } + } + + /// + /// Gets or sets the This field shall specify information about a particular emitter system + /// + [XmlElement(Type = typeof(EmitterSystem), ElementName = "emitterSystem")] + public EmitterSystem EmitterSystem + { + get + { + return this._emitterSystem; + } + + set + { + this._emitterSystem = value; + } + } + + /// + /// Gets or sets the Location with respect to the entity + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "location")] + public Vector3Float Location + { + get + { + return this._location; + } + + set + { + this._location = value; + } + } + + /// + /// Gets the variable length list of beam data records + /// + [XmlElement(ElementName = "beamDataRecordsList", Type = typeof(List))] + public List BeamDataRecords + { + get + { + return this._beamDataRecords; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._systemDataLength); + dos.WriteUnsignedByte((byte)this._beamDataRecords.Count); + dos.WriteUnsignedShort((ushort)this._emissionsPadding2); + this._emitterSystem.Marshal(dos); + this._location.Marshal(dos); + + for (int idx = 0; idx < this._beamDataRecords.Count; idx++) + { + ElectronicEmissionBeamData aElectronicEmissionBeamData = (ElectronicEmissionBeamData)this._beamDataRecords[idx]; + aElectronicEmissionBeamData.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._systemDataLength = dis.ReadUnsignedByte(); + this._numberOfBeams = dis.ReadUnsignedByte(); + this._emissionsPadding2 = dis.ReadUnsignedShort(); + this._emitterSystem.Unmarshal(dis); + this._location.Unmarshal(dis); + + for (int idx = 0; idx < this.NumberOfBeams; idx++) + { + ElectronicEmissionBeamData anX = new ElectronicEmissionBeamData(); + anX.Unmarshal(dis); + this._beamDataRecords.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._systemDataLength.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._beamDataRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._emissionsPadding2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._emitterSystem.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._location.Reflection(sb); + sb.AppendLine(""); + for (int idx = 0; idx < this._beamDataRecords.Count; idx++) + { + sb.AppendLine(""); + ElectronicEmissionBeamData aElectronicEmissionBeamData = (ElectronicEmissionBeamData)this._beamDataRecords[idx]; + aElectronicEmissionBeamData.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ElectronicEmissionSystemData; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ElectronicEmissionSystemData obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._systemDataLength != obj._systemDataLength) + { + ivarsEqual = false; + } + + if (this._numberOfBeams != obj._numberOfBeams) + { + ivarsEqual = false; + } + + if (this._emissionsPadding2 != obj._emissionsPadding2) + { + ivarsEqual = false; + } + + if (!this._emitterSystem.Equals(obj._emitterSystem)) + { + ivarsEqual = false; + } + + if (!this._location.Equals(obj._location)) + { + ivarsEqual = false; + } + + if (this._beamDataRecords.Count != obj._beamDataRecords.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._beamDataRecords.Count; idx++) + { + if (!this._beamDataRecords[idx].Equals(obj._beamDataRecords[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._systemDataLength.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfBeams.GetHashCode(); + result = GenerateHash(result) ^ this._emissionsPadding2.GetHashCode(); + result = GenerateHash(result) ^ this._emitterSystem.GetHashCode(); + result = GenerateHash(result) ^ this._location.GetHashCode(); + + if (this._beamDataRecords.Count > 0) + { + for (int idx = 0; idx < this._beamDataRecords.Count; idx++) + { + result = GenerateHash(result) ^ this._beamDataRecords[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ElectronicEmissionsPdu.cs b/Libs/CsharpDis6/Dis1998/Generated/ElectronicEmissionsPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/ElectronicEmissionsPdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/ElectronicEmissionsPdu.cs index fc003cc..5c61000 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ElectronicEmissionsPdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/ElectronicEmissionsPdu.cs @@ -1,512 +1,512 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.7.1. Information about active electronic warfare (EW) emissions and active EW countermeasures shall be communicated using an Electromagnetic Emission PDU. COMPLETE (I think) - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(EventID))] - [XmlInclude(typeof(ElectronicEmissionSystemData))] - public partial class ElectronicEmissionsPdu : DistributedEmissionsFamilyPdu, IEquatable - { - /// - /// ID of the entity emitting - /// - private EntityID _emittingEntityID = new EntityID(); - - /// - /// ID of event - /// - private EventID _eventID = new EventID(); - - /// - /// This field shall be used to indicate if the data in the PDU represents a state update or just data that has changed since issuance of the last Electromagnetic Emission PDU [relative to the identified entity and emission system(s)]. - /// - private byte _stateUpdateIndicator; - - /// - /// This field shall specify the number of emission systems being described in the current PDU. - /// - private byte _numberOfSystems; - - /// - /// padding - /// - private ushort _paddingForEmissionsPdu; - - /// - /// Electronic emmissions systems - /// - private List _systems = new List(); - - /// - /// Initializes a new instance of the class. - /// - public ElectronicEmissionsPdu() - { - PduType = (byte)23; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ElectronicEmissionsPdu left, ElectronicEmissionsPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ElectronicEmissionsPdu left, ElectronicEmissionsPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._emittingEntityID.GetMarshalledSize(); // this._emittingEntityID - marshalSize += this._eventID.GetMarshalledSize(); // this._eventID - marshalSize += 1; // this._stateUpdateIndicator - marshalSize += 1; // this._numberOfSystems - marshalSize += 2; // this._paddingForEmissionsPdu - for (int idx = 0; idx < this._systems.Count; idx++) - { - ElectronicEmissionSystemData listElement = (ElectronicEmissionSystemData)this._systems[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the ID of the entity emitting - /// - [XmlElement(Type = typeof(EntityID), ElementName = "emittingEntityID")] - public EntityID EmittingEntityID - { - get - { - return this._emittingEntityID; - } - - set - { - this._emittingEntityID = value; - } - } - - /// - /// Gets or sets the ID of event - /// - [XmlElement(Type = typeof(EventID), ElementName = "eventID")] - public EventID EventID - { - get - { - return this._eventID; - } - - set - { - this._eventID = value; - } - } - - /// - /// Gets or sets the This field shall be used to indicate if the data in the PDU represents a state update or just data that has changed since issuance of the last Electromagnetic Emission PDU [relative to the identified entity and emission system(s)]. - /// - [XmlElement(Type = typeof(byte), ElementName = "stateUpdateIndicator")] - public byte StateUpdateIndicator - { - get - { - return this._stateUpdateIndicator; - } - - set - { - this._stateUpdateIndicator = value; - } - } - - /// - /// Gets or sets the This field shall specify the number of emission systems being described in the current PDU. - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfSystems method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfSystems")] - public byte NumberOfSystems - { - get - { - return this._numberOfSystems; - } - - set - { - this._numberOfSystems = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(ushort), ElementName = "paddingForEmissionsPdu")] - public ushort PaddingForEmissionsPdu - { - get - { - return this._paddingForEmissionsPdu; - } - - set - { - this._paddingForEmissionsPdu = value; - } - } - - /// - /// Gets the Electronic emmissions systems - /// - [XmlElement(ElementName = "systemsList", Type = typeof(List))] - public List Systems - { - get - { - return this._systems; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._emittingEntityID.Marshal(dos); - this._eventID.Marshal(dos); - dos.WriteUnsignedByte((byte)this._stateUpdateIndicator); - dos.WriteUnsignedByte((byte)this._systems.Count); - dos.WriteUnsignedShort((ushort)this._paddingForEmissionsPdu); - - for (int idx = 0; idx < this._systems.Count; idx++) - { - ElectronicEmissionSystemData aElectronicEmissionSystemData = (ElectronicEmissionSystemData)this._systems[idx]; - aElectronicEmissionSystemData.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._emittingEntityID.Unmarshal(dis); - this._eventID.Unmarshal(dis); - this._stateUpdateIndicator = dis.ReadUnsignedByte(); - this._numberOfSystems = dis.ReadUnsignedByte(); - this._paddingForEmissionsPdu = dis.ReadUnsignedShort(); - - for (int idx = 0; idx < this.NumberOfSystems; idx++) - { - ElectronicEmissionSystemData anX = new ElectronicEmissionSystemData(); - anX.Unmarshal(dis); - this._systems.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._emittingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._eventID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._stateUpdateIndicator.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._systems.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._paddingForEmissionsPdu.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._systems.Count; idx++) - { - sb.AppendLine(""); - ElectronicEmissionSystemData aElectronicEmissionSystemData = (ElectronicEmissionSystemData)this._systems[idx]; - aElectronicEmissionSystemData.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ElectronicEmissionsPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ElectronicEmissionsPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._emittingEntityID.Equals(obj._emittingEntityID)) - { - ivarsEqual = false; - } - - if (!this._eventID.Equals(obj._eventID)) - { - ivarsEqual = false; - } - - if (this._stateUpdateIndicator != obj._stateUpdateIndicator) - { - ivarsEqual = false; - } - - if (this._numberOfSystems != obj._numberOfSystems) - { - ivarsEqual = false; - } - - if (this._paddingForEmissionsPdu != obj._paddingForEmissionsPdu) - { - ivarsEqual = false; - } - - if (this._systems.Count != obj._systems.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._systems.Count; idx++) - { - if (!this._systems[idx].Equals(obj._systems[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._emittingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._eventID.GetHashCode(); - result = GenerateHash(result) ^ this._stateUpdateIndicator.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfSystems.GetHashCode(); - result = GenerateHash(result) ^ this._paddingForEmissionsPdu.GetHashCode(); - - if (this._systems.Count > 0) - { - for (int idx = 0; idx < this._systems.Count; idx++) - { - result = GenerateHash(result) ^ this._systems[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.7.1. Information about active electronic warfare (EW) emissions and active EW countermeasures shall be communicated using an Electromagnetic Emission PDU. COMPLETE (I think) + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(EventID))] + [XmlInclude(typeof(ElectronicEmissionSystemData))] + public partial class ElectronicEmissionsPdu : DistributedEmissionsFamilyPdu, IEquatable + { + /// + /// ID of the entity emitting + /// + private EntityID _emittingEntityID = new EntityID(); + + /// + /// ID of event + /// + private EventID _eventID = new EventID(); + + /// + /// This field shall be used to indicate if the data in the PDU represents a state update or just data that has changed since issuance of the last Electromagnetic Emission PDU [relative to the identified entity and emission system(s)]. + /// + private byte _stateUpdateIndicator; + + /// + /// This field shall specify the number of emission systems being described in the current PDU. + /// + private byte _numberOfSystems; + + /// + /// padding + /// + private ushort _paddingForEmissionsPdu; + + /// + /// Electronic emmissions systems + /// + private List _systems = new List(); + + /// + /// Initializes a new instance of the class. + /// + public ElectronicEmissionsPdu() + { + PduType = (byte)23; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ElectronicEmissionsPdu left, ElectronicEmissionsPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ElectronicEmissionsPdu left, ElectronicEmissionsPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._emittingEntityID.GetMarshalledSize(); // this._emittingEntityID + marshalSize += this._eventID.GetMarshalledSize(); // this._eventID + marshalSize += 1; // this._stateUpdateIndicator + marshalSize += 1; // this._numberOfSystems + marshalSize += 2; // this._paddingForEmissionsPdu + for (int idx = 0; idx < this._systems.Count; idx++) + { + ElectronicEmissionSystemData listElement = (ElectronicEmissionSystemData)this._systems[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the ID of the entity emitting + /// + [XmlElement(Type = typeof(EntityID), ElementName = "emittingEntityID")] + public EntityID EmittingEntityID + { + get + { + return this._emittingEntityID; + } + + set + { + this._emittingEntityID = value; + } + } + + /// + /// Gets or sets the ID of event + /// + [XmlElement(Type = typeof(EventID), ElementName = "eventID")] + public EventID EventID + { + get + { + return this._eventID; + } + + set + { + this._eventID = value; + } + } + + /// + /// Gets or sets the This field shall be used to indicate if the data in the PDU represents a state update or just data that has changed since issuance of the last Electromagnetic Emission PDU [relative to the identified entity and emission system(s)]. + /// + [XmlElement(Type = typeof(byte), ElementName = "stateUpdateIndicator")] + public byte StateUpdateIndicator + { + get + { + return this._stateUpdateIndicator; + } + + set + { + this._stateUpdateIndicator = value; + } + } + + /// + /// Gets or sets the This field shall specify the number of emission systems being described in the current PDU. + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfSystems method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfSystems")] + public byte NumberOfSystems + { + get + { + return this._numberOfSystems; + } + + set + { + this._numberOfSystems = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(ushort), ElementName = "paddingForEmissionsPdu")] + public ushort PaddingForEmissionsPdu + { + get + { + return this._paddingForEmissionsPdu; + } + + set + { + this._paddingForEmissionsPdu = value; + } + } + + /// + /// Gets the Electronic emmissions systems + /// + [XmlElement(ElementName = "systemsList", Type = typeof(List))] + public List Systems + { + get + { + return this._systems; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._emittingEntityID.Marshal(dos); + this._eventID.Marshal(dos); + dos.WriteUnsignedByte((byte)this._stateUpdateIndicator); + dos.WriteUnsignedByte((byte)this._systems.Count); + dos.WriteUnsignedShort((ushort)this._paddingForEmissionsPdu); + + for (int idx = 0; idx < this._systems.Count; idx++) + { + ElectronicEmissionSystemData aElectronicEmissionSystemData = (ElectronicEmissionSystemData)this._systems[idx]; + aElectronicEmissionSystemData.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._emittingEntityID.Unmarshal(dis); + this._eventID.Unmarshal(dis); + this._stateUpdateIndicator = dis.ReadUnsignedByte(); + this._numberOfSystems = dis.ReadUnsignedByte(); + this._paddingForEmissionsPdu = dis.ReadUnsignedShort(); + + for (int idx = 0; idx < this.NumberOfSystems; idx++) + { + ElectronicEmissionSystemData anX = new ElectronicEmissionSystemData(); + anX.Unmarshal(dis); + this._systems.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._emittingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._eventID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._stateUpdateIndicator.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._systems.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._paddingForEmissionsPdu.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._systems.Count; idx++) + { + sb.AppendLine(""); + ElectronicEmissionSystemData aElectronicEmissionSystemData = (ElectronicEmissionSystemData)this._systems[idx]; + aElectronicEmissionSystemData.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ElectronicEmissionsPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ElectronicEmissionsPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._emittingEntityID.Equals(obj._emittingEntityID)) + { + ivarsEqual = false; + } + + if (!this._eventID.Equals(obj._eventID)) + { + ivarsEqual = false; + } + + if (this._stateUpdateIndicator != obj._stateUpdateIndicator) + { + ivarsEqual = false; + } + + if (this._numberOfSystems != obj._numberOfSystems) + { + ivarsEqual = false; + } + + if (this._paddingForEmissionsPdu != obj._paddingForEmissionsPdu) + { + ivarsEqual = false; + } + + if (this._systems.Count != obj._systems.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._systems.Count; idx++) + { + if (!this._systems[idx].Equals(obj._systems[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._emittingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._eventID.GetHashCode(); + result = GenerateHash(result) ^ this._stateUpdateIndicator.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfSystems.GetHashCode(); + result = GenerateHash(result) ^ this._paddingForEmissionsPdu.GetHashCode(); + + if (this._systems.Count > 0) + { + for (int idx = 0; idx < this._systems.Count; idx++) + { + result = GenerateHash(result) ^ this._systems[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/EmitterSystem.cs b/Libs/CsharpDis6/Dis1998/Generated/EmitterSystem.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/EmitterSystem.cs rename to Libs/CsharpDis6/Dis1998/Generated/EmitterSystem.cs index 2b383d4..546f326 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/EmitterSystem.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/EmitterSystem.cs @@ -1,364 +1,364 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.2.11. This field shall specify information about a particular emitter system - /// - [Serializable] - [XmlRoot] - public partial class EmitterSystem - { - /// - /// Name of the emitter, 16 bit enumeration - /// - private ushort _emitterName; - - /// - /// function of the emitter, 8 bit enumeration - /// - private byte _function; - - /// - /// emitter ID, 8 bit enumeration - /// - private byte _emitterIdNumber; - - /// - /// Initializes a new instance of the class. - /// - public EmitterSystem() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(EmitterSystem left, EmitterSystem right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(EmitterSystem left, EmitterSystem right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 2; // this._emitterName - marshalSize += 1; // this._function - marshalSize += 1; // this._emitterIdNumber - return marshalSize; - } - - /// - /// Gets or sets the Name of the emitter, 16 bit enumeration - /// - [XmlElement(Type = typeof(ushort), ElementName = "emitterName")] - public ushort EmitterName - { - get - { - return this._emitterName; - } - - set - { - this._emitterName = value; - } - } - - /// - /// Gets or sets the function of the emitter, 8 bit enumeration - /// - [XmlElement(Type = typeof(byte), ElementName = "function")] - public byte Function - { - get - { - return this._function; - } - - set - { - this._function = value; - } - } - - /// - /// Gets or sets the emitter ID, 8 bit enumeration - /// - [XmlElement(Type = typeof(byte), ElementName = "emitterIdNumber")] - public byte EmitterIdNumber - { - get - { - return this._emitterIdNumber; - } - - set - { - this._emitterIdNumber = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._emitterName); - dos.WriteUnsignedByte((byte)this._function); - dos.WriteUnsignedByte((byte)this._emitterIdNumber); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._emitterName = dis.ReadUnsignedShort(); - this._function = dis.ReadUnsignedByte(); - this._emitterIdNumber = dis.ReadUnsignedByte(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._emitterName.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._function.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._emitterIdNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as EmitterSystem; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(EmitterSystem obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._emitterName != obj._emitterName) - { - ivarsEqual = false; - } - - if (this._function != obj._function) - { - ivarsEqual = false; - } - - if (this._emitterIdNumber != obj._emitterIdNumber) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._emitterName.GetHashCode(); - result = GenerateHash(result) ^ this._function.GetHashCode(); - result = GenerateHash(result) ^ this._emitterIdNumber.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.2.11. This field shall specify information about a particular emitter system + /// + [Serializable] + [XmlRoot] + public partial class EmitterSystem + { + /// + /// Name of the emitter, 16 bit enumeration + /// + private ushort _emitterName; + + /// + /// function of the emitter, 8 bit enumeration + /// + private byte _function; + + /// + /// emitter ID, 8 bit enumeration + /// + private byte _emitterIdNumber; + + /// + /// Initializes a new instance of the class. + /// + public EmitterSystem() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(EmitterSystem left, EmitterSystem right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(EmitterSystem left, EmitterSystem right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 2; // this._emitterName + marshalSize += 1; // this._function + marshalSize += 1; // this._emitterIdNumber + return marshalSize; + } + + /// + /// Gets or sets the Name of the emitter, 16 bit enumeration + /// + [XmlElement(Type = typeof(ushort), ElementName = "emitterName")] + public ushort EmitterName + { + get + { + return this._emitterName; + } + + set + { + this._emitterName = value; + } + } + + /// + /// Gets or sets the function of the emitter, 8 bit enumeration + /// + [XmlElement(Type = typeof(byte), ElementName = "function")] + public byte Function + { + get + { + return this._function; + } + + set + { + this._function = value; + } + } + + /// + /// Gets or sets the emitter ID, 8 bit enumeration + /// + [XmlElement(Type = typeof(byte), ElementName = "emitterIdNumber")] + public byte EmitterIdNumber + { + get + { + return this._emitterIdNumber; + } + + set + { + this._emitterIdNumber = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._emitterName); + dos.WriteUnsignedByte((byte)this._function); + dos.WriteUnsignedByte((byte)this._emitterIdNumber); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._emitterName = dis.ReadUnsignedShort(); + this._function = dis.ReadUnsignedByte(); + this._emitterIdNumber = dis.ReadUnsignedByte(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._emitterName.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._function.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._emitterIdNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as EmitterSystem; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(EmitterSystem obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._emitterName != obj._emitterName) + { + ivarsEqual = false; + } + + if (this._function != obj._function) + { + ivarsEqual = false; + } + + if (this._emitterIdNumber != obj._emitterIdNumber) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._emitterName.GetHashCode(); + result = GenerateHash(result) ^ this._function.GetHashCode(); + result = GenerateHash(result) ^ this._emitterIdNumber.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/EntityID.cs b/Libs/CsharpDis6/Dis1998/Generated/EntityID.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/EntityID.cs rename to Libs/CsharpDis6/Dis1998/Generated/EntityID.cs index 176d96f..d75576b 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/EntityID.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/EntityID.cs @@ -1,364 +1,364 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Each entity in a given DIS simulation application shall be given an entity identifier number unique to all other entities in that application. This identifier number is valid for the duration of the exercise; however, entity identifier numbers may be reused when all possible numbers have been exhausted. No entity shall have an entity identifier number of NO_ENTITY, ALL_ENTITIES, or RQST_ASSIGN_ID. The entity iden- tifier number need not be registered or retained for future exercises. The entity identifier number shall be specified by a 16-bit unsigned integer. An entity identifier number equal to zero with valid site and application identification shall address a simulation application. An entity identifier number equal to ALL_ENTITIES shall mean all entities within the specified site and application. An entity identifier number equal to RQST_ASSIGN_ID allows the receiver of the create entity to define the entity identifier number of the new entity. - /// - [Serializable] - [XmlRoot] - public partial class EntityID - { - /// - /// The site ID - /// - private ushort _site; - - /// - /// The application ID - /// - private ushort _application; - - /// - /// the entity ID - /// - private ushort _entity; - - /// - /// Initializes a new instance of the class. - /// - public EntityID() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(EntityID left, EntityID right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(EntityID left, EntityID right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 2; // this._site - marshalSize += 2; // this._application - marshalSize += 2; // this._entity - return marshalSize; - } - - /// - /// Gets or sets the The site ID - /// - [XmlElement(Type = typeof(ushort), ElementName = "site")] - public ushort Site - { - get - { - return this._site; - } - - set - { - this._site = value; - } - } - - /// - /// Gets or sets the The application ID - /// - [XmlElement(Type = typeof(ushort), ElementName = "application")] - public ushort Application - { - get - { - return this._application; - } - - set - { - this._application = value; - } - } - - /// - /// Gets or sets the the entity ID - /// - [XmlElement(Type = typeof(ushort), ElementName = "entity")] - public ushort Entity - { - get - { - return this._entity; - } - - set - { - this._entity = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._site); - dos.WriteUnsignedShort((ushort)this._application); - dos.WriteUnsignedShort((ushort)this._entity); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._site = dis.ReadUnsignedShort(); - this._application = dis.ReadUnsignedShort(); - this._entity = dis.ReadUnsignedShort(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._site.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._application.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._entity.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as EntityID; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(EntityID obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._site != obj._site) - { - ivarsEqual = false; - } - - if (this._application != obj._application) - { - ivarsEqual = false; - } - - if (this._entity != obj._entity) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._site.GetHashCode(); - result = GenerateHash(result) ^ this._application.GetHashCode(); - result = GenerateHash(result) ^ this._entity.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Each entity in a given DIS simulation application shall be given an entity identifier number unique to all other entities in that application. This identifier number is valid for the duration of the exercise; however, entity identifier numbers may be reused when all possible numbers have been exhausted. No entity shall have an entity identifier number of NO_ENTITY, ALL_ENTITIES, or RQST_ASSIGN_ID. The entity iden- tifier number need not be registered or retained for future exercises. The entity identifier number shall be specified by a 16-bit unsigned integer. An entity identifier number equal to zero with valid site and application identification shall address a simulation application. An entity identifier number equal to ALL_ENTITIES shall mean all entities within the specified site and application. An entity identifier number equal to RQST_ASSIGN_ID allows the receiver of the create entity to define the entity identifier number of the new entity. + /// + [Serializable] + [XmlRoot] + public partial class EntityID + { + /// + /// The site ID + /// + private ushort _site; + + /// + /// The application ID + /// + private ushort _application; + + /// + /// the entity ID + /// + private ushort _entity; + + /// + /// Initializes a new instance of the class. + /// + public EntityID() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(EntityID left, EntityID right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(EntityID left, EntityID right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 2; // this._site + marshalSize += 2; // this._application + marshalSize += 2; // this._entity + return marshalSize; + } + + /// + /// Gets or sets the The site ID + /// + [XmlElement(Type = typeof(ushort), ElementName = "site")] + public ushort Site + { + get + { + return this._site; + } + + set + { + this._site = value; + } + } + + /// + /// Gets or sets the The application ID + /// + [XmlElement(Type = typeof(ushort), ElementName = "application")] + public ushort Application + { + get + { + return this._application; + } + + set + { + this._application = value; + } + } + + /// + /// Gets or sets the the entity ID + /// + [XmlElement(Type = typeof(ushort), ElementName = "entity")] + public ushort Entity + { + get + { + return this._entity; + } + + set + { + this._entity = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._site); + dos.WriteUnsignedShort((ushort)this._application); + dos.WriteUnsignedShort((ushort)this._entity); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._site = dis.ReadUnsignedShort(); + this._application = dis.ReadUnsignedShort(); + this._entity = dis.ReadUnsignedShort(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._site.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._application.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._entity.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as EntityID; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(EntityID obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._site != obj._site) + { + ivarsEqual = false; + } + + if (this._application != obj._application) + { + ivarsEqual = false; + } + + if (this._entity != obj._entity) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._site.GetHashCode(); + result = GenerateHash(result) ^ this._application.GetHashCode(); + result = GenerateHash(result) ^ this._entity.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/EntityInformationFamilyPdu.cs b/Libs/CsharpDis6/Dis1998/Generated/EntityInformationFamilyPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/EntityInformationFamilyPdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/EntityInformationFamilyPdu.cs index c7c29ae..6b053c7 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/EntityInformationFamilyPdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/EntityInformationFamilyPdu.cs @@ -1,271 +1,271 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.3. Common superclass for EntityState, Collision, collision-elastic, and entity state update PDUs. This should be abstract. COMPLETE - /// - [Serializable] - [XmlRoot] - public partial class EntityInformationFamilyPdu : Pdu, IEquatable - { - /// - /// Initializes a new instance of the class. - /// - public EntityInformationFamilyPdu() - { - ProtocolFamily = (byte)1; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(EntityInformationFamilyPdu left, EntityInformationFamilyPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(EntityInformationFamilyPdu left, EntityInformationFamilyPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - return marshalSize; - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public virtual void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as EntityInformationFamilyPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(EntityInformationFamilyPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.3. Common superclass for EntityState, Collision, collision-elastic, and entity state update PDUs. This should be abstract. COMPLETE + /// + [Serializable] + [XmlRoot] + public partial class EntityInformationFamilyPdu : Pdu, IEquatable + { + /// + /// Initializes a new instance of the class. + /// + public EntityInformationFamilyPdu() + { + ProtocolFamily = (byte)1; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(EntityInformationFamilyPdu left, EntityInformationFamilyPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(EntityInformationFamilyPdu left, EntityInformationFamilyPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + return marshalSize; + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public virtual void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as EntityInformationFamilyPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(EntityInformationFamilyPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/EntityManagementFamilyPdu.cs b/Libs/CsharpDis6/Dis1998/Generated/EntityManagementFamilyPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/EntityManagementFamilyPdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/EntityManagementFamilyPdu.cs index 8e2dce0..c17dadd 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/EntityManagementFamilyPdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/EntityManagementFamilyPdu.cs @@ -1,271 +1,271 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.9. Common superclass for EntityManagment PDUs, including aggregate state, isGroupOf, TransferControLRequest, and isPartOf - /// - [Serializable] - [XmlRoot] - public partial class EntityManagementFamilyPdu : Pdu, IEquatable - { - /// - /// Initializes a new instance of the class. - /// - public EntityManagementFamilyPdu() - { - ProtocolFamily = (byte)7; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(EntityManagementFamilyPdu left, EntityManagementFamilyPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(EntityManagementFamilyPdu left, EntityManagementFamilyPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - return marshalSize; - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public virtual void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as EntityManagementFamilyPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(EntityManagementFamilyPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.9. Common superclass for EntityManagment PDUs, including aggregate state, isGroupOf, TransferControLRequest, and isPartOf + /// + [Serializable] + [XmlRoot] + public partial class EntityManagementFamilyPdu : Pdu, IEquatable + { + /// + /// Initializes a new instance of the class. + /// + public EntityManagementFamilyPdu() + { + ProtocolFamily = (byte)7; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(EntityManagementFamilyPdu left, EntityManagementFamilyPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(EntityManagementFamilyPdu left, EntityManagementFamilyPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + return marshalSize; + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public virtual void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as EntityManagementFamilyPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(EntityManagementFamilyPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/EntityStatePdu.cs b/Libs/CsharpDis6/Dis1998/Generated/EntityStatePdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/EntityStatePdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/EntityStatePdu.cs index d44fd87..9b11a07 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/EntityStatePdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/EntityStatePdu.cs @@ -1,750 +1,750 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.3.1. Represents the postion and state of one entity in the world. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(EntityType))] - [XmlInclude(typeof(Vector3Float))] - [XmlInclude(typeof(Vector3Double))] - [XmlInclude(typeof(Orientation))] - [XmlInclude(typeof(DeadReckoningParameter))] - [XmlInclude(typeof(Marking))] - [XmlInclude(typeof(ArticulationParameter))] - public partial class EntityStatePdu : EntityInformationFamilyPdu, IEquatable - { - /// - /// Unique ID for an entity that is tied to this state information - /// - private EntityID _entityID = new EntityID(); - - /// - /// What force this entity is affiliated with, eg red, blue, neutral, etc - /// - private byte _forceId; - - /// - /// How many articulation parameters are in the variable length list - /// - private byte _numberOfArticulationParameters; - - /// - /// Describes the type of entity in the world - /// - private EntityType _entityType = new EntityType(); - - private EntityType _alternativeEntityType = new EntityType(); - - /// - /// Describes the speed of the entity in the world - /// - private Vector3Float _entityLinearVelocity = new Vector3Float(); - - /// - /// describes the location of the entity in the world - /// - private Vector3Double _entityLocation = new Vector3Double(); - - /// - /// describes the orientation of the entity, in euler angles - /// - private Orientation _entityOrientation = new Orientation(); - - /// - /// a series of bit flags that are used to help draw the entity, such as smoking, on fire, etc. - /// - private int _entityAppearance; - - /// - /// parameters used for dead reckoning - /// - private DeadReckoningParameter _deadReckoningParameters = new DeadReckoningParameter(); - - /// - /// characters that can be used for debugging, or to draw unique strings on the side of entities in the world - /// - private Marking _marking = new Marking(); - - /// - /// a series of bit flags - /// - private int _capabilities; - - /// - /// variable length list of articulation parameters - /// - private List _articulationParameters = new List(); - - /// - /// Initializes a new instance of the class. - /// - public EntityStatePdu() - { - PduType = (byte)1; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(EntityStatePdu left, EntityStatePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(EntityStatePdu left, EntityStatePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._entityID.GetMarshalledSize(); // this._entityID - marshalSize += 1; // this._forceId - marshalSize += 1; // this._numberOfArticulationParameters - marshalSize += this._entityType.GetMarshalledSize(); // this._entityType - marshalSize += this._alternativeEntityType.GetMarshalledSize(); // this._alternativeEntityType - marshalSize += this._entityLinearVelocity.GetMarshalledSize(); // this._entityLinearVelocity - marshalSize += this._entityLocation.GetMarshalledSize(); // this._entityLocation - marshalSize += this._entityOrientation.GetMarshalledSize(); // this._entityOrientation - marshalSize += 4; // this._entityAppearance - marshalSize += this._deadReckoningParameters.GetMarshalledSize(); // this._deadReckoningParameters - marshalSize += this._marking.GetMarshalledSize(); // this._marking - marshalSize += 4; // this._capabilities - for (int idx = 0; idx < this._articulationParameters.Count; idx++) - { - ArticulationParameter listElement = (ArticulationParameter)this._articulationParameters[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Unique ID for an entity that is tied to this state information - /// - [XmlElement(Type = typeof(EntityID), ElementName = "entityID")] - public EntityID EntityID - { - get - { - return this._entityID; - } - - set - { - this._entityID = value; - } - } - - /// - /// Gets or sets the What force this entity is affiliated with, eg red, blue, neutral, etc - /// - [XmlElement(Type = typeof(byte), ElementName = "forceId")] - public byte ForceId - { - get - { - return this._forceId; - } - - set - { - this._forceId = value; - } - } - - /// - /// Gets or sets the How many articulation parameters are in the variable length list - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfArticulationParameters method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfArticulationParameters")] - public byte NumberOfArticulationParameters - { - get - { - return this._numberOfArticulationParameters; - } - - set - { - this._numberOfArticulationParameters = value; - } - } - - /// - /// Gets or sets the Describes the type of entity in the world - /// - [XmlElement(Type = typeof(EntityType), ElementName = "entityType")] - public EntityType EntityType - { - get - { - return this._entityType; - } - - set - { - this._entityType = value; - } - } - - /// - /// Gets or sets the alternativeEntityType - /// - [XmlElement(Type = typeof(EntityType), ElementName = "alternativeEntityType")] - public EntityType AlternativeEntityType - { - get - { - return this._alternativeEntityType; - } - - set - { - this._alternativeEntityType = value; - } - } - - /// - /// Gets or sets the Describes the speed of the entity in the world - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "entityLinearVelocity")] - public Vector3Float EntityLinearVelocity - { - get - { - return this._entityLinearVelocity; - } - - set - { - this._entityLinearVelocity = value; - } - } - - /// - /// Gets or sets the describes the location of the entity in the world - /// - [XmlElement(Type = typeof(Vector3Double), ElementName = "entityLocation")] - public Vector3Double EntityLocation - { - get - { - return this._entityLocation; - } - - set - { - this._entityLocation = value; - } - } - - /// - /// Gets or sets the describes the orientation of the entity, in euler angles - /// - [XmlElement(Type = typeof(Orientation), ElementName = "entityOrientation")] - public Orientation EntityOrientation - { - get - { - return this._entityOrientation; - } - - set - { - this._entityOrientation = value; - } - } - - /// - /// Gets or sets the a series of bit flags that are used to help draw the entity, such as smoking, on fire, etc. - /// - [XmlElement(Type = typeof(int), ElementName = "entityAppearance")] - public int EntityAppearance - { - get - { - return this._entityAppearance; - } - - set - { - this._entityAppearance = value; - } - } - - /// - /// Gets or sets the parameters used for dead reckoning - /// - [XmlElement(Type = typeof(DeadReckoningParameter), ElementName = "deadReckoningParameters")] - public DeadReckoningParameter DeadReckoningParameters - { - get - { - return this._deadReckoningParameters; - } - - set - { - this._deadReckoningParameters = value; - } - } - - /// - /// Gets or sets the characters that can be used for debugging, or to draw unique strings on the side of entities in the world - /// - [XmlElement(Type = typeof(Marking), ElementName = "marking")] - public Marking Marking - { - get - { - return this._marking; - } - - set - { - this._marking = value; - } - } - - /// - /// Gets or sets the a series of bit flags - /// - [XmlElement(Type = typeof(int), ElementName = "capabilities")] - public int Capabilities - { - get - { - return this._capabilities; - } - - set - { - this._capabilities = value; - } - } - - /// - /// Gets the variable length list of articulation parameters - /// - [XmlElement(ElementName = "articulationParametersList", Type = typeof(List))] - public List ArticulationParameters - { - get - { - return this._articulationParameters; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._entityID.Marshal(dos); - dos.WriteUnsignedByte((byte)this._forceId); - dos.WriteByte((byte)this._articulationParameters.Count); - this._entityType.Marshal(dos); - this._alternativeEntityType.Marshal(dos); - this._entityLinearVelocity.Marshal(dos); - this._entityLocation.Marshal(dos); - this._entityOrientation.Marshal(dos); - dos.WriteInt((int)this._entityAppearance); - this._deadReckoningParameters.Marshal(dos); - this._marking.Marshal(dos); - dos.WriteInt((int)this._capabilities); - - for (int idx = 0; idx < this._articulationParameters.Count; idx++) - { - ArticulationParameter aArticulationParameter = (ArticulationParameter)this._articulationParameters[idx]; - aArticulationParameter.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._entityID.Unmarshal(dis); - this._forceId = dis.ReadUnsignedByte(); - this._numberOfArticulationParameters = dis.ReadByte(); - this._entityType.Unmarshal(dis); - this._alternativeEntityType.Unmarshal(dis); - this._entityLinearVelocity.Unmarshal(dis); - this._entityLocation.Unmarshal(dis); - this._entityOrientation.Unmarshal(dis); - this._entityAppearance = dis.ReadInt(); - this._deadReckoningParameters.Unmarshal(dis); - this._marking.Unmarshal(dis); - this._capabilities = dis.ReadInt(); - - for (int idx = 0; idx < this.NumberOfArticulationParameters; idx++) - { - ArticulationParameter anX = new ArticulationParameter(); - anX.Unmarshal(dis); - this._articulationParameters.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._entityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._forceId.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._articulationParameters.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._entityType.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._alternativeEntityType.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._entityLinearVelocity.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._entityLocation.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._entityOrientation.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._entityAppearance.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._deadReckoningParameters.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._marking.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._capabilities.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._articulationParameters.Count; idx++) - { - sb.AppendLine(""); - ArticulationParameter aArticulationParameter = (ArticulationParameter)this._articulationParameters[idx]; - aArticulationParameter.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as EntityStatePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(EntityStatePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._entityID.Equals(obj._entityID)) - { - ivarsEqual = false; - } - - if (this._forceId != obj._forceId) - { - ivarsEqual = false; - } - - if (this._numberOfArticulationParameters != obj._numberOfArticulationParameters) - { - ivarsEqual = false; - } - - if (!this._entityType.Equals(obj._entityType)) - { - ivarsEqual = false; - } - - if (!this._alternativeEntityType.Equals(obj._alternativeEntityType)) - { - ivarsEqual = false; - } - - if (!this._entityLinearVelocity.Equals(obj._entityLinearVelocity)) - { - ivarsEqual = false; - } - - if (!this._entityLocation.Equals(obj._entityLocation)) - { - ivarsEqual = false; - } - - if (!this._entityOrientation.Equals(obj._entityOrientation)) - { - ivarsEqual = false; - } - - if (this._entityAppearance != obj._entityAppearance) - { - ivarsEqual = false; - } - - if (!this._deadReckoningParameters.Equals(obj._deadReckoningParameters)) - { - ivarsEqual = false; - } - - if (!this._marking.Equals(obj._marking)) - { - ivarsEqual = false; - } - - if (this._capabilities != obj._capabilities) - { - ivarsEqual = false; - } - - if (this._articulationParameters.Count != obj._articulationParameters.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._articulationParameters.Count; idx++) - { - if (!this._articulationParameters[idx].Equals(obj._articulationParameters[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._entityID.GetHashCode(); - result = GenerateHash(result) ^ this._forceId.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfArticulationParameters.GetHashCode(); - result = GenerateHash(result) ^ this._entityType.GetHashCode(); - result = GenerateHash(result) ^ this._alternativeEntityType.GetHashCode(); - result = GenerateHash(result) ^ this._entityLinearVelocity.GetHashCode(); - result = GenerateHash(result) ^ this._entityLocation.GetHashCode(); - result = GenerateHash(result) ^ this._entityOrientation.GetHashCode(); - result = GenerateHash(result) ^ this._entityAppearance.GetHashCode(); - result = GenerateHash(result) ^ this._deadReckoningParameters.GetHashCode(); - result = GenerateHash(result) ^ this._marking.GetHashCode(); - result = GenerateHash(result) ^ this._capabilities.GetHashCode(); - - if (this._articulationParameters.Count > 0) - { - for (int idx = 0; idx < this._articulationParameters.Count; idx++) - { - result = GenerateHash(result) ^ this._articulationParameters[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.3.1. Represents the postion and state of one entity in the world. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(EntityType))] + [XmlInclude(typeof(Vector3Float))] + [XmlInclude(typeof(Vector3Double))] + [XmlInclude(typeof(Orientation))] + [XmlInclude(typeof(DeadReckoningParameter))] + [XmlInclude(typeof(Marking))] + [XmlInclude(typeof(ArticulationParameter))] + public partial class EntityStatePdu : EntityInformationFamilyPdu, IEquatable + { + /// + /// Unique ID for an entity that is tied to this state information + /// + private EntityID _entityID = new EntityID(); + + /// + /// What force this entity is affiliated with, eg red, blue, neutral, etc + /// + private byte _forceId; + + /// + /// How many articulation parameters are in the variable length list + /// + private byte _numberOfArticulationParameters; + + /// + /// Describes the type of entity in the world + /// + private EntityType _entityType = new EntityType(); + + private EntityType _alternativeEntityType = new EntityType(); + + /// + /// Describes the speed of the entity in the world + /// + private Vector3Float _entityLinearVelocity = new Vector3Float(); + + /// + /// describes the location of the entity in the world + /// + private Vector3Double _entityLocation = new Vector3Double(); + + /// + /// describes the orientation of the entity, in euler angles + /// + private Orientation _entityOrientation = new Orientation(); + + /// + /// a series of bit flags that are used to help draw the entity, such as smoking, on fire, etc. + /// + private int _entityAppearance; + + /// + /// parameters used for dead reckoning + /// + private DeadReckoningParameter _deadReckoningParameters = new DeadReckoningParameter(); + + /// + /// characters that can be used for debugging, or to draw unique strings on the side of entities in the world + /// + private Marking _marking = new Marking(); + + /// + /// a series of bit flags + /// + private int _capabilities; + + /// + /// variable length list of articulation parameters + /// + private List _articulationParameters = new List(); + + /// + /// Initializes a new instance of the class. + /// + public EntityStatePdu() + { + PduType = (byte)1; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(EntityStatePdu left, EntityStatePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(EntityStatePdu left, EntityStatePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._entityID.GetMarshalledSize(); // this._entityID + marshalSize += 1; // this._forceId + marshalSize += 1; // this._numberOfArticulationParameters + marshalSize += this._entityType.GetMarshalledSize(); // this._entityType + marshalSize += this._alternativeEntityType.GetMarshalledSize(); // this._alternativeEntityType + marshalSize += this._entityLinearVelocity.GetMarshalledSize(); // this._entityLinearVelocity + marshalSize += this._entityLocation.GetMarshalledSize(); // this._entityLocation + marshalSize += this._entityOrientation.GetMarshalledSize(); // this._entityOrientation + marshalSize += 4; // this._entityAppearance + marshalSize += this._deadReckoningParameters.GetMarshalledSize(); // this._deadReckoningParameters + marshalSize += this._marking.GetMarshalledSize(); // this._marking + marshalSize += 4; // this._capabilities + for (int idx = 0; idx < this._articulationParameters.Count; idx++) + { + ArticulationParameter listElement = (ArticulationParameter)this._articulationParameters[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Unique ID for an entity that is tied to this state information + /// + [XmlElement(Type = typeof(EntityID), ElementName = "entityID")] + public EntityID EntityID + { + get + { + return this._entityID; + } + + set + { + this._entityID = value; + } + } + + /// + /// Gets or sets the What force this entity is affiliated with, eg red, blue, neutral, etc + /// + [XmlElement(Type = typeof(byte), ElementName = "forceId")] + public byte ForceId + { + get + { + return this._forceId; + } + + set + { + this._forceId = value; + } + } + + /// + /// Gets or sets the How many articulation parameters are in the variable length list + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfArticulationParameters method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfArticulationParameters")] + public byte NumberOfArticulationParameters + { + get + { + return this._numberOfArticulationParameters; + } + + set + { + this._numberOfArticulationParameters = value; + } + } + + /// + /// Gets or sets the Describes the type of entity in the world + /// + [XmlElement(Type = typeof(EntityType), ElementName = "entityType")] + public EntityType EntityType + { + get + { + return this._entityType; + } + + set + { + this._entityType = value; + } + } + + /// + /// Gets or sets the alternativeEntityType + /// + [XmlElement(Type = typeof(EntityType), ElementName = "alternativeEntityType")] + public EntityType AlternativeEntityType + { + get + { + return this._alternativeEntityType; + } + + set + { + this._alternativeEntityType = value; + } + } + + /// + /// Gets or sets the Describes the speed of the entity in the world + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "entityLinearVelocity")] + public Vector3Float EntityLinearVelocity + { + get + { + return this._entityLinearVelocity; + } + + set + { + this._entityLinearVelocity = value; + } + } + + /// + /// Gets or sets the describes the location of the entity in the world + /// + [XmlElement(Type = typeof(Vector3Double), ElementName = "entityLocation")] + public Vector3Double EntityLocation + { + get + { + return this._entityLocation; + } + + set + { + this._entityLocation = value; + } + } + + /// + /// Gets or sets the describes the orientation of the entity, in euler angles + /// + [XmlElement(Type = typeof(Orientation), ElementName = "entityOrientation")] + public Orientation EntityOrientation + { + get + { + return this._entityOrientation; + } + + set + { + this._entityOrientation = value; + } + } + + /// + /// Gets or sets the a series of bit flags that are used to help draw the entity, such as smoking, on fire, etc. + /// + [XmlElement(Type = typeof(int), ElementName = "entityAppearance")] + public int EntityAppearance + { + get + { + return this._entityAppearance; + } + + set + { + this._entityAppearance = value; + } + } + + /// + /// Gets or sets the parameters used for dead reckoning + /// + [XmlElement(Type = typeof(DeadReckoningParameter), ElementName = "deadReckoningParameters")] + public DeadReckoningParameter DeadReckoningParameters + { + get + { + return this._deadReckoningParameters; + } + + set + { + this._deadReckoningParameters = value; + } + } + + /// + /// Gets or sets the characters that can be used for debugging, or to draw unique strings on the side of entities in the world + /// + [XmlElement(Type = typeof(Marking), ElementName = "marking")] + public Marking Marking + { + get + { + return this._marking; + } + + set + { + this._marking = value; + } + } + + /// + /// Gets or sets the a series of bit flags + /// + [XmlElement(Type = typeof(int), ElementName = "capabilities")] + public int Capabilities + { + get + { + return this._capabilities; + } + + set + { + this._capabilities = value; + } + } + + /// + /// Gets the variable length list of articulation parameters + /// + [XmlElement(ElementName = "articulationParametersList", Type = typeof(List))] + public List ArticulationParameters + { + get + { + return this._articulationParameters; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._entityID.Marshal(dos); + dos.WriteUnsignedByte((byte)this._forceId); + dos.WriteByte((byte)this._articulationParameters.Count); + this._entityType.Marshal(dos); + this._alternativeEntityType.Marshal(dos); + this._entityLinearVelocity.Marshal(dos); + this._entityLocation.Marshal(dos); + this._entityOrientation.Marshal(dos); + dos.WriteInt((int)this._entityAppearance); + this._deadReckoningParameters.Marshal(dos); + this._marking.Marshal(dos); + dos.WriteInt((int)this._capabilities); + + for (int idx = 0; idx < this._articulationParameters.Count; idx++) + { + ArticulationParameter aArticulationParameter = (ArticulationParameter)this._articulationParameters[idx]; + aArticulationParameter.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._entityID.Unmarshal(dis); + this._forceId = dis.ReadUnsignedByte(); + this._numberOfArticulationParameters = dis.ReadByte(); + this._entityType.Unmarshal(dis); + this._alternativeEntityType.Unmarshal(dis); + this._entityLinearVelocity.Unmarshal(dis); + this._entityLocation.Unmarshal(dis); + this._entityOrientation.Unmarshal(dis); + this._entityAppearance = dis.ReadInt(); + this._deadReckoningParameters.Unmarshal(dis); + this._marking.Unmarshal(dis); + this._capabilities = dis.ReadInt(); + + for (int idx = 0; idx < this.NumberOfArticulationParameters; idx++) + { + ArticulationParameter anX = new ArticulationParameter(); + anX.Unmarshal(dis); + this._articulationParameters.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._entityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._forceId.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._articulationParameters.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._entityType.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._alternativeEntityType.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._entityLinearVelocity.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._entityLocation.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._entityOrientation.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._entityAppearance.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._deadReckoningParameters.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._marking.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._capabilities.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._articulationParameters.Count; idx++) + { + sb.AppendLine(""); + ArticulationParameter aArticulationParameter = (ArticulationParameter)this._articulationParameters[idx]; + aArticulationParameter.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as EntityStatePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(EntityStatePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._entityID.Equals(obj._entityID)) + { + ivarsEqual = false; + } + + if (this._forceId != obj._forceId) + { + ivarsEqual = false; + } + + if (this._numberOfArticulationParameters != obj._numberOfArticulationParameters) + { + ivarsEqual = false; + } + + if (!this._entityType.Equals(obj._entityType)) + { + ivarsEqual = false; + } + + if (!this._alternativeEntityType.Equals(obj._alternativeEntityType)) + { + ivarsEqual = false; + } + + if (!this._entityLinearVelocity.Equals(obj._entityLinearVelocity)) + { + ivarsEqual = false; + } + + if (!this._entityLocation.Equals(obj._entityLocation)) + { + ivarsEqual = false; + } + + if (!this._entityOrientation.Equals(obj._entityOrientation)) + { + ivarsEqual = false; + } + + if (this._entityAppearance != obj._entityAppearance) + { + ivarsEqual = false; + } + + if (!this._deadReckoningParameters.Equals(obj._deadReckoningParameters)) + { + ivarsEqual = false; + } + + if (!this._marking.Equals(obj._marking)) + { + ivarsEqual = false; + } + + if (this._capabilities != obj._capabilities) + { + ivarsEqual = false; + } + + if (this._articulationParameters.Count != obj._articulationParameters.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._articulationParameters.Count; idx++) + { + if (!this._articulationParameters[idx].Equals(obj._articulationParameters[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._entityID.GetHashCode(); + result = GenerateHash(result) ^ this._forceId.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfArticulationParameters.GetHashCode(); + result = GenerateHash(result) ^ this._entityType.GetHashCode(); + result = GenerateHash(result) ^ this._alternativeEntityType.GetHashCode(); + result = GenerateHash(result) ^ this._entityLinearVelocity.GetHashCode(); + result = GenerateHash(result) ^ this._entityLocation.GetHashCode(); + result = GenerateHash(result) ^ this._entityOrientation.GetHashCode(); + result = GenerateHash(result) ^ this._entityAppearance.GetHashCode(); + result = GenerateHash(result) ^ this._deadReckoningParameters.GetHashCode(); + result = GenerateHash(result) ^ this._marking.GetHashCode(); + result = GenerateHash(result) ^ this._capabilities.GetHashCode(); + + if (this._articulationParameters.Count > 0) + { + for (int idx = 0; idx < this._articulationParameters.Count; idx++) + { + result = GenerateHash(result) ^ this._articulationParameters[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/EntityStateUpdatePdu.cs b/Libs/CsharpDis6/Dis1998/Generated/EntityStateUpdatePdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/EntityStateUpdatePdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/EntityStateUpdatePdu.cs index e2e89a7..6e3d137 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/EntityStateUpdatePdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/EntityStateUpdatePdu.cs @@ -1,580 +1,580 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// 5.3.3.4. Nonstatic information about a particular entity may be communicated by issuing an Entity State Update PDU. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(Vector3Float))] - [XmlInclude(typeof(Vector3Double))] - [XmlInclude(typeof(Orientation))] - [XmlInclude(typeof(ArticulationParameter))] - public partial class EntityStateUpdatePdu : EntityInformationFamilyPdu, IEquatable - { - /// - /// This field shall identify the entity issuing the PDU - /// - private EntityID _entityID = new EntityID(); - - /// - /// Padding - /// - private byte _padding1; - - /// - /// How many articulation parameters are in the variable length list - /// - private byte _numberOfArticulationParameters; - - /// - /// Describes the speed of the entity in the world - /// - private Vector3Float _entityLinearVelocity = new Vector3Float(); - - /// - /// describes the location of the entity in the world - /// - private Vector3Double _entityLocation = new Vector3Double(); - - /// - /// describes the orientation of the entity, in euler angles - /// - private Orientation _entityOrientation = new Orientation(); - - /// - /// a series of bit flags that are used to help draw the entity, such as smoking, on fire, etc. - /// - private int _entityAppearance; - - private List _articulationParameters = new List(); - - /// - /// Initializes a new instance of the class. - /// - public EntityStateUpdatePdu() - { - PduType = (byte)67; - ProtocolFamily = (byte)1; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(EntityStateUpdatePdu left, EntityStateUpdatePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(EntityStateUpdatePdu left, EntityStateUpdatePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._entityID.GetMarshalledSize(); // this._entityID - marshalSize += 1; // this._padding1 - marshalSize += 1; // this._numberOfArticulationParameters - marshalSize += this._entityLinearVelocity.GetMarshalledSize(); // this._entityLinearVelocity - marshalSize += this._entityLocation.GetMarshalledSize(); // this._entityLocation - marshalSize += this._entityOrientation.GetMarshalledSize(); // this._entityOrientation - marshalSize += 4; // this._entityAppearance - for (int idx = 0; idx < this._articulationParameters.Count; idx++) - { - ArticulationParameter listElement = (ArticulationParameter)this._articulationParameters[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the This field shall identify the entity issuing the PDU - /// - [XmlElement(Type = typeof(EntityID), ElementName = "entityID")] - public EntityID EntityID - { - get - { - return this._entityID; - } - - set - { - this._entityID = value; - } - } - - /// - /// Gets or sets the Padding - /// - [XmlElement(Type = typeof(byte), ElementName = "padding1")] - public byte Padding1 - { - get - { - return this._padding1; - } - - set - { - this._padding1 = value; - } - } - - /// - /// Gets or sets the How many articulation parameters are in the variable length list - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfArticulationParameters method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfArticulationParameters")] - public byte NumberOfArticulationParameters - { - get - { - return this._numberOfArticulationParameters; - } - - set - { - this._numberOfArticulationParameters = value; - } - } - - /// - /// Gets or sets the Describes the speed of the entity in the world - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "entityLinearVelocity")] - public Vector3Float EntityLinearVelocity - { - get - { - return this._entityLinearVelocity; - } - - set - { - this._entityLinearVelocity = value; - } - } - - /// - /// Gets or sets the describes the location of the entity in the world - /// - [XmlElement(Type = typeof(Vector3Double), ElementName = "entityLocation")] - public Vector3Double EntityLocation - { - get - { - return this._entityLocation; - } - - set - { - this._entityLocation = value; - } - } - - /// - /// Gets or sets the describes the orientation of the entity, in euler angles - /// - [XmlElement(Type = typeof(Orientation), ElementName = "entityOrientation")] - public Orientation EntityOrientation - { - get - { - return this._entityOrientation; - } - - set - { - this._entityOrientation = value; - } - } - - /// - /// Gets or sets the a series of bit flags that are used to help draw the entity, such as smoking, on fire, etc. - /// - [XmlElement(Type = typeof(int), ElementName = "entityAppearance")] - public int EntityAppearance - { - get - { - return this._entityAppearance; - } - - set - { - this._entityAppearance = value; - } - } - - /// - /// Gets the articulationParameters - /// - [XmlElement(ElementName = "articulationParametersList", Type = typeof(List))] - public List ArticulationParameters - { - get - { - return this._articulationParameters; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._entityID.Marshal(dos); - dos.WriteByte((byte)this._padding1); - dos.WriteUnsignedByte((byte)this._articulationParameters.Count); - this._entityLinearVelocity.Marshal(dos); - this._entityLocation.Marshal(dos); - this._entityOrientation.Marshal(dos); - dos.WriteInt((int)this._entityAppearance); - - for (int idx = 0; idx < this._articulationParameters.Count; idx++) - { - ArticulationParameter aArticulationParameter = (ArticulationParameter)this._articulationParameters[idx]; - aArticulationParameter.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._entityID.Unmarshal(dis); - this._padding1 = dis.ReadByte(); - this._numberOfArticulationParameters = dis.ReadUnsignedByte(); - this._entityLinearVelocity.Unmarshal(dis); - this._entityLocation.Unmarshal(dis); - this._entityOrientation.Unmarshal(dis); - this._entityAppearance = dis.ReadInt(); - - for (int idx = 0; idx < this.NumberOfArticulationParameters; idx++) - { - ArticulationParameter anX = new ArticulationParameter(); - anX.Unmarshal(dis); - this._articulationParameters.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._entityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._articulationParameters.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._entityLinearVelocity.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._entityLocation.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._entityOrientation.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._entityAppearance.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._articulationParameters.Count; idx++) - { - sb.AppendLine(""); - ArticulationParameter aArticulationParameter = (ArticulationParameter)this._articulationParameters[idx]; - aArticulationParameter.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as EntityStateUpdatePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(EntityStateUpdatePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._entityID.Equals(obj._entityID)) - { - ivarsEqual = false; - } - - if (this._padding1 != obj._padding1) - { - ivarsEqual = false; - } - - if (this._numberOfArticulationParameters != obj._numberOfArticulationParameters) - { - ivarsEqual = false; - } - - if (!this._entityLinearVelocity.Equals(obj._entityLinearVelocity)) - { - ivarsEqual = false; - } - - if (!this._entityLocation.Equals(obj._entityLocation)) - { - ivarsEqual = false; - } - - if (!this._entityOrientation.Equals(obj._entityOrientation)) - { - ivarsEqual = false; - } - - if (this._entityAppearance != obj._entityAppearance) - { - ivarsEqual = false; - } - - if (this._articulationParameters.Count != obj._articulationParameters.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._articulationParameters.Count; idx++) - { - if (!this._articulationParameters[idx].Equals(obj._articulationParameters[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._entityID.GetHashCode(); - result = GenerateHash(result) ^ this._padding1.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfArticulationParameters.GetHashCode(); - result = GenerateHash(result) ^ this._entityLinearVelocity.GetHashCode(); - result = GenerateHash(result) ^ this._entityLocation.GetHashCode(); - result = GenerateHash(result) ^ this._entityOrientation.GetHashCode(); - result = GenerateHash(result) ^ this._entityAppearance.GetHashCode(); - - if (this._articulationParameters.Count > 0) - { - for (int idx = 0; idx < this._articulationParameters.Count; idx++) - { - result = GenerateHash(result) ^ this._articulationParameters[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// 5.3.3.4. Nonstatic information about a particular entity may be communicated by issuing an Entity State Update PDU. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(Vector3Float))] + [XmlInclude(typeof(Vector3Double))] + [XmlInclude(typeof(Orientation))] + [XmlInclude(typeof(ArticulationParameter))] + public partial class EntityStateUpdatePdu : EntityInformationFamilyPdu, IEquatable + { + /// + /// This field shall identify the entity issuing the PDU + /// + private EntityID _entityID = new EntityID(); + + /// + /// Padding + /// + private byte _padding1; + + /// + /// How many articulation parameters are in the variable length list + /// + private byte _numberOfArticulationParameters; + + /// + /// Describes the speed of the entity in the world + /// + private Vector3Float _entityLinearVelocity = new Vector3Float(); + + /// + /// describes the location of the entity in the world + /// + private Vector3Double _entityLocation = new Vector3Double(); + + /// + /// describes the orientation of the entity, in euler angles + /// + private Orientation _entityOrientation = new Orientation(); + + /// + /// a series of bit flags that are used to help draw the entity, such as smoking, on fire, etc. + /// + private int _entityAppearance; + + private List _articulationParameters = new List(); + + /// + /// Initializes a new instance of the class. + /// + public EntityStateUpdatePdu() + { + PduType = (byte)67; + ProtocolFamily = (byte)1; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(EntityStateUpdatePdu left, EntityStateUpdatePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(EntityStateUpdatePdu left, EntityStateUpdatePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._entityID.GetMarshalledSize(); // this._entityID + marshalSize += 1; // this._padding1 + marshalSize += 1; // this._numberOfArticulationParameters + marshalSize += this._entityLinearVelocity.GetMarshalledSize(); // this._entityLinearVelocity + marshalSize += this._entityLocation.GetMarshalledSize(); // this._entityLocation + marshalSize += this._entityOrientation.GetMarshalledSize(); // this._entityOrientation + marshalSize += 4; // this._entityAppearance + for (int idx = 0; idx < this._articulationParameters.Count; idx++) + { + ArticulationParameter listElement = (ArticulationParameter)this._articulationParameters[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the This field shall identify the entity issuing the PDU + /// + [XmlElement(Type = typeof(EntityID), ElementName = "entityID")] + public EntityID EntityID + { + get + { + return this._entityID; + } + + set + { + this._entityID = value; + } + } + + /// + /// Gets or sets the Padding + /// + [XmlElement(Type = typeof(byte), ElementName = "padding1")] + public byte Padding1 + { + get + { + return this._padding1; + } + + set + { + this._padding1 = value; + } + } + + /// + /// Gets or sets the How many articulation parameters are in the variable length list + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfArticulationParameters method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfArticulationParameters")] + public byte NumberOfArticulationParameters + { + get + { + return this._numberOfArticulationParameters; + } + + set + { + this._numberOfArticulationParameters = value; + } + } + + /// + /// Gets or sets the Describes the speed of the entity in the world + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "entityLinearVelocity")] + public Vector3Float EntityLinearVelocity + { + get + { + return this._entityLinearVelocity; + } + + set + { + this._entityLinearVelocity = value; + } + } + + /// + /// Gets or sets the describes the location of the entity in the world + /// + [XmlElement(Type = typeof(Vector3Double), ElementName = "entityLocation")] + public Vector3Double EntityLocation + { + get + { + return this._entityLocation; + } + + set + { + this._entityLocation = value; + } + } + + /// + /// Gets or sets the describes the orientation of the entity, in euler angles + /// + [XmlElement(Type = typeof(Orientation), ElementName = "entityOrientation")] + public Orientation EntityOrientation + { + get + { + return this._entityOrientation; + } + + set + { + this._entityOrientation = value; + } + } + + /// + /// Gets or sets the a series of bit flags that are used to help draw the entity, such as smoking, on fire, etc. + /// + [XmlElement(Type = typeof(int), ElementName = "entityAppearance")] + public int EntityAppearance + { + get + { + return this._entityAppearance; + } + + set + { + this._entityAppearance = value; + } + } + + /// + /// Gets the articulationParameters + /// + [XmlElement(ElementName = "articulationParametersList", Type = typeof(List))] + public List ArticulationParameters + { + get + { + return this._articulationParameters; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._entityID.Marshal(dos); + dos.WriteByte((byte)this._padding1); + dos.WriteUnsignedByte((byte)this._articulationParameters.Count); + this._entityLinearVelocity.Marshal(dos); + this._entityLocation.Marshal(dos); + this._entityOrientation.Marshal(dos); + dos.WriteInt((int)this._entityAppearance); + + for (int idx = 0; idx < this._articulationParameters.Count; idx++) + { + ArticulationParameter aArticulationParameter = (ArticulationParameter)this._articulationParameters[idx]; + aArticulationParameter.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._entityID.Unmarshal(dis); + this._padding1 = dis.ReadByte(); + this._numberOfArticulationParameters = dis.ReadUnsignedByte(); + this._entityLinearVelocity.Unmarshal(dis); + this._entityLocation.Unmarshal(dis); + this._entityOrientation.Unmarshal(dis); + this._entityAppearance = dis.ReadInt(); + + for (int idx = 0; idx < this.NumberOfArticulationParameters; idx++) + { + ArticulationParameter anX = new ArticulationParameter(); + anX.Unmarshal(dis); + this._articulationParameters.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._entityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._articulationParameters.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._entityLinearVelocity.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._entityLocation.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._entityOrientation.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._entityAppearance.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._articulationParameters.Count; idx++) + { + sb.AppendLine(""); + ArticulationParameter aArticulationParameter = (ArticulationParameter)this._articulationParameters[idx]; + aArticulationParameter.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as EntityStateUpdatePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(EntityStateUpdatePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._entityID.Equals(obj._entityID)) + { + ivarsEqual = false; + } + + if (this._padding1 != obj._padding1) + { + ivarsEqual = false; + } + + if (this._numberOfArticulationParameters != obj._numberOfArticulationParameters) + { + ivarsEqual = false; + } + + if (!this._entityLinearVelocity.Equals(obj._entityLinearVelocity)) + { + ivarsEqual = false; + } + + if (!this._entityLocation.Equals(obj._entityLocation)) + { + ivarsEqual = false; + } + + if (!this._entityOrientation.Equals(obj._entityOrientation)) + { + ivarsEqual = false; + } + + if (this._entityAppearance != obj._entityAppearance) + { + ivarsEqual = false; + } + + if (this._articulationParameters.Count != obj._articulationParameters.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._articulationParameters.Count; idx++) + { + if (!this._articulationParameters[idx].Equals(obj._articulationParameters[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._entityID.GetHashCode(); + result = GenerateHash(result) ^ this._padding1.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfArticulationParameters.GetHashCode(); + result = GenerateHash(result) ^ this._entityLinearVelocity.GetHashCode(); + result = GenerateHash(result) ^ this._entityLocation.GetHashCode(); + result = GenerateHash(result) ^ this._entityOrientation.GetHashCode(); + result = GenerateHash(result) ^ this._entityAppearance.GetHashCode(); + + if (this._articulationParameters.Count > 0) + { + for (int idx = 0; idx < this._articulationParameters.Count; idx++) + { + result = GenerateHash(result) ^ this._articulationParameters[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/EntityType.cs b/Libs/CsharpDis6/Dis1998/Generated/EntityType.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/EntityType.cs rename to Libs/CsharpDis6/Dis1998/Generated/EntityType.cs index ffe987c..27e5791 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/EntityType.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/EntityType.cs @@ -1,489 +1,489 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.2.16. Identifies the type of entity, including kind of entity, domain (surface, subsurface, air, etc) country, category, etc. - /// - [Serializable] - [XmlRoot] - public partial class EntityType - { - /// - /// Kind of entity - /// - private byte _entityKind; - - /// - /// Domain of entity (air, surface, subsurface, space, etc) - /// - private byte _domain; - - /// - /// country to which the design of the entity is attributed - /// - private ushort _country; - - /// - /// category of entity - /// - private byte _category; - - /// - /// subcategory of entity - /// - private byte _subcategory; - - /// - /// specific info based on subcategory field - /// - private byte _specific; - - private byte _extra; - - /// - /// Initializes a new instance of the class. - /// - public EntityType() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(EntityType left, EntityType right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(EntityType left, EntityType right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._entityKind - marshalSize += 1; // this._domain - marshalSize += 2; // this._country - marshalSize += 1; // this._category - marshalSize += 1; // this._subcategory - marshalSize += 1; // this._specific - marshalSize += 1; // this._extra - return marshalSize; - } - - /// - /// Gets or sets the Kind of entity - /// - [XmlElement(Type = typeof(byte), ElementName = "entityKind")] - public byte EntityKind - { - get - { - return this._entityKind; - } - - set - { - this._entityKind = value; - } - } - - /// - /// Gets or sets the Domain of entity (air, surface, subsurface, space, etc) - /// - [XmlElement(Type = typeof(byte), ElementName = "domain")] - public byte Domain - { - get - { - return this._domain; - } - - set - { - this._domain = value; - } - } - - /// - /// Gets or sets the country to which the design of the entity is attributed - /// - [XmlElement(Type = typeof(ushort), ElementName = "country")] - public ushort Country - { - get - { - return this._country; - } - - set - { - this._country = value; - } - } - - /// - /// Gets or sets the category of entity - /// - [XmlElement(Type = typeof(byte), ElementName = "category")] - public byte Category - { - get - { - return this._category; - } - - set - { - this._category = value; - } - } - - /// - /// Gets or sets the subcategory of entity - /// - [XmlElement(Type = typeof(byte), ElementName = "subcategory")] - public byte Subcategory - { - get - { - return this._subcategory; - } - - set - { - this._subcategory = value; - } - } - - /// - /// Gets or sets the specific info based on subcategory field - /// - [XmlElement(Type = typeof(byte), ElementName = "specific")] - public byte Specific - { - get - { - return this._specific; - } - - set - { - this._specific = value; - } - } - - /// - /// Gets or sets the extra - /// - [XmlElement(Type = typeof(byte), ElementName = "extra")] - public byte Extra - { - get - { - return this._extra; - } - - set - { - this._extra = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._entityKind); - dos.WriteUnsignedByte((byte)this._domain); - dos.WriteUnsignedShort((ushort)this._country); - dos.WriteUnsignedByte((byte)this._category); - dos.WriteUnsignedByte((byte)this._subcategory); - dos.WriteUnsignedByte((byte)this._specific); - dos.WriteUnsignedByte((byte)this._extra); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._entityKind = dis.ReadUnsignedByte(); - this._domain = dis.ReadUnsignedByte(); - this._country = dis.ReadUnsignedShort(); - this._category = dis.ReadUnsignedByte(); - this._subcategory = dis.ReadUnsignedByte(); - this._specific = dis.ReadUnsignedByte(); - this._extra = dis.ReadUnsignedByte(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._entityKind.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._domain.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._country.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._category.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._subcategory.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._specific.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._extra.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as EntityType; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(EntityType obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._entityKind != obj._entityKind) - { - ivarsEqual = false; - } - - if (this._domain != obj._domain) - { - ivarsEqual = false; - } - - if (this._country != obj._country) - { - ivarsEqual = false; - } - - if (this._category != obj._category) - { - ivarsEqual = false; - } - - if (this._subcategory != obj._subcategory) - { - ivarsEqual = false; - } - - if (this._specific != obj._specific) - { - ivarsEqual = false; - } - - if (this._extra != obj._extra) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._entityKind.GetHashCode(); - result = GenerateHash(result) ^ this._domain.GetHashCode(); - result = GenerateHash(result) ^ this._country.GetHashCode(); - result = GenerateHash(result) ^ this._category.GetHashCode(); - result = GenerateHash(result) ^ this._subcategory.GetHashCode(); - result = GenerateHash(result) ^ this._specific.GetHashCode(); - result = GenerateHash(result) ^ this._extra.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.2.16. Identifies the type of entity, including kind of entity, domain (surface, subsurface, air, etc) country, category, etc. + /// + [Serializable] + [XmlRoot] + public partial class EntityType + { + /// + /// Kind of entity + /// + private byte _entityKind; + + /// + /// Domain of entity (air, surface, subsurface, space, etc) + /// + private byte _domain; + + /// + /// country to which the design of the entity is attributed + /// + private ushort _country; + + /// + /// category of entity + /// + private byte _category; + + /// + /// subcategory of entity + /// + private byte _subcategory; + + /// + /// specific info based on subcategory field + /// + private byte _specific; + + private byte _extra; + + /// + /// Initializes a new instance of the class. + /// + public EntityType() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(EntityType left, EntityType right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(EntityType left, EntityType right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._entityKind + marshalSize += 1; // this._domain + marshalSize += 2; // this._country + marshalSize += 1; // this._category + marshalSize += 1; // this._subcategory + marshalSize += 1; // this._specific + marshalSize += 1; // this._extra + return marshalSize; + } + + /// + /// Gets or sets the Kind of entity + /// + [XmlElement(Type = typeof(byte), ElementName = "entityKind")] + public byte EntityKind + { + get + { + return this._entityKind; + } + + set + { + this._entityKind = value; + } + } + + /// + /// Gets or sets the Domain of entity (air, surface, subsurface, space, etc) + /// + [XmlElement(Type = typeof(byte), ElementName = "domain")] + public byte Domain + { + get + { + return this._domain; + } + + set + { + this._domain = value; + } + } + + /// + /// Gets or sets the country to which the design of the entity is attributed + /// + [XmlElement(Type = typeof(ushort), ElementName = "country")] + public ushort Country + { + get + { + return this._country; + } + + set + { + this._country = value; + } + } + + /// + /// Gets or sets the category of entity + /// + [XmlElement(Type = typeof(byte), ElementName = "category")] + public byte Category + { + get + { + return this._category; + } + + set + { + this._category = value; + } + } + + /// + /// Gets or sets the subcategory of entity + /// + [XmlElement(Type = typeof(byte), ElementName = "subcategory")] + public byte Subcategory + { + get + { + return this._subcategory; + } + + set + { + this._subcategory = value; + } + } + + /// + /// Gets or sets the specific info based on subcategory field + /// + [XmlElement(Type = typeof(byte), ElementName = "specific")] + public byte Specific + { + get + { + return this._specific; + } + + set + { + this._specific = value; + } + } + + /// + /// Gets or sets the extra + /// + [XmlElement(Type = typeof(byte), ElementName = "extra")] + public byte Extra + { + get + { + return this._extra; + } + + set + { + this._extra = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._entityKind); + dos.WriteUnsignedByte((byte)this._domain); + dos.WriteUnsignedShort((ushort)this._country); + dos.WriteUnsignedByte((byte)this._category); + dos.WriteUnsignedByte((byte)this._subcategory); + dos.WriteUnsignedByte((byte)this._specific); + dos.WriteUnsignedByte((byte)this._extra); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._entityKind = dis.ReadUnsignedByte(); + this._domain = dis.ReadUnsignedByte(); + this._country = dis.ReadUnsignedShort(); + this._category = dis.ReadUnsignedByte(); + this._subcategory = dis.ReadUnsignedByte(); + this._specific = dis.ReadUnsignedByte(); + this._extra = dis.ReadUnsignedByte(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._entityKind.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._domain.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._country.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._category.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._subcategory.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._specific.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._extra.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as EntityType; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(EntityType obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._entityKind != obj._entityKind) + { + ivarsEqual = false; + } + + if (this._domain != obj._domain) + { + ivarsEqual = false; + } + + if (this._country != obj._country) + { + ivarsEqual = false; + } + + if (this._category != obj._category) + { + ivarsEqual = false; + } + + if (this._subcategory != obj._subcategory) + { + ivarsEqual = false; + } + + if (this._specific != obj._specific) + { + ivarsEqual = false; + } + + if (this._extra != obj._extra) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._entityKind.GetHashCode(); + result = GenerateHash(result) ^ this._domain.GetHashCode(); + result = GenerateHash(result) ^ this._country.GetHashCode(); + result = GenerateHash(result) ^ this._category.GetHashCode(); + result = GenerateHash(result) ^ this._subcategory.GetHashCode(); + result = GenerateHash(result) ^ this._specific.GetHashCode(); + result = GenerateHash(result) ^ this._extra.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/Environment.cs b/Libs/CsharpDis6/Dis1998/Generated/Environment.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/Environment.cs rename to Libs/CsharpDis6/Dis1998/Generated/Environment.cs index e76cd55..772c048 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/Environment.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/Environment.cs @@ -1,460 +1,460 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.2.40. Information about a geometry, a state associated with a geometry, a bounding volume, or an associated entity ID. NOTE: this class requires hand coding. - /// - [Serializable] - [XmlRoot] - public partial class Environment - { - /// - /// Record type - /// - private uint _environmentType; - - /// - /// length, in bits - /// - private byte _length; - - /// - /// Identify the sequentially numbered record index - /// - private byte _index; - - /// - /// padding - /// - private byte _padding1; - - /// - /// Geometry or state record - /// - private byte _geometry; - - /// - /// padding to bring the total size up to a 64 bit boundry - /// - private byte _padding2; - - /// - /// Initializes a new instance of the class. - /// - public Environment() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(Environment left, Environment right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(Environment left, Environment right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._environmentType - marshalSize += 1; // this._length - marshalSize += 1; // this._index - marshalSize += 1; // this._padding1 - marshalSize += 1; // this._geometry - marshalSize += 1; // this._padding2 - return marshalSize; - } - - /// - /// Gets or sets the Record type - /// - [XmlElement(Type = typeof(uint), ElementName = "environmentType")] - public uint EnvironmentType - { - get - { - return this._environmentType; - } - - set - { - this._environmentType = value; - } - } - - /// - /// Gets or sets the length, in bits - /// - [XmlElement(Type = typeof(byte), ElementName = "length")] - public byte Length - { - get - { - return this._length; - } - - set - { - this._length = value; - } - } - - /// - /// Gets or sets the Identify the sequentially numbered record index - /// - [XmlElement(Type = typeof(byte), ElementName = "index")] - public byte Index - { - get - { - return this._index; - } - - set - { - this._index = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "padding1")] - public byte Padding1 - { - get - { - return this._padding1; - } - - set - { - this._padding1 = value; - } - } - - /// - /// Gets or sets the Geometry or state record - /// - [XmlElement(Type = typeof(byte), ElementName = "geometry")] - public byte Geometry - { - get - { - return this._geometry; - } - - set - { - this._geometry = value; - } - } - - /// - /// Gets or sets the padding to bring the total size up to a 64 bit boundry - /// - [XmlElement(Type = typeof(byte), ElementName = "padding2")] - public byte Padding2 - { - get - { - return this._padding2; - } - - set - { - this._padding2 = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._environmentType); - dos.WriteUnsignedByte((byte)this._length); - dos.WriteUnsignedByte((byte)this._index); - dos.WriteUnsignedByte((byte)this._padding1); - dos.WriteUnsignedByte((byte)this._geometry); - dos.WriteUnsignedByte((byte)this._padding2); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._environmentType = dis.ReadUnsignedInt(); - this._length = dis.ReadUnsignedByte(); - this._index = dis.ReadUnsignedByte(); - this._padding1 = dis.ReadUnsignedByte(); - this._geometry = dis.ReadUnsignedByte(); - this._padding2 = dis.ReadUnsignedByte(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._environmentType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._length.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._index.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._geometry.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as Environment; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(Environment obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._environmentType != obj._environmentType) - { - ivarsEqual = false; - } - - if (this._length != obj._length) - { - ivarsEqual = false; - } - - if (this._index != obj._index) - { - ivarsEqual = false; - } - - if (this._padding1 != obj._padding1) - { - ivarsEqual = false; - } - - if (this._geometry != obj._geometry) - { - ivarsEqual = false; - } - - if (this._padding2 != obj._padding2) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._environmentType.GetHashCode(); - result = GenerateHash(result) ^ this._length.GetHashCode(); - result = GenerateHash(result) ^ this._index.GetHashCode(); - result = GenerateHash(result) ^ this._padding1.GetHashCode(); - result = GenerateHash(result) ^ this._geometry.GetHashCode(); - result = GenerateHash(result) ^ this._padding2.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.2.40. Information about a geometry, a state associated with a geometry, a bounding volume, or an associated entity ID. NOTE: this class requires hand coding. + /// + [Serializable] + [XmlRoot] + public partial class Environment + { + /// + /// Record type + /// + private uint _environmentType; + + /// + /// length, in bits + /// + private byte _length; + + /// + /// Identify the sequentially numbered record index + /// + private byte _index; + + /// + /// padding + /// + private byte _padding1; + + /// + /// Geometry or state record + /// + private byte _geometry; + + /// + /// padding to bring the total size up to a 64 bit boundry + /// + private byte _padding2; + + /// + /// Initializes a new instance of the class. + /// + public Environment() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(Environment left, Environment right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(Environment left, Environment right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._environmentType + marshalSize += 1; // this._length + marshalSize += 1; // this._index + marshalSize += 1; // this._padding1 + marshalSize += 1; // this._geometry + marshalSize += 1; // this._padding2 + return marshalSize; + } + + /// + /// Gets or sets the Record type + /// + [XmlElement(Type = typeof(uint), ElementName = "environmentType")] + public uint EnvironmentType + { + get + { + return this._environmentType; + } + + set + { + this._environmentType = value; + } + } + + /// + /// Gets or sets the length, in bits + /// + [XmlElement(Type = typeof(byte), ElementName = "length")] + public byte Length + { + get + { + return this._length; + } + + set + { + this._length = value; + } + } + + /// + /// Gets or sets the Identify the sequentially numbered record index + /// + [XmlElement(Type = typeof(byte), ElementName = "index")] + public byte Index + { + get + { + return this._index; + } + + set + { + this._index = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "padding1")] + public byte Padding1 + { + get + { + return this._padding1; + } + + set + { + this._padding1 = value; + } + } + + /// + /// Gets or sets the Geometry or state record + /// + [XmlElement(Type = typeof(byte), ElementName = "geometry")] + public byte Geometry + { + get + { + return this._geometry; + } + + set + { + this._geometry = value; + } + } + + /// + /// Gets or sets the padding to bring the total size up to a 64 bit boundry + /// + [XmlElement(Type = typeof(byte), ElementName = "padding2")] + public byte Padding2 + { + get + { + return this._padding2; + } + + set + { + this._padding2 = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._environmentType); + dos.WriteUnsignedByte((byte)this._length); + dos.WriteUnsignedByte((byte)this._index); + dos.WriteUnsignedByte((byte)this._padding1); + dos.WriteUnsignedByte((byte)this._geometry); + dos.WriteUnsignedByte((byte)this._padding2); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._environmentType = dis.ReadUnsignedInt(); + this._length = dis.ReadUnsignedByte(); + this._index = dis.ReadUnsignedByte(); + this._padding1 = dis.ReadUnsignedByte(); + this._geometry = dis.ReadUnsignedByte(); + this._padding2 = dis.ReadUnsignedByte(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._environmentType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._length.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._index.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._geometry.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as Environment; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(Environment obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._environmentType != obj._environmentType) + { + ivarsEqual = false; + } + + if (this._length != obj._length) + { + ivarsEqual = false; + } + + if (this._index != obj._index) + { + ivarsEqual = false; + } + + if (this._padding1 != obj._padding1) + { + ivarsEqual = false; + } + + if (this._geometry != obj._geometry) + { + ivarsEqual = false; + } + + if (this._padding2 != obj._padding2) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._environmentType.GetHashCode(); + result = GenerateHash(result) ^ this._length.GetHashCode(); + result = GenerateHash(result) ^ this._index.GetHashCode(); + result = GenerateHash(result) ^ this._padding1.GetHashCode(); + result = GenerateHash(result) ^ this._geometry.GetHashCode(); + result = GenerateHash(result) ^ this._padding2.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/EnvironmentalProcessPdu.cs b/Libs/CsharpDis6/Dis1998/Generated/EnvironmentalProcessPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/EnvironmentalProcessPdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/EnvironmentalProcessPdu.cs index 62ddf63..2f4d15e 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/EnvironmentalProcessPdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/EnvironmentalProcessPdu.cs @@ -1,544 +1,544 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.11.1: Information about environmental effects and processes. This requires manual cleanup. the environmental record is variable, as is the padding. UNFINISHED - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(EntityType))] - [XmlInclude(typeof(Environment))] - public partial class EnvironmentalProcessPdu : SyntheticEnvironmentFamilyPdu, IEquatable - { - /// - /// Environmental process ID - /// - private EntityID _environementalProcessID = new EntityID(); - - /// - /// Environment type - /// - private EntityType _environmentType = new EntityType(); - - /// - /// model type - /// - private byte _modelType; - - /// - /// Environment status - /// - private byte _environmentStatus; - - /// - /// number of environment records - /// - private byte _numberOfEnvironmentRecords; - - /// - /// PDU sequence number for the environmentla process if pdu sequencing required - /// - private ushort _sequenceNumber; - - /// - /// environemt records - /// - private List _environmentRecords = new List(); - - /// - /// Initializes a new instance of the class. - /// - public EnvironmentalProcessPdu() - { - PduType = (byte)41; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(EnvironmentalProcessPdu left, EnvironmentalProcessPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(EnvironmentalProcessPdu left, EnvironmentalProcessPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._environementalProcessID.GetMarshalledSize(); // this._environementalProcessID - marshalSize += this._environmentType.GetMarshalledSize(); // this._environmentType - marshalSize += 1; // this._modelType - marshalSize += 1; // this._environmentStatus - marshalSize += 1; // this._numberOfEnvironmentRecords - marshalSize += 2; // this._sequenceNumber - for (int idx = 0; idx < this._environmentRecords.Count; idx++) - { - Environment listElement = (Environment)this._environmentRecords[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Environmental process ID - /// - [XmlElement(Type = typeof(EntityID), ElementName = "environementalProcessID")] - public EntityID EnvironementalProcessID - { - get - { - return this._environementalProcessID; - } - - set - { - this._environementalProcessID = value; - } - } - - /// - /// Gets or sets the Environment type - /// - [XmlElement(Type = typeof(EntityType), ElementName = "environmentType")] - public EntityType EnvironmentType - { - get - { - return this._environmentType; - } - - set - { - this._environmentType = value; - } - } - - /// - /// Gets or sets the model type - /// - [XmlElement(Type = typeof(byte), ElementName = "modelType")] - public byte ModelType - { - get - { - return this._modelType; - } - - set - { - this._modelType = value; - } - } - - /// - /// Gets or sets the Environment status - /// - [XmlElement(Type = typeof(byte), ElementName = "environmentStatus")] - public byte EnvironmentStatus - { - get - { - return this._environmentStatus; - } - - set - { - this._environmentStatus = value; - } - } - - /// - /// Gets or sets the number of environment records - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfEnvironmentRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfEnvironmentRecords")] - public byte NumberOfEnvironmentRecords - { - get - { - return this._numberOfEnvironmentRecords; - } - - set - { - this._numberOfEnvironmentRecords = value; - } - } - - /// - /// Gets or sets the PDU sequence number for the environmentla process if pdu sequencing required - /// - [XmlElement(Type = typeof(ushort), ElementName = "sequenceNumber")] - public ushort SequenceNumber - { - get - { - return this._sequenceNumber; - } - - set - { - this._sequenceNumber = value; - } - } - - /// - /// Gets the environemt records - /// - [XmlElement(ElementName = "environmentRecordsList", Type = typeof(List))] - public List EnvironmentRecords - { - get - { - return this._environmentRecords; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._environementalProcessID.Marshal(dos); - this._environmentType.Marshal(dos); - dos.WriteUnsignedByte((byte)this._modelType); - dos.WriteUnsignedByte((byte)this._environmentStatus); - dos.WriteUnsignedByte((byte)this._environmentRecords.Count); - dos.WriteUnsignedShort((ushort)this._sequenceNumber); - - for (int idx = 0; idx < this._environmentRecords.Count; idx++) - { - Environment aEnvironment = (Environment)this._environmentRecords[idx]; - aEnvironment.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._environementalProcessID.Unmarshal(dis); - this._environmentType.Unmarshal(dis); - this._modelType = dis.ReadUnsignedByte(); - this._environmentStatus = dis.ReadUnsignedByte(); - this._numberOfEnvironmentRecords = dis.ReadUnsignedByte(); - this._sequenceNumber = dis.ReadUnsignedShort(); - - for (int idx = 0; idx < this.NumberOfEnvironmentRecords; idx++) - { - Environment anX = new Environment(); - anX.Unmarshal(dis); - this._environmentRecords.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._environementalProcessID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._environmentType.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._modelType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._environmentStatus.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._environmentRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._sequenceNumber.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._environmentRecords.Count; idx++) - { - sb.AppendLine(""); - Environment aEnvironment = (Environment)this._environmentRecords[idx]; - aEnvironment.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as EnvironmentalProcessPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(EnvironmentalProcessPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._environementalProcessID.Equals(obj._environementalProcessID)) - { - ivarsEqual = false; - } - - if (!this._environmentType.Equals(obj._environmentType)) - { - ivarsEqual = false; - } - - if (this._modelType != obj._modelType) - { - ivarsEqual = false; - } - - if (this._environmentStatus != obj._environmentStatus) - { - ivarsEqual = false; - } - - if (this._numberOfEnvironmentRecords != obj._numberOfEnvironmentRecords) - { - ivarsEqual = false; - } - - if (this._sequenceNumber != obj._sequenceNumber) - { - ivarsEqual = false; - } - - if (this._environmentRecords.Count != obj._environmentRecords.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._environmentRecords.Count; idx++) - { - if (!this._environmentRecords[idx].Equals(obj._environmentRecords[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._environementalProcessID.GetHashCode(); - result = GenerateHash(result) ^ this._environmentType.GetHashCode(); - result = GenerateHash(result) ^ this._modelType.GetHashCode(); - result = GenerateHash(result) ^ this._environmentStatus.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfEnvironmentRecords.GetHashCode(); - result = GenerateHash(result) ^ this._sequenceNumber.GetHashCode(); - - if (this._environmentRecords.Count > 0) - { - for (int idx = 0; idx < this._environmentRecords.Count; idx++) - { - result = GenerateHash(result) ^ this._environmentRecords[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.11.1: Information about environmental effects and processes. This requires manual cleanup. the environmental record is variable, as is the padding. UNFINISHED + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(EntityType))] + [XmlInclude(typeof(Environment))] + public partial class EnvironmentalProcessPdu : SyntheticEnvironmentFamilyPdu, IEquatable + { + /// + /// Environmental process ID + /// + private EntityID _environementalProcessID = new EntityID(); + + /// + /// Environment type + /// + private EntityType _environmentType = new EntityType(); + + /// + /// model type + /// + private byte _modelType; + + /// + /// Environment status + /// + private byte _environmentStatus; + + /// + /// number of environment records + /// + private byte _numberOfEnvironmentRecords; + + /// + /// PDU sequence number for the environmentla process if pdu sequencing required + /// + private ushort _sequenceNumber; + + /// + /// environemt records + /// + private List _environmentRecords = new List(); + + /// + /// Initializes a new instance of the class. + /// + public EnvironmentalProcessPdu() + { + PduType = (byte)41; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(EnvironmentalProcessPdu left, EnvironmentalProcessPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(EnvironmentalProcessPdu left, EnvironmentalProcessPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._environementalProcessID.GetMarshalledSize(); // this._environementalProcessID + marshalSize += this._environmentType.GetMarshalledSize(); // this._environmentType + marshalSize += 1; // this._modelType + marshalSize += 1; // this._environmentStatus + marshalSize += 1; // this._numberOfEnvironmentRecords + marshalSize += 2; // this._sequenceNumber + for (int idx = 0; idx < this._environmentRecords.Count; idx++) + { + Environment listElement = (Environment)this._environmentRecords[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Environmental process ID + /// + [XmlElement(Type = typeof(EntityID), ElementName = "environementalProcessID")] + public EntityID EnvironementalProcessID + { + get + { + return this._environementalProcessID; + } + + set + { + this._environementalProcessID = value; + } + } + + /// + /// Gets or sets the Environment type + /// + [XmlElement(Type = typeof(EntityType), ElementName = "environmentType")] + public EntityType EnvironmentType + { + get + { + return this._environmentType; + } + + set + { + this._environmentType = value; + } + } + + /// + /// Gets or sets the model type + /// + [XmlElement(Type = typeof(byte), ElementName = "modelType")] + public byte ModelType + { + get + { + return this._modelType; + } + + set + { + this._modelType = value; + } + } + + /// + /// Gets or sets the Environment status + /// + [XmlElement(Type = typeof(byte), ElementName = "environmentStatus")] + public byte EnvironmentStatus + { + get + { + return this._environmentStatus; + } + + set + { + this._environmentStatus = value; + } + } + + /// + /// Gets or sets the number of environment records + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfEnvironmentRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfEnvironmentRecords")] + public byte NumberOfEnvironmentRecords + { + get + { + return this._numberOfEnvironmentRecords; + } + + set + { + this._numberOfEnvironmentRecords = value; + } + } + + /// + /// Gets or sets the PDU sequence number for the environmentla process if pdu sequencing required + /// + [XmlElement(Type = typeof(ushort), ElementName = "sequenceNumber")] + public ushort SequenceNumber + { + get + { + return this._sequenceNumber; + } + + set + { + this._sequenceNumber = value; + } + } + + /// + /// Gets the environemt records + /// + [XmlElement(ElementName = "environmentRecordsList", Type = typeof(List))] + public List EnvironmentRecords + { + get + { + return this._environmentRecords; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._environementalProcessID.Marshal(dos); + this._environmentType.Marshal(dos); + dos.WriteUnsignedByte((byte)this._modelType); + dos.WriteUnsignedByte((byte)this._environmentStatus); + dos.WriteUnsignedByte((byte)this._environmentRecords.Count); + dos.WriteUnsignedShort((ushort)this._sequenceNumber); + + for (int idx = 0; idx < this._environmentRecords.Count; idx++) + { + Environment aEnvironment = (Environment)this._environmentRecords[idx]; + aEnvironment.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._environementalProcessID.Unmarshal(dis); + this._environmentType.Unmarshal(dis); + this._modelType = dis.ReadUnsignedByte(); + this._environmentStatus = dis.ReadUnsignedByte(); + this._numberOfEnvironmentRecords = dis.ReadUnsignedByte(); + this._sequenceNumber = dis.ReadUnsignedShort(); + + for (int idx = 0; idx < this.NumberOfEnvironmentRecords; idx++) + { + Environment anX = new Environment(); + anX.Unmarshal(dis); + this._environmentRecords.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._environementalProcessID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._environmentType.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._modelType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._environmentStatus.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._environmentRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._sequenceNumber.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._environmentRecords.Count; idx++) + { + sb.AppendLine(""); + Environment aEnvironment = (Environment)this._environmentRecords[idx]; + aEnvironment.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as EnvironmentalProcessPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(EnvironmentalProcessPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._environementalProcessID.Equals(obj._environementalProcessID)) + { + ivarsEqual = false; + } + + if (!this._environmentType.Equals(obj._environmentType)) + { + ivarsEqual = false; + } + + if (this._modelType != obj._modelType) + { + ivarsEqual = false; + } + + if (this._environmentStatus != obj._environmentStatus) + { + ivarsEqual = false; + } + + if (this._numberOfEnvironmentRecords != obj._numberOfEnvironmentRecords) + { + ivarsEqual = false; + } + + if (this._sequenceNumber != obj._sequenceNumber) + { + ivarsEqual = false; + } + + if (this._environmentRecords.Count != obj._environmentRecords.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._environmentRecords.Count; idx++) + { + if (!this._environmentRecords[idx].Equals(obj._environmentRecords[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._environementalProcessID.GetHashCode(); + result = GenerateHash(result) ^ this._environmentType.GetHashCode(); + result = GenerateHash(result) ^ this._modelType.GetHashCode(); + result = GenerateHash(result) ^ this._environmentStatus.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfEnvironmentRecords.GetHashCode(); + result = GenerateHash(result) ^ this._sequenceNumber.GetHashCode(); + + if (this._environmentRecords.Count > 0) + { + for (int idx = 0; idx < this._environmentRecords.Count; idx++) + { + result = GenerateHash(result) ^ this._environmentRecords[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/EventID.cs b/Libs/CsharpDis6/Dis1998/Generated/EventID.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/EventID.cs rename to Libs/CsharpDis6/Dis1998/Generated/EventID.cs index ed21810..f0bb11a 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/EventID.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/EventID.cs @@ -1,364 +1,364 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.2.18. Identifies a unique event in a simulation via the combination of three values - /// - [Serializable] - [XmlRoot] - public partial class EventID - { - /// - /// The site ID - /// - private ushort _site; - - /// - /// The application ID - /// - private ushort _application; - - /// - /// the number of the event - /// - private ushort _eventNumber; - - /// - /// Initializes a new instance of the class. - /// - public EventID() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(EventID left, EventID right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(EventID left, EventID right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 2; // this._site - marshalSize += 2; // this._application - marshalSize += 2; // this._eventNumber - return marshalSize; - } - - /// - /// Gets or sets the The site ID - /// - [XmlElement(Type = typeof(ushort), ElementName = "site")] - public ushort Site - { - get - { - return this._site; - } - - set - { - this._site = value; - } - } - - /// - /// Gets or sets the The application ID - /// - [XmlElement(Type = typeof(ushort), ElementName = "application")] - public ushort Application - { - get - { - return this._application; - } - - set - { - this._application = value; - } - } - - /// - /// Gets or sets the the number of the event - /// - [XmlElement(Type = typeof(ushort), ElementName = "eventNumber")] - public ushort EventNumber - { - get - { - return this._eventNumber; - } - - set - { - this._eventNumber = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._site); - dos.WriteUnsignedShort((ushort)this._application); - dos.WriteUnsignedShort((ushort)this._eventNumber); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._site = dis.ReadUnsignedShort(); - this._application = dis.ReadUnsignedShort(); - this._eventNumber = dis.ReadUnsignedShort(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._site.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._application.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._eventNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as EventID; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(EventID obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._site != obj._site) - { - ivarsEqual = false; - } - - if (this._application != obj._application) - { - ivarsEqual = false; - } - - if (this._eventNumber != obj._eventNumber) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._site.GetHashCode(); - result = GenerateHash(result) ^ this._application.GetHashCode(); - result = GenerateHash(result) ^ this._eventNumber.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.2.18. Identifies a unique event in a simulation via the combination of three values + /// + [Serializable] + [XmlRoot] + public partial class EventID + { + /// + /// The site ID + /// + private ushort _site; + + /// + /// The application ID + /// + private ushort _application; + + /// + /// the number of the event + /// + private ushort _eventNumber; + + /// + /// Initializes a new instance of the class. + /// + public EventID() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(EventID left, EventID right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(EventID left, EventID right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 2; // this._site + marshalSize += 2; // this._application + marshalSize += 2; // this._eventNumber + return marshalSize; + } + + /// + /// Gets or sets the The site ID + /// + [XmlElement(Type = typeof(ushort), ElementName = "site")] + public ushort Site + { + get + { + return this._site; + } + + set + { + this._site = value; + } + } + + /// + /// Gets or sets the The application ID + /// + [XmlElement(Type = typeof(ushort), ElementName = "application")] + public ushort Application + { + get + { + return this._application; + } + + set + { + this._application = value; + } + } + + /// + /// Gets or sets the the number of the event + /// + [XmlElement(Type = typeof(ushort), ElementName = "eventNumber")] + public ushort EventNumber + { + get + { + return this._eventNumber; + } + + set + { + this._eventNumber = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._site); + dos.WriteUnsignedShort((ushort)this._application); + dos.WriteUnsignedShort((ushort)this._eventNumber); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._site = dis.ReadUnsignedShort(); + this._application = dis.ReadUnsignedShort(); + this._eventNumber = dis.ReadUnsignedShort(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._site.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._application.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._eventNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as EventID; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(EventID obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._site != obj._site) + { + ivarsEqual = false; + } + + if (this._application != obj._application) + { + ivarsEqual = false; + } + + if (this._eventNumber != obj._eventNumber) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._site.GetHashCode(); + result = GenerateHash(result) ^ this._application.GetHashCode(); + result = GenerateHash(result) ^ this._eventNumber.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/EventReportPdu.cs b/Libs/CsharpDis6/Dis1998/Generated/EventReportPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/EventReportPdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/EventReportPdu.cs index ac1ce02..11a664f 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/EventReportPdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/EventReportPdu.cs @@ -1,548 +1,548 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.6.11. Reports occurance of a significant event to the simulation manager. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(FixedDatum))] - [XmlInclude(typeof(VariableDatum))] - public partial class EventReportPdu : SimulationManagementFamilyPdu, IEquatable - { - /// - /// Type of event - /// - private uint _eventType; - - /// - /// padding - /// - private uint _padding1; - - /// - /// Number of fixed datum records - /// - private uint _numberOfFixedDatumRecords; - - /// - /// Number of variable datum records - /// - private uint _numberOfVariableDatumRecords; - - /// - /// variable length list of fixed datums - /// - private List _fixedDatums = new List(); - - /// - /// variable length list of variable length datums - /// - private List _variableDatums = new List(); - - /// - /// Initializes a new instance of the class. - /// - public EventReportPdu() - { - PduType = (byte)21; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(EventReportPdu left, EventReportPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(EventReportPdu left, EventReportPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 4; // this._eventType - marshalSize += 4; // this._padding1 - marshalSize += 4; // this._numberOfFixedDatumRecords - marshalSize += 4; // this._numberOfVariableDatumRecords - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - FixedDatum listElement = (FixedDatum)this._fixedDatums[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - VariableDatum listElement = (VariableDatum)this._variableDatums[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Type of event - /// - [XmlElement(Type = typeof(uint), ElementName = "eventType")] - public uint EventType - { - get - { - return this._eventType; - } - - set - { - this._eventType = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(uint), ElementName = "padding1")] - public uint Padding1 - { - get - { - return this._padding1; - } - - set - { - this._padding1 = value; - } - } - - /// - /// Gets or sets the Number of fixed datum records - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] - public uint NumberOfFixedDatumRecords - { - get - { - return this._numberOfFixedDatumRecords; - } - - set - { - this._numberOfFixedDatumRecords = value; - } - } - - /// - /// Gets or sets the Number of variable datum records - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] - public uint NumberOfVariableDatumRecords - { - get - { - return this._numberOfVariableDatumRecords; - } - - set - { - this._numberOfVariableDatumRecords = value; - } - } - - /// - /// Gets the variable length list of fixed datums - /// - [XmlElement(ElementName = "fixedDatumsList", Type = typeof(List))] - public List FixedDatums - { - get - { - return this._fixedDatums; - } - } - - /// - /// Gets the variable length list of variable length datums - /// - [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] - public List VariableDatums - { - get - { - return this._variableDatums; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._eventType); - dos.WriteUnsignedInt((uint)this._padding1); - dos.WriteUnsignedInt((uint)this._fixedDatums.Count); - dos.WriteUnsignedInt((uint)this._variableDatums.Count); - - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; - aFixedDatum.Marshal(dos); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; - aVariableDatum.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._eventType = dis.ReadUnsignedInt(); - this._padding1 = dis.ReadUnsignedInt(); - this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); - this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); - - for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) - { - FixedDatum anX = new FixedDatum(); - anX.Unmarshal(dis); - this._fixedDatums.Add(anX); - } - - for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) - { - VariableDatum anX = new VariableDatum(); - anX.Unmarshal(dis); - this._variableDatums.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._eventType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fixedDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - sb.AppendLine(""); - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; - aFixedDatum.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - sb.AppendLine(""); - VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; - aVariableDatum.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as EventReportPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(EventReportPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._eventType != obj._eventType) - { - ivarsEqual = false; - } - - if (this._padding1 != obj._padding1) - { - ivarsEqual = false; - } - - if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) - { - ivarsEqual = false; - } - - if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) - { - ivarsEqual = false; - } - - if (this._fixedDatums.Count != obj._fixedDatums.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - if (!this._fixedDatums[idx].Equals(obj._fixedDatums[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._variableDatums.Count != obj._variableDatums.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._eventType.GetHashCode(); - result = GenerateHash(result) ^ this._padding1.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); - - if (this._fixedDatums.Count > 0) - { - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - result = GenerateHash(result) ^ this._fixedDatums[idx].GetHashCode(); - } - } - - if (this._variableDatums.Count > 0) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.6.11. Reports occurance of a significant event to the simulation manager. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(FixedDatum))] + [XmlInclude(typeof(VariableDatum))] + public partial class EventReportPdu : SimulationManagementFamilyPdu, IEquatable + { + /// + /// Type of event + /// + private uint _eventType; + + /// + /// padding + /// + private uint _padding1; + + /// + /// Number of fixed datum records + /// + private uint _numberOfFixedDatumRecords; + + /// + /// Number of variable datum records + /// + private uint _numberOfVariableDatumRecords; + + /// + /// variable length list of fixed datums + /// + private List _fixedDatums = new List(); + + /// + /// variable length list of variable length datums + /// + private List _variableDatums = new List(); + + /// + /// Initializes a new instance of the class. + /// + public EventReportPdu() + { + PduType = (byte)21; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(EventReportPdu left, EventReportPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(EventReportPdu left, EventReportPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 4; // this._eventType + marshalSize += 4; // this._padding1 + marshalSize += 4; // this._numberOfFixedDatumRecords + marshalSize += 4; // this._numberOfVariableDatumRecords + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + FixedDatum listElement = (FixedDatum)this._fixedDatums[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + VariableDatum listElement = (VariableDatum)this._variableDatums[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Type of event + /// + [XmlElement(Type = typeof(uint), ElementName = "eventType")] + public uint EventType + { + get + { + return this._eventType; + } + + set + { + this._eventType = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(uint), ElementName = "padding1")] + public uint Padding1 + { + get + { + return this._padding1; + } + + set + { + this._padding1 = value; + } + } + + /// + /// Gets or sets the Number of fixed datum records + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] + public uint NumberOfFixedDatumRecords + { + get + { + return this._numberOfFixedDatumRecords; + } + + set + { + this._numberOfFixedDatumRecords = value; + } + } + + /// + /// Gets or sets the Number of variable datum records + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] + public uint NumberOfVariableDatumRecords + { + get + { + return this._numberOfVariableDatumRecords; + } + + set + { + this._numberOfVariableDatumRecords = value; + } + } + + /// + /// Gets the variable length list of fixed datums + /// + [XmlElement(ElementName = "fixedDatumsList", Type = typeof(List))] + public List FixedDatums + { + get + { + return this._fixedDatums; + } + } + + /// + /// Gets the variable length list of variable length datums + /// + [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] + public List VariableDatums + { + get + { + return this._variableDatums; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._eventType); + dos.WriteUnsignedInt((uint)this._padding1); + dos.WriteUnsignedInt((uint)this._fixedDatums.Count); + dos.WriteUnsignedInt((uint)this._variableDatums.Count); + + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; + aFixedDatum.Marshal(dos); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; + aVariableDatum.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._eventType = dis.ReadUnsignedInt(); + this._padding1 = dis.ReadUnsignedInt(); + this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); + this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); + + for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) + { + FixedDatum anX = new FixedDatum(); + anX.Unmarshal(dis); + this._fixedDatums.Add(anX); + } + + for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) + { + VariableDatum anX = new VariableDatum(); + anX.Unmarshal(dis); + this._variableDatums.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._eventType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fixedDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + sb.AppendLine(""); + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; + aFixedDatum.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + sb.AppendLine(""); + VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; + aVariableDatum.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as EventReportPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(EventReportPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._eventType != obj._eventType) + { + ivarsEqual = false; + } + + if (this._padding1 != obj._padding1) + { + ivarsEqual = false; + } + + if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) + { + ivarsEqual = false; + } + + if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) + { + ivarsEqual = false; + } + + if (this._fixedDatums.Count != obj._fixedDatums.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + if (!this._fixedDatums[idx].Equals(obj._fixedDatums[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._variableDatums.Count != obj._variableDatums.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._eventType.GetHashCode(); + result = GenerateHash(result) ^ this._padding1.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); + + if (this._fixedDatums.Count > 0) + { + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + result = GenerateHash(result) ^ this._fixedDatums[idx].GetHashCode(); + } + } + + if (this._variableDatums.Count > 0) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/EventReportReliablePdu.cs b/Libs/CsharpDis6/Dis1998/Generated/EventReportReliablePdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/EventReportReliablePdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/EventReportReliablePdu.cs index e5c3f9d..3b41a92 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/EventReportReliablePdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/EventReportReliablePdu.cs @@ -1,548 +1,548 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.12.11: reports the occurance of a significatnt event to the simulation manager. Needs manual intervention to fix padding in variable datums. UNFINISHED. - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(FixedDatum))] - [XmlInclude(typeof(VariableDatum))] - public partial class EventReportReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable - { - /// - /// Event type - /// - private ushort _eventType; - - /// - /// padding - /// - private uint _pad1; - - /// - /// Fixed datum record count - /// - private uint _numberOfFixedDatumRecords; - - /// - /// variable datum record count - /// - private uint _numberOfVariableDatumRecords; - - /// - /// Fixed datum records - /// - private List _fixedDatumRecords = new List(); - - /// - /// Variable datum records - /// - private List _variableDatumRecords = new List(); - - /// - /// Initializes a new instance of the class. - /// - public EventReportReliablePdu() - { - PduType = (byte)61; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(EventReportReliablePdu left, EventReportReliablePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(EventReportReliablePdu left, EventReportReliablePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 2; // this._eventType - marshalSize += 4; // this._pad1 - marshalSize += 4; // this._numberOfFixedDatumRecords - marshalSize += 4; // this._numberOfVariableDatumRecords - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - FixedDatum listElement = (FixedDatum)this._fixedDatumRecords[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - VariableDatum listElement = (VariableDatum)this._variableDatumRecords[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Event type - /// - [XmlElement(Type = typeof(ushort), ElementName = "eventType")] - public ushort EventType - { - get - { - return this._eventType; - } - - set - { - this._eventType = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(uint), ElementName = "pad1")] - public uint Pad1 - { - get - { - return this._pad1; - } - - set - { - this._pad1 = value; - } - } - - /// - /// Gets or sets the Fixed datum record count - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] - public uint NumberOfFixedDatumRecords - { - get - { - return this._numberOfFixedDatumRecords; - } - - set - { - this._numberOfFixedDatumRecords = value; - } - } - - /// - /// Gets or sets the variable datum record count - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] - public uint NumberOfVariableDatumRecords - { - get - { - return this._numberOfVariableDatumRecords; - } - - set - { - this._numberOfVariableDatumRecords = value; - } - } - - /// - /// Gets the Fixed datum records - /// - [XmlElement(ElementName = "fixedDatumRecordsList", Type = typeof(List))] - public List FixedDatumRecords - { - get - { - return this._fixedDatumRecords; - } - } - - /// - /// Gets the Variable datum records - /// - [XmlElement(ElementName = "variableDatumRecordsList", Type = typeof(List))] - public List VariableDatumRecords - { - get - { - return this._variableDatumRecords; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._eventType); - dos.WriteUnsignedInt((uint)this._pad1); - dos.WriteUnsignedInt((uint)this._fixedDatumRecords.Count); - dos.WriteUnsignedInt((uint)this._variableDatumRecords.Count); - - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; - aFixedDatum.Marshal(dos); - } - - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; - aVariableDatum.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._eventType = dis.ReadUnsignedShort(); - this._pad1 = dis.ReadUnsignedInt(); - this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); - this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); - - for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) - { - FixedDatum anX = new FixedDatum(); - anX.Unmarshal(dis); - this._fixedDatumRecords.Add(anX); - } - - for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) - { - VariableDatum anX = new VariableDatum(); - anX.Unmarshal(dis); - this._variableDatumRecords.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._eventType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fixedDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - sb.AppendLine(""); - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; - aFixedDatum.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - sb.AppendLine(""); - VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; - aVariableDatum.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as EventReportReliablePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(EventReportReliablePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._eventType != obj._eventType) - { - ivarsEqual = false; - } - - if (this._pad1 != obj._pad1) - { - ivarsEqual = false; - } - - if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) - { - ivarsEqual = false; - } - - if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) - { - ivarsEqual = false; - } - - if (this._fixedDatumRecords.Count != obj._fixedDatumRecords.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - if (!this._fixedDatumRecords[idx].Equals(obj._fixedDatumRecords[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._variableDatumRecords.Count != obj._variableDatumRecords.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - if (!this._variableDatumRecords[idx].Equals(obj._variableDatumRecords[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._eventType.GetHashCode(); - result = GenerateHash(result) ^ this._pad1.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); - - if (this._fixedDatumRecords.Count > 0) - { - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - result = GenerateHash(result) ^ this._fixedDatumRecords[idx].GetHashCode(); - } - } - - if (this._variableDatumRecords.Count > 0) - { - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - result = GenerateHash(result) ^ this._variableDatumRecords[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.12.11: reports the occurance of a significatnt event to the simulation manager. Needs manual intervention to fix padding in variable datums. UNFINISHED. + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(FixedDatum))] + [XmlInclude(typeof(VariableDatum))] + public partial class EventReportReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable + { + /// + /// Event type + /// + private ushort _eventType; + + /// + /// padding + /// + private uint _pad1; + + /// + /// Fixed datum record count + /// + private uint _numberOfFixedDatumRecords; + + /// + /// variable datum record count + /// + private uint _numberOfVariableDatumRecords; + + /// + /// Fixed datum records + /// + private List _fixedDatumRecords = new List(); + + /// + /// Variable datum records + /// + private List _variableDatumRecords = new List(); + + /// + /// Initializes a new instance of the class. + /// + public EventReportReliablePdu() + { + PduType = (byte)61; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(EventReportReliablePdu left, EventReportReliablePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(EventReportReliablePdu left, EventReportReliablePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 2; // this._eventType + marshalSize += 4; // this._pad1 + marshalSize += 4; // this._numberOfFixedDatumRecords + marshalSize += 4; // this._numberOfVariableDatumRecords + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + FixedDatum listElement = (FixedDatum)this._fixedDatumRecords[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + VariableDatum listElement = (VariableDatum)this._variableDatumRecords[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Event type + /// + [XmlElement(Type = typeof(ushort), ElementName = "eventType")] + public ushort EventType + { + get + { + return this._eventType; + } + + set + { + this._eventType = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(uint), ElementName = "pad1")] + public uint Pad1 + { + get + { + return this._pad1; + } + + set + { + this._pad1 = value; + } + } + + /// + /// Gets or sets the Fixed datum record count + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] + public uint NumberOfFixedDatumRecords + { + get + { + return this._numberOfFixedDatumRecords; + } + + set + { + this._numberOfFixedDatumRecords = value; + } + } + + /// + /// Gets or sets the variable datum record count + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] + public uint NumberOfVariableDatumRecords + { + get + { + return this._numberOfVariableDatumRecords; + } + + set + { + this._numberOfVariableDatumRecords = value; + } + } + + /// + /// Gets the Fixed datum records + /// + [XmlElement(ElementName = "fixedDatumRecordsList", Type = typeof(List))] + public List FixedDatumRecords + { + get + { + return this._fixedDatumRecords; + } + } + + /// + /// Gets the Variable datum records + /// + [XmlElement(ElementName = "variableDatumRecordsList", Type = typeof(List))] + public List VariableDatumRecords + { + get + { + return this._variableDatumRecords; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._eventType); + dos.WriteUnsignedInt((uint)this._pad1); + dos.WriteUnsignedInt((uint)this._fixedDatumRecords.Count); + dos.WriteUnsignedInt((uint)this._variableDatumRecords.Count); + + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; + aFixedDatum.Marshal(dos); + } + + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; + aVariableDatum.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._eventType = dis.ReadUnsignedShort(); + this._pad1 = dis.ReadUnsignedInt(); + this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); + this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); + + for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) + { + FixedDatum anX = new FixedDatum(); + anX.Unmarshal(dis); + this._fixedDatumRecords.Add(anX); + } + + for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) + { + VariableDatum anX = new VariableDatum(); + anX.Unmarshal(dis); + this._variableDatumRecords.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._eventType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fixedDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + sb.AppendLine(""); + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; + aFixedDatum.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + sb.AppendLine(""); + VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; + aVariableDatum.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as EventReportReliablePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(EventReportReliablePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._eventType != obj._eventType) + { + ivarsEqual = false; + } + + if (this._pad1 != obj._pad1) + { + ivarsEqual = false; + } + + if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) + { + ivarsEqual = false; + } + + if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) + { + ivarsEqual = false; + } + + if (this._fixedDatumRecords.Count != obj._fixedDatumRecords.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + if (!this._fixedDatumRecords[idx].Equals(obj._fixedDatumRecords[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._variableDatumRecords.Count != obj._variableDatumRecords.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + if (!this._variableDatumRecords[idx].Equals(obj._variableDatumRecords[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._eventType.GetHashCode(); + result = GenerateHash(result) ^ this._pad1.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); + + if (this._fixedDatumRecords.Count > 0) + { + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + result = GenerateHash(result) ^ this._fixedDatumRecords[idx].GetHashCode(); + } + } + + if (this._variableDatumRecords.Count > 0) + { + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + result = GenerateHash(result) ^ this._variableDatumRecords[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/FastEntityStatePdu.cs b/Libs/CsharpDis6/Dis1998/Generated/FastEntityStatePdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/FastEntityStatePdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/FastEntityStatePdu.cs index 4026a64..85686b7 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/FastEntityStatePdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/FastEntityStatePdu.cs @@ -1,1639 +1,1639 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.3.1. Represents the postion and state of one entity in the world. This is identical in function to entity state pdu, but generates less garbage to collect in the Java world. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(ArticulationParameter))] - public partial class FastEntityStatePdu : EntityInformationFamilyPdu, IEquatable - { - /// - /// The site ID - /// - private ushort _site; - - /// - /// The application ID - /// - private ushort _application; - - /// - /// the entity ID - /// - private ushort _entity; - - /// - /// what force this entity is affiliated with, eg red, blue, neutral, etc - /// - private byte _forceId; - - /// - /// How many articulation parameters are in the variable length list - /// - private byte _numberOfArticulationParameters; - - /// - /// Kind of entity - /// - private byte _entityKind; - - /// - /// Domain of entity (air, surface, subsurface, space, etc) - /// - private byte _domain; - - /// - /// country to which the design of the entity is attributed - /// - private ushort _country; - - /// - /// category of entity - /// - private byte _category; - - /// - /// subcategory of entity - /// - private byte _subcategory; - - /// - /// specific info based on subcategory field - /// - private byte _specific; - - private byte _extra; - - /// - /// Kind of entity - /// - private byte _altEntityKind; - - /// - /// Domain of entity (air, surface, subsurface, space, etc) - /// - private byte _altDomain; - - /// - /// country to which the design of the entity is attributed - /// - private ushort _altCountry; - - /// - /// category of entity - /// - private byte _altCategory; - - /// - /// subcategory of entity - /// - private byte _altSubcategory; - - /// - /// specific info based on subcategory field - /// - private byte _altSpecific; - - private byte _altExtra; - - /// - /// X velo - /// - private float _xVelocity; - - /// - /// y Value - /// - private float _yVelocity; - - /// - /// Z value - /// - private float _zVelocity; - - /// - /// X value - /// - private double _xLocation; - - /// - /// y Value - /// - private double _yLocation; - - /// - /// Z value - /// - private double _zLocation; - - private float _psi; - - private float _theta; - - private float _phi; - - /// - /// a series of bit flags that are used to help draw the entity, such as smoking, on fire, etc. - /// - private int _entityAppearance; - - /// - /// enumeration of what dead reckoning algorighm to use - /// - private byte _deadReckoningAlgorithm; - - /// - /// other parameters to use in the dead reckoning algorithm - /// - private byte[] _otherParameters = new byte[15]; - - /// - /// X value - /// - private float _xAcceleration; - - /// - /// y Value - /// - private float _yAcceleration; - - /// - /// Z value - /// - private float _zAcceleration; - - /// - /// X value - /// - private float _xAngularVelocity; - - /// - /// y Value - /// - private float _yAngularVelocity; - - /// - /// Z value - /// - private float _zAngularVelocity; - - /// - /// characters that can be used for debugging, or to draw unique strings on the side of entities in the world - /// - private byte[] _marking = new byte[12]; - - /// - /// a series of bit flags - /// - private int _capabilities; - - /// - /// variable length list of articulation parameters - /// - private List _articulationParameters = new List(); - - /// - /// Initializes a new instance of the class. - /// - public FastEntityStatePdu() - { - PduType = (byte)1; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(FastEntityStatePdu left, FastEntityStatePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(FastEntityStatePdu left, FastEntityStatePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 2; // this._site - marshalSize += 2; // this._application - marshalSize += 2; // this._entity - marshalSize += 1; // this._forceId - marshalSize += 1; // this._numberOfArticulationParameters - marshalSize += 1; // this._entityKind - marshalSize += 1; // this._domain - marshalSize += 2; // this._country - marshalSize += 1; // this._category - marshalSize += 1; // this._subcategory - marshalSize += 1; // this._specific - marshalSize += 1; // this._extra - marshalSize += 1; // this._altEntityKind - marshalSize += 1; // this._altDomain - marshalSize += 2; // this._altCountry - marshalSize += 1; // this._altCategory - marshalSize += 1; // this._altSubcategory - marshalSize += 1; // this._altSpecific - marshalSize += 1; // this._altExtra - marshalSize += 4; // this._xVelocity - marshalSize += 4; // this._yVelocity - marshalSize += 4; // this._zVelocity - marshalSize += 8; // this._xLocation - marshalSize += 8; // this._yLocation - marshalSize += 8; // this._zLocation - marshalSize += 4; // this._psi - marshalSize += 4; // this._theta - marshalSize += 4; // this._phi - marshalSize += 4; // this._entityAppearance - marshalSize += 1; // this._deadReckoningAlgorithm - marshalSize += 15 * 1; // _otherParameters - marshalSize += 4; // this._xAcceleration - marshalSize += 4; // this._yAcceleration - marshalSize += 4; // this._zAcceleration - marshalSize += 4; // this._xAngularVelocity - marshalSize += 4; // this._yAngularVelocity - marshalSize += 4; // this._zAngularVelocity - marshalSize += 12 * 1; // _marking - marshalSize += 4; // this._capabilities - for (int idx = 0; idx < this._articulationParameters.Count; idx++) - { - ArticulationParameter listElement = (ArticulationParameter)this._articulationParameters[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the The site ID - /// - [XmlElement(Type = typeof(ushort), ElementName = "site")] - public ushort Site - { - get - { - return this._site; - } - - set - { - this._site = value; - } - } - - /// - /// Gets or sets the The application ID - /// - [XmlElement(Type = typeof(ushort), ElementName = "application")] - public ushort Application - { - get - { - return this._application; - } - - set - { - this._application = value; - } - } - - /// - /// Gets or sets the the entity ID - /// - [XmlElement(Type = typeof(ushort), ElementName = "entity")] - public ushort Entity - { - get - { - return this._entity; - } - - set - { - this._entity = value; - } - } - - /// - /// Gets or sets the what force this entity is affiliated with, eg red, blue, neutral, etc - /// - [XmlElement(Type = typeof(byte), ElementName = "forceId")] - public byte ForceId - { - get - { - return this._forceId; - } - - set - { - this._forceId = value; - } - } - - /// - /// Gets or sets the How many articulation parameters are in the variable length list - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfArticulationParameters method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfArticulationParameters")] - public byte NumberOfArticulationParameters - { - get - { - return this._numberOfArticulationParameters; - } - - set - { - this._numberOfArticulationParameters = value; - } - } - - /// - /// Gets or sets the Kind of entity - /// - [XmlElement(Type = typeof(byte), ElementName = "entityKind")] - public byte EntityKind - { - get - { - return this._entityKind; - } - - set - { - this._entityKind = value; - } - } - - /// - /// Gets or sets the Domain of entity (air, surface, subsurface, space, etc) - /// - [XmlElement(Type = typeof(byte), ElementName = "domain")] - public byte Domain - { - get - { - return this._domain; - } - - set - { - this._domain = value; - } - } - - /// - /// Gets or sets the country to which the design of the entity is attributed - /// - [XmlElement(Type = typeof(ushort), ElementName = "country")] - public ushort Country - { - get - { - return this._country; - } - - set - { - this._country = value; - } - } - - /// - /// Gets or sets the category of entity - /// - [XmlElement(Type = typeof(byte), ElementName = "category")] - public byte Category - { - get - { - return this._category; - } - - set - { - this._category = value; - } - } - - /// - /// Gets or sets the subcategory of entity - /// - [XmlElement(Type = typeof(byte), ElementName = "subcategory")] - public byte Subcategory - { - get - { - return this._subcategory; - } - - set - { - this._subcategory = value; - } - } - - /// - /// Gets or sets the specific info based on subcategory field - /// - [XmlElement(Type = typeof(byte), ElementName = "specific")] - public byte Specific - { - get - { - return this._specific; - } - - set - { - this._specific = value; - } - } - - /// - /// Gets or sets the extra - /// - [XmlElement(Type = typeof(byte), ElementName = "extra")] - public byte Extra - { - get - { - return this._extra; - } - - set - { - this._extra = value; - } - } - - /// - /// Gets or sets the Kind of entity - /// - [XmlElement(Type = typeof(byte), ElementName = "altEntityKind")] - public byte AltEntityKind - { - get - { - return this._altEntityKind; - } - - set - { - this._altEntityKind = value; - } - } - - /// - /// Gets or sets the Domain of entity (air, surface, subsurface, space, etc) - /// - [XmlElement(Type = typeof(byte), ElementName = "altDomain")] - public byte AltDomain - { - get - { - return this._altDomain; - } - - set - { - this._altDomain = value; - } - } - - /// - /// Gets or sets the country to which the design of the entity is attributed - /// - [XmlElement(Type = typeof(ushort), ElementName = "altCountry")] - public ushort AltCountry - { - get - { - return this._altCountry; - } - - set - { - this._altCountry = value; - } - } - - /// - /// Gets or sets the category of entity - /// - [XmlElement(Type = typeof(byte), ElementName = "altCategory")] - public byte AltCategory - { - get - { - return this._altCategory; - } - - set - { - this._altCategory = value; - } - } - - /// - /// Gets or sets the subcategory of entity - /// - [XmlElement(Type = typeof(byte), ElementName = "altSubcategory")] - public byte AltSubcategory - { - get - { - return this._altSubcategory; - } - - set - { - this._altSubcategory = value; - } - } - - /// - /// Gets or sets the specific info based on subcategory field - /// - [XmlElement(Type = typeof(byte), ElementName = "altSpecific")] - public byte AltSpecific - { - get - { - return this._altSpecific; - } - - set - { - this._altSpecific = value; - } - } - - /// - /// Gets or sets the altExtra - /// - [XmlElement(Type = typeof(byte), ElementName = "altExtra")] - public byte AltExtra - { - get - { - return this._altExtra; - } - - set - { - this._altExtra = value; - } - } - - /// - /// Gets or sets the X velo - /// - [XmlElement(Type = typeof(float), ElementName = "xVelocity")] - public float XVelocity - { - get - { - return this._xVelocity; - } - - set - { - this._xVelocity = value; - } - } - - /// - /// Gets or sets the y Value - /// - [XmlElement(Type = typeof(float), ElementName = "yVelocity")] - public float YVelocity - { - get - { - return this._yVelocity; - } - - set - { - this._yVelocity = value; - } - } - - /// - /// Gets or sets the Z value - /// - [XmlElement(Type = typeof(float), ElementName = "zVelocity")] - public float ZVelocity - { - get - { - return this._zVelocity; - } - - set - { - this._zVelocity = value; - } - } - - /// - /// Gets or sets the X value - /// - [XmlElement(Type = typeof(double), ElementName = "xLocation")] - public double XLocation - { - get - { - return this._xLocation; - } - - set - { - this._xLocation = value; - } - } - - /// - /// Gets or sets the y Value - /// - [XmlElement(Type = typeof(double), ElementName = "yLocation")] - public double YLocation - { - get - { - return this._yLocation; - } - - set - { - this._yLocation = value; - } - } - - /// - /// Gets or sets the Z value - /// - [XmlElement(Type = typeof(double), ElementName = "zLocation")] - public double ZLocation - { - get - { - return this._zLocation; - } - - set - { - this._zLocation = value; - } - } - - /// - /// Gets or sets the psi - /// - [XmlElement(Type = typeof(float), ElementName = "psi")] - public float Psi - { - get - { - return this._psi; - } - - set - { - this._psi = value; - } - } - - /// - /// Gets or sets the theta - /// - [XmlElement(Type = typeof(float), ElementName = "theta")] - public float Theta - { - get - { - return this._theta; - } - - set - { - this._theta = value; - } - } - - /// - /// Gets or sets the phi - /// - [XmlElement(Type = typeof(float), ElementName = "phi")] - public float Phi - { - get - { - return this._phi; - } - - set - { - this._phi = value; - } - } - - /// - /// Gets or sets the a series of bit flags that are used to help draw the entity, such as smoking, on fire, etc. - /// - [XmlElement(Type = typeof(int), ElementName = "entityAppearance")] - public int EntityAppearance - { - get - { - return this._entityAppearance; - } - - set - { - this._entityAppearance = value; - } - } - - /// - /// Gets or sets the enumeration of what dead reckoning algorighm to use - /// - [XmlElement(Type = typeof(byte), ElementName = "deadReckoningAlgorithm")] - public byte DeadReckoningAlgorithm - { - get - { - return this._deadReckoningAlgorithm; - } - - set - { - this._deadReckoningAlgorithm = value; - } - } - - /// - /// Gets or sets the other parameters to use in the dead reckoning algorithm - /// - [XmlArray(ElementName = "otherParameters")] - public byte[] OtherParameters - { - get - { - return this._otherParameters; - } - - set - { - this._otherParameters = value; - } -} - - /// - /// Gets or sets the X value - /// - [XmlElement(Type = typeof(float), ElementName = "xAcceleration")] - public float XAcceleration - { - get - { - return this._xAcceleration; - } - - set - { - this._xAcceleration = value; - } - } - - /// - /// Gets or sets the y Value - /// - [XmlElement(Type = typeof(float), ElementName = "yAcceleration")] - public float YAcceleration - { - get - { - return this._yAcceleration; - } - - set - { - this._yAcceleration = value; - } - } - - /// - /// Gets or sets the Z value - /// - [XmlElement(Type = typeof(float), ElementName = "zAcceleration")] - public float ZAcceleration - { - get - { - return this._zAcceleration; - } - - set - { - this._zAcceleration = value; - } - } - - /// - /// Gets or sets the X value - /// - [XmlElement(Type = typeof(float), ElementName = "xAngularVelocity")] - public float XAngularVelocity - { - get - { - return this._xAngularVelocity; - } - - set - { - this._xAngularVelocity = value; - } - } - - /// - /// Gets or sets the y Value - /// - [XmlElement(Type = typeof(float), ElementName = "yAngularVelocity")] - public float YAngularVelocity - { - get - { - return this._yAngularVelocity; - } - - set - { - this._yAngularVelocity = value; - } - } - - /// - /// Gets or sets the Z value - /// - [XmlElement(Type = typeof(float), ElementName = "zAngularVelocity")] - public float ZAngularVelocity - { - get - { - return this._zAngularVelocity; - } - - set - { - this._zAngularVelocity = value; - } - } - - /// - /// Gets or sets the characters that can be used for debugging, or to draw unique strings on the side of entities in the world - /// - [XmlArray(ElementName = "marking")] - public byte[] Marking - { - get - { - return this._marking; - } - - set - { - this._marking = value; - } -} - - /// - /// Gets or sets the a series of bit flags - /// - [XmlElement(Type = typeof(int), ElementName = "capabilities")] - public int Capabilities - { - get - { - return this._capabilities; - } - - set - { - this._capabilities = value; - } - } - - /// - /// Gets the variable length list of articulation parameters - /// - [XmlElement(ElementName = "articulationParametersList", Type = typeof(List))] - public List ArticulationParameters - { - get - { - return this._articulationParameters; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._site); - dos.WriteUnsignedShort((ushort)this._application); - dos.WriteUnsignedShort((ushort)this._entity); - dos.WriteUnsignedByte((byte)this._forceId); - dos.WriteByte((byte)this._articulationParameters.Count); - dos.WriteUnsignedByte((byte)this._entityKind); - dos.WriteUnsignedByte((byte)this._domain); - dos.WriteUnsignedShort((ushort)this._country); - dos.WriteUnsignedByte((byte)this._category); - dos.WriteUnsignedByte((byte)this._subcategory); - dos.WriteUnsignedByte((byte)this._specific); - dos.WriteUnsignedByte((byte)this._extra); - dos.WriteUnsignedByte((byte)this._altEntityKind); - dos.WriteUnsignedByte((byte)this._altDomain); - dos.WriteUnsignedShort((ushort)this._altCountry); - dos.WriteUnsignedByte((byte)this._altCategory); - dos.WriteUnsignedByte((byte)this._altSubcategory); - dos.WriteUnsignedByte((byte)this._altSpecific); - dos.WriteUnsignedByte((byte)this._altExtra); - dos.WriteFloat((float)this._xVelocity); - dos.WriteFloat((float)this._yVelocity); - dos.WriteFloat((float)this._zVelocity); - dos.WriteDouble((double)this._xLocation); - dos.WriteDouble((double)this._yLocation); - dos.WriteDouble((double)this._zLocation); - dos.WriteFloat((float)this._psi); - dos.WriteFloat((float)this._theta); - dos.WriteFloat((float)this._phi); - dos.WriteInt((int)this._entityAppearance); - dos.WriteUnsignedByte((byte)this._deadReckoningAlgorithm); - - for (int idx = 0; idx < this._otherParameters.Length; idx++) - { - dos.WriteByte(this._otherParameters[idx]); - } - - dos.WriteFloat((float)this._xAcceleration); - dos.WriteFloat((float)this._yAcceleration); - dos.WriteFloat((float)this._zAcceleration); - dos.WriteFloat((float)this._xAngularVelocity); - dos.WriteFloat((float)this._yAngularVelocity); - dos.WriteFloat((float)this._zAngularVelocity); - - for (int idx = 0; idx < this._marking.Length; idx++) - { - dos.WriteByte(this._marking[idx]); - } - - dos.WriteInt((int)this._capabilities); - - for (int idx = 0; idx < this._articulationParameters.Count; idx++) - { - ArticulationParameter aArticulationParameter = (ArticulationParameter)this._articulationParameters[idx]; - aArticulationParameter.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._site = dis.ReadUnsignedShort(); - this._application = dis.ReadUnsignedShort(); - this._entity = dis.ReadUnsignedShort(); - this._forceId = dis.ReadUnsignedByte(); - this._numberOfArticulationParameters = dis.ReadByte(); - this._entityKind = dis.ReadUnsignedByte(); - this._domain = dis.ReadUnsignedByte(); - this._country = dis.ReadUnsignedShort(); - this._category = dis.ReadUnsignedByte(); - this._subcategory = dis.ReadUnsignedByte(); - this._specific = dis.ReadUnsignedByte(); - this._extra = dis.ReadUnsignedByte(); - this._altEntityKind = dis.ReadUnsignedByte(); - this._altDomain = dis.ReadUnsignedByte(); - this._altCountry = dis.ReadUnsignedShort(); - this._altCategory = dis.ReadUnsignedByte(); - this._altSubcategory = dis.ReadUnsignedByte(); - this._altSpecific = dis.ReadUnsignedByte(); - this._altExtra = dis.ReadUnsignedByte(); - this._xVelocity = dis.ReadFloat(); - this._yVelocity = dis.ReadFloat(); - this._zVelocity = dis.ReadFloat(); - this._xLocation = dis.ReadDouble(); - this._yLocation = dis.ReadDouble(); - this._zLocation = dis.ReadDouble(); - this._psi = dis.ReadFloat(); - this._theta = dis.ReadFloat(); - this._phi = dis.ReadFloat(); - this._entityAppearance = dis.ReadInt(); - this._deadReckoningAlgorithm = dis.ReadUnsignedByte(); - - for (int idx = 0; idx < this._otherParameters.Length; idx++) - { - this._otherParameters[idx] = dis.ReadByte(); - } - - this._xAcceleration = dis.ReadFloat(); - this._yAcceleration = dis.ReadFloat(); - this._zAcceleration = dis.ReadFloat(); - this._xAngularVelocity = dis.ReadFloat(); - this._yAngularVelocity = dis.ReadFloat(); - this._zAngularVelocity = dis.ReadFloat(); - - for (int idx = 0; idx < this._marking.Length; idx++) - { - this._marking[idx] = dis.ReadByte(); - } - - this._capabilities = dis.ReadInt(); - - for (int idx = 0; idx < this.NumberOfArticulationParameters; idx++) - { - ArticulationParameter anX = new ArticulationParameter(); - anX.Unmarshal(dis); - this._articulationParameters.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._site.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._application.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._entity.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._forceId.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._articulationParameters.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._entityKind.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._domain.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._country.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._category.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._subcategory.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._specific.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._extra.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._altEntityKind.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._altDomain.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._altCountry.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._altCategory.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._altSubcategory.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._altSpecific.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._altExtra.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._xVelocity.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._yVelocity.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._zVelocity.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._xLocation.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._yLocation.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._zLocation.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._psi.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._theta.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._phi.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._entityAppearance.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._deadReckoningAlgorithm.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._otherParameters.Length; idx++) - { - sb.AppendLine("" + this._otherParameters[idx] + ""); - } - - sb.AppendLine("" + this._xAcceleration.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._yAcceleration.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._zAcceleration.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._xAngularVelocity.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._yAngularVelocity.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._zAngularVelocity.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._marking.Length; idx++) - { - sb.AppendLine("" + this._marking[idx] + ""); - } - - sb.AppendLine("" + this._capabilities.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._articulationParameters.Count; idx++) - { - sb.AppendLine(""); - ArticulationParameter aArticulationParameter = (ArticulationParameter)this._articulationParameters[idx]; - aArticulationParameter.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as FastEntityStatePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(FastEntityStatePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._site != obj._site) - { - ivarsEqual = false; - } - - if (this._application != obj._application) - { - ivarsEqual = false; - } - - if (this._entity != obj._entity) - { - ivarsEqual = false; - } - - if (this._forceId != obj._forceId) - { - ivarsEqual = false; - } - - if (this._numberOfArticulationParameters != obj._numberOfArticulationParameters) - { - ivarsEqual = false; - } - - if (this._entityKind != obj._entityKind) - { - ivarsEqual = false; - } - - if (this._domain != obj._domain) - { - ivarsEqual = false; - } - - if (this._country != obj._country) - { - ivarsEqual = false; - } - - if (this._category != obj._category) - { - ivarsEqual = false; - } - - if (this._subcategory != obj._subcategory) - { - ivarsEqual = false; - } - - if (this._specific != obj._specific) - { - ivarsEqual = false; - } - - if (this._extra != obj._extra) - { - ivarsEqual = false; - } - - if (this._altEntityKind != obj._altEntityKind) - { - ivarsEqual = false; - } - - if (this._altDomain != obj._altDomain) - { - ivarsEqual = false; - } - - if (this._altCountry != obj._altCountry) - { - ivarsEqual = false; - } - - if (this._altCategory != obj._altCategory) - { - ivarsEqual = false; - } - - if (this._altSubcategory != obj._altSubcategory) - { - ivarsEqual = false; - } - - if (this._altSpecific != obj._altSpecific) - { - ivarsEqual = false; - } - - if (this._altExtra != obj._altExtra) - { - ivarsEqual = false; - } - - if (this._xVelocity != obj._xVelocity) - { - ivarsEqual = false; - } - - if (this._yVelocity != obj._yVelocity) - { - ivarsEqual = false; - } - - if (this._zVelocity != obj._zVelocity) - { - ivarsEqual = false; - } - - if (this._xLocation != obj._xLocation) - { - ivarsEqual = false; - } - - if (this._yLocation != obj._yLocation) - { - ivarsEqual = false; - } - - if (this._zLocation != obj._zLocation) - { - ivarsEqual = false; - } - - if (this._psi != obj._psi) - { - ivarsEqual = false; - } - - if (this._theta != obj._theta) - { - ivarsEqual = false; - } - - if (this._phi != obj._phi) - { - ivarsEqual = false; - } - - if (this._entityAppearance != obj._entityAppearance) - { - ivarsEqual = false; - } - - if (this._deadReckoningAlgorithm != obj._deadReckoningAlgorithm) - { - ivarsEqual = false; - } - - if (obj._otherParameters.Length != 15) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < 15; idx++) - { - if (this._otherParameters[idx] != obj._otherParameters[idx]) - { - ivarsEqual = false; - } - } - } - - if (this._xAcceleration != obj._xAcceleration) - { - ivarsEqual = false; - } - - if (this._yAcceleration != obj._yAcceleration) - { - ivarsEqual = false; - } - - if (this._zAcceleration != obj._zAcceleration) - { - ivarsEqual = false; - } - - if (this._xAngularVelocity != obj._xAngularVelocity) - { - ivarsEqual = false; - } - - if (this._yAngularVelocity != obj._yAngularVelocity) - { - ivarsEqual = false; - } - - if (this._zAngularVelocity != obj._zAngularVelocity) - { - ivarsEqual = false; - } - - if (obj._marking.Length != 12) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < 12; idx++) - { - if (this._marking[idx] != obj._marking[idx]) - { - ivarsEqual = false; - } - } - } - - if (this._capabilities != obj._capabilities) - { - ivarsEqual = false; - } - - if (this._articulationParameters.Count != obj._articulationParameters.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._articulationParameters.Count; idx++) - { - if (!this._articulationParameters[idx].Equals(obj._articulationParameters[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._site.GetHashCode(); - result = GenerateHash(result) ^ this._application.GetHashCode(); - result = GenerateHash(result) ^ this._entity.GetHashCode(); - result = GenerateHash(result) ^ this._forceId.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfArticulationParameters.GetHashCode(); - result = GenerateHash(result) ^ this._entityKind.GetHashCode(); - result = GenerateHash(result) ^ this._domain.GetHashCode(); - result = GenerateHash(result) ^ this._country.GetHashCode(); - result = GenerateHash(result) ^ this._category.GetHashCode(); - result = GenerateHash(result) ^ this._subcategory.GetHashCode(); - result = GenerateHash(result) ^ this._specific.GetHashCode(); - result = GenerateHash(result) ^ this._extra.GetHashCode(); - result = GenerateHash(result) ^ this._altEntityKind.GetHashCode(); - result = GenerateHash(result) ^ this._altDomain.GetHashCode(); - result = GenerateHash(result) ^ this._altCountry.GetHashCode(); - result = GenerateHash(result) ^ this._altCategory.GetHashCode(); - result = GenerateHash(result) ^ this._altSubcategory.GetHashCode(); - result = GenerateHash(result) ^ this._altSpecific.GetHashCode(); - result = GenerateHash(result) ^ this._altExtra.GetHashCode(); - result = GenerateHash(result) ^ this._xVelocity.GetHashCode(); - result = GenerateHash(result) ^ this._yVelocity.GetHashCode(); - result = GenerateHash(result) ^ this._zVelocity.GetHashCode(); - result = GenerateHash(result) ^ this._xLocation.GetHashCode(); - result = GenerateHash(result) ^ this._yLocation.GetHashCode(); - result = GenerateHash(result) ^ this._zLocation.GetHashCode(); - result = GenerateHash(result) ^ this._psi.GetHashCode(); - result = GenerateHash(result) ^ this._theta.GetHashCode(); - result = GenerateHash(result) ^ this._phi.GetHashCode(); - result = GenerateHash(result) ^ this._entityAppearance.GetHashCode(); - result = GenerateHash(result) ^ this._deadReckoningAlgorithm.GetHashCode(); - - for (int idx = 0; idx < 15; idx++) - { - result = GenerateHash(result) ^ this._otherParameters[idx].GetHashCode(); - } - - result = GenerateHash(result) ^ this._xAcceleration.GetHashCode(); - result = GenerateHash(result) ^ this._yAcceleration.GetHashCode(); - result = GenerateHash(result) ^ this._zAcceleration.GetHashCode(); - result = GenerateHash(result) ^ this._xAngularVelocity.GetHashCode(); - result = GenerateHash(result) ^ this._yAngularVelocity.GetHashCode(); - result = GenerateHash(result) ^ this._zAngularVelocity.GetHashCode(); - - for (int idx = 0; idx < 12; idx++) - { - result = GenerateHash(result) ^ this._marking[idx].GetHashCode(); - } - - result = GenerateHash(result) ^ this._capabilities.GetHashCode(); - - if (this._articulationParameters.Count > 0) - { - for (int idx = 0; idx < this._articulationParameters.Count; idx++) - { - result = GenerateHash(result) ^ this._articulationParameters[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.3.1. Represents the postion and state of one entity in the world. This is identical in function to entity state pdu, but generates less garbage to collect in the Java world. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(ArticulationParameter))] + public partial class FastEntityStatePdu : EntityInformationFamilyPdu, IEquatable + { + /// + /// The site ID + /// + private ushort _site; + + /// + /// The application ID + /// + private ushort _application; + + /// + /// the entity ID + /// + private ushort _entity; + + /// + /// what force this entity is affiliated with, eg red, blue, neutral, etc + /// + private byte _forceId; + + /// + /// How many articulation parameters are in the variable length list + /// + private byte _numberOfArticulationParameters; + + /// + /// Kind of entity + /// + private byte _entityKind; + + /// + /// Domain of entity (air, surface, subsurface, space, etc) + /// + private byte _domain; + + /// + /// country to which the design of the entity is attributed + /// + private ushort _country; + + /// + /// category of entity + /// + private byte _category; + + /// + /// subcategory of entity + /// + private byte _subcategory; + + /// + /// specific info based on subcategory field + /// + private byte _specific; + + private byte _extra; + + /// + /// Kind of entity + /// + private byte _altEntityKind; + + /// + /// Domain of entity (air, surface, subsurface, space, etc) + /// + private byte _altDomain; + + /// + /// country to which the design of the entity is attributed + /// + private ushort _altCountry; + + /// + /// category of entity + /// + private byte _altCategory; + + /// + /// subcategory of entity + /// + private byte _altSubcategory; + + /// + /// specific info based on subcategory field + /// + private byte _altSpecific; + + private byte _altExtra; + + /// + /// X velo + /// + private float _xVelocity; + + /// + /// y Value + /// + private float _yVelocity; + + /// + /// Z value + /// + private float _zVelocity; + + /// + /// X value + /// + private double _xLocation; + + /// + /// y Value + /// + private double _yLocation; + + /// + /// Z value + /// + private double _zLocation; + + private float _psi; + + private float _theta; + + private float _phi; + + /// + /// a series of bit flags that are used to help draw the entity, such as smoking, on fire, etc. + /// + private int _entityAppearance; + + /// + /// enumeration of what dead reckoning algorighm to use + /// + private byte _deadReckoningAlgorithm; + + /// + /// other parameters to use in the dead reckoning algorithm + /// + private byte[] _otherParameters = new byte[15]; + + /// + /// X value + /// + private float _xAcceleration; + + /// + /// y Value + /// + private float _yAcceleration; + + /// + /// Z value + /// + private float _zAcceleration; + + /// + /// X value + /// + private float _xAngularVelocity; + + /// + /// y Value + /// + private float _yAngularVelocity; + + /// + /// Z value + /// + private float _zAngularVelocity; + + /// + /// characters that can be used for debugging, or to draw unique strings on the side of entities in the world + /// + private byte[] _marking = new byte[12]; + + /// + /// a series of bit flags + /// + private int _capabilities; + + /// + /// variable length list of articulation parameters + /// + private List _articulationParameters = new List(); + + /// + /// Initializes a new instance of the class. + /// + public FastEntityStatePdu() + { + PduType = (byte)1; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(FastEntityStatePdu left, FastEntityStatePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(FastEntityStatePdu left, FastEntityStatePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 2; // this._site + marshalSize += 2; // this._application + marshalSize += 2; // this._entity + marshalSize += 1; // this._forceId + marshalSize += 1; // this._numberOfArticulationParameters + marshalSize += 1; // this._entityKind + marshalSize += 1; // this._domain + marshalSize += 2; // this._country + marshalSize += 1; // this._category + marshalSize += 1; // this._subcategory + marshalSize += 1; // this._specific + marshalSize += 1; // this._extra + marshalSize += 1; // this._altEntityKind + marshalSize += 1; // this._altDomain + marshalSize += 2; // this._altCountry + marshalSize += 1; // this._altCategory + marshalSize += 1; // this._altSubcategory + marshalSize += 1; // this._altSpecific + marshalSize += 1; // this._altExtra + marshalSize += 4; // this._xVelocity + marshalSize += 4; // this._yVelocity + marshalSize += 4; // this._zVelocity + marshalSize += 8; // this._xLocation + marshalSize += 8; // this._yLocation + marshalSize += 8; // this._zLocation + marshalSize += 4; // this._psi + marshalSize += 4; // this._theta + marshalSize += 4; // this._phi + marshalSize += 4; // this._entityAppearance + marshalSize += 1; // this._deadReckoningAlgorithm + marshalSize += 15 * 1; // _otherParameters + marshalSize += 4; // this._xAcceleration + marshalSize += 4; // this._yAcceleration + marshalSize += 4; // this._zAcceleration + marshalSize += 4; // this._xAngularVelocity + marshalSize += 4; // this._yAngularVelocity + marshalSize += 4; // this._zAngularVelocity + marshalSize += 12 * 1; // _marking + marshalSize += 4; // this._capabilities + for (int idx = 0; idx < this._articulationParameters.Count; idx++) + { + ArticulationParameter listElement = (ArticulationParameter)this._articulationParameters[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the The site ID + /// + [XmlElement(Type = typeof(ushort), ElementName = "site")] + public ushort Site + { + get + { + return this._site; + } + + set + { + this._site = value; + } + } + + /// + /// Gets or sets the The application ID + /// + [XmlElement(Type = typeof(ushort), ElementName = "application")] + public ushort Application + { + get + { + return this._application; + } + + set + { + this._application = value; + } + } + + /// + /// Gets or sets the the entity ID + /// + [XmlElement(Type = typeof(ushort), ElementName = "entity")] + public ushort Entity + { + get + { + return this._entity; + } + + set + { + this._entity = value; + } + } + + /// + /// Gets or sets the what force this entity is affiliated with, eg red, blue, neutral, etc + /// + [XmlElement(Type = typeof(byte), ElementName = "forceId")] + public byte ForceId + { + get + { + return this._forceId; + } + + set + { + this._forceId = value; + } + } + + /// + /// Gets or sets the How many articulation parameters are in the variable length list + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfArticulationParameters method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfArticulationParameters")] + public byte NumberOfArticulationParameters + { + get + { + return this._numberOfArticulationParameters; + } + + set + { + this._numberOfArticulationParameters = value; + } + } + + /// + /// Gets or sets the Kind of entity + /// + [XmlElement(Type = typeof(byte), ElementName = "entityKind")] + public byte EntityKind + { + get + { + return this._entityKind; + } + + set + { + this._entityKind = value; + } + } + + /// + /// Gets or sets the Domain of entity (air, surface, subsurface, space, etc) + /// + [XmlElement(Type = typeof(byte), ElementName = "domain")] + public byte Domain + { + get + { + return this._domain; + } + + set + { + this._domain = value; + } + } + + /// + /// Gets or sets the country to which the design of the entity is attributed + /// + [XmlElement(Type = typeof(ushort), ElementName = "country")] + public ushort Country + { + get + { + return this._country; + } + + set + { + this._country = value; + } + } + + /// + /// Gets or sets the category of entity + /// + [XmlElement(Type = typeof(byte), ElementName = "category")] + public byte Category + { + get + { + return this._category; + } + + set + { + this._category = value; + } + } + + /// + /// Gets or sets the subcategory of entity + /// + [XmlElement(Type = typeof(byte), ElementName = "subcategory")] + public byte Subcategory + { + get + { + return this._subcategory; + } + + set + { + this._subcategory = value; + } + } + + /// + /// Gets or sets the specific info based on subcategory field + /// + [XmlElement(Type = typeof(byte), ElementName = "specific")] + public byte Specific + { + get + { + return this._specific; + } + + set + { + this._specific = value; + } + } + + /// + /// Gets or sets the extra + /// + [XmlElement(Type = typeof(byte), ElementName = "extra")] + public byte Extra + { + get + { + return this._extra; + } + + set + { + this._extra = value; + } + } + + /// + /// Gets or sets the Kind of entity + /// + [XmlElement(Type = typeof(byte), ElementName = "altEntityKind")] + public byte AltEntityKind + { + get + { + return this._altEntityKind; + } + + set + { + this._altEntityKind = value; + } + } + + /// + /// Gets or sets the Domain of entity (air, surface, subsurface, space, etc) + /// + [XmlElement(Type = typeof(byte), ElementName = "altDomain")] + public byte AltDomain + { + get + { + return this._altDomain; + } + + set + { + this._altDomain = value; + } + } + + /// + /// Gets or sets the country to which the design of the entity is attributed + /// + [XmlElement(Type = typeof(ushort), ElementName = "altCountry")] + public ushort AltCountry + { + get + { + return this._altCountry; + } + + set + { + this._altCountry = value; + } + } + + /// + /// Gets or sets the category of entity + /// + [XmlElement(Type = typeof(byte), ElementName = "altCategory")] + public byte AltCategory + { + get + { + return this._altCategory; + } + + set + { + this._altCategory = value; + } + } + + /// + /// Gets or sets the subcategory of entity + /// + [XmlElement(Type = typeof(byte), ElementName = "altSubcategory")] + public byte AltSubcategory + { + get + { + return this._altSubcategory; + } + + set + { + this._altSubcategory = value; + } + } + + /// + /// Gets or sets the specific info based on subcategory field + /// + [XmlElement(Type = typeof(byte), ElementName = "altSpecific")] + public byte AltSpecific + { + get + { + return this._altSpecific; + } + + set + { + this._altSpecific = value; + } + } + + /// + /// Gets or sets the altExtra + /// + [XmlElement(Type = typeof(byte), ElementName = "altExtra")] + public byte AltExtra + { + get + { + return this._altExtra; + } + + set + { + this._altExtra = value; + } + } + + /// + /// Gets or sets the X velo + /// + [XmlElement(Type = typeof(float), ElementName = "xVelocity")] + public float XVelocity + { + get + { + return this._xVelocity; + } + + set + { + this._xVelocity = value; + } + } + + /// + /// Gets or sets the y Value + /// + [XmlElement(Type = typeof(float), ElementName = "yVelocity")] + public float YVelocity + { + get + { + return this._yVelocity; + } + + set + { + this._yVelocity = value; + } + } + + /// + /// Gets or sets the Z value + /// + [XmlElement(Type = typeof(float), ElementName = "zVelocity")] + public float ZVelocity + { + get + { + return this._zVelocity; + } + + set + { + this._zVelocity = value; + } + } + + /// + /// Gets or sets the X value + /// + [XmlElement(Type = typeof(double), ElementName = "xLocation")] + public double XLocation + { + get + { + return this._xLocation; + } + + set + { + this._xLocation = value; + } + } + + /// + /// Gets or sets the y Value + /// + [XmlElement(Type = typeof(double), ElementName = "yLocation")] + public double YLocation + { + get + { + return this._yLocation; + } + + set + { + this._yLocation = value; + } + } + + /// + /// Gets or sets the Z value + /// + [XmlElement(Type = typeof(double), ElementName = "zLocation")] + public double ZLocation + { + get + { + return this._zLocation; + } + + set + { + this._zLocation = value; + } + } + + /// + /// Gets or sets the psi + /// + [XmlElement(Type = typeof(float), ElementName = "psi")] + public float Psi + { + get + { + return this._psi; + } + + set + { + this._psi = value; + } + } + + /// + /// Gets or sets the theta + /// + [XmlElement(Type = typeof(float), ElementName = "theta")] + public float Theta + { + get + { + return this._theta; + } + + set + { + this._theta = value; + } + } + + /// + /// Gets or sets the phi + /// + [XmlElement(Type = typeof(float), ElementName = "phi")] + public float Phi + { + get + { + return this._phi; + } + + set + { + this._phi = value; + } + } + + /// + /// Gets or sets the a series of bit flags that are used to help draw the entity, such as smoking, on fire, etc. + /// + [XmlElement(Type = typeof(int), ElementName = "entityAppearance")] + public int EntityAppearance + { + get + { + return this._entityAppearance; + } + + set + { + this._entityAppearance = value; + } + } + + /// + /// Gets or sets the enumeration of what dead reckoning algorighm to use + /// + [XmlElement(Type = typeof(byte), ElementName = "deadReckoningAlgorithm")] + public byte DeadReckoningAlgorithm + { + get + { + return this._deadReckoningAlgorithm; + } + + set + { + this._deadReckoningAlgorithm = value; + } + } + + /// + /// Gets or sets the other parameters to use in the dead reckoning algorithm + /// + [XmlArray(ElementName = "otherParameters")] + public byte[] OtherParameters + { + get + { + return this._otherParameters; + } + + set + { + this._otherParameters = value; + } +} + + /// + /// Gets or sets the X value + /// + [XmlElement(Type = typeof(float), ElementName = "xAcceleration")] + public float XAcceleration + { + get + { + return this._xAcceleration; + } + + set + { + this._xAcceleration = value; + } + } + + /// + /// Gets or sets the y Value + /// + [XmlElement(Type = typeof(float), ElementName = "yAcceleration")] + public float YAcceleration + { + get + { + return this._yAcceleration; + } + + set + { + this._yAcceleration = value; + } + } + + /// + /// Gets or sets the Z value + /// + [XmlElement(Type = typeof(float), ElementName = "zAcceleration")] + public float ZAcceleration + { + get + { + return this._zAcceleration; + } + + set + { + this._zAcceleration = value; + } + } + + /// + /// Gets or sets the X value + /// + [XmlElement(Type = typeof(float), ElementName = "xAngularVelocity")] + public float XAngularVelocity + { + get + { + return this._xAngularVelocity; + } + + set + { + this._xAngularVelocity = value; + } + } + + /// + /// Gets or sets the y Value + /// + [XmlElement(Type = typeof(float), ElementName = "yAngularVelocity")] + public float YAngularVelocity + { + get + { + return this._yAngularVelocity; + } + + set + { + this._yAngularVelocity = value; + } + } + + /// + /// Gets or sets the Z value + /// + [XmlElement(Type = typeof(float), ElementName = "zAngularVelocity")] + public float ZAngularVelocity + { + get + { + return this._zAngularVelocity; + } + + set + { + this._zAngularVelocity = value; + } + } + + /// + /// Gets or sets the characters that can be used for debugging, or to draw unique strings on the side of entities in the world + /// + [XmlArray(ElementName = "marking")] + public byte[] Marking + { + get + { + return this._marking; + } + + set + { + this._marking = value; + } +} + + /// + /// Gets or sets the a series of bit flags + /// + [XmlElement(Type = typeof(int), ElementName = "capabilities")] + public int Capabilities + { + get + { + return this._capabilities; + } + + set + { + this._capabilities = value; + } + } + + /// + /// Gets the variable length list of articulation parameters + /// + [XmlElement(ElementName = "articulationParametersList", Type = typeof(List))] + public List ArticulationParameters + { + get + { + return this._articulationParameters; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._site); + dos.WriteUnsignedShort((ushort)this._application); + dos.WriteUnsignedShort((ushort)this._entity); + dos.WriteUnsignedByte((byte)this._forceId); + dos.WriteByte((byte)this._articulationParameters.Count); + dos.WriteUnsignedByte((byte)this._entityKind); + dos.WriteUnsignedByte((byte)this._domain); + dos.WriteUnsignedShort((ushort)this._country); + dos.WriteUnsignedByte((byte)this._category); + dos.WriteUnsignedByte((byte)this._subcategory); + dos.WriteUnsignedByte((byte)this._specific); + dos.WriteUnsignedByte((byte)this._extra); + dos.WriteUnsignedByte((byte)this._altEntityKind); + dos.WriteUnsignedByte((byte)this._altDomain); + dos.WriteUnsignedShort((ushort)this._altCountry); + dos.WriteUnsignedByte((byte)this._altCategory); + dos.WriteUnsignedByte((byte)this._altSubcategory); + dos.WriteUnsignedByte((byte)this._altSpecific); + dos.WriteUnsignedByte((byte)this._altExtra); + dos.WriteFloat((float)this._xVelocity); + dos.WriteFloat((float)this._yVelocity); + dos.WriteFloat((float)this._zVelocity); + dos.WriteDouble((double)this._xLocation); + dos.WriteDouble((double)this._yLocation); + dos.WriteDouble((double)this._zLocation); + dos.WriteFloat((float)this._psi); + dos.WriteFloat((float)this._theta); + dos.WriteFloat((float)this._phi); + dos.WriteInt((int)this._entityAppearance); + dos.WriteUnsignedByte((byte)this._deadReckoningAlgorithm); + + for (int idx = 0; idx < this._otherParameters.Length; idx++) + { + dos.WriteByte(this._otherParameters[idx]); + } + + dos.WriteFloat((float)this._xAcceleration); + dos.WriteFloat((float)this._yAcceleration); + dos.WriteFloat((float)this._zAcceleration); + dos.WriteFloat((float)this._xAngularVelocity); + dos.WriteFloat((float)this._yAngularVelocity); + dos.WriteFloat((float)this._zAngularVelocity); + + for (int idx = 0; idx < this._marking.Length; idx++) + { + dos.WriteByte(this._marking[idx]); + } + + dos.WriteInt((int)this._capabilities); + + for (int idx = 0; idx < this._articulationParameters.Count; idx++) + { + ArticulationParameter aArticulationParameter = (ArticulationParameter)this._articulationParameters[idx]; + aArticulationParameter.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._site = dis.ReadUnsignedShort(); + this._application = dis.ReadUnsignedShort(); + this._entity = dis.ReadUnsignedShort(); + this._forceId = dis.ReadUnsignedByte(); + this._numberOfArticulationParameters = dis.ReadByte(); + this._entityKind = dis.ReadUnsignedByte(); + this._domain = dis.ReadUnsignedByte(); + this._country = dis.ReadUnsignedShort(); + this._category = dis.ReadUnsignedByte(); + this._subcategory = dis.ReadUnsignedByte(); + this._specific = dis.ReadUnsignedByte(); + this._extra = dis.ReadUnsignedByte(); + this._altEntityKind = dis.ReadUnsignedByte(); + this._altDomain = dis.ReadUnsignedByte(); + this._altCountry = dis.ReadUnsignedShort(); + this._altCategory = dis.ReadUnsignedByte(); + this._altSubcategory = dis.ReadUnsignedByte(); + this._altSpecific = dis.ReadUnsignedByte(); + this._altExtra = dis.ReadUnsignedByte(); + this._xVelocity = dis.ReadFloat(); + this._yVelocity = dis.ReadFloat(); + this._zVelocity = dis.ReadFloat(); + this._xLocation = dis.ReadDouble(); + this._yLocation = dis.ReadDouble(); + this._zLocation = dis.ReadDouble(); + this._psi = dis.ReadFloat(); + this._theta = dis.ReadFloat(); + this._phi = dis.ReadFloat(); + this._entityAppearance = dis.ReadInt(); + this._deadReckoningAlgorithm = dis.ReadUnsignedByte(); + + for (int idx = 0; idx < this._otherParameters.Length; idx++) + { + this._otherParameters[idx] = dis.ReadByte(); + } + + this._xAcceleration = dis.ReadFloat(); + this._yAcceleration = dis.ReadFloat(); + this._zAcceleration = dis.ReadFloat(); + this._xAngularVelocity = dis.ReadFloat(); + this._yAngularVelocity = dis.ReadFloat(); + this._zAngularVelocity = dis.ReadFloat(); + + for (int idx = 0; idx < this._marking.Length; idx++) + { + this._marking[idx] = dis.ReadByte(); + } + + this._capabilities = dis.ReadInt(); + + for (int idx = 0; idx < this.NumberOfArticulationParameters; idx++) + { + ArticulationParameter anX = new ArticulationParameter(); + anX.Unmarshal(dis); + this._articulationParameters.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._site.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._application.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._entity.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._forceId.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._articulationParameters.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._entityKind.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._domain.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._country.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._category.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._subcategory.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._specific.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._extra.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._altEntityKind.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._altDomain.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._altCountry.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._altCategory.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._altSubcategory.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._altSpecific.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._altExtra.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._xVelocity.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._yVelocity.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._zVelocity.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._xLocation.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._yLocation.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._zLocation.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._psi.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._theta.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._phi.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._entityAppearance.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._deadReckoningAlgorithm.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._otherParameters.Length; idx++) + { + sb.AppendLine("" + this._otherParameters[idx] + ""); + } + + sb.AppendLine("" + this._xAcceleration.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._yAcceleration.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._zAcceleration.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._xAngularVelocity.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._yAngularVelocity.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._zAngularVelocity.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._marking.Length; idx++) + { + sb.AppendLine("" + this._marking[idx] + ""); + } + + sb.AppendLine("" + this._capabilities.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._articulationParameters.Count; idx++) + { + sb.AppendLine(""); + ArticulationParameter aArticulationParameter = (ArticulationParameter)this._articulationParameters[idx]; + aArticulationParameter.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as FastEntityStatePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(FastEntityStatePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._site != obj._site) + { + ivarsEqual = false; + } + + if (this._application != obj._application) + { + ivarsEqual = false; + } + + if (this._entity != obj._entity) + { + ivarsEqual = false; + } + + if (this._forceId != obj._forceId) + { + ivarsEqual = false; + } + + if (this._numberOfArticulationParameters != obj._numberOfArticulationParameters) + { + ivarsEqual = false; + } + + if (this._entityKind != obj._entityKind) + { + ivarsEqual = false; + } + + if (this._domain != obj._domain) + { + ivarsEqual = false; + } + + if (this._country != obj._country) + { + ivarsEqual = false; + } + + if (this._category != obj._category) + { + ivarsEqual = false; + } + + if (this._subcategory != obj._subcategory) + { + ivarsEqual = false; + } + + if (this._specific != obj._specific) + { + ivarsEqual = false; + } + + if (this._extra != obj._extra) + { + ivarsEqual = false; + } + + if (this._altEntityKind != obj._altEntityKind) + { + ivarsEqual = false; + } + + if (this._altDomain != obj._altDomain) + { + ivarsEqual = false; + } + + if (this._altCountry != obj._altCountry) + { + ivarsEqual = false; + } + + if (this._altCategory != obj._altCategory) + { + ivarsEqual = false; + } + + if (this._altSubcategory != obj._altSubcategory) + { + ivarsEqual = false; + } + + if (this._altSpecific != obj._altSpecific) + { + ivarsEqual = false; + } + + if (this._altExtra != obj._altExtra) + { + ivarsEqual = false; + } + + if (this._xVelocity != obj._xVelocity) + { + ivarsEqual = false; + } + + if (this._yVelocity != obj._yVelocity) + { + ivarsEqual = false; + } + + if (this._zVelocity != obj._zVelocity) + { + ivarsEqual = false; + } + + if (this._xLocation != obj._xLocation) + { + ivarsEqual = false; + } + + if (this._yLocation != obj._yLocation) + { + ivarsEqual = false; + } + + if (this._zLocation != obj._zLocation) + { + ivarsEqual = false; + } + + if (this._psi != obj._psi) + { + ivarsEqual = false; + } + + if (this._theta != obj._theta) + { + ivarsEqual = false; + } + + if (this._phi != obj._phi) + { + ivarsEqual = false; + } + + if (this._entityAppearance != obj._entityAppearance) + { + ivarsEqual = false; + } + + if (this._deadReckoningAlgorithm != obj._deadReckoningAlgorithm) + { + ivarsEqual = false; + } + + if (obj._otherParameters.Length != 15) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < 15; idx++) + { + if (this._otherParameters[idx] != obj._otherParameters[idx]) + { + ivarsEqual = false; + } + } + } + + if (this._xAcceleration != obj._xAcceleration) + { + ivarsEqual = false; + } + + if (this._yAcceleration != obj._yAcceleration) + { + ivarsEqual = false; + } + + if (this._zAcceleration != obj._zAcceleration) + { + ivarsEqual = false; + } + + if (this._xAngularVelocity != obj._xAngularVelocity) + { + ivarsEqual = false; + } + + if (this._yAngularVelocity != obj._yAngularVelocity) + { + ivarsEqual = false; + } + + if (this._zAngularVelocity != obj._zAngularVelocity) + { + ivarsEqual = false; + } + + if (obj._marking.Length != 12) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < 12; idx++) + { + if (this._marking[idx] != obj._marking[idx]) + { + ivarsEqual = false; + } + } + } + + if (this._capabilities != obj._capabilities) + { + ivarsEqual = false; + } + + if (this._articulationParameters.Count != obj._articulationParameters.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._articulationParameters.Count; idx++) + { + if (!this._articulationParameters[idx].Equals(obj._articulationParameters[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._site.GetHashCode(); + result = GenerateHash(result) ^ this._application.GetHashCode(); + result = GenerateHash(result) ^ this._entity.GetHashCode(); + result = GenerateHash(result) ^ this._forceId.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfArticulationParameters.GetHashCode(); + result = GenerateHash(result) ^ this._entityKind.GetHashCode(); + result = GenerateHash(result) ^ this._domain.GetHashCode(); + result = GenerateHash(result) ^ this._country.GetHashCode(); + result = GenerateHash(result) ^ this._category.GetHashCode(); + result = GenerateHash(result) ^ this._subcategory.GetHashCode(); + result = GenerateHash(result) ^ this._specific.GetHashCode(); + result = GenerateHash(result) ^ this._extra.GetHashCode(); + result = GenerateHash(result) ^ this._altEntityKind.GetHashCode(); + result = GenerateHash(result) ^ this._altDomain.GetHashCode(); + result = GenerateHash(result) ^ this._altCountry.GetHashCode(); + result = GenerateHash(result) ^ this._altCategory.GetHashCode(); + result = GenerateHash(result) ^ this._altSubcategory.GetHashCode(); + result = GenerateHash(result) ^ this._altSpecific.GetHashCode(); + result = GenerateHash(result) ^ this._altExtra.GetHashCode(); + result = GenerateHash(result) ^ this._xVelocity.GetHashCode(); + result = GenerateHash(result) ^ this._yVelocity.GetHashCode(); + result = GenerateHash(result) ^ this._zVelocity.GetHashCode(); + result = GenerateHash(result) ^ this._xLocation.GetHashCode(); + result = GenerateHash(result) ^ this._yLocation.GetHashCode(); + result = GenerateHash(result) ^ this._zLocation.GetHashCode(); + result = GenerateHash(result) ^ this._psi.GetHashCode(); + result = GenerateHash(result) ^ this._theta.GetHashCode(); + result = GenerateHash(result) ^ this._phi.GetHashCode(); + result = GenerateHash(result) ^ this._entityAppearance.GetHashCode(); + result = GenerateHash(result) ^ this._deadReckoningAlgorithm.GetHashCode(); + + for (int idx = 0; idx < 15; idx++) + { + result = GenerateHash(result) ^ this._otherParameters[idx].GetHashCode(); + } + + result = GenerateHash(result) ^ this._xAcceleration.GetHashCode(); + result = GenerateHash(result) ^ this._yAcceleration.GetHashCode(); + result = GenerateHash(result) ^ this._zAcceleration.GetHashCode(); + result = GenerateHash(result) ^ this._xAngularVelocity.GetHashCode(); + result = GenerateHash(result) ^ this._yAngularVelocity.GetHashCode(); + result = GenerateHash(result) ^ this._zAngularVelocity.GetHashCode(); + + for (int idx = 0; idx < 12; idx++) + { + result = GenerateHash(result) ^ this._marking[idx].GetHashCode(); + } + + result = GenerateHash(result) ^ this._capabilities.GetHashCode(); + + if (this._articulationParameters.Count > 0) + { + for (int idx = 0; idx < this._articulationParameters.Count; idx++) + { + result = GenerateHash(result) ^ this._articulationParameters[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/FirePdu.cs b/Libs/CsharpDis6/Dis1998/Generated/FirePdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/FirePdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/FirePdu.cs index dbdc568..1dd8de6 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/FirePdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/FirePdu.cs @@ -1,508 +1,508 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Sectioin 5.3.4.1. Information about someone firing something. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(EventID))] - [XmlInclude(typeof(Vector3Double))] - [XmlInclude(typeof(BurstDescriptor))] - [XmlInclude(typeof(Vector3Float))] - public partial class FirePdu : WarfareFamilyPdu, IEquatable - { - /// - /// ID of the munition that is being shot - /// - private EntityID _munitionID = new EntityID(); - - /// - /// ID of event - /// - private EventID _eventID = new EventID(); - - private int _fireMissionIndex; - - /// - /// location of the firing event - /// - private Vector3Double _locationInWorldCoordinates = new Vector3Double(); - - /// - /// Describes munitions used in the firing event - /// - private BurstDescriptor _burstDescriptor = new BurstDescriptor(); - - /// - /// Velocity of the ammunition - /// - private Vector3Float _velocity = new Vector3Float(); - - /// - /// range to the target - /// - private float _range; - - /// - /// Initializes a new instance of the class. - /// - public FirePdu() - { - PduType = (byte)2; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(FirePdu left, FirePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(FirePdu left, FirePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._munitionID.GetMarshalledSize(); // this._munitionID - marshalSize += this._eventID.GetMarshalledSize(); // this._eventID - marshalSize += 4; // this._fireMissionIndex - marshalSize += this._locationInWorldCoordinates.GetMarshalledSize(); // this._locationInWorldCoordinates - marshalSize += this._burstDescriptor.GetMarshalledSize(); // this._burstDescriptor - marshalSize += this._velocity.GetMarshalledSize(); // this._velocity - marshalSize += 4; // this._range - return marshalSize; - } - - /// - /// Gets or sets the ID of the munition that is being shot - /// - [XmlElement(Type = typeof(EntityID), ElementName = "munitionID")] - public EntityID MunitionID - { - get - { - return this._munitionID; - } - - set - { - this._munitionID = value; - } - } - - /// - /// Gets or sets the ID of event - /// - [XmlElement(Type = typeof(EventID), ElementName = "eventID")] - public EventID EventID - { - get - { - return this._eventID; - } - - set - { - this._eventID = value; - } - } - - /// - /// Gets or sets the fireMissionIndex - /// - [XmlElement(Type = typeof(int), ElementName = "fireMissionIndex")] - public int FireMissionIndex - { - get - { - return this._fireMissionIndex; - } - - set - { - this._fireMissionIndex = value; - } - } - - /// - /// Gets or sets the location of the firing event - /// - [XmlElement(Type = typeof(Vector3Double), ElementName = "locationInWorldCoordinates")] - public Vector3Double LocationInWorldCoordinates - { - get - { - return this._locationInWorldCoordinates; - } - - set - { - this._locationInWorldCoordinates = value; - } - } - - /// - /// Gets or sets the Describes munitions used in the firing event - /// - [XmlElement(Type = typeof(BurstDescriptor), ElementName = "burstDescriptor")] - public BurstDescriptor BurstDescriptor - { - get - { - return this._burstDescriptor; - } - - set - { - this._burstDescriptor = value; - } - } - - /// - /// Gets or sets the Velocity of the ammunition - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "velocity")] - public Vector3Float Velocity - { - get - { - return this._velocity; - } - - set - { - this._velocity = value; - } - } - - /// - /// Gets or sets the range to the target - /// - [XmlElement(Type = typeof(float), ElementName = "range")] - public float Range - { - get - { - return this._range; - } - - set - { - this._range = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._munitionID.Marshal(dos); - this._eventID.Marshal(dos); - dos.WriteInt((int)this._fireMissionIndex); - this._locationInWorldCoordinates.Marshal(dos); - this._burstDescriptor.Marshal(dos); - this._velocity.Marshal(dos); - dos.WriteFloat((float)this._range); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._munitionID.Unmarshal(dis); - this._eventID.Unmarshal(dis); - this._fireMissionIndex = dis.ReadInt(); - this._locationInWorldCoordinates.Unmarshal(dis); - this._burstDescriptor.Unmarshal(dis); - this._velocity.Unmarshal(dis); - this._range = dis.ReadFloat(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._munitionID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._eventID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._fireMissionIndex.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._locationInWorldCoordinates.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._burstDescriptor.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._velocity.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._range.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as FirePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(FirePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._munitionID.Equals(obj._munitionID)) - { - ivarsEqual = false; - } - - if (!this._eventID.Equals(obj._eventID)) - { - ivarsEqual = false; - } - - if (this._fireMissionIndex != obj._fireMissionIndex) - { - ivarsEqual = false; - } - - if (!this._locationInWorldCoordinates.Equals(obj._locationInWorldCoordinates)) - { - ivarsEqual = false; - } - - if (!this._burstDescriptor.Equals(obj._burstDescriptor)) - { - ivarsEqual = false; - } - - if (!this._velocity.Equals(obj._velocity)) - { - ivarsEqual = false; - } - - if (this._range != obj._range) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._munitionID.GetHashCode(); - result = GenerateHash(result) ^ this._eventID.GetHashCode(); - result = GenerateHash(result) ^ this._fireMissionIndex.GetHashCode(); - result = GenerateHash(result) ^ this._locationInWorldCoordinates.GetHashCode(); - result = GenerateHash(result) ^ this._burstDescriptor.GetHashCode(); - result = GenerateHash(result) ^ this._velocity.GetHashCode(); - result = GenerateHash(result) ^ this._range.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Sectioin 5.3.4.1. Information about someone firing something. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(EventID))] + [XmlInclude(typeof(Vector3Double))] + [XmlInclude(typeof(BurstDescriptor))] + [XmlInclude(typeof(Vector3Float))] + public partial class FirePdu : WarfareFamilyPdu, IEquatable + { + /// + /// ID of the munition that is being shot + /// + private EntityID _munitionID = new EntityID(); + + /// + /// ID of event + /// + private EventID _eventID = new EventID(); + + private int _fireMissionIndex; + + /// + /// location of the firing event + /// + private Vector3Double _locationInWorldCoordinates = new Vector3Double(); + + /// + /// Describes munitions used in the firing event + /// + private BurstDescriptor _burstDescriptor = new BurstDescriptor(); + + /// + /// Velocity of the ammunition + /// + private Vector3Float _velocity = new Vector3Float(); + + /// + /// range to the target + /// + private float _range; + + /// + /// Initializes a new instance of the class. + /// + public FirePdu() + { + PduType = (byte)2; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(FirePdu left, FirePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(FirePdu left, FirePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._munitionID.GetMarshalledSize(); // this._munitionID + marshalSize += this._eventID.GetMarshalledSize(); // this._eventID + marshalSize += 4; // this._fireMissionIndex + marshalSize += this._locationInWorldCoordinates.GetMarshalledSize(); // this._locationInWorldCoordinates + marshalSize += this._burstDescriptor.GetMarshalledSize(); // this._burstDescriptor + marshalSize += this._velocity.GetMarshalledSize(); // this._velocity + marshalSize += 4; // this._range + return marshalSize; + } + + /// + /// Gets or sets the ID of the munition that is being shot + /// + [XmlElement(Type = typeof(EntityID), ElementName = "munitionID")] + public EntityID MunitionID + { + get + { + return this._munitionID; + } + + set + { + this._munitionID = value; + } + } + + /// + /// Gets or sets the ID of event + /// + [XmlElement(Type = typeof(EventID), ElementName = "eventID")] + public EventID EventID + { + get + { + return this._eventID; + } + + set + { + this._eventID = value; + } + } + + /// + /// Gets or sets the fireMissionIndex + /// + [XmlElement(Type = typeof(int), ElementName = "fireMissionIndex")] + public int FireMissionIndex + { + get + { + return this._fireMissionIndex; + } + + set + { + this._fireMissionIndex = value; + } + } + + /// + /// Gets or sets the location of the firing event + /// + [XmlElement(Type = typeof(Vector3Double), ElementName = "locationInWorldCoordinates")] + public Vector3Double LocationInWorldCoordinates + { + get + { + return this._locationInWorldCoordinates; + } + + set + { + this._locationInWorldCoordinates = value; + } + } + + /// + /// Gets or sets the Describes munitions used in the firing event + /// + [XmlElement(Type = typeof(BurstDescriptor), ElementName = "burstDescriptor")] + public BurstDescriptor BurstDescriptor + { + get + { + return this._burstDescriptor; + } + + set + { + this._burstDescriptor = value; + } + } + + /// + /// Gets or sets the Velocity of the ammunition + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "velocity")] + public Vector3Float Velocity + { + get + { + return this._velocity; + } + + set + { + this._velocity = value; + } + } + + /// + /// Gets or sets the range to the target + /// + [XmlElement(Type = typeof(float), ElementName = "range")] + public float Range + { + get + { + return this._range; + } + + set + { + this._range = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._munitionID.Marshal(dos); + this._eventID.Marshal(dos); + dos.WriteInt((int)this._fireMissionIndex); + this._locationInWorldCoordinates.Marshal(dos); + this._burstDescriptor.Marshal(dos); + this._velocity.Marshal(dos); + dos.WriteFloat((float)this._range); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._munitionID.Unmarshal(dis); + this._eventID.Unmarshal(dis); + this._fireMissionIndex = dis.ReadInt(); + this._locationInWorldCoordinates.Unmarshal(dis); + this._burstDescriptor.Unmarshal(dis); + this._velocity.Unmarshal(dis); + this._range = dis.ReadFloat(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._munitionID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._eventID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._fireMissionIndex.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._locationInWorldCoordinates.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._burstDescriptor.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._velocity.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._range.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as FirePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(FirePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._munitionID.Equals(obj._munitionID)) + { + ivarsEqual = false; + } + + if (!this._eventID.Equals(obj._eventID)) + { + ivarsEqual = false; + } + + if (this._fireMissionIndex != obj._fireMissionIndex) + { + ivarsEqual = false; + } + + if (!this._locationInWorldCoordinates.Equals(obj._locationInWorldCoordinates)) + { + ivarsEqual = false; + } + + if (!this._burstDescriptor.Equals(obj._burstDescriptor)) + { + ivarsEqual = false; + } + + if (!this._velocity.Equals(obj._velocity)) + { + ivarsEqual = false; + } + + if (this._range != obj._range) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._munitionID.GetHashCode(); + result = GenerateHash(result) ^ this._eventID.GetHashCode(); + result = GenerateHash(result) ^ this._fireMissionIndex.GetHashCode(); + result = GenerateHash(result) ^ this._locationInWorldCoordinates.GetHashCode(); + result = GenerateHash(result) ^ this._burstDescriptor.GetHashCode(); + result = GenerateHash(result) ^ this._velocity.GetHashCode(); + result = GenerateHash(result) ^ this._range.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/FixedDatum.cs b/Libs/CsharpDis6/Dis1998/Generated/FixedDatum.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/FixedDatum.cs rename to Libs/CsharpDis6/Dis1998/Generated/FixedDatum.cs index 18b7d26..d46cb3c 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/FixedDatum.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/FixedDatum.cs @@ -1,332 +1,332 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.2.18. Fixed Datum Record - /// - [Serializable] - [XmlRoot] - public partial class FixedDatum - { - /// - /// ID of the fixed datum - /// - private uint _fixedDatumID; - - /// - /// Value for the fixed datum - /// - private uint _fixedDatumValue; - - /// - /// Initializes a new instance of the class. - /// - public FixedDatum() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(FixedDatum left, FixedDatum right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(FixedDatum left, FixedDatum right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._fixedDatumID - marshalSize += 4; // this._fixedDatumValue - return marshalSize; - } - - /// - /// Gets or sets the ID of the fixed datum - /// - [XmlElement(Type = typeof(uint), ElementName = "fixedDatumID")] - public uint FixedDatumID - { - get - { - return this._fixedDatumID; - } - - set - { - this._fixedDatumID = value; - } - } - - /// - /// Gets or sets the Value for the fixed datum - /// - [XmlElement(Type = typeof(uint), ElementName = "fixedDatumValue")] - public uint FixedDatumValue - { - get - { - return this._fixedDatumValue; - } - - set - { - this._fixedDatumValue = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._fixedDatumID); - dos.WriteUnsignedInt((uint)this._fixedDatumValue); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._fixedDatumID = dis.ReadUnsignedInt(); - this._fixedDatumValue = dis.ReadUnsignedInt(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._fixedDatumID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fixedDatumValue.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as FixedDatum; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(FixedDatum obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._fixedDatumID != obj._fixedDatumID) - { - ivarsEqual = false; - } - - if (this._fixedDatumValue != obj._fixedDatumValue) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._fixedDatumID.GetHashCode(); - result = GenerateHash(result) ^ this._fixedDatumValue.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.2.18. Fixed Datum Record + /// + [Serializable] + [XmlRoot] + public partial class FixedDatum + { + /// + /// ID of the fixed datum + /// + private uint _fixedDatumID; + + /// + /// Value for the fixed datum + /// + private uint _fixedDatumValue; + + /// + /// Initializes a new instance of the class. + /// + public FixedDatum() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(FixedDatum left, FixedDatum right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(FixedDatum left, FixedDatum right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._fixedDatumID + marshalSize += 4; // this._fixedDatumValue + return marshalSize; + } + + /// + /// Gets or sets the ID of the fixed datum + /// + [XmlElement(Type = typeof(uint), ElementName = "fixedDatumID")] + public uint FixedDatumID + { + get + { + return this._fixedDatumID; + } + + set + { + this._fixedDatumID = value; + } + } + + /// + /// Gets or sets the Value for the fixed datum + /// + [XmlElement(Type = typeof(uint), ElementName = "fixedDatumValue")] + public uint FixedDatumValue + { + get + { + return this._fixedDatumValue; + } + + set + { + this._fixedDatumValue = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._fixedDatumID); + dos.WriteUnsignedInt((uint)this._fixedDatumValue); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._fixedDatumID = dis.ReadUnsignedInt(); + this._fixedDatumValue = dis.ReadUnsignedInt(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._fixedDatumID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fixedDatumValue.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as FixedDatum; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(FixedDatum obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._fixedDatumID != obj._fixedDatumID) + { + ivarsEqual = false; + } + + if (this._fixedDatumValue != obj._fixedDatumValue) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._fixedDatumID.GetHashCode(); + result = GenerateHash(result) ^ this._fixedDatumValue.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/FourByteChunk.cs b/Libs/CsharpDis6/Dis1998/Generated/FourByteChunk.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/FourByteChunk.cs rename to Libs/CsharpDis6/Dis1998/Generated/FourByteChunk.cs index 9ac11f2..65ba936 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/FourByteChunk.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/FourByteChunk.cs @@ -1,324 +1,324 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// 32 bit piece of data - /// - [Serializable] - [XmlRoot] - public partial class FourByteChunk - { - /// - /// four bytes of arbitrary data - /// - private byte[] _otherParameters = new byte[4]; - - /// - /// Initializes a new instance of the class. - /// - public FourByteChunk() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(FourByteChunk left, FourByteChunk right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(FourByteChunk left, FourByteChunk right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4 * 1; // _otherParameters - return marshalSize; - } - - /// - /// Gets or sets the four bytes of arbitrary data - /// - [XmlArray(ElementName = "otherParameters")] - public byte[] OtherParameters - { - get - { - return this._otherParameters; - } - - set - { - this._otherParameters = value; - } -} - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - for (int idx = 0; idx < this._otherParameters.Length; idx++) - { - dos.WriteByte(this._otherParameters[idx]); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - for (int idx = 0; idx < this._otherParameters.Length; idx++) - { - this._otherParameters[idx] = dis.ReadByte(); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - for (int idx = 0; idx < this._otherParameters.Length; idx++) - { - sb.AppendLine("" + this._otherParameters[idx] + ""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as FourByteChunk; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(FourByteChunk obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (obj._otherParameters.Length != 4) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < 4; idx++) - { - if (this._otherParameters[idx] != obj._otherParameters[idx]) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - for (int idx = 0; idx < 4; idx++) - { - result = GenerateHash(result) ^ this._otherParameters[idx].GetHashCode(); - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// 32 bit piece of data + /// + [Serializable] + [XmlRoot] + public partial class FourByteChunk + { + /// + /// four bytes of arbitrary data + /// + private byte[] _otherParameters = new byte[4]; + + /// + /// Initializes a new instance of the class. + /// + public FourByteChunk() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(FourByteChunk left, FourByteChunk right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(FourByteChunk left, FourByteChunk right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4 * 1; // _otherParameters + return marshalSize; + } + + /// + /// Gets or sets the four bytes of arbitrary data + /// + [XmlArray(ElementName = "otherParameters")] + public byte[] OtherParameters + { + get + { + return this._otherParameters; + } + + set + { + this._otherParameters = value; + } +} + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + for (int idx = 0; idx < this._otherParameters.Length; idx++) + { + dos.WriteByte(this._otherParameters[idx]); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + for (int idx = 0; idx < this._otherParameters.Length; idx++) + { + this._otherParameters[idx] = dis.ReadByte(); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + for (int idx = 0; idx < this._otherParameters.Length; idx++) + { + sb.AppendLine("" + this._otherParameters[idx] + ""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as FourByteChunk; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(FourByteChunk obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (obj._otherParameters.Length != 4) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < 4; idx++) + { + if (this._otherParameters[idx] != obj._otherParameters[idx]) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + for (int idx = 0; idx < 4; idx++) + { + result = GenerateHash(result) ^ this._otherParameters[idx].GetHashCode(); + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/FundamentalParameterData.cs b/Libs/CsharpDis6/Dis1998/Generated/FundamentalParameterData.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/FundamentalParameterData.cs rename to Libs/CsharpDis6/Dis1998/Generated/FundamentalParameterData.cs index 0a1f3ac..7c5813a 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/FundamentalParameterData.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/FundamentalParameterData.cs @@ -1,588 +1,588 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.2.22. Contains electromagnetic emmision regineratin parameters that are variable throughout a scenario dependent on the actions of the participants in the simulation. Also provides basic parametric data that may be used to support low-fidelity simulations. - /// - [Serializable] - [XmlRoot] - public partial class FundamentalParameterData - { - /// - /// center frequency of the emission in hertz. - /// - private float _frequency; - - /// - /// Bandwidth of the frequencies corresponding to the fequency field. - /// - private float _frequencyRange; - - /// - /// Effective radiated power for the emission in DdBm. For a radar noise jammer, indicates the peak of the transmitted power. - /// - private float _effectiveRadiatedPower; - - /// - /// Average repetition frequency of the emission in hertz. - /// - private float _pulseRepetitionFrequency; - - /// - /// Average pulse width of the emission in microseconds. - /// - private float _pulseWidth; - - /// - /// Specifies the beam azimuth an elevation centers and corresponding half-angles to describe the scan volume - /// - private float _beamAzimuthCenter; - - /// - /// Specifies the beam azimuth sweep to determine scan volume - /// - private float _beamAzimuthSweep; - - /// - /// Specifies the beam elevation center to determine scan volume - /// - private float _beamElevationCenter; - - /// - /// Specifies the beam elevation sweep to determine scan volume - /// - private float _beamElevationSweep; - - /// - /// allows receiver to synchronize its regenerated scan pattern to that of the emmitter. Specifies the percentage of time a scan is through its pattern from its origion. - /// - private float _beamSweepSync; - - /// - /// Initializes a new instance of the class. - /// - public FundamentalParameterData() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(FundamentalParameterData left, FundamentalParameterData right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(FundamentalParameterData left, FundamentalParameterData right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._frequency - marshalSize += 4; // this._frequencyRange - marshalSize += 4; // this._effectiveRadiatedPower - marshalSize += 4; // this._pulseRepetitionFrequency - marshalSize += 4; // this._pulseWidth - marshalSize += 4; // this._beamAzimuthCenter - marshalSize += 4; // this._beamAzimuthSweep - marshalSize += 4; // this._beamElevationCenter - marshalSize += 4; // this._beamElevationSweep - marshalSize += 4; // this._beamSweepSync - return marshalSize; - } - - /// - /// Gets or sets the center frequency of the emission in hertz. - /// - [XmlElement(Type = typeof(float), ElementName = "frequency")] - public float Frequency - { - get - { - return this._frequency; - } - - set - { - this._frequency = value; - } - } - - /// - /// Gets or sets the Bandwidth of the frequencies corresponding to the fequency field. - /// - [XmlElement(Type = typeof(float), ElementName = "frequencyRange")] - public float FrequencyRange - { - get - { - return this._frequencyRange; - } - - set - { - this._frequencyRange = value; - } - } - - /// - /// Gets or sets the Effective radiated power for the emission in DdBm. For a radar noise jammer, indicates the peak of the transmitted power. - /// - [XmlElement(Type = typeof(float), ElementName = "effectiveRadiatedPower")] - public float EffectiveRadiatedPower - { - get - { - return this._effectiveRadiatedPower; - } - - set - { - this._effectiveRadiatedPower = value; - } - } - - /// - /// Gets or sets the Average repetition frequency of the emission in hertz. - /// - [XmlElement(Type = typeof(float), ElementName = "pulseRepetitionFrequency")] - public float PulseRepetitionFrequency - { - get - { - return this._pulseRepetitionFrequency; - } - - set - { - this._pulseRepetitionFrequency = value; - } - } - - /// - /// Gets or sets the Average pulse width of the emission in microseconds. - /// - [XmlElement(Type = typeof(float), ElementName = "pulseWidth")] - public float PulseWidth - { - get - { - return this._pulseWidth; - } - - set - { - this._pulseWidth = value; - } - } - - /// - /// Gets or sets the Specifies the beam azimuth an elevation centers and corresponding half-angles to describe the scan volume - /// - [XmlElement(Type = typeof(float), ElementName = "beamAzimuthCenter")] - public float BeamAzimuthCenter - { - get - { - return this._beamAzimuthCenter; - } - - set - { - this._beamAzimuthCenter = value; - } - } - - /// - /// Gets or sets the Specifies the beam azimuth sweep to determine scan volume - /// - [XmlElement(Type = typeof(float), ElementName = "beamAzimuthSweep")] - public float BeamAzimuthSweep - { - get - { - return this._beamAzimuthSweep; - } - - set - { - this._beamAzimuthSweep = value; - } - } - - /// - /// Gets or sets the Specifies the beam elevation center to determine scan volume - /// - [XmlElement(Type = typeof(float), ElementName = "beamElevationCenter")] - public float BeamElevationCenter - { - get - { - return this._beamElevationCenter; - } - - set - { - this._beamElevationCenter = value; - } - } - - /// - /// Gets or sets the Specifies the beam elevation sweep to determine scan volume - /// - [XmlElement(Type = typeof(float), ElementName = "beamElevationSweep")] - public float BeamElevationSweep - { - get - { - return this._beamElevationSweep; - } - - set - { - this._beamElevationSweep = value; - } - } - - /// - /// Gets or sets the allows receiver to synchronize its regenerated scan pattern to that of the emmitter. Specifies the percentage of time a scan is through its pattern from its origion. - /// - [XmlElement(Type = typeof(float), ElementName = "beamSweepSync")] - public float BeamSweepSync - { - get - { - return this._beamSweepSync; - } - - set - { - this._beamSweepSync = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteFloat((float)this._frequency); - dos.WriteFloat((float)this._frequencyRange); - dos.WriteFloat((float)this._effectiveRadiatedPower); - dos.WriteFloat((float)this._pulseRepetitionFrequency); - dos.WriteFloat((float)this._pulseWidth); - dos.WriteFloat((float)this._beamAzimuthCenter); - dos.WriteFloat((float)this._beamAzimuthSweep); - dos.WriteFloat((float)this._beamElevationCenter); - dos.WriteFloat((float)this._beamElevationSweep); - dos.WriteFloat((float)this._beamSweepSync); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._frequency = dis.ReadFloat(); - this._frequencyRange = dis.ReadFloat(); - this._effectiveRadiatedPower = dis.ReadFloat(); - this._pulseRepetitionFrequency = dis.ReadFloat(); - this._pulseWidth = dis.ReadFloat(); - this._beamAzimuthCenter = dis.ReadFloat(); - this._beamAzimuthSweep = dis.ReadFloat(); - this._beamElevationCenter = dis.ReadFloat(); - this._beamElevationSweep = dis.ReadFloat(); - this._beamSweepSync = dis.ReadFloat(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._frequency.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._frequencyRange.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._effectiveRadiatedPower.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pulseRepetitionFrequency.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pulseWidth.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._beamAzimuthCenter.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._beamAzimuthSweep.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._beamElevationCenter.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._beamElevationSweep.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._beamSweepSync.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as FundamentalParameterData; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(FundamentalParameterData obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._frequency != obj._frequency) - { - ivarsEqual = false; - } - - if (this._frequencyRange != obj._frequencyRange) - { - ivarsEqual = false; - } - - if (this._effectiveRadiatedPower != obj._effectiveRadiatedPower) - { - ivarsEqual = false; - } - - if (this._pulseRepetitionFrequency != obj._pulseRepetitionFrequency) - { - ivarsEqual = false; - } - - if (this._pulseWidth != obj._pulseWidth) - { - ivarsEqual = false; - } - - if (this._beamAzimuthCenter != obj._beamAzimuthCenter) - { - ivarsEqual = false; - } - - if (this._beamAzimuthSweep != obj._beamAzimuthSweep) - { - ivarsEqual = false; - } - - if (this._beamElevationCenter != obj._beamElevationCenter) - { - ivarsEqual = false; - } - - if (this._beamElevationSweep != obj._beamElevationSweep) - { - ivarsEqual = false; - } - - if (this._beamSweepSync != obj._beamSweepSync) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._frequency.GetHashCode(); - result = GenerateHash(result) ^ this._frequencyRange.GetHashCode(); - result = GenerateHash(result) ^ this._effectiveRadiatedPower.GetHashCode(); - result = GenerateHash(result) ^ this._pulseRepetitionFrequency.GetHashCode(); - result = GenerateHash(result) ^ this._pulseWidth.GetHashCode(); - result = GenerateHash(result) ^ this._beamAzimuthCenter.GetHashCode(); - result = GenerateHash(result) ^ this._beamAzimuthSweep.GetHashCode(); - result = GenerateHash(result) ^ this._beamElevationCenter.GetHashCode(); - result = GenerateHash(result) ^ this._beamElevationSweep.GetHashCode(); - result = GenerateHash(result) ^ this._beamSweepSync.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.2.22. Contains electromagnetic emmision regineratin parameters that are variable throughout a scenario dependent on the actions of the participants in the simulation. Also provides basic parametric data that may be used to support low-fidelity simulations. + /// + [Serializable] + [XmlRoot] + public partial class FundamentalParameterData + { + /// + /// center frequency of the emission in hertz. + /// + private float _frequency; + + /// + /// Bandwidth of the frequencies corresponding to the fequency field. + /// + private float _frequencyRange; + + /// + /// Effective radiated power for the emission in DdBm. For a radar noise jammer, indicates the peak of the transmitted power. + /// + private float _effectiveRadiatedPower; + + /// + /// Average repetition frequency of the emission in hertz. + /// + private float _pulseRepetitionFrequency; + + /// + /// Average pulse width of the emission in microseconds. + /// + private float _pulseWidth; + + /// + /// Specifies the beam azimuth an elevation centers and corresponding half-angles to describe the scan volume + /// + private float _beamAzimuthCenter; + + /// + /// Specifies the beam azimuth sweep to determine scan volume + /// + private float _beamAzimuthSweep; + + /// + /// Specifies the beam elevation center to determine scan volume + /// + private float _beamElevationCenter; + + /// + /// Specifies the beam elevation sweep to determine scan volume + /// + private float _beamElevationSweep; + + /// + /// allows receiver to synchronize its regenerated scan pattern to that of the emmitter. Specifies the percentage of time a scan is through its pattern from its origion. + /// + private float _beamSweepSync; + + /// + /// Initializes a new instance of the class. + /// + public FundamentalParameterData() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(FundamentalParameterData left, FundamentalParameterData right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(FundamentalParameterData left, FundamentalParameterData right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._frequency + marshalSize += 4; // this._frequencyRange + marshalSize += 4; // this._effectiveRadiatedPower + marshalSize += 4; // this._pulseRepetitionFrequency + marshalSize += 4; // this._pulseWidth + marshalSize += 4; // this._beamAzimuthCenter + marshalSize += 4; // this._beamAzimuthSweep + marshalSize += 4; // this._beamElevationCenter + marshalSize += 4; // this._beamElevationSweep + marshalSize += 4; // this._beamSweepSync + return marshalSize; + } + + /// + /// Gets or sets the center frequency of the emission in hertz. + /// + [XmlElement(Type = typeof(float), ElementName = "frequency")] + public float Frequency + { + get + { + return this._frequency; + } + + set + { + this._frequency = value; + } + } + + /// + /// Gets or sets the Bandwidth of the frequencies corresponding to the fequency field. + /// + [XmlElement(Type = typeof(float), ElementName = "frequencyRange")] + public float FrequencyRange + { + get + { + return this._frequencyRange; + } + + set + { + this._frequencyRange = value; + } + } + + /// + /// Gets or sets the Effective radiated power for the emission in DdBm. For a radar noise jammer, indicates the peak of the transmitted power. + /// + [XmlElement(Type = typeof(float), ElementName = "effectiveRadiatedPower")] + public float EffectiveRadiatedPower + { + get + { + return this._effectiveRadiatedPower; + } + + set + { + this._effectiveRadiatedPower = value; + } + } + + /// + /// Gets or sets the Average repetition frequency of the emission in hertz. + /// + [XmlElement(Type = typeof(float), ElementName = "pulseRepetitionFrequency")] + public float PulseRepetitionFrequency + { + get + { + return this._pulseRepetitionFrequency; + } + + set + { + this._pulseRepetitionFrequency = value; + } + } + + /// + /// Gets or sets the Average pulse width of the emission in microseconds. + /// + [XmlElement(Type = typeof(float), ElementName = "pulseWidth")] + public float PulseWidth + { + get + { + return this._pulseWidth; + } + + set + { + this._pulseWidth = value; + } + } + + /// + /// Gets or sets the Specifies the beam azimuth an elevation centers and corresponding half-angles to describe the scan volume + /// + [XmlElement(Type = typeof(float), ElementName = "beamAzimuthCenter")] + public float BeamAzimuthCenter + { + get + { + return this._beamAzimuthCenter; + } + + set + { + this._beamAzimuthCenter = value; + } + } + + /// + /// Gets or sets the Specifies the beam azimuth sweep to determine scan volume + /// + [XmlElement(Type = typeof(float), ElementName = "beamAzimuthSweep")] + public float BeamAzimuthSweep + { + get + { + return this._beamAzimuthSweep; + } + + set + { + this._beamAzimuthSweep = value; + } + } + + /// + /// Gets or sets the Specifies the beam elevation center to determine scan volume + /// + [XmlElement(Type = typeof(float), ElementName = "beamElevationCenter")] + public float BeamElevationCenter + { + get + { + return this._beamElevationCenter; + } + + set + { + this._beamElevationCenter = value; + } + } + + /// + /// Gets or sets the Specifies the beam elevation sweep to determine scan volume + /// + [XmlElement(Type = typeof(float), ElementName = "beamElevationSweep")] + public float BeamElevationSweep + { + get + { + return this._beamElevationSweep; + } + + set + { + this._beamElevationSweep = value; + } + } + + /// + /// Gets or sets the allows receiver to synchronize its regenerated scan pattern to that of the emmitter. Specifies the percentage of time a scan is through its pattern from its origion. + /// + [XmlElement(Type = typeof(float), ElementName = "beamSweepSync")] + public float BeamSweepSync + { + get + { + return this._beamSweepSync; + } + + set + { + this._beamSweepSync = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteFloat((float)this._frequency); + dos.WriteFloat((float)this._frequencyRange); + dos.WriteFloat((float)this._effectiveRadiatedPower); + dos.WriteFloat((float)this._pulseRepetitionFrequency); + dos.WriteFloat((float)this._pulseWidth); + dos.WriteFloat((float)this._beamAzimuthCenter); + dos.WriteFloat((float)this._beamAzimuthSweep); + dos.WriteFloat((float)this._beamElevationCenter); + dos.WriteFloat((float)this._beamElevationSweep); + dos.WriteFloat((float)this._beamSweepSync); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._frequency = dis.ReadFloat(); + this._frequencyRange = dis.ReadFloat(); + this._effectiveRadiatedPower = dis.ReadFloat(); + this._pulseRepetitionFrequency = dis.ReadFloat(); + this._pulseWidth = dis.ReadFloat(); + this._beamAzimuthCenter = dis.ReadFloat(); + this._beamAzimuthSweep = dis.ReadFloat(); + this._beamElevationCenter = dis.ReadFloat(); + this._beamElevationSweep = dis.ReadFloat(); + this._beamSweepSync = dis.ReadFloat(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._frequency.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._frequencyRange.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._effectiveRadiatedPower.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pulseRepetitionFrequency.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pulseWidth.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._beamAzimuthCenter.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._beamAzimuthSweep.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._beamElevationCenter.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._beamElevationSweep.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._beamSweepSync.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as FundamentalParameterData; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(FundamentalParameterData obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._frequency != obj._frequency) + { + ivarsEqual = false; + } + + if (this._frequencyRange != obj._frequencyRange) + { + ivarsEqual = false; + } + + if (this._effectiveRadiatedPower != obj._effectiveRadiatedPower) + { + ivarsEqual = false; + } + + if (this._pulseRepetitionFrequency != obj._pulseRepetitionFrequency) + { + ivarsEqual = false; + } + + if (this._pulseWidth != obj._pulseWidth) + { + ivarsEqual = false; + } + + if (this._beamAzimuthCenter != obj._beamAzimuthCenter) + { + ivarsEqual = false; + } + + if (this._beamAzimuthSweep != obj._beamAzimuthSweep) + { + ivarsEqual = false; + } + + if (this._beamElevationCenter != obj._beamElevationCenter) + { + ivarsEqual = false; + } + + if (this._beamElevationSweep != obj._beamElevationSweep) + { + ivarsEqual = false; + } + + if (this._beamSweepSync != obj._beamSweepSync) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._frequency.GetHashCode(); + result = GenerateHash(result) ^ this._frequencyRange.GetHashCode(); + result = GenerateHash(result) ^ this._effectiveRadiatedPower.GetHashCode(); + result = GenerateHash(result) ^ this._pulseRepetitionFrequency.GetHashCode(); + result = GenerateHash(result) ^ this._pulseWidth.GetHashCode(); + result = GenerateHash(result) ^ this._beamAzimuthCenter.GetHashCode(); + result = GenerateHash(result) ^ this._beamAzimuthSweep.GetHashCode(); + result = GenerateHash(result) ^ this._beamElevationCenter.GetHashCode(); + result = GenerateHash(result) ^ this._beamElevationSweep.GetHashCode(); + result = GenerateHash(result) ^ this._beamSweepSync.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/FundamentalParameterDataIff.cs b/Libs/CsharpDis6/Dis1998/Generated/FundamentalParameterDataIff.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/FundamentalParameterDataIff.cs rename to Libs/CsharpDis6/Dis1998/Generated/FundamentalParameterDataIff.cs index a91518c..a37383c 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/FundamentalParameterDataIff.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/FundamentalParameterDataIff.cs @@ -1,524 +1,524 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// 5.2.45. Fundamental IFF atc data - /// - [Serializable] - [XmlRoot] - public partial class FundamentalParameterDataIff - { - /// - /// ERP - /// - private float _erp; - - /// - /// frequency - /// - private float _frequency; - - /// - /// pgrf - /// - private float _pgrf; - - /// - /// Pulse width - /// - private float _pulseWidth; - - /// - /// Burst length - /// - private uint _burstLength; - - /// - /// Applicable modes enumeration - /// - private byte _applicableModes; - - /// - /// padding - /// - private ushort _pad2; - - /// - /// padding - /// - private byte _pad3; - - /// - /// Initializes a new instance of the class. - /// - public FundamentalParameterDataIff() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(FundamentalParameterDataIff left, FundamentalParameterDataIff right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(FundamentalParameterDataIff left, FundamentalParameterDataIff right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._erp - marshalSize += 4; // this._frequency - marshalSize += 4; // this._pgrf - marshalSize += 4; // this._pulseWidth - marshalSize += 4; // this._burstLength - marshalSize += 1; // this._applicableModes - marshalSize += 2; // this._pad2 - marshalSize += 1; // this._pad3 - return marshalSize; - } - - /// - /// Gets or sets the ERP - /// - [XmlElement(Type = typeof(float), ElementName = "erp")] - public float Erp - { - get - { - return this._erp; - } - - set - { - this._erp = value; - } - } - - /// - /// Gets or sets the frequency - /// - [XmlElement(Type = typeof(float), ElementName = "frequency")] - public float Frequency - { - get - { - return this._frequency; - } - - set - { - this._frequency = value; - } - } - - /// - /// Gets or sets the pgrf - /// - [XmlElement(Type = typeof(float), ElementName = "pgrf")] - public float Pgrf - { - get - { - return this._pgrf; - } - - set - { - this._pgrf = value; - } - } - - /// - /// Gets or sets the Pulse width - /// - [XmlElement(Type = typeof(float), ElementName = "pulseWidth")] - public float PulseWidth - { - get - { - return this._pulseWidth; - } - - set - { - this._pulseWidth = value; - } - } - - /// - /// Gets or sets the Burst length - /// - [XmlElement(Type = typeof(uint), ElementName = "burstLength")] - public uint BurstLength - { - get - { - return this._burstLength; - } - - set - { - this._burstLength = value; - } - } - - /// - /// Gets or sets the Applicable modes enumeration - /// - [XmlElement(Type = typeof(byte), ElementName = "applicableModes")] - public byte ApplicableModes - { - get - { - return this._applicableModes; - } - - set - { - this._applicableModes = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(ushort), ElementName = "pad2")] - public ushort Pad2 - { - get - { - return this._pad2; - } - - set - { - this._pad2 = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "pad3")] - public byte Pad3 - { - get - { - return this._pad3; - } - - set - { - this._pad3 = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteFloat((float)this._erp); - dos.WriteFloat((float)this._frequency); - dos.WriteFloat((float)this._pgrf); - dos.WriteFloat((float)this._pulseWidth); - dos.WriteUnsignedInt((uint)this._burstLength); - dos.WriteUnsignedByte((byte)this._applicableModes); - dos.WriteUnsignedShort((ushort)this._pad2); - dos.WriteUnsignedByte((byte)this._pad3); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._erp = dis.ReadFloat(); - this._frequency = dis.ReadFloat(); - this._pgrf = dis.ReadFloat(); - this._pulseWidth = dis.ReadFloat(); - this._burstLength = dis.ReadUnsignedInt(); - this._applicableModes = dis.ReadUnsignedByte(); - this._pad2 = dis.ReadUnsignedShort(); - this._pad3 = dis.ReadUnsignedByte(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._erp.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._frequency.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pgrf.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pulseWidth.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._burstLength.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._applicableModes.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad3.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as FundamentalParameterDataIff; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(FundamentalParameterDataIff obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._erp != obj._erp) - { - ivarsEqual = false; - } - - if (this._frequency != obj._frequency) - { - ivarsEqual = false; - } - - if (this._pgrf != obj._pgrf) - { - ivarsEqual = false; - } - - if (this._pulseWidth != obj._pulseWidth) - { - ivarsEqual = false; - } - - if (this._burstLength != obj._burstLength) - { - ivarsEqual = false; - } - - if (this._applicableModes != obj._applicableModes) - { - ivarsEqual = false; - } - - if (this._pad2 != obj._pad2) - { - ivarsEqual = false; - } - - if (this._pad3 != obj._pad3) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._erp.GetHashCode(); - result = GenerateHash(result) ^ this._frequency.GetHashCode(); - result = GenerateHash(result) ^ this._pgrf.GetHashCode(); - result = GenerateHash(result) ^ this._pulseWidth.GetHashCode(); - result = GenerateHash(result) ^ this._burstLength.GetHashCode(); - result = GenerateHash(result) ^ this._applicableModes.GetHashCode(); - result = GenerateHash(result) ^ this._pad2.GetHashCode(); - result = GenerateHash(result) ^ this._pad3.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// 5.2.45. Fundamental IFF atc data + /// + [Serializable] + [XmlRoot] + public partial class FundamentalParameterDataIff + { + /// + /// ERP + /// + private float _erp; + + /// + /// frequency + /// + private float _frequency; + + /// + /// pgrf + /// + private float _pgrf; + + /// + /// Pulse width + /// + private float _pulseWidth; + + /// + /// Burst length + /// + private uint _burstLength; + + /// + /// Applicable modes enumeration + /// + private byte _applicableModes; + + /// + /// padding + /// + private ushort _pad2; + + /// + /// padding + /// + private byte _pad3; + + /// + /// Initializes a new instance of the class. + /// + public FundamentalParameterDataIff() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(FundamentalParameterDataIff left, FundamentalParameterDataIff right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(FundamentalParameterDataIff left, FundamentalParameterDataIff right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._erp + marshalSize += 4; // this._frequency + marshalSize += 4; // this._pgrf + marshalSize += 4; // this._pulseWidth + marshalSize += 4; // this._burstLength + marshalSize += 1; // this._applicableModes + marshalSize += 2; // this._pad2 + marshalSize += 1; // this._pad3 + return marshalSize; + } + + /// + /// Gets or sets the ERP + /// + [XmlElement(Type = typeof(float), ElementName = "erp")] + public float Erp + { + get + { + return this._erp; + } + + set + { + this._erp = value; + } + } + + /// + /// Gets or sets the frequency + /// + [XmlElement(Type = typeof(float), ElementName = "frequency")] + public float Frequency + { + get + { + return this._frequency; + } + + set + { + this._frequency = value; + } + } + + /// + /// Gets or sets the pgrf + /// + [XmlElement(Type = typeof(float), ElementName = "pgrf")] + public float Pgrf + { + get + { + return this._pgrf; + } + + set + { + this._pgrf = value; + } + } + + /// + /// Gets or sets the Pulse width + /// + [XmlElement(Type = typeof(float), ElementName = "pulseWidth")] + public float PulseWidth + { + get + { + return this._pulseWidth; + } + + set + { + this._pulseWidth = value; + } + } + + /// + /// Gets or sets the Burst length + /// + [XmlElement(Type = typeof(uint), ElementName = "burstLength")] + public uint BurstLength + { + get + { + return this._burstLength; + } + + set + { + this._burstLength = value; + } + } + + /// + /// Gets or sets the Applicable modes enumeration + /// + [XmlElement(Type = typeof(byte), ElementName = "applicableModes")] + public byte ApplicableModes + { + get + { + return this._applicableModes; + } + + set + { + this._applicableModes = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(ushort), ElementName = "pad2")] + public ushort Pad2 + { + get + { + return this._pad2; + } + + set + { + this._pad2 = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "pad3")] + public byte Pad3 + { + get + { + return this._pad3; + } + + set + { + this._pad3 = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteFloat((float)this._erp); + dos.WriteFloat((float)this._frequency); + dos.WriteFloat((float)this._pgrf); + dos.WriteFloat((float)this._pulseWidth); + dos.WriteUnsignedInt((uint)this._burstLength); + dos.WriteUnsignedByte((byte)this._applicableModes); + dos.WriteUnsignedShort((ushort)this._pad2); + dos.WriteUnsignedByte((byte)this._pad3); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._erp = dis.ReadFloat(); + this._frequency = dis.ReadFloat(); + this._pgrf = dis.ReadFloat(); + this._pulseWidth = dis.ReadFloat(); + this._burstLength = dis.ReadUnsignedInt(); + this._applicableModes = dis.ReadUnsignedByte(); + this._pad2 = dis.ReadUnsignedShort(); + this._pad3 = dis.ReadUnsignedByte(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._erp.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._frequency.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pgrf.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pulseWidth.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._burstLength.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._applicableModes.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad3.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as FundamentalParameterDataIff; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(FundamentalParameterDataIff obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._erp != obj._erp) + { + ivarsEqual = false; + } + + if (this._frequency != obj._frequency) + { + ivarsEqual = false; + } + + if (this._pgrf != obj._pgrf) + { + ivarsEqual = false; + } + + if (this._pulseWidth != obj._pulseWidth) + { + ivarsEqual = false; + } + + if (this._burstLength != obj._burstLength) + { + ivarsEqual = false; + } + + if (this._applicableModes != obj._applicableModes) + { + ivarsEqual = false; + } + + if (this._pad2 != obj._pad2) + { + ivarsEqual = false; + } + + if (this._pad3 != obj._pad3) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._erp.GetHashCode(); + result = GenerateHash(result) ^ this._frequency.GetHashCode(); + result = GenerateHash(result) ^ this._pgrf.GetHashCode(); + result = GenerateHash(result) ^ this._pulseWidth.GetHashCode(); + result = GenerateHash(result) ^ this._burstLength.GetHashCode(); + result = GenerateHash(result) ^ this._applicableModes.GetHashCode(); + result = GenerateHash(result) ^ this._pad2.GetHashCode(); + result = GenerateHash(result) ^ this._pad3.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/GridAxisRecord.cs b/Libs/CsharpDis6/Dis1998/Generated/GridAxisRecord.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/GridAxisRecord.cs rename to Libs/CsharpDis6/Dis1998/Generated/GridAxisRecord.cs index b6ebc0f..acd0f6a 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/GridAxisRecord.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/GridAxisRecord.cs @@ -1,332 +1,332 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// 5.2.44: Grid data record, a common abstract superclass for several subtypes - /// - [Serializable] - [XmlRoot] - public partial class GridAxisRecord - { - /// - /// type of environmental sample - /// - private ushort _sampleType; - - /// - /// value that describes data representation - /// - private ushort _dataRepresentation; - - /// - /// Initializes a new instance of the class. - /// - public GridAxisRecord() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(GridAxisRecord left, GridAxisRecord right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(GridAxisRecord left, GridAxisRecord right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 2; // this._sampleType - marshalSize += 2; // this._dataRepresentation - return marshalSize; - } - - /// - /// Gets or sets the type of environmental sample - /// - [XmlElement(Type = typeof(ushort), ElementName = "sampleType")] - public ushort SampleType - { - get - { - return this._sampleType; - } - - set - { - this._sampleType = value; - } - } - - /// - /// Gets or sets the value that describes data representation - /// - [XmlElement(Type = typeof(ushort), ElementName = "dataRepresentation")] - public ushort DataRepresentation - { - get - { - return this._dataRepresentation; - } - - set - { - this._dataRepresentation = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._sampleType); - dos.WriteUnsignedShort((ushort)this._dataRepresentation); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._sampleType = dis.ReadUnsignedShort(); - this._dataRepresentation = dis.ReadUnsignedShort(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._sampleType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._dataRepresentation.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as GridAxisRecord; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(GridAxisRecord obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._sampleType != obj._sampleType) - { - ivarsEqual = false; - } - - if (this._dataRepresentation != obj._dataRepresentation) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._sampleType.GetHashCode(); - result = GenerateHash(result) ^ this._dataRepresentation.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// 5.2.44: Grid data record, a common abstract superclass for several subtypes + /// + [Serializable] + [XmlRoot] + public partial class GridAxisRecord + { + /// + /// type of environmental sample + /// + private ushort _sampleType; + + /// + /// value that describes data representation + /// + private ushort _dataRepresentation; + + /// + /// Initializes a new instance of the class. + /// + public GridAxisRecord() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(GridAxisRecord left, GridAxisRecord right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(GridAxisRecord left, GridAxisRecord right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 2; // this._sampleType + marshalSize += 2; // this._dataRepresentation + return marshalSize; + } + + /// + /// Gets or sets the type of environmental sample + /// + [XmlElement(Type = typeof(ushort), ElementName = "sampleType")] + public ushort SampleType + { + get + { + return this._sampleType; + } + + set + { + this._sampleType = value; + } + } + + /// + /// Gets or sets the value that describes data representation + /// + [XmlElement(Type = typeof(ushort), ElementName = "dataRepresentation")] + public ushort DataRepresentation + { + get + { + return this._dataRepresentation; + } + + set + { + this._dataRepresentation = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._sampleType); + dos.WriteUnsignedShort((ushort)this._dataRepresentation); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._sampleType = dis.ReadUnsignedShort(); + this._dataRepresentation = dis.ReadUnsignedShort(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._sampleType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._dataRepresentation.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as GridAxisRecord; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(GridAxisRecord obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._sampleType != obj._sampleType) + { + ivarsEqual = false; + } + + if (this._dataRepresentation != obj._dataRepresentation) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._sampleType.GetHashCode(); + result = GenerateHash(result) ^ this._dataRepresentation.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/GridAxisRecordRepresentation0.cs b/Libs/CsharpDis6/Dis1998/Generated/GridAxisRecordRepresentation0.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/GridAxisRecordRepresentation0.cs rename to Libs/CsharpDis6/Dis1998/Generated/GridAxisRecordRepresentation0.cs index 8ad02c4..12da337 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/GridAxisRecordRepresentation0.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/GridAxisRecordRepresentation0.cs @@ -1,346 +1,346 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// 5.2.44: Grid data record, representation 0 - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(OneByteChunk))] - public partial class GridAxisRecordRepresentation0 : GridAxisRecord, IEquatable - { - /// - /// number of bytes of environmental state data - /// - private ushort _numberOfBytes; - - /// - /// variable length list of data parameters ^^^this is wrong--need padding as well - /// - private byte[] _dataValues; - - /// - /// Initializes a new instance of the class. - /// - public GridAxisRecordRepresentation0() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(GridAxisRecordRepresentation0 left, GridAxisRecordRepresentation0 right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(GridAxisRecordRepresentation0 left, GridAxisRecordRepresentation0 right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 2; // this._numberOfBytes - marshalSize += this._dataValues.Length; - return marshalSize; - } - - /// - /// Gets or sets the number of bytes of environmental state data - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfBytes method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(ushort), ElementName = "numberOfBytes")] - public ushort NumberOfBytes - { - get - { - return this._numberOfBytes; - } - - set - { - this._numberOfBytes = value; - } - } - - /// - /// Gets or sets the variable length list of data parameters ^^^this is wrong--need padding as well - /// - [XmlElement(ElementName = "dataValuesList", DataType = "hexBinary")] - public byte[] DataValues - { - get - { - return this._dataValues; - } - - set - { - this._dataValues = value; - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._dataValues.Length); - - dos.WriteByte(this._dataValues); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._numberOfBytes = dis.ReadUnsignedShort(); - - this._dataValues = dis.ReadByteArray(this._numberOfBytes); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._dataValues.Length.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - foreach (byte b in this._dataValues) - { - sb.Append(b.ToString("X2", CultureInfo.InvariantCulture)); - } - - sb.AppendLine(""); - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as GridAxisRecordRepresentation0; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(GridAxisRecordRepresentation0 obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._numberOfBytes != obj._numberOfBytes) - { - ivarsEqual = false; - } - - if (!this._dataValues.Equals(obj._dataValues)) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._numberOfBytes.GetHashCode(); - - if (this._dataValues.Length > 0) - { - for (int idx = 0; idx < this._dataValues.Length; idx++) - { - result = GenerateHash(result) ^ this._dataValues[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// 5.2.44: Grid data record, representation 0 + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(OneByteChunk))] + public partial class GridAxisRecordRepresentation0 : GridAxisRecord, IEquatable + { + /// + /// number of bytes of environmental state data + /// + private ushort _numberOfBytes; + + /// + /// variable length list of data parameters ^^^this is wrong--need padding as well + /// + private byte[] _dataValues; + + /// + /// Initializes a new instance of the class. + /// + public GridAxisRecordRepresentation0() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(GridAxisRecordRepresentation0 left, GridAxisRecordRepresentation0 right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(GridAxisRecordRepresentation0 left, GridAxisRecordRepresentation0 right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 2; // this._numberOfBytes + marshalSize += this._dataValues.Length; + return marshalSize; + } + + /// + /// Gets or sets the number of bytes of environmental state data + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfBytes method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(ushort), ElementName = "numberOfBytes")] + public ushort NumberOfBytes + { + get + { + return this._numberOfBytes; + } + + set + { + this._numberOfBytes = value; + } + } + + /// + /// Gets or sets the variable length list of data parameters ^^^this is wrong--need padding as well + /// + [XmlElement(ElementName = "dataValuesList", DataType = "hexBinary")] + public byte[] DataValues + { + get + { + return this._dataValues; + } + + set + { + this._dataValues = value; + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._dataValues.Length); + + dos.WriteByte(this._dataValues); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._numberOfBytes = dis.ReadUnsignedShort(); + + this._dataValues = dis.ReadByteArray(this._numberOfBytes); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._dataValues.Length.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + foreach (byte b in this._dataValues) + { + sb.Append(b.ToString("X2", CultureInfo.InvariantCulture)); + } + + sb.AppendLine(""); + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as GridAxisRecordRepresentation0; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(GridAxisRecordRepresentation0 obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._numberOfBytes != obj._numberOfBytes) + { + ivarsEqual = false; + } + + if (!this._dataValues.Equals(obj._dataValues)) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._numberOfBytes.GetHashCode(); + + if (this._dataValues.Length > 0) + { + for (int idx = 0; idx < this._dataValues.Length; idx++) + { + result = GenerateHash(result) ^ this._dataValues[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/GridAxisRecordRepresentation1.cs b/Libs/CsharpDis6/Dis1998/Generated/GridAxisRecordRepresentation1.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/GridAxisRecordRepresentation1.cs rename to Libs/CsharpDis6/Dis1998/Generated/GridAxisRecordRepresentation1.cs index ed86d8b..d81ef01 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/GridAxisRecordRepresentation1.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/GridAxisRecordRepresentation1.cs @@ -1,430 +1,430 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// 5.2.44: Grid data record, representation 1 - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(TwoByteChunk))] - public partial class GridAxisRecordRepresentation1 : GridAxisRecord, IEquatable - { - /// - /// constant scale factor - /// - private float _fieldScale; - - /// - /// constant offset used to scale grid data - /// - private float _fieldOffset; - - /// - /// Number of data values - /// - private ushort _numberOfValues; - - /// - /// variable length list of data parameters ^^^this is wrong--need padding as well - /// - private List _dataValues = new List(); - - /// - /// Initializes a new instance of the class. - /// - public GridAxisRecordRepresentation1() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(GridAxisRecordRepresentation1 left, GridAxisRecordRepresentation1 right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(GridAxisRecordRepresentation1 left, GridAxisRecordRepresentation1 right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 4; // this._fieldScale - marshalSize += 4; // this._fieldOffset - marshalSize += 2; // this._numberOfValues - for (int idx = 0; idx < this._dataValues.Count; idx++) - { - TwoByteChunk listElement = (TwoByteChunk)this._dataValues[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the constant scale factor - /// - [XmlElement(Type = typeof(float), ElementName = "fieldScale")] - public float FieldScale - { - get - { - return this._fieldScale; - } - - set - { - this._fieldScale = value; - } - } - - /// - /// Gets or sets the constant offset used to scale grid data - /// - [XmlElement(Type = typeof(float), ElementName = "fieldOffset")] - public float FieldOffset - { - get - { - return this._fieldOffset; - } - - set - { - this._fieldOffset = value; - } - } - - /// - /// Gets or sets the Number of data values - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfValues method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(ushort), ElementName = "numberOfValues")] - public ushort NumberOfValues - { - get - { - return this._numberOfValues; - } - - set - { - this._numberOfValues = value; - } - } - - /// - /// Gets the variable length list of data parameters ^^^this is wrong--need padding as well - /// - [XmlElement(ElementName = "dataValuesList", Type = typeof(List))] - public List DataValues - { - get - { - return this._dataValues; - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteFloat((float)this._fieldScale); - dos.WriteFloat((float)this._fieldOffset); - dos.WriteUnsignedShort((ushort)this._dataValues.Count); - - for (int idx = 0; idx < this._dataValues.Count; idx++) - { - TwoByteChunk aTwoByteChunk = (TwoByteChunk)this._dataValues[idx]; - aTwoByteChunk.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._fieldScale = dis.ReadFloat(); - this._fieldOffset = dis.ReadFloat(); - this._numberOfValues = dis.ReadUnsignedShort(); - - for (int idx = 0; idx < this.NumberOfValues; idx++) - { - TwoByteChunk anX = new TwoByteChunk(); - anX.Unmarshal(dis); - this._dataValues.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._fieldScale.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fieldOffset.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._dataValues.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._dataValues.Count; idx++) - { - sb.AppendLine(""); - TwoByteChunk aTwoByteChunk = (TwoByteChunk)this._dataValues[idx]; - aTwoByteChunk.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as GridAxisRecordRepresentation1; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(GridAxisRecordRepresentation1 obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._fieldScale != obj._fieldScale) - { - ivarsEqual = false; - } - - if (this._fieldOffset != obj._fieldOffset) - { - ivarsEqual = false; - } - - if (this._numberOfValues != obj._numberOfValues) - { - ivarsEqual = false; - } - - if (this._dataValues.Count != obj._dataValues.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._dataValues.Count; idx++) - { - if (!this._dataValues[idx].Equals(obj._dataValues[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._fieldScale.GetHashCode(); - result = GenerateHash(result) ^ this._fieldOffset.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfValues.GetHashCode(); - - if (this._dataValues.Count > 0) - { - for (int idx = 0; idx < this._dataValues.Count; idx++) - { - result = GenerateHash(result) ^ this._dataValues[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// 5.2.44: Grid data record, representation 1 + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(TwoByteChunk))] + public partial class GridAxisRecordRepresentation1 : GridAxisRecord, IEquatable + { + /// + /// constant scale factor + /// + private float _fieldScale; + + /// + /// constant offset used to scale grid data + /// + private float _fieldOffset; + + /// + /// Number of data values + /// + private ushort _numberOfValues; + + /// + /// variable length list of data parameters ^^^this is wrong--need padding as well + /// + private List _dataValues = new List(); + + /// + /// Initializes a new instance of the class. + /// + public GridAxisRecordRepresentation1() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(GridAxisRecordRepresentation1 left, GridAxisRecordRepresentation1 right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(GridAxisRecordRepresentation1 left, GridAxisRecordRepresentation1 right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 4; // this._fieldScale + marshalSize += 4; // this._fieldOffset + marshalSize += 2; // this._numberOfValues + for (int idx = 0; idx < this._dataValues.Count; idx++) + { + TwoByteChunk listElement = (TwoByteChunk)this._dataValues[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the constant scale factor + /// + [XmlElement(Type = typeof(float), ElementName = "fieldScale")] + public float FieldScale + { + get + { + return this._fieldScale; + } + + set + { + this._fieldScale = value; + } + } + + /// + /// Gets or sets the constant offset used to scale grid data + /// + [XmlElement(Type = typeof(float), ElementName = "fieldOffset")] + public float FieldOffset + { + get + { + return this._fieldOffset; + } + + set + { + this._fieldOffset = value; + } + } + + /// + /// Gets or sets the Number of data values + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfValues method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(ushort), ElementName = "numberOfValues")] + public ushort NumberOfValues + { + get + { + return this._numberOfValues; + } + + set + { + this._numberOfValues = value; + } + } + + /// + /// Gets the variable length list of data parameters ^^^this is wrong--need padding as well + /// + [XmlElement(ElementName = "dataValuesList", Type = typeof(List))] + public List DataValues + { + get + { + return this._dataValues; + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteFloat((float)this._fieldScale); + dos.WriteFloat((float)this._fieldOffset); + dos.WriteUnsignedShort((ushort)this._dataValues.Count); + + for (int idx = 0; idx < this._dataValues.Count; idx++) + { + TwoByteChunk aTwoByteChunk = (TwoByteChunk)this._dataValues[idx]; + aTwoByteChunk.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._fieldScale = dis.ReadFloat(); + this._fieldOffset = dis.ReadFloat(); + this._numberOfValues = dis.ReadUnsignedShort(); + + for (int idx = 0; idx < this.NumberOfValues; idx++) + { + TwoByteChunk anX = new TwoByteChunk(); + anX.Unmarshal(dis); + this._dataValues.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._fieldScale.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fieldOffset.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._dataValues.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._dataValues.Count; idx++) + { + sb.AppendLine(""); + TwoByteChunk aTwoByteChunk = (TwoByteChunk)this._dataValues[idx]; + aTwoByteChunk.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as GridAxisRecordRepresentation1; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(GridAxisRecordRepresentation1 obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._fieldScale != obj._fieldScale) + { + ivarsEqual = false; + } + + if (this._fieldOffset != obj._fieldOffset) + { + ivarsEqual = false; + } + + if (this._numberOfValues != obj._numberOfValues) + { + ivarsEqual = false; + } + + if (this._dataValues.Count != obj._dataValues.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._dataValues.Count; idx++) + { + if (!this._dataValues[idx].Equals(obj._dataValues[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._fieldScale.GetHashCode(); + result = GenerateHash(result) ^ this._fieldOffset.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfValues.GetHashCode(); + + if (this._dataValues.Count > 0) + { + for (int idx = 0; idx < this._dataValues.Count; idx++) + { + result = GenerateHash(result) ^ this._dataValues[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/GridAxisRecordRepresentation2.cs b/Libs/CsharpDis6/Dis1998/Generated/GridAxisRecordRepresentation2.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/GridAxisRecordRepresentation2.cs rename to Libs/CsharpDis6/Dis1998/Generated/GridAxisRecordRepresentation2.cs index 63b513e..4555bb2 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/GridAxisRecordRepresentation2.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/GridAxisRecordRepresentation2.cs @@ -1,366 +1,366 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// 5.2.44: Grid data record, representation 1 - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(FourByteChunk))] - public partial class GridAxisRecordRepresentation2 : GridAxisRecord, IEquatable - { - /// - /// number of values - /// - private ushort _numberOfValues; - - /// - /// variable length list of data parameters ^^^this is wrong--need padding as well - /// - private List _dataValues = new List(); - - /// - /// Initializes a new instance of the class. - /// - public GridAxisRecordRepresentation2() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(GridAxisRecordRepresentation2 left, GridAxisRecordRepresentation2 right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(GridAxisRecordRepresentation2 left, GridAxisRecordRepresentation2 right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 2; // this._numberOfValues - for (int idx = 0; idx < this._dataValues.Count; idx++) - { - FourByteChunk listElement = (FourByteChunk)this._dataValues[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the number of values - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfValues method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(ushort), ElementName = "numberOfValues")] - public ushort NumberOfValues - { - get - { - return this._numberOfValues; - } - - set - { - this._numberOfValues = value; - } - } - - /// - /// Gets the variable length list of data parameters ^^^this is wrong--need padding as well - /// - [XmlElement(ElementName = "dataValuesList", Type = typeof(List))] - public List DataValues - { - get - { - return this._dataValues; - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._dataValues.Count); - - for (int idx = 0; idx < this._dataValues.Count; idx++) - { - FourByteChunk aFourByteChunk = (FourByteChunk)this._dataValues[idx]; - aFourByteChunk.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._numberOfValues = dis.ReadUnsignedShort(); - - for (int idx = 0; idx < this.NumberOfValues; idx++) - { - FourByteChunk anX = new FourByteChunk(); - anX.Unmarshal(dis); - this._dataValues.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._dataValues.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._dataValues.Count; idx++) - { - sb.AppendLine(""); - FourByteChunk aFourByteChunk = (FourByteChunk)this._dataValues[idx]; - aFourByteChunk.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as GridAxisRecordRepresentation2; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(GridAxisRecordRepresentation2 obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._numberOfValues != obj._numberOfValues) - { - ivarsEqual = false; - } - - if (this._dataValues.Count != obj._dataValues.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._dataValues.Count; idx++) - { - if (!this._dataValues[idx].Equals(obj._dataValues[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._numberOfValues.GetHashCode(); - - if (this._dataValues.Count > 0) - { - for (int idx = 0; idx < this._dataValues.Count; idx++) - { - result = GenerateHash(result) ^ this._dataValues[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// 5.2.44: Grid data record, representation 1 + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(FourByteChunk))] + public partial class GridAxisRecordRepresentation2 : GridAxisRecord, IEquatable + { + /// + /// number of values + /// + private ushort _numberOfValues; + + /// + /// variable length list of data parameters ^^^this is wrong--need padding as well + /// + private List _dataValues = new List(); + + /// + /// Initializes a new instance of the class. + /// + public GridAxisRecordRepresentation2() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(GridAxisRecordRepresentation2 left, GridAxisRecordRepresentation2 right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(GridAxisRecordRepresentation2 left, GridAxisRecordRepresentation2 right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 2; // this._numberOfValues + for (int idx = 0; idx < this._dataValues.Count; idx++) + { + FourByteChunk listElement = (FourByteChunk)this._dataValues[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the number of values + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfValues method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(ushort), ElementName = "numberOfValues")] + public ushort NumberOfValues + { + get + { + return this._numberOfValues; + } + + set + { + this._numberOfValues = value; + } + } + + /// + /// Gets the variable length list of data parameters ^^^this is wrong--need padding as well + /// + [XmlElement(ElementName = "dataValuesList", Type = typeof(List))] + public List DataValues + { + get + { + return this._dataValues; + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._dataValues.Count); + + for (int idx = 0; idx < this._dataValues.Count; idx++) + { + FourByteChunk aFourByteChunk = (FourByteChunk)this._dataValues[idx]; + aFourByteChunk.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._numberOfValues = dis.ReadUnsignedShort(); + + for (int idx = 0; idx < this.NumberOfValues; idx++) + { + FourByteChunk anX = new FourByteChunk(); + anX.Unmarshal(dis); + this._dataValues.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._dataValues.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._dataValues.Count; idx++) + { + sb.AppendLine(""); + FourByteChunk aFourByteChunk = (FourByteChunk)this._dataValues[idx]; + aFourByteChunk.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as GridAxisRecordRepresentation2; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(GridAxisRecordRepresentation2 obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._numberOfValues != obj._numberOfValues) + { + ivarsEqual = false; + } + + if (this._dataValues.Count != obj._dataValues.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._dataValues.Count; idx++) + { + if (!this._dataValues[idx].Equals(obj._dataValues[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._numberOfValues.GetHashCode(); + + if (this._dataValues.Count > 0) + { + for (int idx = 0; idx < this._dataValues.Count; idx++) + { + result = GenerateHash(result) ^ this._dataValues[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/GriddedDataPdu.cs b/Libs/CsharpDis6/Dis1998/Generated/GriddedDataPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/GriddedDataPdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/GriddedDataPdu.cs index 5302600..17d9064 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/GriddedDataPdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/GriddedDataPdu.cs @@ -1,803 +1,803 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.11.2: Information about globat, spatially varying enviornmental effects. This requires manual cleanup; the grid axis records are variable sized. UNFINISHED - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(EntityType))] - [XmlInclude(typeof(Orientation))] - [XmlInclude(typeof(GridAxisRecord))] - public partial class GriddedDataPdu : SyntheticEnvironmentFamilyPdu, IEquatable - { - /// - /// environmental simulation application ID - /// - private EntityID _environmentalSimulationApplicationID = new EntityID(); - - /// - /// unique identifier for each piece of enviornmental data - /// - private ushort _fieldNumber; - - /// - /// sequence number for the total set of PDUS used to transmit the data - /// - private ushort _pduNumber; - - /// - /// Total number of PDUS used to transmit the data - /// - private ushort _pduTotal; - - /// - /// coordinate system of the grid - /// - private ushort _coordinateSystem; - - /// - /// number of grid axes for the environmental data - /// - private byte _numberOfGridAxes; - - /// - /// are domain grid axes identidal to those of the priveious domain update? - /// - private byte _constantGrid; - - /// - /// type of environment - /// - private EntityType _environmentType = new EntityType(); - - /// - /// orientation of the data grid - /// - private Orientation _orientation = new Orientation(); - - /// - /// valid time of the enviormental data sample, 64 bit unsigned int - /// - private long _sampleTime; - - /// - /// total number of all data values for all pdus for an environmental sample - /// - private uint _totalValues; - - /// - /// total number of data values at each grid point. - /// - private byte _vectorDimension; - - /// - /// padding - /// - private ushort _padding1; - - /// - /// padding - /// - private byte _padding2; - - /// - /// Grid data ^^^This is wrong - /// - private List _gridDataList = new List(); - - /// - /// Initializes a new instance of the class. - /// - public GriddedDataPdu() - { - PduType = (byte)42; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(GriddedDataPdu left, GriddedDataPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(GriddedDataPdu left, GriddedDataPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._environmentalSimulationApplicationID.GetMarshalledSize(); // this._environmentalSimulationApplicationID - marshalSize += 2; // this._fieldNumber - marshalSize += 2; // this._pduNumber - marshalSize += 2; // this._pduTotal - marshalSize += 2; // this._coordinateSystem - marshalSize += 1; // this._numberOfGridAxes - marshalSize += 1; // this._constantGrid - marshalSize += this._environmentType.GetMarshalledSize(); // this._environmentType - marshalSize += this._orientation.GetMarshalledSize(); // this._orientation - marshalSize += 8; // this._sampleTime - marshalSize += 4; // this._totalValues - marshalSize += 1; // this._vectorDimension - marshalSize += 2; // this._padding1 - marshalSize += 1; // this._padding2 - for (int idx = 0; idx < this._gridDataList.Count; idx++) - { - GridAxisRecord listElement = (GridAxisRecord)this._gridDataList[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the environmental simulation application ID - /// - [XmlElement(Type = typeof(EntityID), ElementName = "environmentalSimulationApplicationID")] - public EntityID EnvironmentalSimulationApplicationID - { - get - { - return this._environmentalSimulationApplicationID; - } - - set - { - this._environmentalSimulationApplicationID = value; - } - } - - /// - /// Gets or sets the unique identifier for each piece of enviornmental data - /// - [XmlElement(Type = typeof(ushort), ElementName = "fieldNumber")] - public ushort FieldNumber - { - get - { - return this._fieldNumber; - } - - set - { - this._fieldNumber = value; - } - } - - /// - /// Gets or sets the sequence number for the total set of PDUS used to transmit the data - /// - [XmlElement(Type = typeof(ushort), ElementName = "pduNumber")] - public ushort PduNumber - { - get - { - return this._pduNumber; - } - - set - { - this._pduNumber = value; - } - } - - /// - /// Gets or sets the Total number of PDUS used to transmit the data - /// - [XmlElement(Type = typeof(ushort), ElementName = "pduTotal")] - public ushort PduTotal - { - get - { - return this._pduTotal; - } - - set - { - this._pduTotal = value; - } - } - - /// - /// Gets or sets the coordinate system of the grid - /// - [XmlElement(Type = typeof(ushort), ElementName = "coordinateSystem")] - public ushort CoordinateSystem - { - get - { - return this._coordinateSystem; - } - - set - { - this._coordinateSystem = value; - } - } - - /// - /// Gets or sets the number of grid axes for the environmental data - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfGridAxes method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfGridAxes")] - public byte NumberOfGridAxes - { - get - { - return this._numberOfGridAxes; - } - - set - { - this._numberOfGridAxes = value; - } - } - - /// - /// Gets or sets the are domain grid axes identidal to those of the priveious domain update? - /// - [XmlElement(Type = typeof(byte), ElementName = "constantGrid")] - public byte ConstantGrid - { - get - { - return this._constantGrid; - } - - set - { - this._constantGrid = value; - } - } - - /// - /// Gets or sets the type of environment - /// - [XmlElement(Type = typeof(EntityType), ElementName = "environmentType")] - public EntityType EnvironmentType - { - get - { - return this._environmentType; - } - - set - { - this._environmentType = value; - } - } - - /// - /// Gets or sets the orientation of the data grid - /// - [XmlElement(Type = typeof(Orientation), ElementName = "orientation")] - public Orientation Orientation - { - get - { - return this._orientation; - } - - set - { - this._orientation = value; - } - } - - /// - /// Gets or sets the valid time of the enviormental data sample, 64 bit unsigned int - /// - [XmlElement(Type = typeof(long), ElementName = "sampleTime")] - public long SampleTime - { - get - { - return this._sampleTime; - } - - set - { - this._sampleTime = value; - } - } - - /// - /// Gets or sets the total number of all data values for all pdus for an environmental sample - /// - [XmlElement(Type = typeof(uint), ElementName = "totalValues")] - public uint TotalValues - { - get - { - return this._totalValues; - } - - set - { - this._totalValues = value; - } - } - - /// - /// Gets or sets the total number of data values at each grid point. - /// - [XmlElement(Type = typeof(byte), ElementName = "vectorDimension")] - public byte VectorDimension - { - get - { - return this._vectorDimension; - } - - set - { - this._vectorDimension = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(ushort), ElementName = "padding1")] - public ushort Padding1 - { - get - { - return this._padding1; - } - - set - { - this._padding1 = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "padding2")] - public byte Padding2 - { - get - { - return this._padding2; - } - - set - { - this._padding2 = value; - } - } - - /// - /// Gets the Grid data ^^^This is wrong - /// - [XmlElement(ElementName = "gridDataListList", Type = typeof(List))] - public List GridDataList - { - get - { - return this._gridDataList; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._environmentalSimulationApplicationID.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._fieldNumber); - dos.WriteUnsignedShort((ushort)this._pduNumber); - dos.WriteUnsignedShort((ushort)this._pduTotal); - dos.WriteUnsignedShort((ushort)this._coordinateSystem); - dos.WriteUnsignedByte((byte)this._gridDataList.Count); - dos.WriteUnsignedByte((byte)this._constantGrid); - this._environmentType.Marshal(dos); - this._orientation.Marshal(dos); - dos.WriteLong((long)this._sampleTime); - dos.WriteUnsignedInt((uint)this._totalValues); - dos.WriteUnsignedByte((byte)this._vectorDimension); - dos.WriteUnsignedShort((ushort)this._padding1); - dos.WriteUnsignedByte((byte)this._padding2); - - for (int idx = 0; idx < this._gridDataList.Count; idx++) - { - GridAxisRecord aGridAxisRecord = (GridAxisRecord)this._gridDataList[idx]; - aGridAxisRecord.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._environmentalSimulationApplicationID.Unmarshal(dis); - this._fieldNumber = dis.ReadUnsignedShort(); - this._pduNumber = dis.ReadUnsignedShort(); - this._pduTotal = dis.ReadUnsignedShort(); - this._coordinateSystem = dis.ReadUnsignedShort(); - this._numberOfGridAxes = dis.ReadUnsignedByte(); - this._constantGrid = dis.ReadUnsignedByte(); - this._environmentType.Unmarshal(dis); - this._orientation.Unmarshal(dis); - this._sampleTime = dis.ReadLong(); - this._totalValues = dis.ReadUnsignedInt(); - this._vectorDimension = dis.ReadUnsignedByte(); - this._padding1 = dis.ReadUnsignedShort(); - this._padding2 = dis.ReadUnsignedByte(); - - for (int idx = 0; idx < this.NumberOfGridAxes; idx++) - { - GridAxisRecord anX = new GridAxisRecord(); - anX.Unmarshal(dis); - this._gridDataList.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._environmentalSimulationApplicationID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._fieldNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pduNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pduTotal.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._coordinateSystem.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._gridDataList.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._constantGrid.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._environmentType.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._orientation.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._sampleTime.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._totalValues.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._vectorDimension.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._gridDataList.Count; idx++) - { - sb.AppendLine(""); - GridAxisRecord aGridAxisRecord = (GridAxisRecord)this._gridDataList[idx]; - aGridAxisRecord.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as GriddedDataPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(GriddedDataPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._environmentalSimulationApplicationID.Equals(obj._environmentalSimulationApplicationID)) - { - ivarsEqual = false; - } - - if (this._fieldNumber != obj._fieldNumber) - { - ivarsEqual = false; - } - - if (this._pduNumber != obj._pduNumber) - { - ivarsEqual = false; - } - - if (this._pduTotal != obj._pduTotal) - { - ivarsEqual = false; - } - - if (this._coordinateSystem != obj._coordinateSystem) - { - ivarsEqual = false; - } - - if (this._numberOfGridAxes != obj._numberOfGridAxes) - { - ivarsEqual = false; - } - - if (this._constantGrid != obj._constantGrid) - { - ivarsEqual = false; - } - - if (!this._environmentType.Equals(obj._environmentType)) - { - ivarsEqual = false; - } - - if (!this._orientation.Equals(obj._orientation)) - { - ivarsEqual = false; - } - - if (this._sampleTime != obj._sampleTime) - { - ivarsEqual = false; - } - - if (this._totalValues != obj._totalValues) - { - ivarsEqual = false; - } - - if (this._vectorDimension != obj._vectorDimension) - { - ivarsEqual = false; - } - - if (this._padding1 != obj._padding1) - { - ivarsEqual = false; - } - - if (this._padding2 != obj._padding2) - { - ivarsEqual = false; - } - - if (this._gridDataList.Count != obj._gridDataList.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._gridDataList.Count; idx++) - { - if (!this._gridDataList[idx].Equals(obj._gridDataList[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._environmentalSimulationApplicationID.GetHashCode(); - result = GenerateHash(result) ^ this._fieldNumber.GetHashCode(); - result = GenerateHash(result) ^ this._pduNumber.GetHashCode(); - result = GenerateHash(result) ^ this._pduTotal.GetHashCode(); - result = GenerateHash(result) ^ this._coordinateSystem.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfGridAxes.GetHashCode(); - result = GenerateHash(result) ^ this._constantGrid.GetHashCode(); - result = GenerateHash(result) ^ this._environmentType.GetHashCode(); - result = GenerateHash(result) ^ this._orientation.GetHashCode(); - result = GenerateHash(result) ^ this._sampleTime.GetHashCode(); - result = GenerateHash(result) ^ this._totalValues.GetHashCode(); - result = GenerateHash(result) ^ this._vectorDimension.GetHashCode(); - result = GenerateHash(result) ^ this._padding1.GetHashCode(); - result = GenerateHash(result) ^ this._padding2.GetHashCode(); - - if (this._gridDataList.Count > 0) - { - for (int idx = 0; idx < this._gridDataList.Count; idx++) - { - result = GenerateHash(result) ^ this._gridDataList[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.11.2: Information about globat, spatially varying enviornmental effects. This requires manual cleanup; the grid axis records are variable sized. UNFINISHED + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(EntityType))] + [XmlInclude(typeof(Orientation))] + [XmlInclude(typeof(GridAxisRecord))] + public partial class GriddedDataPdu : SyntheticEnvironmentFamilyPdu, IEquatable + { + /// + /// environmental simulation application ID + /// + private EntityID _environmentalSimulationApplicationID = new EntityID(); + + /// + /// unique identifier for each piece of enviornmental data + /// + private ushort _fieldNumber; + + /// + /// sequence number for the total set of PDUS used to transmit the data + /// + private ushort _pduNumber; + + /// + /// Total number of PDUS used to transmit the data + /// + private ushort _pduTotal; + + /// + /// coordinate system of the grid + /// + private ushort _coordinateSystem; + + /// + /// number of grid axes for the environmental data + /// + private byte _numberOfGridAxes; + + /// + /// are domain grid axes identidal to those of the priveious domain update? + /// + private byte _constantGrid; + + /// + /// type of environment + /// + private EntityType _environmentType = new EntityType(); + + /// + /// orientation of the data grid + /// + private Orientation _orientation = new Orientation(); + + /// + /// valid time of the enviormental data sample, 64 bit unsigned int + /// + private long _sampleTime; + + /// + /// total number of all data values for all pdus for an environmental sample + /// + private uint _totalValues; + + /// + /// total number of data values at each grid point. + /// + private byte _vectorDimension; + + /// + /// padding + /// + private ushort _padding1; + + /// + /// padding + /// + private byte _padding2; + + /// + /// Grid data ^^^This is wrong + /// + private List _gridDataList = new List(); + + /// + /// Initializes a new instance of the class. + /// + public GriddedDataPdu() + { + PduType = (byte)42; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(GriddedDataPdu left, GriddedDataPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(GriddedDataPdu left, GriddedDataPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._environmentalSimulationApplicationID.GetMarshalledSize(); // this._environmentalSimulationApplicationID + marshalSize += 2; // this._fieldNumber + marshalSize += 2; // this._pduNumber + marshalSize += 2; // this._pduTotal + marshalSize += 2; // this._coordinateSystem + marshalSize += 1; // this._numberOfGridAxes + marshalSize += 1; // this._constantGrid + marshalSize += this._environmentType.GetMarshalledSize(); // this._environmentType + marshalSize += this._orientation.GetMarshalledSize(); // this._orientation + marshalSize += 8; // this._sampleTime + marshalSize += 4; // this._totalValues + marshalSize += 1; // this._vectorDimension + marshalSize += 2; // this._padding1 + marshalSize += 1; // this._padding2 + for (int idx = 0; idx < this._gridDataList.Count; idx++) + { + GridAxisRecord listElement = (GridAxisRecord)this._gridDataList[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the environmental simulation application ID + /// + [XmlElement(Type = typeof(EntityID), ElementName = "environmentalSimulationApplicationID")] + public EntityID EnvironmentalSimulationApplicationID + { + get + { + return this._environmentalSimulationApplicationID; + } + + set + { + this._environmentalSimulationApplicationID = value; + } + } + + /// + /// Gets or sets the unique identifier for each piece of enviornmental data + /// + [XmlElement(Type = typeof(ushort), ElementName = "fieldNumber")] + public ushort FieldNumber + { + get + { + return this._fieldNumber; + } + + set + { + this._fieldNumber = value; + } + } + + /// + /// Gets or sets the sequence number for the total set of PDUS used to transmit the data + /// + [XmlElement(Type = typeof(ushort), ElementName = "pduNumber")] + public ushort PduNumber + { + get + { + return this._pduNumber; + } + + set + { + this._pduNumber = value; + } + } + + /// + /// Gets or sets the Total number of PDUS used to transmit the data + /// + [XmlElement(Type = typeof(ushort), ElementName = "pduTotal")] + public ushort PduTotal + { + get + { + return this._pduTotal; + } + + set + { + this._pduTotal = value; + } + } + + /// + /// Gets or sets the coordinate system of the grid + /// + [XmlElement(Type = typeof(ushort), ElementName = "coordinateSystem")] + public ushort CoordinateSystem + { + get + { + return this._coordinateSystem; + } + + set + { + this._coordinateSystem = value; + } + } + + /// + /// Gets or sets the number of grid axes for the environmental data + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfGridAxes method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfGridAxes")] + public byte NumberOfGridAxes + { + get + { + return this._numberOfGridAxes; + } + + set + { + this._numberOfGridAxes = value; + } + } + + /// + /// Gets or sets the are domain grid axes identidal to those of the priveious domain update? + /// + [XmlElement(Type = typeof(byte), ElementName = "constantGrid")] + public byte ConstantGrid + { + get + { + return this._constantGrid; + } + + set + { + this._constantGrid = value; + } + } + + /// + /// Gets or sets the type of environment + /// + [XmlElement(Type = typeof(EntityType), ElementName = "environmentType")] + public EntityType EnvironmentType + { + get + { + return this._environmentType; + } + + set + { + this._environmentType = value; + } + } + + /// + /// Gets or sets the orientation of the data grid + /// + [XmlElement(Type = typeof(Orientation), ElementName = "orientation")] + public Orientation Orientation + { + get + { + return this._orientation; + } + + set + { + this._orientation = value; + } + } + + /// + /// Gets or sets the valid time of the enviormental data sample, 64 bit unsigned int + /// + [XmlElement(Type = typeof(long), ElementName = "sampleTime")] + public long SampleTime + { + get + { + return this._sampleTime; + } + + set + { + this._sampleTime = value; + } + } + + /// + /// Gets or sets the total number of all data values for all pdus for an environmental sample + /// + [XmlElement(Type = typeof(uint), ElementName = "totalValues")] + public uint TotalValues + { + get + { + return this._totalValues; + } + + set + { + this._totalValues = value; + } + } + + /// + /// Gets or sets the total number of data values at each grid point. + /// + [XmlElement(Type = typeof(byte), ElementName = "vectorDimension")] + public byte VectorDimension + { + get + { + return this._vectorDimension; + } + + set + { + this._vectorDimension = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(ushort), ElementName = "padding1")] + public ushort Padding1 + { + get + { + return this._padding1; + } + + set + { + this._padding1 = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "padding2")] + public byte Padding2 + { + get + { + return this._padding2; + } + + set + { + this._padding2 = value; + } + } + + /// + /// Gets the Grid data ^^^This is wrong + /// + [XmlElement(ElementName = "gridDataListList", Type = typeof(List))] + public List GridDataList + { + get + { + return this._gridDataList; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._environmentalSimulationApplicationID.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._fieldNumber); + dos.WriteUnsignedShort((ushort)this._pduNumber); + dos.WriteUnsignedShort((ushort)this._pduTotal); + dos.WriteUnsignedShort((ushort)this._coordinateSystem); + dos.WriteUnsignedByte((byte)this._gridDataList.Count); + dos.WriteUnsignedByte((byte)this._constantGrid); + this._environmentType.Marshal(dos); + this._orientation.Marshal(dos); + dos.WriteLong((long)this._sampleTime); + dos.WriteUnsignedInt((uint)this._totalValues); + dos.WriteUnsignedByte((byte)this._vectorDimension); + dos.WriteUnsignedShort((ushort)this._padding1); + dos.WriteUnsignedByte((byte)this._padding2); + + for (int idx = 0; idx < this._gridDataList.Count; idx++) + { + GridAxisRecord aGridAxisRecord = (GridAxisRecord)this._gridDataList[idx]; + aGridAxisRecord.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._environmentalSimulationApplicationID.Unmarshal(dis); + this._fieldNumber = dis.ReadUnsignedShort(); + this._pduNumber = dis.ReadUnsignedShort(); + this._pduTotal = dis.ReadUnsignedShort(); + this._coordinateSystem = dis.ReadUnsignedShort(); + this._numberOfGridAxes = dis.ReadUnsignedByte(); + this._constantGrid = dis.ReadUnsignedByte(); + this._environmentType.Unmarshal(dis); + this._orientation.Unmarshal(dis); + this._sampleTime = dis.ReadLong(); + this._totalValues = dis.ReadUnsignedInt(); + this._vectorDimension = dis.ReadUnsignedByte(); + this._padding1 = dis.ReadUnsignedShort(); + this._padding2 = dis.ReadUnsignedByte(); + + for (int idx = 0; idx < this.NumberOfGridAxes; idx++) + { + GridAxisRecord anX = new GridAxisRecord(); + anX.Unmarshal(dis); + this._gridDataList.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._environmentalSimulationApplicationID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._fieldNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pduNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pduTotal.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._coordinateSystem.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._gridDataList.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._constantGrid.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._environmentType.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._orientation.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._sampleTime.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._totalValues.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._vectorDimension.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._gridDataList.Count; idx++) + { + sb.AppendLine(""); + GridAxisRecord aGridAxisRecord = (GridAxisRecord)this._gridDataList[idx]; + aGridAxisRecord.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as GriddedDataPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(GriddedDataPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._environmentalSimulationApplicationID.Equals(obj._environmentalSimulationApplicationID)) + { + ivarsEqual = false; + } + + if (this._fieldNumber != obj._fieldNumber) + { + ivarsEqual = false; + } + + if (this._pduNumber != obj._pduNumber) + { + ivarsEqual = false; + } + + if (this._pduTotal != obj._pduTotal) + { + ivarsEqual = false; + } + + if (this._coordinateSystem != obj._coordinateSystem) + { + ivarsEqual = false; + } + + if (this._numberOfGridAxes != obj._numberOfGridAxes) + { + ivarsEqual = false; + } + + if (this._constantGrid != obj._constantGrid) + { + ivarsEqual = false; + } + + if (!this._environmentType.Equals(obj._environmentType)) + { + ivarsEqual = false; + } + + if (!this._orientation.Equals(obj._orientation)) + { + ivarsEqual = false; + } + + if (this._sampleTime != obj._sampleTime) + { + ivarsEqual = false; + } + + if (this._totalValues != obj._totalValues) + { + ivarsEqual = false; + } + + if (this._vectorDimension != obj._vectorDimension) + { + ivarsEqual = false; + } + + if (this._padding1 != obj._padding1) + { + ivarsEqual = false; + } + + if (this._padding2 != obj._padding2) + { + ivarsEqual = false; + } + + if (this._gridDataList.Count != obj._gridDataList.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._gridDataList.Count; idx++) + { + if (!this._gridDataList[idx].Equals(obj._gridDataList[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._environmentalSimulationApplicationID.GetHashCode(); + result = GenerateHash(result) ^ this._fieldNumber.GetHashCode(); + result = GenerateHash(result) ^ this._pduNumber.GetHashCode(); + result = GenerateHash(result) ^ this._pduTotal.GetHashCode(); + result = GenerateHash(result) ^ this._coordinateSystem.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfGridAxes.GetHashCode(); + result = GenerateHash(result) ^ this._constantGrid.GetHashCode(); + result = GenerateHash(result) ^ this._environmentType.GetHashCode(); + result = GenerateHash(result) ^ this._orientation.GetHashCode(); + result = GenerateHash(result) ^ this._sampleTime.GetHashCode(); + result = GenerateHash(result) ^ this._totalValues.GetHashCode(); + result = GenerateHash(result) ^ this._vectorDimension.GetHashCode(); + result = GenerateHash(result) ^ this._padding1.GetHashCode(); + result = GenerateHash(result) ^ this._padding2.GetHashCode(); + + if (this._gridDataList.Count > 0) + { + for (int idx = 0; idx < this._gridDataList.Count; idx++) + { + result = GenerateHash(result) ^ this._gridDataList[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/IffAtcNavAidsLayer1Pdu.cs b/Libs/CsharpDis6/Dis1998/Generated/IffAtcNavAidsLayer1Pdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/IffAtcNavAidsLayer1Pdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/IffAtcNavAidsLayer1Pdu.cs index ddab62d..772de8a 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/IffAtcNavAidsLayer1Pdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/IffAtcNavAidsLayer1Pdu.cs @@ -1,479 +1,479 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// 5.3.7.4.1: Navigational and IFF PDU. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(EventID))] - [XmlInclude(typeof(Vector3Float))] - [XmlInclude(typeof(SystemID))] - [XmlInclude(typeof(IffFundamentalData))] - public partial class IffAtcNavAidsLayer1Pdu : DistributedEmissionsFamilyPdu, IEquatable - { - /// - /// ID of the entity that is the source of the emissions - /// - private EntityID _emittingEntityId = new EntityID(); - - /// - /// Number generated by the issuing simulation to associate realted events. - /// - private EventID _eventID = new EventID(); - - /// - /// Location wrt entity. There is some ambugiuity in the standard here, but this is the order it is listed in the table. - /// - private Vector3Float _location = new Vector3Float(); - - /// - /// System ID information - /// - private SystemID _systemID = new SystemID(); - - /// - /// padding - /// - private ushort _pad2; - - /// - /// fundamental parameters - /// - private IffFundamentalData _fundamentalParameters = new IffFundamentalData(); - - /// - /// Initializes a new instance of the class. - /// - public IffAtcNavAidsLayer1Pdu() - { - PduType = (byte)28; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(IffAtcNavAidsLayer1Pdu left, IffAtcNavAidsLayer1Pdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(IffAtcNavAidsLayer1Pdu left, IffAtcNavAidsLayer1Pdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._emittingEntityId.GetMarshalledSize(); // this._emittingEntityId - marshalSize += this._eventID.GetMarshalledSize(); // this._eventID - marshalSize += this._location.GetMarshalledSize(); // this._location - marshalSize += this._systemID.GetMarshalledSize(); // this._systemID - marshalSize += 2; // this._pad2 - marshalSize += this._fundamentalParameters.GetMarshalledSize(); // this._fundamentalParameters - return marshalSize; - } - - /// - /// Gets or sets the ID of the entity that is the source of the emissions - /// - [XmlElement(Type = typeof(EntityID), ElementName = "emittingEntityId")] - public EntityID EmittingEntityId - { - get - { - return this._emittingEntityId; - } - - set - { - this._emittingEntityId = value; - } - } - - /// - /// Gets or sets the Number generated by the issuing simulation to associate realted events. - /// - [XmlElement(Type = typeof(EventID), ElementName = "eventID")] - public EventID EventID - { - get - { - return this._eventID; - } - - set - { - this._eventID = value; - } - } - - /// - /// Gets or sets the Location wrt entity. There is some ambugiuity in the standard here, but this is the order it is listed in the table. - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "location")] - public Vector3Float Location - { - get - { - return this._location; - } - - set - { - this._location = value; - } - } - - /// - /// Gets or sets the System ID information - /// - [XmlElement(Type = typeof(SystemID), ElementName = "systemID")] - public SystemID SystemID - { - get - { - return this._systemID; - } - - set - { - this._systemID = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(ushort), ElementName = "pad2")] - public ushort Pad2 - { - get - { - return this._pad2; - } - - set - { - this._pad2 = value; - } - } - - /// - /// Gets or sets the fundamental parameters - /// - [XmlElement(Type = typeof(IffFundamentalData), ElementName = "fundamentalParameters")] - public IffFundamentalData FundamentalParameters - { - get - { - return this._fundamentalParameters; - } - - set - { - this._fundamentalParameters = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._emittingEntityId.Marshal(dos); - this._eventID.Marshal(dos); - this._location.Marshal(dos); - this._systemID.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._pad2); - this._fundamentalParameters.Marshal(dos); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._emittingEntityId.Unmarshal(dis); - this._eventID.Unmarshal(dis); - this._location.Unmarshal(dis); - this._systemID.Unmarshal(dis); - this._pad2 = dis.ReadUnsignedShort(); - this._fundamentalParameters.Unmarshal(dis); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._emittingEntityId.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._eventID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._location.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._systemID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._fundamentalParameters.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as IffAtcNavAidsLayer1Pdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(IffAtcNavAidsLayer1Pdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._emittingEntityId.Equals(obj._emittingEntityId)) - { - ivarsEqual = false; - } - - if (!this._eventID.Equals(obj._eventID)) - { - ivarsEqual = false; - } - - if (!this._location.Equals(obj._location)) - { - ivarsEqual = false; - } - - if (!this._systemID.Equals(obj._systemID)) - { - ivarsEqual = false; - } - - if (this._pad2 != obj._pad2) - { - ivarsEqual = false; - } - - if (!this._fundamentalParameters.Equals(obj._fundamentalParameters)) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._emittingEntityId.GetHashCode(); - result = GenerateHash(result) ^ this._eventID.GetHashCode(); - result = GenerateHash(result) ^ this._location.GetHashCode(); - result = GenerateHash(result) ^ this._systemID.GetHashCode(); - result = GenerateHash(result) ^ this._pad2.GetHashCode(); - result = GenerateHash(result) ^ this._fundamentalParameters.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// 5.3.7.4.1: Navigational and IFF PDU. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(EventID))] + [XmlInclude(typeof(Vector3Float))] + [XmlInclude(typeof(SystemID))] + [XmlInclude(typeof(IffFundamentalData))] + public partial class IffAtcNavAidsLayer1Pdu : DistributedEmissionsFamilyPdu, IEquatable + { + /// + /// ID of the entity that is the source of the emissions + /// + private EntityID _emittingEntityId = new EntityID(); + + /// + /// Number generated by the issuing simulation to associate realted events. + /// + private EventID _eventID = new EventID(); + + /// + /// Location wrt entity. There is some ambugiuity in the standard here, but this is the order it is listed in the table. + /// + private Vector3Float _location = new Vector3Float(); + + /// + /// System ID information + /// + private SystemID _systemID = new SystemID(); + + /// + /// padding + /// + private ushort _pad2; + + /// + /// fundamental parameters + /// + private IffFundamentalData _fundamentalParameters = new IffFundamentalData(); + + /// + /// Initializes a new instance of the class. + /// + public IffAtcNavAidsLayer1Pdu() + { + PduType = (byte)28; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(IffAtcNavAidsLayer1Pdu left, IffAtcNavAidsLayer1Pdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(IffAtcNavAidsLayer1Pdu left, IffAtcNavAidsLayer1Pdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._emittingEntityId.GetMarshalledSize(); // this._emittingEntityId + marshalSize += this._eventID.GetMarshalledSize(); // this._eventID + marshalSize += this._location.GetMarshalledSize(); // this._location + marshalSize += this._systemID.GetMarshalledSize(); // this._systemID + marshalSize += 2; // this._pad2 + marshalSize += this._fundamentalParameters.GetMarshalledSize(); // this._fundamentalParameters + return marshalSize; + } + + /// + /// Gets or sets the ID of the entity that is the source of the emissions + /// + [XmlElement(Type = typeof(EntityID), ElementName = "emittingEntityId")] + public EntityID EmittingEntityId + { + get + { + return this._emittingEntityId; + } + + set + { + this._emittingEntityId = value; + } + } + + /// + /// Gets or sets the Number generated by the issuing simulation to associate realted events. + /// + [XmlElement(Type = typeof(EventID), ElementName = "eventID")] + public EventID EventID + { + get + { + return this._eventID; + } + + set + { + this._eventID = value; + } + } + + /// + /// Gets or sets the Location wrt entity. There is some ambugiuity in the standard here, but this is the order it is listed in the table. + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "location")] + public Vector3Float Location + { + get + { + return this._location; + } + + set + { + this._location = value; + } + } + + /// + /// Gets or sets the System ID information + /// + [XmlElement(Type = typeof(SystemID), ElementName = "systemID")] + public SystemID SystemID + { + get + { + return this._systemID; + } + + set + { + this._systemID = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(ushort), ElementName = "pad2")] + public ushort Pad2 + { + get + { + return this._pad2; + } + + set + { + this._pad2 = value; + } + } + + /// + /// Gets or sets the fundamental parameters + /// + [XmlElement(Type = typeof(IffFundamentalData), ElementName = "fundamentalParameters")] + public IffFundamentalData FundamentalParameters + { + get + { + return this._fundamentalParameters; + } + + set + { + this._fundamentalParameters = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._emittingEntityId.Marshal(dos); + this._eventID.Marshal(dos); + this._location.Marshal(dos); + this._systemID.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._pad2); + this._fundamentalParameters.Marshal(dos); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._emittingEntityId.Unmarshal(dis); + this._eventID.Unmarshal(dis); + this._location.Unmarshal(dis); + this._systemID.Unmarshal(dis); + this._pad2 = dis.ReadUnsignedShort(); + this._fundamentalParameters.Unmarshal(dis); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._emittingEntityId.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._eventID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._location.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._systemID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._fundamentalParameters.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as IffAtcNavAidsLayer1Pdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(IffAtcNavAidsLayer1Pdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._emittingEntityId.Equals(obj._emittingEntityId)) + { + ivarsEqual = false; + } + + if (!this._eventID.Equals(obj._eventID)) + { + ivarsEqual = false; + } + + if (!this._location.Equals(obj._location)) + { + ivarsEqual = false; + } + + if (!this._systemID.Equals(obj._systemID)) + { + ivarsEqual = false; + } + + if (this._pad2 != obj._pad2) + { + ivarsEqual = false; + } + + if (!this._fundamentalParameters.Equals(obj._fundamentalParameters)) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._emittingEntityId.GetHashCode(); + result = GenerateHash(result) ^ this._eventID.GetHashCode(); + result = GenerateHash(result) ^ this._location.GetHashCode(); + result = GenerateHash(result) ^ this._systemID.GetHashCode(); + result = GenerateHash(result) ^ this._pad2.GetHashCode(); + result = GenerateHash(result) ^ this._fundamentalParameters.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/IffAtcNavAidsLayer2Pdu.cs b/Libs/CsharpDis6/Dis1998/Generated/IffAtcNavAidsLayer2Pdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/IffAtcNavAidsLayer2Pdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/IffAtcNavAidsLayer2Pdu.cs index e24e644..466c04b 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/IffAtcNavAidsLayer2Pdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/IffAtcNavAidsLayer2Pdu.cs @@ -1,444 +1,444 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.7.4.2 When present, layer 2 should follow layer 1 and have the following fields. This requires manual cleanup. the beamData attribute semantics are used in multiple ways. UNFINSISHED - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(LayerHeader))] - [XmlInclude(typeof(BeamData))] - [XmlInclude(typeof(FundamentalParameterDataIff))] - public partial class IffAtcNavAidsLayer2Pdu : IffAtcNavAidsLayer1Pdu, IEquatable - { - /// - /// layer header - /// - private LayerHeader _layerHeader = new LayerHeader(); - - /// - /// beam data - /// - private BeamData _beamData = new BeamData(); - - /// - /// Secondary operational data, 5.2.57 - /// - private BeamData _secondaryOperationalData = new BeamData(); - - /// - /// variable length list of fundamental parameters. ^^^This is wrong - /// - private List _fundamentalIffParameters = new List(); - - /// - /// Initializes a new instance of the class. - /// - public IffAtcNavAidsLayer2Pdu() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(IffAtcNavAidsLayer2Pdu left, IffAtcNavAidsLayer2Pdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(IffAtcNavAidsLayer2Pdu left, IffAtcNavAidsLayer2Pdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._layerHeader.GetMarshalledSize(); // this._layerHeader - marshalSize += this._beamData.GetMarshalledSize(); // this._beamData - marshalSize += this._secondaryOperationalData.GetMarshalledSize(); // this._secondaryOperationalData - for (int idx = 0; idx < this._fundamentalIffParameters.Count; idx++) - { - FundamentalParameterDataIff listElement = (FundamentalParameterDataIff)this._fundamentalIffParameters[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the layer header - /// - [XmlElement(Type = typeof(LayerHeader), ElementName = "layerHeader")] - public LayerHeader LayerHeader - { - get - { - return this._layerHeader; - } - - set - { - this._layerHeader = value; - } - } - - /// - /// Gets or sets the beam data - /// - [XmlElement(Type = typeof(BeamData), ElementName = "beamData")] - public BeamData BeamData - { - get - { - return this._beamData; - } - - set - { - this._beamData = value; - } - } - - /// - /// Gets or sets the Secondary operational data, 5.2.57 - /// - [XmlElement(Type = typeof(BeamData), ElementName = "secondaryOperationalData")] - public BeamData SecondaryOperationalData - { - get - { - return this._secondaryOperationalData; - } - - set - { - this._secondaryOperationalData = value; - } - } - - /// - /// Gets the variable length list of fundamental parameters. ^^^This is wrong - /// - [XmlElement(ElementName = "fundamentalIffParametersList", Type = typeof(List))] - public List FundamentalIffParameters - { - get - { - return this._fundamentalIffParameters; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._layerHeader.Marshal(dos); - this._beamData.Marshal(dos); - this._secondaryOperationalData.Marshal(dos); - - for (int idx = 0; idx < this._fundamentalIffParameters.Count; idx++) - { - FundamentalParameterDataIff aFundamentalParameterDataIff = (FundamentalParameterDataIff)this._fundamentalIffParameters[idx]; - aFundamentalParameterDataIff.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._layerHeader.Unmarshal(dis); - this._beamData.Unmarshal(dis); - this._secondaryOperationalData.Unmarshal(dis); - - for (int idx = 0; idx < this.Pad2; idx++) - { - FundamentalParameterDataIff anX = new FundamentalParameterDataIff(); - anX.Unmarshal(dis); - this._fundamentalIffParameters.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._layerHeader.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._beamData.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._secondaryOperationalData.Reflection(sb); - sb.AppendLine(""); - for (int idx = 0; idx < this._fundamentalIffParameters.Count; idx++) - { - sb.AppendLine(""); - FundamentalParameterDataIff aFundamentalParameterDataIff = (FundamentalParameterDataIff)this._fundamentalIffParameters[idx]; - aFundamentalParameterDataIff.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as IffAtcNavAidsLayer2Pdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(IffAtcNavAidsLayer2Pdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._layerHeader.Equals(obj._layerHeader)) - { - ivarsEqual = false; - } - - if (!this._beamData.Equals(obj._beamData)) - { - ivarsEqual = false; - } - - if (!this._secondaryOperationalData.Equals(obj._secondaryOperationalData)) - { - ivarsEqual = false; - } - - if (this._fundamentalIffParameters.Count != obj._fundamentalIffParameters.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._fundamentalIffParameters.Count; idx++) - { - if (!this._fundamentalIffParameters[idx].Equals(obj._fundamentalIffParameters[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._layerHeader.GetHashCode(); - result = GenerateHash(result) ^ this._beamData.GetHashCode(); - result = GenerateHash(result) ^ this._secondaryOperationalData.GetHashCode(); - - if (this._fundamentalIffParameters.Count > 0) - { - for (int idx = 0; idx < this._fundamentalIffParameters.Count; idx++) - { - result = GenerateHash(result) ^ this._fundamentalIffParameters[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.7.4.2 When present, layer 2 should follow layer 1 and have the following fields. This requires manual cleanup. the beamData attribute semantics are used in multiple ways. UNFINSISHED + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(LayerHeader))] + [XmlInclude(typeof(BeamData))] + [XmlInclude(typeof(FundamentalParameterDataIff))] + public partial class IffAtcNavAidsLayer2Pdu : IffAtcNavAidsLayer1Pdu, IEquatable + { + /// + /// layer header + /// + private LayerHeader _layerHeader = new LayerHeader(); + + /// + /// beam data + /// + private BeamData _beamData = new BeamData(); + + /// + /// Secondary operational data, 5.2.57 + /// + private BeamData _secondaryOperationalData = new BeamData(); + + /// + /// variable length list of fundamental parameters. ^^^This is wrong + /// + private List _fundamentalIffParameters = new List(); + + /// + /// Initializes a new instance of the class. + /// + public IffAtcNavAidsLayer2Pdu() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(IffAtcNavAidsLayer2Pdu left, IffAtcNavAidsLayer2Pdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(IffAtcNavAidsLayer2Pdu left, IffAtcNavAidsLayer2Pdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._layerHeader.GetMarshalledSize(); // this._layerHeader + marshalSize += this._beamData.GetMarshalledSize(); // this._beamData + marshalSize += this._secondaryOperationalData.GetMarshalledSize(); // this._secondaryOperationalData + for (int idx = 0; idx < this._fundamentalIffParameters.Count; idx++) + { + FundamentalParameterDataIff listElement = (FundamentalParameterDataIff)this._fundamentalIffParameters[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the layer header + /// + [XmlElement(Type = typeof(LayerHeader), ElementName = "layerHeader")] + public LayerHeader LayerHeader + { + get + { + return this._layerHeader; + } + + set + { + this._layerHeader = value; + } + } + + /// + /// Gets or sets the beam data + /// + [XmlElement(Type = typeof(BeamData), ElementName = "beamData")] + public BeamData BeamData + { + get + { + return this._beamData; + } + + set + { + this._beamData = value; + } + } + + /// + /// Gets or sets the Secondary operational data, 5.2.57 + /// + [XmlElement(Type = typeof(BeamData), ElementName = "secondaryOperationalData")] + public BeamData SecondaryOperationalData + { + get + { + return this._secondaryOperationalData; + } + + set + { + this._secondaryOperationalData = value; + } + } + + /// + /// Gets the variable length list of fundamental parameters. ^^^This is wrong + /// + [XmlElement(ElementName = "fundamentalIffParametersList", Type = typeof(List))] + public List FundamentalIffParameters + { + get + { + return this._fundamentalIffParameters; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._layerHeader.Marshal(dos); + this._beamData.Marshal(dos); + this._secondaryOperationalData.Marshal(dos); + + for (int idx = 0; idx < this._fundamentalIffParameters.Count; idx++) + { + FundamentalParameterDataIff aFundamentalParameterDataIff = (FundamentalParameterDataIff)this._fundamentalIffParameters[idx]; + aFundamentalParameterDataIff.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._layerHeader.Unmarshal(dis); + this._beamData.Unmarshal(dis); + this._secondaryOperationalData.Unmarshal(dis); + + for (int idx = 0; idx < this.Pad2; idx++) + { + FundamentalParameterDataIff anX = new FundamentalParameterDataIff(); + anX.Unmarshal(dis); + this._fundamentalIffParameters.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._layerHeader.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._beamData.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._secondaryOperationalData.Reflection(sb); + sb.AppendLine(""); + for (int idx = 0; idx < this._fundamentalIffParameters.Count; idx++) + { + sb.AppendLine(""); + FundamentalParameterDataIff aFundamentalParameterDataIff = (FundamentalParameterDataIff)this._fundamentalIffParameters[idx]; + aFundamentalParameterDataIff.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as IffAtcNavAidsLayer2Pdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(IffAtcNavAidsLayer2Pdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._layerHeader.Equals(obj._layerHeader)) + { + ivarsEqual = false; + } + + if (!this._beamData.Equals(obj._beamData)) + { + ivarsEqual = false; + } + + if (!this._secondaryOperationalData.Equals(obj._secondaryOperationalData)) + { + ivarsEqual = false; + } + + if (this._fundamentalIffParameters.Count != obj._fundamentalIffParameters.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._fundamentalIffParameters.Count; idx++) + { + if (!this._fundamentalIffParameters[idx].Equals(obj._fundamentalIffParameters[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._layerHeader.GetHashCode(); + result = GenerateHash(result) ^ this._beamData.GetHashCode(); + result = GenerateHash(result) ^ this._secondaryOperationalData.GetHashCode(); + + if (this._fundamentalIffParameters.Count > 0) + { + for (int idx = 0; idx < this._fundamentalIffParameters.Count; idx++) + { + result = GenerateHash(result) ^ this._fundamentalIffParameters[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/IffFundamentalData.cs b/Libs/CsharpDis6/Dis1998/Generated/IffFundamentalData.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/IffFundamentalData.cs rename to Libs/CsharpDis6/Dis1998/Generated/IffFundamentalData.cs index 259a94e..8df4f16 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/IffFundamentalData.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/IffFundamentalData.cs @@ -1,588 +1,588 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// 5.2.42. Basic operational data ofr IFF ATC NAVAIDS - /// - [Serializable] - [XmlRoot] - public partial class IffFundamentalData - { - /// - /// system status - /// - private byte _systemStatus; - - /// - /// Alternate parameter 4 - /// - private byte _alternateParameter4; - - /// - /// eight boolean fields - /// - private byte _informationLayers; - - /// - /// enumeration - /// - private byte _modifier; - - /// - /// parameter, enumeration - /// - private ushort _parameter1; - - /// - /// parameter, enumeration - /// - private ushort _parameter2; - - /// - /// parameter, enumeration - /// - private ushort _parameter3; - - /// - /// parameter, enumeration - /// - private ushort _parameter4; - - /// - /// parameter, enumeration - /// - private ushort _parameter5; - - /// - /// parameter, enumeration - /// - private ushort _parameter6; - - /// - /// Initializes a new instance of the class. - /// - public IffFundamentalData() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(IffFundamentalData left, IffFundamentalData right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(IffFundamentalData left, IffFundamentalData right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._systemStatus - marshalSize += 1; // this._alternateParameter4 - marshalSize += 1; // this._informationLayers - marshalSize += 1; // this._modifier - marshalSize += 2; // this._parameter1 - marshalSize += 2; // this._parameter2 - marshalSize += 2; // this._parameter3 - marshalSize += 2; // this._parameter4 - marshalSize += 2; // this._parameter5 - marshalSize += 2; // this._parameter6 - return marshalSize; - } - - /// - /// Gets or sets the system status - /// - [XmlElement(Type = typeof(byte), ElementName = "systemStatus")] - public byte SystemStatus - { - get - { - return this._systemStatus; - } - - set - { - this._systemStatus = value; - } - } - - /// - /// Gets or sets the Alternate parameter 4 - /// - [XmlElement(Type = typeof(byte), ElementName = "alternateParameter4")] - public byte AlternateParameter4 - { - get - { - return this._alternateParameter4; - } - - set - { - this._alternateParameter4 = value; - } - } - - /// - /// Gets or sets the eight boolean fields - /// - [XmlElement(Type = typeof(byte), ElementName = "informationLayers")] - public byte InformationLayers - { - get - { - return this._informationLayers; - } - - set - { - this._informationLayers = value; - } - } - - /// - /// Gets or sets the enumeration - /// - [XmlElement(Type = typeof(byte), ElementName = "modifier")] - public byte Modifier - { - get - { - return this._modifier; - } - - set - { - this._modifier = value; - } - } - - /// - /// Gets or sets the parameter, enumeration - /// - [XmlElement(Type = typeof(ushort), ElementName = "parameter1")] - public ushort Parameter1 - { - get - { - return this._parameter1; - } - - set - { - this._parameter1 = value; - } - } - - /// - /// Gets or sets the parameter, enumeration - /// - [XmlElement(Type = typeof(ushort), ElementName = "parameter2")] - public ushort Parameter2 - { - get - { - return this._parameter2; - } - - set - { - this._parameter2 = value; - } - } - - /// - /// Gets or sets the parameter, enumeration - /// - [XmlElement(Type = typeof(ushort), ElementName = "parameter3")] - public ushort Parameter3 - { - get - { - return this._parameter3; - } - - set - { - this._parameter3 = value; - } - } - - /// - /// Gets or sets the parameter, enumeration - /// - [XmlElement(Type = typeof(ushort), ElementName = "parameter4")] - public ushort Parameter4 - { - get - { - return this._parameter4; - } - - set - { - this._parameter4 = value; - } - } - - /// - /// Gets or sets the parameter, enumeration - /// - [XmlElement(Type = typeof(ushort), ElementName = "parameter5")] - public ushort Parameter5 - { - get - { - return this._parameter5; - } - - set - { - this._parameter5 = value; - } - } - - /// - /// Gets or sets the parameter, enumeration - /// - [XmlElement(Type = typeof(ushort), ElementName = "parameter6")] - public ushort Parameter6 - { - get - { - return this._parameter6; - } - - set - { - this._parameter6 = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._systemStatus); - dos.WriteUnsignedByte((byte)this._alternateParameter4); - dos.WriteUnsignedByte((byte)this._informationLayers); - dos.WriteUnsignedByte((byte)this._modifier); - dos.WriteUnsignedShort((ushort)this._parameter1); - dos.WriteUnsignedShort((ushort)this._parameter2); - dos.WriteUnsignedShort((ushort)this._parameter3); - dos.WriteUnsignedShort((ushort)this._parameter4); - dos.WriteUnsignedShort((ushort)this._parameter5); - dos.WriteUnsignedShort((ushort)this._parameter6); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._systemStatus = dis.ReadUnsignedByte(); - this._alternateParameter4 = dis.ReadUnsignedByte(); - this._informationLayers = dis.ReadUnsignedByte(); - this._modifier = dis.ReadUnsignedByte(); - this._parameter1 = dis.ReadUnsignedShort(); - this._parameter2 = dis.ReadUnsignedShort(); - this._parameter3 = dis.ReadUnsignedShort(); - this._parameter4 = dis.ReadUnsignedShort(); - this._parameter5 = dis.ReadUnsignedShort(); - this._parameter6 = dis.ReadUnsignedShort(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._systemStatus.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._alternateParameter4.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._informationLayers.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._modifier.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._parameter1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._parameter2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._parameter3.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._parameter4.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._parameter5.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._parameter6.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as IffFundamentalData; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(IffFundamentalData obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._systemStatus != obj._systemStatus) - { - ivarsEqual = false; - } - - if (this._alternateParameter4 != obj._alternateParameter4) - { - ivarsEqual = false; - } - - if (this._informationLayers != obj._informationLayers) - { - ivarsEqual = false; - } - - if (this._modifier != obj._modifier) - { - ivarsEqual = false; - } - - if (this._parameter1 != obj._parameter1) - { - ivarsEqual = false; - } - - if (this._parameter2 != obj._parameter2) - { - ivarsEqual = false; - } - - if (this._parameter3 != obj._parameter3) - { - ivarsEqual = false; - } - - if (this._parameter4 != obj._parameter4) - { - ivarsEqual = false; - } - - if (this._parameter5 != obj._parameter5) - { - ivarsEqual = false; - } - - if (this._parameter6 != obj._parameter6) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._systemStatus.GetHashCode(); - result = GenerateHash(result) ^ this._alternateParameter4.GetHashCode(); - result = GenerateHash(result) ^ this._informationLayers.GetHashCode(); - result = GenerateHash(result) ^ this._modifier.GetHashCode(); - result = GenerateHash(result) ^ this._parameter1.GetHashCode(); - result = GenerateHash(result) ^ this._parameter2.GetHashCode(); - result = GenerateHash(result) ^ this._parameter3.GetHashCode(); - result = GenerateHash(result) ^ this._parameter4.GetHashCode(); - result = GenerateHash(result) ^ this._parameter5.GetHashCode(); - result = GenerateHash(result) ^ this._parameter6.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// 5.2.42. Basic operational data ofr IFF ATC NAVAIDS + /// + [Serializable] + [XmlRoot] + public partial class IffFundamentalData + { + /// + /// system status + /// + private byte _systemStatus; + + /// + /// Alternate parameter 4 + /// + private byte _alternateParameter4; + + /// + /// eight boolean fields + /// + private byte _informationLayers; + + /// + /// enumeration + /// + private byte _modifier; + + /// + /// parameter, enumeration + /// + private ushort _parameter1; + + /// + /// parameter, enumeration + /// + private ushort _parameter2; + + /// + /// parameter, enumeration + /// + private ushort _parameter3; + + /// + /// parameter, enumeration + /// + private ushort _parameter4; + + /// + /// parameter, enumeration + /// + private ushort _parameter5; + + /// + /// parameter, enumeration + /// + private ushort _parameter6; + + /// + /// Initializes a new instance of the class. + /// + public IffFundamentalData() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(IffFundamentalData left, IffFundamentalData right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(IffFundamentalData left, IffFundamentalData right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._systemStatus + marshalSize += 1; // this._alternateParameter4 + marshalSize += 1; // this._informationLayers + marshalSize += 1; // this._modifier + marshalSize += 2; // this._parameter1 + marshalSize += 2; // this._parameter2 + marshalSize += 2; // this._parameter3 + marshalSize += 2; // this._parameter4 + marshalSize += 2; // this._parameter5 + marshalSize += 2; // this._parameter6 + return marshalSize; + } + + /// + /// Gets or sets the system status + /// + [XmlElement(Type = typeof(byte), ElementName = "systemStatus")] + public byte SystemStatus + { + get + { + return this._systemStatus; + } + + set + { + this._systemStatus = value; + } + } + + /// + /// Gets or sets the Alternate parameter 4 + /// + [XmlElement(Type = typeof(byte), ElementName = "alternateParameter4")] + public byte AlternateParameter4 + { + get + { + return this._alternateParameter4; + } + + set + { + this._alternateParameter4 = value; + } + } + + /// + /// Gets or sets the eight boolean fields + /// + [XmlElement(Type = typeof(byte), ElementName = "informationLayers")] + public byte InformationLayers + { + get + { + return this._informationLayers; + } + + set + { + this._informationLayers = value; + } + } + + /// + /// Gets or sets the enumeration + /// + [XmlElement(Type = typeof(byte), ElementName = "modifier")] + public byte Modifier + { + get + { + return this._modifier; + } + + set + { + this._modifier = value; + } + } + + /// + /// Gets or sets the parameter, enumeration + /// + [XmlElement(Type = typeof(ushort), ElementName = "parameter1")] + public ushort Parameter1 + { + get + { + return this._parameter1; + } + + set + { + this._parameter1 = value; + } + } + + /// + /// Gets or sets the parameter, enumeration + /// + [XmlElement(Type = typeof(ushort), ElementName = "parameter2")] + public ushort Parameter2 + { + get + { + return this._parameter2; + } + + set + { + this._parameter2 = value; + } + } + + /// + /// Gets or sets the parameter, enumeration + /// + [XmlElement(Type = typeof(ushort), ElementName = "parameter3")] + public ushort Parameter3 + { + get + { + return this._parameter3; + } + + set + { + this._parameter3 = value; + } + } + + /// + /// Gets or sets the parameter, enumeration + /// + [XmlElement(Type = typeof(ushort), ElementName = "parameter4")] + public ushort Parameter4 + { + get + { + return this._parameter4; + } + + set + { + this._parameter4 = value; + } + } + + /// + /// Gets or sets the parameter, enumeration + /// + [XmlElement(Type = typeof(ushort), ElementName = "parameter5")] + public ushort Parameter5 + { + get + { + return this._parameter5; + } + + set + { + this._parameter5 = value; + } + } + + /// + /// Gets or sets the parameter, enumeration + /// + [XmlElement(Type = typeof(ushort), ElementName = "parameter6")] + public ushort Parameter6 + { + get + { + return this._parameter6; + } + + set + { + this._parameter6 = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._systemStatus); + dos.WriteUnsignedByte((byte)this._alternateParameter4); + dos.WriteUnsignedByte((byte)this._informationLayers); + dos.WriteUnsignedByte((byte)this._modifier); + dos.WriteUnsignedShort((ushort)this._parameter1); + dos.WriteUnsignedShort((ushort)this._parameter2); + dos.WriteUnsignedShort((ushort)this._parameter3); + dos.WriteUnsignedShort((ushort)this._parameter4); + dos.WriteUnsignedShort((ushort)this._parameter5); + dos.WriteUnsignedShort((ushort)this._parameter6); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._systemStatus = dis.ReadUnsignedByte(); + this._alternateParameter4 = dis.ReadUnsignedByte(); + this._informationLayers = dis.ReadUnsignedByte(); + this._modifier = dis.ReadUnsignedByte(); + this._parameter1 = dis.ReadUnsignedShort(); + this._parameter2 = dis.ReadUnsignedShort(); + this._parameter3 = dis.ReadUnsignedShort(); + this._parameter4 = dis.ReadUnsignedShort(); + this._parameter5 = dis.ReadUnsignedShort(); + this._parameter6 = dis.ReadUnsignedShort(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._systemStatus.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._alternateParameter4.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._informationLayers.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._modifier.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._parameter1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._parameter2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._parameter3.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._parameter4.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._parameter5.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._parameter6.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as IffFundamentalData; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(IffFundamentalData obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._systemStatus != obj._systemStatus) + { + ivarsEqual = false; + } + + if (this._alternateParameter4 != obj._alternateParameter4) + { + ivarsEqual = false; + } + + if (this._informationLayers != obj._informationLayers) + { + ivarsEqual = false; + } + + if (this._modifier != obj._modifier) + { + ivarsEqual = false; + } + + if (this._parameter1 != obj._parameter1) + { + ivarsEqual = false; + } + + if (this._parameter2 != obj._parameter2) + { + ivarsEqual = false; + } + + if (this._parameter3 != obj._parameter3) + { + ivarsEqual = false; + } + + if (this._parameter4 != obj._parameter4) + { + ivarsEqual = false; + } + + if (this._parameter5 != obj._parameter5) + { + ivarsEqual = false; + } + + if (this._parameter6 != obj._parameter6) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._systemStatus.GetHashCode(); + result = GenerateHash(result) ^ this._alternateParameter4.GetHashCode(); + result = GenerateHash(result) ^ this._informationLayers.GetHashCode(); + result = GenerateHash(result) ^ this._modifier.GetHashCode(); + result = GenerateHash(result) ^ this._parameter1.GetHashCode(); + result = GenerateHash(result) ^ this._parameter2.GetHashCode(); + result = GenerateHash(result) ^ this._parameter3.GetHashCode(); + result = GenerateHash(result) ^ this._parameter4.GetHashCode(); + result = GenerateHash(result) ^ this._parameter5.GetHashCode(); + result = GenerateHash(result) ^ this._parameter6.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/IntercomCommunicationsParameters.cs b/Libs/CsharpDis6/Dis1998/Generated/IntercomCommunicationsParameters.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/IntercomCommunicationsParameters.cs rename to Libs/CsharpDis6/Dis1998/Generated/IntercomCommunicationsParameters.cs index ba94210..cba822e 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/IntercomCommunicationsParameters.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/IntercomCommunicationsParameters.cs @@ -1,364 +1,364 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// 5.2.46. Intercom communcations parameters - /// - [Serializable] - [XmlRoot] - public partial class IntercomCommunicationsParameters - { - /// - /// Type of intercom parameters record - /// - private ushort _recordType; - - /// - /// length of record - /// - private ushort _recordLength; - - /// - /// Jerks. Looks like the committee is forcing a lookup of the record type parameter to find out how long the field is. This is a placeholder. - /// - private uint _recordSpecificField; - - /// - /// Initializes a new instance of the class. - /// - public IntercomCommunicationsParameters() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(IntercomCommunicationsParameters left, IntercomCommunicationsParameters right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(IntercomCommunicationsParameters left, IntercomCommunicationsParameters right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 2; // this._recordType - marshalSize += 2; // this._recordLength - marshalSize += 4; // this._recordSpecificField - return marshalSize; - } - - /// - /// Gets or sets the Type of intercom parameters record - /// - [XmlElement(Type = typeof(ushort), ElementName = "recordType")] - public ushort RecordType - { - get - { - return this._recordType; - } - - set - { - this._recordType = value; - } - } - - /// - /// Gets or sets the length of record - /// - [XmlElement(Type = typeof(ushort), ElementName = "recordLength")] - public ushort RecordLength - { - get - { - return this._recordLength; - } - - set - { - this._recordLength = value; - } - } - - /// - /// Gets or sets the Jerks. Looks like the committee is forcing a lookup of the record type parameter to find out how long the field is. This is a placeholder. - /// - [XmlElement(Type = typeof(uint), ElementName = "recordSpecificField")] - public uint RecordSpecificField - { - get - { - return this._recordSpecificField; - } - - set - { - this._recordSpecificField = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._recordType); - dos.WriteUnsignedShort((ushort)this._recordLength); - dos.WriteUnsignedInt((uint)this._recordSpecificField); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._recordType = dis.ReadUnsignedShort(); - this._recordLength = dis.ReadUnsignedShort(); - this._recordSpecificField = dis.ReadUnsignedInt(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._recordType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._recordLength.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._recordSpecificField.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as IntercomCommunicationsParameters; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(IntercomCommunicationsParameters obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._recordType != obj._recordType) - { - ivarsEqual = false; - } - - if (this._recordLength != obj._recordLength) - { - ivarsEqual = false; - } - - if (this._recordSpecificField != obj._recordSpecificField) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._recordType.GetHashCode(); - result = GenerateHash(result) ^ this._recordLength.GetHashCode(); - result = GenerateHash(result) ^ this._recordSpecificField.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// 5.2.46. Intercom communcations parameters + /// + [Serializable] + [XmlRoot] + public partial class IntercomCommunicationsParameters + { + /// + /// Type of intercom parameters record + /// + private ushort _recordType; + + /// + /// length of record + /// + private ushort _recordLength; + + /// + /// Jerks. Looks like the committee is forcing a lookup of the record type parameter to find out how long the field is. This is a placeholder. + /// + private uint _recordSpecificField; + + /// + /// Initializes a new instance of the class. + /// + public IntercomCommunicationsParameters() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(IntercomCommunicationsParameters left, IntercomCommunicationsParameters right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(IntercomCommunicationsParameters left, IntercomCommunicationsParameters right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 2; // this._recordType + marshalSize += 2; // this._recordLength + marshalSize += 4; // this._recordSpecificField + return marshalSize; + } + + /// + /// Gets or sets the Type of intercom parameters record + /// + [XmlElement(Type = typeof(ushort), ElementName = "recordType")] + public ushort RecordType + { + get + { + return this._recordType; + } + + set + { + this._recordType = value; + } + } + + /// + /// Gets or sets the length of record + /// + [XmlElement(Type = typeof(ushort), ElementName = "recordLength")] + public ushort RecordLength + { + get + { + return this._recordLength; + } + + set + { + this._recordLength = value; + } + } + + /// + /// Gets or sets the Jerks. Looks like the committee is forcing a lookup of the record type parameter to find out how long the field is. This is a placeholder. + /// + [XmlElement(Type = typeof(uint), ElementName = "recordSpecificField")] + public uint RecordSpecificField + { + get + { + return this._recordSpecificField; + } + + set + { + this._recordSpecificField = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._recordType); + dos.WriteUnsignedShort((ushort)this._recordLength); + dos.WriteUnsignedInt((uint)this._recordSpecificField); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._recordType = dis.ReadUnsignedShort(); + this._recordLength = dis.ReadUnsignedShort(); + this._recordSpecificField = dis.ReadUnsignedInt(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._recordType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._recordLength.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._recordSpecificField.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as IntercomCommunicationsParameters; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(IntercomCommunicationsParameters obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._recordType != obj._recordType) + { + ivarsEqual = false; + } + + if (this._recordLength != obj._recordLength) + { + ivarsEqual = false; + } + + if (this._recordSpecificField != obj._recordSpecificField) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._recordType.GetHashCode(); + result = GenerateHash(result) ^ this._recordLength.GetHashCode(); + result = GenerateHash(result) ^ this._recordSpecificField.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/IntercomControlPdu.cs b/Libs/CsharpDis6/Dis1998/Generated/IntercomControlPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/IntercomControlPdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/IntercomControlPdu.cs index 4f6889b..591e67c 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/IntercomControlPdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/IntercomControlPdu.cs @@ -1,703 +1,703 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.8.5. Detailed inofrmation about the state of an intercom device and the actions it is requestion of another intercom device, or the response to a requested action. Required manual intervention to fix the intercom parameters, which can be of varialbe length. UNFINSISHED - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(IntercomCommunicationsParameters))] - public partial class IntercomControlPdu : RadioCommunicationsFamilyPdu, IEquatable - { - /// - /// control type - /// - private byte _controlType; - - /// - /// control type - /// - private byte _communicationsChannelType; - - /// - /// Source entity ID - /// - private EntityID _sourceEntityID = new EntityID(); - - /// - /// The specific intercom device being simulated within an entity. - /// - private byte _sourceCommunicationsDeviceID; - - /// - /// Line number to which the intercom control refers - /// - private byte _sourceLineID; - - /// - /// priority of this message relative to transmissons from other intercom devices - /// - private byte _transmitPriority; - - /// - /// current transmit state of the line - /// - private byte _transmitLineState; - - /// - /// detailed type requested. - /// - private byte _command; - - /// - /// eid of the entity that has created this intercom channel. - /// - private EntityID _masterEntityID = new EntityID(); - - /// - /// specific intercom device that has created this intercom channel - /// - private ushort _masterCommunicationsDeviceID; - - /// - /// number of intercom parameters - /// - private uint _intercomParametersLength; - - /// - /// ^^^This is wrong--the length of the data field is variable. Using a long for now. - /// - private List _intercomParameters = new List(); - - /// - /// Initializes a new instance of the class. - /// - public IntercomControlPdu() - { - PduType = (byte)32; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(IntercomControlPdu left, IntercomControlPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(IntercomControlPdu left, IntercomControlPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 1; // this._controlType - marshalSize += 1; // this._communicationsChannelType - marshalSize += this._sourceEntityID.GetMarshalledSize(); // this._sourceEntityID - marshalSize += 1; // this._sourceCommunicationsDeviceID - marshalSize += 1; // this._sourceLineID - marshalSize += 1; // this._transmitPriority - marshalSize += 1; // this._transmitLineState - marshalSize += 1; // this._command - marshalSize += this._masterEntityID.GetMarshalledSize(); // this._masterEntityID - marshalSize += 2; // this._masterCommunicationsDeviceID - marshalSize += 4; // this._intercomParametersLength - for (int idx = 0; idx < this._intercomParameters.Count; idx++) - { - IntercomCommunicationsParameters listElement = (IntercomCommunicationsParameters)this._intercomParameters[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the control type - /// - [XmlElement(Type = typeof(byte), ElementName = "controlType")] - public byte ControlType - { - get - { - return this._controlType; - } - - set - { - this._controlType = value; - } - } - - /// - /// Gets or sets the control type - /// - [XmlElement(Type = typeof(byte), ElementName = "communicationsChannelType")] - public byte CommunicationsChannelType - { - get - { - return this._communicationsChannelType; - } - - set - { - this._communicationsChannelType = value; - } - } - - /// - /// Gets or sets the Source entity ID - /// - [XmlElement(Type = typeof(EntityID), ElementName = "sourceEntityID")] - public EntityID SourceEntityID - { - get - { - return this._sourceEntityID; - } - - set - { - this._sourceEntityID = value; - } - } - - /// - /// Gets or sets the The specific intercom device being simulated within an entity. - /// - [XmlElement(Type = typeof(byte), ElementName = "sourceCommunicationsDeviceID")] - public byte SourceCommunicationsDeviceID - { - get - { - return this._sourceCommunicationsDeviceID; - } - - set - { - this._sourceCommunicationsDeviceID = value; - } - } - - /// - /// Gets or sets the Line number to which the intercom control refers - /// - [XmlElement(Type = typeof(byte), ElementName = "sourceLineID")] - public byte SourceLineID - { - get - { - return this._sourceLineID; - } - - set - { - this._sourceLineID = value; - } - } - - /// - /// Gets or sets the priority of this message relative to transmissons from other intercom devices - /// - [XmlElement(Type = typeof(byte), ElementName = "transmitPriority")] - public byte TransmitPriority - { - get - { - return this._transmitPriority; - } - - set - { - this._transmitPriority = value; - } - } - - /// - /// Gets or sets the current transmit state of the line - /// - [XmlElement(Type = typeof(byte), ElementName = "transmitLineState")] - public byte TransmitLineState - { - get - { - return this._transmitLineState; - } - - set - { - this._transmitLineState = value; - } - } - - /// - /// Gets or sets the detailed type requested. - /// - [XmlElement(Type = typeof(byte), ElementName = "command")] - public byte Command - { - get - { - return this._command; - } - - set - { - this._command = value; - } - } - - /// - /// Gets or sets the eid of the entity that has created this intercom channel. - /// - [XmlElement(Type = typeof(EntityID), ElementName = "masterEntityID")] - public EntityID MasterEntityID - { - get - { - return this._masterEntityID; - } - - set - { - this._masterEntityID = value; - } - } - - /// - /// Gets or sets the specific intercom device that has created this intercom channel - /// - [XmlElement(Type = typeof(ushort), ElementName = "masterCommunicationsDeviceID")] - public ushort MasterCommunicationsDeviceID - { - get - { - return this._masterCommunicationsDeviceID; - } - - set - { - this._masterCommunicationsDeviceID = value; - } - } - - /// - /// Gets or sets the number of intercom parameters - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getintercomParametersLength method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "intercomParametersLength")] - public uint IntercomParametersLength - { - get - { - return this._intercomParametersLength; - } - - set - { - this._intercomParametersLength = value; - } - } - - /// - /// Gets the ^^^This is wrong--the length of the data field is variable. Using a long for now. - /// - [XmlElement(ElementName = "intercomParametersList", Type = typeof(List))] - public List IntercomParameters - { - get - { - return this._intercomParameters; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._controlType); - dos.WriteUnsignedByte((byte)this._communicationsChannelType); - this._sourceEntityID.Marshal(dos); - dos.WriteUnsignedByte((byte)this._sourceCommunicationsDeviceID); - dos.WriteUnsignedByte((byte)this._sourceLineID); - dos.WriteUnsignedByte((byte)this._transmitPriority); - dos.WriteUnsignedByte((byte)this._transmitLineState); - dos.WriteUnsignedByte((byte)this._command); - this._masterEntityID.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._masterCommunicationsDeviceID); - dos.WriteUnsignedInt((uint)this._intercomParameters.Count); - - for (int idx = 0; idx < this._intercomParameters.Count; idx++) - { - IntercomCommunicationsParameters aIntercomCommunicationsParameters = (IntercomCommunicationsParameters)this._intercomParameters[idx]; - aIntercomCommunicationsParameters.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._controlType = dis.ReadUnsignedByte(); - this._communicationsChannelType = dis.ReadUnsignedByte(); - this._sourceEntityID.Unmarshal(dis); - this._sourceCommunicationsDeviceID = dis.ReadUnsignedByte(); - this._sourceLineID = dis.ReadUnsignedByte(); - this._transmitPriority = dis.ReadUnsignedByte(); - this._transmitLineState = dis.ReadUnsignedByte(); - this._command = dis.ReadUnsignedByte(); - this._masterEntityID.Unmarshal(dis); - this._masterCommunicationsDeviceID = dis.ReadUnsignedShort(); - this._intercomParametersLength = dis.ReadUnsignedInt(); - - for (int idx = 0; idx < this.IntercomParametersLength; idx++) - { - IntercomCommunicationsParameters anX = new IntercomCommunicationsParameters(); - anX.Unmarshal(dis); - this._intercomParameters.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._controlType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._communicationsChannelType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._sourceEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._sourceCommunicationsDeviceID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._sourceLineID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._transmitPriority.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._transmitLineState.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._command.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._masterEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._masterCommunicationsDeviceID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._intercomParameters.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._intercomParameters.Count; idx++) - { - sb.AppendLine(""); - IntercomCommunicationsParameters aIntercomCommunicationsParameters = (IntercomCommunicationsParameters)this._intercomParameters[idx]; - aIntercomCommunicationsParameters.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as IntercomControlPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(IntercomControlPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._controlType != obj._controlType) - { - ivarsEqual = false; - } - - if (this._communicationsChannelType != obj._communicationsChannelType) - { - ivarsEqual = false; - } - - if (!this._sourceEntityID.Equals(obj._sourceEntityID)) - { - ivarsEqual = false; - } - - if (this._sourceCommunicationsDeviceID != obj._sourceCommunicationsDeviceID) - { - ivarsEqual = false; - } - - if (this._sourceLineID != obj._sourceLineID) - { - ivarsEqual = false; - } - - if (this._transmitPriority != obj._transmitPriority) - { - ivarsEqual = false; - } - - if (this._transmitLineState != obj._transmitLineState) - { - ivarsEqual = false; - } - - if (this._command != obj._command) - { - ivarsEqual = false; - } - - if (!this._masterEntityID.Equals(obj._masterEntityID)) - { - ivarsEqual = false; - } - - if (this._masterCommunicationsDeviceID != obj._masterCommunicationsDeviceID) - { - ivarsEqual = false; - } - - if (this._intercomParametersLength != obj._intercomParametersLength) - { - ivarsEqual = false; - } - - if (this._intercomParameters.Count != obj._intercomParameters.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._intercomParameters.Count; idx++) - { - if (!this._intercomParameters[idx].Equals(obj._intercomParameters[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._controlType.GetHashCode(); - result = GenerateHash(result) ^ this._communicationsChannelType.GetHashCode(); - result = GenerateHash(result) ^ this._sourceEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._sourceCommunicationsDeviceID.GetHashCode(); - result = GenerateHash(result) ^ this._sourceLineID.GetHashCode(); - result = GenerateHash(result) ^ this._transmitPriority.GetHashCode(); - result = GenerateHash(result) ^ this._transmitLineState.GetHashCode(); - result = GenerateHash(result) ^ this._command.GetHashCode(); - result = GenerateHash(result) ^ this._masterEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._masterCommunicationsDeviceID.GetHashCode(); - result = GenerateHash(result) ^ this._intercomParametersLength.GetHashCode(); - - if (this._intercomParameters.Count > 0) - { - for (int idx = 0; idx < this._intercomParameters.Count; idx++) - { - result = GenerateHash(result) ^ this._intercomParameters[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.8.5. Detailed inofrmation about the state of an intercom device and the actions it is requestion of another intercom device, or the response to a requested action. Required manual intervention to fix the intercom parameters, which can be of varialbe length. UNFINSISHED + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(IntercomCommunicationsParameters))] + public partial class IntercomControlPdu : RadioCommunicationsFamilyPdu, IEquatable + { + /// + /// control type + /// + private byte _controlType; + + /// + /// control type + /// + private byte _communicationsChannelType; + + /// + /// Source entity ID + /// + private EntityID _sourceEntityID = new EntityID(); + + /// + /// The specific intercom device being simulated within an entity. + /// + private byte _sourceCommunicationsDeviceID; + + /// + /// Line number to which the intercom control refers + /// + private byte _sourceLineID; + + /// + /// priority of this message relative to transmissons from other intercom devices + /// + private byte _transmitPriority; + + /// + /// current transmit state of the line + /// + private byte _transmitLineState; + + /// + /// detailed type requested. + /// + private byte _command; + + /// + /// eid of the entity that has created this intercom channel. + /// + private EntityID _masterEntityID = new EntityID(); + + /// + /// specific intercom device that has created this intercom channel + /// + private ushort _masterCommunicationsDeviceID; + + /// + /// number of intercom parameters + /// + private uint _intercomParametersLength; + + /// + /// ^^^This is wrong--the length of the data field is variable. Using a long for now. + /// + private List _intercomParameters = new List(); + + /// + /// Initializes a new instance of the class. + /// + public IntercomControlPdu() + { + PduType = (byte)32; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(IntercomControlPdu left, IntercomControlPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(IntercomControlPdu left, IntercomControlPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 1; // this._controlType + marshalSize += 1; // this._communicationsChannelType + marshalSize += this._sourceEntityID.GetMarshalledSize(); // this._sourceEntityID + marshalSize += 1; // this._sourceCommunicationsDeviceID + marshalSize += 1; // this._sourceLineID + marshalSize += 1; // this._transmitPriority + marshalSize += 1; // this._transmitLineState + marshalSize += 1; // this._command + marshalSize += this._masterEntityID.GetMarshalledSize(); // this._masterEntityID + marshalSize += 2; // this._masterCommunicationsDeviceID + marshalSize += 4; // this._intercomParametersLength + for (int idx = 0; idx < this._intercomParameters.Count; idx++) + { + IntercomCommunicationsParameters listElement = (IntercomCommunicationsParameters)this._intercomParameters[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the control type + /// + [XmlElement(Type = typeof(byte), ElementName = "controlType")] + public byte ControlType + { + get + { + return this._controlType; + } + + set + { + this._controlType = value; + } + } + + /// + /// Gets or sets the control type + /// + [XmlElement(Type = typeof(byte), ElementName = "communicationsChannelType")] + public byte CommunicationsChannelType + { + get + { + return this._communicationsChannelType; + } + + set + { + this._communicationsChannelType = value; + } + } + + /// + /// Gets or sets the Source entity ID + /// + [XmlElement(Type = typeof(EntityID), ElementName = "sourceEntityID")] + public EntityID SourceEntityID + { + get + { + return this._sourceEntityID; + } + + set + { + this._sourceEntityID = value; + } + } + + /// + /// Gets or sets the The specific intercom device being simulated within an entity. + /// + [XmlElement(Type = typeof(byte), ElementName = "sourceCommunicationsDeviceID")] + public byte SourceCommunicationsDeviceID + { + get + { + return this._sourceCommunicationsDeviceID; + } + + set + { + this._sourceCommunicationsDeviceID = value; + } + } + + /// + /// Gets or sets the Line number to which the intercom control refers + /// + [XmlElement(Type = typeof(byte), ElementName = "sourceLineID")] + public byte SourceLineID + { + get + { + return this._sourceLineID; + } + + set + { + this._sourceLineID = value; + } + } + + /// + /// Gets or sets the priority of this message relative to transmissons from other intercom devices + /// + [XmlElement(Type = typeof(byte), ElementName = "transmitPriority")] + public byte TransmitPriority + { + get + { + return this._transmitPriority; + } + + set + { + this._transmitPriority = value; + } + } + + /// + /// Gets or sets the current transmit state of the line + /// + [XmlElement(Type = typeof(byte), ElementName = "transmitLineState")] + public byte TransmitLineState + { + get + { + return this._transmitLineState; + } + + set + { + this._transmitLineState = value; + } + } + + /// + /// Gets or sets the detailed type requested. + /// + [XmlElement(Type = typeof(byte), ElementName = "command")] + public byte Command + { + get + { + return this._command; + } + + set + { + this._command = value; + } + } + + /// + /// Gets or sets the eid of the entity that has created this intercom channel. + /// + [XmlElement(Type = typeof(EntityID), ElementName = "masterEntityID")] + public EntityID MasterEntityID + { + get + { + return this._masterEntityID; + } + + set + { + this._masterEntityID = value; + } + } + + /// + /// Gets or sets the specific intercom device that has created this intercom channel + /// + [XmlElement(Type = typeof(ushort), ElementName = "masterCommunicationsDeviceID")] + public ushort MasterCommunicationsDeviceID + { + get + { + return this._masterCommunicationsDeviceID; + } + + set + { + this._masterCommunicationsDeviceID = value; + } + } + + /// + /// Gets or sets the number of intercom parameters + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getintercomParametersLength method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "intercomParametersLength")] + public uint IntercomParametersLength + { + get + { + return this._intercomParametersLength; + } + + set + { + this._intercomParametersLength = value; + } + } + + /// + /// Gets the ^^^This is wrong--the length of the data field is variable. Using a long for now. + /// + [XmlElement(ElementName = "intercomParametersList", Type = typeof(List))] + public List IntercomParameters + { + get + { + return this._intercomParameters; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._controlType); + dos.WriteUnsignedByte((byte)this._communicationsChannelType); + this._sourceEntityID.Marshal(dos); + dos.WriteUnsignedByte((byte)this._sourceCommunicationsDeviceID); + dos.WriteUnsignedByte((byte)this._sourceLineID); + dos.WriteUnsignedByte((byte)this._transmitPriority); + dos.WriteUnsignedByte((byte)this._transmitLineState); + dos.WriteUnsignedByte((byte)this._command); + this._masterEntityID.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._masterCommunicationsDeviceID); + dos.WriteUnsignedInt((uint)this._intercomParameters.Count); + + for (int idx = 0; idx < this._intercomParameters.Count; idx++) + { + IntercomCommunicationsParameters aIntercomCommunicationsParameters = (IntercomCommunicationsParameters)this._intercomParameters[idx]; + aIntercomCommunicationsParameters.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._controlType = dis.ReadUnsignedByte(); + this._communicationsChannelType = dis.ReadUnsignedByte(); + this._sourceEntityID.Unmarshal(dis); + this._sourceCommunicationsDeviceID = dis.ReadUnsignedByte(); + this._sourceLineID = dis.ReadUnsignedByte(); + this._transmitPriority = dis.ReadUnsignedByte(); + this._transmitLineState = dis.ReadUnsignedByte(); + this._command = dis.ReadUnsignedByte(); + this._masterEntityID.Unmarshal(dis); + this._masterCommunicationsDeviceID = dis.ReadUnsignedShort(); + this._intercomParametersLength = dis.ReadUnsignedInt(); + + for (int idx = 0; idx < this.IntercomParametersLength; idx++) + { + IntercomCommunicationsParameters anX = new IntercomCommunicationsParameters(); + anX.Unmarshal(dis); + this._intercomParameters.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._controlType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._communicationsChannelType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._sourceEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._sourceCommunicationsDeviceID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._sourceLineID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._transmitPriority.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._transmitLineState.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._command.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._masterEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._masterCommunicationsDeviceID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._intercomParameters.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._intercomParameters.Count; idx++) + { + sb.AppendLine(""); + IntercomCommunicationsParameters aIntercomCommunicationsParameters = (IntercomCommunicationsParameters)this._intercomParameters[idx]; + aIntercomCommunicationsParameters.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as IntercomControlPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(IntercomControlPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._controlType != obj._controlType) + { + ivarsEqual = false; + } + + if (this._communicationsChannelType != obj._communicationsChannelType) + { + ivarsEqual = false; + } + + if (!this._sourceEntityID.Equals(obj._sourceEntityID)) + { + ivarsEqual = false; + } + + if (this._sourceCommunicationsDeviceID != obj._sourceCommunicationsDeviceID) + { + ivarsEqual = false; + } + + if (this._sourceLineID != obj._sourceLineID) + { + ivarsEqual = false; + } + + if (this._transmitPriority != obj._transmitPriority) + { + ivarsEqual = false; + } + + if (this._transmitLineState != obj._transmitLineState) + { + ivarsEqual = false; + } + + if (this._command != obj._command) + { + ivarsEqual = false; + } + + if (!this._masterEntityID.Equals(obj._masterEntityID)) + { + ivarsEqual = false; + } + + if (this._masterCommunicationsDeviceID != obj._masterCommunicationsDeviceID) + { + ivarsEqual = false; + } + + if (this._intercomParametersLength != obj._intercomParametersLength) + { + ivarsEqual = false; + } + + if (this._intercomParameters.Count != obj._intercomParameters.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._intercomParameters.Count; idx++) + { + if (!this._intercomParameters[idx].Equals(obj._intercomParameters[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._controlType.GetHashCode(); + result = GenerateHash(result) ^ this._communicationsChannelType.GetHashCode(); + result = GenerateHash(result) ^ this._sourceEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._sourceCommunicationsDeviceID.GetHashCode(); + result = GenerateHash(result) ^ this._sourceLineID.GetHashCode(); + result = GenerateHash(result) ^ this._transmitPriority.GetHashCode(); + result = GenerateHash(result) ^ this._transmitLineState.GetHashCode(); + result = GenerateHash(result) ^ this._command.GetHashCode(); + result = GenerateHash(result) ^ this._masterEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._masterCommunicationsDeviceID.GetHashCode(); + result = GenerateHash(result) ^ this._intercomParametersLength.GetHashCode(); + + if (this._intercomParameters.Count > 0) + { + for (int idx = 0; idx < this._intercomParameters.Count; idx++) + { + result = GenerateHash(result) ^ this._intercomParameters[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/IntercomSignalPdu.cs b/Libs/CsharpDis6/Dis1998/Generated/IntercomSignalPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/IntercomSignalPdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/IntercomSignalPdu.cs index 6c0e1c7..0a070f5 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/IntercomSignalPdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/IntercomSignalPdu.cs @@ -1,553 +1,553 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.8.4. Actual transmission of intercome voice data. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(OneByteChunk))] - public partial class IntercomSignalPdu : RadioCommunicationsFamilyPdu, IEquatable - { - /// - /// entity ID - /// - private EntityID _entityID = new EntityID(); - - /// - /// ID of communications device - /// - private ushort _communicationsDeviceID; - - /// - /// encoding scheme - /// - private ushort _encodingScheme; - - /// - /// tactical data link type - /// - private ushort _tdlType; - - /// - /// sample rate - /// - private uint _sampleRate; - - /// - /// data length - /// - private ushort _dataLength; - - /// - /// samples - /// - private ushort _samples; - - /// - /// data bytes - /// - private byte[] _data; - - /// - /// Initializes a new instance of the class. - /// - public IntercomSignalPdu() - { - PduType = (byte)31; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(IntercomSignalPdu left, IntercomSignalPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(IntercomSignalPdu left, IntercomSignalPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._entityID.GetMarshalledSize(); // this._entityID - marshalSize += 2; // this._communicationsDeviceID - marshalSize += 2; // this._encodingScheme - marshalSize += 2; // this._tdlType - marshalSize += 4; // this._sampleRate - marshalSize += 2; // this._dataLength - marshalSize += 2; // this._samples - marshalSize += this._data.Length; - return marshalSize; - } - - /// - /// Gets or sets the entity ID - /// - [XmlElement(Type = typeof(EntityID), ElementName = "entityID")] - public EntityID EntityID - { - get - { - return this._entityID; - } - - set - { - this._entityID = value; - } - } - - /// - /// Gets or sets the ID of communications device - /// - [XmlElement(Type = typeof(ushort), ElementName = "communicationsDeviceID")] - public ushort CommunicationsDeviceID - { - get - { - return this._communicationsDeviceID; - } - - set - { - this._communicationsDeviceID = value; - } - } - - /// - /// Gets or sets the encoding scheme - /// - [XmlElement(Type = typeof(ushort), ElementName = "encodingScheme")] - public ushort EncodingScheme - { - get - { - return this._encodingScheme; - } - - set - { - this._encodingScheme = value; - } - } - - /// - /// Gets or sets the tactical data link type - /// - [XmlElement(Type = typeof(ushort), ElementName = "tdlType")] - public ushort TdlType - { - get - { - return this._tdlType; - } - - set - { - this._tdlType = value; - } - } - - /// - /// Gets or sets the sample rate - /// - [XmlElement(Type = typeof(uint), ElementName = "sampleRate")] - public uint SampleRate - { - get - { - return this._sampleRate; - } - - set - { - this._sampleRate = value; - } - } - - /// - /// Gets or sets the data length - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getdataLength method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(ushort), ElementName = "dataLength")] - public ushort DataLength - { - get - { - return this._dataLength; - } - - set - { - this._dataLength = value; - } - } - - /// - /// Gets or sets the samples - /// - [XmlElement(Type = typeof(ushort), ElementName = "samples")] - public ushort Samples - { - get - { - return this._samples; - } - - set - { - this._samples = value; - } - } - - /// - /// Gets or sets the data bytes - /// - [XmlElement(ElementName = "dataList", DataType = "hexBinary")] - public byte[] Data - { - get - { - return this._data; - } - - set - { - this._data = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._entityID.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._communicationsDeviceID); - dos.WriteUnsignedShort((ushort)this._encodingScheme); - dos.WriteUnsignedShort((ushort)this._tdlType); - dos.WriteUnsignedInt((uint)this._sampleRate); - dos.WriteUnsignedShort((ushort)this._data.Length); - dos.WriteUnsignedShort((ushort)this._samples); - - dos.WriteByte(this._data); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._entityID.Unmarshal(dis); - this._communicationsDeviceID = dis.ReadUnsignedShort(); - this._encodingScheme = dis.ReadUnsignedShort(); - this._tdlType = dis.ReadUnsignedShort(); - this._sampleRate = dis.ReadUnsignedInt(); - this._dataLength = dis.ReadUnsignedShort(); - this._samples = dis.ReadUnsignedShort(); - - this._data = dis.ReadByteArray(this._dataLength); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._entityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._communicationsDeviceID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._encodingScheme.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._tdlType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._sampleRate.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._data.Length.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._samples.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - foreach (byte b in this._data) - { - sb.Append(b.ToString("X2", CultureInfo.InvariantCulture)); - } - - sb.AppendLine(""); - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as IntercomSignalPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(IntercomSignalPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._entityID.Equals(obj._entityID)) - { - ivarsEqual = false; - } - - if (this._communicationsDeviceID != obj._communicationsDeviceID) - { - ivarsEqual = false; - } - - if (this._encodingScheme != obj._encodingScheme) - { - ivarsEqual = false; - } - - if (this._tdlType != obj._tdlType) - { - ivarsEqual = false; - } - - if (this._sampleRate != obj._sampleRate) - { - ivarsEqual = false; - } - - if (this._dataLength != obj._dataLength) - { - ivarsEqual = false; - } - - if (this._samples != obj._samples) - { - ivarsEqual = false; - } - - if (!this._data.Equals(obj._data)) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._entityID.GetHashCode(); - result = GenerateHash(result) ^ this._communicationsDeviceID.GetHashCode(); - result = GenerateHash(result) ^ this._encodingScheme.GetHashCode(); - result = GenerateHash(result) ^ this._tdlType.GetHashCode(); - result = GenerateHash(result) ^ this._sampleRate.GetHashCode(); - result = GenerateHash(result) ^ this._dataLength.GetHashCode(); - result = GenerateHash(result) ^ this._samples.GetHashCode(); - - if (this._data.Length > 0) - { - for (int idx = 0; idx < this._data.Length; idx++) - { - result = GenerateHash(result) ^ this._data[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.8.4. Actual transmission of intercome voice data. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(OneByteChunk))] + public partial class IntercomSignalPdu : RadioCommunicationsFamilyPdu, IEquatable + { + /// + /// entity ID + /// + private EntityID _entityID = new EntityID(); + + /// + /// ID of communications device + /// + private ushort _communicationsDeviceID; + + /// + /// encoding scheme + /// + private ushort _encodingScheme; + + /// + /// tactical data link type + /// + private ushort _tdlType; + + /// + /// sample rate + /// + private uint _sampleRate; + + /// + /// data length + /// + private ushort _dataLength; + + /// + /// samples + /// + private ushort _samples; + + /// + /// data bytes + /// + private byte[] _data; + + /// + /// Initializes a new instance of the class. + /// + public IntercomSignalPdu() + { + PduType = (byte)31; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(IntercomSignalPdu left, IntercomSignalPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(IntercomSignalPdu left, IntercomSignalPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._entityID.GetMarshalledSize(); // this._entityID + marshalSize += 2; // this._communicationsDeviceID + marshalSize += 2; // this._encodingScheme + marshalSize += 2; // this._tdlType + marshalSize += 4; // this._sampleRate + marshalSize += 2; // this._dataLength + marshalSize += 2; // this._samples + marshalSize += this._data.Length; + return marshalSize; + } + + /// + /// Gets or sets the entity ID + /// + [XmlElement(Type = typeof(EntityID), ElementName = "entityID")] + public EntityID EntityID + { + get + { + return this._entityID; + } + + set + { + this._entityID = value; + } + } + + /// + /// Gets or sets the ID of communications device + /// + [XmlElement(Type = typeof(ushort), ElementName = "communicationsDeviceID")] + public ushort CommunicationsDeviceID + { + get + { + return this._communicationsDeviceID; + } + + set + { + this._communicationsDeviceID = value; + } + } + + /// + /// Gets or sets the encoding scheme + /// + [XmlElement(Type = typeof(ushort), ElementName = "encodingScheme")] + public ushort EncodingScheme + { + get + { + return this._encodingScheme; + } + + set + { + this._encodingScheme = value; + } + } + + /// + /// Gets or sets the tactical data link type + /// + [XmlElement(Type = typeof(ushort), ElementName = "tdlType")] + public ushort TdlType + { + get + { + return this._tdlType; + } + + set + { + this._tdlType = value; + } + } + + /// + /// Gets or sets the sample rate + /// + [XmlElement(Type = typeof(uint), ElementName = "sampleRate")] + public uint SampleRate + { + get + { + return this._sampleRate; + } + + set + { + this._sampleRate = value; + } + } + + /// + /// Gets or sets the data length + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getdataLength method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(ushort), ElementName = "dataLength")] + public ushort DataLength + { + get + { + return this._dataLength; + } + + set + { + this._dataLength = value; + } + } + + /// + /// Gets or sets the samples + /// + [XmlElement(Type = typeof(ushort), ElementName = "samples")] + public ushort Samples + { + get + { + return this._samples; + } + + set + { + this._samples = value; + } + } + + /// + /// Gets or sets the data bytes + /// + [XmlElement(ElementName = "dataList", DataType = "hexBinary")] + public byte[] Data + { + get + { + return this._data; + } + + set + { + this._data = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._entityID.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._communicationsDeviceID); + dos.WriteUnsignedShort((ushort)this._encodingScheme); + dos.WriteUnsignedShort((ushort)this._tdlType); + dos.WriteUnsignedInt((uint)this._sampleRate); + dos.WriteUnsignedShort((ushort)this._data.Length); + dos.WriteUnsignedShort((ushort)this._samples); + + dos.WriteByte(this._data); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._entityID.Unmarshal(dis); + this._communicationsDeviceID = dis.ReadUnsignedShort(); + this._encodingScheme = dis.ReadUnsignedShort(); + this._tdlType = dis.ReadUnsignedShort(); + this._sampleRate = dis.ReadUnsignedInt(); + this._dataLength = dis.ReadUnsignedShort(); + this._samples = dis.ReadUnsignedShort(); + + this._data = dis.ReadByteArray(this._dataLength); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._entityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._communicationsDeviceID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._encodingScheme.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._tdlType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._sampleRate.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._data.Length.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._samples.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + foreach (byte b in this._data) + { + sb.Append(b.ToString("X2", CultureInfo.InvariantCulture)); + } + + sb.AppendLine(""); + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as IntercomSignalPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(IntercomSignalPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._entityID.Equals(obj._entityID)) + { + ivarsEqual = false; + } + + if (this._communicationsDeviceID != obj._communicationsDeviceID) + { + ivarsEqual = false; + } + + if (this._encodingScheme != obj._encodingScheme) + { + ivarsEqual = false; + } + + if (this._tdlType != obj._tdlType) + { + ivarsEqual = false; + } + + if (this._sampleRate != obj._sampleRate) + { + ivarsEqual = false; + } + + if (this._dataLength != obj._dataLength) + { + ivarsEqual = false; + } + + if (this._samples != obj._samples) + { + ivarsEqual = false; + } + + if (!this._data.Equals(obj._data)) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._entityID.GetHashCode(); + result = GenerateHash(result) ^ this._communicationsDeviceID.GetHashCode(); + result = GenerateHash(result) ^ this._encodingScheme.GetHashCode(); + result = GenerateHash(result) ^ this._tdlType.GetHashCode(); + result = GenerateHash(result) ^ this._sampleRate.GetHashCode(); + result = GenerateHash(result) ^ this._dataLength.GetHashCode(); + result = GenerateHash(result) ^ this._samples.GetHashCode(); + + if (this._data.Length > 0) + { + for (int idx = 0; idx < this._data.Length; idx++) + { + result = GenerateHash(result) ^ this._data[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/IsGroupOfPdu.cs b/Libs/CsharpDis6/Dis1998/Generated/IsGroupOfPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/IsGroupOfPdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/IsGroupOfPdu.cs index a377d4b..002142c 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/IsGroupOfPdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/IsGroupOfPdu.cs @@ -1,541 +1,541 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.9.2 Information about a particular group of entities grouped together for the purposes of netowrk bandwidth reduction or aggregation. Needs manual cleanup. The GED size requires a database lookup. UNFINISHED - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(VariableDatum))] - public partial class IsGroupOfPdu : EntityManagementFamilyPdu, IEquatable - { - /// - /// ID of aggregated entities - /// - private EntityID _groupEntityID = new EntityID(); - - /// - /// type of entities constituting the group - /// - private byte _groupedEntityCategory; - - /// - /// Number of individual entities constituting the group - /// - private byte _numberOfGroupedEntities; - - /// - /// padding - /// - private uint _pad2; - - /// - /// latitude - /// - private double _latitude; - - /// - /// longitude - /// - private double _longitude; - - /// - /// GED records about each individual entity in the group. ^^^this is wrong--need a database lookup to find the actual size of the list elements - /// - private List _groupedEntityDescriptions = new List(); - - /// - /// Initializes a new instance of the class. - /// - public IsGroupOfPdu() - { - PduType = (byte)34; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(IsGroupOfPdu left, IsGroupOfPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(IsGroupOfPdu left, IsGroupOfPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._groupEntityID.GetMarshalledSize(); // this._groupEntityID - marshalSize += 1; // this._groupedEntityCategory - marshalSize += 1; // this._numberOfGroupedEntities - marshalSize += 4; // this._pad2 - marshalSize += 8; // this._latitude - marshalSize += 8; // this._longitude - for (int idx = 0; idx < this._groupedEntityDescriptions.Count; idx++) - { - VariableDatum listElement = (VariableDatum)this._groupedEntityDescriptions[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the ID of aggregated entities - /// - [XmlElement(Type = typeof(EntityID), ElementName = "groupEntityID")] - public EntityID GroupEntityID - { - get - { - return this._groupEntityID; - } - - set - { - this._groupEntityID = value; - } - } - - /// - /// Gets or sets the type of entities constituting the group - /// - [XmlElement(Type = typeof(byte), ElementName = "groupedEntityCategory")] - public byte GroupedEntityCategory - { - get - { - return this._groupedEntityCategory; - } - - set - { - this._groupedEntityCategory = value; - } - } - - /// - /// Gets or sets the Number of individual entities constituting the group - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfGroupedEntities method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfGroupedEntities")] - public byte NumberOfGroupedEntities - { - get - { - return this._numberOfGroupedEntities; - } - - set - { - this._numberOfGroupedEntities = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(uint), ElementName = "pad2")] - public uint Pad2 - { - get - { - return this._pad2; - } - - set - { - this._pad2 = value; - } - } - - /// - /// Gets or sets the latitude - /// - [XmlElement(Type = typeof(double), ElementName = "latitude")] - public double Latitude - { - get - { - return this._latitude; - } - - set - { - this._latitude = value; - } - } - - /// - /// Gets or sets the longitude - /// - [XmlElement(Type = typeof(double), ElementName = "longitude")] - public double Longitude - { - get - { - return this._longitude; - } - - set - { - this._longitude = value; - } - } - - /// - /// Gets the GED records about each individual entity in the group. ^^^this is wrong--need a database lookup to find the actual size of the list elements - /// - [XmlElement(ElementName = "groupedEntityDescriptionsList", Type = typeof(List))] - public List GroupedEntityDescriptions - { - get - { - return this._groupedEntityDescriptions; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._groupEntityID.Marshal(dos); - dos.WriteUnsignedByte((byte)this._groupedEntityCategory); - dos.WriteUnsignedByte((byte)this._groupedEntityDescriptions.Count); - dos.WriteUnsignedInt((uint)this._pad2); - dos.WriteDouble((double)this._latitude); - dos.WriteDouble((double)this._longitude); - - for (int idx = 0; idx < this._groupedEntityDescriptions.Count; idx++) - { - VariableDatum aVariableDatum = (VariableDatum)this._groupedEntityDescriptions[idx]; - aVariableDatum.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._groupEntityID.Unmarshal(dis); - this._groupedEntityCategory = dis.ReadUnsignedByte(); - this._numberOfGroupedEntities = dis.ReadUnsignedByte(); - this._pad2 = dis.ReadUnsignedInt(); - this._latitude = dis.ReadDouble(); - this._longitude = dis.ReadDouble(); - - for (int idx = 0; idx < this.NumberOfGroupedEntities; idx++) - { - VariableDatum anX = new VariableDatum(); - anX.Unmarshal(dis); - this._groupedEntityDescriptions.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._groupEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._groupedEntityCategory.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._groupedEntityDescriptions.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._latitude.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._longitude.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._groupedEntityDescriptions.Count; idx++) - { - sb.AppendLine(""); - VariableDatum aVariableDatum = (VariableDatum)this._groupedEntityDescriptions[idx]; - aVariableDatum.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as IsGroupOfPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(IsGroupOfPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._groupEntityID.Equals(obj._groupEntityID)) - { - ivarsEqual = false; - } - - if (this._groupedEntityCategory != obj._groupedEntityCategory) - { - ivarsEqual = false; - } - - if (this._numberOfGroupedEntities != obj._numberOfGroupedEntities) - { - ivarsEqual = false; - } - - if (this._pad2 != obj._pad2) - { - ivarsEqual = false; - } - - if (this._latitude != obj._latitude) - { - ivarsEqual = false; - } - - if (this._longitude != obj._longitude) - { - ivarsEqual = false; - } - - if (this._groupedEntityDescriptions.Count != obj._groupedEntityDescriptions.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._groupedEntityDescriptions.Count; idx++) - { - if (!this._groupedEntityDescriptions[idx].Equals(obj._groupedEntityDescriptions[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._groupEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._groupedEntityCategory.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfGroupedEntities.GetHashCode(); - result = GenerateHash(result) ^ this._pad2.GetHashCode(); - result = GenerateHash(result) ^ this._latitude.GetHashCode(); - result = GenerateHash(result) ^ this._longitude.GetHashCode(); - - if (this._groupedEntityDescriptions.Count > 0) - { - for (int idx = 0; idx < this._groupedEntityDescriptions.Count; idx++) - { - result = GenerateHash(result) ^ this._groupedEntityDescriptions[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.9.2 Information about a particular group of entities grouped together for the purposes of netowrk bandwidth reduction or aggregation. Needs manual cleanup. The GED size requires a database lookup. UNFINISHED + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(VariableDatum))] + public partial class IsGroupOfPdu : EntityManagementFamilyPdu, IEquatable + { + /// + /// ID of aggregated entities + /// + private EntityID _groupEntityID = new EntityID(); + + /// + /// type of entities constituting the group + /// + private byte _groupedEntityCategory; + + /// + /// Number of individual entities constituting the group + /// + private byte _numberOfGroupedEntities; + + /// + /// padding + /// + private uint _pad2; + + /// + /// latitude + /// + private double _latitude; + + /// + /// longitude + /// + private double _longitude; + + /// + /// GED records about each individual entity in the group. ^^^this is wrong--need a database lookup to find the actual size of the list elements + /// + private List _groupedEntityDescriptions = new List(); + + /// + /// Initializes a new instance of the class. + /// + public IsGroupOfPdu() + { + PduType = (byte)34; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(IsGroupOfPdu left, IsGroupOfPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(IsGroupOfPdu left, IsGroupOfPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._groupEntityID.GetMarshalledSize(); // this._groupEntityID + marshalSize += 1; // this._groupedEntityCategory + marshalSize += 1; // this._numberOfGroupedEntities + marshalSize += 4; // this._pad2 + marshalSize += 8; // this._latitude + marshalSize += 8; // this._longitude + for (int idx = 0; idx < this._groupedEntityDescriptions.Count; idx++) + { + VariableDatum listElement = (VariableDatum)this._groupedEntityDescriptions[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the ID of aggregated entities + /// + [XmlElement(Type = typeof(EntityID), ElementName = "groupEntityID")] + public EntityID GroupEntityID + { + get + { + return this._groupEntityID; + } + + set + { + this._groupEntityID = value; + } + } + + /// + /// Gets or sets the type of entities constituting the group + /// + [XmlElement(Type = typeof(byte), ElementName = "groupedEntityCategory")] + public byte GroupedEntityCategory + { + get + { + return this._groupedEntityCategory; + } + + set + { + this._groupedEntityCategory = value; + } + } + + /// + /// Gets or sets the Number of individual entities constituting the group + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfGroupedEntities method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfGroupedEntities")] + public byte NumberOfGroupedEntities + { + get + { + return this._numberOfGroupedEntities; + } + + set + { + this._numberOfGroupedEntities = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(uint), ElementName = "pad2")] + public uint Pad2 + { + get + { + return this._pad2; + } + + set + { + this._pad2 = value; + } + } + + /// + /// Gets or sets the latitude + /// + [XmlElement(Type = typeof(double), ElementName = "latitude")] + public double Latitude + { + get + { + return this._latitude; + } + + set + { + this._latitude = value; + } + } + + /// + /// Gets or sets the longitude + /// + [XmlElement(Type = typeof(double), ElementName = "longitude")] + public double Longitude + { + get + { + return this._longitude; + } + + set + { + this._longitude = value; + } + } + + /// + /// Gets the GED records about each individual entity in the group. ^^^this is wrong--need a database lookup to find the actual size of the list elements + /// + [XmlElement(ElementName = "groupedEntityDescriptionsList", Type = typeof(List))] + public List GroupedEntityDescriptions + { + get + { + return this._groupedEntityDescriptions; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._groupEntityID.Marshal(dos); + dos.WriteUnsignedByte((byte)this._groupedEntityCategory); + dos.WriteUnsignedByte((byte)this._groupedEntityDescriptions.Count); + dos.WriteUnsignedInt((uint)this._pad2); + dos.WriteDouble((double)this._latitude); + dos.WriteDouble((double)this._longitude); + + for (int idx = 0; idx < this._groupedEntityDescriptions.Count; idx++) + { + VariableDatum aVariableDatum = (VariableDatum)this._groupedEntityDescriptions[idx]; + aVariableDatum.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._groupEntityID.Unmarshal(dis); + this._groupedEntityCategory = dis.ReadUnsignedByte(); + this._numberOfGroupedEntities = dis.ReadUnsignedByte(); + this._pad2 = dis.ReadUnsignedInt(); + this._latitude = dis.ReadDouble(); + this._longitude = dis.ReadDouble(); + + for (int idx = 0; idx < this.NumberOfGroupedEntities; idx++) + { + VariableDatum anX = new VariableDatum(); + anX.Unmarshal(dis); + this._groupedEntityDescriptions.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._groupEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._groupedEntityCategory.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._groupedEntityDescriptions.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._latitude.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._longitude.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._groupedEntityDescriptions.Count; idx++) + { + sb.AppendLine(""); + VariableDatum aVariableDatum = (VariableDatum)this._groupedEntityDescriptions[idx]; + aVariableDatum.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as IsGroupOfPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(IsGroupOfPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._groupEntityID.Equals(obj._groupEntityID)) + { + ivarsEqual = false; + } + + if (this._groupedEntityCategory != obj._groupedEntityCategory) + { + ivarsEqual = false; + } + + if (this._numberOfGroupedEntities != obj._numberOfGroupedEntities) + { + ivarsEqual = false; + } + + if (this._pad2 != obj._pad2) + { + ivarsEqual = false; + } + + if (this._latitude != obj._latitude) + { + ivarsEqual = false; + } + + if (this._longitude != obj._longitude) + { + ivarsEqual = false; + } + + if (this._groupedEntityDescriptions.Count != obj._groupedEntityDescriptions.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._groupedEntityDescriptions.Count; idx++) + { + if (!this._groupedEntityDescriptions[idx].Equals(obj._groupedEntityDescriptions[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._groupEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._groupedEntityCategory.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfGroupedEntities.GetHashCode(); + result = GenerateHash(result) ^ this._pad2.GetHashCode(); + result = GenerateHash(result) ^ this._latitude.GetHashCode(); + result = GenerateHash(result) ^ this._longitude.GetHashCode(); + + if (this._groupedEntityDescriptions.Count > 0) + { + for (int idx = 0; idx < this._groupedEntityDescriptions.Count; idx++) + { + result = GenerateHash(result) ^ this._groupedEntityDescriptions[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/IsPartOfPdu.cs b/Libs/CsharpDis6/Dis1998/Generated/IsPartOfPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/IsPartOfPdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/IsPartOfPdu.cs index 519dd50..c6029f4 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/IsPartOfPdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/IsPartOfPdu.cs @@ -1,481 +1,481 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.9.4 The joining of two or more simulation entities is communicated by this PDU. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(Relationship))] - [XmlInclude(typeof(Vector3Float))] - [XmlInclude(typeof(NamedLocation))] - [XmlInclude(typeof(EntityType))] - public partial class IsPartOfPdu : EntityManagementFamilyPdu, IEquatable - { - /// - /// ID of entity originating PDU - /// - private EntityID _orginatingEntityID = new EntityID(); - - /// - /// ID of entity receiving PDU - /// - private EntityID _receivingEntityID = new EntityID(); - - /// - /// relationship of joined parts - /// - private Relationship _relationship = new Relationship(); - - /// - /// location of part; centroid of part in host's coordinate system. x=range, y=bearing, z=0 - /// - private Vector3Float _partLocation = new Vector3Float(); - - /// - /// named location - /// - private NamedLocation _namedLocationID = new NamedLocation(); - - /// - /// entity type - /// - private EntityType _partEntityType = new EntityType(); - - /// - /// Initializes a new instance of the class. - /// - public IsPartOfPdu() - { - PduType = (byte)36; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(IsPartOfPdu left, IsPartOfPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(IsPartOfPdu left, IsPartOfPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._orginatingEntityID.GetMarshalledSize(); // this._orginatingEntityID - marshalSize += this._receivingEntityID.GetMarshalledSize(); // this._receivingEntityID - marshalSize += this._relationship.GetMarshalledSize(); // this._relationship - marshalSize += this._partLocation.GetMarshalledSize(); // this._partLocation - marshalSize += this._namedLocationID.GetMarshalledSize(); // this._namedLocationID - marshalSize += this._partEntityType.GetMarshalledSize(); // this._partEntityType - return marshalSize; - } - - /// - /// Gets or sets the ID of entity originating PDU - /// - [XmlElement(Type = typeof(EntityID), ElementName = "orginatingEntityID")] - public EntityID OrginatingEntityID - { - get - { - return this._orginatingEntityID; - } - - set - { - this._orginatingEntityID = value; - } - } - - /// - /// Gets or sets the ID of entity receiving PDU - /// - [XmlElement(Type = typeof(EntityID), ElementName = "receivingEntityID")] - public EntityID ReceivingEntityID - { - get - { - return this._receivingEntityID; - } - - set - { - this._receivingEntityID = value; - } - } - - /// - /// Gets or sets the relationship of joined parts - /// - [XmlElement(Type = typeof(Relationship), ElementName = "relationship")] - public Relationship Relationship - { - get - { - return this._relationship; - } - - set - { - this._relationship = value; - } - } - - /// - /// Gets or sets the location of part; centroid of part in host's coordinate system. x=range, y=bearing, z=0 - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "partLocation")] - public Vector3Float PartLocation - { - get - { - return this._partLocation; - } - - set - { - this._partLocation = value; - } - } - - /// - /// Gets or sets the named location - /// - [XmlElement(Type = typeof(NamedLocation), ElementName = "namedLocationID")] - public NamedLocation NamedLocationID - { - get - { - return this._namedLocationID; - } - - set - { - this._namedLocationID = value; - } - } - - /// - /// Gets or sets the entity type - /// - [XmlElement(Type = typeof(EntityType), ElementName = "partEntityType")] - public EntityType PartEntityType - { - get - { - return this._partEntityType; - } - - set - { - this._partEntityType = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._orginatingEntityID.Marshal(dos); - this._receivingEntityID.Marshal(dos); - this._relationship.Marshal(dos); - this._partLocation.Marshal(dos); - this._namedLocationID.Marshal(dos); - this._partEntityType.Marshal(dos); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._orginatingEntityID.Unmarshal(dis); - this._receivingEntityID.Unmarshal(dis); - this._relationship.Unmarshal(dis); - this._partLocation.Unmarshal(dis); - this._namedLocationID.Unmarshal(dis); - this._partEntityType.Unmarshal(dis); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._orginatingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._receivingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._relationship.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._partLocation.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._namedLocationID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._partEntityType.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as IsPartOfPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(IsPartOfPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._orginatingEntityID.Equals(obj._orginatingEntityID)) - { - ivarsEqual = false; - } - - if (!this._receivingEntityID.Equals(obj._receivingEntityID)) - { - ivarsEqual = false; - } - - if (!this._relationship.Equals(obj._relationship)) - { - ivarsEqual = false; - } - - if (!this._partLocation.Equals(obj._partLocation)) - { - ivarsEqual = false; - } - - if (!this._namedLocationID.Equals(obj._namedLocationID)) - { - ivarsEqual = false; - } - - if (!this._partEntityType.Equals(obj._partEntityType)) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._orginatingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._receivingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._relationship.GetHashCode(); - result = GenerateHash(result) ^ this._partLocation.GetHashCode(); - result = GenerateHash(result) ^ this._namedLocationID.GetHashCode(); - result = GenerateHash(result) ^ this._partEntityType.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.9.4 The joining of two or more simulation entities is communicated by this PDU. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(Relationship))] + [XmlInclude(typeof(Vector3Float))] + [XmlInclude(typeof(NamedLocation))] + [XmlInclude(typeof(EntityType))] + public partial class IsPartOfPdu : EntityManagementFamilyPdu, IEquatable + { + /// + /// ID of entity originating PDU + /// + private EntityID _orginatingEntityID = new EntityID(); + + /// + /// ID of entity receiving PDU + /// + private EntityID _receivingEntityID = new EntityID(); + + /// + /// relationship of joined parts + /// + private Relationship _relationship = new Relationship(); + + /// + /// location of part; centroid of part in host's coordinate system. x=range, y=bearing, z=0 + /// + private Vector3Float _partLocation = new Vector3Float(); + + /// + /// named location + /// + private NamedLocation _namedLocationID = new NamedLocation(); + + /// + /// entity type + /// + private EntityType _partEntityType = new EntityType(); + + /// + /// Initializes a new instance of the class. + /// + public IsPartOfPdu() + { + PduType = (byte)36; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(IsPartOfPdu left, IsPartOfPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(IsPartOfPdu left, IsPartOfPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._orginatingEntityID.GetMarshalledSize(); // this._orginatingEntityID + marshalSize += this._receivingEntityID.GetMarshalledSize(); // this._receivingEntityID + marshalSize += this._relationship.GetMarshalledSize(); // this._relationship + marshalSize += this._partLocation.GetMarshalledSize(); // this._partLocation + marshalSize += this._namedLocationID.GetMarshalledSize(); // this._namedLocationID + marshalSize += this._partEntityType.GetMarshalledSize(); // this._partEntityType + return marshalSize; + } + + /// + /// Gets or sets the ID of entity originating PDU + /// + [XmlElement(Type = typeof(EntityID), ElementName = "orginatingEntityID")] + public EntityID OrginatingEntityID + { + get + { + return this._orginatingEntityID; + } + + set + { + this._orginatingEntityID = value; + } + } + + /// + /// Gets or sets the ID of entity receiving PDU + /// + [XmlElement(Type = typeof(EntityID), ElementName = "receivingEntityID")] + public EntityID ReceivingEntityID + { + get + { + return this._receivingEntityID; + } + + set + { + this._receivingEntityID = value; + } + } + + /// + /// Gets or sets the relationship of joined parts + /// + [XmlElement(Type = typeof(Relationship), ElementName = "relationship")] + public Relationship Relationship + { + get + { + return this._relationship; + } + + set + { + this._relationship = value; + } + } + + /// + /// Gets or sets the location of part; centroid of part in host's coordinate system. x=range, y=bearing, z=0 + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "partLocation")] + public Vector3Float PartLocation + { + get + { + return this._partLocation; + } + + set + { + this._partLocation = value; + } + } + + /// + /// Gets or sets the named location + /// + [XmlElement(Type = typeof(NamedLocation), ElementName = "namedLocationID")] + public NamedLocation NamedLocationID + { + get + { + return this._namedLocationID; + } + + set + { + this._namedLocationID = value; + } + } + + /// + /// Gets or sets the entity type + /// + [XmlElement(Type = typeof(EntityType), ElementName = "partEntityType")] + public EntityType PartEntityType + { + get + { + return this._partEntityType; + } + + set + { + this._partEntityType = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._orginatingEntityID.Marshal(dos); + this._receivingEntityID.Marshal(dos); + this._relationship.Marshal(dos); + this._partLocation.Marshal(dos); + this._namedLocationID.Marshal(dos); + this._partEntityType.Marshal(dos); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._orginatingEntityID.Unmarshal(dis); + this._receivingEntityID.Unmarshal(dis); + this._relationship.Unmarshal(dis); + this._partLocation.Unmarshal(dis); + this._namedLocationID.Unmarshal(dis); + this._partEntityType.Unmarshal(dis); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._orginatingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._receivingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._relationship.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._partLocation.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._namedLocationID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._partEntityType.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as IsPartOfPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(IsPartOfPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._orginatingEntityID.Equals(obj._orginatingEntityID)) + { + ivarsEqual = false; + } + + if (!this._receivingEntityID.Equals(obj._receivingEntityID)) + { + ivarsEqual = false; + } + + if (!this._relationship.Equals(obj._relationship)) + { + ivarsEqual = false; + } + + if (!this._partLocation.Equals(obj._partLocation)) + { + ivarsEqual = false; + } + + if (!this._namedLocationID.Equals(obj._namedLocationID)) + { + ivarsEqual = false; + } + + if (!this._partEntityType.Equals(obj._partEntityType)) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._orginatingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._receivingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._relationship.GetHashCode(); + result = GenerateHash(result) ^ this._partLocation.GetHashCode(); + result = GenerateHash(result) ^ this._namedLocationID.GetHashCode(); + result = GenerateHash(result) ^ this._partEntityType.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/LayerHeader.cs b/Libs/CsharpDis6/Dis1998/Generated/LayerHeader.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/LayerHeader.cs rename to Libs/CsharpDis6/Dis1998/Generated/LayerHeader.cs index d950558..4604c97 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/LayerHeader.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/LayerHeader.cs @@ -1,364 +1,364 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// 5.2.47. Layer header. - /// - [Serializable] - [XmlRoot] - public partial class LayerHeader - { - /// - /// Layer number - /// - private byte _layerNumber; - - /// - /// Layer speccific information enumeration - /// - private byte _layerSpecificInformaiton; - - /// - /// information length - /// - private ushort _length; - - /// - /// Initializes a new instance of the class. - /// - public LayerHeader() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(LayerHeader left, LayerHeader right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(LayerHeader left, LayerHeader right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._layerNumber - marshalSize += 1; // this._layerSpecificInformaiton - marshalSize += 2; // this._length - return marshalSize; - } - - /// - /// Gets or sets the Layer number - /// - [XmlElement(Type = typeof(byte), ElementName = "layerNumber")] - public byte LayerNumber - { - get - { - return this._layerNumber; - } - - set - { - this._layerNumber = value; - } - } - - /// - /// Gets or sets the Layer speccific information enumeration - /// - [XmlElement(Type = typeof(byte), ElementName = "layerSpecificInformaiton")] - public byte LayerSpecificInformaiton - { - get - { - return this._layerSpecificInformaiton; - } - - set - { - this._layerSpecificInformaiton = value; - } - } - - /// - /// Gets or sets the information length - /// - [XmlElement(Type = typeof(ushort), ElementName = "length")] - public ushort Length - { - get - { - return this._length; - } - - set - { - this._length = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._layerNumber); - dos.WriteUnsignedByte((byte)this._layerSpecificInformaiton); - dos.WriteUnsignedShort((ushort)this._length); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._layerNumber = dis.ReadUnsignedByte(); - this._layerSpecificInformaiton = dis.ReadUnsignedByte(); - this._length = dis.ReadUnsignedShort(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._layerNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._layerSpecificInformaiton.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._length.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as LayerHeader; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(LayerHeader obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._layerNumber != obj._layerNumber) - { - ivarsEqual = false; - } - - if (this._layerSpecificInformaiton != obj._layerSpecificInformaiton) - { - ivarsEqual = false; - } - - if (this._length != obj._length) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._layerNumber.GetHashCode(); - result = GenerateHash(result) ^ this._layerSpecificInformaiton.GetHashCode(); - result = GenerateHash(result) ^ this._length.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// 5.2.47. Layer header. + /// + [Serializable] + [XmlRoot] + public partial class LayerHeader + { + /// + /// Layer number + /// + private byte _layerNumber; + + /// + /// Layer speccific information enumeration + /// + private byte _layerSpecificInformaiton; + + /// + /// information length + /// + private ushort _length; + + /// + /// Initializes a new instance of the class. + /// + public LayerHeader() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(LayerHeader left, LayerHeader right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(LayerHeader left, LayerHeader right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._layerNumber + marshalSize += 1; // this._layerSpecificInformaiton + marshalSize += 2; // this._length + return marshalSize; + } + + /// + /// Gets or sets the Layer number + /// + [XmlElement(Type = typeof(byte), ElementName = "layerNumber")] + public byte LayerNumber + { + get + { + return this._layerNumber; + } + + set + { + this._layerNumber = value; + } + } + + /// + /// Gets or sets the Layer speccific information enumeration + /// + [XmlElement(Type = typeof(byte), ElementName = "layerSpecificInformaiton")] + public byte LayerSpecificInformaiton + { + get + { + return this._layerSpecificInformaiton; + } + + set + { + this._layerSpecificInformaiton = value; + } + } + + /// + /// Gets or sets the information length + /// + [XmlElement(Type = typeof(ushort), ElementName = "length")] + public ushort Length + { + get + { + return this._length; + } + + set + { + this._length = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._layerNumber); + dos.WriteUnsignedByte((byte)this._layerSpecificInformaiton); + dos.WriteUnsignedShort((ushort)this._length); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._layerNumber = dis.ReadUnsignedByte(); + this._layerSpecificInformaiton = dis.ReadUnsignedByte(); + this._length = dis.ReadUnsignedShort(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._layerNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._layerSpecificInformaiton.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._length.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as LayerHeader; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(LayerHeader obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._layerNumber != obj._layerNumber) + { + ivarsEqual = false; + } + + if (this._layerSpecificInformaiton != obj._layerSpecificInformaiton) + { + ivarsEqual = false; + } + + if (this._length != obj._length) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._layerNumber.GetHashCode(); + result = GenerateHash(result) ^ this._layerSpecificInformaiton.GetHashCode(); + result = GenerateHash(result) ^ this._length.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/LinearObjectStatePdu.cs b/Libs/CsharpDis6/Dis1998/Generated/LinearObjectStatePdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/LinearObjectStatePdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/LinearObjectStatePdu.cs index eb0dd74..70b2610 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/LinearObjectStatePdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/LinearObjectStatePdu.cs @@ -1,615 +1,615 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.11.4: Information abut the addition or modification of a synthecic enviroment object that is anchored to the terrain with a single point and has size or orientation. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(SimulationAddress))] - [XmlInclude(typeof(ObjectType))] - [XmlInclude(typeof(LinearSegmentParameter))] - public partial class LinearObjectStatePdu : SyntheticEnvironmentFamilyPdu, IEquatable - { - /// - /// Object in synthetic environment - /// - private EntityID _objectID = new EntityID(); - - /// - /// Object with which this point object is associated - /// - private EntityID _referencedObjectID = new EntityID(); - - /// - /// unique update number of each state transition of an object - /// - private ushort _updateNumber; - - /// - /// force ID - /// - private byte _forceID; - - /// - /// number of linear segment parameters - /// - private byte _numberOfSegments; - - /// - /// requesterID - /// - private SimulationAddress _requesterID = new SimulationAddress(); - - /// - /// receiver ID - /// - private SimulationAddress _receivingID = new SimulationAddress(); - - /// - /// Object type - /// - private ObjectType _objectType = new ObjectType(); - - /// - /// Linear segment parameters - /// - private List _linearSegmentParameters = new List(); - - /// - /// Initializes a new instance of the class. - /// - public LinearObjectStatePdu() - { - PduType = (byte)44; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(LinearObjectStatePdu left, LinearObjectStatePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(LinearObjectStatePdu left, LinearObjectStatePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._objectID.GetMarshalledSize(); // this._objectID - marshalSize += this._referencedObjectID.GetMarshalledSize(); // this._referencedObjectID - marshalSize += 2; // this._updateNumber - marshalSize += 1; // this._forceID - marshalSize += 1; // this._numberOfSegments - marshalSize += this._requesterID.GetMarshalledSize(); // this._requesterID - marshalSize += this._receivingID.GetMarshalledSize(); // this._receivingID - marshalSize += this._objectType.GetMarshalledSize(); // this._objectType - for (int idx = 0; idx < this._linearSegmentParameters.Count; idx++) - { - LinearSegmentParameter listElement = (LinearSegmentParameter)this._linearSegmentParameters[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Object in synthetic environment - /// - [XmlElement(Type = typeof(EntityID), ElementName = "objectID")] - public EntityID ObjectID - { - get - { - return this._objectID; - } - - set - { - this._objectID = value; - } - } - - /// - /// Gets or sets the Object with which this point object is associated - /// - [XmlElement(Type = typeof(EntityID), ElementName = "referencedObjectID")] - public EntityID ReferencedObjectID - { - get - { - return this._referencedObjectID; - } - - set - { - this._referencedObjectID = value; - } - } - - /// - /// Gets or sets the unique update number of each state transition of an object - /// - [XmlElement(Type = typeof(ushort), ElementName = "updateNumber")] - public ushort UpdateNumber - { - get - { - return this._updateNumber; - } - - set - { - this._updateNumber = value; - } - } - - /// - /// Gets or sets the force ID - /// - [XmlElement(Type = typeof(byte), ElementName = "forceID")] - public byte ForceID - { - get - { - return this._forceID; - } - - set - { - this._forceID = value; - } - } - - /// - /// Gets or sets the number of linear segment parameters - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfSegments method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfSegments")] - public byte NumberOfSegments - { - get - { - return this._numberOfSegments; - } - - set - { - this._numberOfSegments = value; - } - } - - /// - /// Gets or sets the requesterID - /// - [XmlElement(Type = typeof(SimulationAddress), ElementName = "requesterID")] - public SimulationAddress RequesterID - { - get - { - return this._requesterID; - } - - set - { - this._requesterID = value; - } - } - - /// - /// Gets or sets the receiver ID - /// - [XmlElement(Type = typeof(SimulationAddress), ElementName = "receivingID")] - public SimulationAddress ReceivingID - { - get - { - return this._receivingID; - } - - set - { - this._receivingID = value; - } - } - - /// - /// Gets or sets the Object type - /// - [XmlElement(Type = typeof(ObjectType), ElementName = "objectType")] - public ObjectType ObjectType - { - get - { - return this._objectType; - } - - set - { - this._objectType = value; - } - } - - /// - /// Gets the Linear segment parameters - /// - [XmlElement(ElementName = "linearSegmentParametersList", Type = typeof(List))] - public List LinearSegmentParameters - { - get - { - return this._linearSegmentParameters; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._objectID.Marshal(dos); - this._referencedObjectID.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._updateNumber); - dos.WriteUnsignedByte((byte)this._forceID); - dos.WriteUnsignedByte((byte)this._linearSegmentParameters.Count); - this._requesterID.Marshal(dos); - this._receivingID.Marshal(dos); - this._objectType.Marshal(dos); - - for (int idx = 0; idx < this._linearSegmentParameters.Count; idx++) - { - LinearSegmentParameter aLinearSegmentParameter = (LinearSegmentParameter)this._linearSegmentParameters[idx]; - aLinearSegmentParameter.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._objectID.Unmarshal(dis); - this._referencedObjectID.Unmarshal(dis); - this._updateNumber = dis.ReadUnsignedShort(); - this._forceID = dis.ReadUnsignedByte(); - this._numberOfSegments = dis.ReadUnsignedByte(); - this._requesterID.Unmarshal(dis); - this._receivingID.Unmarshal(dis); - this._objectType.Unmarshal(dis); - - for (int idx = 0; idx < this.NumberOfSegments; idx++) - { - LinearSegmentParameter anX = new LinearSegmentParameter(); - anX.Unmarshal(dis); - this._linearSegmentParameters.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._objectID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._referencedObjectID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._updateNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._forceID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._linearSegmentParameters.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._requesterID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._receivingID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._objectType.Reflection(sb); - sb.AppendLine(""); - for (int idx = 0; idx < this._linearSegmentParameters.Count; idx++) - { - sb.AppendLine(""); - LinearSegmentParameter aLinearSegmentParameter = (LinearSegmentParameter)this._linearSegmentParameters[idx]; - aLinearSegmentParameter.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as LinearObjectStatePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(LinearObjectStatePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._objectID.Equals(obj._objectID)) - { - ivarsEqual = false; - } - - if (!this._referencedObjectID.Equals(obj._referencedObjectID)) - { - ivarsEqual = false; - } - - if (this._updateNumber != obj._updateNumber) - { - ivarsEqual = false; - } - - if (this._forceID != obj._forceID) - { - ivarsEqual = false; - } - - if (this._numberOfSegments != obj._numberOfSegments) - { - ivarsEqual = false; - } - - if (!this._requesterID.Equals(obj._requesterID)) - { - ivarsEqual = false; - } - - if (!this._receivingID.Equals(obj._receivingID)) - { - ivarsEqual = false; - } - - if (!this._objectType.Equals(obj._objectType)) - { - ivarsEqual = false; - } - - if (this._linearSegmentParameters.Count != obj._linearSegmentParameters.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._linearSegmentParameters.Count; idx++) - { - if (!this._linearSegmentParameters[idx].Equals(obj._linearSegmentParameters[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._objectID.GetHashCode(); - result = GenerateHash(result) ^ this._referencedObjectID.GetHashCode(); - result = GenerateHash(result) ^ this._updateNumber.GetHashCode(); - result = GenerateHash(result) ^ this._forceID.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfSegments.GetHashCode(); - result = GenerateHash(result) ^ this._requesterID.GetHashCode(); - result = GenerateHash(result) ^ this._receivingID.GetHashCode(); - result = GenerateHash(result) ^ this._objectType.GetHashCode(); - - if (this._linearSegmentParameters.Count > 0) - { - for (int idx = 0; idx < this._linearSegmentParameters.Count; idx++) - { - result = GenerateHash(result) ^ this._linearSegmentParameters[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.11.4: Information abut the addition or modification of a synthecic enviroment object that is anchored to the terrain with a single point and has size or orientation. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(SimulationAddress))] + [XmlInclude(typeof(ObjectType))] + [XmlInclude(typeof(LinearSegmentParameter))] + public partial class LinearObjectStatePdu : SyntheticEnvironmentFamilyPdu, IEquatable + { + /// + /// Object in synthetic environment + /// + private EntityID _objectID = new EntityID(); + + /// + /// Object with which this point object is associated + /// + private EntityID _referencedObjectID = new EntityID(); + + /// + /// unique update number of each state transition of an object + /// + private ushort _updateNumber; + + /// + /// force ID + /// + private byte _forceID; + + /// + /// number of linear segment parameters + /// + private byte _numberOfSegments; + + /// + /// requesterID + /// + private SimulationAddress _requesterID = new SimulationAddress(); + + /// + /// receiver ID + /// + private SimulationAddress _receivingID = new SimulationAddress(); + + /// + /// Object type + /// + private ObjectType _objectType = new ObjectType(); + + /// + /// Linear segment parameters + /// + private List _linearSegmentParameters = new List(); + + /// + /// Initializes a new instance of the class. + /// + public LinearObjectStatePdu() + { + PduType = (byte)44; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(LinearObjectStatePdu left, LinearObjectStatePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(LinearObjectStatePdu left, LinearObjectStatePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._objectID.GetMarshalledSize(); // this._objectID + marshalSize += this._referencedObjectID.GetMarshalledSize(); // this._referencedObjectID + marshalSize += 2; // this._updateNumber + marshalSize += 1; // this._forceID + marshalSize += 1; // this._numberOfSegments + marshalSize += this._requesterID.GetMarshalledSize(); // this._requesterID + marshalSize += this._receivingID.GetMarshalledSize(); // this._receivingID + marshalSize += this._objectType.GetMarshalledSize(); // this._objectType + for (int idx = 0; idx < this._linearSegmentParameters.Count; idx++) + { + LinearSegmentParameter listElement = (LinearSegmentParameter)this._linearSegmentParameters[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Object in synthetic environment + /// + [XmlElement(Type = typeof(EntityID), ElementName = "objectID")] + public EntityID ObjectID + { + get + { + return this._objectID; + } + + set + { + this._objectID = value; + } + } + + /// + /// Gets or sets the Object with which this point object is associated + /// + [XmlElement(Type = typeof(EntityID), ElementName = "referencedObjectID")] + public EntityID ReferencedObjectID + { + get + { + return this._referencedObjectID; + } + + set + { + this._referencedObjectID = value; + } + } + + /// + /// Gets or sets the unique update number of each state transition of an object + /// + [XmlElement(Type = typeof(ushort), ElementName = "updateNumber")] + public ushort UpdateNumber + { + get + { + return this._updateNumber; + } + + set + { + this._updateNumber = value; + } + } + + /// + /// Gets or sets the force ID + /// + [XmlElement(Type = typeof(byte), ElementName = "forceID")] + public byte ForceID + { + get + { + return this._forceID; + } + + set + { + this._forceID = value; + } + } + + /// + /// Gets or sets the number of linear segment parameters + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfSegments method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfSegments")] + public byte NumberOfSegments + { + get + { + return this._numberOfSegments; + } + + set + { + this._numberOfSegments = value; + } + } + + /// + /// Gets or sets the requesterID + /// + [XmlElement(Type = typeof(SimulationAddress), ElementName = "requesterID")] + public SimulationAddress RequesterID + { + get + { + return this._requesterID; + } + + set + { + this._requesterID = value; + } + } + + /// + /// Gets or sets the receiver ID + /// + [XmlElement(Type = typeof(SimulationAddress), ElementName = "receivingID")] + public SimulationAddress ReceivingID + { + get + { + return this._receivingID; + } + + set + { + this._receivingID = value; + } + } + + /// + /// Gets or sets the Object type + /// + [XmlElement(Type = typeof(ObjectType), ElementName = "objectType")] + public ObjectType ObjectType + { + get + { + return this._objectType; + } + + set + { + this._objectType = value; + } + } + + /// + /// Gets the Linear segment parameters + /// + [XmlElement(ElementName = "linearSegmentParametersList", Type = typeof(List))] + public List LinearSegmentParameters + { + get + { + return this._linearSegmentParameters; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._objectID.Marshal(dos); + this._referencedObjectID.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._updateNumber); + dos.WriteUnsignedByte((byte)this._forceID); + dos.WriteUnsignedByte((byte)this._linearSegmentParameters.Count); + this._requesterID.Marshal(dos); + this._receivingID.Marshal(dos); + this._objectType.Marshal(dos); + + for (int idx = 0; idx < this._linearSegmentParameters.Count; idx++) + { + LinearSegmentParameter aLinearSegmentParameter = (LinearSegmentParameter)this._linearSegmentParameters[idx]; + aLinearSegmentParameter.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._objectID.Unmarshal(dis); + this._referencedObjectID.Unmarshal(dis); + this._updateNumber = dis.ReadUnsignedShort(); + this._forceID = dis.ReadUnsignedByte(); + this._numberOfSegments = dis.ReadUnsignedByte(); + this._requesterID.Unmarshal(dis); + this._receivingID.Unmarshal(dis); + this._objectType.Unmarshal(dis); + + for (int idx = 0; idx < this.NumberOfSegments; idx++) + { + LinearSegmentParameter anX = new LinearSegmentParameter(); + anX.Unmarshal(dis); + this._linearSegmentParameters.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._objectID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._referencedObjectID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._updateNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._forceID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._linearSegmentParameters.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._requesterID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._receivingID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._objectType.Reflection(sb); + sb.AppendLine(""); + for (int idx = 0; idx < this._linearSegmentParameters.Count; idx++) + { + sb.AppendLine(""); + LinearSegmentParameter aLinearSegmentParameter = (LinearSegmentParameter)this._linearSegmentParameters[idx]; + aLinearSegmentParameter.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as LinearObjectStatePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(LinearObjectStatePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._objectID.Equals(obj._objectID)) + { + ivarsEqual = false; + } + + if (!this._referencedObjectID.Equals(obj._referencedObjectID)) + { + ivarsEqual = false; + } + + if (this._updateNumber != obj._updateNumber) + { + ivarsEqual = false; + } + + if (this._forceID != obj._forceID) + { + ivarsEqual = false; + } + + if (this._numberOfSegments != obj._numberOfSegments) + { + ivarsEqual = false; + } + + if (!this._requesterID.Equals(obj._requesterID)) + { + ivarsEqual = false; + } + + if (!this._receivingID.Equals(obj._receivingID)) + { + ivarsEqual = false; + } + + if (!this._objectType.Equals(obj._objectType)) + { + ivarsEqual = false; + } + + if (this._linearSegmentParameters.Count != obj._linearSegmentParameters.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._linearSegmentParameters.Count; idx++) + { + if (!this._linearSegmentParameters[idx].Equals(obj._linearSegmentParameters[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._objectID.GetHashCode(); + result = GenerateHash(result) ^ this._referencedObjectID.GetHashCode(); + result = GenerateHash(result) ^ this._updateNumber.GetHashCode(); + result = GenerateHash(result) ^ this._forceID.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfSegments.GetHashCode(); + result = GenerateHash(result) ^ this._requesterID.GetHashCode(); + result = GenerateHash(result) ^ this._receivingID.GetHashCode(); + result = GenerateHash(result) ^ this._objectType.GetHashCode(); + + if (this._linearSegmentParameters.Count > 0) + { + for (int idx = 0; idx < this._linearSegmentParameters.Count; idx++) + { + result = GenerateHash(result) ^ this._linearSegmentParameters[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/LinearSegmentParameter.cs b/Libs/CsharpDis6/Dis1998/Generated/LinearSegmentParameter.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/LinearSegmentParameter.cs rename to Libs/CsharpDis6/Dis1998/Generated/LinearSegmentParameter.cs index 37f4d56..2283c7e 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/LinearSegmentParameter.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/LinearSegmentParameter.cs @@ -1,565 +1,565 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// 5.2.48: Linear segment parameters - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(SixByteChunk))] - [XmlInclude(typeof(Vector3Double))] - [XmlInclude(typeof(Orientation))] - public partial class LinearSegmentParameter - { - /// - /// number of segments - /// - private byte _segmentNumber; - - /// - /// segment appearance - /// - private SixByteChunk _segmentAppearance = new SixByteChunk(); - - /// - /// location - /// - private Vector3Double _location = new Vector3Double(); - - /// - /// orientation - /// - private Orientation _orientation = new Orientation(); - - /// - /// segmentLength - /// - private ushort _segmentLength; - - /// - /// segmentWidth - /// - private ushort _segmentWidth; - - /// - /// segmentHeight - /// - private ushort _segmentHeight; - - /// - /// segment Depth - /// - private ushort _segmentDepth; - - /// - /// segment Depth - /// - private uint _pad1; - - /// - /// Initializes a new instance of the class. - /// - public LinearSegmentParameter() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(LinearSegmentParameter left, LinearSegmentParameter right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(LinearSegmentParameter left, LinearSegmentParameter right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._segmentNumber - marshalSize += this._segmentAppearance.GetMarshalledSize(); // this._segmentAppearance - marshalSize += this._location.GetMarshalledSize(); // this._location - marshalSize += this._orientation.GetMarshalledSize(); // this._orientation - marshalSize += 2; // this._segmentLength - marshalSize += 2; // this._segmentWidth - marshalSize += 2; // this._segmentHeight - marshalSize += 2; // this._segmentDepth - marshalSize += 4; // this._pad1 - return marshalSize; - } - - /// - /// Gets or sets the number of segments - /// - [XmlElement(Type = typeof(byte), ElementName = "segmentNumber")] - public byte SegmentNumber - { - get - { - return this._segmentNumber; - } - - set - { - this._segmentNumber = value; - } - } - - /// - /// Gets or sets the segment appearance - /// - [XmlElement(Type = typeof(SixByteChunk), ElementName = "segmentAppearance")] - public SixByteChunk SegmentAppearance - { - get - { - return this._segmentAppearance; - } - - set - { - this._segmentAppearance = value; - } - } - - /// - /// Gets or sets the location - /// - [XmlElement(Type = typeof(Vector3Double), ElementName = "location")] - public Vector3Double Location - { - get - { - return this._location; - } - - set - { - this._location = value; - } - } - - /// - /// Gets or sets the orientation - /// - [XmlElement(Type = typeof(Orientation), ElementName = "orientation")] - public Orientation Orientation - { - get - { - return this._orientation; - } - - set - { - this._orientation = value; - } - } - - /// - /// Gets or sets the segmentLength - /// - [XmlElement(Type = typeof(ushort), ElementName = "segmentLength")] - public ushort SegmentLength - { - get - { - return this._segmentLength; - } - - set - { - this._segmentLength = value; - } - } - - /// - /// Gets or sets the segmentWidth - /// - [XmlElement(Type = typeof(ushort), ElementName = "segmentWidth")] - public ushort SegmentWidth - { - get - { - return this._segmentWidth; - } - - set - { - this._segmentWidth = value; - } - } - - /// - /// Gets or sets the segmentHeight - /// - [XmlElement(Type = typeof(ushort), ElementName = "segmentHeight")] - public ushort SegmentHeight - { - get - { - return this._segmentHeight; - } - - set - { - this._segmentHeight = value; - } - } - - /// - /// Gets or sets the segment Depth - /// - [XmlElement(Type = typeof(ushort), ElementName = "segmentDepth")] - public ushort SegmentDepth - { - get - { - return this._segmentDepth; - } - - set - { - this._segmentDepth = value; - } - } - - /// - /// Gets or sets the segment Depth - /// - [XmlElement(Type = typeof(uint), ElementName = "pad1")] - public uint Pad1 - { - get - { - return this._pad1; - } - - set - { - this._pad1 = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._segmentNumber); - this._segmentAppearance.Marshal(dos); - this._location.Marshal(dos); - this._orientation.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._segmentLength); - dos.WriteUnsignedShort((ushort)this._segmentWidth); - dos.WriteUnsignedShort((ushort)this._segmentHeight); - dos.WriteUnsignedShort((ushort)this._segmentDepth); - dos.WriteUnsignedInt((uint)this._pad1); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._segmentNumber = dis.ReadUnsignedByte(); - this._segmentAppearance.Unmarshal(dis); - this._location.Unmarshal(dis); - this._orientation.Unmarshal(dis); - this._segmentLength = dis.ReadUnsignedShort(); - this._segmentWidth = dis.ReadUnsignedShort(); - this._segmentHeight = dis.ReadUnsignedShort(); - this._segmentDepth = dis.ReadUnsignedShort(); - this._pad1 = dis.ReadUnsignedInt(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._segmentNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._segmentAppearance.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._location.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._orientation.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._segmentLength.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._segmentWidth.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._segmentHeight.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._segmentDepth.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as LinearSegmentParameter; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(LinearSegmentParameter obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._segmentNumber != obj._segmentNumber) - { - ivarsEqual = false; - } - - if (!this._segmentAppearance.Equals(obj._segmentAppearance)) - { - ivarsEqual = false; - } - - if (!this._location.Equals(obj._location)) - { - ivarsEqual = false; - } - - if (!this._orientation.Equals(obj._orientation)) - { - ivarsEqual = false; - } - - if (this._segmentLength != obj._segmentLength) - { - ivarsEqual = false; - } - - if (this._segmentWidth != obj._segmentWidth) - { - ivarsEqual = false; - } - - if (this._segmentHeight != obj._segmentHeight) - { - ivarsEqual = false; - } - - if (this._segmentDepth != obj._segmentDepth) - { - ivarsEqual = false; - } - - if (this._pad1 != obj._pad1) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._segmentNumber.GetHashCode(); - result = GenerateHash(result) ^ this._segmentAppearance.GetHashCode(); - result = GenerateHash(result) ^ this._location.GetHashCode(); - result = GenerateHash(result) ^ this._orientation.GetHashCode(); - result = GenerateHash(result) ^ this._segmentLength.GetHashCode(); - result = GenerateHash(result) ^ this._segmentWidth.GetHashCode(); - result = GenerateHash(result) ^ this._segmentHeight.GetHashCode(); - result = GenerateHash(result) ^ this._segmentDepth.GetHashCode(); - result = GenerateHash(result) ^ this._pad1.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// 5.2.48: Linear segment parameters + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(SixByteChunk))] + [XmlInclude(typeof(Vector3Double))] + [XmlInclude(typeof(Orientation))] + public partial class LinearSegmentParameter + { + /// + /// number of segments + /// + private byte _segmentNumber; + + /// + /// segment appearance + /// + private SixByteChunk _segmentAppearance = new SixByteChunk(); + + /// + /// location + /// + private Vector3Double _location = new Vector3Double(); + + /// + /// orientation + /// + private Orientation _orientation = new Orientation(); + + /// + /// segmentLength + /// + private ushort _segmentLength; + + /// + /// segmentWidth + /// + private ushort _segmentWidth; + + /// + /// segmentHeight + /// + private ushort _segmentHeight; + + /// + /// segment Depth + /// + private ushort _segmentDepth; + + /// + /// segment Depth + /// + private uint _pad1; + + /// + /// Initializes a new instance of the class. + /// + public LinearSegmentParameter() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(LinearSegmentParameter left, LinearSegmentParameter right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(LinearSegmentParameter left, LinearSegmentParameter right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._segmentNumber + marshalSize += this._segmentAppearance.GetMarshalledSize(); // this._segmentAppearance + marshalSize += this._location.GetMarshalledSize(); // this._location + marshalSize += this._orientation.GetMarshalledSize(); // this._orientation + marshalSize += 2; // this._segmentLength + marshalSize += 2; // this._segmentWidth + marshalSize += 2; // this._segmentHeight + marshalSize += 2; // this._segmentDepth + marshalSize += 4; // this._pad1 + return marshalSize; + } + + /// + /// Gets or sets the number of segments + /// + [XmlElement(Type = typeof(byte), ElementName = "segmentNumber")] + public byte SegmentNumber + { + get + { + return this._segmentNumber; + } + + set + { + this._segmentNumber = value; + } + } + + /// + /// Gets or sets the segment appearance + /// + [XmlElement(Type = typeof(SixByteChunk), ElementName = "segmentAppearance")] + public SixByteChunk SegmentAppearance + { + get + { + return this._segmentAppearance; + } + + set + { + this._segmentAppearance = value; + } + } + + /// + /// Gets or sets the location + /// + [XmlElement(Type = typeof(Vector3Double), ElementName = "location")] + public Vector3Double Location + { + get + { + return this._location; + } + + set + { + this._location = value; + } + } + + /// + /// Gets or sets the orientation + /// + [XmlElement(Type = typeof(Orientation), ElementName = "orientation")] + public Orientation Orientation + { + get + { + return this._orientation; + } + + set + { + this._orientation = value; + } + } + + /// + /// Gets or sets the segmentLength + /// + [XmlElement(Type = typeof(ushort), ElementName = "segmentLength")] + public ushort SegmentLength + { + get + { + return this._segmentLength; + } + + set + { + this._segmentLength = value; + } + } + + /// + /// Gets or sets the segmentWidth + /// + [XmlElement(Type = typeof(ushort), ElementName = "segmentWidth")] + public ushort SegmentWidth + { + get + { + return this._segmentWidth; + } + + set + { + this._segmentWidth = value; + } + } + + /// + /// Gets or sets the segmentHeight + /// + [XmlElement(Type = typeof(ushort), ElementName = "segmentHeight")] + public ushort SegmentHeight + { + get + { + return this._segmentHeight; + } + + set + { + this._segmentHeight = value; + } + } + + /// + /// Gets or sets the segment Depth + /// + [XmlElement(Type = typeof(ushort), ElementName = "segmentDepth")] + public ushort SegmentDepth + { + get + { + return this._segmentDepth; + } + + set + { + this._segmentDepth = value; + } + } + + /// + /// Gets or sets the segment Depth + /// + [XmlElement(Type = typeof(uint), ElementName = "pad1")] + public uint Pad1 + { + get + { + return this._pad1; + } + + set + { + this._pad1 = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._segmentNumber); + this._segmentAppearance.Marshal(dos); + this._location.Marshal(dos); + this._orientation.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._segmentLength); + dos.WriteUnsignedShort((ushort)this._segmentWidth); + dos.WriteUnsignedShort((ushort)this._segmentHeight); + dos.WriteUnsignedShort((ushort)this._segmentDepth); + dos.WriteUnsignedInt((uint)this._pad1); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._segmentNumber = dis.ReadUnsignedByte(); + this._segmentAppearance.Unmarshal(dis); + this._location.Unmarshal(dis); + this._orientation.Unmarshal(dis); + this._segmentLength = dis.ReadUnsignedShort(); + this._segmentWidth = dis.ReadUnsignedShort(); + this._segmentHeight = dis.ReadUnsignedShort(); + this._segmentDepth = dis.ReadUnsignedShort(); + this._pad1 = dis.ReadUnsignedInt(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._segmentNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._segmentAppearance.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._location.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._orientation.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._segmentLength.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._segmentWidth.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._segmentHeight.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._segmentDepth.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as LinearSegmentParameter; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(LinearSegmentParameter obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._segmentNumber != obj._segmentNumber) + { + ivarsEqual = false; + } + + if (!this._segmentAppearance.Equals(obj._segmentAppearance)) + { + ivarsEqual = false; + } + + if (!this._location.Equals(obj._location)) + { + ivarsEqual = false; + } + + if (!this._orientation.Equals(obj._orientation)) + { + ivarsEqual = false; + } + + if (this._segmentLength != obj._segmentLength) + { + ivarsEqual = false; + } + + if (this._segmentWidth != obj._segmentWidth) + { + ivarsEqual = false; + } + + if (this._segmentHeight != obj._segmentHeight) + { + ivarsEqual = false; + } + + if (this._segmentDepth != obj._segmentDepth) + { + ivarsEqual = false; + } + + if (this._pad1 != obj._pad1) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._segmentNumber.GetHashCode(); + result = GenerateHash(result) ^ this._segmentAppearance.GetHashCode(); + result = GenerateHash(result) ^ this._location.GetHashCode(); + result = GenerateHash(result) ^ this._orientation.GetHashCode(); + result = GenerateHash(result) ^ this._segmentLength.GetHashCode(); + result = GenerateHash(result) ^ this._segmentWidth.GetHashCode(); + result = GenerateHash(result) ^ this._segmentHeight.GetHashCode(); + result = GenerateHash(result) ^ this._segmentDepth.GetHashCode(); + result = GenerateHash(result) ^ this._pad1.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/LogisticsFamilyPdu.cs b/Libs/CsharpDis6/Dis1998/Generated/LogisticsFamilyPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/LogisticsFamilyPdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/LogisticsFamilyPdu.cs index 1f35507..d04406a 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/LogisticsFamilyPdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/LogisticsFamilyPdu.cs @@ -1,271 +1,271 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.5. Abstract superclass for logistics PDUs. COMPLETE - /// - [Serializable] - [XmlRoot] - public partial class LogisticsFamilyPdu : Pdu, IEquatable - { - /// - /// Initializes a new instance of the class. - /// - public LogisticsFamilyPdu() - { - ProtocolFamily = (byte)3; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(LogisticsFamilyPdu left, LogisticsFamilyPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(LogisticsFamilyPdu left, LogisticsFamilyPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - return marshalSize; - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public virtual void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as LogisticsFamilyPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(LogisticsFamilyPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.5. Abstract superclass for logistics PDUs. COMPLETE + /// + [Serializable] + [XmlRoot] + public partial class LogisticsFamilyPdu : Pdu, IEquatable + { + /// + /// Initializes a new instance of the class. + /// + public LogisticsFamilyPdu() + { + ProtocolFamily = (byte)3; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(LogisticsFamilyPdu left, LogisticsFamilyPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(LogisticsFamilyPdu left, LogisticsFamilyPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + return marshalSize; + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public virtual void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as LogisticsFamilyPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(LogisticsFamilyPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/Marking.cs b/Libs/CsharpDis6/Dis1998/Generated/Marking.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/Marking.cs rename to Libs/CsharpDis6/Dis1998/Generated/Marking.cs index de5da4d..79271e6 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/Marking.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/Marking.cs @@ -1,359 +1,359 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.2.15. Specifies the character set used inthe first byte, followed by 11 characters of text data. - /// - [Serializable] - [XmlRoot] - public partial class Marking - { - /// - /// The character set - /// - private byte _characterSet; - - /// - /// The characters - /// - private byte[] _characters = new byte[11]; - - /// - /// Initializes a new instance of the class. - /// - public Marking() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(Marking left, Marking right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(Marking left, Marking right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._characterSet - marshalSize += 11 * 1; // _characters - return marshalSize; - } - - /// - /// Gets or sets the The character set - /// - [XmlElement(Type = typeof(byte), ElementName = "characterSet")] - public byte CharacterSet - { - get - { - return this._characterSet; - } - - set - { - this._characterSet = value; - } - } - - /// - /// Gets or sets the The characters - /// - [XmlArray(ElementName = "characters")] - public byte[] Characters - { - get - { - return this._characters; - } - - set - { - this._characters = value; - } -} - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._characterSet); - - for (int idx = 0; idx < this._characters.Length; idx++) - { - dos.WriteByte(this._characters[idx]); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._characterSet = dis.ReadUnsignedByte(); - - for (int idx = 0; idx < this._characters.Length; idx++) - { - this._characters[idx] = dis.ReadByte(); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._characterSet.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._characters.Length; idx++) - { - sb.AppendLine("" + this._characters[idx] + ""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as Marking; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(Marking obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._characterSet != obj._characterSet) - { - ivarsEqual = false; - } - - if (obj._characters.Length != 11) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < 11; idx++) - { - if (this._characters[idx] != obj._characters[idx]) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._characterSet.GetHashCode(); - - for (int idx = 0; idx < 11; idx++) - { - result = GenerateHash(result) ^ this._characters[idx].GetHashCode(); - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.2.15. Specifies the character set used inthe first byte, followed by 11 characters of text data. + /// + [Serializable] + [XmlRoot] + public partial class Marking + { + /// + /// The character set + /// + private byte _characterSet; + + /// + /// The characters + /// + private byte[] _characters = new byte[11]; + + /// + /// Initializes a new instance of the class. + /// + public Marking() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(Marking left, Marking right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(Marking left, Marking right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._characterSet + marshalSize += 11 * 1; // _characters + return marshalSize; + } + + /// + /// Gets or sets the The character set + /// + [XmlElement(Type = typeof(byte), ElementName = "characterSet")] + public byte CharacterSet + { + get + { + return this._characterSet; + } + + set + { + this._characterSet = value; + } + } + + /// + /// Gets or sets the The characters + /// + [XmlArray(ElementName = "characters")] + public byte[] Characters + { + get + { + return this._characters; + } + + set + { + this._characters = value; + } +} + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._characterSet); + + for (int idx = 0; idx < this._characters.Length; idx++) + { + dos.WriteByte(this._characters[idx]); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._characterSet = dis.ReadUnsignedByte(); + + for (int idx = 0; idx < this._characters.Length; idx++) + { + this._characters[idx] = dis.ReadByte(); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._characterSet.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._characters.Length; idx++) + { + sb.AppendLine("" + this._characters[idx] + ""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as Marking; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(Marking obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._characterSet != obj._characterSet) + { + ivarsEqual = false; + } + + if (obj._characters.Length != 11) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < 11; idx++) + { + if (this._characters[idx] != obj._characters[idx]) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._characterSet.GetHashCode(); + + for (int idx = 0; idx < 11; idx++) + { + result = GenerateHash(result) ^ this._characters[idx].GetHashCode(); + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/MinefieldDataPdu.cs b/Libs/CsharpDis6/Dis1998/Generated/MinefieldDataPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/MinefieldDataPdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/MinefieldDataPdu.cs index d9c2670..22a523a 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/MinefieldDataPdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/MinefieldDataPdu.cs @@ -1,815 +1,815 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.10.3 Information about individual mines within a minefield. This is very, very wrong. UNFINISHED - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(EntityType))] - [XmlInclude(typeof(TwoByteChunk))] - [XmlInclude(typeof(Vector3Float))] - public partial class MinefieldDataPdu : MinefieldFamilyPdu, IEquatable - { - /// - /// Minefield ID - /// - private EntityID _minefieldID = new EntityID(); - - /// - /// ID of entity making request - /// - private EntityID _requestingEntityID = new EntityID(); - - /// - /// Minefield sequence number - /// - private ushort _minefieldSequenceNumbeer; - - /// - /// request ID - /// - private byte _requestID; - - /// - /// pdu sequence number - /// - private byte _pduSequenceNumber; - - /// - /// number of pdus in response - /// - private byte _numberOfPdus; - - /// - /// how many mines are in this PDU - /// - private byte _numberOfMinesInThisPdu; - - /// - /// how many sensor type are in this PDU - /// - private byte _numberOfSensorTypes; - - /// - /// padding - /// - private byte _pad2; - - /// - /// 32 boolean fields - /// - private uint _dataFilter; - - /// - /// Mine type - /// - private EntityType _mineType = new EntityType(); - - /// - /// Sensor types, each 16 bits long - /// - private List _sensorTypes = new List(); - - /// - /// Padding to get things 32-bit aligned. ^^^this is wrong--dyanmically sized padding needed - /// - private byte _pad3; - - /// - /// Mine locations - /// - private List _mineLocation = new List(); - - /// - /// Initializes a new instance of the class. - /// - public MinefieldDataPdu() - { - PduType = (byte)39; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(MinefieldDataPdu left, MinefieldDataPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(MinefieldDataPdu left, MinefieldDataPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._minefieldID.GetMarshalledSize(); // this._minefieldID - marshalSize += this._requestingEntityID.GetMarshalledSize(); // this._requestingEntityID - marshalSize += 2; // this._minefieldSequenceNumbeer - marshalSize += 1; // this._requestID - marshalSize += 1; // this._pduSequenceNumber - marshalSize += 1; // this._numberOfPdus - marshalSize += 1; // this._numberOfMinesInThisPdu - marshalSize += 1; // this._numberOfSensorTypes - marshalSize += 1; // this._pad2 - marshalSize += 4; // this._dataFilter - marshalSize += this._mineType.GetMarshalledSize(); // this._mineType - for (int idx = 0; idx < this._sensorTypes.Count; idx++) - { - TwoByteChunk listElement = (TwoByteChunk)this._sensorTypes[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - marshalSize += 1; // this._pad3 - for (int idx = 0; idx < this._mineLocation.Count; idx++) - { - Vector3Float listElement = (Vector3Float)this._mineLocation[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Minefield ID - /// - [XmlElement(Type = typeof(EntityID), ElementName = "minefieldID")] - public EntityID MinefieldID - { - get - { - return this._minefieldID; - } - - set - { - this._minefieldID = value; - } - } - - /// - /// Gets or sets the ID of entity making request - /// - [XmlElement(Type = typeof(EntityID), ElementName = "requestingEntityID")] - public EntityID RequestingEntityID - { - get - { - return this._requestingEntityID; - } - - set - { - this._requestingEntityID = value; - } - } - - /// - /// Gets or sets the Minefield sequence number - /// - [XmlElement(Type = typeof(ushort), ElementName = "minefieldSequenceNumbeer")] - public ushort MinefieldSequenceNumbeer - { - get - { - return this._minefieldSequenceNumbeer; - } - - set - { - this._minefieldSequenceNumbeer = value; - } - } - - /// - /// Gets or sets the request ID - /// - [XmlElement(Type = typeof(byte), ElementName = "requestID")] - public byte RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Gets or sets the pdu sequence number - /// - [XmlElement(Type = typeof(byte), ElementName = "pduSequenceNumber")] - public byte PduSequenceNumber - { - get - { - return this._pduSequenceNumber; - } - - set - { - this._pduSequenceNumber = value; - } - } - - /// - /// Gets or sets the number of pdus in response - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfPdus")] - public byte NumberOfPdus - { - get - { - return this._numberOfPdus; - } - - set - { - this._numberOfPdus = value; - } - } - - /// - /// Gets or sets the how many mines are in this PDU - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfMinesInThisPdu method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfMinesInThisPdu")] - public byte NumberOfMinesInThisPdu - { - get - { - return this._numberOfMinesInThisPdu; - } - - set - { - this._numberOfMinesInThisPdu = value; - } - } - - /// - /// Gets or sets the how many sensor type are in this PDU - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfSensorTypes method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfSensorTypes")] - public byte NumberOfSensorTypes - { - get - { - return this._numberOfSensorTypes; - } - - set - { - this._numberOfSensorTypes = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "pad2")] - public byte Pad2 - { - get - { - return this._pad2; - } - - set - { - this._pad2 = value; - } - } - - /// - /// Gets or sets the 32 boolean fields - /// - [XmlElement(Type = typeof(uint), ElementName = "dataFilter")] - public uint DataFilter - { - get - { - return this._dataFilter; - } - - set - { - this._dataFilter = value; - } - } - - /// - /// Gets or sets the Mine type - /// - [XmlElement(Type = typeof(EntityType), ElementName = "mineType")] - public EntityType MineType - { - get - { - return this._mineType; - } - - set - { - this._mineType = value; - } - } - - /// - /// Gets the Sensor types, each 16 bits long - /// - [XmlElement(ElementName = "sensorTypesList", Type = typeof(List))] - public List SensorTypes - { - get - { - return this._sensorTypes; - } - } - - /// - /// Gets or sets the Padding to get things 32-bit aligned. ^^^this is wrong--dyanmically sized padding needed - /// - [XmlElement(Type = typeof(byte), ElementName = "pad3")] - public byte Pad3 - { - get - { - return this._pad3; - } - - set - { - this._pad3 = value; - } - } - - /// - /// Gets the Mine locations - /// - [XmlElement(ElementName = "mineLocationList", Type = typeof(List))] - public List MineLocation - { - get - { - return this._mineLocation; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._minefieldID.Marshal(dos); - this._requestingEntityID.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._minefieldSequenceNumbeer); - dos.WriteUnsignedByte((byte)this._requestID); - dos.WriteUnsignedByte((byte)this._pduSequenceNumber); - dos.WriteUnsignedByte((byte)this._numberOfPdus); - dos.WriteUnsignedByte((byte)this._mineLocation.Count); - dos.WriteUnsignedByte((byte)this._sensorTypes.Count); - dos.WriteUnsignedByte((byte)this._pad2); - dos.WriteUnsignedInt((uint)this._dataFilter); - this._mineType.Marshal(dos); - - for (int idx = 0; idx < this._sensorTypes.Count; idx++) - { - TwoByteChunk aTwoByteChunk = (TwoByteChunk)this._sensorTypes[idx]; - aTwoByteChunk.Marshal(dos); - } - - dos.WriteUnsignedByte((byte)this._pad3); - - for (int idx = 0; idx < this._mineLocation.Count; idx++) - { - Vector3Float aVector3Float = (Vector3Float)this._mineLocation[idx]; - aVector3Float.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._minefieldID.Unmarshal(dis); - this._requestingEntityID.Unmarshal(dis); - this._minefieldSequenceNumbeer = dis.ReadUnsignedShort(); - this._requestID = dis.ReadUnsignedByte(); - this._pduSequenceNumber = dis.ReadUnsignedByte(); - this._numberOfPdus = dis.ReadUnsignedByte(); - this._numberOfMinesInThisPdu = dis.ReadUnsignedByte(); - this._numberOfSensorTypes = dis.ReadUnsignedByte(); - this._pad2 = dis.ReadUnsignedByte(); - this._dataFilter = dis.ReadUnsignedInt(); - this._mineType.Unmarshal(dis); - - for (int idx = 0; idx < this.NumberOfSensorTypes; idx++) - { - TwoByteChunk anX = new TwoByteChunk(); - anX.Unmarshal(dis); - this._sensorTypes.Add(anX); - } - - this._pad3 = dis.ReadUnsignedByte(); - - for (int idx = 0; idx < this.NumberOfMinesInThisPdu; idx++) - { - Vector3Float anX = new Vector3Float(); - anX.Unmarshal(dis); - this._mineLocation.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._minefieldID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._requestingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._minefieldSequenceNumbeer.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pduSequenceNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._numberOfPdus.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._mineLocation.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._sensorTypes.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._dataFilter.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._mineType.Reflection(sb); - sb.AppendLine(""); - for (int idx = 0; idx < this._sensorTypes.Count; idx++) - { - sb.AppendLine(""); - TwoByteChunk aTwoByteChunk = (TwoByteChunk)this._sensorTypes[idx]; - aTwoByteChunk.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine("" + this._pad3.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._mineLocation.Count; idx++) - { - sb.AppendLine(""); - Vector3Float aVector3Float = (Vector3Float)this._mineLocation[idx]; - aVector3Float.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as MinefieldDataPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(MinefieldDataPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._minefieldID.Equals(obj._minefieldID)) - { - ivarsEqual = false; - } - - if (!this._requestingEntityID.Equals(obj._requestingEntityID)) - { - ivarsEqual = false; - } - - if (this._minefieldSequenceNumbeer != obj._minefieldSequenceNumbeer) - { - ivarsEqual = false; - } - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - if (this._pduSequenceNumber != obj._pduSequenceNumber) - { - ivarsEqual = false; - } - - if (this._numberOfPdus != obj._numberOfPdus) - { - ivarsEqual = false; - } - - if (this._numberOfMinesInThisPdu != obj._numberOfMinesInThisPdu) - { - ivarsEqual = false; - } - - if (this._numberOfSensorTypes != obj._numberOfSensorTypes) - { - ivarsEqual = false; - } - - if (this._pad2 != obj._pad2) - { - ivarsEqual = false; - } - - if (this._dataFilter != obj._dataFilter) - { - ivarsEqual = false; - } - - if (!this._mineType.Equals(obj._mineType)) - { - ivarsEqual = false; - } - - if (this._sensorTypes.Count != obj._sensorTypes.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._sensorTypes.Count; idx++) - { - if (!this._sensorTypes[idx].Equals(obj._sensorTypes[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._pad3 != obj._pad3) - { - ivarsEqual = false; - } - - if (this._mineLocation.Count != obj._mineLocation.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._mineLocation.Count; idx++) - { - if (!this._mineLocation[idx].Equals(obj._mineLocation[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._minefieldID.GetHashCode(); - result = GenerateHash(result) ^ this._requestingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._minefieldSequenceNumbeer.GetHashCode(); - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - result = GenerateHash(result) ^ this._pduSequenceNumber.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfPdus.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfMinesInThisPdu.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfSensorTypes.GetHashCode(); - result = GenerateHash(result) ^ this._pad2.GetHashCode(); - result = GenerateHash(result) ^ this._dataFilter.GetHashCode(); - result = GenerateHash(result) ^ this._mineType.GetHashCode(); - - if (this._sensorTypes.Count > 0) - { - for (int idx = 0; idx < this._sensorTypes.Count; idx++) - { - result = GenerateHash(result) ^ this._sensorTypes[idx].GetHashCode(); - } - } - - result = GenerateHash(result) ^ this._pad3.GetHashCode(); - - if (this._mineLocation.Count > 0) - { - for (int idx = 0; idx < this._mineLocation.Count; idx++) - { - result = GenerateHash(result) ^ this._mineLocation[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.10.3 Information about individual mines within a minefield. This is very, very wrong. UNFINISHED + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(EntityType))] + [XmlInclude(typeof(TwoByteChunk))] + [XmlInclude(typeof(Vector3Float))] + public partial class MinefieldDataPdu : MinefieldFamilyPdu, IEquatable + { + /// + /// Minefield ID + /// + private EntityID _minefieldID = new EntityID(); + + /// + /// ID of entity making request + /// + private EntityID _requestingEntityID = new EntityID(); + + /// + /// Minefield sequence number + /// + private ushort _minefieldSequenceNumbeer; + + /// + /// request ID + /// + private byte _requestID; + + /// + /// pdu sequence number + /// + private byte _pduSequenceNumber; + + /// + /// number of pdus in response + /// + private byte _numberOfPdus; + + /// + /// how many mines are in this PDU + /// + private byte _numberOfMinesInThisPdu; + + /// + /// how many sensor type are in this PDU + /// + private byte _numberOfSensorTypes; + + /// + /// padding + /// + private byte _pad2; + + /// + /// 32 boolean fields + /// + private uint _dataFilter; + + /// + /// Mine type + /// + private EntityType _mineType = new EntityType(); + + /// + /// Sensor types, each 16 bits long + /// + private List _sensorTypes = new List(); + + /// + /// Padding to get things 32-bit aligned. ^^^this is wrong--dyanmically sized padding needed + /// + private byte _pad3; + + /// + /// Mine locations + /// + private List _mineLocation = new List(); + + /// + /// Initializes a new instance of the class. + /// + public MinefieldDataPdu() + { + PduType = (byte)39; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(MinefieldDataPdu left, MinefieldDataPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(MinefieldDataPdu left, MinefieldDataPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._minefieldID.GetMarshalledSize(); // this._minefieldID + marshalSize += this._requestingEntityID.GetMarshalledSize(); // this._requestingEntityID + marshalSize += 2; // this._minefieldSequenceNumbeer + marshalSize += 1; // this._requestID + marshalSize += 1; // this._pduSequenceNumber + marshalSize += 1; // this._numberOfPdus + marshalSize += 1; // this._numberOfMinesInThisPdu + marshalSize += 1; // this._numberOfSensorTypes + marshalSize += 1; // this._pad2 + marshalSize += 4; // this._dataFilter + marshalSize += this._mineType.GetMarshalledSize(); // this._mineType + for (int idx = 0; idx < this._sensorTypes.Count; idx++) + { + TwoByteChunk listElement = (TwoByteChunk)this._sensorTypes[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + marshalSize += 1; // this._pad3 + for (int idx = 0; idx < this._mineLocation.Count; idx++) + { + Vector3Float listElement = (Vector3Float)this._mineLocation[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Minefield ID + /// + [XmlElement(Type = typeof(EntityID), ElementName = "minefieldID")] + public EntityID MinefieldID + { + get + { + return this._minefieldID; + } + + set + { + this._minefieldID = value; + } + } + + /// + /// Gets or sets the ID of entity making request + /// + [XmlElement(Type = typeof(EntityID), ElementName = "requestingEntityID")] + public EntityID RequestingEntityID + { + get + { + return this._requestingEntityID; + } + + set + { + this._requestingEntityID = value; + } + } + + /// + /// Gets or sets the Minefield sequence number + /// + [XmlElement(Type = typeof(ushort), ElementName = "minefieldSequenceNumbeer")] + public ushort MinefieldSequenceNumbeer + { + get + { + return this._minefieldSequenceNumbeer; + } + + set + { + this._minefieldSequenceNumbeer = value; + } + } + + /// + /// Gets or sets the request ID + /// + [XmlElement(Type = typeof(byte), ElementName = "requestID")] + public byte RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Gets or sets the pdu sequence number + /// + [XmlElement(Type = typeof(byte), ElementName = "pduSequenceNumber")] + public byte PduSequenceNumber + { + get + { + return this._pduSequenceNumber; + } + + set + { + this._pduSequenceNumber = value; + } + } + + /// + /// Gets or sets the number of pdus in response + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfPdus")] + public byte NumberOfPdus + { + get + { + return this._numberOfPdus; + } + + set + { + this._numberOfPdus = value; + } + } + + /// + /// Gets or sets the how many mines are in this PDU + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfMinesInThisPdu method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfMinesInThisPdu")] + public byte NumberOfMinesInThisPdu + { + get + { + return this._numberOfMinesInThisPdu; + } + + set + { + this._numberOfMinesInThisPdu = value; + } + } + + /// + /// Gets or sets the how many sensor type are in this PDU + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfSensorTypes method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfSensorTypes")] + public byte NumberOfSensorTypes + { + get + { + return this._numberOfSensorTypes; + } + + set + { + this._numberOfSensorTypes = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "pad2")] + public byte Pad2 + { + get + { + return this._pad2; + } + + set + { + this._pad2 = value; + } + } + + /// + /// Gets or sets the 32 boolean fields + /// + [XmlElement(Type = typeof(uint), ElementName = "dataFilter")] + public uint DataFilter + { + get + { + return this._dataFilter; + } + + set + { + this._dataFilter = value; + } + } + + /// + /// Gets or sets the Mine type + /// + [XmlElement(Type = typeof(EntityType), ElementName = "mineType")] + public EntityType MineType + { + get + { + return this._mineType; + } + + set + { + this._mineType = value; + } + } + + /// + /// Gets the Sensor types, each 16 bits long + /// + [XmlElement(ElementName = "sensorTypesList", Type = typeof(List))] + public List SensorTypes + { + get + { + return this._sensorTypes; + } + } + + /// + /// Gets or sets the Padding to get things 32-bit aligned. ^^^this is wrong--dyanmically sized padding needed + /// + [XmlElement(Type = typeof(byte), ElementName = "pad3")] + public byte Pad3 + { + get + { + return this._pad3; + } + + set + { + this._pad3 = value; + } + } + + /// + /// Gets the Mine locations + /// + [XmlElement(ElementName = "mineLocationList", Type = typeof(List))] + public List MineLocation + { + get + { + return this._mineLocation; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._minefieldID.Marshal(dos); + this._requestingEntityID.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._minefieldSequenceNumbeer); + dos.WriteUnsignedByte((byte)this._requestID); + dos.WriteUnsignedByte((byte)this._pduSequenceNumber); + dos.WriteUnsignedByte((byte)this._numberOfPdus); + dos.WriteUnsignedByte((byte)this._mineLocation.Count); + dos.WriteUnsignedByte((byte)this._sensorTypes.Count); + dos.WriteUnsignedByte((byte)this._pad2); + dos.WriteUnsignedInt((uint)this._dataFilter); + this._mineType.Marshal(dos); + + for (int idx = 0; idx < this._sensorTypes.Count; idx++) + { + TwoByteChunk aTwoByteChunk = (TwoByteChunk)this._sensorTypes[idx]; + aTwoByteChunk.Marshal(dos); + } + + dos.WriteUnsignedByte((byte)this._pad3); + + for (int idx = 0; idx < this._mineLocation.Count; idx++) + { + Vector3Float aVector3Float = (Vector3Float)this._mineLocation[idx]; + aVector3Float.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._minefieldID.Unmarshal(dis); + this._requestingEntityID.Unmarshal(dis); + this._minefieldSequenceNumbeer = dis.ReadUnsignedShort(); + this._requestID = dis.ReadUnsignedByte(); + this._pduSequenceNumber = dis.ReadUnsignedByte(); + this._numberOfPdus = dis.ReadUnsignedByte(); + this._numberOfMinesInThisPdu = dis.ReadUnsignedByte(); + this._numberOfSensorTypes = dis.ReadUnsignedByte(); + this._pad2 = dis.ReadUnsignedByte(); + this._dataFilter = dis.ReadUnsignedInt(); + this._mineType.Unmarshal(dis); + + for (int idx = 0; idx < this.NumberOfSensorTypes; idx++) + { + TwoByteChunk anX = new TwoByteChunk(); + anX.Unmarshal(dis); + this._sensorTypes.Add(anX); + } + + this._pad3 = dis.ReadUnsignedByte(); + + for (int idx = 0; idx < this.NumberOfMinesInThisPdu; idx++) + { + Vector3Float anX = new Vector3Float(); + anX.Unmarshal(dis); + this._mineLocation.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._minefieldID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._requestingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._minefieldSequenceNumbeer.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pduSequenceNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._numberOfPdus.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._mineLocation.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._sensorTypes.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._dataFilter.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._mineType.Reflection(sb); + sb.AppendLine(""); + for (int idx = 0; idx < this._sensorTypes.Count; idx++) + { + sb.AppendLine(""); + TwoByteChunk aTwoByteChunk = (TwoByteChunk)this._sensorTypes[idx]; + aTwoByteChunk.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine("" + this._pad3.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._mineLocation.Count; idx++) + { + sb.AppendLine(""); + Vector3Float aVector3Float = (Vector3Float)this._mineLocation[idx]; + aVector3Float.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as MinefieldDataPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(MinefieldDataPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._minefieldID.Equals(obj._minefieldID)) + { + ivarsEqual = false; + } + + if (!this._requestingEntityID.Equals(obj._requestingEntityID)) + { + ivarsEqual = false; + } + + if (this._minefieldSequenceNumbeer != obj._minefieldSequenceNumbeer) + { + ivarsEqual = false; + } + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + if (this._pduSequenceNumber != obj._pduSequenceNumber) + { + ivarsEqual = false; + } + + if (this._numberOfPdus != obj._numberOfPdus) + { + ivarsEqual = false; + } + + if (this._numberOfMinesInThisPdu != obj._numberOfMinesInThisPdu) + { + ivarsEqual = false; + } + + if (this._numberOfSensorTypes != obj._numberOfSensorTypes) + { + ivarsEqual = false; + } + + if (this._pad2 != obj._pad2) + { + ivarsEqual = false; + } + + if (this._dataFilter != obj._dataFilter) + { + ivarsEqual = false; + } + + if (!this._mineType.Equals(obj._mineType)) + { + ivarsEqual = false; + } + + if (this._sensorTypes.Count != obj._sensorTypes.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._sensorTypes.Count; idx++) + { + if (!this._sensorTypes[idx].Equals(obj._sensorTypes[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._pad3 != obj._pad3) + { + ivarsEqual = false; + } + + if (this._mineLocation.Count != obj._mineLocation.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._mineLocation.Count; idx++) + { + if (!this._mineLocation[idx].Equals(obj._mineLocation[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._minefieldID.GetHashCode(); + result = GenerateHash(result) ^ this._requestingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._minefieldSequenceNumbeer.GetHashCode(); + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + result = GenerateHash(result) ^ this._pduSequenceNumber.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfPdus.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfMinesInThisPdu.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfSensorTypes.GetHashCode(); + result = GenerateHash(result) ^ this._pad2.GetHashCode(); + result = GenerateHash(result) ^ this._dataFilter.GetHashCode(); + result = GenerateHash(result) ^ this._mineType.GetHashCode(); + + if (this._sensorTypes.Count > 0) + { + for (int idx = 0; idx < this._sensorTypes.Count; idx++) + { + result = GenerateHash(result) ^ this._sensorTypes[idx].GetHashCode(); + } + } + + result = GenerateHash(result) ^ this._pad3.GetHashCode(); + + if (this._mineLocation.Count > 0) + { + for (int idx = 0; idx < this._mineLocation.Count; idx++) + { + result = GenerateHash(result) ^ this._mineLocation[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/MinefieldFamilyPdu.cs b/Libs/CsharpDis6/Dis1998/Generated/MinefieldFamilyPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/MinefieldFamilyPdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/MinefieldFamilyPdu.cs index 8712990..334671e 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/MinefieldFamilyPdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/MinefieldFamilyPdu.cs @@ -1,271 +1,271 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.10.1 Abstract superclass for PDUs relating to minefields - /// - [Serializable] - [XmlRoot] - public partial class MinefieldFamilyPdu : Pdu, IEquatable - { - /// - /// Initializes a new instance of the class. - /// - public MinefieldFamilyPdu() - { - ProtocolFamily = (byte)8; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(MinefieldFamilyPdu left, MinefieldFamilyPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(MinefieldFamilyPdu left, MinefieldFamilyPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - return marshalSize; - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public virtual void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as MinefieldFamilyPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(MinefieldFamilyPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.10.1 Abstract superclass for PDUs relating to minefields + /// + [Serializable] + [XmlRoot] + public partial class MinefieldFamilyPdu : Pdu, IEquatable + { + /// + /// Initializes a new instance of the class. + /// + public MinefieldFamilyPdu() + { + ProtocolFamily = (byte)8; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(MinefieldFamilyPdu left, MinefieldFamilyPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(MinefieldFamilyPdu left, MinefieldFamilyPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + return marshalSize; + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public virtual void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as MinefieldFamilyPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(MinefieldFamilyPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/MinefieldQueryPdu.cs b/Libs/CsharpDis6/Dis1998/Generated/MinefieldQueryPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/MinefieldQueryPdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/MinefieldQueryPdu.cs index 8c092f6..c7d042f 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/MinefieldQueryPdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/MinefieldQueryPdu.cs @@ -1,684 +1,684 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.10.2 Query a minefield for information about individual mines. Requires manual clean up to get the padding right. UNFINISHED - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(EntityType))] - [XmlInclude(typeof(Point))] - [XmlInclude(typeof(TwoByteChunk))] - public partial class MinefieldQueryPdu : MinefieldFamilyPdu, IEquatable - { - /// - /// Minefield ID - /// - private EntityID _minefieldID = new EntityID(); - - /// - /// EID of entity making the request - /// - private EntityID _requestingEntityID = new EntityID(); - - /// - /// request ID - /// - private byte _requestID; - - /// - /// Number of perimeter points for the minefield - /// - private byte _numberOfPerimeterPoints; - - /// - /// Padding - /// - private byte _pad2; - - /// - /// Number of sensor types - /// - private byte _numberOfSensorTypes; - - /// - /// data filter, 32 boolean fields - /// - private uint _dataFilter; - - /// - /// Entity type of mine being requested - /// - private EntityType _requestedMineType = new EntityType(); - - /// - /// perimeter points of request - /// - private List _requestedPerimeterPoints = new List(); - - /// - /// Sensor types, each 16 bits long - /// - private List _sensorTypes = new List(); - - /// - /// Initializes a new instance of the class. - /// - public MinefieldQueryPdu() - { - PduType = (byte)38; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(MinefieldQueryPdu left, MinefieldQueryPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(MinefieldQueryPdu left, MinefieldQueryPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._minefieldID.GetMarshalledSize(); // this._minefieldID - marshalSize += this._requestingEntityID.GetMarshalledSize(); // this._requestingEntityID - marshalSize += 1; // this._requestID - marshalSize += 1; // this._numberOfPerimeterPoints - marshalSize += 1; // this._pad2 - marshalSize += 1; // this._numberOfSensorTypes - marshalSize += 4; // this._dataFilter - marshalSize += this._requestedMineType.GetMarshalledSize(); // this._requestedMineType - for (int idx = 0; idx < this._requestedPerimeterPoints.Count; idx++) - { - Point listElement = (Point)this._requestedPerimeterPoints[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._sensorTypes.Count; idx++) - { - TwoByteChunk listElement = (TwoByteChunk)this._sensorTypes[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Minefield ID - /// - [XmlElement(Type = typeof(EntityID), ElementName = "minefieldID")] - public EntityID MinefieldID - { - get - { - return this._minefieldID; - } - - set - { - this._minefieldID = value; - } - } - - /// - /// Gets or sets the EID of entity making the request - /// - [XmlElement(Type = typeof(EntityID), ElementName = "requestingEntityID")] - public EntityID RequestingEntityID - { - get - { - return this._requestingEntityID; - } - - set - { - this._requestingEntityID = value; - } - } - - /// - /// Gets or sets the request ID - /// - [XmlElement(Type = typeof(byte), ElementName = "requestID")] - public byte RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Gets or sets the Number of perimeter points for the minefield - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfPerimeterPoints method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfPerimeterPoints")] - public byte NumberOfPerimeterPoints - { - get - { - return this._numberOfPerimeterPoints; - } - - set - { - this._numberOfPerimeterPoints = value; - } - } - - /// - /// Gets or sets the Padding - /// - [XmlElement(Type = typeof(byte), ElementName = "pad2")] - public byte Pad2 - { - get - { - return this._pad2; - } - - set - { - this._pad2 = value; - } - } - - /// - /// Gets or sets the Number of sensor types - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfSensorTypes method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfSensorTypes")] - public byte NumberOfSensorTypes - { - get - { - return this._numberOfSensorTypes; - } - - set - { - this._numberOfSensorTypes = value; - } - } - - /// - /// Gets or sets the data filter, 32 boolean fields - /// - [XmlElement(Type = typeof(uint), ElementName = "dataFilter")] - public uint DataFilter - { - get - { - return this._dataFilter; - } - - set - { - this._dataFilter = value; - } - } - - /// - /// Gets or sets the Entity type of mine being requested - /// - [XmlElement(Type = typeof(EntityType), ElementName = "requestedMineType")] - public EntityType RequestedMineType - { - get - { - return this._requestedMineType; - } - - set - { - this._requestedMineType = value; - } - } - - /// - /// Gets the perimeter points of request - /// - [XmlElement(ElementName = "requestedPerimeterPointsList", Type = typeof(List))] - public List RequestedPerimeterPoints - { - get - { - return this._requestedPerimeterPoints; - } - } - - /// - /// Gets the Sensor types, each 16 bits long - /// - [XmlElement(ElementName = "sensorTypesList", Type = typeof(List))] - public List SensorTypes - { - get - { - return this._sensorTypes; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._minefieldID.Marshal(dos); - this._requestingEntityID.Marshal(dos); - dos.WriteUnsignedByte((byte)this._requestID); - dos.WriteUnsignedByte((byte)this._requestedPerimeterPoints.Count); - dos.WriteUnsignedByte((byte)this._pad2); - dos.WriteUnsignedByte((byte)this._sensorTypes.Count); - dos.WriteUnsignedInt((uint)this._dataFilter); - this._requestedMineType.Marshal(dos); - - for (int idx = 0; idx < this._requestedPerimeterPoints.Count; idx++) - { - Point aPoint = (Point)this._requestedPerimeterPoints[idx]; - aPoint.Marshal(dos); - } - - for (int idx = 0; idx < this._sensorTypes.Count; idx++) - { - TwoByteChunk aTwoByteChunk = (TwoByteChunk)this._sensorTypes[idx]; - aTwoByteChunk.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._minefieldID.Unmarshal(dis); - this._requestingEntityID.Unmarshal(dis); - this._requestID = dis.ReadUnsignedByte(); - this._numberOfPerimeterPoints = dis.ReadUnsignedByte(); - this._pad2 = dis.ReadUnsignedByte(); - this._numberOfSensorTypes = dis.ReadUnsignedByte(); - this._dataFilter = dis.ReadUnsignedInt(); - this._requestedMineType.Unmarshal(dis); - - for (int idx = 0; idx < this.NumberOfPerimeterPoints; idx++) - { - Point anX = new Point(); - anX.Unmarshal(dis); - this._requestedPerimeterPoints.Add(anX); - } - - for (int idx = 0; idx < this.NumberOfSensorTypes; idx++) - { - TwoByteChunk anX = new TwoByteChunk(); - anX.Unmarshal(dis); - this._sensorTypes.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._minefieldID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._requestingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._requestedPerimeterPoints.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._sensorTypes.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._dataFilter.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._requestedMineType.Reflection(sb); - sb.AppendLine(""); - for (int idx = 0; idx < this._requestedPerimeterPoints.Count; idx++) - { - sb.AppendLine(""); - Point aPoint = (Point)this._requestedPerimeterPoints[idx]; - aPoint.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._sensorTypes.Count; idx++) - { - sb.AppendLine(""); - TwoByteChunk aTwoByteChunk = (TwoByteChunk)this._sensorTypes[idx]; - aTwoByteChunk.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as MinefieldQueryPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(MinefieldQueryPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._minefieldID.Equals(obj._minefieldID)) - { - ivarsEqual = false; - } - - if (!this._requestingEntityID.Equals(obj._requestingEntityID)) - { - ivarsEqual = false; - } - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - if (this._numberOfPerimeterPoints != obj._numberOfPerimeterPoints) - { - ivarsEqual = false; - } - - if (this._pad2 != obj._pad2) - { - ivarsEqual = false; - } - - if (this._numberOfSensorTypes != obj._numberOfSensorTypes) - { - ivarsEqual = false; - } - - if (this._dataFilter != obj._dataFilter) - { - ivarsEqual = false; - } - - if (!this._requestedMineType.Equals(obj._requestedMineType)) - { - ivarsEqual = false; - } - - if (this._requestedPerimeterPoints.Count != obj._requestedPerimeterPoints.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._requestedPerimeterPoints.Count; idx++) - { - if (!this._requestedPerimeterPoints[idx].Equals(obj._requestedPerimeterPoints[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._sensorTypes.Count != obj._sensorTypes.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._sensorTypes.Count; idx++) - { - if (!this._sensorTypes[idx].Equals(obj._sensorTypes[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._minefieldID.GetHashCode(); - result = GenerateHash(result) ^ this._requestingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfPerimeterPoints.GetHashCode(); - result = GenerateHash(result) ^ this._pad2.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfSensorTypes.GetHashCode(); - result = GenerateHash(result) ^ this._dataFilter.GetHashCode(); - result = GenerateHash(result) ^ this._requestedMineType.GetHashCode(); - - if (this._requestedPerimeterPoints.Count > 0) - { - for (int idx = 0; idx < this._requestedPerimeterPoints.Count; idx++) - { - result = GenerateHash(result) ^ this._requestedPerimeterPoints[idx].GetHashCode(); - } - } - - if (this._sensorTypes.Count > 0) - { - for (int idx = 0; idx < this._sensorTypes.Count; idx++) - { - result = GenerateHash(result) ^ this._sensorTypes[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.10.2 Query a minefield for information about individual mines. Requires manual clean up to get the padding right. UNFINISHED + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(EntityType))] + [XmlInclude(typeof(Point))] + [XmlInclude(typeof(TwoByteChunk))] + public partial class MinefieldQueryPdu : MinefieldFamilyPdu, IEquatable + { + /// + /// Minefield ID + /// + private EntityID _minefieldID = new EntityID(); + + /// + /// EID of entity making the request + /// + private EntityID _requestingEntityID = new EntityID(); + + /// + /// request ID + /// + private byte _requestID; + + /// + /// Number of perimeter points for the minefield + /// + private byte _numberOfPerimeterPoints; + + /// + /// Padding + /// + private byte _pad2; + + /// + /// Number of sensor types + /// + private byte _numberOfSensorTypes; + + /// + /// data filter, 32 boolean fields + /// + private uint _dataFilter; + + /// + /// Entity type of mine being requested + /// + private EntityType _requestedMineType = new EntityType(); + + /// + /// perimeter points of request + /// + private List _requestedPerimeterPoints = new List(); + + /// + /// Sensor types, each 16 bits long + /// + private List _sensorTypes = new List(); + + /// + /// Initializes a new instance of the class. + /// + public MinefieldQueryPdu() + { + PduType = (byte)38; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(MinefieldQueryPdu left, MinefieldQueryPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(MinefieldQueryPdu left, MinefieldQueryPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._minefieldID.GetMarshalledSize(); // this._minefieldID + marshalSize += this._requestingEntityID.GetMarshalledSize(); // this._requestingEntityID + marshalSize += 1; // this._requestID + marshalSize += 1; // this._numberOfPerimeterPoints + marshalSize += 1; // this._pad2 + marshalSize += 1; // this._numberOfSensorTypes + marshalSize += 4; // this._dataFilter + marshalSize += this._requestedMineType.GetMarshalledSize(); // this._requestedMineType + for (int idx = 0; idx < this._requestedPerimeterPoints.Count; idx++) + { + Point listElement = (Point)this._requestedPerimeterPoints[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._sensorTypes.Count; idx++) + { + TwoByteChunk listElement = (TwoByteChunk)this._sensorTypes[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Minefield ID + /// + [XmlElement(Type = typeof(EntityID), ElementName = "minefieldID")] + public EntityID MinefieldID + { + get + { + return this._minefieldID; + } + + set + { + this._minefieldID = value; + } + } + + /// + /// Gets or sets the EID of entity making the request + /// + [XmlElement(Type = typeof(EntityID), ElementName = "requestingEntityID")] + public EntityID RequestingEntityID + { + get + { + return this._requestingEntityID; + } + + set + { + this._requestingEntityID = value; + } + } + + /// + /// Gets or sets the request ID + /// + [XmlElement(Type = typeof(byte), ElementName = "requestID")] + public byte RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Gets or sets the Number of perimeter points for the minefield + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfPerimeterPoints method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfPerimeterPoints")] + public byte NumberOfPerimeterPoints + { + get + { + return this._numberOfPerimeterPoints; + } + + set + { + this._numberOfPerimeterPoints = value; + } + } + + /// + /// Gets or sets the Padding + /// + [XmlElement(Type = typeof(byte), ElementName = "pad2")] + public byte Pad2 + { + get + { + return this._pad2; + } + + set + { + this._pad2 = value; + } + } + + /// + /// Gets or sets the Number of sensor types + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfSensorTypes method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfSensorTypes")] + public byte NumberOfSensorTypes + { + get + { + return this._numberOfSensorTypes; + } + + set + { + this._numberOfSensorTypes = value; + } + } + + /// + /// Gets or sets the data filter, 32 boolean fields + /// + [XmlElement(Type = typeof(uint), ElementName = "dataFilter")] + public uint DataFilter + { + get + { + return this._dataFilter; + } + + set + { + this._dataFilter = value; + } + } + + /// + /// Gets or sets the Entity type of mine being requested + /// + [XmlElement(Type = typeof(EntityType), ElementName = "requestedMineType")] + public EntityType RequestedMineType + { + get + { + return this._requestedMineType; + } + + set + { + this._requestedMineType = value; + } + } + + /// + /// Gets the perimeter points of request + /// + [XmlElement(ElementName = "requestedPerimeterPointsList", Type = typeof(List))] + public List RequestedPerimeterPoints + { + get + { + return this._requestedPerimeterPoints; + } + } + + /// + /// Gets the Sensor types, each 16 bits long + /// + [XmlElement(ElementName = "sensorTypesList", Type = typeof(List))] + public List SensorTypes + { + get + { + return this._sensorTypes; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._minefieldID.Marshal(dos); + this._requestingEntityID.Marshal(dos); + dos.WriteUnsignedByte((byte)this._requestID); + dos.WriteUnsignedByte((byte)this._requestedPerimeterPoints.Count); + dos.WriteUnsignedByte((byte)this._pad2); + dos.WriteUnsignedByte((byte)this._sensorTypes.Count); + dos.WriteUnsignedInt((uint)this._dataFilter); + this._requestedMineType.Marshal(dos); + + for (int idx = 0; idx < this._requestedPerimeterPoints.Count; idx++) + { + Point aPoint = (Point)this._requestedPerimeterPoints[idx]; + aPoint.Marshal(dos); + } + + for (int idx = 0; idx < this._sensorTypes.Count; idx++) + { + TwoByteChunk aTwoByteChunk = (TwoByteChunk)this._sensorTypes[idx]; + aTwoByteChunk.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._minefieldID.Unmarshal(dis); + this._requestingEntityID.Unmarshal(dis); + this._requestID = dis.ReadUnsignedByte(); + this._numberOfPerimeterPoints = dis.ReadUnsignedByte(); + this._pad2 = dis.ReadUnsignedByte(); + this._numberOfSensorTypes = dis.ReadUnsignedByte(); + this._dataFilter = dis.ReadUnsignedInt(); + this._requestedMineType.Unmarshal(dis); + + for (int idx = 0; idx < this.NumberOfPerimeterPoints; idx++) + { + Point anX = new Point(); + anX.Unmarshal(dis); + this._requestedPerimeterPoints.Add(anX); + } + + for (int idx = 0; idx < this.NumberOfSensorTypes; idx++) + { + TwoByteChunk anX = new TwoByteChunk(); + anX.Unmarshal(dis); + this._sensorTypes.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._minefieldID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._requestingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._requestedPerimeterPoints.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._sensorTypes.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._dataFilter.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._requestedMineType.Reflection(sb); + sb.AppendLine(""); + for (int idx = 0; idx < this._requestedPerimeterPoints.Count; idx++) + { + sb.AppendLine(""); + Point aPoint = (Point)this._requestedPerimeterPoints[idx]; + aPoint.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._sensorTypes.Count; idx++) + { + sb.AppendLine(""); + TwoByteChunk aTwoByteChunk = (TwoByteChunk)this._sensorTypes[idx]; + aTwoByteChunk.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as MinefieldQueryPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(MinefieldQueryPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._minefieldID.Equals(obj._minefieldID)) + { + ivarsEqual = false; + } + + if (!this._requestingEntityID.Equals(obj._requestingEntityID)) + { + ivarsEqual = false; + } + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + if (this._numberOfPerimeterPoints != obj._numberOfPerimeterPoints) + { + ivarsEqual = false; + } + + if (this._pad2 != obj._pad2) + { + ivarsEqual = false; + } + + if (this._numberOfSensorTypes != obj._numberOfSensorTypes) + { + ivarsEqual = false; + } + + if (this._dataFilter != obj._dataFilter) + { + ivarsEqual = false; + } + + if (!this._requestedMineType.Equals(obj._requestedMineType)) + { + ivarsEqual = false; + } + + if (this._requestedPerimeterPoints.Count != obj._requestedPerimeterPoints.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._requestedPerimeterPoints.Count; idx++) + { + if (!this._requestedPerimeterPoints[idx].Equals(obj._requestedPerimeterPoints[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._sensorTypes.Count != obj._sensorTypes.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._sensorTypes.Count; idx++) + { + if (!this._sensorTypes[idx].Equals(obj._sensorTypes[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._minefieldID.GetHashCode(); + result = GenerateHash(result) ^ this._requestingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfPerimeterPoints.GetHashCode(); + result = GenerateHash(result) ^ this._pad2.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfSensorTypes.GetHashCode(); + result = GenerateHash(result) ^ this._dataFilter.GetHashCode(); + result = GenerateHash(result) ^ this._requestedMineType.GetHashCode(); + + if (this._requestedPerimeterPoints.Count > 0) + { + for (int idx = 0; idx < this._requestedPerimeterPoints.Count; idx++) + { + result = GenerateHash(result) ^ this._requestedPerimeterPoints[idx].GetHashCode(); + } + } + + if (this._sensorTypes.Count > 0) + { + for (int idx = 0; idx < this._sensorTypes.Count; idx++) + { + result = GenerateHash(result) ^ this._sensorTypes[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/MinefieldResponseNackPdu.cs b/Libs/CsharpDis6/Dis1998/Generated/MinefieldResponseNackPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/MinefieldResponseNackPdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/MinefieldResponseNackPdu.cs index 30fcb9b..b43b964 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/MinefieldResponseNackPdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/MinefieldResponseNackPdu.cs @@ -1,479 +1,479 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.10.4 proivde the means to request a retransmit of a minefield data pdu. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(EightByteChunk))] - public partial class MinefieldResponseNackPdu : MinefieldFamilyPdu, IEquatable - { - /// - /// Minefield ID - /// - private EntityID _minefieldID = new EntityID(); - - /// - /// entity ID making the request - /// - private EntityID _requestingEntityID = new EntityID(); - - /// - /// request ID - /// - private byte _requestID; - - /// - /// how many pdus were missing - /// - private byte _numberOfMissingPdus; - - /// - /// PDU sequence numbers that were missing - /// - private List _missingPduSequenceNumbers = new List(); - - /// - /// Initializes a new instance of the class. - /// - public MinefieldResponseNackPdu() - { - PduType = (byte)40; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(MinefieldResponseNackPdu left, MinefieldResponseNackPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(MinefieldResponseNackPdu left, MinefieldResponseNackPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._minefieldID.GetMarshalledSize(); // this._minefieldID - marshalSize += this._requestingEntityID.GetMarshalledSize(); // this._requestingEntityID - marshalSize += 1; // this._requestID - marshalSize += 1; // this._numberOfMissingPdus - for (int idx = 0; idx < this._missingPduSequenceNumbers.Count; idx++) - { - EightByteChunk listElement = (EightByteChunk)this._missingPduSequenceNumbers[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Minefield ID - /// - [XmlElement(Type = typeof(EntityID), ElementName = "minefieldID")] - public EntityID MinefieldID - { - get - { - return this._minefieldID; - } - - set - { - this._minefieldID = value; - } - } - - /// - /// Gets or sets the entity ID making the request - /// - [XmlElement(Type = typeof(EntityID), ElementName = "requestingEntityID")] - public EntityID RequestingEntityID - { - get - { - return this._requestingEntityID; - } - - set - { - this._requestingEntityID = value; - } - } - - /// - /// Gets or sets the request ID - /// - [XmlElement(Type = typeof(byte), ElementName = "requestID")] - public byte RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Gets or sets the how many pdus were missing - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfMissingPdus method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfMissingPdus")] - public byte NumberOfMissingPdus - { - get - { - return this._numberOfMissingPdus; - } - - set - { - this._numberOfMissingPdus = value; - } - } - - /// - /// Gets the PDU sequence numbers that were missing - /// - [XmlElement(ElementName = "missingPduSequenceNumbersList", Type = typeof(List))] - public List MissingPduSequenceNumbers - { - get - { - return this._missingPduSequenceNumbers; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._minefieldID.Marshal(dos); - this._requestingEntityID.Marshal(dos); - dos.WriteUnsignedByte((byte)this._requestID); - dos.WriteUnsignedByte((byte)this._missingPduSequenceNumbers.Count); - - for (int idx = 0; idx < this._missingPduSequenceNumbers.Count; idx++) - { - EightByteChunk aEightByteChunk = (EightByteChunk)this._missingPduSequenceNumbers[idx]; - aEightByteChunk.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._minefieldID.Unmarshal(dis); - this._requestingEntityID.Unmarshal(dis); - this._requestID = dis.ReadUnsignedByte(); - this._numberOfMissingPdus = dis.ReadUnsignedByte(); - - for (int idx = 0; idx < this.NumberOfMissingPdus; idx++) - { - EightByteChunk anX = new EightByteChunk(); - anX.Unmarshal(dis); - this._missingPduSequenceNumbers.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._minefieldID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._requestingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._missingPduSequenceNumbers.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._missingPduSequenceNumbers.Count; idx++) - { - sb.AppendLine(""); - EightByteChunk aEightByteChunk = (EightByteChunk)this._missingPduSequenceNumbers[idx]; - aEightByteChunk.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as MinefieldResponseNackPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(MinefieldResponseNackPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._minefieldID.Equals(obj._minefieldID)) - { - ivarsEqual = false; - } - - if (!this._requestingEntityID.Equals(obj._requestingEntityID)) - { - ivarsEqual = false; - } - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - if (this._numberOfMissingPdus != obj._numberOfMissingPdus) - { - ivarsEqual = false; - } - - if (this._missingPduSequenceNumbers.Count != obj._missingPduSequenceNumbers.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._missingPduSequenceNumbers.Count; idx++) - { - if (!this._missingPduSequenceNumbers[idx].Equals(obj._missingPduSequenceNumbers[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._minefieldID.GetHashCode(); - result = GenerateHash(result) ^ this._requestingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfMissingPdus.GetHashCode(); - - if (this._missingPduSequenceNumbers.Count > 0) - { - for (int idx = 0; idx < this._missingPduSequenceNumbers.Count; idx++) - { - result = GenerateHash(result) ^ this._missingPduSequenceNumbers[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.10.4 proivde the means to request a retransmit of a minefield data pdu. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(EightByteChunk))] + public partial class MinefieldResponseNackPdu : MinefieldFamilyPdu, IEquatable + { + /// + /// Minefield ID + /// + private EntityID _minefieldID = new EntityID(); + + /// + /// entity ID making the request + /// + private EntityID _requestingEntityID = new EntityID(); + + /// + /// request ID + /// + private byte _requestID; + + /// + /// how many pdus were missing + /// + private byte _numberOfMissingPdus; + + /// + /// PDU sequence numbers that were missing + /// + private List _missingPduSequenceNumbers = new List(); + + /// + /// Initializes a new instance of the class. + /// + public MinefieldResponseNackPdu() + { + PduType = (byte)40; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(MinefieldResponseNackPdu left, MinefieldResponseNackPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(MinefieldResponseNackPdu left, MinefieldResponseNackPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._minefieldID.GetMarshalledSize(); // this._minefieldID + marshalSize += this._requestingEntityID.GetMarshalledSize(); // this._requestingEntityID + marshalSize += 1; // this._requestID + marshalSize += 1; // this._numberOfMissingPdus + for (int idx = 0; idx < this._missingPduSequenceNumbers.Count; idx++) + { + EightByteChunk listElement = (EightByteChunk)this._missingPduSequenceNumbers[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Minefield ID + /// + [XmlElement(Type = typeof(EntityID), ElementName = "minefieldID")] + public EntityID MinefieldID + { + get + { + return this._minefieldID; + } + + set + { + this._minefieldID = value; + } + } + + /// + /// Gets or sets the entity ID making the request + /// + [XmlElement(Type = typeof(EntityID), ElementName = "requestingEntityID")] + public EntityID RequestingEntityID + { + get + { + return this._requestingEntityID; + } + + set + { + this._requestingEntityID = value; + } + } + + /// + /// Gets or sets the request ID + /// + [XmlElement(Type = typeof(byte), ElementName = "requestID")] + public byte RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Gets or sets the how many pdus were missing + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfMissingPdus method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfMissingPdus")] + public byte NumberOfMissingPdus + { + get + { + return this._numberOfMissingPdus; + } + + set + { + this._numberOfMissingPdus = value; + } + } + + /// + /// Gets the PDU sequence numbers that were missing + /// + [XmlElement(ElementName = "missingPduSequenceNumbersList", Type = typeof(List))] + public List MissingPduSequenceNumbers + { + get + { + return this._missingPduSequenceNumbers; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._minefieldID.Marshal(dos); + this._requestingEntityID.Marshal(dos); + dos.WriteUnsignedByte((byte)this._requestID); + dos.WriteUnsignedByte((byte)this._missingPduSequenceNumbers.Count); + + for (int idx = 0; idx < this._missingPduSequenceNumbers.Count; idx++) + { + EightByteChunk aEightByteChunk = (EightByteChunk)this._missingPduSequenceNumbers[idx]; + aEightByteChunk.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._minefieldID.Unmarshal(dis); + this._requestingEntityID.Unmarshal(dis); + this._requestID = dis.ReadUnsignedByte(); + this._numberOfMissingPdus = dis.ReadUnsignedByte(); + + for (int idx = 0; idx < this.NumberOfMissingPdus; idx++) + { + EightByteChunk anX = new EightByteChunk(); + anX.Unmarshal(dis); + this._missingPduSequenceNumbers.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._minefieldID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._requestingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._missingPduSequenceNumbers.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._missingPduSequenceNumbers.Count; idx++) + { + sb.AppendLine(""); + EightByteChunk aEightByteChunk = (EightByteChunk)this._missingPduSequenceNumbers[idx]; + aEightByteChunk.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as MinefieldResponseNackPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(MinefieldResponseNackPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._minefieldID.Equals(obj._minefieldID)) + { + ivarsEqual = false; + } + + if (!this._requestingEntityID.Equals(obj._requestingEntityID)) + { + ivarsEqual = false; + } + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + if (this._numberOfMissingPdus != obj._numberOfMissingPdus) + { + ivarsEqual = false; + } + + if (this._missingPduSequenceNumbers.Count != obj._missingPduSequenceNumbers.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._missingPduSequenceNumbers.Count; idx++) + { + if (!this._missingPduSequenceNumbers[idx].Equals(obj._missingPduSequenceNumbers[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._minefieldID.GetHashCode(); + result = GenerateHash(result) ^ this._requestingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfMissingPdus.GetHashCode(); + + if (this._missingPduSequenceNumbers.Count > 0) + { + for (int idx = 0; idx < this._missingPduSequenceNumbers.Count; idx++) + { + result = GenerateHash(result) ^ this._missingPduSequenceNumbers[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/MinefieldStatePdu.cs b/Libs/CsharpDis6/Dis1998/Generated/MinefieldStatePdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/MinefieldStatePdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/MinefieldStatePdu.cs index b7abaa7..6e90590 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/MinefieldStatePdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/MinefieldStatePdu.cs @@ -1,752 +1,752 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.10.1 Abstract superclass for PDUs relating to minefields. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(EntityType))] - [XmlInclude(typeof(Vector3Double))] - [XmlInclude(typeof(Orientation))] - [XmlInclude(typeof(Point))] - [XmlInclude(typeof(EntityType))] - public partial class MinefieldStatePdu : MinefieldFamilyPdu, IEquatable - { - /// - /// Minefield ID - /// - private EntityID _minefieldID = new EntityID(); - - /// - /// Minefield sequence - /// - private ushort _minefieldSequence; - - /// - /// force ID - /// - private byte _forceID; - - /// - /// Number of permieter points - /// - private byte _numberOfPerimeterPoints; - - /// - /// type of minefield - /// - private EntityType _minefieldType = new EntityType(); - - /// - /// how many mine types - /// - private ushort _numberOfMineTypes; - - /// - /// location of minefield in world coords - /// - private Vector3Double _minefieldLocation = new Vector3Double(); - - /// - /// orientation of minefield - /// - private Orientation _minefieldOrientation = new Orientation(); - - /// - /// appearance bitflags - /// - private ushort _appearance; - - /// - /// protocolMode - /// - private ushort _protocolMode; - - /// - /// perimeter points for the minefield - /// - private List _perimeterPoints = new List(); - - /// - /// Type of mines - /// - private List _mineType = new List(); - - /// - /// Initializes a new instance of the class. - /// - public MinefieldStatePdu() - { - PduType = (byte)37; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(MinefieldStatePdu left, MinefieldStatePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(MinefieldStatePdu left, MinefieldStatePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._minefieldID.GetMarshalledSize(); // this._minefieldID - marshalSize += 2; // this._minefieldSequence - marshalSize += 1; // this._forceID - marshalSize += 1; // this._numberOfPerimeterPoints - marshalSize += this._minefieldType.GetMarshalledSize(); // this._minefieldType - marshalSize += 2; // this._numberOfMineTypes - marshalSize += this._minefieldLocation.GetMarshalledSize(); // this._minefieldLocation - marshalSize += this._minefieldOrientation.GetMarshalledSize(); // this._minefieldOrientation - marshalSize += 2; // this._appearance - marshalSize += 2; // this._protocolMode - for (int idx = 0; idx < this._perimeterPoints.Count; idx++) - { - Point listElement = (Point)this._perimeterPoints[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._mineType.Count; idx++) - { - EntityType listElement = (EntityType)this._mineType[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Minefield ID - /// - [XmlElement(Type = typeof(EntityID), ElementName = "minefieldID")] - public EntityID MinefieldID - { - get - { - return this._minefieldID; - } - - set - { - this._minefieldID = value; - } - } - - /// - /// Gets or sets the Minefield sequence - /// - [XmlElement(Type = typeof(ushort), ElementName = "minefieldSequence")] - public ushort MinefieldSequence - { - get - { - return this._minefieldSequence; - } - - set - { - this._minefieldSequence = value; - } - } - - /// - /// Gets or sets the force ID - /// - [XmlElement(Type = typeof(byte), ElementName = "forceID")] - public byte ForceID - { - get - { - return this._forceID; - } - - set - { - this._forceID = value; - } - } - - /// - /// Gets or sets the Number of permieter points - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfPerimeterPoints method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfPerimeterPoints")] - public byte NumberOfPerimeterPoints - { - get - { - return this._numberOfPerimeterPoints; - } - - set - { - this._numberOfPerimeterPoints = value; - } - } - - /// - /// Gets or sets the type of minefield - /// - [XmlElement(Type = typeof(EntityType), ElementName = "minefieldType")] - public EntityType MinefieldType - { - get - { - return this._minefieldType; - } - - set - { - this._minefieldType = value; - } - } - - /// - /// Gets or sets the how many mine types - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfMineTypes method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(ushort), ElementName = "numberOfMineTypes")] - public ushort NumberOfMineTypes - { - get - { - return this._numberOfMineTypes; - } - - set - { - this._numberOfMineTypes = value; - } - } - - /// - /// Gets or sets the location of minefield in world coords - /// - [XmlElement(Type = typeof(Vector3Double), ElementName = "minefieldLocation")] - public Vector3Double MinefieldLocation - { - get - { - return this._minefieldLocation; - } - - set - { - this._minefieldLocation = value; - } - } - - /// - /// Gets or sets the orientation of minefield - /// - [XmlElement(Type = typeof(Orientation), ElementName = "minefieldOrientation")] - public Orientation MinefieldOrientation - { - get - { - return this._minefieldOrientation; - } - - set - { - this._minefieldOrientation = value; - } - } - - /// - /// Gets or sets the appearance bitflags - /// - [XmlElement(Type = typeof(ushort), ElementName = "appearance")] - public ushort Appearance - { - get - { - return this._appearance; - } - - set - { - this._appearance = value; - } - } - - /// - /// Gets or sets the protocolMode - /// - [XmlElement(Type = typeof(ushort), ElementName = "protocolMode")] - public ushort ProtocolMode - { - get - { - return this._protocolMode; - } - - set - { - this._protocolMode = value; - } - } - - /// - /// Gets the perimeter points for the minefield - /// - [XmlElement(ElementName = "perimeterPointsList", Type = typeof(List))] - public List PerimeterPoints - { - get - { - return this._perimeterPoints; - } - } - - /// - /// Gets the Type of mines - /// - [XmlElement(ElementName = "mineTypeList", Type = typeof(List))] - public List MineType - { - get - { - return this._mineType; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._minefieldID.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._minefieldSequence); - dos.WriteUnsignedByte((byte)this._forceID); - dos.WriteUnsignedByte((byte)this._perimeterPoints.Count); - this._minefieldType.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._mineType.Count); - this._minefieldLocation.Marshal(dos); - this._minefieldOrientation.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._appearance); - dos.WriteUnsignedShort((ushort)this._protocolMode); - - for (int idx = 0; idx < this._perimeterPoints.Count; idx++) - { - Point aPoint = (Point)this._perimeterPoints[idx]; - aPoint.Marshal(dos); - } - - for (int idx = 0; idx < this._mineType.Count; idx++) - { - EntityType aEntityType = (EntityType)this._mineType[idx]; - aEntityType.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._minefieldID.Unmarshal(dis); - this._minefieldSequence = dis.ReadUnsignedShort(); - this._forceID = dis.ReadUnsignedByte(); - this._numberOfPerimeterPoints = dis.ReadUnsignedByte(); - this._minefieldType.Unmarshal(dis); - this._numberOfMineTypes = dis.ReadUnsignedShort(); - this._minefieldLocation.Unmarshal(dis); - this._minefieldOrientation.Unmarshal(dis); - this._appearance = dis.ReadUnsignedShort(); - this._protocolMode = dis.ReadUnsignedShort(); - - for (int idx = 0; idx < this.NumberOfPerimeterPoints; idx++) - { - Point anX = new Point(); - anX.Unmarshal(dis); - this._perimeterPoints.Add(anX); - } - - for (int idx = 0; idx < this.NumberOfMineTypes; idx++) - { - EntityType anX = new EntityType(); - anX.Unmarshal(dis); - this._mineType.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._minefieldID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._minefieldSequence.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._forceID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._perimeterPoints.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._minefieldType.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._mineType.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._minefieldLocation.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._minefieldOrientation.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._appearance.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._protocolMode.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._perimeterPoints.Count; idx++) - { - sb.AppendLine(""); - Point aPoint = (Point)this._perimeterPoints[idx]; - aPoint.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._mineType.Count; idx++) - { - sb.AppendLine(""); - EntityType aEntityType = (EntityType)this._mineType[idx]; - aEntityType.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as MinefieldStatePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(MinefieldStatePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._minefieldID.Equals(obj._minefieldID)) - { - ivarsEqual = false; - } - - if (this._minefieldSequence != obj._minefieldSequence) - { - ivarsEqual = false; - } - - if (this._forceID != obj._forceID) - { - ivarsEqual = false; - } - - if (this._numberOfPerimeterPoints != obj._numberOfPerimeterPoints) - { - ivarsEqual = false; - } - - if (!this._minefieldType.Equals(obj._minefieldType)) - { - ivarsEqual = false; - } - - if (this._numberOfMineTypes != obj._numberOfMineTypes) - { - ivarsEqual = false; - } - - if (!this._minefieldLocation.Equals(obj._minefieldLocation)) - { - ivarsEqual = false; - } - - if (!this._minefieldOrientation.Equals(obj._minefieldOrientation)) - { - ivarsEqual = false; - } - - if (this._appearance != obj._appearance) - { - ivarsEqual = false; - } - - if (this._protocolMode != obj._protocolMode) - { - ivarsEqual = false; - } - - if (this._perimeterPoints.Count != obj._perimeterPoints.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._perimeterPoints.Count; idx++) - { - if (!this._perimeterPoints[idx].Equals(obj._perimeterPoints[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._mineType.Count != obj._mineType.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._mineType.Count; idx++) - { - if (!this._mineType[idx].Equals(obj._mineType[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._minefieldID.GetHashCode(); - result = GenerateHash(result) ^ this._minefieldSequence.GetHashCode(); - result = GenerateHash(result) ^ this._forceID.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfPerimeterPoints.GetHashCode(); - result = GenerateHash(result) ^ this._minefieldType.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfMineTypes.GetHashCode(); - result = GenerateHash(result) ^ this._minefieldLocation.GetHashCode(); - result = GenerateHash(result) ^ this._minefieldOrientation.GetHashCode(); - result = GenerateHash(result) ^ this._appearance.GetHashCode(); - result = GenerateHash(result) ^ this._protocolMode.GetHashCode(); - - if (this._perimeterPoints.Count > 0) - { - for (int idx = 0; idx < this._perimeterPoints.Count; idx++) - { - result = GenerateHash(result) ^ this._perimeterPoints[idx].GetHashCode(); - } - } - - if (this._mineType.Count > 0) - { - for (int idx = 0; idx < this._mineType.Count; idx++) - { - result = GenerateHash(result) ^ this._mineType[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.10.1 Abstract superclass for PDUs relating to minefields. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(EntityType))] + [XmlInclude(typeof(Vector3Double))] + [XmlInclude(typeof(Orientation))] + [XmlInclude(typeof(Point))] + [XmlInclude(typeof(EntityType))] + public partial class MinefieldStatePdu : MinefieldFamilyPdu, IEquatable + { + /// + /// Minefield ID + /// + private EntityID _minefieldID = new EntityID(); + + /// + /// Minefield sequence + /// + private ushort _minefieldSequence; + + /// + /// force ID + /// + private byte _forceID; + + /// + /// Number of permieter points + /// + private byte _numberOfPerimeterPoints; + + /// + /// type of minefield + /// + private EntityType _minefieldType = new EntityType(); + + /// + /// how many mine types + /// + private ushort _numberOfMineTypes; + + /// + /// location of minefield in world coords + /// + private Vector3Double _minefieldLocation = new Vector3Double(); + + /// + /// orientation of minefield + /// + private Orientation _minefieldOrientation = new Orientation(); + + /// + /// appearance bitflags + /// + private ushort _appearance; + + /// + /// protocolMode + /// + private ushort _protocolMode; + + /// + /// perimeter points for the minefield + /// + private List _perimeterPoints = new List(); + + /// + /// Type of mines + /// + private List _mineType = new List(); + + /// + /// Initializes a new instance of the class. + /// + public MinefieldStatePdu() + { + PduType = (byte)37; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(MinefieldStatePdu left, MinefieldStatePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(MinefieldStatePdu left, MinefieldStatePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._minefieldID.GetMarshalledSize(); // this._minefieldID + marshalSize += 2; // this._minefieldSequence + marshalSize += 1; // this._forceID + marshalSize += 1; // this._numberOfPerimeterPoints + marshalSize += this._minefieldType.GetMarshalledSize(); // this._minefieldType + marshalSize += 2; // this._numberOfMineTypes + marshalSize += this._minefieldLocation.GetMarshalledSize(); // this._minefieldLocation + marshalSize += this._minefieldOrientation.GetMarshalledSize(); // this._minefieldOrientation + marshalSize += 2; // this._appearance + marshalSize += 2; // this._protocolMode + for (int idx = 0; idx < this._perimeterPoints.Count; idx++) + { + Point listElement = (Point)this._perimeterPoints[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._mineType.Count; idx++) + { + EntityType listElement = (EntityType)this._mineType[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Minefield ID + /// + [XmlElement(Type = typeof(EntityID), ElementName = "minefieldID")] + public EntityID MinefieldID + { + get + { + return this._minefieldID; + } + + set + { + this._minefieldID = value; + } + } + + /// + /// Gets or sets the Minefield sequence + /// + [XmlElement(Type = typeof(ushort), ElementName = "minefieldSequence")] + public ushort MinefieldSequence + { + get + { + return this._minefieldSequence; + } + + set + { + this._minefieldSequence = value; + } + } + + /// + /// Gets or sets the force ID + /// + [XmlElement(Type = typeof(byte), ElementName = "forceID")] + public byte ForceID + { + get + { + return this._forceID; + } + + set + { + this._forceID = value; + } + } + + /// + /// Gets or sets the Number of permieter points + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfPerimeterPoints method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfPerimeterPoints")] + public byte NumberOfPerimeterPoints + { + get + { + return this._numberOfPerimeterPoints; + } + + set + { + this._numberOfPerimeterPoints = value; + } + } + + /// + /// Gets or sets the type of minefield + /// + [XmlElement(Type = typeof(EntityType), ElementName = "minefieldType")] + public EntityType MinefieldType + { + get + { + return this._minefieldType; + } + + set + { + this._minefieldType = value; + } + } + + /// + /// Gets or sets the how many mine types + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfMineTypes method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(ushort), ElementName = "numberOfMineTypes")] + public ushort NumberOfMineTypes + { + get + { + return this._numberOfMineTypes; + } + + set + { + this._numberOfMineTypes = value; + } + } + + /// + /// Gets or sets the location of minefield in world coords + /// + [XmlElement(Type = typeof(Vector3Double), ElementName = "minefieldLocation")] + public Vector3Double MinefieldLocation + { + get + { + return this._minefieldLocation; + } + + set + { + this._minefieldLocation = value; + } + } + + /// + /// Gets or sets the orientation of minefield + /// + [XmlElement(Type = typeof(Orientation), ElementName = "minefieldOrientation")] + public Orientation MinefieldOrientation + { + get + { + return this._minefieldOrientation; + } + + set + { + this._minefieldOrientation = value; + } + } + + /// + /// Gets or sets the appearance bitflags + /// + [XmlElement(Type = typeof(ushort), ElementName = "appearance")] + public ushort Appearance + { + get + { + return this._appearance; + } + + set + { + this._appearance = value; + } + } + + /// + /// Gets or sets the protocolMode + /// + [XmlElement(Type = typeof(ushort), ElementName = "protocolMode")] + public ushort ProtocolMode + { + get + { + return this._protocolMode; + } + + set + { + this._protocolMode = value; + } + } + + /// + /// Gets the perimeter points for the minefield + /// + [XmlElement(ElementName = "perimeterPointsList", Type = typeof(List))] + public List PerimeterPoints + { + get + { + return this._perimeterPoints; + } + } + + /// + /// Gets the Type of mines + /// + [XmlElement(ElementName = "mineTypeList", Type = typeof(List))] + public List MineType + { + get + { + return this._mineType; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._minefieldID.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._minefieldSequence); + dos.WriteUnsignedByte((byte)this._forceID); + dos.WriteUnsignedByte((byte)this._perimeterPoints.Count); + this._minefieldType.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._mineType.Count); + this._minefieldLocation.Marshal(dos); + this._minefieldOrientation.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._appearance); + dos.WriteUnsignedShort((ushort)this._protocolMode); + + for (int idx = 0; idx < this._perimeterPoints.Count; idx++) + { + Point aPoint = (Point)this._perimeterPoints[idx]; + aPoint.Marshal(dos); + } + + for (int idx = 0; idx < this._mineType.Count; idx++) + { + EntityType aEntityType = (EntityType)this._mineType[idx]; + aEntityType.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._minefieldID.Unmarshal(dis); + this._minefieldSequence = dis.ReadUnsignedShort(); + this._forceID = dis.ReadUnsignedByte(); + this._numberOfPerimeterPoints = dis.ReadUnsignedByte(); + this._minefieldType.Unmarshal(dis); + this._numberOfMineTypes = dis.ReadUnsignedShort(); + this._minefieldLocation.Unmarshal(dis); + this._minefieldOrientation.Unmarshal(dis); + this._appearance = dis.ReadUnsignedShort(); + this._protocolMode = dis.ReadUnsignedShort(); + + for (int idx = 0; idx < this.NumberOfPerimeterPoints; idx++) + { + Point anX = new Point(); + anX.Unmarshal(dis); + this._perimeterPoints.Add(anX); + } + + for (int idx = 0; idx < this.NumberOfMineTypes; idx++) + { + EntityType anX = new EntityType(); + anX.Unmarshal(dis); + this._mineType.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._minefieldID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._minefieldSequence.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._forceID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._perimeterPoints.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._minefieldType.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._mineType.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._minefieldLocation.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._minefieldOrientation.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._appearance.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._protocolMode.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._perimeterPoints.Count; idx++) + { + sb.AppendLine(""); + Point aPoint = (Point)this._perimeterPoints[idx]; + aPoint.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._mineType.Count; idx++) + { + sb.AppendLine(""); + EntityType aEntityType = (EntityType)this._mineType[idx]; + aEntityType.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as MinefieldStatePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(MinefieldStatePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._minefieldID.Equals(obj._minefieldID)) + { + ivarsEqual = false; + } + + if (this._minefieldSequence != obj._minefieldSequence) + { + ivarsEqual = false; + } + + if (this._forceID != obj._forceID) + { + ivarsEqual = false; + } + + if (this._numberOfPerimeterPoints != obj._numberOfPerimeterPoints) + { + ivarsEqual = false; + } + + if (!this._minefieldType.Equals(obj._minefieldType)) + { + ivarsEqual = false; + } + + if (this._numberOfMineTypes != obj._numberOfMineTypes) + { + ivarsEqual = false; + } + + if (!this._minefieldLocation.Equals(obj._minefieldLocation)) + { + ivarsEqual = false; + } + + if (!this._minefieldOrientation.Equals(obj._minefieldOrientation)) + { + ivarsEqual = false; + } + + if (this._appearance != obj._appearance) + { + ivarsEqual = false; + } + + if (this._protocolMode != obj._protocolMode) + { + ivarsEqual = false; + } + + if (this._perimeterPoints.Count != obj._perimeterPoints.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._perimeterPoints.Count; idx++) + { + if (!this._perimeterPoints[idx].Equals(obj._perimeterPoints[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._mineType.Count != obj._mineType.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._mineType.Count; idx++) + { + if (!this._mineType[idx].Equals(obj._mineType[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._minefieldID.GetHashCode(); + result = GenerateHash(result) ^ this._minefieldSequence.GetHashCode(); + result = GenerateHash(result) ^ this._forceID.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfPerimeterPoints.GetHashCode(); + result = GenerateHash(result) ^ this._minefieldType.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfMineTypes.GetHashCode(); + result = GenerateHash(result) ^ this._minefieldLocation.GetHashCode(); + result = GenerateHash(result) ^ this._minefieldOrientation.GetHashCode(); + result = GenerateHash(result) ^ this._appearance.GetHashCode(); + result = GenerateHash(result) ^ this._protocolMode.GetHashCode(); + + if (this._perimeterPoints.Count > 0) + { + for (int idx = 0; idx < this._perimeterPoints.Count; idx++) + { + result = GenerateHash(result) ^ this._perimeterPoints[idx].GetHashCode(); + } + } + + if (this._mineType.Count > 0) + { + for (int idx = 0; idx < this._mineType.Count; idx++) + { + result = GenerateHash(result) ^ this._mineType[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ModulationType.cs b/Libs/CsharpDis6/Dis1998/Generated/ModulationType.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/ModulationType.cs rename to Libs/CsharpDis6/Dis1998/Generated/ModulationType.cs index 6ec7b7b..c2e3ccb 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ModulationType.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/ModulationType.cs @@ -1,396 +1,396 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Radio modulation - /// - [Serializable] - [XmlRoot] - public partial class ModulationType - { - /// - /// spread spectrum, 16 bit boolean array - /// - private ushort _spreadSpectrum; - - /// - /// major - /// - private ushort _major; - - /// - /// detail - /// - private ushort _detail; - - /// - /// system - /// - private ushort _system; - - /// - /// Initializes a new instance of the class. - /// - public ModulationType() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ModulationType left, ModulationType right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ModulationType left, ModulationType right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 2; // this._spreadSpectrum - marshalSize += 2; // this._major - marshalSize += 2; // this._detail - marshalSize += 2; // this._system - return marshalSize; - } - - /// - /// Gets or sets the spread spectrum, 16 bit boolean array - /// - [XmlElement(Type = typeof(ushort), ElementName = "spreadSpectrum")] - public ushort SpreadSpectrum - { - get - { - return this._spreadSpectrum; - } - - set - { - this._spreadSpectrum = value; - } - } - - /// - /// Gets or sets the major - /// - [XmlElement(Type = typeof(ushort), ElementName = "major")] - public ushort Major - { - get - { - return this._major; - } - - set - { - this._major = value; - } - } - - /// - /// Gets or sets the detail - /// - [XmlElement(Type = typeof(ushort), ElementName = "detail")] - public ushort Detail - { - get - { - return this._detail; - } - - set - { - this._detail = value; - } - } - - /// - /// Gets or sets the system - /// - [XmlElement(Type = typeof(ushort), ElementName = "system")] - public ushort System_ - { - get - { - return this._system; - } - - set - { - this._system = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._spreadSpectrum); - dos.WriteUnsignedShort((ushort)this._major); - dos.WriteUnsignedShort((ushort)this._detail); - dos.WriteUnsignedShort((ushort)this._system); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._spreadSpectrum = dis.ReadUnsignedShort(); - this._major = dis.ReadUnsignedShort(); - this._detail = dis.ReadUnsignedShort(); - this._system = dis.ReadUnsignedShort(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._spreadSpectrum.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._major.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._detail.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._system.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ModulationType; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ModulationType obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._spreadSpectrum != obj._spreadSpectrum) - { - ivarsEqual = false; - } - - if (this._major != obj._major) - { - ivarsEqual = false; - } - - if (this._detail != obj._detail) - { - ivarsEqual = false; - } - - if (this._system != obj._system) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._spreadSpectrum.GetHashCode(); - result = GenerateHash(result) ^ this._major.GetHashCode(); - result = GenerateHash(result) ^ this._detail.GetHashCode(); - result = GenerateHash(result) ^ this._system.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Radio modulation + /// + [Serializable] + [XmlRoot] + public partial class ModulationType + { + /// + /// spread spectrum, 16 bit boolean array + /// + private ushort _spreadSpectrum; + + /// + /// major + /// + private ushort _major; + + /// + /// detail + /// + private ushort _detail; + + /// + /// system + /// + private ushort _system; + + /// + /// Initializes a new instance of the class. + /// + public ModulationType() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ModulationType left, ModulationType right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ModulationType left, ModulationType right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 2; // this._spreadSpectrum + marshalSize += 2; // this._major + marshalSize += 2; // this._detail + marshalSize += 2; // this._system + return marshalSize; + } + + /// + /// Gets or sets the spread spectrum, 16 bit boolean array + /// + [XmlElement(Type = typeof(ushort), ElementName = "spreadSpectrum")] + public ushort SpreadSpectrum + { + get + { + return this._spreadSpectrum; + } + + set + { + this._spreadSpectrum = value; + } + } + + /// + /// Gets or sets the major + /// + [XmlElement(Type = typeof(ushort), ElementName = "major")] + public ushort Major + { + get + { + return this._major; + } + + set + { + this._major = value; + } + } + + /// + /// Gets or sets the detail + /// + [XmlElement(Type = typeof(ushort), ElementName = "detail")] + public ushort Detail + { + get + { + return this._detail; + } + + set + { + this._detail = value; + } + } + + /// + /// Gets or sets the system + /// + [XmlElement(Type = typeof(ushort), ElementName = "system")] + public ushort System_ + { + get + { + return this._system; + } + + set + { + this._system = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._spreadSpectrum); + dos.WriteUnsignedShort((ushort)this._major); + dos.WriteUnsignedShort((ushort)this._detail); + dos.WriteUnsignedShort((ushort)this._system); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._spreadSpectrum = dis.ReadUnsignedShort(); + this._major = dis.ReadUnsignedShort(); + this._detail = dis.ReadUnsignedShort(); + this._system = dis.ReadUnsignedShort(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._spreadSpectrum.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._major.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._detail.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._system.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ModulationType; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ModulationType obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._spreadSpectrum != obj._spreadSpectrum) + { + ivarsEqual = false; + } + + if (this._major != obj._major) + { + ivarsEqual = false; + } + + if (this._detail != obj._detail) + { + ivarsEqual = false; + } + + if (this._system != obj._system) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._spreadSpectrum.GetHashCode(); + result = GenerateHash(result) ^ this._major.GetHashCode(); + result = GenerateHash(result) ^ this._detail.GetHashCode(); + result = GenerateHash(result) ^ this._system.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/NamedLocation.cs b/Libs/CsharpDis6/Dis1998/Generated/NamedLocation.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/NamedLocation.cs rename to Libs/CsharpDis6/Dis1998/Generated/NamedLocation.cs index b4ad302..e0931e1 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/NamedLocation.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/NamedLocation.cs @@ -1,332 +1,332 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// discrete ostional relationsihip - /// - [Serializable] - [XmlRoot] - public partial class NamedLocation - { - /// - /// station name enumeration - /// - private ushort _stationName; - - /// - /// station number - /// - private ushort _stationNumber; - - /// - /// Initializes a new instance of the class. - /// - public NamedLocation() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(NamedLocation left, NamedLocation right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(NamedLocation left, NamedLocation right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 2; // this._stationName - marshalSize += 2; // this._stationNumber - return marshalSize; - } - - /// - /// Gets or sets the station name enumeration - /// - [XmlElement(Type = typeof(ushort), ElementName = "stationName")] - public ushort StationName - { - get - { - return this._stationName; - } - - set - { - this._stationName = value; - } - } - - /// - /// Gets or sets the station number - /// - [XmlElement(Type = typeof(ushort), ElementName = "stationNumber")] - public ushort StationNumber - { - get - { - return this._stationNumber; - } - - set - { - this._stationNumber = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._stationName); - dos.WriteUnsignedShort((ushort)this._stationNumber); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._stationName = dis.ReadUnsignedShort(); - this._stationNumber = dis.ReadUnsignedShort(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._stationName.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._stationNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as NamedLocation; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(NamedLocation obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._stationName != obj._stationName) - { - ivarsEqual = false; - } - - if (this._stationNumber != obj._stationNumber) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._stationName.GetHashCode(); - result = GenerateHash(result) ^ this._stationNumber.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// discrete ostional relationsihip + /// + [Serializable] + [XmlRoot] + public partial class NamedLocation + { + /// + /// station name enumeration + /// + private ushort _stationName; + + /// + /// station number + /// + private ushort _stationNumber; + + /// + /// Initializes a new instance of the class. + /// + public NamedLocation() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(NamedLocation left, NamedLocation right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(NamedLocation left, NamedLocation right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 2; // this._stationName + marshalSize += 2; // this._stationNumber + return marshalSize; + } + + /// + /// Gets or sets the station name enumeration + /// + [XmlElement(Type = typeof(ushort), ElementName = "stationName")] + public ushort StationName + { + get + { + return this._stationName; + } + + set + { + this._stationName = value; + } + } + + /// + /// Gets or sets the station number + /// + [XmlElement(Type = typeof(ushort), ElementName = "stationNumber")] + public ushort StationNumber + { + get + { + return this._stationNumber; + } + + set + { + this._stationNumber = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._stationName); + dos.WriteUnsignedShort((ushort)this._stationNumber); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._stationName = dis.ReadUnsignedShort(); + this._stationNumber = dis.ReadUnsignedShort(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._stationName.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._stationNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as NamedLocation; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(NamedLocation obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._stationName != obj._stationName) + { + ivarsEqual = false; + } + + if (this._stationNumber != obj._stationNumber) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._stationName.GetHashCode(); + result = GenerateHash(result) ^ this._stationNumber.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ObjectType.cs b/Libs/CsharpDis6/Dis1998/Generated/ObjectType.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/ObjectType.cs rename to Libs/CsharpDis6/Dis1998/Generated/ObjectType.cs index 9914357..bec410c 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ObjectType.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/ObjectType.cs @@ -1,428 +1,428 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Identifies type of object. This is a shorter version of EntityType that omits the specific and extra fields. - /// - [Serializable] - [XmlRoot] - public partial class ObjectType - { - /// - /// Kind of entity - /// - private byte _entityKind; - - /// - /// Domain of entity (air, surface, subsurface, space, etc) - /// - private byte _domain; - - /// - /// country to which the design of the entity is attributed - /// - private ushort _country; - - /// - /// category of entity - /// - private byte _category; - - /// - /// subcategory of entity - /// - private byte _subcategory; - - /// - /// Initializes a new instance of the class. - /// - public ObjectType() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ObjectType left, ObjectType right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ObjectType left, ObjectType right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._entityKind - marshalSize += 1; // this._domain - marshalSize += 2; // this._country - marshalSize += 1; // this._category - marshalSize += 1; // this._subcategory - return marshalSize; - } - - /// - /// Gets or sets the Kind of entity - /// - [XmlElement(Type = typeof(byte), ElementName = "entityKind")] - public byte EntityKind - { - get - { - return this._entityKind; - } - - set - { - this._entityKind = value; - } - } - - /// - /// Gets or sets the Domain of entity (air, surface, subsurface, space, etc) - /// - [XmlElement(Type = typeof(byte), ElementName = "domain")] - public byte Domain - { - get - { - return this._domain; - } - - set - { - this._domain = value; - } - } - - /// - /// Gets or sets the country to which the design of the entity is attributed - /// - [XmlElement(Type = typeof(ushort), ElementName = "country")] - public ushort Country - { - get - { - return this._country; - } - - set - { - this._country = value; - } - } - - /// - /// Gets or sets the category of entity - /// - [XmlElement(Type = typeof(byte), ElementName = "category")] - public byte Category - { - get - { - return this._category; - } - - set - { - this._category = value; - } - } - - /// - /// Gets or sets the subcategory of entity - /// - [XmlElement(Type = typeof(byte), ElementName = "subcategory")] - public byte Subcategory - { - get - { - return this._subcategory; - } - - set - { - this._subcategory = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._entityKind); - dos.WriteUnsignedByte((byte)this._domain); - dos.WriteUnsignedShort((ushort)this._country); - dos.WriteUnsignedByte((byte)this._category); - dos.WriteUnsignedByte((byte)this._subcategory); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._entityKind = dis.ReadUnsignedByte(); - this._domain = dis.ReadUnsignedByte(); - this._country = dis.ReadUnsignedShort(); - this._category = dis.ReadUnsignedByte(); - this._subcategory = dis.ReadUnsignedByte(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._entityKind.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._domain.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._country.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._category.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._subcategory.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ObjectType; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ObjectType obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._entityKind != obj._entityKind) - { - ivarsEqual = false; - } - - if (this._domain != obj._domain) - { - ivarsEqual = false; - } - - if (this._country != obj._country) - { - ivarsEqual = false; - } - - if (this._category != obj._category) - { - ivarsEqual = false; - } - - if (this._subcategory != obj._subcategory) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._entityKind.GetHashCode(); - result = GenerateHash(result) ^ this._domain.GetHashCode(); - result = GenerateHash(result) ^ this._country.GetHashCode(); - result = GenerateHash(result) ^ this._category.GetHashCode(); - result = GenerateHash(result) ^ this._subcategory.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Identifies type of object. This is a shorter version of EntityType that omits the specific and extra fields. + /// + [Serializable] + [XmlRoot] + public partial class ObjectType + { + /// + /// Kind of entity + /// + private byte _entityKind; + + /// + /// Domain of entity (air, surface, subsurface, space, etc) + /// + private byte _domain; + + /// + /// country to which the design of the entity is attributed + /// + private ushort _country; + + /// + /// category of entity + /// + private byte _category; + + /// + /// subcategory of entity + /// + private byte _subcategory; + + /// + /// Initializes a new instance of the class. + /// + public ObjectType() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ObjectType left, ObjectType right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ObjectType left, ObjectType right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._entityKind + marshalSize += 1; // this._domain + marshalSize += 2; // this._country + marshalSize += 1; // this._category + marshalSize += 1; // this._subcategory + return marshalSize; + } + + /// + /// Gets or sets the Kind of entity + /// + [XmlElement(Type = typeof(byte), ElementName = "entityKind")] + public byte EntityKind + { + get + { + return this._entityKind; + } + + set + { + this._entityKind = value; + } + } + + /// + /// Gets or sets the Domain of entity (air, surface, subsurface, space, etc) + /// + [XmlElement(Type = typeof(byte), ElementName = "domain")] + public byte Domain + { + get + { + return this._domain; + } + + set + { + this._domain = value; + } + } + + /// + /// Gets or sets the country to which the design of the entity is attributed + /// + [XmlElement(Type = typeof(ushort), ElementName = "country")] + public ushort Country + { + get + { + return this._country; + } + + set + { + this._country = value; + } + } + + /// + /// Gets or sets the category of entity + /// + [XmlElement(Type = typeof(byte), ElementName = "category")] + public byte Category + { + get + { + return this._category; + } + + set + { + this._category = value; + } + } + + /// + /// Gets or sets the subcategory of entity + /// + [XmlElement(Type = typeof(byte), ElementName = "subcategory")] + public byte Subcategory + { + get + { + return this._subcategory; + } + + set + { + this._subcategory = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._entityKind); + dos.WriteUnsignedByte((byte)this._domain); + dos.WriteUnsignedShort((ushort)this._country); + dos.WriteUnsignedByte((byte)this._category); + dos.WriteUnsignedByte((byte)this._subcategory); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._entityKind = dis.ReadUnsignedByte(); + this._domain = dis.ReadUnsignedByte(); + this._country = dis.ReadUnsignedShort(); + this._category = dis.ReadUnsignedByte(); + this._subcategory = dis.ReadUnsignedByte(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._entityKind.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._domain.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._country.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._category.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._subcategory.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ObjectType; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ObjectType obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._entityKind != obj._entityKind) + { + ivarsEqual = false; + } + + if (this._domain != obj._domain) + { + ivarsEqual = false; + } + + if (this._country != obj._country) + { + ivarsEqual = false; + } + + if (this._category != obj._category) + { + ivarsEqual = false; + } + + if (this._subcategory != obj._subcategory) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._entityKind.GetHashCode(); + result = GenerateHash(result) ^ this._domain.GetHashCode(); + result = GenerateHash(result) ^ this._country.GetHashCode(); + result = GenerateHash(result) ^ this._category.GetHashCode(); + result = GenerateHash(result) ^ this._subcategory.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/OneByteChunk.cs b/Libs/CsharpDis6/Dis1998/Generated/OneByteChunk.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/OneByteChunk.cs rename to Libs/CsharpDis6/Dis1998/Generated/OneByteChunk.cs index 23f626d..4b85e0f 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/OneByteChunk.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/OneByteChunk.cs @@ -1,324 +1,324 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// 8 bit piece of data - /// - [Serializable] - [XmlRoot] - public partial class OneByteChunk - { - /// - /// one byte of arbitrary data - /// - private byte[] _otherParameters = new byte[1]; - - /// - /// Initializes a new instance of the class. - /// - public OneByteChunk() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(OneByteChunk left, OneByteChunk right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(OneByteChunk left, OneByteChunk right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1 * 1; // _otherParameters - return marshalSize; - } - - /// - /// Gets or sets the one byte of arbitrary data - /// - [XmlArray(ElementName = "otherParameters")] - public byte[] OtherParameters - { - get - { - return this._otherParameters; - } - - set - { - this._otherParameters = value; - } -} - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - for (int idx = 0; idx < this._otherParameters.Length; idx++) - { - dos.WriteByte(this._otherParameters[idx]); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - for (int idx = 0; idx < this._otherParameters.Length; idx++) - { - this._otherParameters[idx] = dis.ReadByte(); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - for (int idx = 0; idx < this._otherParameters.Length; idx++) - { - sb.AppendLine("" + this._otherParameters[idx] + ""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as OneByteChunk; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(OneByteChunk obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (obj._otherParameters.Length != 1) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < 1; idx++) - { - if (this._otherParameters[idx] != obj._otherParameters[idx]) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - for (int idx = 0; idx < 1; idx++) - { - result = GenerateHash(result) ^ this._otherParameters[idx].GetHashCode(); - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// 8 bit piece of data + /// + [Serializable] + [XmlRoot] + public partial class OneByteChunk + { + /// + /// one byte of arbitrary data + /// + private byte[] _otherParameters = new byte[1]; + + /// + /// Initializes a new instance of the class. + /// + public OneByteChunk() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(OneByteChunk left, OneByteChunk right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(OneByteChunk left, OneByteChunk right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1 * 1; // _otherParameters + return marshalSize; + } + + /// + /// Gets or sets the one byte of arbitrary data + /// + [XmlArray(ElementName = "otherParameters")] + public byte[] OtherParameters + { + get + { + return this._otherParameters; + } + + set + { + this._otherParameters = value; + } +} + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + for (int idx = 0; idx < this._otherParameters.Length; idx++) + { + dos.WriteByte(this._otherParameters[idx]); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + for (int idx = 0; idx < this._otherParameters.Length; idx++) + { + this._otherParameters[idx] = dis.ReadByte(); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + for (int idx = 0; idx < this._otherParameters.Length; idx++) + { + sb.AppendLine("" + this._otherParameters[idx] + ""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as OneByteChunk; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(OneByteChunk obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (obj._otherParameters.Length != 1) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < 1; idx++) + { + if (this._otherParameters[idx] != obj._otherParameters[idx]) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + for (int idx = 0; idx < 1; idx++) + { + result = GenerateHash(result) ^ this._otherParameters[idx].GetHashCode(); + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/Orientation.cs b/Libs/CsharpDis6/Dis1998/Generated/Orientation.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/Orientation.cs rename to Libs/CsharpDis6/Dis1998/Generated/Orientation.cs index bf9b8fe..3c968ac 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/Orientation.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/Orientation.cs @@ -1,355 +1,355 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.2.17. Three floating point values representing an orientation, psi, theta, and phi, aka the euler angles, in radians - /// - [Serializable] - [XmlRoot] - public partial class Orientation - { - private float _psi; - - private float _theta; - - private float _phi; - - /// - /// Initializes a new instance of the class. - /// - public Orientation() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(Orientation left, Orientation right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(Orientation left, Orientation right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._psi - marshalSize += 4; // this._theta - marshalSize += 4; // this._phi - return marshalSize; - } - - /// - /// Gets or sets the psi - /// - [XmlElement(Type = typeof(float), ElementName = "psi")] - public float Psi - { - get - { - return this._psi; - } - - set - { - this._psi = value; - } - } - - /// - /// Gets or sets the theta - /// - [XmlElement(Type = typeof(float), ElementName = "theta")] - public float Theta - { - get - { - return this._theta; - } - - set - { - this._theta = value; - } - } - - /// - /// Gets or sets the phi - /// - [XmlElement(Type = typeof(float), ElementName = "phi")] - public float Phi - { - get - { - return this._phi; - } - - set - { - this._phi = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteFloat((float)this._psi); - dos.WriteFloat((float)this._theta); - dos.WriteFloat((float)this._phi); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._psi = dis.ReadFloat(); - this._theta = dis.ReadFloat(); - this._phi = dis.ReadFloat(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._psi.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._theta.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._phi.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as Orientation; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(Orientation obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._psi != obj._psi) - { - ivarsEqual = false; - } - - if (this._theta != obj._theta) - { - ivarsEqual = false; - } - - if (this._phi != obj._phi) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._psi.GetHashCode(); - result = GenerateHash(result) ^ this._theta.GetHashCode(); - result = GenerateHash(result) ^ this._phi.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.2.17. Three floating point values representing an orientation, psi, theta, and phi, aka the euler angles, in radians + /// + [Serializable] + [XmlRoot] + public partial class Orientation + { + private float _psi; + + private float _theta; + + private float _phi; + + /// + /// Initializes a new instance of the class. + /// + public Orientation() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(Orientation left, Orientation right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(Orientation left, Orientation right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._psi + marshalSize += 4; // this._theta + marshalSize += 4; // this._phi + return marshalSize; + } + + /// + /// Gets or sets the psi + /// + [XmlElement(Type = typeof(float), ElementName = "psi")] + public float Psi + { + get + { + return this._psi; + } + + set + { + this._psi = value; + } + } + + /// + /// Gets or sets the theta + /// + [XmlElement(Type = typeof(float), ElementName = "theta")] + public float Theta + { + get + { + return this._theta; + } + + set + { + this._theta = value; + } + } + + /// + /// Gets or sets the phi + /// + [XmlElement(Type = typeof(float), ElementName = "phi")] + public float Phi + { + get + { + return this._phi; + } + + set + { + this._phi = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteFloat((float)this._psi); + dos.WriteFloat((float)this._theta); + dos.WriteFloat((float)this._phi); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._psi = dis.ReadFloat(); + this._theta = dis.ReadFloat(); + this._phi = dis.ReadFloat(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._psi.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._theta.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._phi.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as Orientation; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(Orientation obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._psi != obj._psi) + { + ivarsEqual = false; + } + + if (this._theta != obj._theta) + { + ivarsEqual = false; + } + + if (this._phi != obj._phi) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._psi.GetHashCode(); + result = GenerateHash(result) ^ this._theta.GetHashCode(); + result = GenerateHash(result) ^ this._phi.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/Pdu.cs b/Libs/CsharpDis6/Dis1998/Generated/Pdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/Pdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/Pdu.cs index c20952c..8e5a567 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/Pdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/Pdu.cs @@ -1,492 +1,492 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// The superclass for all PDUs. This incorporates the PduHeader record, section 5.2.29. - /// - [Serializable] - [XmlRoot] - public partial class Pdu : PduBase, IPdu - { - /// - /// The version of the protocol. 5=DIS-1995, 6=DIS-1998. - /// - private byte _protocolVersion = 6; - - /// - /// Exercise ID - /// - private byte _exerciseID; - - /// - /// Type of pdu, unique for each PDU class - /// - private byte _pduType; - - /// - /// value that refers to the protocol family, eg SimulationManagement, et - /// - private byte _protocolFamily; - - /// - /// Timestamp value - /// - private uint _timestamp; - - /// - /// Length, in bytes, of the PDU - /// - private ushort _length; - - /// - /// zero-filled array of padding - /// - private short _padding; - - /// - /// Initializes a new instance of the class. - /// - public Pdu() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(Pdu left, Pdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(Pdu left, Pdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._protocolVersion - marshalSize += 1; // this._exerciseID - marshalSize += 1; // this._pduType - marshalSize += 1; // this._protocolFamily - marshalSize += 4; // this._timestamp - marshalSize += 2; // this._length - marshalSize += 2; // this._padding - return marshalSize; - } - - /// - /// Gets or sets the The version of the protocol. 5=DIS-1995, 6=DIS-1998. - /// - [XmlElement(Type = typeof(byte), ElementName = "protocolVersion")] - public byte ProtocolVersion - { - get - { - return this._protocolVersion; - } - - set - { - this._protocolVersion = value; - } - } - - /// - /// Gets or sets the Exercise ID - /// - [XmlElement(Type = typeof(byte), ElementName = "exerciseID")] - public byte ExerciseID - { - get - { - return this._exerciseID; - } - - set - { - this._exerciseID = value; - } - } - - /// - /// Gets or sets the Type of pdu, unique for each PDU class - /// - [XmlElement(Type = typeof(byte), ElementName = "pduType")] - public byte PduType - { - get - { - return this._pduType; - } - - set - { - this._pduType = value; - } - } - - /// - /// Gets or sets the value that refers to the protocol family, eg SimulationManagement, et - /// - [XmlElement(Type = typeof(byte), ElementName = "protocolFamily")] - public byte ProtocolFamily - { - get - { - return this._protocolFamily; - } - - set - { - this._protocolFamily = value; - } - } - - /// - /// Gets or sets the Timestamp value - /// - [XmlElement(Type = typeof(uint), ElementName = "timestamp")] - public uint Timestamp - { - get - { - return this._timestamp; - } - - set - { - this._timestamp = value; - } - } - - /// - /// Gets or sets the Length, in bytes, of the PDU - /// - [XmlElement(Type = typeof(ushort), ElementName = "length")] - public ushort Length - { - get - { - return this._length; - } - - set - { - this._length = value; - } - } - - /// - /// Gets or sets the zero-filled array of padding - /// - [XmlElement(Type = typeof(short), ElementName = "padding")] - public short Padding - { - get - { - return this._padding; - } - - set - { - this._padding = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._protocolVersion); - dos.WriteUnsignedByte((byte)this._exerciseID); - dos.WriteUnsignedByte((byte)this._pduType); - dos.WriteUnsignedByte((byte)this._protocolFamily); - dos.WriteUnsignedInt((uint)this._timestamp); - dos.WriteUnsignedShort((ushort)this._length); - dos.WriteShort((short)this._padding); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._protocolVersion = dis.ReadUnsignedByte(); - this._exerciseID = dis.ReadUnsignedByte(); - this._pduType = dis.ReadUnsignedByte(); - this._protocolFamily = dis.ReadUnsignedByte(); - this._timestamp = dis.ReadUnsignedInt(); - this._length = dis.ReadUnsignedShort(); - this._padding = dis.ReadShort(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._protocolVersion.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._exerciseID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pduType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._protocolFamily.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._timestamp.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._length.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as Pdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(Pdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._protocolVersion != obj._protocolVersion) - { - ivarsEqual = false; - } - - if (this._exerciseID != obj._exerciseID) - { - ivarsEqual = false; - } - - if (this._pduType != obj._pduType) - { - ivarsEqual = false; - } - - if (this._protocolFamily != obj._protocolFamily) - { - ivarsEqual = false; - } - - if (this._timestamp != obj._timestamp) - { - ivarsEqual = false; - } - - if (this._length != obj._length) - { - ivarsEqual = false; - } - - if (this._padding != obj._padding) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._protocolVersion.GetHashCode(); - result = GenerateHash(result) ^ this._exerciseID.GetHashCode(); - result = GenerateHash(result) ^ this._pduType.GetHashCode(); - result = GenerateHash(result) ^ this._protocolFamily.GetHashCode(); - result = GenerateHash(result) ^ this._timestamp.GetHashCode(); - result = GenerateHash(result) ^ this._length.GetHashCode(); - result = GenerateHash(result) ^ this._padding.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// The superclass for all PDUs. This incorporates the PduHeader record, section 5.2.29. + /// + [Serializable] + [XmlRoot] + public partial class Pdu : PduBase, IPdu + { + /// + /// The version of the protocol. 5=DIS-1995, 6=DIS-1998. + /// + private byte _protocolVersion = 6; + + /// + /// Exercise ID + /// + private byte _exerciseID; + + /// + /// Type of pdu, unique for each PDU class + /// + private byte _pduType; + + /// + /// value that refers to the protocol family, eg SimulationManagement, et + /// + private byte _protocolFamily; + + /// + /// Timestamp value + /// + private uint _timestamp; + + /// + /// Length, in bytes, of the PDU + /// + private ushort _length; + + /// + /// zero-filled array of padding + /// + private short _padding; + + /// + /// Initializes a new instance of the class. + /// + public Pdu() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(Pdu left, Pdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(Pdu left, Pdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._protocolVersion + marshalSize += 1; // this._exerciseID + marshalSize += 1; // this._pduType + marshalSize += 1; // this._protocolFamily + marshalSize += 4; // this._timestamp + marshalSize += 2; // this._length + marshalSize += 2; // this._padding + return marshalSize; + } + + /// + /// Gets or sets the The version of the protocol. 5=DIS-1995, 6=DIS-1998. + /// + [XmlElement(Type = typeof(byte), ElementName = "protocolVersion")] + public byte ProtocolVersion + { + get + { + return this._protocolVersion; + } + + set + { + this._protocolVersion = value; + } + } + + /// + /// Gets or sets the Exercise ID + /// + [XmlElement(Type = typeof(byte), ElementName = "exerciseID")] + public byte ExerciseID + { + get + { + return this._exerciseID; + } + + set + { + this._exerciseID = value; + } + } + + /// + /// Gets or sets the Type of pdu, unique for each PDU class + /// + [XmlElement(Type = typeof(byte), ElementName = "pduType")] + public byte PduType + { + get + { + return this._pduType; + } + + set + { + this._pduType = value; + } + } + + /// + /// Gets or sets the value that refers to the protocol family, eg SimulationManagement, et + /// + [XmlElement(Type = typeof(byte), ElementName = "protocolFamily")] + public byte ProtocolFamily + { + get + { + return this._protocolFamily; + } + + set + { + this._protocolFamily = value; + } + } + + /// + /// Gets or sets the Timestamp value + /// + [XmlElement(Type = typeof(uint), ElementName = "timestamp")] + public uint Timestamp + { + get + { + return this._timestamp; + } + + set + { + this._timestamp = value; + } + } + + /// + /// Gets or sets the Length, in bytes, of the PDU + /// + [XmlElement(Type = typeof(ushort), ElementName = "length")] + public ushort Length + { + get + { + return this._length; + } + + set + { + this._length = value; + } + } + + /// + /// Gets or sets the zero-filled array of padding + /// + [XmlElement(Type = typeof(short), ElementName = "padding")] + public short Padding + { + get + { + return this._padding; + } + + set + { + this._padding = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._protocolVersion); + dos.WriteUnsignedByte((byte)this._exerciseID); + dos.WriteUnsignedByte((byte)this._pduType); + dos.WriteUnsignedByte((byte)this._protocolFamily); + dos.WriteUnsignedInt((uint)this._timestamp); + dos.WriteUnsignedShort((ushort)this._length); + dos.WriteShort((short)this._padding); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._protocolVersion = dis.ReadUnsignedByte(); + this._exerciseID = dis.ReadUnsignedByte(); + this._pduType = dis.ReadUnsignedByte(); + this._protocolFamily = dis.ReadUnsignedByte(); + this._timestamp = dis.ReadUnsignedInt(); + this._length = dis.ReadUnsignedShort(); + this._padding = dis.ReadShort(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._protocolVersion.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._exerciseID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pduType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._protocolFamily.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._timestamp.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._length.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as Pdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(Pdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._protocolVersion != obj._protocolVersion) + { + ivarsEqual = false; + } + + if (this._exerciseID != obj._exerciseID) + { + ivarsEqual = false; + } + + if (this._pduType != obj._pduType) + { + ivarsEqual = false; + } + + if (this._protocolFamily != obj._protocolFamily) + { + ivarsEqual = false; + } + + if (this._timestamp != obj._timestamp) + { + ivarsEqual = false; + } + + if (this._length != obj._length) + { + ivarsEqual = false; + } + + if (this._padding != obj._padding) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._protocolVersion.GetHashCode(); + result = GenerateHash(result) ^ this._exerciseID.GetHashCode(); + result = GenerateHash(result) ^ this._pduType.GetHashCode(); + result = GenerateHash(result) ^ this._protocolFamily.GetHashCode(); + result = GenerateHash(result) ^ this._timestamp.GetHashCode(); + result = GenerateHash(result) ^ this._length.GetHashCode(); + result = GenerateHash(result) ^ this._padding.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/PduContainer.cs b/Libs/CsharpDis6/Dis1998/Generated/PduContainer.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/PduContainer.cs rename to Libs/CsharpDis6/Dis1998/Generated/PduContainer.cs index 65e4911..86122d0 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/PduContainer.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/PduContainer.cs @@ -1,374 +1,374 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Used for XML compatability. A container that holds PDUs - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(Pdu))] - public partial class PduContainer - { - /// - /// Number of PDUs in the container list - /// - private int _numberOfPdus; - - /// - /// record sets - /// - private List _pdus = new List(); - - /// - /// Initializes a new instance of the class. - /// - public PduContainer() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(PduContainer left, PduContainer right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(PduContainer left, PduContainer right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._numberOfPdus - for (int idx = 0; idx < this._pdus.Count; idx++) - { - Pdu listElement = (Pdu)this._pdus[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Number of PDUs in the container list - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfPdus method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(int), ElementName = "numberOfPdus")] - public int NumberOfPdus - { - get - { - return this._numberOfPdus; - } - - set - { - this._numberOfPdus = value; - } - } - - /// - /// Gets the record sets - /// - [XmlElement(ElementName = "pdusList", Type = typeof(List))] - public List Pdus - { - get - { - return this._pdus; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteInt((int)this._pdus.Count); - - for (int idx = 0; idx < this._pdus.Count; idx++) - { - Pdu aPdu = (Pdu)this._pdus[idx]; - aPdu.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._numberOfPdus = dis.ReadInt(); - - for (int idx = 0; idx < this.NumberOfPdus; idx++) - { - Pdu anX = new Pdu(); - anX.Unmarshal(dis); - this._pdus.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._pdus.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._pdus.Count; idx++) - { - sb.AppendLine(""); - Pdu aPdu = (Pdu)this._pdus[idx]; - aPdu.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as PduContainer; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(PduContainer obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._numberOfPdus != obj._numberOfPdus) - { - ivarsEqual = false; - } - - if (this._pdus.Count != obj._pdus.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._pdus.Count; idx++) - { - if (!this._pdus[idx].Equals(obj._pdus[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._numberOfPdus.GetHashCode(); - - if (this._pdus.Count > 0) - { - for (int idx = 0; idx < this._pdus.Count; idx++) - { - result = GenerateHash(result) ^ this._pdus[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Used for XML compatability. A container that holds PDUs + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(Pdu))] + public partial class PduContainer + { + /// + /// Number of PDUs in the container list + /// + private int _numberOfPdus; + + /// + /// record sets + /// + private List _pdus = new List(); + + /// + /// Initializes a new instance of the class. + /// + public PduContainer() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(PduContainer left, PduContainer right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(PduContainer left, PduContainer right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._numberOfPdus + for (int idx = 0; idx < this._pdus.Count; idx++) + { + Pdu listElement = (Pdu)this._pdus[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Number of PDUs in the container list + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfPdus method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(int), ElementName = "numberOfPdus")] + public int NumberOfPdus + { + get + { + return this._numberOfPdus; + } + + set + { + this._numberOfPdus = value; + } + } + + /// + /// Gets the record sets + /// + [XmlElement(ElementName = "pdusList", Type = typeof(List))] + public List Pdus + { + get + { + return this._pdus; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteInt((int)this._pdus.Count); + + for (int idx = 0; idx < this._pdus.Count; idx++) + { + Pdu aPdu = (Pdu)this._pdus[idx]; + aPdu.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._numberOfPdus = dis.ReadInt(); + + for (int idx = 0; idx < this.NumberOfPdus; idx++) + { + Pdu anX = new Pdu(); + anX.Unmarshal(dis); + this._pdus.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._pdus.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._pdus.Count; idx++) + { + sb.AppendLine(""); + Pdu aPdu = (Pdu)this._pdus[idx]; + aPdu.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as PduContainer; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(PduContainer obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._numberOfPdus != obj._numberOfPdus) + { + ivarsEqual = false; + } + + if (this._pdus.Count != obj._pdus.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._pdus.Count; idx++) + { + if (!this._pdus[idx].Equals(obj._pdus[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._numberOfPdus.GetHashCode(); + + if (this._pdus.Count > 0) + { + for (int idx = 0; idx < this._pdus.Count; idx++) + { + result = GenerateHash(result) ^ this._pdus[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/Point.cs b/Libs/CsharpDis6/Dis1998/Generated/Point.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/Point.cs rename to Libs/CsharpDis6/Dis1998/Generated/Point.cs index e58d939..f75ce65 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/Point.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/Point.cs @@ -1,332 +1,332 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// x,y point - /// - [Serializable] - [XmlRoot] - public partial class Point - { - /// - /// x - /// - private float _x; - - /// - /// y - /// - private float _y; - - /// - /// Initializes a new instance of the class. - /// - public Point() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(Point left, Point right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(Point left, Point right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._x - marshalSize += 4; // this._y - return marshalSize; - } - - /// - /// Gets or sets the x - /// - [XmlElement(Type = typeof(float), ElementName = "x")] - public float X - { - get - { - return this._x; - } - - set - { - this._x = value; - } - } - - /// - /// Gets or sets the y - /// - [XmlElement(Type = typeof(float), ElementName = "y")] - public float Y - { - get - { - return this._y; - } - - set - { - this._y = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteFloat((float)this._x); - dos.WriteFloat((float)this._y); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._x = dis.ReadFloat(); - this._y = dis.ReadFloat(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._x.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._y.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as Point; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(Point obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._x != obj._x) - { - ivarsEqual = false; - } - - if (this._y != obj._y) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._x.GetHashCode(); - result = GenerateHash(result) ^ this._y.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// x,y point + /// + [Serializable] + [XmlRoot] + public partial class Point + { + /// + /// x + /// + private float _x; + + /// + /// y + /// + private float _y; + + /// + /// Initializes a new instance of the class. + /// + public Point() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(Point left, Point right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(Point left, Point right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._x + marshalSize += 4; // this._y + return marshalSize; + } + + /// + /// Gets or sets the x + /// + [XmlElement(Type = typeof(float), ElementName = "x")] + public float X + { + get + { + return this._x; + } + + set + { + this._x = value; + } + } + + /// + /// Gets or sets the y + /// + [XmlElement(Type = typeof(float), ElementName = "y")] + public float Y + { + get + { + return this._y; + } + + set + { + this._y = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteFloat((float)this._x); + dos.WriteFloat((float)this._y); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._x = dis.ReadFloat(); + this._y = dis.ReadFloat(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._x.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._y.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as Point; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(Point obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._x != obj._x) + { + ivarsEqual = false; + } + + if (this._y != obj._y) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._x.GetHashCode(); + result = GenerateHash(result) ^ this._y.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/PointObjectStatePdu.cs b/Libs/CsharpDis6/Dis1998/Generated/PointObjectStatePdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/PointObjectStatePdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/PointObjectStatePdu.cs index 91923aa..90176dd 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/PointObjectStatePdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/PointObjectStatePdu.cs @@ -1,675 +1,675 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.11.3: Inormation abut the addition or modification of a synthecic enviroment object that is anchored to the terrain with a single point. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(ObjectType))] - [XmlInclude(typeof(Vector3Double))] - [XmlInclude(typeof(Orientation))] - [XmlInclude(typeof(SimulationAddress))] - public partial class PointObjectStatePdu : SyntheticEnvironmentFamilyPdu, IEquatable - { - /// - /// Object in synthetic environment - /// - private EntityID _objectID = new EntityID(); - - /// - /// Object with which this point object is associated - /// - private EntityID _referencedObjectID = new EntityID(); - - /// - /// unique update number of each state transition of an object - /// - private ushort _updateNumber; - - /// - /// force ID - /// - private byte _forceID; - - /// - /// modifications - /// - private byte _modifications; - - /// - /// Object type - /// - private ObjectType _objectType = new ObjectType(); - - /// - /// Object location - /// - private Vector3Double _objectLocation = new Vector3Double(); - - /// - /// Object orientation - /// - private Orientation _objectOrientation = new Orientation(); - - /// - /// Object apperance - /// - private double _objectAppearance; - - /// - /// requesterID - /// - private SimulationAddress _requesterID = new SimulationAddress(); - - /// - /// receiver ID - /// - private SimulationAddress _receivingID = new SimulationAddress(); - - /// - /// padding - /// - private uint _pad2; - - /// - /// Initializes a new instance of the class. - /// - public PointObjectStatePdu() - { - PduType = (byte)43; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(PointObjectStatePdu left, PointObjectStatePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(PointObjectStatePdu left, PointObjectStatePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._objectID.GetMarshalledSize(); // this._objectID - marshalSize += this._referencedObjectID.GetMarshalledSize(); // this._referencedObjectID - marshalSize += 2; // this._updateNumber - marshalSize += 1; // this._forceID - marshalSize += 1; // this._modifications - marshalSize += this._objectType.GetMarshalledSize(); // this._objectType - marshalSize += this._objectLocation.GetMarshalledSize(); // this._objectLocation - marshalSize += this._objectOrientation.GetMarshalledSize(); // this._objectOrientation - marshalSize += 8; // this._objectAppearance - marshalSize += this._requesterID.GetMarshalledSize(); // this._requesterID - marshalSize += this._receivingID.GetMarshalledSize(); // this._receivingID - marshalSize += 4; // this._pad2 - return marshalSize; - } - - /// - /// Gets or sets the Object in synthetic environment - /// - [XmlElement(Type = typeof(EntityID), ElementName = "objectID")] - public EntityID ObjectID - { - get - { - return this._objectID; - } - - set - { - this._objectID = value; - } - } - - /// - /// Gets or sets the Object with which this point object is associated - /// - [XmlElement(Type = typeof(EntityID), ElementName = "referencedObjectID")] - public EntityID ReferencedObjectID - { - get - { - return this._referencedObjectID; - } - - set - { - this._referencedObjectID = value; - } - } - - /// - /// Gets or sets the unique update number of each state transition of an object - /// - [XmlElement(Type = typeof(ushort), ElementName = "updateNumber")] - public ushort UpdateNumber - { - get - { - return this._updateNumber; - } - - set - { - this._updateNumber = value; - } - } - - /// - /// Gets or sets the force ID - /// - [XmlElement(Type = typeof(byte), ElementName = "forceID")] - public byte ForceID - { - get - { - return this._forceID; - } - - set - { - this._forceID = value; - } - } - - /// - /// Gets or sets the modifications - /// - [XmlElement(Type = typeof(byte), ElementName = "modifications")] - public byte Modifications - { - get - { - return this._modifications; - } - - set - { - this._modifications = value; - } - } - - /// - /// Gets or sets the Object type - /// - [XmlElement(Type = typeof(ObjectType), ElementName = "objectType")] - public ObjectType ObjectType - { - get - { - return this._objectType; - } - - set - { - this._objectType = value; - } - } - - /// - /// Gets or sets the Object location - /// - [XmlElement(Type = typeof(Vector3Double), ElementName = "objectLocation")] - public Vector3Double ObjectLocation - { - get - { - return this._objectLocation; - } - - set - { - this._objectLocation = value; - } - } - - /// - /// Gets or sets the Object orientation - /// - [XmlElement(Type = typeof(Orientation), ElementName = "objectOrientation")] - public Orientation ObjectOrientation - { - get - { - return this._objectOrientation; - } - - set - { - this._objectOrientation = value; - } - } - - /// - /// Gets or sets the Object apperance - /// - [XmlElement(Type = typeof(double), ElementName = "objectAppearance")] - public double ObjectAppearance - { - get - { - return this._objectAppearance; - } - - set - { - this._objectAppearance = value; - } - } - - /// - /// Gets or sets the requesterID - /// - [XmlElement(Type = typeof(SimulationAddress), ElementName = "requesterID")] - public SimulationAddress RequesterID - { - get - { - return this._requesterID; - } - - set - { - this._requesterID = value; - } - } - - /// - /// Gets or sets the receiver ID - /// - [XmlElement(Type = typeof(SimulationAddress), ElementName = "receivingID")] - public SimulationAddress ReceivingID - { - get - { - return this._receivingID; - } - - set - { - this._receivingID = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(uint), ElementName = "pad2")] - public uint Pad2 - { - get - { - return this._pad2; - } - - set - { - this._pad2 = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._objectID.Marshal(dos); - this._referencedObjectID.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._updateNumber); - dos.WriteUnsignedByte((byte)this._forceID); - dos.WriteUnsignedByte((byte)this._modifications); - this._objectType.Marshal(dos); - this._objectLocation.Marshal(dos); - this._objectOrientation.Marshal(dos); - dos.WriteDouble((double)this._objectAppearance); - this._requesterID.Marshal(dos); - this._receivingID.Marshal(dos); - dos.WriteUnsignedInt((uint)this._pad2); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._objectID.Unmarshal(dis); - this._referencedObjectID.Unmarshal(dis); - this._updateNumber = dis.ReadUnsignedShort(); - this._forceID = dis.ReadUnsignedByte(); - this._modifications = dis.ReadUnsignedByte(); - this._objectType.Unmarshal(dis); - this._objectLocation.Unmarshal(dis); - this._objectOrientation.Unmarshal(dis); - this._objectAppearance = dis.ReadDouble(); - this._requesterID.Unmarshal(dis); - this._receivingID.Unmarshal(dis); - this._pad2 = dis.ReadUnsignedInt(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._objectID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._referencedObjectID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._updateNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._forceID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._modifications.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._objectType.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._objectLocation.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._objectOrientation.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._objectAppearance.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._requesterID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._receivingID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as PointObjectStatePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(PointObjectStatePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._objectID.Equals(obj._objectID)) - { - ivarsEqual = false; - } - - if (!this._referencedObjectID.Equals(obj._referencedObjectID)) - { - ivarsEqual = false; - } - - if (this._updateNumber != obj._updateNumber) - { - ivarsEqual = false; - } - - if (this._forceID != obj._forceID) - { - ivarsEqual = false; - } - - if (this._modifications != obj._modifications) - { - ivarsEqual = false; - } - - if (!this._objectType.Equals(obj._objectType)) - { - ivarsEqual = false; - } - - if (!this._objectLocation.Equals(obj._objectLocation)) - { - ivarsEqual = false; - } - - if (!this._objectOrientation.Equals(obj._objectOrientation)) - { - ivarsEqual = false; - } - - if (this._objectAppearance != obj._objectAppearance) - { - ivarsEqual = false; - } - - if (!this._requesterID.Equals(obj._requesterID)) - { - ivarsEqual = false; - } - - if (!this._receivingID.Equals(obj._receivingID)) - { - ivarsEqual = false; - } - - if (this._pad2 != obj._pad2) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._objectID.GetHashCode(); - result = GenerateHash(result) ^ this._referencedObjectID.GetHashCode(); - result = GenerateHash(result) ^ this._updateNumber.GetHashCode(); - result = GenerateHash(result) ^ this._forceID.GetHashCode(); - result = GenerateHash(result) ^ this._modifications.GetHashCode(); - result = GenerateHash(result) ^ this._objectType.GetHashCode(); - result = GenerateHash(result) ^ this._objectLocation.GetHashCode(); - result = GenerateHash(result) ^ this._objectOrientation.GetHashCode(); - result = GenerateHash(result) ^ this._objectAppearance.GetHashCode(); - result = GenerateHash(result) ^ this._requesterID.GetHashCode(); - result = GenerateHash(result) ^ this._receivingID.GetHashCode(); - result = GenerateHash(result) ^ this._pad2.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.11.3: Inormation abut the addition or modification of a synthecic enviroment object that is anchored to the terrain with a single point. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(ObjectType))] + [XmlInclude(typeof(Vector3Double))] + [XmlInclude(typeof(Orientation))] + [XmlInclude(typeof(SimulationAddress))] + public partial class PointObjectStatePdu : SyntheticEnvironmentFamilyPdu, IEquatable + { + /// + /// Object in synthetic environment + /// + private EntityID _objectID = new EntityID(); + + /// + /// Object with which this point object is associated + /// + private EntityID _referencedObjectID = new EntityID(); + + /// + /// unique update number of each state transition of an object + /// + private ushort _updateNumber; + + /// + /// force ID + /// + private byte _forceID; + + /// + /// modifications + /// + private byte _modifications; + + /// + /// Object type + /// + private ObjectType _objectType = new ObjectType(); + + /// + /// Object location + /// + private Vector3Double _objectLocation = new Vector3Double(); + + /// + /// Object orientation + /// + private Orientation _objectOrientation = new Orientation(); + + /// + /// Object apperance + /// + private double _objectAppearance; + + /// + /// requesterID + /// + private SimulationAddress _requesterID = new SimulationAddress(); + + /// + /// receiver ID + /// + private SimulationAddress _receivingID = new SimulationAddress(); + + /// + /// padding + /// + private uint _pad2; + + /// + /// Initializes a new instance of the class. + /// + public PointObjectStatePdu() + { + PduType = (byte)43; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(PointObjectStatePdu left, PointObjectStatePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(PointObjectStatePdu left, PointObjectStatePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._objectID.GetMarshalledSize(); // this._objectID + marshalSize += this._referencedObjectID.GetMarshalledSize(); // this._referencedObjectID + marshalSize += 2; // this._updateNumber + marshalSize += 1; // this._forceID + marshalSize += 1; // this._modifications + marshalSize += this._objectType.GetMarshalledSize(); // this._objectType + marshalSize += this._objectLocation.GetMarshalledSize(); // this._objectLocation + marshalSize += this._objectOrientation.GetMarshalledSize(); // this._objectOrientation + marshalSize += 8; // this._objectAppearance + marshalSize += this._requesterID.GetMarshalledSize(); // this._requesterID + marshalSize += this._receivingID.GetMarshalledSize(); // this._receivingID + marshalSize += 4; // this._pad2 + return marshalSize; + } + + /// + /// Gets or sets the Object in synthetic environment + /// + [XmlElement(Type = typeof(EntityID), ElementName = "objectID")] + public EntityID ObjectID + { + get + { + return this._objectID; + } + + set + { + this._objectID = value; + } + } + + /// + /// Gets or sets the Object with which this point object is associated + /// + [XmlElement(Type = typeof(EntityID), ElementName = "referencedObjectID")] + public EntityID ReferencedObjectID + { + get + { + return this._referencedObjectID; + } + + set + { + this._referencedObjectID = value; + } + } + + /// + /// Gets or sets the unique update number of each state transition of an object + /// + [XmlElement(Type = typeof(ushort), ElementName = "updateNumber")] + public ushort UpdateNumber + { + get + { + return this._updateNumber; + } + + set + { + this._updateNumber = value; + } + } + + /// + /// Gets or sets the force ID + /// + [XmlElement(Type = typeof(byte), ElementName = "forceID")] + public byte ForceID + { + get + { + return this._forceID; + } + + set + { + this._forceID = value; + } + } + + /// + /// Gets or sets the modifications + /// + [XmlElement(Type = typeof(byte), ElementName = "modifications")] + public byte Modifications + { + get + { + return this._modifications; + } + + set + { + this._modifications = value; + } + } + + /// + /// Gets or sets the Object type + /// + [XmlElement(Type = typeof(ObjectType), ElementName = "objectType")] + public ObjectType ObjectType + { + get + { + return this._objectType; + } + + set + { + this._objectType = value; + } + } + + /// + /// Gets or sets the Object location + /// + [XmlElement(Type = typeof(Vector3Double), ElementName = "objectLocation")] + public Vector3Double ObjectLocation + { + get + { + return this._objectLocation; + } + + set + { + this._objectLocation = value; + } + } + + /// + /// Gets or sets the Object orientation + /// + [XmlElement(Type = typeof(Orientation), ElementName = "objectOrientation")] + public Orientation ObjectOrientation + { + get + { + return this._objectOrientation; + } + + set + { + this._objectOrientation = value; + } + } + + /// + /// Gets or sets the Object apperance + /// + [XmlElement(Type = typeof(double), ElementName = "objectAppearance")] + public double ObjectAppearance + { + get + { + return this._objectAppearance; + } + + set + { + this._objectAppearance = value; + } + } + + /// + /// Gets or sets the requesterID + /// + [XmlElement(Type = typeof(SimulationAddress), ElementName = "requesterID")] + public SimulationAddress RequesterID + { + get + { + return this._requesterID; + } + + set + { + this._requesterID = value; + } + } + + /// + /// Gets or sets the receiver ID + /// + [XmlElement(Type = typeof(SimulationAddress), ElementName = "receivingID")] + public SimulationAddress ReceivingID + { + get + { + return this._receivingID; + } + + set + { + this._receivingID = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(uint), ElementName = "pad2")] + public uint Pad2 + { + get + { + return this._pad2; + } + + set + { + this._pad2 = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._objectID.Marshal(dos); + this._referencedObjectID.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._updateNumber); + dos.WriteUnsignedByte((byte)this._forceID); + dos.WriteUnsignedByte((byte)this._modifications); + this._objectType.Marshal(dos); + this._objectLocation.Marshal(dos); + this._objectOrientation.Marshal(dos); + dos.WriteDouble((double)this._objectAppearance); + this._requesterID.Marshal(dos); + this._receivingID.Marshal(dos); + dos.WriteUnsignedInt((uint)this._pad2); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._objectID.Unmarshal(dis); + this._referencedObjectID.Unmarshal(dis); + this._updateNumber = dis.ReadUnsignedShort(); + this._forceID = dis.ReadUnsignedByte(); + this._modifications = dis.ReadUnsignedByte(); + this._objectType.Unmarshal(dis); + this._objectLocation.Unmarshal(dis); + this._objectOrientation.Unmarshal(dis); + this._objectAppearance = dis.ReadDouble(); + this._requesterID.Unmarshal(dis); + this._receivingID.Unmarshal(dis); + this._pad2 = dis.ReadUnsignedInt(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._objectID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._referencedObjectID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._updateNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._forceID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._modifications.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._objectType.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._objectLocation.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._objectOrientation.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._objectAppearance.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._requesterID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._receivingID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as PointObjectStatePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(PointObjectStatePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._objectID.Equals(obj._objectID)) + { + ivarsEqual = false; + } + + if (!this._referencedObjectID.Equals(obj._referencedObjectID)) + { + ivarsEqual = false; + } + + if (this._updateNumber != obj._updateNumber) + { + ivarsEqual = false; + } + + if (this._forceID != obj._forceID) + { + ivarsEqual = false; + } + + if (this._modifications != obj._modifications) + { + ivarsEqual = false; + } + + if (!this._objectType.Equals(obj._objectType)) + { + ivarsEqual = false; + } + + if (!this._objectLocation.Equals(obj._objectLocation)) + { + ivarsEqual = false; + } + + if (!this._objectOrientation.Equals(obj._objectOrientation)) + { + ivarsEqual = false; + } + + if (this._objectAppearance != obj._objectAppearance) + { + ivarsEqual = false; + } + + if (!this._requesterID.Equals(obj._requesterID)) + { + ivarsEqual = false; + } + + if (!this._receivingID.Equals(obj._receivingID)) + { + ivarsEqual = false; + } + + if (this._pad2 != obj._pad2) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._objectID.GetHashCode(); + result = GenerateHash(result) ^ this._referencedObjectID.GetHashCode(); + result = GenerateHash(result) ^ this._updateNumber.GetHashCode(); + result = GenerateHash(result) ^ this._forceID.GetHashCode(); + result = GenerateHash(result) ^ this._modifications.GetHashCode(); + result = GenerateHash(result) ^ this._objectType.GetHashCode(); + result = GenerateHash(result) ^ this._objectLocation.GetHashCode(); + result = GenerateHash(result) ^ this._objectOrientation.GetHashCode(); + result = GenerateHash(result) ^ this._objectAppearance.GetHashCode(); + result = GenerateHash(result) ^ this._requesterID.GetHashCode(); + result = GenerateHash(result) ^ this._receivingID.GetHashCode(); + result = GenerateHash(result) ^ this._pad2.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/PropulsionSystemData.cs b/Libs/CsharpDis6/Dis1998/Generated/PropulsionSystemData.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/PropulsionSystemData.cs rename to Libs/CsharpDis6/Dis1998/Generated/PropulsionSystemData.cs index 9583113..0e24a94 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/PropulsionSystemData.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/PropulsionSystemData.cs @@ -1,332 +1,332 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Data about a propulsion system - /// - [Serializable] - [XmlRoot] - public partial class PropulsionSystemData - { - /// - /// powerSetting - /// - private float _powerSetting; - - /// - /// engine RPMs - /// - private float _engineRpm; - - /// - /// Initializes a new instance of the class. - /// - public PropulsionSystemData() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(PropulsionSystemData left, PropulsionSystemData right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(PropulsionSystemData left, PropulsionSystemData right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._powerSetting - marshalSize += 4; // this._engineRpm - return marshalSize; - } - - /// - /// Gets or sets the powerSetting - /// - [XmlElement(Type = typeof(float), ElementName = "powerSetting")] - public float PowerSetting - { - get - { - return this._powerSetting; - } - - set - { - this._powerSetting = value; - } - } - - /// - /// Gets or sets the engine RPMs - /// - [XmlElement(Type = typeof(float), ElementName = "engineRpm")] - public float EngineRpm - { - get - { - return this._engineRpm; - } - - set - { - this._engineRpm = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteFloat((float)this._powerSetting); - dos.WriteFloat((float)this._engineRpm); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._powerSetting = dis.ReadFloat(); - this._engineRpm = dis.ReadFloat(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._powerSetting.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._engineRpm.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as PropulsionSystemData; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(PropulsionSystemData obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._powerSetting != obj._powerSetting) - { - ivarsEqual = false; - } - - if (this._engineRpm != obj._engineRpm) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._powerSetting.GetHashCode(); - result = GenerateHash(result) ^ this._engineRpm.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Data about a propulsion system + /// + [Serializable] + [XmlRoot] + public partial class PropulsionSystemData + { + /// + /// powerSetting + /// + private float _powerSetting; + + /// + /// engine RPMs + /// + private float _engineRpm; + + /// + /// Initializes a new instance of the class. + /// + public PropulsionSystemData() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(PropulsionSystemData left, PropulsionSystemData right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(PropulsionSystemData left, PropulsionSystemData right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._powerSetting + marshalSize += 4; // this._engineRpm + return marshalSize; + } + + /// + /// Gets or sets the powerSetting + /// + [XmlElement(Type = typeof(float), ElementName = "powerSetting")] + public float PowerSetting + { + get + { + return this._powerSetting; + } + + set + { + this._powerSetting = value; + } + } + + /// + /// Gets or sets the engine RPMs + /// + [XmlElement(Type = typeof(float), ElementName = "engineRpm")] + public float EngineRpm + { + get + { + return this._engineRpm; + } + + set + { + this._engineRpm = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteFloat((float)this._powerSetting); + dos.WriteFloat((float)this._engineRpm); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._powerSetting = dis.ReadFloat(); + this._engineRpm = dis.ReadFloat(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._powerSetting.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._engineRpm.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as PropulsionSystemData; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(PropulsionSystemData obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._powerSetting != obj._powerSetting) + { + ivarsEqual = false; + } + + if (this._engineRpm != obj._engineRpm) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._powerSetting.GetHashCode(); + result = GenerateHash(result) ^ this._engineRpm.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/RadioCommunicationsFamilyPdu.cs b/Libs/CsharpDis6/Dis1998/Generated/RadioCommunicationsFamilyPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/RadioCommunicationsFamilyPdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/RadioCommunicationsFamilyPdu.cs index 76f60de..2f685e3 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/RadioCommunicationsFamilyPdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/RadioCommunicationsFamilyPdu.cs @@ -1,339 +1,339 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.8. Abstract superclass for radio communications PDUs. - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - public partial class RadioCommunicationsFamilyPdu : Pdu, IEquatable - { - /// - /// ID of the entitythat is the source of the communication - /// - private EntityID _entityId = new EntityID(); - - /// - /// particular radio within an entity - /// - private ushort _radioId; - - /// - /// Initializes a new instance of the class. - /// - public RadioCommunicationsFamilyPdu() - { - ProtocolFamily = (byte)4; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(RadioCommunicationsFamilyPdu left, RadioCommunicationsFamilyPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(RadioCommunicationsFamilyPdu left, RadioCommunicationsFamilyPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._entityId.GetMarshalledSize(); // this._entityId - marshalSize += 2; // this._radioId - return marshalSize; - } - - /// - /// Gets or sets the ID of the entitythat is the source of the communication - /// - [XmlElement(Type = typeof(EntityID), ElementName = "entityId")] - public EntityID EntityId - { - get - { - return this._entityId; - } - - set - { - this._entityId = value; - } - } - - /// - /// Gets or sets the particular radio within an entity - /// - [XmlElement(Type = typeof(ushort), ElementName = "radioId")] - public ushort RadioId - { - get - { - return this._radioId; - } - - set - { - this._radioId = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public virtual void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._entityId.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._radioId); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._entityId.Unmarshal(dis); - this._radioId = dis.ReadUnsignedShort(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._entityId.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._radioId.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as RadioCommunicationsFamilyPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(RadioCommunicationsFamilyPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._entityId.Equals(obj._entityId)) - { - ivarsEqual = false; - } - - if (this._radioId != obj._radioId) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._entityId.GetHashCode(); - result = GenerateHash(result) ^ this._radioId.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.8. Abstract superclass for radio communications PDUs. + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + public partial class RadioCommunicationsFamilyPdu : Pdu, IEquatable + { + /// + /// ID of the entitythat is the source of the communication + /// + private EntityID _entityId = new EntityID(); + + /// + /// particular radio within an entity + /// + private ushort _radioId; + + /// + /// Initializes a new instance of the class. + /// + public RadioCommunicationsFamilyPdu() + { + ProtocolFamily = (byte)4; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(RadioCommunicationsFamilyPdu left, RadioCommunicationsFamilyPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(RadioCommunicationsFamilyPdu left, RadioCommunicationsFamilyPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._entityId.GetMarshalledSize(); // this._entityId + marshalSize += 2; // this._radioId + return marshalSize; + } + + /// + /// Gets or sets the ID of the entitythat is the source of the communication + /// + [XmlElement(Type = typeof(EntityID), ElementName = "entityId")] + public EntityID EntityId + { + get + { + return this._entityId; + } + + set + { + this._entityId = value; + } + } + + /// + /// Gets or sets the particular radio within an entity + /// + [XmlElement(Type = typeof(ushort), ElementName = "radioId")] + public ushort RadioId + { + get + { + return this._radioId; + } + + set + { + this._radioId = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public virtual void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._entityId.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._radioId); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._entityId.Unmarshal(dis); + this._radioId = dis.ReadUnsignedShort(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._entityId.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._radioId.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as RadioCommunicationsFamilyPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(RadioCommunicationsFamilyPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._entityId.Equals(obj._entityId)) + { + ivarsEqual = false; + } + + if (this._radioId != obj._radioId) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._entityId.GetHashCode(); + result = GenerateHash(result) ^ this._radioId.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/RadioEntityType.cs b/Libs/CsharpDis6/Dis1998/Generated/RadioEntityType.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/RadioEntityType.cs rename to Libs/CsharpDis6/Dis1998/Generated/RadioEntityType.cs index 2bcea85..d3e6423 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/RadioEntityType.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/RadioEntityType.cs @@ -1,457 +1,457 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.2.25. Identifies the type of radio - /// - [Serializable] - [XmlRoot] - public partial class RadioEntityType - { - /// - /// Kind of entity - /// - private byte _entityKind; - - /// - /// Domain of entity (air, surface, subsurface, space, etc) - /// - private byte _domain; - - /// - /// country to which the design of the entity is attributed - /// - private ushort _country; - - /// - /// category of entity - /// - private byte _category; - - /// - /// specific info based on subcategory field - /// - private byte _nomenclatureVersion; - - private ushort _nomenclature; - - /// - /// Initializes a new instance of the class. - /// - public RadioEntityType() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(RadioEntityType left, RadioEntityType right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(RadioEntityType left, RadioEntityType right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._entityKind - marshalSize += 1; // this._domain - marshalSize += 2; // this._country - marshalSize += 1; // this._category - marshalSize += 1; // this._nomenclatureVersion - marshalSize += 2; // this._nomenclature - return marshalSize; - } - - /// - /// Gets or sets the Kind of entity - /// - [XmlElement(Type = typeof(byte), ElementName = "entityKind")] - public byte EntityKind - { - get - { - return this._entityKind; - } - - set - { - this._entityKind = value; - } - } - - /// - /// Gets or sets the Domain of entity (air, surface, subsurface, space, etc) - /// - [XmlElement(Type = typeof(byte), ElementName = "domain")] - public byte Domain - { - get - { - return this._domain; - } - - set - { - this._domain = value; - } - } - - /// - /// Gets or sets the country to which the design of the entity is attributed - /// - [XmlElement(Type = typeof(ushort), ElementName = "country")] - public ushort Country - { - get - { - return this._country; - } - - set - { - this._country = value; - } - } - - /// - /// Gets or sets the category of entity - /// - [XmlElement(Type = typeof(byte), ElementName = "category")] - public byte Category - { - get - { - return this._category; - } - - set - { - this._category = value; - } - } - - /// - /// Gets or sets the specific info based on subcategory field - /// - [XmlElement(Type = typeof(byte), ElementName = "nomenclatureVersion")] - public byte NomenclatureVersion - { - get - { - return this._nomenclatureVersion; - } - - set - { - this._nomenclatureVersion = value; - } - } - - /// - /// Gets or sets the nomenclature - /// - [XmlElement(Type = typeof(ushort), ElementName = "nomenclature")] - public ushort Nomenclature - { - get - { - return this._nomenclature; - } - - set - { - this._nomenclature = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._entityKind); - dos.WriteUnsignedByte((byte)this._domain); - dos.WriteUnsignedShort((ushort)this._country); - dos.WriteUnsignedByte((byte)this._category); - dos.WriteUnsignedByte((byte)this._nomenclatureVersion); - dos.WriteUnsignedShort((ushort)this._nomenclature); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._entityKind = dis.ReadUnsignedByte(); - this._domain = dis.ReadUnsignedByte(); - this._country = dis.ReadUnsignedShort(); - this._category = dis.ReadUnsignedByte(); - this._nomenclatureVersion = dis.ReadUnsignedByte(); - this._nomenclature = dis.ReadUnsignedShort(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._entityKind.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._domain.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._country.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._category.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._nomenclatureVersion.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._nomenclature.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as RadioEntityType; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(RadioEntityType obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._entityKind != obj._entityKind) - { - ivarsEqual = false; - } - - if (this._domain != obj._domain) - { - ivarsEqual = false; - } - - if (this._country != obj._country) - { - ivarsEqual = false; - } - - if (this._category != obj._category) - { - ivarsEqual = false; - } - - if (this._nomenclatureVersion != obj._nomenclatureVersion) - { - ivarsEqual = false; - } - - if (this._nomenclature != obj._nomenclature) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._entityKind.GetHashCode(); - result = GenerateHash(result) ^ this._domain.GetHashCode(); - result = GenerateHash(result) ^ this._country.GetHashCode(); - result = GenerateHash(result) ^ this._category.GetHashCode(); - result = GenerateHash(result) ^ this._nomenclatureVersion.GetHashCode(); - result = GenerateHash(result) ^ this._nomenclature.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.2.25. Identifies the type of radio + /// + [Serializable] + [XmlRoot] + public partial class RadioEntityType + { + /// + /// Kind of entity + /// + private byte _entityKind; + + /// + /// Domain of entity (air, surface, subsurface, space, etc) + /// + private byte _domain; + + /// + /// country to which the design of the entity is attributed + /// + private ushort _country; + + /// + /// category of entity + /// + private byte _category; + + /// + /// specific info based on subcategory field + /// + private byte _nomenclatureVersion; + + private ushort _nomenclature; + + /// + /// Initializes a new instance of the class. + /// + public RadioEntityType() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(RadioEntityType left, RadioEntityType right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(RadioEntityType left, RadioEntityType right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._entityKind + marshalSize += 1; // this._domain + marshalSize += 2; // this._country + marshalSize += 1; // this._category + marshalSize += 1; // this._nomenclatureVersion + marshalSize += 2; // this._nomenclature + return marshalSize; + } + + /// + /// Gets or sets the Kind of entity + /// + [XmlElement(Type = typeof(byte), ElementName = "entityKind")] + public byte EntityKind + { + get + { + return this._entityKind; + } + + set + { + this._entityKind = value; + } + } + + /// + /// Gets or sets the Domain of entity (air, surface, subsurface, space, etc) + /// + [XmlElement(Type = typeof(byte), ElementName = "domain")] + public byte Domain + { + get + { + return this._domain; + } + + set + { + this._domain = value; + } + } + + /// + /// Gets or sets the country to which the design of the entity is attributed + /// + [XmlElement(Type = typeof(ushort), ElementName = "country")] + public ushort Country + { + get + { + return this._country; + } + + set + { + this._country = value; + } + } + + /// + /// Gets or sets the category of entity + /// + [XmlElement(Type = typeof(byte), ElementName = "category")] + public byte Category + { + get + { + return this._category; + } + + set + { + this._category = value; + } + } + + /// + /// Gets or sets the specific info based on subcategory field + /// + [XmlElement(Type = typeof(byte), ElementName = "nomenclatureVersion")] + public byte NomenclatureVersion + { + get + { + return this._nomenclatureVersion; + } + + set + { + this._nomenclatureVersion = value; + } + } + + /// + /// Gets or sets the nomenclature + /// + [XmlElement(Type = typeof(ushort), ElementName = "nomenclature")] + public ushort Nomenclature + { + get + { + return this._nomenclature; + } + + set + { + this._nomenclature = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._entityKind); + dos.WriteUnsignedByte((byte)this._domain); + dos.WriteUnsignedShort((ushort)this._country); + dos.WriteUnsignedByte((byte)this._category); + dos.WriteUnsignedByte((byte)this._nomenclatureVersion); + dos.WriteUnsignedShort((ushort)this._nomenclature); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._entityKind = dis.ReadUnsignedByte(); + this._domain = dis.ReadUnsignedByte(); + this._country = dis.ReadUnsignedShort(); + this._category = dis.ReadUnsignedByte(); + this._nomenclatureVersion = dis.ReadUnsignedByte(); + this._nomenclature = dis.ReadUnsignedShort(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._entityKind.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._domain.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._country.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._category.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._nomenclatureVersion.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._nomenclature.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as RadioEntityType; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(RadioEntityType obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._entityKind != obj._entityKind) + { + ivarsEqual = false; + } + + if (this._domain != obj._domain) + { + ivarsEqual = false; + } + + if (this._country != obj._country) + { + ivarsEqual = false; + } + + if (this._category != obj._category) + { + ivarsEqual = false; + } + + if (this._nomenclatureVersion != obj._nomenclatureVersion) + { + ivarsEqual = false; + } + + if (this._nomenclature != obj._nomenclature) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._entityKind.GetHashCode(); + result = GenerateHash(result) ^ this._domain.GetHashCode(); + result = GenerateHash(result) ^ this._country.GetHashCode(); + result = GenerateHash(result) ^ this._category.GetHashCode(); + result = GenerateHash(result) ^ this._nomenclatureVersion.GetHashCode(); + result = GenerateHash(result) ^ this._nomenclature.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ReceiverPdu.cs b/Libs/CsharpDis6/Dis1998/Generated/ReceiverPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/ReceiverPdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/ReceiverPdu.cs index 154e9b5..6befa37 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ReceiverPdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/ReceiverPdu.cs @@ -1,435 +1,435 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.8.3. Communication of a receiver state. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - public partial class ReceiverPdu : RadioCommunicationsFamilyPdu, IEquatable - { - /// - /// encoding scheme used, and enumeration - /// - private ushort _receiverState; - - /// - /// padding - /// - private ushort _padding1; - - /// - /// received power - /// - private float _receivedPoser; - - /// - /// ID of transmitter - /// - private EntityID _transmitterEntityId = new EntityID(); - - /// - /// ID of transmitting radio - /// - private ushort _transmitterRadioId; - - /// - /// Initializes a new instance of the class. - /// - public ReceiverPdu() - { - PduType = (byte)27; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ReceiverPdu left, ReceiverPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ReceiverPdu left, ReceiverPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 2; // this._receiverState - marshalSize += 2; // this._padding1 - marshalSize += 4; // this._receivedPoser - marshalSize += this._transmitterEntityId.GetMarshalledSize(); // this._transmitterEntityId - marshalSize += 2; // this._transmitterRadioId - return marshalSize; - } - - /// - /// Gets or sets the encoding scheme used, and enumeration - /// - [XmlElement(Type = typeof(ushort), ElementName = "receiverState")] - public ushort ReceiverState - { - get - { - return this._receiverState; - } - - set - { - this._receiverState = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(ushort), ElementName = "padding1")] - public ushort Padding1 - { - get - { - return this._padding1; - } - - set - { - this._padding1 = value; - } - } - - /// - /// Gets or sets the received power - /// - [XmlElement(Type = typeof(float), ElementName = "receivedPoser")] - public float ReceivedPoser - { - get - { - return this._receivedPoser; - } - - set - { - this._receivedPoser = value; - } - } - - /// - /// Gets or sets the ID of transmitter - /// - [XmlElement(Type = typeof(EntityID), ElementName = "transmitterEntityId")] - public EntityID TransmitterEntityId - { - get - { - return this._transmitterEntityId; - } - - set - { - this._transmitterEntityId = value; - } - } - - /// - /// Gets or sets the ID of transmitting radio - /// - [XmlElement(Type = typeof(ushort), ElementName = "transmitterRadioId")] - public ushort TransmitterRadioId - { - get - { - return this._transmitterRadioId; - } - - set - { - this._transmitterRadioId = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._receiverState); - dos.WriteUnsignedShort((ushort)this._padding1); - dos.WriteFloat((float)this._receivedPoser); - this._transmitterEntityId.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._transmitterRadioId); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._receiverState = dis.ReadUnsignedShort(); - this._padding1 = dis.ReadUnsignedShort(); - this._receivedPoser = dis.ReadFloat(); - this._transmitterEntityId.Unmarshal(dis); - this._transmitterRadioId = dis.ReadUnsignedShort(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._receiverState.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._receivedPoser.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._transmitterEntityId.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._transmitterRadioId.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ReceiverPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ReceiverPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._receiverState != obj._receiverState) - { - ivarsEqual = false; - } - - if (this._padding1 != obj._padding1) - { - ivarsEqual = false; - } - - if (this._receivedPoser != obj._receivedPoser) - { - ivarsEqual = false; - } - - if (!this._transmitterEntityId.Equals(obj._transmitterEntityId)) - { - ivarsEqual = false; - } - - if (this._transmitterRadioId != obj._transmitterRadioId) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._receiverState.GetHashCode(); - result = GenerateHash(result) ^ this._padding1.GetHashCode(); - result = GenerateHash(result) ^ this._receivedPoser.GetHashCode(); - result = GenerateHash(result) ^ this._transmitterEntityId.GetHashCode(); - result = GenerateHash(result) ^ this._transmitterRadioId.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.8.3. Communication of a receiver state. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + public partial class ReceiverPdu : RadioCommunicationsFamilyPdu, IEquatable + { + /// + /// encoding scheme used, and enumeration + /// + private ushort _receiverState; + + /// + /// padding + /// + private ushort _padding1; + + /// + /// received power + /// + private float _receivedPoser; + + /// + /// ID of transmitter + /// + private EntityID _transmitterEntityId = new EntityID(); + + /// + /// ID of transmitting radio + /// + private ushort _transmitterRadioId; + + /// + /// Initializes a new instance of the class. + /// + public ReceiverPdu() + { + PduType = (byte)27; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ReceiverPdu left, ReceiverPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ReceiverPdu left, ReceiverPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 2; // this._receiverState + marshalSize += 2; // this._padding1 + marshalSize += 4; // this._receivedPoser + marshalSize += this._transmitterEntityId.GetMarshalledSize(); // this._transmitterEntityId + marshalSize += 2; // this._transmitterRadioId + return marshalSize; + } + + /// + /// Gets or sets the encoding scheme used, and enumeration + /// + [XmlElement(Type = typeof(ushort), ElementName = "receiverState")] + public ushort ReceiverState + { + get + { + return this._receiverState; + } + + set + { + this._receiverState = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(ushort), ElementName = "padding1")] + public ushort Padding1 + { + get + { + return this._padding1; + } + + set + { + this._padding1 = value; + } + } + + /// + /// Gets or sets the received power + /// + [XmlElement(Type = typeof(float), ElementName = "receivedPoser")] + public float ReceivedPoser + { + get + { + return this._receivedPoser; + } + + set + { + this._receivedPoser = value; + } + } + + /// + /// Gets or sets the ID of transmitter + /// + [XmlElement(Type = typeof(EntityID), ElementName = "transmitterEntityId")] + public EntityID TransmitterEntityId + { + get + { + return this._transmitterEntityId; + } + + set + { + this._transmitterEntityId = value; + } + } + + /// + /// Gets or sets the ID of transmitting radio + /// + [XmlElement(Type = typeof(ushort), ElementName = "transmitterRadioId")] + public ushort TransmitterRadioId + { + get + { + return this._transmitterRadioId; + } + + set + { + this._transmitterRadioId = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._receiverState); + dos.WriteUnsignedShort((ushort)this._padding1); + dos.WriteFloat((float)this._receivedPoser); + this._transmitterEntityId.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._transmitterRadioId); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._receiverState = dis.ReadUnsignedShort(); + this._padding1 = dis.ReadUnsignedShort(); + this._receivedPoser = dis.ReadFloat(); + this._transmitterEntityId.Unmarshal(dis); + this._transmitterRadioId = dis.ReadUnsignedShort(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._receiverState.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._receivedPoser.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._transmitterEntityId.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._transmitterRadioId.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ReceiverPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ReceiverPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._receiverState != obj._receiverState) + { + ivarsEqual = false; + } + + if (this._padding1 != obj._padding1) + { + ivarsEqual = false; + } + + if (this._receivedPoser != obj._receivedPoser) + { + ivarsEqual = false; + } + + if (!this._transmitterEntityId.Equals(obj._transmitterEntityId)) + { + ivarsEqual = false; + } + + if (this._transmitterRadioId != obj._transmitterRadioId) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._receiverState.GetHashCode(); + result = GenerateHash(result) ^ this._padding1.GetHashCode(); + result = GenerateHash(result) ^ this._receivedPoser.GetHashCode(); + result = GenerateHash(result) ^ this._transmitterEntityId.GetHashCode(); + result = GenerateHash(result) ^ this._transmitterRadioId.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/RecordQueryReliablePdu.cs b/Libs/CsharpDis6/Dis1998/Generated/RecordQueryReliablePdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/RecordQueryReliablePdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/RecordQueryReliablePdu.cs index bfa92bf..2bff5af 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/RecordQueryReliablePdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/RecordQueryReliablePdu.cs @@ -1,570 +1,570 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.12.13: A request for one or more records of data from an entity. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(FourByteChunk))] - public partial class RecordQueryReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable - { - /// - /// request ID - /// - private uint _requestID; - - /// - /// level of reliability service used for this transaction - /// - private byte _requiredReliabilityService; - - /// - /// padding. The spec is unclear and contradictory here. - /// - private ushort _pad1; - - /// - /// padding - /// - private byte _pad2; - - /// - /// event type - /// - private ushort _eventType; - - /// - /// time - /// - private uint _time; - - /// - /// numberOfRecords - /// - private uint _numberOfRecords; - - /// - /// record IDs - /// - private List _recordIDs = new List(); - - /// - /// Initializes a new instance of the class. - /// - public RecordQueryReliablePdu() - { - PduType = (byte)63; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(RecordQueryReliablePdu left, RecordQueryReliablePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(RecordQueryReliablePdu left, RecordQueryReliablePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 4; // this._requestID - marshalSize += 1; // this._requiredReliabilityService - marshalSize += 2; // this._pad1 - marshalSize += 1; // this._pad2 - marshalSize += 2; // this._eventType - marshalSize += 4; // this._time - marshalSize += 4; // this._numberOfRecords - for (int idx = 0; idx < this._recordIDs.Count; idx++) - { - FourByteChunk listElement = (FourByteChunk)this._recordIDs[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the request ID - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Gets or sets the level of reliability service used for this transaction - /// - [XmlElement(Type = typeof(byte), ElementName = "requiredReliabilityService")] - public byte RequiredReliabilityService - { - get - { - return this._requiredReliabilityService; - } - - set - { - this._requiredReliabilityService = value; - } - } - - /// - /// Gets or sets the padding. The spec is unclear and contradictory here. - /// - [XmlElement(Type = typeof(ushort), ElementName = "pad1")] - public ushort Pad1 - { - get - { - return this._pad1; - } - - set - { - this._pad1 = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "pad2")] - public byte Pad2 - { - get - { - return this._pad2; - } - - set - { - this._pad2 = value; - } - } - - /// - /// Gets or sets the event type - /// - [XmlElement(Type = typeof(ushort), ElementName = "eventType")] - public ushort EventType - { - get - { - return this._eventType; - } - - set - { - this._eventType = value; - } - } - - /// - /// Gets or sets the time - /// - [XmlElement(Type = typeof(uint), ElementName = "time")] - public uint Time - { - get - { - return this._time; - } - - set - { - this._time = value; - } - } - - /// - /// Gets or sets the numberOfRecords - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfRecords")] - public uint NumberOfRecords - { - get - { - return this._numberOfRecords; - } - - set - { - this._numberOfRecords = value; - } - } - - /// - /// Gets the record IDs - /// - [XmlElement(ElementName = "recordIDsList", Type = typeof(List))] - public List RecordIDs - { - get - { - return this._recordIDs; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._requestID); - dos.WriteUnsignedByte((byte)this._requiredReliabilityService); - dos.WriteUnsignedShort((ushort)this._pad1); - dos.WriteUnsignedByte((byte)this._pad2); - dos.WriteUnsignedShort((ushort)this._eventType); - dos.WriteUnsignedInt((uint)this._time); - dos.WriteUnsignedInt((uint)this._recordIDs.Count); - - for (int idx = 0; idx < this._recordIDs.Count; idx++) - { - FourByteChunk aFourByteChunk = (FourByteChunk)this._recordIDs[idx]; - aFourByteChunk.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._requestID = dis.ReadUnsignedInt(); - this._requiredReliabilityService = dis.ReadUnsignedByte(); - this._pad1 = dis.ReadUnsignedShort(); - this._pad2 = dis.ReadUnsignedByte(); - this._eventType = dis.ReadUnsignedShort(); - this._time = dis.ReadUnsignedInt(); - this._numberOfRecords = dis.ReadUnsignedInt(); - - for (int idx = 0; idx < this.NumberOfRecords; idx++) - { - FourByteChunk anX = new FourByteChunk(); - anX.Unmarshal(dis); - this._recordIDs.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._requiredReliabilityService.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._eventType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - sb.AppendLine("" + this._recordIDs.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._recordIDs.Count; idx++) - { - sb.AppendLine(""); - FourByteChunk aFourByteChunk = (FourByteChunk)this._recordIDs[idx]; - aFourByteChunk.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as RecordQueryReliablePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(RecordQueryReliablePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - if (this._requiredReliabilityService != obj._requiredReliabilityService) - { - ivarsEqual = false; - } - - if (this._pad1 != obj._pad1) - { - ivarsEqual = false; - } - - if (this._pad2 != obj._pad2) - { - ivarsEqual = false; - } - - if (this._eventType != obj._eventType) - { - ivarsEqual = false; - } - - if (this._time != obj._time) - { - ivarsEqual = false; - } - - if (this._numberOfRecords != obj._numberOfRecords) - { - ivarsEqual = false; - } - - if (this._recordIDs.Count != obj._recordIDs.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._recordIDs.Count; idx++) - { - if (!this._recordIDs[idx].Equals(obj._recordIDs[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - result = GenerateHash(result) ^ this._requiredReliabilityService.GetHashCode(); - result = GenerateHash(result) ^ this._pad1.GetHashCode(); - result = GenerateHash(result) ^ this._pad2.GetHashCode(); - result = GenerateHash(result) ^ this._eventType.GetHashCode(); - result = GenerateHash(result) ^ this._time.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfRecords.GetHashCode(); - - if (this._recordIDs.Count > 0) - { - for (int idx = 0; idx < this._recordIDs.Count; idx++) - { - result = GenerateHash(result) ^ this._recordIDs[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.12.13: A request for one or more records of data from an entity. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(FourByteChunk))] + public partial class RecordQueryReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable + { + /// + /// request ID + /// + private uint _requestID; + + /// + /// level of reliability service used for this transaction + /// + private byte _requiredReliabilityService; + + /// + /// padding. The spec is unclear and contradictory here. + /// + private ushort _pad1; + + /// + /// padding + /// + private byte _pad2; + + /// + /// event type + /// + private ushort _eventType; + + /// + /// time + /// + private uint _time; + + /// + /// numberOfRecords + /// + private uint _numberOfRecords; + + /// + /// record IDs + /// + private List _recordIDs = new List(); + + /// + /// Initializes a new instance of the class. + /// + public RecordQueryReliablePdu() + { + PduType = (byte)63; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(RecordQueryReliablePdu left, RecordQueryReliablePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(RecordQueryReliablePdu left, RecordQueryReliablePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 4; // this._requestID + marshalSize += 1; // this._requiredReliabilityService + marshalSize += 2; // this._pad1 + marshalSize += 1; // this._pad2 + marshalSize += 2; // this._eventType + marshalSize += 4; // this._time + marshalSize += 4; // this._numberOfRecords + for (int idx = 0; idx < this._recordIDs.Count; idx++) + { + FourByteChunk listElement = (FourByteChunk)this._recordIDs[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the request ID + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Gets or sets the level of reliability service used for this transaction + /// + [XmlElement(Type = typeof(byte), ElementName = "requiredReliabilityService")] + public byte RequiredReliabilityService + { + get + { + return this._requiredReliabilityService; + } + + set + { + this._requiredReliabilityService = value; + } + } + + /// + /// Gets or sets the padding. The spec is unclear and contradictory here. + /// + [XmlElement(Type = typeof(ushort), ElementName = "pad1")] + public ushort Pad1 + { + get + { + return this._pad1; + } + + set + { + this._pad1 = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "pad2")] + public byte Pad2 + { + get + { + return this._pad2; + } + + set + { + this._pad2 = value; + } + } + + /// + /// Gets or sets the event type + /// + [XmlElement(Type = typeof(ushort), ElementName = "eventType")] + public ushort EventType + { + get + { + return this._eventType; + } + + set + { + this._eventType = value; + } + } + + /// + /// Gets or sets the time + /// + [XmlElement(Type = typeof(uint), ElementName = "time")] + public uint Time + { + get + { + return this._time; + } + + set + { + this._time = value; + } + } + + /// + /// Gets or sets the numberOfRecords + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfRecords")] + public uint NumberOfRecords + { + get + { + return this._numberOfRecords; + } + + set + { + this._numberOfRecords = value; + } + } + + /// + /// Gets the record IDs + /// + [XmlElement(ElementName = "recordIDsList", Type = typeof(List))] + public List RecordIDs + { + get + { + return this._recordIDs; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._requestID); + dos.WriteUnsignedByte((byte)this._requiredReliabilityService); + dos.WriteUnsignedShort((ushort)this._pad1); + dos.WriteUnsignedByte((byte)this._pad2); + dos.WriteUnsignedShort((ushort)this._eventType); + dos.WriteUnsignedInt((uint)this._time); + dos.WriteUnsignedInt((uint)this._recordIDs.Count); + + for (int idx = 0; idx < this._recordIDs.Count; idx++) + { + FourByteChunk aFourByteChunk = (FourByteChunk)this._recordIDs[idx]; + aFourByteChunk.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._requestID = dis.ReadUnsignedInt(); + this._requiredReliabilityService = dis.ReadUnsignedByte(); + this._pad1 = dis.ReadUnsignedShort(); + this._pad2 = dis.ReadUnsignedByte(); + this._eventType = dis.ReadUnsignedShort(); + this._time = dis.ReadUnsignedInt(); + this._numberOfRecords = dis.ReadUnsignedInt(); + + for (int idx = 0; idx < this.NumberOfRecords; idx++) + { + FourByteChunk anX = new FourByteChunk(); + anX.Unmarshal(dis); + this._recordIDs.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._requiredReliabilityService.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._eventType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + sb.AppendLine("" + this._recordIDs.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._recordIDs.Count; idx++) + { + sb.AppendLine(""); + FourByteChunk aFourByteChunk = (FourByteChunk)this._recordIDs[idx]; + aFourByteChunk.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as RecordQueryReliablePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(RecordQueryReliablePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + if (this._requiredReliabilityService != obj._requiredReliabilityService) + { + ivarsEqual = false; + } + + if (this._pad1 != obj._pad1) + { + ivarsEqual = false; + } + + if (this._pad2 != obj._pad2) + { + ivarsEqual = false; + } + + if (this._eventType != obj._eventType) + { + ivarsEqual = false; + } + + if (this._time != obj._time) + { + ivarsEqual = false; + } + + if (this._numberOfRecords != obj._numberOfRecords) + { + ivarsEqual = false; + } + + if (this._recordIDs.Count != obj._recordIDs.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._recordIDs.Count; idx++) + { + if (!this._recordIDs[idx].Equals(obj._recordIDs[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + result = GenerateHash(result) ^ this._requiredReliabilityService.GetHashCode(); + result = GenerateHash(result) ^ this._pad1.GetHashCode(); + result = GenerateHash(result) ^ this._pad2.GetHashCode(); + result = GenerateHash(result) ^ this._eventType.GetHashCode(); + result = GenerateHash(result) ^ this._time.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfRecords.GetHashCode(); + + if (this._recordIDs.Count > 0) + { + for (int idx = 0; idx < this._recordIDs.Count; idx++) + { + result = GenerateHash(result) ^ this._recordIDs[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/RecordSet.cs b/Libs/CsharpDis6/Dis1998/Generated/RecordSet.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/RecordSet.cs rename to Libs/CsharpDis6/Dis1998/Generated/RecordSet.cs index b442d58..aef40f2 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/RecordSet.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/RecordSet.cs @@ -1,460 +1,460 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Record sets, used in transfer control request PDU - /// - [Serializable] - [XmlRoot] - public partial class RecordSet - { - /// - /// record ID - /// - private uint _recordID; - - /// - /// record set serial number - /// - private uint _recordSetSerialNumber; - - /// - /// record length - /// - private ushort _recordLength; - - /// - /// record count - /// - private ushort _recordCount; - - /// - /// ^^^This is wrong--variable sized data records - /// - private ushort _recordValues; - - /// - /// ^^^This is wrong--variable sized padding - /// - private byte _pad4; - - /// - /// Initializes a new instance of the class. - /// - public RecordSet() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(RecordSet left, RecordSet right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(RecordSet left, RecordSet right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._recordID - marshalSize += 4; // this._recordSetSerialNumber - marshalSize += 2; // this._recordLength - marshalSize += 2; // this._recordCount - marshalSize += 2; // this._recordValues - marshalSize += 1; // this._pad4 - return marshalSize; - } - - /// - /// Gets or sets the record ID - /// - [XmlElement(Type = typeof(uint), ElementName = "recordID")] - public uint RecordID - { - get - { - return this._recordID; - } - - set - { - this._recordID = value; - } - } - - /// - /// Gets or sets the record set serial number - /// - [XmlElement(Type = typeof(uint), ElementName = "recordSetSerialNumber")] - public uint RecordSetSerialNumber - { - get - { - return this._recordSetSerialNumber; - } - - set - { - this._recordSetSerialNumber = value; - } - } - - /// - /// Gets or sets the record length - /// - [XmlElement(Type = typeof(ushort), ElementName = "recordLength")] - public ushort RecordLength - { - get - { - return this._recordLength; - } - - set - { - this._recordLength = value; - } - } - - /// - /// Gets or sets the record count - /// - [XmlElement(Type = typeof(ushort), ElementName = "recordCount")] - public ushort RecordCount - { - get - { - return this._recordCount; - } - - set - { - this._recordCount = value; - } - } - - /// - /// Gets or sets the ^^^This is wrong--variable sized data records - /// - [XmlElement(Type = typeof(ushort), ElementName = "recordValues")] - public ushort RecordValues - { - get - { - return this._recordValues; - } - - set - { - this._recordValues = value; - } - } - - /// - /// Gets or sets the ^^^This is wrong--variable sized padding - /// - [XmlElement(Type = typeof(byte), ElementName = "pad4")] - public byte Pad4 - { - get - { - return this._pad4; - } - - set - { - this._pad4 = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._recordID); - dos.WriteUnsignedInt((uint)this._recordSetSerialNumber); - dos.WriteUnsignedShort((ushort)this._recordLength); - dos.WriteUnsignedShort((ushort)this._recordCount); - dos.WriteUnsignedShort((ushort)this._recordValues); - dos.WriteUnsignedByte((byte)this._pad4); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._recordID = dis.ReadUnsignedInt(); - this._recordSetSerialNumber = dis.ReadUnsignedInt(); - this._recordLength = dis.ReadUnsignedShort(); - this._recordCount = dis.ReadUnsignedShort(); - this._recordValues = dis.ReadUnsignedShort(); - this._pad4 = dis.ReadUnsignedByte(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._recordID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._recordSetSerialNumber.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._recordLength.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._recordCount.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._recordValues.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad4.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as RecordSet; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(RecordSet obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._recordID != obj._recordID) - { - ivarsEqual = false; - } - - if (this._recordSetSerialNumber != obj._recordSetSerialNumber) - { - ivarsEqual = false; - } - - if (this._recordLength != obj._recordLength) - { - ivarsEqual = false; - } - - if (this._recordCount != obj._recordCount) - { - ivarsEqual = false; - } - - if (this._recordValues != obj._recordValues) - { - ivarsEqual = false; - } - - if (this._pad4 != obj._pad4) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._recordID.GetHashCode(); - result = GenerateHash(result) ^ this._recordSetSerialNumber.GetHashCode(); - result = GenerateHash(result) ^ this._recordLength.GetHashCode(); - result = GenerateHash(result) ^ this._recordCount.GetHashCode(); - result = GenerateHash(result) ^ this._recordValues.GetHashCode(); - result = GenerateHash(result) ^ this._pad4.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Record sets, used in transfer control request PDU + /// + [Serializable] + [XmlRoot] + public partial class RecordSet + { + /// + /// record ID + /// + private uint _recordID; + + /// + /// record set serial number + /// + private uint _recordSetSerialNumber; + + /// + /// record length + /// + private ushort _recordLength; + + /// + /// record count + /// + private ushort _recordCount; + + /// + /// ^^^This is wrong--variable sized data records + /// + private ushort _recordValues; + + /// + /// ^^^This is wrong--variable sized padding + /// + private byte _pad4; + + /// + /// Initializes a new instance of the class. + /// + public RecordSet() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(RecordSet left, RecordSet right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(RecordSet left, RecordSet right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._recordID + marshalSize += 4; // this._recordSetSerialNumber + marshalSize += 2; // this._recordLength + marshalSize += 2; // this._recordCount + marshalSize += 2; // this._recordValues + marshalSize += 1; // this._pad4 + return marshalSize; + } + + /// + /// Gets or sets the record ID + /// + [XmlElement(Type = typeof(uint), ElementName = "recordID")] + public uint RecordID + { + get + { + return this._recordID; + } + + set + { + this._recordID = value; + } + } + + /// + /// Gets or sets the record set serial number + /// + [XmlElement(Type = typeof(uint), ElementName = "recordSetSerialNumber")] + public uint RecordSetSerialNumber + { + get + { + return this._recordSetSerialNumber; + } + + set + { + this._recordSetSerialNumber = value; + } + } + + /// + /// Gets or sets the record length + /// + [XmlElement(Type = typeof(ushort), ElementName = "recordLength")] + public ushort RecordLength + { + get + { + return this._recordLength; + } + + set + { + this._recordLength = value; + } + } + + /// + /// Gets or sets the record count + /// + [XmlElement(Type = typeof(ushort), ElementName = "recordCount")] + public ushort RecordCount + { + get + { + return this._recordCount; + } + + set + { + this._recordCount = value; + } + } + + /// + /// Gets or sets the ^^^This is wrong--variable sized data records + /// + [XmlElement(Type = typeof(ushort), ElementName = "recordValues")] + public ushort RecordValues + { + get + { + return this._recordValues; + } + + set + { + this._recordValues = value; + } + } + + /// + /// Gets or sets the ^^^This is wrong--variable sized padding + /// + [XmlElement(Type = typeof(byte), ElementName = "pad4")] + public byte Pad4 + { + get + { + return this._pad4; + } + + set + { + this._pad4 = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._recordID); + dos.WriteUnsignedInt((uint)this._recordSetSerialNumber); + dos.WriteUnsignedShort((ushort)this._recordLength); + dos.WriteUnsignedShort((ushort)this._recordCount); + dos.WriteUnsignedShort((ushort)this._recordValues); + dos.WriteUnsignedByte((byte)this._pad4); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._recordID = dis.ReadUnsignedInt(); + this._recordSetSerialNumber = dis.ReadUnsignedInt(); + this._recordLength = dis.ReadUnsignedShort(); + this._recordCount = dis.ReadUnsignedShort(); + this._recordValues = dis.ReadUnsignedShort(); + this._pad4 = dis.ReadUnsignedByte(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._recordID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._recordSetSerialNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._recordLength.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._recordCount.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._recordValues.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad4.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as RecordSet; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(RecordSet obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._recordID != obj._recordID) + { + ivarsEqual = false; + } + + if (this._recordSetSerialNumber != obj._recordSetSerialNumber) + { + ivarsEqual = false; + } + + if (this._recordLength != obj._recordLength) + { + ivarsEqual = false; + } + + if (this._recordCount != obj._recordCount) + { + ivarsEqual = false; + } + + if (this._recordValues != obj._recordValues) + { + ivarsEqual = false; + } + + if (this._pad4 != obj._pad4) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._recordID.GetHashCode(); + result = GenerateHash(result) ^ this._recordSetSerialNumber.GetHashCode(); + result = GenerateHash(result) ^ this._recordLength.GetHashCode(); + result = GenerateHash(result) ^ this._recordCount.GetHashCode(); + result = GenerateHash(result) ^ this._recordValues.GetHashCode(); + result = GenerateHash(result) ^ this._pad4.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/Relationship.cs b/Libs/CsharpDis6/Dis1998/Generated/Relationship.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/Relationship.cs rename to Libs/CsharpDis6/Dis1998/Generated/Relationship.cs index f63d885..66992e5 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/Relationship.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/Relationship.cs @@ -1,332 +1,332 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// 5.2.56. Purpose for joinging two entities - /// - [Serializable] - [XmlRoot] - public partial class Relationship - { - /// - /// Nature of join - /// - private ushort _nature; - - /// - /// position of join - /// - private ushort _position; - - /// - /// Initializes a new instance of the class. - /// - public Relationship() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(Relationship left, Relationship right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(Relationship left, Relationship right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 2; // this._nature - marshalSize += 2; // this._position - return marshalSize; - } - - /// - /// Gets or sets the Nature of join - /// - [XmlElement(Type = typeof(ushort), ElementName = "nature")] - public ushort Nature - { - get - { - return this._nature; - } - - set - { - this._nature = value; - } - } - - /// - /// Gets or sets the position of join - /// - [XmlElement(Type = typeof(ushort), ElementName = "position")] - public ushort Position - { - get - { - return this._position; - } - - set - { - this._position = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._nature); - dos.WriteUnsignedShort((ushort)this._position); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._nature = dis.ReadUnsignedShort(); - this._position = dis.ReadUnsignedShort(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._nature.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._position.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as Relationship; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(Relationship obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._nature != obj._nature) - { - ivarsEqual = false; - } - - if (this._position != obj._position) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._nature.GetHashCode(); - result = GenerateHash(result) ^ this._position.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// 5.2.56. Purpose for joinging two entities + /// + [Serializable] + [XmlRoot] + public partial class Relationship + { + /// + /// Nature of join + /// + private ushort _nature; + + /// + /// position of join + /// + private ushort _position; + + /// + /// Initializes a new instance of the class. + /// + public Relationship() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(Relationship left, Relationship right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(Relationship left, Relationship right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 2; // this._nature + marshalSize += 2; // this._position + return marshalSize; + } + + /// + /// Gets or sets the Nature of join + /// + [XmlElement(Type = typeof(ushort), ElementName = "nature")] + public ushort Nature + { + get + { + return this._nature; + } + + set + { + this._nature = value; + } + } + + /// + /// Gets or sets the position of join + /// + [XmlElement(Type = typeof(ushort), ElementName = "position")] + public ushort Position + { + get + { + return this._position; + } + + set + { + this._position = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._nature); + dos.WriteUnsignedShort((ushort)this._position); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._nature = dis.ReadUnsignedShort(); + this._position = dis.ReadUnsignedShort(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._nature.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._position.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as Relationship; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(Relationship obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._nature != obj._nature) + { + ivarsEqual = false; + } + + if (this._position != obj._position) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._nature.GetHashCode(); + result = GenerateHash(result) ^ this._position.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/RemoveEntityPdu.cs b/Libs/CsharpDis6/Dis1998/Generated/RemoveEntityPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/RemoveEntityPdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/RemoveEntityPdu.cs index 368d760..93e358a 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/RemoveEntityPdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/RemoveEntityPdu.cs @@ -1,304 +1,304 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.6.2. Remove an entity. COMPLETE - /// - [Serializable] - [XmlRoot] - public partial class RemoveEntityPdu : SimulationManagementFamilyPdu, IEquatable - { - /// - /// Identifier for the request - /// - private uint _requestID; - - /// - /// Initializes a new instance of the class. - /// - public RemoveEntityPdu() - { - PduType = (byte)12; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(RemoveEntityPdu left, RemoveEntityPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(RemoveEntityPdu left, RemoveEntityPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 4; // this._requestID - return marshalSize; - } - - /// - /// Gets or sets the Identifier for the request - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._requestID); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._requestID = dis.ReadUnsignedInt(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as RemoveEntityPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(RemoveEntityPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.6.2. Remove an entity. COMPLETE + /// + [Serializable] + [XmlRoot] + public partial class RemoveEntityPdu : SimulationManagementFamilyPdu, IEquatable + { + /// + /// Identifier for the request + /// + private uint _requestID; + + /// + /// Initializes a new instance of the class. + /// + public RemoveEntityPdu() + { + PduType = (byte)12; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(RemoveEntityPdu left, RemoveEntityPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(RemoveEntityPdu left, RemoveEntityPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 4; // this._requestID + return marshalSize; + } + + /// + /// Gets or sets the Identifier for the request + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._requestID); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._requestID = dis.ReadUnsignedInt(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as RemoveEntityPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(RemoveEntityPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/RemoveEntityReliablePdu.cs b/Libs/CsharpDis6/Dis1998/Generated/RemoveEntityReliablePdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/RemoveEntityReliablePdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/RemoveEntityReliablePdu.cs index 86f0c41..a8c9ad8 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/RemoveEntityReliablePdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/RemoveEntityReliablePdu.cs @@ -1,400 +1,400 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.12.2: Removal of an entity , reliable. COMPLETE - /// - [Serializable] - [XmlRoot] - public partial class RemoveEntityReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable - { - /// - /// level of reliability service used for this transaction - /// - private byte _requiredReliabilityService; - - /// - /// padding - /// - private ushort _pad1; - - /// - /// padding - /// - private byte _pad2; - - /// - /// Request ID - /// - private uint _requestID; - - /// - /// Initializes a new instance of the class. - /// - public RemoveEntityReliablePdu() - { - PduType = (byte)52; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(RemoveEntityReliablePdu left, RemoveEntityReliablePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(RemoveEntityReliablePdu left, RemoveEntityReliablePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 1; // this._requiredReliabilityService - marshalSize += 2; // this._pad1 - marshalSize += 1; // this._pad2 - marshalSize += 4; // this._requestID - return marshalSize; - } - - /// - /// Gets or sets the level of reliability service used for this transaction - /// - [XmlElement(Type = typeof(byte), ElementName = "requiredReliabilityService")] - public byte RequiredReliabilityService - { - get - { - return this._requiredReliabilityService; - } - - set - { - this._requiredReliabilityService = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(ushort), ElementName = "pad1")] - public ushort Pad1 - { - get - { - return this._pad1; - } - - set - { - this._pad1 = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "pad2")] - public byte Pad2 - { - get - { - return this._pad2; - } - - set - { - this._pad2 = value; - } - } - - /// - /// Gets or sets the Request ID - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._requiredReliabilityService); - dos.WriteUnsignedShort((ushort)this._pad1); - dos.WriteUnsignedByte((byte)this._pad2); - dos.WriteUnsignedInt((uint)this._requestID); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._requiredReliabilityService = dis.ReadUnsignedByte(); - this._pad1 = dis.ReadUnsignedShort(); - this._pad2 = dis.ReadUnsignedByte(); - this._requestID = dis.ReadUnsignedInt(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._requiredReliabilityService.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as RemoveEntityReliablePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(RemoveEntityReliablePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._requiredReliabilityService != obj._requiredReliabilityService) - { - ivarsEqual = false; - } - - if (this._pad1 != obj._pad1) - { - ivarsEqual = false; - } - - if (this._pad2 != obj._pad2) - { - ivarsEqual = false; - } - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._requiredReliabilityService.GetHashCode(); - result = GenerateHash(result) ^ this._pad1.GetHashCode(); - result = GenerateHash(result) ^ this._pad2.GetHashCode(); - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.12.2: Removal of an entity , reliable. COMPLETE + /// + [Serializable] + [XmlRoot] + public partial class RemoveEntityReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable + { + /// + /// level of reliability service used for this transaction + /// + private byte _requiredReliabilityService; + + /// + /// padding + /// + private ushort _pad1; + + /// + /// padding + /// + private byte _pad2; + + /// + /// Request ID + /// + private uint _requestID; + + /// + /// Initializes a new instance of the class. + /// + public RemoveEntityReliablePdu() + { + PduType = (byte)52; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(RemoveEntityReliablePdu left, RemoveEntityReliablePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(RemoveEntityReliablePdu left, RemoveEntityReliablePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 1; // this._requiredReliabilityService + marshalSize += 2; // this._pad1 + marshalSize += 1; // this._pad2 + marshalSize += 4; // this._requestID + return marshalSize; + } + + /// + /// Gets or sets the level of reliability service used for this transaction + /// + [XmlElement(Type = typeof(byte), ElementName = "requiredReliabilityService")] + public byte RequiredReliabilityService + { + get + { + return this._requiredReliabilityService; + } + + set + { + this._requiredReliabilityService = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(ushort), ElementName = "pad1")] + public ushort Pad1 + { + get + { + return this._pad1; + } + + set + { + this._pad1 = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "pad2")] + public byte Pad2 + { + get + { + return this._pad2; + } + + set + { + this._pad2 = value; + } + } + + /// + /// Gets or sets the Request ID + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._requiredReliabilityService); + dos.WriteUnsignedShort((ushort)this._pad1); + dos.WriteUnsignedByte((byte)this._pad2); + dos.WriteUnsignedInt((uint)this._requestID); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._requiredReliabilityService = dis.ReadUnsignedByte(); + this._pad1 = dis.ReadUnsignedShort(); + this._pad2 = dis.ReadUnsignedByte(); + this._requestID = dis.ReadUnsignedInt(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._requiredReliabilityService.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as RemoveEntityReliablePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(RemoveEntityReliablePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._requiredReliabilityService != obj._requiredReliabilityService) + { + ivarsEqual = false; + } + + if (this._pad1 != obj._pad1) + { + ivarsEqual = false; + } + + if (this._pad2 != obj._pad2) + { + ivarsEqual = false; + } + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._requiredReliabilityService.GetHashCode(); + result = GenerateHash(result) ^ this._pad1.GetHashCode(); + result = GenerateHash(result) ^ this._pad2.GetHashCode(); + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/RepairCompletePdu.cs b/Libs/CsharpDis6/Dis1998/Generated/RepairCompletePdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/RepairCompletePdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/RepairCompletePdu.cs index 1ab6c94..22599c9 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/RepairCompletePdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/RepairCompletePdu.cs @@ -1,405 +1,405 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.2.5.5. Repair is complete. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - public partial class RepairCompletePdu : LogisticsFamilyPdu, IEquatable - { - /// - /// Entity that is receiving service - /// - private EntityID _receivingEntityID = new EntityID(); - - /// - /// Entity that is supplying - /// - private EntityID _repairingEntityID = new EntityID(); - - /// - /// Enumeration for type of repair - /// - private ushort _repair; - - /// - /// padding, number prevents conflict with superclass ivar name - /// - private short _padding2; - - /// - /// Initializes a new instance of the class. - /// - public RepairCompletePdu() - { - PduType = (byte)9; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(RepairCompletePdu left, RepairCompletePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(RepairCompletePdu left, RepairCompletePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._receivingEntityID.GetMarshalledSize(); // this._receivingEntityID - marshalSize += this._repairingEntityID.GetMarshalledSize(); // this._repairingEntityID - marshalSize += 2; // this._repair - marshalSize += 2; // this._padding2 - return marshalSize; - } - - /// - /// Gets or sets the Entity that is receiving service - /// - [XmlElement(Type = typeof(EntityID), ElementName = "receivingEntityID")] - public EntityID ReceivingEntityID - { - get - { - return this._receivingEntityID; - } - - set - { - this._receivingEntityID = value; - } - } - - /// - /// Gets or sets the Entity that is supplying - /// - [XmlElement(Type = typeof(EntityID), ElementName = "repairingEntityID")] - public EntityID RepairingEntityID - { - get - { - return this._repairingEntityID; - } - - set - { - this._repairingEntityID = value; - } - } - - /// - /// Gets or sets the Enumeration for type of repair - /// - [XmlElement(Type = typeof(ushort), ElementName = "repair")] - public ushort Repair - { - get - { - return this._repair; - } - - set - { - this._repair = value; - } - } - - /// - /// Gets or sets the padding, number prevents conflict with superclass ivar name - /// - [XmlElement(Type = typeof(short), ElementName = "padding2")] - public short Padding2 - { - get - { - return this._padding2; - } - - set - { - this._padding2 = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._receivingEntityID.Marshal(dos); - this._repairingEntityID.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._repair); - dos.WriteShort((short)this._padding2); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._receivingEntityID.Unmarshal(dis); - this._repairingEntityID.Unmarshal(dis); - this._repair = dis.ReadUnsignedShort(); - this._padding2 = dis.ReadShort(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._receivingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._repairingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._repair.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as RepairCompletePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(RepairCompletePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._receivingEntityID.Equals(obj._receivingEntityID)) - { - ivarsEqual = false; - } - - if (!this._repairingEntityID.Equals(obj._repairingEntityID)) - { - ivarsEqual = false; - } - - if (this._repair != obj._repair) - { - ivarsEqual = false; - } - - if (this._padding2 != obj._padding2) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._receivingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._repairingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._repair.GetHashCode(); - result = GenerateHash(result) ^ this._padding2.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.2.5.5. Repair is complete. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + public partial class RepairCompletePdu : LogisticsFamilyPdu, IEquatable + { + /// + /// Entity that is receiving service + /// + private EntityID _receivingEntityID = new EntityID(); + + /// + /// Entity that is supplying + /// + private EntityID _repairingEntityID = new EntityID(); + + /// + /// Enumeration for type of repair + /// + private ushort _repair; + + /// + /// padding, number prevents conflict with superclass ivar name + /// + private short _padding2; + + /// + /// Initializes a new instance of the class. + /// + public RepairCompletePdu() + { + PduType = (byte)9; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(RepairCompletePdu left, RepairCompletePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(RepairCompletePdu left, RepairCompletePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._receivingEntityID.GetMarshalledSize(); // this._receivingEntityID + marshalSize += this._repairingEntityID.GetMarshalledSize(); // this._repairingEntityID + marshalSize += 2; // this._repair + marshalSize += 2; // this._padding2 + return marshalSize; + } + + /// + /// Gets or sets the Entity that is receiving service + /// + [XmlElement(Type = typeof(EntityID), ElementName = "receivingEntityID")] + public EntityID ReceivingEntityID + { + get + { + return this._receivingEntityID; + } + + set + { + this._receivingEntityID = value; + } + } + + /// + /// Gets or sets the Entity that is supplying + /// + [XmlElement(Type = typeof(EntityID), ElementName = "repairingEntityID")] + public EntityID RepairingEntityID + { + get + { + return this._repairingEntityID; + } + + set + { + this._repairingEntityID = value; + } + } + + /// + /// Gets or sets the Enumeration for type of repair + /// + [XmlElement(Type = typeof(ushort), ElementName = "repair")] + public ushort Repair + { + get + { + return this._repair; + } + + set + { + this._repair = value; + } + } + + /// + /// Gets or sets the padding, number prevents conflict with superclass ivar name + /// + [XmlElement(Type = typeof(short), ElementName = "padding2")] + public short Padding2 + { + get + { + return this._padding2; + } + + set + { + this._padding2 = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._receivingEntityID.Marshal(dos); + this._repairingEntityID.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._repair); + dos.WriteShort((short)this._padding2); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._receivingEntityID.Unmarshal(dis); + this._repairingEntityID.Unmarshal(dis); + this._repair = dis.ReadUnsignedShort(); + this._padding2 = dis.ReadShort(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._receivingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._repairingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._repair.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as RepairCompletePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(RepairCompletePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._receivingEntityID.Equals(obj._receivingEntityID)) + { + ivarsEqual = false; + } + + if (!this._repairingEntityID.Equals(obj._repairingEntityID)) + { + ivarsEqual = false; + } + + if (this._repair != obj._repair) + { + ivarsEqual = false; + } + + if (this._padding2 != obj._padding2) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._receivingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._repairingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._repair.GetHashCode(); + result = GenerateHash(result) ^ this._padding2.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/RepairResponsePdu.cs b/Libs/CsharpDis6/Dis1998/Generated/RepairResponsePdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/RepairResponsePdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/RepairResponsePdu.cs index 0cc787b..e29d382 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/RepairResponsePdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/RepairResponsePdu.cs @@ -1,437 +1,437 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.2.5.6. Sent after repair complete PDU. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - public partial class RepairResponsePdu : LogisticsFamilyPdu, IEquatable - { - /// - /// Entity that is receiving service - /// - private EntityID _receivingEntityID = new EntityID(); - - /// - /// Entity that is supplying - /// - private EntityID _repairingEntityID = new EntityID(); - - /// - /// Result of repair operation - /// - private byte _repairResult; - - /// - /// padding - /// - private short _padding1; - - /// - /// padding - /// - private byte _padding2; - - /// - /// Initializes a new instance of the class. - /// - public RepairResponsePdu() - { - PduType = (byte)10; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(RepairResponsePdu left, RepairResponsePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(RepairResponsePdu left, RepairResponsePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._receivingEntityID.GetMarshalledSize(); // this._receivingEntityID - marshalSize += this._repairingEntityID.GetMarshalledSize(); // this._repairingEntityID - marshalSize += 1; // this._repairResult - marshalSize += 2; // this._padding1 - marshalSize += 1; // this._padding2 - return marshalSize; - } - - /// - /// Gets or sets the Entity that is receiving service - /// - [XmlElement(Type = typeof(EntityID), ElementName = "receivingEntityID")] - public EntityID ReceivingEntityID - { - get - { - return this._receivingEntityID; - } - - set - { - this._receivingEntityID = value; - } - } - - /// - /// Gets or sets the Entity that is supplying - /// - [XmlElement(Type = typeof(EntityID), ElementName = "repairingEntityID")] - public EntityID RepairingEntityID - { - get - { - return this._repairingEntityID; - } - - set - { - this._repairingEntityID = value; - } - } - - /// - /// Gets or sets the Result of repair operation - /// - [XmlElement(Type = typeof(byte), ElementName = "repairResult")] - public byte RepairResult - { - get - { - return this._repairResult; - } - - set - { - this._repairResult = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(short), ElementName = "padding1")] - public short Padding1 - { - get - { - return this._padding1; - } - - set - { - this._padding1 = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "padding2")] - public byte Padding2 - { - get - { - return this._padding2; - } - - set - { - this._padding2 = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._receivingEntityID.Marshal(dos); - this._repairingEntityID.Marshal(dos); - dos.WriteUnsignedByte((byte)this._repairResult); - dos.WriteShort((short)this._padding1); - dos.WriteByte((byte)this._padding2); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._receivingEntityID.Unmarshal(dis); - this._repairingEntityID.Unmarshal(dis); - this._repairResult = dis.ReadUnsignedByte(); - this._padding1 = dis.ReadShort(); - this._padding2 = dis.ReadByte(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._receivingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._repairingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._repairResult.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as RepairResponsePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(RepairResponsePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._receivingEntityID.Equals(obj._receivingEntityID)) - { - ivarsEqual = false; - } - - if (!this._repairingEntityID.Equals(obj._repairingEntityID)) - { - ivarsEqual = false; - } - - if (this._repairResult != obj._repairResult) - { - ivarsEqual = false; - } - - if (this._padding1 != obj._padding1) - { - ivarsEqual = false; - } - - if (this._padding2 != obj._padding2) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._receivingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._repairingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._repairResult.GetHashCode(); - result = GenerateHash(result) ^ this._padding1.GetHashCode(); - result = GenerateHash(result) ^ this._padding2.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.2.5.6. Sent after repair complete PDU. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + public partial class RepairResponsePdu : LogisticsFamilyPdu, IEquatable + { + /// + /// Entity that is receiving service + /// + private EntityID _receivingEntityID = new EntityID(); + + /// + /// Entity that is supplying + /// + private EntityID _repairingEntityID = new EntityID(); + + /// + /// Result of repair operation + /// + private byte _repairResult; + + /// + /// padding + /// + private short _padding1; + + /// + /// padding + /// + private byte _padding2; + + /// + /// Initializes a new instance of the class. + /// + public RepairResponsePdu() + { + PduType = (byte)10; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(RepairResponsePdu left, RepairResponsePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(RepairResponsePdu left, RepairResponsePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._receivingEntityID.GetMarshalledSize(); // this._receivingEntityID + marshalSize += this._repairingEntityID.GetMarshalledSize(); // this._repairingEntityID + marshalSize += 1; // this._repairResult + marshalSize += 2; // this._padding1 + marshalSize += 1; // this._padding2 + return marshalSize; + } + + /// + /// Gets or sets the Entity that is receiving service + /// + [XmlElement(Type = typeof(EntityID), ElementName = "receivingEntityID")] + public EntityID ReceivingEntityID + { + get + { + return this._receivingEntityID; + } + + set + { + this._receivingEntityID = value; + } + } + + /// + /// Gets or sets the Entity that is supplying + /// + [XmlElement(Type = typeof(EntityID), ElementName = "repairingEntityID")] + public EntityID RepairingEntityID + { + get + { + return this._repairingEntityID; + } + + set + { + this._repairingEntityID = value; + } + } + + /// + /// Gets or sets the Result of repair operation + /// + [XmlElement(Type = typeof(byte), ElementName = "repairResult")] + public byte RepairResult + { + get + { + return this._repairResult; + } + + set + { + this._repairResult = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(short), ElementName = "padding1")] + public short Padding1 + { + get + { + return this._padding1; + } + + set + { + this._padding1 = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "padding2")] + public byte Padding2 + { + get + { + return this._padding2; + } + + set + { + this._padding2 = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._receivingEntityID.Marshal(dos); + this._repairingEntityID.Marshal(dos); + dos.WriteUnsignedByte((byte)this._repairResult); + dos.WriteShort((short)this._padding1); + dos.WriteByte((byte)this._padding2); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._receivingEntityID.Unmarshal(dis); + this._repairingEntityID.Unmarshal(dis); + this._repairResult = dis.ReadUnsignedByte(); + this._padding1 = dis.ReadShort(); + this._padding2 = dis.ReadByte(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._receivingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._repairingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._repairResult.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as RepairResponsePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(RepairResponsePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._receivingEntityID.Equals(obj._receivingEntityID)) + { + ivarsEqual = false; + } + + if (!this._repairingEntityID.Equals(obj._repairingEntityID)) + { + ivarsEqual = false; + } + + if (this._repairResult != obj._repairResult) + { + ivarsEqual = false; + } + + if (this._padding1 != obj._padding1) + { + ivarsEqual = false; + } + + if (this._padding2 != obj._padding2) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._receivingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._repairingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._repairResult.GetHashCode(); + result = GenerateHash(result) ^ this._padding1.GetHashCode(); + result = GenerateHash(result) ^ this._padding2.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ResupplyCancelPdu.cs b/Libs/CsharpDis6/Dis1998/Generated/ResupplyCancelPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/ResupplyCancelPdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/ResupplyCancelPdu.cs index 5af92c2..183f9fe 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ResupplyCancelPdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/ResupplyCancelPdu.cs @@ -1,341 +1,341 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.2.5.4. Cancel of resupply by either the receiving or supplying entity. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - public partial class ResupplyCancelPdu : LogisticsFamilyPdu, IEquatable - { - /// - /// Entity that is receiving service - /// - private EntityID _receivingEntityID = new EntityID(); - - /// - /// Entity that is supplying - /// - private EntityID _supplyingEntityID = new EntityID(); - - /// - /// Initializes a new instance of the class. - /// - public ResupplyCancelPdu() - { - PduType = (byte)8; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ResupplyCancelPdu left, ResupplyCancelPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ResupplyCancelPdu left, ResupplyCancelPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._receivingEntityID.GetMarshalledSize(); // this._receivingEntityID - marshalSize += this._supplyingEntityID.GetMarshalledSize(); // this._supplyingEntityID - return marshalSize; - } - - /// - /// Gets or sets the Entity that is receiving service - /// - [XmlElement(Type = typeof(EntityID), ElementName = "receivingEntityID")] - public EntityID ReceivingEntityID - { - get - { - return this._receivingEntityID; - } - - set - { - this._receivingEntityID = value; - } - } - - /// - /// Gets or sets the Entity that is supplying - /// - [XmlElement(Type = typeof(EntityID), ElementName = "supplyingEntityID")] - public EntityID SupplyingEntityID - { - get - { - return this._supplyingEntityID; - } - - set - { - this._supplyingEntityID = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._receivingEntityID.Marshal(dos); - this._supplyingEntityID.Marshal(dos); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._receivingEntityID.Unmarshal(dis); - this._supplyingEntityID.Unmarshal(dis); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._receivingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._supplyingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ResupplyCancelPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ResupplyCancelPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._receivingEntityID.Equals(obj._receivingEntityID)) - { - ivarsEqual = false; - } - - if (!this._supplyingEntityID.Equals(obj._supplyingEntityID)) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._receivingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._supplyingEntityID.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.2.5.4. Cancel of resupply by either the receiving or supplying entity. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + public partial class ResupplyCancelPdu : LogisticsFamilyPdu, IEquatable + { + /// + /// Entity that is receiving service + /// + private EntityID _receivingEntityID = new EntityID(); + + /// + /// Entity that is supplying + /// + private EntityID _supplyingEntityID = new EntityID(); + + /// + /// Initializes a new instance of the class. + /// + public ResupplyCancelPdu() + { + PduType = (byte)8; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ResupplyCancelPdu left, ResupplyCancelPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ResupplyCancelPdu left, ResupplyCancelPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._receivingEntityID.GetMarshalledSize(); // this._receivingEntityID + marshalSize += this._supplyingEntityID.GetMarshalledSize(); // this._supplyingEntityID + return marshalSize; + } + + /// + /// Gets or sets the Entity that is receiving service + /// + [XmlElement(Type = typeof(EntityID), ElementName = "receivingEntityID")] + public EntityID ReceivingEntityID + { + get + { + return this._receivingEntityID; + } + + set + { + this._receivingEntityID = value; + } + } + + /// + /// Gets or sets the Entity that is supplying + /// + [XmlElement(Type = typeof(EntityID), ElementName = "supplyingEntityID")] + public EntityID SupplyingEntityID + { + get + { + return this._supplyingEntityID; + } + + set + { + this._supplyingEntityID = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._receivingEntityID.Marshal(dos); + this._supplyingEntityID.Marshal(dos); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._receivingEntityID.Unmarshal(dis); + this._supplyingEntityID.Unmarshal(dis); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._receivingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._supplyingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ResupplyCancelPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ResupplyCancelPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._receivingEntityID.Equals(obj._receivingEntityID)) + { + ivarsEqual = false; + } + + if (!this._supplyingEntityID.Equals(obj._supplyingEntityID)) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._receivingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._supplyingEntityID.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ResupplyOfferPdu.cs b/Libs/CsharpDis6/Dis1998/Generated/ResupplyOfferPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/ResupplyOfferPdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/ResupplyOfferPdu.cs index aa0b041..58583b2 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ResupplyOfferPdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/ResupplyOfferPdu.cs @@ -1,508 +1,508 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.5.2. Information about a request for supplies. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(SupplyQuantity))] - public partial class ResupplyOfferPdu : LogisticsFamilyPdu, IEquatable - { - /// - /// Entity that is receiving service - /// - private EntityID _receivingEntityID = new EntityID(); - - /// - /// Entity that is supplying - /// - private EntityID _supplyingEntityID = new EntityID(); - - /// - /// how many supplies are being offered - /// - private byte _numberOfSupplyTypes; - - /// - /// padding - /// - private short _padding1; - - /// - /// padding - /// - private byte _padding2; - - private List _supplies = new List(); - - /// - /// Initializes a new instance of the class. - /// - public ResupplyOfferPdu() - { - PduType = (byte)6; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ResupplyOfferPdu left, ResupplyOfferPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ResupplyOfferPdu left, ResupplyOfferPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._receivingEntityID.GetMarshalledSize(); // this._receivingEntityID - marshalSize += this._supplyingEntityID.GetMarshalledSize(); // this._supplyingEntityID - marshalSize += 1; // this._numberOfSupplyTypes - marshalSize += 2; // this._padding1 - marshalSize += 1; // this._padding2 - for (int idx = 0; idx < this._supplies.Count; idx++) - { - SupplyQuantity listElement = (SupplyQuantity)this._supplies[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Entity that is receiving service - /// - [XmlElement(Type = typeof(EntityID), ElementName = "receivingEntityID")] - public EntityID ReceivingEntityID - { - get - { - return this._receivingEntityID; - } - - set - { - this._receivingEntityID = value; - } - } - - /// - /// Gets or sets the Entity that is supplying - /// - [XmlElement(Type = typeof(EntityID), ElementName = "supplyingEntityID")] - public EntityID SupplyingEntityID - { - get - { - return this._supplyingEntityID; - } - - set - { - this._supplyingEntityID = value; - } - } - - /// - /// Gets or sets the how many supplies are being offered - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfSupplyTypes method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfSupplyTypes")] - public byte NumberOfSupplyTypes - { - get - { - return this._numberOfSupplyTypes; - } - - set - { - this._numberOfSupplyTypes = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(short), ElementName = "padding1")] - public short Padding1 - { - get - { - return this._padding1; - } - - set - { - this._padding1 = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "padding2")] - public byte Padding2 - { - get - { - return this._padding2; - } - - set - { - this._padding2 = value; - } - } - - /// - /// Gets the supplies - /// - [XmlElement(ElementName = "suppliesList", Type = typeof(List))] - public List Supplies - { - get - { - return this._supplies; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._receivingEntityID.Marshal(dos); - this._supplyingEntityID.Marshal(dos); - dos.WriteUnsignedByte((byte)this._supplies.Count); - dos.WriteShort((short)this._padding1); - dos.WriteByte((byte)this._padding2); - - for (int idx = 0; idx < this._supplies.Count; idx++) - { - SupplyQuantity aSupplyQuantity = (SupplyQuantity)this._supplies[idx]; - aSupplyQuantity.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._receivingEntityID.Unmarshal(dis); - this._supplyingEntityID.Unmarshal(dis); - this._numberOfSupplyTypes = dis.ReadUnsignedByte(); - this._padding1 = dis.ReadShort(); - this._padding2 = dis.ReadByte(); - - for (int idx = 0; idx < this.NumberOfSupplyTypes; idx++) - { - SupplyQuantity anX = new SupplyQuantity(); - anX.Unmarshal(dis); - this._supplies.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._receivingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._supplyingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._supplies.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._supplies.Count; idx++) - { - sb.AppendLine(""); - SupplyQuantity aSupplyQuantity = (SupplyQuantity)this._supplies[idx]; - aSupplyQuantity.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ResupplyOfferPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ResupplyOfferPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._receivingEntityID.Equals(obj._receivingEntityID)) - { - ivarsEqual = false; - } - - if (!this._supplyingEntityID.Equals(obj._supplyingEntityID)) - { - ivarsEqual = false; - } - - if (this._numberOfSupplyTypes != obj._numberOfSupplyTypes) - { - ivarsEqual = false; - } - - if (this._padding1 != obj._padding1) - { - ivarsEqual = false; - } - - if (this._padding2 != obj._padding2) - { - ivarsEqual = false; - } - - if (this._supplies.Count != obj._supplies.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._supplies.Count; idx++) - { - if (!this._supplies[idx].Equals(obj._supplies[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._receivingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._supplyingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfSupplyTypes.GetHashCode(); - result = GenerateHash(result) ^ this._padding1.GetHashCode(); - result = GenerateHash(result) ^ this._padding2.GetHashCode(); - - if (this._supplies.Count > 0) - { - for (int idx = 0; idx < this._supplies.Count; idx++) - { - result = GenerateHash(result) ^ this._supplies[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.5.2. Information about a request for supplies. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(SupplyQuantity))] + public partial class ResupplyOfferPdu : LogisticsFamilyPdu, IEquatable + { + /// + /// Entity that is receiving service + /// + private EntityID _receivingEntityID = new EntityID(); + + /// + /// Entity that is supplying + /// + private EntityID _supplyingEntityID = new EntityID(); + + /// + /// how many supplies are being offered + /// + private byte _numberOfSupplyTypes; + + /// + /// padding + /// + private short _padding1; + + /// + /// padding + /// + private byte _padding2; + + private List _supplies = new List(); + + /// + /// Initializes a new instance of the class. + /// + public ResupplyOfferPdu() + { + PduType = (byte)6; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ResupplyOfferPdu left, ResupplyOfferPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ResupplyOfferPdu left, ResupplyOfferPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._receivingEntityID.GetMarshalledSize(); // this._receivingEntityID + marshalSize += this._supplyingEntityID.GetMarshalledSize(); // this._supplyingEntityID + marshalSize += 1; // this._numberOfSupplyTypes + marshalSize += 2; // this._padding1 + marshalSize += 1; // this._padding2 + for (int idx = 0; idx < this._supplies.Count; idx++) + { + SupplyQuantity listElement = (SupplyQuantity)this._supplies[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Entity that is receiving service + /// + [XmlElement(Type = typeof(EntityID), ElementName = "receivingEntityID")] + public EntityID ReceivingEntityID + { + get + { + return this._receivingEntityID; + } + + set + { + this._receivingEntityID = value; + } + } + + /// + /// Gets or sets the Entity that is supplying + /// + [XmlElement(Type = typeof(EntityID), ElementName = "supplyingEntityID")] + public EntityID SupplyingEntityID + { + get + { + return this._supplyingEntityID; + } + + set + { + this._supplyingEntityID = value; + } + } + + /// + /// Gets or sets the how many supplies are being offered + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfSupplyTypes method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfSupplyTypes")] + public byte NumberOfSupplyTypes + { + get + { + return this._numberOfSupplyTypes; + } + + set + { + this._numberOfSupplyTypes = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(short), ElementName = "padding1")] + public short Padding1 + { + get + { + return this._padding1; + } + + set + { + this._padding1 = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "padding2")] + public byte Padding2 + { + get + { + return this._padding2; + } + + set + { + this._padding2 = value; + } + } + + /// + /// Gets the supplies + /// + [XmlElement(ElementName = "suppliesList", Type = typeof(List))] + public List Supplies + { + get + { + return this._supplies; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._receivingEntityID.Marshal(dos); + this._supplyingEntityID.Marshal(dos); + dos.WriteUnsignedByte((byte)this._supplies.Count); + dos.WriteShort((short)this._padding1); + dos.WriteByte((byte)this._padding2); + + for (int idx = 0; idx < this._supplies.Count; idx++) + { + SupplyQuantity aSupplyQuantity = (SupplyQuantity)this._supplies[idx]; + aSupplyQuantity.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._receivingEntityID.Unmarshal(dis); + this._supplyingEntityID.Unmarshal(dis); + this._numberOfSupplyTypes = dis.ReadUnsignedByte(); + this._padding1 = dis.ReadShort(); + this._padding2 = dis.ReadByte(); + + for (int idx = 0; idx < this.NumberOfSupplyTypes; idx++) + { + SupplyQuantity anX = new SupplyQuantity(); + anX.Unmarshal(dis); + this._supplies.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._receivingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._supplyingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._supplies.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._supplies.Count; idx++) + { + sb.AppendLine(""); + SupplyQuantity aSupplyQuantity = (SupplyQuantity)this._supplies[idx]; + aSupplyQuantity.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ResupplyOfferPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ResupplyOfferPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._receivingEntityID.Equals(obj._receivingEntityID)) + { + ivarsEqual = false; + } + + if (!this._supplyingEntityID.Equals(obj._supplyingEntityID)) + { + ivarsEqual = false; + } + + if (this._numberOfSupplyTypes != obj._numberOfSupplyTypes) + { + ivarsEqual = false; + } + + if (this._padding1 != obj._padding1) + { + ivarsEqual = false; + } + + if (this._padding2 != obj._padding2) + { + ivarsEqual = false; + } + + if (this._supplies.Count != obj._supplies.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._supplies.Count; idx++) + { + if (!this._supplies[idx].Equals(obj._supplies[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._receivingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._supplyingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfSupplyTypes.GetHashCode(); + result = GenerateHash(result) ^ this._padding1.GetHashCode(); + result = GenerateHash(result) ^ this._padding2.GetHashCode(); + + if (this._supplies.Count > 0) + { + for (int idx = 0; idx < this._supplies.Count; idx++) + { + result = GenerateHash(result) ^ this._supplies[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ResupplyReceivedPdu.cs b/Libs/CsharpDis6/Dis1998/Generated/ResupplyReceivedPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/ResupplyReceivedPdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/ResupplyReceivedPdu.cs index 4db7170..00dff52 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ResupplyReceivedPdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/ResupplyReceivedPdu.cs @@ -1,508 +1,508 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.5.3. Receipt of supplies is communiated. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(SupplyQuantity))] - public partial class ResupplyReceivedPdu : LogisticsFamilyPdu, IEquatable - { - /// - /// Entity that is receiving service - /// - private EntityID _receivingEntityID = new EntityID(); - - /// - /// Entity that is supplying - /// - private EntityID _supplyingEntityID = new EntityID(); - - /// - /// how many supplies are being offered - /// - private byte _numberOfSupplyTypes; - - /// - /// padding - /// - private short _padding1; - - /// - /// padding - /// - private byte _padding2; - - private List _supplies = new List(); - - /// - /// Initializes a new instance of the class. - /// - public ResupplyReceivedPdu() - { - PduType = (byte)7; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ResupplyReceivedPdu left, ResupplyReceivedPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ResupplyReceivedPdu left, ResupplyReceivedPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._receivingEntityID.GetMarshalledSize(); // this._receivingEntityID - marshalSize += this._supplyingEntityID.GetMarshalledSize(); // this._supplyingEntityID - marshalSize += 1; // this._numberOfSupplyTypes - marshalSize += 2; // this._padding1 - marshalSize += 1; // this._padding2 - for (int idx = 0; idx < this._supplies.Count; idx++) - { - SupplyQuantity listElement = (SupplyQuantity)this._supplies[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Entity that is receiving service - /// - [XmlElement(Type = typeof(EntityID), ElementName = "receivingEntityID")] - public EntityID ReceivingEntityID - { - get - { - return this._receivingEntityID; - } - - set - { - this._receivingEntityID = value; - } - } - - /// - /// Gets or sets the Entity that is supplying - /// - [XmlElement(Type = typeof(EntityID), ElementName = "supplyingEntityID")] - public EntityID SupplyingEntityID - { - get - { - return this._supplyingEntityID; - } - - set - { - this._supplyingEntityID = value; - } - } - - /// - /// Gets or sets the how many supplies are being offered - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfSupplyTypes method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfSupplyTypes")] - public byte NumberOfSupplyTypes - { - get - { - return this._numberOfSupplyTypes; - } - - set - { - this._numberOfSupplyTypes = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(short), ElementName = "padding1")] - public short Padding1 - { - get - { - return this._padding1; - } - - set - { - this._padding1 = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "padding2")] - public byte Padding2 - { - get - { - return this._padding2; - } - - set - { - this._padding2 = value; - } - } - - /// - /// Gets the supplies - /// - [XmlElement(ElementName = "suppliesList", Type = typeof(List))] - public List Supplies - { - get - { - return this._supplies; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._receivingEntityID.Marshal(dos); - this._supplyingEntityID.Marshal(dos); - dos.WriteUnsignedByte((byte)this._supplies.Count); - dos.WriteShort((short)this._padding1); - dos.WriteByte((byte)this._padding2); - - for (int idx = 0; idx < this._supplies.Count; idx++) - { - SupplyQuantity aSupplyQuantity = (SupplyQuantity)this._supplies[idx]; - aSupplyQuantity.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._receivingEntityID.Unmarshal(dis); - this._supplyingEntityID.Unmarshal(dis); - this._numberOfSupplyTypes = dis.ReadUnsignedByte(); - this._padding1 = dis.ReadShort(); - this._padding2 = dis.ReadByte(); - - for (int idx = 0; idx < this.NumberOfSupplyTypes; idx++) - { - SupplyQuantity anX = new SupplyQuantity(); - anX.Unmarshal(dis); - this._supplies.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._receivingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._supplyingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._supplies.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._supplies.Count; idx++) - { - sb.AppendLine(""); - SupplyQuantity aSupplyQuantity = (SupplyQuantity)this._supplies[idx]; - aSupplyQuantity.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ResupplyReceivedPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ResupplyReceivedPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._receivingEntityID.Equals(obj._receivingEntityID)) - { - ivarsEqual = false; - } - - if (!this._supplyingEntityID.Equals(obj._supplyingEntityID)) - { - ivarsEqual = false; - } - - if (this._numberOfSupplyTypes != obj._numberOfSupplyTypes) - { - ivarsEqual = false; - } - - if (this._padding1 != obj._padding1) - { - ivarsEqual = false; - } - - if (this._padding2 != obj._padding2) - { - ivarsEqual = false; - } - - if (this._supplies.Count != obj._supplies.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._supplies.Count; idx++) - { - if (!this._supplies[idx].Equals(obj._supplies[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._receivingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._supplyingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfSupplyTypes.GetHashCode(); - result = GenerateHash(result) ^ this._padding1.GetHashCode(); - result = GenerateHash(result) ^ this._padding2.GetHashCode(); - - if (this._supplies.Count > 0) - { - for (int idx = 0; idx < this._supplies.Count; idx++) - { - result = GenerateHash(result) ^ this._supplies[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.5.3. Receipt of supplies is communiated. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(SupplyQuantity))] + public partial class ResupplyReceivedPdu : LogisticsFamilyPdu, IEquatable + { + /// + /// Entity that is receiving service + /// + private EntityID _receivingEntityID = new EntityID(); + + /// + /// Entity that is supplying + /// + private EntityID _supplyingEntityID = new EntityID(); + + /// + /// how many supplies are being offered + /// + private byte _numberOfSupplyTypes; + + /// + /// padding + /// + private short _padding1; + + /// + /// padding + /// + private byte _padding2; + + private List _supplies = new List(); + + /// + /// Initializes a new instance of the class. + /// + public ResupplyReceivedPdu() + { + PduType = (byte)7; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ResupplyReceivedPdu left, ResupplyReceivedPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ResupplyReceivedPdu left, ResupplyReceivedPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._receivingEntityID.GetMarshalledSize(); // this._receivingEntityID + marshalSize += this._supplyingEntityID.GetMarshalledSize(); // this._supplyingEntityID + marshalSize += 1; // this._numberOfSupplyTypes + marshalSize += 2; // this._padding1 + marshalSize += 1; // this._padding2 + for (int idx = 0; idx < this._supplies.Count; idx++) + { + SupplyQuantity listElement = (SupplyQuantity)this._supplies[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Entity that is receiving service + /// + [XmlElement(Type = typeof(EntityID), ElementName = "receivingEntityID")] + public EntityID ReceivingEntityID + { + get + { + return this._receivingEntityID; + } + + set + { + this._receivingEntityID = value; + } + } + + /// + /// Gets or sets the Entity that is supplying + /// + [XmlElement(Type = typeof(EntityID), ElementName = "supplyingEntityID")] + public EntityID SupplyingEntityID + { + get + { + return this._supplyingEntityID; + } + + set + { + this._supplyingEntityID = value; + } + } + + /// + /// Gets or sets the how many supplies are being offered + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfSupplyTypes method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfSupplyTypes")] + public byte NumberOfSupplyTypes + { + get + { + return this._numberOfSupplyTypes; + } + + set + { + this._numberOfSupplyTypes = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(short), ElementName = "padding1")] + public short Padding1 + { + get + { + return this._padding1; + } + + set + { + this._padding1 = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "padding2")] + public byte Padding2 + { + get + { + return this._padding2; + } + + set + { + this._padding2 = value; + } + } + + /// + /// Gets the supplies + /// + [XmlElement(ElementName = "suppliesList", Type = typeof(List))] + public List Supplies + { + get + { + return this._supplies; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._receivingEntityID.Marshal(dos); + this._supplyingEntityID.Marshal(dos); + dos.WriteUnsignedByte((byte)this._supplies.Count); + dos.WriteShort((short)this._padding1); + dos.WriteByte((byte)this._padding2); + + for (int idx = 0; idx < this._supplies.Count; idx++) + { + SupplyQuantity aSupplyQuantity = (SupplyQuantity)this._supplies[idx]; + aSupplyQuantity.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._receivingEntityID.Unmarshal(dis); + this._supplyingEntityID.Unmarshal(dis); + this._numberOfSupplyTypes = dis.ReadUnsignedByte(); + this._padding1 = dis.ReadShort(); + this._padding2 = dis.ReadByte(); + + for (int idx = 0; idx < this.NumberOfSupplyTypes; idx++) + { + SupplyQuantity anX = new SupplyQuantity(); + anX.Unmarshal(dis); + this._supplies.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._receivingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._supplyingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._supplies.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._supplies.Count; idx++) + { + sb.AppendLine(""); + SupplyQuantity aSupplyQuantity = (SupplyQuantity)this._supplies[idx]; + aSupplyQuantity.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ResupplyReceivedPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ResupplyReceivedPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._receivingEntityID.Equals(obj._receivingEntityID)) + { + ivarsEqual = false; + } + + if (!this._supplyingEntityID.Equals(obj._supplyingEntityID)) + { + ivarsEqual = false; + } + + if (this._numberOfSupplyTypes != obj._numberOfSupplyTypes) + { + ivarsEqual = false; + } + + if (this._padding1 != obj._padding1) + { + ivarsEqual = false; + } + + if (this._padding2 != obj._padding2) + { + ivarsEqual = false; + } + + if (this._supplies.Count != obj._supplies.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._supplies.Count; idx++) + { + if (!this._supplies[idx].Equals(obj._supplies[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._receivingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._supplyingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfSupplyTypes.GetHashCode(); + result = GenerateHash(result) ^ this._padding1.GetHashCode(); + result = GenerateHash(result) ^ this._padding2.GetHashCode(); + + if (this._supplies.Count > 0) + { + for (int idx = 0; idx < this._supplies.Count; idx++) + { + result = GenerateHash(result) ^ this._supplies[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/SeesPdu.cs b/Libs/CsharpDis6/Dis1998/Generated/SeesPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/SeesPdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/SeesPdu.cs index 945af30..ec9fda9 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/SeesPdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/SeesPdu.cs @@ -1,615 +1,615 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.7.5. SEES PDU, supplemental emissions entity state information. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(PropulsionSystemData))] - [XmlInclude(typeof(VectoringNozzleSystemData))] - public partial class SeesPdu : DistributedEmissionsFamilyPdu, IEquatable - { - /// - /// Originating entity ID - /// - private EntityID _orginatingEntityID = new EntityID(); - - /// - /// IR Signature representation index - /// - private ushort _infraredSignatureRepresentationIndex; - - /// - /// acoustic Signature representation index - /// - private ushort _acousticSignatureRepresentationIndex; - - /// - /// radar cross section representation index - /// - private ushort _radarCrossSectionSignatureRepresentationIndex; - - /// - /// how many propulsion systems - /// - private ushort _numberOfPropulsionSystems; - - /// - /// how many vectoring nozzle systems - /// - private ushort _numberOfVectoringNozzleSystems; - - /// - /// variable length list of propulsion system data - /// - private List _propulsionSystemData = new List(); - - /// - /// variable length list of vectoring system data - /// - private List _vectoringSystemData = new List(); - - /// - /// Initializes a new instance of the class. - /// - public SeesPdu() - { - PduType = (byte)30; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(SeesPdu left, SeesPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(SeesPdu left, SeesPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._orginatingEntityID.GetMarshalledSize(); // this._orginatingEntityID - marshalSize += 2; // this._infraredSignatureRepresentationIndex - marshalSize += 2; // this._acousticSignatureRepresentationIndex - marshalSize += 2; // this._radarCrossSectionSignatureRepresentationIndex - marshalSize += 2; // this._numberOfPropulsionSystems - marshalSize += 2; // this._numberOfVectoringNozzleSystems - for (int idx = 0; idx < this._propulsionSystemData.Count; idx++) - { - PropulsionSystemData listElement = (PropulsionSystemData)this._propulsionSystemData[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._vectoringSystemData.Count; idx++) - { - VectoringNozzleSystemData listElement = (VectoringNozzleSystemData)this._vectoringSystemData[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Originating entity ID - /// - [XmlElement(Type = typeof(EntityID), ElementName = "orginatingEntityID")] - public EntityID OrginatingEntityID - { - get - { - return this._orginatingEntityID; - } - - set - { - this._orginatingEntityID = value; - } - } - - /// - /// Gets or sets the IR Signature representation index - /// - [XmlElement(Type = typeof(ushort), ElementName = "infraredSignatureRepresentationIndex")] - public ushort InfraredSignatureRepresentationIndex - { - get - { - return this._infraredSignatureRepresentationIndex; - } - - set - { - this._infraredSignatureRepresentationIndex = value; - } - } - - /// - /// Gets or sets the acoustic Signature representation index - /// - [XmlElement(Type = typeof(ushort), ElementName = "acousticSignatureRepresentationIndex")] - public ushort AcousticSignatureRepresentationIndex - { - get - { - return this._acousticSignatureRepresentationIndex; - } - - set - { - this._acousticSignatureRepresentationIndex = value; - } - } - - /// - /// Gets or sets the radar cross section representation index - /// - [XmlElement(Type = typeof(ushort), ElementName = "radarCrossSectionSignatureRepresentationIndex")] - public ushort RadarCrossSectionSignatureRepresentationIndex - { - get - { - return this._radarCrossSectionSignatureRepresentationIndex; - } - - set - { - this._radarCrossSectionSignatureRepresentationIndex = value; - } - } - - /// - /// Gets or sets the how many propulsion systems - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfPropulsionSystems method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(ushort), ElementName = "numberOfPropulsionSystems")] - public ushort NumberOfPropulsionSystems - { - get - { - return this._numberOfPropulsionSystems; - } - - set - { - this._numberOfPropulsionSystems = value; - } - } - - /// - /// Gets or sets the how many vectoring nozzle systems - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfVectoringNozzleSystems method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(ushort), ElementName = "numberOfVectoringNozzleSystems")] - public ushort NumberOfVectoringNozzleSystems - { - get - { - return this._numberOfVectoringNozzleSystems; - } - - set - { - this._numberOfVectoringNozzleSystems = value; - } - } - - /// - /// Gets the variable length list of propulsion system data - /// - [XmlElement(ElementName = "propulsionSystemDataList", Type = typeof(List))] - public List PropulsionSystemData - { - get - { - return this._propulsionSystemData; - } - } - - /// - /// Gets the variable length list of vectoring system data - /// - [XmlElement(ElementName = "vectoringSystemDataList", Type = typeof(List))] - public List VectoringSystemData - { - get - { - return this._vectoringSystemData; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._orginatingEntityID.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._infraredSignatureRepresentationIndex); - dos.WriteUnsignedShort((ushort)this._acousticSignatureRepresentationIndex); - dos.WriteUnsignedShort((ushort)this._radarCrossSectionSignatureRepresentationIndex); - dos.WriteUnsignedShort((ushort)this._propulsionSystemData.Count); - dos.WriteUnsignedShort((ushort)this._vectoringSystemData.Count); - - for (int idx = 0; idx < this._propulsionSystemData.Count; idx++) - { - PropulsionSystemData aPropulsionSystemData = (PropulsionSystemData)this._propulsionSystemData[idx]; - aPropulsionSystemData.Marshal(dos); - } - - for (int idx = 0; idx < this._vectoringSystemData.Count; idx++) - { - VectoringNozzleSystemData aVectoringNozzleSystemData = (VectoringNozzleSystemData)this._vectoringSystemData[idx]; - aVectoringNozzleSystemData.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._orginatingEntityID.Unmarshal(dis); - this._infraredSignatureRepresentationIndex = dis.ReadUnsignedShort(); - this._acousticSignatureRepresentationIndex = dis.ReadUnsignedShort(); - this._radarCrossSectionSignatureRepresentationIndex = dis.ReadUnsignedShort(); - this._numberOfPropulsionSystems = dis.ReadUnsignedShort(); - this._numberOfVectoringNozzleSystems = dis.ReadUnsignedShort(); - - for (int idx = 0; idx < this.NumberOfPropulsionSystems; idx++) - { - PropulsionSystemData anX = new PropulsionSystemData(); - anX.Unmarshal(dis); - this._propulsionSystemData.Add(anX); - } - - for (int idx = 0; idx < this.NumberOfVectoringNozzleSystems; idx++) - { - VectoringNozzleSystemData anX = new VectoringNozzleSystemData(); - anX.Unmarshal(dis); - this._vectoringSystemData.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._orginatingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._infraredSignatureRepresentationIndex.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._acousticSignatureRepresentationIndex.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._radarCrossSectionSignatureRepresentationIndex.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._propulsionSystemData.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._vectoringSystemData.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._propulsionSystemData.Count; idx++) - { - sb.AppendLine(""); - PropulsionSystemData aPropulsionSystemData = (PropulsionSystemData)this._propulsionSystemData[idx]; - aPropulsionSystemData.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._vectoringSystemData.Count; idx++) - { - sb.AppendLine(""); - VectoringNozzleSystemData aVectoringNozzleSystemData = (VectoringNozzleSystemData)this._vectoringSystemData[idx]; - aVectoringNozzleSystemData.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as SeesPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(SeesPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._orginatingEntityID.Equals(obj._orginatingEntityID)) - { - ivarsEqual = false; - } - - if (this._infraredSignatureRepresentationIndex != obj._infraredSignatureRepresentationIndex) - { - ivarsEqual = false; - } - - if (this._acousticSignatureRepresentationIndex != obj._acousticSignatureRepresentationIndex) - { - ivarsEqual = false; - } - - if (this._radarCrossSectionSignatureRepresentationIndex != obj._radarCrossSectionSignatureRepresentationIndex) - { - ivarsEqual = false; - } - - if (this._numberOfPropulsionSystems != obj._numberOfPropulsionSystems) - { - ivarsEqual = false; - } - - if (this._numberOfVectoringNozzleSystems != obj._numberOfVectoringNozzleSystems) - { - ivarsEqual = false; - } - - if (this._propulsionSystemData.Count != obj._propulsionSystemData.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._propulsionSystemData.Count; idx++) - { - if (!this._propulsionSystemData[idx].Equals(obj._propulsionSystemData[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._vectoringSystemData.Count != obj._vectoringSystemData.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._vectoringSystemData.Count; idx++) - { - if (!this._vectoringSystemData[idx].Equals(obj._vectoringSystemData[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._orginatingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._infraredSignatureRepresentationIndex.GetHashCode(); - result = GenerateHash(result) ^ this._acousticSignatureRepresentationIndex.GetHashCode(); - result = GenerateHash(result) ^ this._radarCrossSectionSignatureRepresentationIndex.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfPropulsionSystems.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfVectoringNozzleSystems.GetHashCode(); - - if (this._propulsionSystemData.Count > 0) - { - for (int idx = 0; idx < this._propulsionSystemData.Count; idx++) - { - result = GenerateHash(result) ^ this._propulsionSystemData[idx].GetHashCode(); - } - } - - if (this._vectoringSystemData.Count > 0) - { - for (int idx = 0; idx < this._vectoringSystemData.Count; idx++) - { - result = GenerateHash(result) ^ this._vectoringSystemData[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.7.5. SEES PDU, supplemental emissions entity state information. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(PropulsionSystemData))] + [XmlInclude(typeof(VectoringNozzleSystemData))] + public partial class SeesPdu : DistributedEmissionsFamilyPdu, IEquatable + { + /// + /// Originating entity ID + /// + private EntityID _orginatingEntityID = new EntityID(); + + /// + /// IR Signature representation index + /// + private ushort _infraredSignatureRepresentationIndex; + + /// + /// acoustic Signature representation index + /// + private ushort _acousticSignatureRepresentationIndex; + + /// + /// radar cross section representation index + /// + private ushort _radarCrossSectionSignatureRepresentationIndex; + + /// + /// how many propulsion systems + /// + private ushort _numberOfPropulsionSystems; + + /// + /// how many vectoring nozzle systems + /// + private ushort _numberOfVectoringNozzleSystems; + + /// + /// variable length list of propulsion system data + /// + private List _propulsionSystemData = new List(); + + /// + /// variable length list of vectoring system data + /// + private List _vectoringSystemData = new List(); + + /// + /// Initializes a new instance of the class. + /// + public SeesPdu() + { + PduType = (byte)30; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(SeesPdu left, SeesPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(SeesPdu left, SeesPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._orginatingEntityID.GetMarshalledSize(); // this._orginatingEntityID + marshalSize += 2; // this._infraredSignatureRepresentationIndex + marshalSize += 2; // this._acousticSignatureRepresentationIndex + marshalSize += 2; // this._radarCrossSectionSignatureRepresentationIndex + marshalSize += 2; // this._numberOfPropulsionSystems + marshalSize += 2; // this._numberOfVectoringNozzleSystems + for (int idx = 0; idx < this._propulsionSystemData.Count; idx++) + { + PropulsionSystemData listElement = (PropulsionSystemData)this._propulsionSystemData[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._vectoringSystemData.Count; idx++) + { + VectoringNozzleSystemData listElement = (VectoringNozzleSystemData)this._vectoringSystemData[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Originating entity ID + /// + [XmlElement(Type = typeof(EntityID), ElementName = "orginatingEntityID")] + public EntityID OrginatingEntityID + { + get + { + return this._orginatingEntityID; + } + + set + { + this._orginatingEntityID = value; + } + } + + /// + /// Gets or sets the IR Signature representation index + /// + [XmlElement(Type = typeof(ushort), ElementName = "infraredSignatureRepresentationIndex")] + public ushort InfraredSignatureRepresentationIndex + { + get + { + return this._infraredSignatureRepresentationIndex; + } + + set + { + this._infraredSignatureRepresentationIndex = value; + } + } + + /// + /// Gets or sets the acoustic Signature representation index + /// + [XmlElement(Type = typeof(ushort), ElementName = "acousticSignatureRepresentationIndex")] + public ushort AcousticSignatureRepresentationIndex + { + get + { + return this._acousticSignatureRepresentationIndex; + } + + set + { + this._acousticSignatureRepresentationIndex = value; + } + } + + /// + /// Gets or sets the radar cross section representation index + /// + [XmlElement(Type = typeof(ushort), ElementName = "radarCrossSectionSignatureRepresentationIndex")] + public ushort RadarCrossSectionSignatureRepresentationIndex + { + get + { + return this._radarCrossSectionSignatureRepresentationIndex; + } + + set + { + this._radarCrossSectionSignatureRepresentationIndex = value; + } + } + + /// + /// Gets or sets the how many propulsion systems + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfPropulsionSystems method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(ushort), ElementName = "numberOfPropulsionSystems")] + public ushort NumberOfPropulsionSystems + { + get + { + return this._numberOfPropulsionSystems; + } + + set + { + this._numberOfPropulsionSystems = value; + } + } + + /// + /// Gets or sets the how many vectoring nozzle systems + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfVectoringNozzleSystems method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(ushort), ElementName = "numberOfVectoringNozzleSystems")] + public ushort NumberOfVectoringNozzleSystems + { + get + { + return this._numberOfVectoringNozzleSystems; + } + + set + { + this._numberOfVectoringNozzleSystems = value; + } + } + + /// + /// Gets the variable length list of propulsion system data + /// + [XmlElement(ElementName = "propulsionSystemDataList", Type = typeof(List))] + public List PropulsionSystemData + { + get + { + return this._propulsionSystemData; + } + } + + /// + /// Gets the variable length list of vectoring system data + /// + [XmlElement(ElementName = "vectoringSystemDataList", Type = typeof(List))] + public List VectoringSystemData + { + get + { + return this._vectoringSystemData; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._orginatingEntityID.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._infraredSignatureRepresentationIndex); + dos.WriteUnsignedShort((ushort)this._acousticSignatureRepresentationIndex); + dos.WriteUnsignedShort((ushort)this._radarCrossSectionSignatureRepresentationIndex); + dos.WriteUnsignedShort((ushort)this._propulsionSystemData.Count); + dos.WriteUnsignedShort((ushort)this._vectoringSystemData.Count); + + for (int idx = 0; idx < this._propulsionSystemData.Count; idx++) + { + PropulsionSystemData aPropulsionSystemData = (PropulsionSystemData)this._propulsionSystemData[idx]; + aPropulsionSystemData.Marshal(dos); + } + + for (int idx = 0; idx < this._vectoringSystemData.Count; idx++) + { + VectoringNozzleSystemData aVectoringNozzleSystemData = (VectoringNozzleSystemData)this._vectoringSystemData[idx]; + aVectoringNozzleSystemData.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._orginatingEntityID.Unmarshal(dis); + this._infraredSignatureRepresentationIndex = dis.ReadUnsignedShort(); + this._acousticSignatureRepresentationIndex = dis.ReadUnsignedShort(); + this._radarCrossSectionSignatureRepresentationIndex = dis.ReadUnsignedShort(); + this._numberOfPropulsionSystems = dis.ReadUnsignedShort(); + this._numberOfVectoringNozzleSystems = dis.ReadUnsignedShort(); + + for (int idx = 0; idx < this.NumberOfPropulsionSystems; idx++) + { + PropulsionSystemData anX = new PropulsionSystemData(); + anX.Unmarshal(dis); + this._propulsionSystemData.Add(anX); + } + + for (int idx = 0; idx < this.NumberOfVectoringNozzleSystems; idx++) + { + VectoringNozzleSystemData anX = new VectoringNozzleSystemData(); + anX.Unmarshal(dis); + this._vectoringSystemData.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._orginatingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._infraredSignatureRepresentationIndex.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._acousticSignatureRepresentationIndex.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._radarCrossSectionSignatureRepresentationIndex.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._propulsionSystemData.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._vectoringSystemData.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._propulsionSystemData.Count; idx++) + { + sb.AppendLine(""); + PropulsionSystemData aPropulsionSystemData = (PropulsionSystemData)this._propulsionSystemData[idx]; + aPropulsionSystemData.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._vectoringSystemData.Count; idx++) + { + sb.AppendLine(""); + VectoringNozzleSystemData aVectoringNozzleSystemData = (VectoringNozzleSystemData)this._vectoringSystemData[idx]; + aVectoringNozzleSystemData.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as SeesPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(SeesPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._orginatingEntityID.Equals(obj._orginatingEntityID)) + { + ivarsEqual = false; + } + + if (this._infraredSignatureRepresentationIndex != obj._infraredSignatureRepresentationIndex) + { + ivarsEqual = false; + } + + if (this._acousticSignatureRepresentationIndex != obj._acousticSignatureRepresentationIndex) + { + ivarsEqual = false; + } + + if (this._radarCrossSectionSignatureRepresentationIndex != obj._radarCrossSectionSignatureRepresentationIndex) + { + ivarsEqual = false; + } + + if (this._numberOfPropulsionSystems != obj._numberOfPropulsionSystems) + { + ivarsEqual = false; + } + + if (this._numberOfVectoringNozzleSystems != obj._numberOfVectoringNozzleSystems) + { + ivarsEqual = false; + } + + if (this._propulsionSystemData.Count != obj._propulsionSystemData.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._propulsionSystemData.Count; idx++) + { + if (!this._propulsionSystemData[idx].Equals(obj._propulsionSystemData[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._vectoringSystemData.Count != obj._vectoringSystemData.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._vectoringSystemData.Count; idx++) + { + if (!this._vectoringSystemData[idx].Equals(obj._vectoringSystemData[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._orginatingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._infraredSignatureRepresentationIndex.GetHashCode(); + result = GenerateHash(result) ^ this._acousticSignatureRepresentationIndex.GetHashCode(); + result = GenerateHash(result) ^ this._radarCrossSectionSignatureRepresentationIndex.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfPropulsionSystems.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfVectoringNozzleSystems.GetHashCode(); + + if (this._propulsionSystemData.Count > 0) + { + for (int idx = 0; idx < this._propulsionSystemData.Count; idx++) + { + result = GenerateHash(result) ^ this._propulsionSystemData[idx].GetHashCode(); + } + } + + if (this._vectoringSystemData.Count > 0) + { + for (int idx = 0; idx < this._vectoringSystemData.Count; idx++) + { + result = GenerateHash(result) ^ this._vectoringSystemData[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ServiceRequestPdu.cs b/Libs/CsharpDis6/Dis1998/Generated/ServiceRequestPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/ServiceRequestPdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/ServiceRequestPdu.cs index fa7e980..eda2e30 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ServiceRequestPdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/ServiceRequestPdu.cs @@ -1,508 +1,508 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.5.1. Information about a request for supplies. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(SupplyQuantity))] - public partial class ServiceRequestPdu : LogisticsFamilyPdu, IEquatable - { - /// - /// Entity that is requesting service - /// - private EntityID _requestingEntityID = new EntityID(); - - /// - /// Entity that is providing the service - /// - private EntityID _servicingEntityID = new EntityID(); - - /// - /// type of service requested - /// - private byte _serviceTypeRequested; - - /// - /// How many requested - /// - private byte _numberOfSupplyTypes; - - /// - /// padding - /// - private short _serviceRequestPadding; - - private List _supplies = new List(); - - /// - /// Initializes a new instance of the class. - /// - public ServiceRequestPdu() - { - PduType = (byte)5; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ServiceRequestPdu left, ServiceRequestPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ServiceRequestPdu left, ServiceRequestPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._requestingEntityID.GetMarshalledSize(); // this._requestingEntityID - marshalSize += this._servicingEntityID.GetMarshalledSize(); // this._servicingEntityID - marshalSize += 1; // this._serviceTypeRequested - marshalSize += 1; // this._numberOfSupplyTypes - marshalSize += 2; // this._serviceRequestPadding - for (int idx = 0; idx < this._supplies.Count; idx++) - { - SupplyQuantity listElement = (SupplyQuantity)this._supplies[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the Entity that is requesting service - /// - [XmlElement(Type = typeof(EntityID), ElementName = "requestingEntityID")] - public EntityID RequestingEntityID - { - get - { - return this._requestingEntityID; - } - - set - { - this._requestingEntityID = value; - } - } - - /// - /// Gets or sets the Entity that is providing the service - /// - [XmlElement(Type = typeof(EntityID), ElementName = "servicingEntityID")] - public EntityID ServicingEntityID - { - get - { - return this._servicingEntityID; - } - - set - { - this._servicingEntityID = value; - } - } - - /// - /// Gets or sets the type of service requested - /// - [XmlElement(Type = typeof(byte), ElementName = "serviceTypeRequested")] - public byte ServiceTypeRequested - { - get - { - return this._serviceTypeRequested; - } - - set - { - this._serviceTypeRequested = value; - } - } - - /// - /// Gets or sets the How many requested - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfSupplyTypes method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfSupplyTypes")] - public byte NumberOfSupplyTypes - { - get - { - return this._numberOfSupplyTypes; - } - - set - { - this._numberOfSupplyTypes = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(short), ElementName = "serviceRequestPadding")] - public short ServiceRequestPadding - { - get - { - return this._serviceRequestPadding; - } - - set - { - this._serviceRequestPadding = value; - } - } - - /// - /// Gets the supplies - /// - [XmlElement(ElementName = "suppliesList", Type = typeof(List))] - public List Supplies - { - get - { - return this._supplies; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._requestingEntityID.Marshal(dos); - this._servicingEntityID.Marshal(dos); - dos.WriteUnsignedByte((byte)this._serviceTypeRequested); - dos.WriteUnsignedByte((byte)this._supplies.Count); - dos.WriteShort((short)this._serviceRequestPadding); - - for (int idx = 0; idx < this._supplies.Count; idx++) - { - SupplyQuantity aSupplyQuantity = (SupplyQuantity)this._supplies[idx]; - aSupplyQuantity.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._requestingEntityID.Unmarshal(dis); - this._servicingEntityID.Unmarshal(dis); - this._serviceTypeRequested = dis.ReadUnsignedByte(); - this._numberOfSupplyTypes = dis.ReadUnsignedByte(); - this._serviceRequestPadding = dis.ReadShort(); - - for (int idx = 0; idx < this.NumberOfSupplyTypes; idx++) - { - SupplyQuantity anX = new SupplyQuantity(); - anX.Unmarshal(dis); - this._supplies.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._requestingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._servicingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._serviceTypeRequested.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._supplies.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._serviceRequestPadding.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._supplies.Count; idx++) - { - sb.AppendLine(""); - SupplyQuantity aSupplyQuantity = (SupplyQuantity)this._supplies[idx]; - aSupplyQuantity.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ServiceRequestPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ServiceRequestPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._requestingEntityID.Equals(obj._requestingEntityID)) - { - ivarsEqual = false; - } - - if (!this._servicingEntityID.Equals(obj._servicingEntityID)) - { - ivarsEqual = false; - } - - if (this._serviceTypeRequested != obj._serviceTypeRequested) - { - ivarsEqual = false; - } - - if (this._numberOfSupplyTypes != obj._numberOfSupplyTypes) - { - ivarsEqual = false; - } - - if (this._serviceRequestPadding != obj._serviceRequestPadding) - { - ivarsEqual = false; - } - - if (this._supplies.Count != obj._supplies.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._supplies.Count; idx++) - { - if (!this._supplies[idx].Equals(obj._supplies[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._requestingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._servicingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._serviceTypeRequested.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfSupplyTypes.GetHashCode(); - result = GenerateHash(result) ^ this._serviceRequestPadding.GetHashCode(); - - if (this._supplies.Count > 0) - { - for (int idx = 0; idx < this._supplies.Count; idx++) - { - result = GenerateHash(result) ^ this._supplies[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.5.1. Information about a request for supplies. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(SupplyQuantity))] + public partial class ServiceRequestPdu : LogisticsFamilyPdu, IEquatable + { + /// + /// Entity that is requesting service + /// + private EntityID _requestingEntityID = new EntityID(); + + /// + /// Entity that is providing the service + /// + private EntityID _servicingEntityID = new EntityID(); + + /// + /// type of service requested + /// + private byte _serviceTypeRequested; + + /// + /// How many requested + /// + private byte _numberOfSupplyTypes; + + /// + /// padding + /// + private short _serviceRequestPadding; + + private List _supplies = new List(); + + /// + /// Initializes a new instance of the class. + /// + public ServiceRequestPdu() + { + PduType = (byte)5; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ServiceRequestPdu left, ServiceRequestPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ServiceRequestPdu left, ServiceRequestPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._requestingEntityID.GetMarshalledSize(); // this._requestingEntityID + marshalSize += this._servicingEntityID.GetMarshalledSize(); // this._servicingEntityID + marshalSize += 1; // this._serviceTypeRequested + marshalSize += 1; // this._numberOfSupplyTypes + marshalSize += 2; // this._serviceRequestPadding + for (int idx = 0; idx < this._supplies.Count; idx++) + { + SupplyQuantity listElement = (SupplyQuantity)this._supplies[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Entity that is requesting service + /// + [XmlElement(Type = typeof(EntityID), ElementName = "requestingEntityID")] + public EntityID RequestingEntityID + { + get + { + return this._requestingEntityID; + } + + set + { + this._requestingEntityID = value; + } + } + + /// + /// Gets or sets the Entity that is providing the service + /// + [XmlElement(Type = typeof(EntityID), ElementName = "servicingEntityID")] + public EntityID ServicingEntityID + { + get + { + return this._servicingEntityID; + } + + set + { + this._servicingEntityID = value; + } + } + + /// + /// Gets or sets the type of service requested + /// + [XmlElement(Type = typeof(byte), ElementName = "serviceTypeRequested")] + public byte ServiceTypeRequested + { + get + { + return this._serviceTypeRequested; + } + + set + { + this._serviceTypeRequested = value; + } + } + + /// + /// Gets or sets the How many requested + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfSupplyTypes method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfSupplyTypes")] + public byte NumberOfSupplyTypes + { + get + { + return this._numberOfSupplyTypes; + } + + set + { + this._numberOfSupplyTypes = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(short), ElementName = "serviceRequestPadding")] + public short ServiceRequestPadding + { + get + { + return this._serviceRequestPadding; + } + + set + { + this._serviceRequestPadding = value; + } + } + + /// + /// Gets the supplies + /// + [XmlElement(ElementName = "suppliesList", Type = typeof(List))] + public List Supplies + { + get + { + return this._supplies; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._requestingEntityID.Marshal(dos); + this._servicingEntityID.Marshal(dos); + dos.WriteUnsignedByte((byte)this._serviceTypeRequested); + dos.WriteUnsignedByte((byte)this._supplies.Count); + dos.WriteShort((short)this._serviceRequestPadding); + + for (int idx = 0; idx < this._supplies.Count; idx++) + { + SupplyQuantity aSupplyQuantity = (SupplyQuantity)this._supplies[idx]; + aSupplyQuantity.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._requestingEntityID.Unmarshal(dis); + this._servicingEntityID.Unmarshal(dis); + this._serviceTypeRequested = dis.ReadUnsignedByte(); + this._numberOfSupplyTypes = dis.ReadUnsignedByte(); + this._serviceRequestPadding = dis.ReadShort(); + + for (int idx = 0; idx < this.NumberOfSupplyTypes; idx++) + { + SupplyQuantity anX = new SupplyQuantity(); + anX.Unmarshal(dis); + this._supplies.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._requestingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._servicingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._serviceTypeRequested.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._supplies.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._serviceRequestPadding.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._supplies.Count; idx++) + { + sb.AppendLine(""); + SupplyQuantity aSupplyQuantity = (SupplyQuantity)this._supplies[idx]; + aSupplyQuantity.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ServiceRequestPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ServiceRequestPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._requestingEntityID.Equals(obj._requestingEntityID)) + { + ivarsEqual = false; + } + + if (!this._servicingEntityID.Equals(obj._servicingEntityID)) + { + ivarsEqual = false; + } + + if (this._serviceTypeRequested != obj._serviceTypeRequested) + { + ivarsEqual = false; + } + + if (this._numberOfSupplyTypes != obj._numberOfSupplyTypes) + { + ivarsEqual = false; + } + + if (this._serviceRequestPadding != obj._serviceRequestPadding) + { + ivarsEqual = false; + } + + if (this._supplies.Count != obj._supplies.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._supplies.Count; idx++) + { + if (!this._supplies[idx].Equals(obj._supplies[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._requestingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._servicingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._serviceTypeRequested.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfSupplyTypes.GetHashCode(); + result = GenerateHash(result) ^ this._serviceRequestPadding.GetHashCode(); + + if (this._supplies.Count > 0) + { + for (int idx = 0; idx < this._supplies.Count; idx++) + { + result = GenerateHash(result) ^ this._supplies[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/SetDataPdu.cs b/Libs/CsharpDis6/Dis1998/Generated/SetDataPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/SetDataPdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/SetDataPdu.cs index 6385986..1b0e305 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/SetDataPdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/SetDataPdu.cs @@ -1,548 +1,548 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.6.9. Change state information with the data contained in this. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(FixedDatum))] - [XmlInclude(typeof(VariableDatum))] - public partial class SetDataPdu : SimulationManagementFamilyPdu, IEquatable - { - /// - /// ID of request - /// - private uint _requestID; - - /// - /// padding - /// - private uint _padding1; - - /// - /// Number of fixed datum records - /// - private uint _numberOfFixedDatumRecords; - - /// - /// Number of variable datum records - /// - private uint _numberOfVariableDatumRecords; - - /// - /// variable length list of fixed datums - /// - private List _fixedDatums = new List(); - - /// - /// variable length list of variable length datums - /// - private List _variableDatums = new List(); - - /// - /// Initializes a new instance of the class. - /// - public SetDataPdu() - { - PduType = (byte)19; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(SetDataPdu left, SetDataPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(SetDataPdu left, SetDataPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 4; // this._requestID - marshalSize += 4; // this._padding1 - marshalSize += 4; // this._numberOfFixedDatumRecords - marshalSize += 4; // this._numberOfVariableDatumRecords - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - FixedDatum listElement = (FixedDatum)this._fixedDatums[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - VariableDatum listElement = (VariableDatum)this._variableDatums[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the ID of request - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(uint), ElementName = "padding1")] - public uint Padding1 - { - get - { - return this._padding1; - } - - set - { - this._padding1 = value; - } - } - - /// - /// Gets or sets the Number of fixed datum records - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] - public uint NumberOfFixedDatumRecords - { - get - { - return this._numberOfFixedDatumRecords; - } - - set - { - this._numberOfFixedDatumRecords = value; - } - } - - /// - /// Gets or sets the Number of variable datum records - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] - public uint NumberOfVariableDatumRecords - { - get - { - return this._numberOfVariableDatumRecords; - } - - set - { - this._numberOfVariableDatumRecords = value; - } - } - - /// - /// Gets the variable length list of fixed datums - /// - [XmlElement(ElementName = "fixedDatumsList", Type = typeof(List))] - public List FixedDatums - { - get - { - return this._fixedDatums; - } - } - - /// - /// Gets the variable length list of variable length datums - /// - [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] - public List VariableDatums - { - get - { - return this._variableDatums; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._requestID); - dos.WriteUnsignedInt((uint)this._padding1); - dos.WriteUnsignedInt((uint)this._fixedDatums.Count); - dos.WriteUnsignedInt((uint)this._variableDatums.Count); - - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; - aFixedDatum.Marshal(dos); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; - aVariableDatum.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._requestID = dis.ReadUnsignedInt(); - this._padding1 = dis.ReadUnsignedInt(); - this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); - this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); - - for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) - { - FixedDatum anX = new FixedDatum(); - anX.Unmarshal(dis); - this._fixedDatums.Add(anX); - } - - for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) - { - VariableDatum anX = new VariableDatum(); - anX.Unmarshal(dis); - this._variableDatums.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fixedDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - sb.AppendLine(""); - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; - aFixedDatum.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - sb.AppendLine(""); - VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; - aVariableDatum.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as SetDataPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(SetDataPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - if (this._padding1 != obj._padding1) - { - ivarsEqual = false; - } - - if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) - { - ivarsEqual = false; - } - - if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) - { - ivarsEqual = false; - } - - if (this._fixedDatums.Count != obj._fixedDatums.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - if (!this._fixedDatums[idx].Equals(obj._fixedDatums[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._variableDatums.Count != obj._variableDatums.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - result = GenerateHash(result) ^ this._padding1.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); - - if (this._fixedDatums.Count > 0) - { - for (int idx = 0; idx < this._fixedDatums.Count; idx++) - { - result = GenerateHash(result) ^ this._fixedDatums[idx].GetHashCode(); - } - } - - if (this._variableDatums.Count > 0) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.6.9. Change state information with the data contained in this. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(FixedDatum))] + [XmlInclude(typeof(VariableDatum))] + public partial class SetDataPdu : SimulationManagementFamilyPdu, IEquatable + { + /// + /// ID of request + /// + private uint _requestID; + + /// + /// padding + /// + private uint _padding1; + + /// + /// Number of fixed datum records + /// + private uint _numberOfFixedDatumRecords; + + /// + /// Number of variable datum records + /// + private uint _numberOfVariableDatumRecords; + + /// + /// variable length list of fixed datums + /// + private List _fixedDatums = new List(); + + /// + /// variable length list of variable length datums + /// + private List _variableDatums = new List(); + + /// + /// Initializes a new instance of the class. + /// + public SetDataPdu() + { + PduType = (byte)19; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(SetDataPdu left, SetDataPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(SetDataPdu left, SetDataPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 4; // this._requestID + marshalSize += 4; // this._padding1 + marshalSize += 4; // this._numberOfFixedDatumRecords + marshalSize += 4; // this._numberOfVariableDatumRecords + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + FixedDatum listElement = (FixedDatum)this._fixedDatums[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + VariableDatum listElement = (VariableDatum)this._variableDatums[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the ID of request + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(uint), ElementName = "padding1")] + public uint Padding1 + { + get + { + return this._padding1; + } + + set + { + this._padding1 = value; + } + } + + /// + /// Gets or sets the Number of fixed datum records + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] + public uint NumberOfFixedDatumRecords + { + get + { + return this._numberOfFixedDatumRecords; + } + + set + { + this._numberOfFixedDatumRecords = value; + } + } + + /// + /// Gets or sets the Number of variable datum records + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] + public uint NumberOfVariableDatumRecords + { + get + { + return this._numberOfVariableDatumRecords; + } + + set + { + this._numberOfVariableDatumRecords = value; + } + } + + /// + /// Gets the variable length list of fixed datums + /// + [XmlElement(ElementName = "fixedDatumsList", Type = typeof(List))] + public List FixedDatums + { + get + { + return this._fixedDatums; + } + } + + /// + /// Gets the variable length list of variable length datums + /// + [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] + public List VariableDatums + { + get + { + return this._variableDatums; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._requestID); + dos.WriteUnsignedInt((uint)this._padding1); + dos.WriteUnsignedInt((uint)this._fixedDatums.Count); + dos.WriteUnsignedInt((uint)this._variableDatums.Count); + + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; + aFixedDatum.Marshal(dos); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; + aVariableDatum.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._requestID = dis.ReadUnsignedInt(); + this._padding1 = dis.ReadUnsignedInt(); + this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); + this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); + + for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) + { + FixedDatum anX = new FixedDatum(); + anX.Unmarshal(dis); + this._fixedDatums.Add(anX); + } + + for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) + { + VariableDatum anX = new VariableDatum(); + anX.Unmarshal(dis); + this._variableDatums.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fixedDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + sb.AppendLine(""); + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; + aFixedDatum.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + sb.AppendLine(""); + VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; + aVariableDatum.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as SetDataPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(SetDataPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + if (this._padding1 != obj._padding1) + { + ivarsEqual = false; + } + + if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) + { + ivarsEqual = false; + } + + if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) + { + ivarsEqual = false; + } + + if (this._fixedDatums.Count != obj._fixedDatums.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + if (!this._fixedDatums[idx].Equals(obj._fixedDatums[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._variableDatums.Count != obj._variableDatums.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + result = GenerateHash(result) ^ this._padding1.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); + + if (this._fixedDatums.Count > 0) + { + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + result = GenerateHash(result) ^ this._fixedDatums[idx].GetHashCode(); + } + } + + if (this._variableDatums.Count > 0) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/SetDataReliablePdu.cs b/Libs/CsharpDis6/Dis1998/Generated/SetDataReliablePdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/SetDataReliablePdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/SetDataReliablePdu.cs index 543351c..2d3ef5b 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/SetDataReliablePdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/SetDataReliablePdu.cs @@ -1,612 +1,612 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.12.9: initializing or chaning internal state information, reliable. Needs manual intervention to fix padding on variable datums. UNFINISHED - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(FixedDatum))] - [XmlInclude(typeof(VariableDatum))] - public partial class SetDataReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable - { - /// - /// level of reliability service used for this transaction - /// - private byte _requiredReliabilityService; - - /// - /// padding - /// - private ushort _pad1; - - /// - /// padding - /// - private byte _pad2; - - /// - /// Request ID - /// - private uint _requestID; - - /// - /// Fixed datum record count - /// - private uint _numberOfFixedDatumRecords; - - /// - /// variable datum record count - /// - private uint _numberOfVariableDatumRecords; - - /// - /// Fixed datum records - /// - private List _fixedDatumRecords = new List(); - - /// - /// Variable datum records - /// - private List _variableDatumRecords = new List(); - - /// - /// Initializes a new instance of the class. - /// - public SetDataReliablePdu() - { - PduType = (byte)59; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(SetDataReliablePdu left, SetDataReliablePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(SetDataReliablePdu left, SetDataReliablePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 1; // this._requiredReliabilityService - marshalSize += 2; // this._pad1 - marshalSize += 1; // this._pad2 - marshalSize += 4; // this._requestID - marshalSize += 4; // this._numberOfFixedDatumRecords - marshalSize += 4; // this._numberOfVariableDatumRecords - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - FixedDatum listElement = (FixedDatum)this._fixedDatumRecords[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - VariableDatum listElement = (VariableDatum)this._variableDatumRecords[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the level of reliability service used for this transaction - /// - [XmlElement(Type = typeof(byte), ElementName = "requiredReliabilityService")] - public byte RequiredReliabilityService - { - get - { - return this._requiredReliabilityService; - } - - set - { - this._requiredReliabilityService = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(ushort), ElementName = "pad1")] - public ushort Pad1 - { - get - { - return this._pad1; - } - - set - { - this._pad1 = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "pad2")] - public byte Pad2 - { - get - { - return this._pad2; - } - - set - { - this._pad2 = value; - } - } - - /// - /// Gets or sets the Request ID - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Gets or sets the Fixed datum record count - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] - public uint NumberOfFixedDatumRecords - { - get - { - return this._numberOfFixedDatumRecords; - } - - set - { - this._numberOfFixedDatumRecords = value; - } - } - - /// - /// Gets or sets the variable datum record count - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] - public uint NumberOfVariableDatumRecords - { - get - { - return this._numberOfVariableDatumRecords; - } - - set - { - this._numberOfVariableDatumRecords = value; - } - } - - /// - /// Gets the Fixed datum records - /// - [XmlElement(ElementName = "fixedDatumRecordsList", Type = typeof(List))] - public List FixedDatumRecords - { - get - { - return this._fixedDatumRecords; - } - } - - /// - /// Gets the Variable datum records - /// - [XmlElement(ElementName = "variableDatumRecordsList", Type = typeof(List))] - public List VariableDatumRecords - { - get - { - return this._variableDatumRecords; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedByte((byte)this._requiredReliabilityService); - dos.WriteUnsignedShort((ushort)this._pad1); - dos.WriteUnsignedByte((byte)this._pad2); - dos.WriteUnsignedInt((uint)this._requestID); - dos.WriteUnsignedInt((uint)this._fixedDatumRecords.Count); - dos.WriteUnsignedInt((uint)this._variableDatumRecords.Count); - - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; - aFixedDatum.Marshal(dos); - } - - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; - aVariableDatum.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._requiredReliabilityService = dis.ReadUnsignedByte(); - this._pad1 = dis.ReadUnsignedShort(); - this._pad2 = dis.ReadUnsignedByte(); - this._requestID = dis.ReadUnsignedInt(); - this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); - this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); - - for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) - { - FixedDatum anX = new FixedDatum(); - anX.Unmarshal(dis); - this._fixedDatumRecords.Add(anX); - } - - for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) - { - VariableDatum anX = new VariableDatum(); - anX.Unmarshal(dis); - this._variableDatumRecords.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._requiredReliabilityService.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._fixedDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - sb.AppendLine(""); - FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; - aFixedDatum.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - sb.AppendLine(""); - VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; - aVariableDatum.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as SetDataReliablePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(SetDataReliablePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._requiredReliabilityService != obj._requiredReliabilityService) - { - ivarsEqual = false; - } - - if (this._pad1 != obj._pad1) - { - ivarsEqual = false; - } - - if (this._pad2 != obj._pad2) - { - ivarsEqual = false; - } - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) - { - ivarsEqual = false; - } - - if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) - { - ivarsEqual = false; - } - - if (this._fixedDatumRecords.Count != obj._fixedDatumRecords.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - if (!this._fixedDatumRecords[idx].Equals(obj._fixedDatumRecords[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._variableDatumRecords.Count != obj._variableDatumRecords.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - if (!this._variableDatumRecords[idx].Equals(obj._variableDatumRecords[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._requiredReliabilityService.GetHashCode(); - result = GenerateHash(result) ^ this._pad1.GetHashCode(); - result = GenerateHash(result) ^ this._pad2.GetHashCode(); - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); - - if (this._fixedDatumRecords.Count > 0) - { - for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) - { - result = GenerateHash(result) ^ this._fixedDatumRecords[idx].GetHashCode(); - } - } - - if (this._variableDatumRecords.Count > 0) - { - for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) - { - result = GenerateHash(result) ^ this._variableDatumRecords[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.12.9: initializing or chaning internal state information, reliable. Needs manual intervention to fix padding on variable datums. UNFINISHED + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(FixedDatum))] + [XmlInclude(typeof(VariableDatum))] + public partial class SetDataReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable + { + /// + /// level of reliability service used for this transaction + /// + private byte _requiredReliabilityService; + + /// + /// padding + /// + private ushort _pad1; + + /// + /// padding + /// + private byte _pad2; + + /// + /// Request ID + /// + private uint _requestID; + + /// + /// Fixed datum record count + /// + private uint _numberOfFixedDatumRecords; + + /// + /// variable datum record count + /// + private uint _numberOfVariableDatumRecords; + + /// + /// Fixed datum records + /// + private List _fixedDatumRecords = new List(); + + /// + /// Variable datum records + /// + private List _variableDatumRecords = new List(); + + /// + /// Initializes a new instance of the class. + /// + public SetDataReliablePdu() + { + PduType = (byte)59; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(SetDataReliablePdu left, SetDataReliablePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(SetDataReliablePdu left, SetDataReliablePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 1; // this._requiredReliabilityService + marshalSize += 2; // this._pad1 + marshalSize += 1; // this._pad2 + marshalSize += 4; // this._requestID + marshalSize += 4; // this._numberOfFixedDatumRecords + marshalSize += 4; // this._numberOfVariableDatumRecords + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + FixedDatum listElement = (FixedDatum)this._fixedDatumRecords[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + VariableDatum listElement = (VariableDatum)this._variableDatumRecords[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the level of reliability service used for this transaction + /// + [XmlElement(Type = typeof(byte), ElementName = "requiredReliabilityService")] + public byte RequiredReliabilityService + { + get + { + return this._requiredReliabilityService; + } + + set + { + this._requiredReliabilityService = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(ushort), ElementName = "pad1")] + public ushort Pad1 + { + get + { + return this._pad1; + } + + set + { + this._pad1 = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "pad2")] + public byte Pad2 + { + get + { + return this._pad2; + } + + set + { + this._pad2 = value; + } + } + + /// + /// Gets or sets the Request ID + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Gets or sets the Fixed datum record count + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] + public uint NumberOfFixedDatumRecords + { + get + { + return this._numberOfFixedDatumRecords; + } + + set + { + this._numberOfFixedDatumRecords = value; + } + } + + /// + /// Gets or sets the variable datum record count + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] + public uint NumberOfVariableDatumRecords + { + get + { + return this._numberOfVariableDatumRecords; + } + + set + { + this._numberOfVariableDatumRecords = value; + } + } + + /// + /// Gets the Fixed datum records + /// + [XmlElement(ElementName = "fixedDatumRecordsList", Type = typeof(List))] + public List FixedDatumRecords + { + get + { + return this._fixedDatumRecords; + } + } + + /// + /// Gets the Variable datum records + /// + [XmlElement(ElementName = "variableDatumRecordsList", Type = typeof(List))] + public List VariableDatumRecords + { + get + { + return this._variableDatumRecords; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._requiredReliabilityService); + dos.WriteUnsignedShort((ushort)this._pad1); + dos.WriteUnsignedByte((byte)this._pad2); + dos.WriteUnsignedInt((uint)this._requestID); + dos.WriteUnsignedInt((uint)this._fixedDatumRecords.Count); + dos.WriteUnsignedInt((uint)this._variableDatumRecords.Count); + + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; + aFixedDatum.Marshal(dos); + } + + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; + aVariableDatum.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._requiredReliabilityService = dis.ReadUnsignedByte(); + this._pad1 = dis.ReadUnsignedShort(); + this._pad2 = dis.ReadUnsignedByte(); + this._requestID = dis.ReadUnsignedInt(); + this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); + this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); + + for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) + { + FixedDatum anX = new FixedDatum(); + anX.Unmarshal(dis); + this._fixedDatumRecords.Add(anX); + } + + for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) + { + VariableDatum anX = new VariableDatum(); + anX.Unmarshal(dis); + this._variableDatumRecords.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._requiredReliabilityService.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fixedDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + sb.AppendLine(""); + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; + aFixedDatum.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + sb.AppendLine(""); + VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; + aVariableDatum.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as SetDataReliablePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(SetDataReliablePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._requiredReliabilityService != obj._requiredReliabilityService) + { + ivarsEqual = false; + } + + if (this._pad1 != obj._pad1) + { + ivarsEqual = false; + } + + if (this._pad2 != obj._pad2) + { + ivarsEqual = false; + } + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) + { + ivarsEqual = false; + } + + if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) + { + ivarsEqual = false; + } + + if (this._fixedDatumRecords.Count != obj._fixedDatumRecords.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + if (!this._fixedDatumRecords[idx].Equals(obj._fixedDatumRecords[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._variableDatumRecords.Count != obj._variableDatumRecords.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + if (!this._variableDatumRecords[idx].Equals(obj._variableDatumRecords[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._requiredReliabilityService.GetHashCode(); + result = GenerateHash(result) ^ this._pad1.GetHashCode(); + result = GenerateHash(result) ^ this._pad2.GetHashCode(); + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); + + if (this._fixedDatumRecords.Count > 0) + { + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + result = GenerateHash(result) ^ this._fixedDatumRecords[idx].GetHashCode(); + } + } + + if (this._variableDatumRecords.Count > 0) + { + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + result = GenerateHash(result) ^ this._variableDatumRecords[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/SetRecordReliablePdu.cs b/Libs/CsharpDis6/Dis1998/Generated/SetRecordReliablePdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/SetRecordReliablePdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/SetRecordReliablePdu.cs index befb2db..635c874 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/SetRecordReliablePdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/SetRecordReliablePdu.cs @@ -1,506 +1,506 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.12.14: Initializing or changing internal parameter info. Needs manual intervention to fix padding in recrod set PDUs. UNFINISHED - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(RecordSet))] - public partial class SetRecordReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable - { - /// - /// request ID - /// - private uint _requestID; - - /// - /// level of reliability service used for this transaction - /// - private byte _requiredReliabilityService; - - /// - /// padding. The spec is unclear and contradictory here. - /// - private ushort _pad1; - - /// - /// padding - /// - private byte _pad2; - - /// - /// Number of record sets in list - /// - private uint _numberOfRecordSets; - - /// - /// record sets - /// - private List _recordSets = new List(); - - /// - /// Initializes a new instance of the class. - /// - public SetRecordReliablePdu() - { - PduType = (byte)64; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(SetRecordReliablePdu left, SetRecordReliablePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(SetRecordReliablePdu left, SetRecordReliablePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 4; // this._requestID - marshalSize += 1; // this._requiredReliabilityService - marshalSize += 2; // this._pad1 - marshalSize += 1; // this._pad2 - marshalSize += 4; // this._numberOfRecordSets - for (int idx = 0; idx < this._recordSets.Count; idx++) - { - RecordSet listElement = (RecordSet)this._recordSets[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the request ID - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Gets or sets the level of reliability service used for this transaction - /// - [XmlElement(Type = typeof(byte), ElementName = "requiredReliabilityService")] - public byte RequiredReliabilityService - { - get - { - return this._requiredReliabilityService; - } - - set - { - this._requiredReliabilityService = value; - } - } - - /// - /// Gets or sets the padding. The spec is unclear and contradictory here. - /// - [XmlElement(Type = typeof(ushort), ElementName = "pad1")] - public ushort Pad1 - { - get - { - return this._pad1; - } - - set - { - this._pad1 = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "pad2")] - public byte Pad2 - { - get - { - return this._pad2; - } - - set - { - this._pad2 = value; - } - } - - /// - /// Gets or sets the Number of record sets in list - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfRecordSets method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(uint), ElementName = "numberOfRecordSets")] - public uint NumberOfRecordSets - { - get - { - return this._numberOfRecordSets; - } - - set - { - this._numberOfRecordSets = value; - } - } - - /// - /// Gets the record sets - /// - [XmlElement(ElementName = "recordSetsList", Type = typeof(List))] - public List RecordSets - { - get - { - return this._recordSets; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._requestID); - dos.WriteUnsignedByte((byte)this._requiredReliabilityService); - dos.WriteUnsignedShort((ushort)this._pad1); - dos.WriteUnsignedByte((byte)this._pad2); - dos.WriteUnsignedInt((uint)this._recordSets.Count); - - for (int idx = 0; idx < this._recordSets.Count; idx++) - { - RecordSet aRecordSet = (RecordSet)this._recordSets[idx]; - aRecordSet.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._requestID = dis.ReadUnsignedInt(); - this._requiredReliabilityService = dis.ReadUnsignedByte(); - this._pad1 = dis.ReadUnsignedShort(); - this._pad2 = dis.ReadUnsignedByte(); - this._numberOfRecordSets = dis.ReadUnsignedInt(); - - for (int idx = 0; idx < this.NumberOfRecordSets; idx++) - { - RecordSet anX = new RecordSet(); - anX.Unmarshal(dis); - this._recordSets.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._requiredReliabilityService.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._recordSets.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._recordSets.Count; idx++) - { - sb.AppendLine(""); - RecordSet aRecordSet = (RecordSet)this._recordSets[idx]; - aRecordSet.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as SetRecordReliablePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(SetRecordReliablePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - if (this._requiredReliabilityService != obj._requiredReliabilityService) - { - ivarsEqual = false; - } - - if (this._pad1 != obj._pad1) - { - ivarsEqual = false; - } - - if (this._pad2 != obj._pad2) - { - ivarsEqual = false; - } - - if (this._numberOfRecordSets != obj._numberOfRecordSets) - { - ivarsEqual = false; - } - - if (this._recordSets.Count != obj._recordSets.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._recordSets.Count; idx++) - { - if (!this._recordSets[idx].Equals(obj._recordSets[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - result = GenerateHash(result) ^ this._requiredReliabilityService.GetHashCode(); - result = GenerateHash(result) ^ this._pad1.GetHashCode(); - result = GenerateHash(result) ^ this._pad2.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfRecordSets.GetHashCode(); - - if (this._recordSets.Count > 0) - { - for (int idx = 0; idx < this._recordSets.Count; idx++) - { - result = GenerateHash(result) ^ this._recordSets[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.12.14: Initializing or changing internal parameter info. Needs manual intervention to fix padding in recrod set PDUs. UNFINISHED + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(RecordSet))] + public partial class SetRecordReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable + { + /// + /// request ID + /// + private uint _requestID; + + /// + /// level of reliability service used for this transaction + /// + private byte _requiredReliabilityService; + + /// + /// padding. The spec is unclear and contradictory here. + /// + private ushort _pad1; + + /// + /// padding + /// + private byte _pad2; + + /// + /// Number of record sets in list + /// + private uint _numberOfRecordSets; + + /// + /// record sets + /// + private List _recordSets = new List(); + + /// + /// Initializes a new instance of the class. + /// + public SetRecordReliablePdu() + { + PduType = (byte)64; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(SetRecordReliablePdu left, SetRecordReliablePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(SetRecordReliablePdu left, SetRecordReliablePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 4; // this._requestID + marshalSize += 1; // this._requiredReliabilityService + marshalSize += 2; // this._pad1 + marshalSize += 1; // this._pad2 + marshalSize += 4; // this._numberOfRecordSets + for (int idx = 0; idx < this._recordSets.Count; idx++) + { + RecordSet listElement = (RecordSet)this._recordSets[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the request ID + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Gets or sets the level of reliability service used for this transaction + /// + [XmlElement(Type = typeof(byte), ElementName = "requiredReliabilityService")] + public byte RequiredReliabilityService + { + get + { + return this._requiredReliabilityService; + } + + set + { + this._requiredReliabilityService = value; + } + } + + /// + /// Gets or sets the padding. The spec is unclear and contradictory here. + /// + [XmlElement(Type = typeof(ushort), ElementName = "pad1")] + public ushort Pad1 + { + get + { + return this._pad1; + } + + set + { + this._pad1 = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "pad2")] + public byte Pad2 + { + get + { + return this._pad2; + } + + set + { + this._pad2 = value; + } + } + + /// + /// Gets or sets the Number of record sets in list + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfRecordSets method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfRecordSets")] + public uint NumberOfRecordSets + { + get + { + return this._numberOfRecordSets; + } + + set + { + this._numberOfRecordSets = value; + } + } + + /// + /// Gets the record sets + /// + [XmlElement(ElementName = "recordSetsList", Type = typeof(List))] + public List RecordSets + { + get + { + return this._recordSets; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._requestID); + dos.WriteUnsignedByte((byte)this._requiredReliabilityService); + dos.WriteUnsignedShort((ushort)this._pad1); + dos.WriteUnsignedByte((byte)this._pad2); + dos.WriteUnsignedInt((uint)this._recordSets.Count); + + for (int idx = 0; idx < this._recordSets.Count; idx++) + { + RecordSet aRecordSet = (RecordSet)this._recordSets[idx]; + aRecordSet.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._requestID = dis.ReadUnsignedInt(); + this._requiredReliabilityService = dis.ReadUnsignedByte(); + this._pad1 = dis.ReadUnsignedShort(); + this._pad2 = dis.ReadUnsignedByte(); + this._numberOfRecordSets = dis.ReadUnsignedInt(); + + for (int idx = 0; idx < this.NumberOfRecordSets; idx++) + { + RecordSet anX = new RecordSet(); + anX.Unmarshal(dis); + this._recordSets.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._requiredReliabilityService.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._recordSets.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._recordSets.Count; idx++) + { + sb.AppendLine(""); + RecordSet aRecordSet = (RecordSet)this._recordSets[idx]; + aRecordSet.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as SetRecordReliablePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(SetRecordReliablePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + if (this._requiredReliabilityService != obj._requiredReliabilityService) + { + ivarsEqual = false; + } + + if (this._pad1 != obj._pad1) + { + ivarsEqual = false; + } + + if (this._pad2 != obj._pad2) + { + ivarsEqual = false; + } + + if (this._numberOfRecordSets != obj._numberOfRecordSets) + { + ivarsEqual = false; + } + + if (this._recordSets.Count != obj._recordSets.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._recordSets.Count; idx++) + { + if (!this._recordSets[idx].Equals(obj._recordSets[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + result = GenerateHash(result) ^ this._requiredReliabilityService.GetHashCode(); + result = GenerateHash(result) ^ this._pad1.GetHashCode(); + result = GenerateHash(result) ^ this._pad2.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfRecordSets.GetHashCode(); + + if (this._recordSets.Count > 0) + { + for (int idx = 0; idx < this._recordSets.Count; idx++) + { + result = GenerateHash(result) ^ this._recordSets[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ShaftRPMs.cs b/Libs/CsharpDis6/Dis1998/Generated/ShaftRPMs.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/ShaftRPMs.cs rename to Libs/CsharpDis6/Dis1998/Generated/ShaftRPMs.cs index 9b00a25..3fad088 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/ShaftRPMs.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/ShaftRPMs.cs @@ -1,364 +1,364 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Shaft RPMs, used in underwater acoustic clacluations. - /// - [Serializable] - [XmlRoot] - public partial class ShaftRPMs - { - /// - /// Current shaft RPMs - /// - private short _currentShaftRPMs; - - /// - /// ordered shaft rpms - /// - private short _orderedShaftRPMs; - - /// - /// rate of change of shaft RPMs - /// - private float _shaftRPMRateOfChange; - - /// - /// Initializes a new instance of the class. - /// - public ShaftRPMs() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ShaftRPMs left, ShaftRPMs right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(ShaftRPMs left, ShaftRPMs right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 2; // this._currentShaftRPMs - marshalSize += 2; // this._orderedShaftRPMs - marshalSize += 4; // this._shaftRPMRateOfChange - return marshalSize; - } - - /// - /// Gets or sets the Current shaft RPMs - /// - [XmlElement(Type = typeof(short), ElementName = "currentShaftRPMs")] - public short CurrentShaftRPMs - { - get - { - return this._currentShaftRPMs; - } - - set - { - this._currentShaftRPMs = value; - } - } - - /// - /// Gets or sets the ordered shaft rpms - /// - [XmlElement(Type = typeof(short), ElementName = "orderedShaftRPMs")] - public short OrderedShaftRPMs - { - get - { - return this._orderedShaftRPMs; - } - - set - { - this._orderedShaftRPMs = value; - } - } - - /// - /// Gets or sets the rate of change of shaft RPMs - /// - [XmlElement(Type = typeof(float), ElementName = "shaftRPMRateOfChange")] - public float ShaftRPMRateOfChange - { - get - { - return this._shaftRPMRateOfChange; - } - - set - { - this._shaftRPMRateOfChange = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteShort((short)this._currentShaftRPMs); - dos.WriteShort((short)this._orderedShaftRPMs); - dos.WriteFloat((float)this._shaftRPMRateOfChange); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._currentShaftRPMs = dis.ReadShort(); - this._orderedShaftRPMs = dis.ReadShort(); - this._shaftRPMRateOfChange = dis.ReadFloat(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._currentShaftRPMs.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._orderedShaftRPMs.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._shaftRPMRateOfChange.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as ShaftRPMs; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(ShaftRPMs obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._currentShaftRPMs != obj._currentShaftRPMs) - { - ivarsEqual = false; - } - - if (this._orderedShaftRPMs != obj._orderedShaftRPMs) - { - ivarsEqual = false; - } - - if (this._shaftRPMRateOfChange != obj._shaftRPMRateOfChange) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._currentShaftRPMs.GetHashCode(); - result = GenerateHash(result) ^ this._orderedShaftRPMs.GetHashCode(); - result = GenerateHash(result) ^ this._shaftRPMRateOfChange.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Shaft RPMs, used in underwater acoustic clacluations. + /// + [Serializable] + [XmlRoot] + public partial class ShaftRPMs + { + /// + /// Current shaft RPMs + /// + private short _currentShaftRPMs; + + /// + /// ordered shaft rpms + /// + private short _orderedShaftRPMs; + + /// + /// rate of change of shaft RPMs + /// + private float _shaftRPMRateOfChange; + + /// + /// Initializes a new instance of the class. + /// + public ShaftRPMs() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ShaftRPMs left, ShaftRPMs right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ShaftRPMs left, ShaftRPMs right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 2; // this._currentShaftRPMs + marshalSize += 2; // this._orderedShaftRPMs + marshalSize += 4; // this._shaftRPMRateOfChange + return marshalSize; + } + + /// + /// Gets or sets the Current shaft RPMs + /// + [XmlElement(Type = typeof(short), ElementName = "currentShaftRPMs")] + public short CurrentShaftRPMs + { + get + { + return this._currentShaftRPMs; + } + + set + { + this._currentShaftRPMs = value; + } + } + + /// + /// Gets or sets the ordered shaft rpms + /// + [XmlElement(Type = typeof(short), ElementName = "orderedShaftRPMs")] + public short OrderedShaftRPMs + { + get + { + return this._orderedShaftRPMs; + } + + set + { + this._orderedShaftRPMs = value; + } + } + + /// + /// Gets or sets the rate of change of shaft RPMs + /// + [XmlElement(Type = typeof(float), ElementName = "shaftRPMRateOfChange")] + public float ShaftRPMRateOfChange + { + get + { + return this._shaftRPMRateOfChange; + } + + set + { + this._shaftRPMRateOfChange = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteShort((short)this._currentShaftRPMs); + dos.WriteShort((short)this._orderedShaftRPMs); + dos.WriteFloat((float)this._shaftRPMRateOfChange); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._currentShaftRPMs = dis.ReadShort(); + this._orderedShaftRPMs = dis.ReadShort(); + this._shaftRPMRateOfChange = dis.ReadFloat(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._currentShaftRPMs.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._orderedShaftRPMs.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._shaftRPMRateOfChange.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ShaftRPMs; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ShaftRPMs obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._currentShaftRPMs != obj._currentShaftRPMs) + { + ivarsEqual = false; + } + + if (this._orderedShaftRPMs != obj._orderedShaftRPMs) + { + ivarsEqual = false; + } + + if (this._shaftRPMRateOfChange != obj._shaftRPMRateOfChange) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._currentShaftRPMs.GetHashCode(); + result = GenerateHash(result) ^ this._orderedShaftRPMs.GetHashCode(); + result = GenerateHash(result) ^ this._shaftRPMRateOfChange.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/SignalPdu.cs b/Libs/CsharpDis6/Dis1998/Generated/SignalPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/SignalPdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/SignalPdu.cs index 1e786e4..cee79e5 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/SignalPdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/SignalPdu.cs @@ -1,484 +1,484 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.8.2. Detailed information about a radio transmitter. This PDU requires manually written code to complete. The encodingScheme field can be used in multiple ways, which requires hand-written code to finish. UNFINISHED - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(OneByteChunk))] - public partial class SignalPdu : RadioCommunicationsFamilyPdu, IEquatable - { - /// - /// encoding scheme used, and enumeration - /// - private ushort _encodingScheme; - - /// - /// tdl type - /// - private ushort _tdlType; - - /// - /// sample rate - /// - private uint _sampleRate; - - /// - /// length od data - /// - private short _dataLength; - - /// - /// number of samples - /// - private short _samples; - - /// - /// list of eight bit values - /// - private byte[] _data; - - /// - /// Initializes a new instance of the class. - /// - public SignalPdu() - { - PduType = (byte)26; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(SignalPdu left, SignalPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(SignalPdu left, SignalPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += 2; // this._encodingScheme - marshalSize += 2; // this._tdlType - marshalSize += 4; // this._sampleRate - marshalSize += 2; // this._dataLength - marshalSize += 2; // this._samples - marshalSize += this._data.Length; - return marshalSize; - } - - /// - /// Gets or sets the encoding scheme used, and enumeration - /// - [XmlElement(Type = typeof(ushort), ElementName = "encodingScheme")] - public ushort EncodingScheme - { - get - { - return this._encodingScheme; - } - - set - { - this._encodingScheme = value; - } - } - - /// - /// Gets or sets the tdl type - /// - [XmlElement(Type = typeof(ushort), ElementName = "tdlType")] - public ushort TdlType - { - get - { - return this._tdlType; - } - - set - { - this._tdlType = value; - } - } - - /// - /// Gets or sets the sample rate - /// - [XmlElement(Type = typeof(uint), ElementName = "sampleRate")] - public uint SampleRate - { - get - { - return this._sampleRate; - } - - set - { - this._sampleRate = value; - } - } - - /// - /// Gets or sets the length od data - /// - /// - /// This value must be set to the number of bits that will be used from the Data field. Normally this value would be in increments of 8. If this is the case then multiply the number of bytes used in the Data field by 8 and store that number here.ny computations. - /// - [XmlElement(Type = typeof(short), ElementName = "dataLength")] - public short DataLength - { - get - { - return this._dataLength; - } - - set - { - this._dataLength = value; - } - } - - /// - /// Gets or sets the number of samples - /// - [XmlElement(Type = typeof(short), ElementName = "samples")] - public short Samples - { - get - { - return this._samples; - } - - set - { - this._samples = value; - } - } - - /// - /// Gets or sets the list of eight bit values - /// - [XmlElement(ElementName = "dataList", DataType = "hexBinary")] - public byte[] Data - { - get - { - return this._data; - } - - set - { - this._data = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._encodingScheme); - dos.WriteUnsignedShort((ushort)this._tdlType); - dos.WriteUnsignedInt((uint)this._sampleRate); - dos.WriteShort((short)((this._dataLength == 0 && this._data.Length > 0) ? this._data.Length * 8 : this._dataLength)); //09062009 Post processed. If value is zero then default to every byte will use all 8 bits - dos.WriteShort((short)this._samples); - - dos.WriteByte(this._data); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._encodingScheme = dis.ReadUnsignedShort(); - this._tdlType = dis.ReadUnsignedShort(); - this._sampleRate = dis.ReadUnsignedInt(); - this._dataLength = dis.ReadShort(); - this._samples = dis.ReadShort(); - - this._data = dis.ReadByteArray((this._dataLength / 8) + (this._dataLength % 8 > 0 ? 1 : 0)); //09062009 Post processed. Needed to convert from bits to bytes - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine("" + this._encodingScheme.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._tdlType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._sampleRate.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._data.Length.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._samples.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - foreach (byte b in this._data) - { - sb.Append(b.ToString("X2", CultureInfo.InvariantCulture)); - } - - sb.AppendLine(""); - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as SignalPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(SignalPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (this._encodingScheme != obj._encodingScheme) - { - ivarsEqual = false; - } - - if (this._tdlType != obj._tdlType) - { - ivarsEqual = false; - } - - if (this._sampleRate != obj._sampleRate) - { - ivarsEqual = false; - } - - if (this._dataLength != obj._dataLength) - { - ivarsEqual = false; - } - - if (this._samples != obj._samples) - { - ivarsEqual = false; - } - - if (!this._data.Equals(obj._data)) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._encodingScheme.GetHashCode(); - result = GenerateHash(result) ^ this._tdlType.GetHashCode(); - result = GenerateHash(result) ^ this._sampleRate.GetHashCode(); - result = GenerateHash(result) ^ this._dataLength.GetHashCode(); - result = GenerateHash(result) ^ this._samples.GetHashCode(); - - if (this._data.Length > 0) - { - for (int idx = 0; idx < this._data.Length; idx++) - { - result = GenerateHash(result) ^ this._data[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.8.2. Detailed information about a radio transmitter. This PDU requires manually written code to complete. The encodingScheme field can be used in multiple ways, which requires hand-written code to finish. UNFINISHED + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(OneByteChunk))] + public partial class SignalPdu : RadioCommunicationsFamilyPdu, IEquatable + { + /// + /// encoding scheme used, and enumeration + /// + private ushort _encodingScheme; + + /// + /// tdl type + /// + private ushort _tdlType; + + /// + /// sample rate + /// + private uint _sampleRate; + + /// + /// length od data + /// + private short _dataLength; + + /// + /// number of samples + /// + private short _samples; + + /// + /// list of eight bit values + /// + private byte[] _data; + + /// + /// Initializes a new instance of the class. + /// + public SignalPdu() + { + PduType = (byte)26; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(SignalPdu left, SignalPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(SignalPdu left, SignalPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 2; // this._encodingScheme + marshalSize += 2; // this._tdlType + marshalSize += 4; // this._sampleRate + marshalSize += 2; // this._dataLength + marshalSize += 2; // this._samples + marshalSize += this._data.Length; + return marshalSize; + } + + /// + /// Gets or sets the encoding scheme used, and enumeration + /// + [XmlElement(Type = typeof(ushort), ElementName = "encodingScheme")] + public ushort EncodingScheme + { + get + { + return this._encodingScheme; + } + + set + { + this._encodingScheme = value; + } + } + + /// + /// Gets or sets the tdl type + /// + [XmlElement(Type = typeof(ushort), ElementName = "tdlType")] + public ushort TdlType + { + get + { + return this._tdlType; + } + + set + { + this._tdlType = value; + } + } + + /// + /// Gets or sets the sample rate + /// + [XmlElement(Type = typeof(uint), ElementName = "sampleRate")] + public uint SampleRate + { + get + { + return this._sampleRate; + } + + set + { + this._sampleRate = value; + } + } + + /// + /// Gets or sets the length od data + /// + /// + /// This value must be set to the number of bits that will be used from the Data field. Normally this value would be in increments of 8. If this is the case then multiply the number of bytes used in the Data field by 8 and store that number here.ny computations. + /// + [XmlElement(Type = typeof(short), ElementName = "dataLength")] + public short DataLength + { + get + { + return this._dataLength; + } + + set + { + this._dataLength = value; + } + } + + /// + /// Gets or sets the number of samples + /// + [XmlElement(Type = typeof(short), ElementName = "samples")] + public short Samples + { + get + { + return this._samples; + } + + set + { + this._samples = value; + } + } + + /// + /// Gets or sets the list of eight bit values + /// + [XmlElement(ElementName = "dataList", DataType = "hexBinary")] + public byte[] Data + { + get + { + return this._data; + } + + set + { + this._data = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._encodingScheme); + dos.WriteUnsignedShort((ushort)this._tdlType); + dos.WriteUnsignedInt((uint)this._sampleRate); + dos.WriteShort((short)((this._dataLength == 0 && this._data.Length > 0) ? this._data.Length * 8 : this._dataLength)); //09062009 Post processed. If value is zero then default to every byte will use all 8 bits + dos.WriteShort((short)this._samples); + + dos.WriteByte(this._data); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._encodingScheme = dis.ReadUnsignedShort(); + this._tdlType = dis.ReadUnsignedShort(); + this._sampleRate = dis.ReadUnsignedInt(); + this._dataLength = dis.ReadShort(); + this._samples = dis.ReadShort(); + + this._data = dis.ReadByteArray((this._dataLength / 8) + (this._dataLength % 8 > 0 ? 1 : 0)); //09062009 Post processed. Needed to convert from bits to bytes + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._encodingScheme.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._tdlType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._sampleRate.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._data.Length.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._samples.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + foreach (byte b in this._data) + { + sb.Append(b.ToString("X2", CultureInfo.InvariantCulture)); + } + + sb.AppendLine(""); + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as SignalPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(SignalPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._encodingScheme != obj._encodingScheme) + { + ivarsEqual = false; + } + + if (this._tdlType != obj._tdlType) + { + ivarsEqual = false; + } + + if (this._sampleRate != obj._sampleRate) + { + ivarsEqual = false; + } + + if (this._dataLength != obj._dataLength) + { + ivarsEqual = false; + } + + if (this._samples != obj._samples) + { + ivarsEqual = false; + } + + if (!this._data.Equals(obj._data)) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._encodingScheme.GetHashCode(); + result = GenerateHash(result) ^ this._tdlType.GetHashCode(); + result = GenerateHash(result) ^ this._sampleRate.GetHashCode(); + result = GenerateHash(result) ^ this._dataLength.GetHashCode(); + result = GenerateHash(result) ^ this._samples.GetHashCode(); + + if (this._data.Length > 0) + { + for (int idx = 0; idx < this._data.Length; idx++) + { + result = GenerateHash(result) ^ this._data[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/SimulationAddress.cs b/Libs/CsharpDis6/Dis1998/Generated/SimulationAddress.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/SimulationAddress.cs rename to Libs/CsharpDis6/Dis1998/Generated/SimulationAddress.cs index 8ff6f7d..6c4ad18 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/SimulationAddress.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/SimulationAddress.cs @@ -1,332 +1,332 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.2.14.1. A Simulation Address record shall consist of the Site Identification number and the Application Identification number. - /// - [Serializable] - [XmlRoot] - public partial class SimulationAddress - { - /// - /// The site ID - /// - private ushort _site; - - /// - /// The application ID - /// - private ushort _application; - - /// - /// Initializes a new instance of the class. - /// - public SimulationAddress() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(SimulationAddress left, SimulationAddress right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(SimulationAddress left, SimulationAddress right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 2; // this._site - marshalSize += 2; // this._application - return marshalSize; - } - - /// - /// Gets or sets the The site ID - /// - [XmlElement(Type = typeof(ushort), ElementName = "site")] - public ushort Site - { - get - { - return this._site; - } - - set - { - this._site = value; - } - } - - /// - /// Gets or sets the The application ID - /// - [XmlElement(Type = typeof(ushort), ElementName = "application")] - public ushort Application - { - get - { - return this._application; - } - - set - { - this._application = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._site); - dos.WriteUnsignedShort((ushort)this._application); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._site = dis.ReadUnsignedShort(); - this._application = dis.ReadUnsignedShort(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._site.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._application.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as SimulationAddress; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(SimulationAddress obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._site != obj._site) - { - ivarsEqual = false; - } - - if (this._application != obj._application) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._site.GetHashCode(); - result = GenerateHash(result) ^ this._application.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.2.14.1. A Simulation Address record shall consist of the Site Identification number and the Application Identification number. + /// + [Serializable] + [XmlRoot] + public partial class SimulationAddress + { + /// + /// The site ID + /// + private ushort _site; + + /// + /// The application ID + /// + private ushort _application; + + /// + /// Initializes a new instance of the class. + /// + public SimulationAddress() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(SimulationAddress left, SimulationAddress right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(SimulationAddress left, SimulationAddress right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 2; // this._site + marshalSize += 2; // this._application + return marshalSize; + } + + /// + /// Gets or sets the The site ID + /// + [XmlElement(Type = typeof(ushort), ElementName = "site")] + public ushort Site + { + get + { + return this._site; + } + + set + { + this._site = value; + } + } + + /// + /// Gets or sets the The application ID + /// + [XmlElement(Type = typeof(ushort), ElementName = "application")] + public ushort Application + { + get + { + return this._application; + } + + set + { + this._application = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._site); + dos.WriteUnsignedShort((ushort)this._application); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._site = dis.ReadUnsignedShort(); + this._application = dis.ReadUnsignedShort(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._site.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._application.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as SimulationAddress; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(SimulationAddress obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._site != obj._site) + { + ivarsEqual = false; + } + + if (this._application != obj._application) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._site.GetHashCode(); + result = GenerateHash(result) ^ this._application.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/SimulationManagementFamilyPdu.cs b/Libs/CsharpDis6/Dis1998/Generated/SimulationManagementFamilyPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/SimulationManagementFamilyPdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/SimulationManagementFamilyPdu.cs index b8982a4..8d99264 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/SimulationManagementFamilyPdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/SimulationManagementFamilyPdu.cs @@ -1,341 +1,341 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.6. Abstract superclass for PDUs relating to the simulation itself. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - public partial class SimulationManagementFamilyPdu : Pdu, IEquatable - { - /// - /// Entity that is sending message - /// - private EntityID _originatingEntityID = new EntityID(); - - /// - /// Entity that is intended to receive message - /// - private EntityID _receivingEntityID = new EntityID(); - - /// - /// Initializes a new instance of the class. - /// - public SimulationManagementFamilyPdu() - { - ProtocolFamily = (byte)5; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(SimulationManagementFamilyPdu left, SimulationManagementFamilyPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(SimulationManagementFamilyPdu left, SimulationManagementFamilyPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._originatingEntityID.GetMarshalledSize(); // this._originatingEntityID - marshalSize += this._receivingEntityID.GetMarshalledSize(); // this._receivingEntityID - return marshalSize; - } - - /// - /// Gets or sets the Entity that is sending message - /// - [XmlElement(Type = typeof(EntityID), ElementName = "originatingEntityID")] - public EntityID OriginatingEntityID - { - get - { - return this._originatingEntityID; - } - - set - { - this._originatingEntityID = value; - } - } - - /// - /// Gets or sets the Entity that is intended to receive message - /// - [XmlElement(Type = typeof(EntityID), ElementName = "receivingEntityID")] - public EntityID ReceivingEntityID - { - get - { - return this._receivingEntityID; - } - - set - { - this._receivingEntityID = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public virtual void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._originatingEntityID.Marshal(dos); - this._receivingEntityID.Marshal(dos); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._originatingEntityID.Unmarshal(dis); - this._receivingEntityID.Unmarshal(dis); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._originatingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._receivingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as SimulationManagementFamilyPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(SimulationManagementFamilyPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._originatingEntityID.Equals(obj._originatingEntityID)) - { - ivarsEqual = false; - } - - if (!this._receivingEntityID.Equals(obj._receivingEntityID)) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._originatingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._receivingEntityID.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.6. Abstract superclass for PDUs relating to the simulation itself. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + public partial class SimulationManagementFamilyPdu : Pdu, IEquatable + { + /// + /// Entity that is sending message + /// + private EntityID _originatingEntityID = new EntityID(); + + /// + /// Entity that is intended to receive message + /// + private EntityID _receivingEntityID = new EntityID(); + + /// + /// Initializes a new instance of the class. + /// + public SimulationManagementFamilyPdu() + { + ProtocolFamily = (byte)5; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(SimulationManagementFamilyPdu left, SimulationManagementFamilyPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(SimulationManagementFamilyPdu left, SimulationManagementFamilyPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._originatingEntityID.GetMarshalledSize(); // this._originatingEntityID + marshalSize += this._receivingEntityID.GetMarshalledSize(); // this._receivingEntityID + return marshalSize; + } + + /// + /// Gets or sets the Entity that is sending message + /// + [XmlElement(Type = typeof(EntityID), ElementName = "originatingEntityID")] + public EntityID OriginatingEntityID + { + get + { + return this._originatingEntityID; + } + + set + { + this._originatingEntityID = value; + } + } + + /// + /// Gets or sets the Entity that is intended to receive message + /// + [XmlElement(Type = typeof(EntityID), ElementName = "receivingEntityID")] + public EntityID ReceivingEntityID + { + get + { + return this._receivingEntityID; + } + + set + { + this._receivingEntityID = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public virtual void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._originatingEntityID.Marshal(dos); + this._receivingEntityID.Marshal(dos); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._originatingEntityID.Unmarshal(dis); + this._receivingEntityID.Unmarshal(dis); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._originatingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._receivingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as SimulationManagementFamilyPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(SimulationManagementFamilyPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._originatingEntityID.Equals(obj._originatingEntityID)) + { + ivarsEqual = false; + } + + if (!this._receivingEntityID.Equals(obj._receivingEntityID)) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._originatingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._receivingEntityID.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/SimulationManagementWithReliabilityFamilyPdu.cs b/Libs/CsharpDis6/Dis1998/Generated/SimulationManagementWithReliabilityFamilyPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/SimulationManagementWithReliabilityFamilyPdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/SimulationManagementWithReliabilityFamilyPdu.cs index d706f38..f26861e 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/SimulationManagementWithReliabilityFamilyPdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/SimulationManagementWithReliabilityFamilyPdu.cs @@ -1,341 +1,341 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.12: Abstract superclass for reliable simulation management PDUs - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - public partial class SimulationManagementWithReliabilityFamilyPdu : Pdu, IEquatable - { - /// - /// Object originatig the request - /// - private EntityID _originatingEntityID = new EntityID(); - - /// - /// Object with which this point object is associated - /// - private EntityID _receivingEntityID = new EntityID(); - - /// - /// Initializes a new instance of the class. - /// - public SimulationManagementWithReliabilityFamilyPdu() - { - ProtocolFamily = (byte)10; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(SimulationManagementWithReliabilityFamilyPdu left, SimulationManagementWithReliabilityFamilyPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(SimulationManagementWithReliabilityFamilyPdu left, SimulationManagementWithReliabilityFamilyPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._originatingEntityID.GetMarshalledSize(); // this._originatingEntityID - marshalSize += this._receivingEntityID.GetMarshalledSize(); // this._receivingEntityID - return marshalSize; - } - - /// - /// Gets or sets the Object originatig the request - /// - [XmlElement(Type = typeof(EntityID), ElementName = "originatingEntityID")] - public EntityID OriginatingEntityID - { - get - { - return this._originatingEntityID; - } - - set - { - this._originatingEntityID = value; - } - } - - /// - /// Gets or sets the Object with which this point object is associated - /// - [XmlElement(Type = typeof(EntityID), ElementName = "receivingEntityID")] - public EntityID ReceivingEntityID - { - get - { - return this._receivingEntityID; - } - - set - { - this._receivingEntityID = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public virtual void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._originatingEntityID.Marshal(dos); - this._receivingEntityID.Marshal(dos); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._originatingEntityID.Unmarshal(dis); - this._receivingEntityID.Unmarshal(dis); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._originatingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._receivingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as SimulationManagementWithReliabilityFamilyPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(SimulationManagementWithReliabilityFamilyPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._originatingEntityID.Equals(obj._originatingEntityID)) - { - ivarsEqual = false; - } - - if (!this._receivingEntityID.Equals(obj._receivingEntityID)) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._originatingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._receivingEntityID.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.12: Abstract superclass for reliable simulation management PDUs + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + public partial class SimulationManagementWithReliabilityFamilyPdu : Pdu, IEquatable + { + /// + /// Object originatig the request + /// + private EntityID _originatingEntityID = new EntityID(); + + /// + /// Object with which this point object is associated + /// + private EntityID _receivingEntityID = new EntityID(); + + /// + /// Initializes a new instance of the class. + /// + public SimulationManagementWithReliabilityFamilyPdu() + { + ProtocolFamily = (byte)10; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(SimulationManagementWithReliabilityFamilyPdu left, SimulationManagementWithReliabilityFamilyPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(SimulationManagementWithReliabilityFamilyPdu left, SimulationManagementWithReliabilityFamilyPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._originatingEntityID.GetMarshalledSize(); // this._originatingEntityID + marshalSize += this._receivingEntityID.GetMarshalledSize(); // this._receivingEntityID + return marshalSize; + } + + /// + /// Gets or sets the Object originatig the request + /// + [XmlElement(Type = typeof(EntityID), ElementName = "originatingEntityID")] + public EntityID OriginatingEntityID + { + get + { + return this._originatingEntityID; + } + + set + { + this._originatingEntityID = value; + } + } + + /// + /// Gets or sets the Object with which this point object is associated + /// + [XmlElement(Type = typeof(EntityID), ElementName = "receivingEntityID")] + public EntityID ReceivingEntityID + { + get + { + return this._receivingEntityID; + } + + set + { + this._receivingEntityID = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public virtual void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._originatingEntityID.Marshal(dos); + this._receivingEntityID.Marshal(dos); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._originatingEntityID.Unmarshal(dis); + this._receivingEntityID.Unmarshal(dis); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._originatingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._receivingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as SimulationManagementWithReliabilityFamilyPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(SimulationManagementWithReliabilityFamilyPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._originatingEntityID.Equals(obj._originatingEntityID)) + { + ivarsEqual = false; + } + + if (!this._receivingEntityID.Equals(obj._receivingEntityID)) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._originatingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._receivingEntityID.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/SixByteChunk.cs b/Libs/CsharpDis6/Dis1998/Generated/SixByteChunk.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/SixByteChunk.cs rename to Libs/CsharpDis6/Dis1998/Generated/SixByteChunk.cs index 21d5f6c..0b2ba22 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/SixByteChunk.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/SixByteChunk.cs @@ -1,324 +1,324 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// 48 bit piece of data - /// - [Serializable] - [XmlRoot] - public partial class SixByteChunk - { - /// - /// six bytes of arbitrary data - /// - private byte[] _otherParameters = new byte[6]; - - /// - /// Initializes a new instance of the class. - /// - public SixByteChunk() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(SixByteChunk left, SixByteChunk right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(SixByteChunk left, SixByteChunk right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 6 * 1; // _otherParameters - return marshalSize; - } - - /// - /// Gets or sets the six bytes of arbitrary data - /// - [XmlArray(ElementName = "otherParameters")] - public byte[] OtherParameters - { - get - { - return this._otherParameters; - } - - set - { - this._otherParameters = value; - } -} - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - for (int idx = 0; idx < this._otherParameters.Length; idx++) - { - dos.WriteByte(this._otherParameters[idx]); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - for (int idx = 0; idx < this._otherParameters.Length; idx++) - { - this._otherParameters[idx] = dis.ReadByte(); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - for (int idx = 0; idx < this._otherParameters.Length; idx++) - { - sb.AppendLine("" + this._otherParameters[idx] + ""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as SixByteChunk; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(SixByteChunk obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (obj._otherParameters.Length != 6) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < 6; idx++) - { - if (this._otherParameters[idx] != obj._otherParameters[idx]) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - for (int idx = 0; idx < 6; idx++) - { - result = GenerateHash(result) ^ this._otherParameters[idx].GetHashCode(); - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// 48 bit piece of data + /// + [Serializable] + [XmlRoot] + public partial class SixByteChunk + { + /// + /// six bytes of arbitrary data + /// + private byte[] _otherParameters = new byte[6]; + + /// + /// Initializes a new instance of the class. + /// + public SixByteChunk() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(SixByteChunk left, SixByteChunk right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(SixByteChunk left, SixByteChunk right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 6 * 1; // _otherParameters + return marshalSize; + } + + /// + /// Gets or sets the six bytes of arbitrary data + /// + [XmlArray(ElementName = "otherParameters")] + public byte[] OtherParameters + { + get + { + return this._otherParameters; + } + + set + { + this._otherParameters = value; + } +} + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + for (int idx = 0; idx < this._otherParameters.Length; idx++) + { + dos.WriteByte(this._otherParameters[idx]); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + for (int idx = 0; idx < this._otherParameters.Length; idx++) + { + this._otherParameters[idx] = dis.ReadByte(); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + for (int idx = 0; idx < this._otherParameters.Length; idx++) + { + sb.AppendLine("" + this._otherParameters[idx] + ""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as SixByteChunk; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(SixByteChunk obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (obj._otherParameters.Length != 6) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < 6; idx++) + { + if (this._otherParameters[idx] != obj._otherParameters[idx]) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + for (int idx = 0; idx < 6; idx++) + { + result = GenerateHash(result) ^ this._otherParameters[idx].GetHashCode(); + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/SphericalHarmonicAntennaPattern.cs b/Libs/CsharpDis6/Dis1998/Generated/SphericalHarmonicAntennaPattern.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/SphericalHarmonicAntennaPattern.cs rename to Libs/CsharpDis6/Dis1998/Generated/SphericalHarmonicAntennaPattern.cs index 2852284..85db9cf 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/SphericalHarmonicAntennaPattern.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/SphericalHarmonicAntennaPattern.cs @@ -1,297 +1,297 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.2.4.3. Used when the antenna pattern type in the transmitter pdu is of value 2. Specified the direction and radiation pattern from a radio transmitter's antenna. NOTE: this class must be hand-coded to clean up some implementation details. - /// - [Serializable] - [XmlRoot] - public partial class SphericalHarmonicAntennaPattern - { - private byte _order; - - /// - /// Initializes a new instance of the class. - /// - public SphericalHarmonicAntennaPattern() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(SphericalHarmonicAntennaPattern left, SphericalHarmonicAntennaPattern right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(SphericalHarmonicAntennaPattern left, SphericalHarmonicAntennaPattern right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 1; // this._order - return marshalSize; - } - - /// - /// Gets or sets the order - /// - [XmlElement(Type = typeof(byte), ElementName = "order")] - public byte Order - { - get - { - return this._order; - } - - set - { - this._order = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteByte((byte)this._order); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._order = dis.ReadByte(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._order.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as SphericalHarmonicAntennaPattern; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(SphericalHarmonicAntennaPattern obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._order != obj._order) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._order.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.2.4.3. Used when the antenna pattern type in the transmitter pdu is of value 2. Specified the direction and radiation pattern from a radio transmitter's antenna. NOTE: this class must be hand-coded to clean up some implementation details. + /// + [Serializable] + [XmlRoot] + public partial class SphericalHarmonicAntennaPattern + { + private byte _order; + + /// + /// Initializes a new instance of the class. + /// + public SphericalHarmonicAntennaPattern() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(SphericalHarmonicAntennaPattern left, SphericalHarmonicAntennaPattern right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(SphericalHarmonicAntennaPattern left, SphericalHarmonicAntennaPattern right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._order + return marshalSize; + } + + /// + /// Gets or sets the order + /// + [XmlElement(Type = typeof(byte), ElementName = "order")] + public byte Order + { + get + { + return this._order; + } + + set + { + this._order = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteByte((byte)this._order); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._order = dis.ReadByte(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._order.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as SphericalHarmonicAntennaPattern; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(SphericalHarmonicAntennaPattern obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._order != obj._order) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._order.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/StartResumePdu.cs b/Libs/CsharpDis6/Dis1998/Generated/StartResumePdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/StartResumePdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/StartResumePdu.cs index 2917790..f4a6d46 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/StartResumePdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/StartResumePdu.cs @@ -1,373 +1,373 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.2.6.3. Start or resume an exercise. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(ClockTime))] - public partial class StartResumePdu : SimulationManagementFamilyPdu, IEquatable - { - /// - /// UTC time at which the simulation shall start or resume - /// - private ClockTime _realWorldTime = new ClockTime(); - - /// - /// Simulation clock time at which the simulation shall start or resume - /// - private ClockTime _simulationTime = new ClockTime(); - - /// - /// Identifier for the request - /// - private uint _requestID; - - /// - /// Initializes a new instance of the class. - /// - public StartResumePdu() - { - PduType = (byte)13; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(StartResumePdu left, StartResumePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(StartResumePdu left, StartResumePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._realWorldTime.GetMarshalledSize(); // this._realWorldTime - marshalSize += this._simulationTime.GetMarshalledSize(); // this._simulationTime - marshalSize += 4; // this._requestID - return marshalSize; - } - - /// - /// Gets or sets the UTC time at which the simulation shall start or resume - /// - [XmlElement(Type = typeof(ClockTime), ElementName = "realWorldTime")] - public ClockTime RealWorldTime - { - get - { - return this._realWorldTime; - } - - set - { - this._realWorldTime = value; - } - } - - /// - /// Gets or sets the Simulation clock time at which the simulation shall start or resume - /// - [XmlElement(Type = typeof(ClockTime), ElementName = "simulationTime")] - public ClockTime SimulationTime - { - get - { - return this._simulationTime; - } - - set - { - this._simulationTime = value; - } - } - - /// - /// Gets or sets the Identifier for the request - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._realWorldTime.Marshal(dos); - this._simulationTime.Marshal(dos); - dos.WriteUnsignedInt((uint)this._requestID); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._realWorldTime.Unmarshal(dis); - this._simulationTime.Unmarshal(dis); - this._requestID = dis.ReadUnsignedInt(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._realWorldTime.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._simulationTime.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as StartResumePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(StartResumePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._realWorldTime.Equals(obj._realWorldTime)) - { - ivarsEqual = false; - } - - if (!this._simulationTime.Equals(obj._simulationTime)) - { - ivarsEqual = false; - } - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._realWorldTime.GetHashCode(); - result = GenerateHash(result) ^ this._simulationTime.GetHashCode(); - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.2.6.3. Start or resume an exercise. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(ClockTime))] + public partial class StartResumePdu : SimulationManagementFamilyPdu, IEquatable + { + /// + /// UTC time at which the simulation shall start or resume + /// + private ClockTime _realWorldTime = new ClockTime(); + + /// + /// Simulation clock time at which the simulation shall start or resume + /// + private ClockTime _simulationTime = new ClockTime(); + + /// + /// Identifier for the request + /// + private uint _requestID; + + /// + /// Initializes a new instance of the class. + /// + public StartResumePdu() + { + PduType = (byte)13; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(StartResumePdu left, StartResumePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(StartResumePdu left, StartResumePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._realWorldTime.GetMarshalledSize(); // this._realWorldTime + marshalSize += this._simulationTime.GetMarshalledSize(); // this._simulationTime + marshalSize += 4; // this._requestID + return marshalSize; + } + + /// + /// Gets or sets the UTC time at which the simulation shall start or resume + /// + [XmlElement(Type = typeof(ClockTime), ElementName = "realWorldTime")] + public ClockTime RealWorldTime + { + get + { + return this._realWorldTime; + } + + set + { + this._realWorldTime = value; + } + } + + /// + /// Gets or sets the Simulation clock time at which the simulation shall start or resume + /// + [XmlElement(Type = typeof(ClockTime), ElementName = "simulationTime")] + public ClockTime SimulationTime + { + get + { + return this._simulationTime; + } + + set + { + this._simulationTime = value; + } + } + + /// + /// Gets or sets the Identifier for the request + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._realWorldTime.Marshal(dos); + this._simulationTime.Marshal(dos); + dos.WriteUnsignedInt((uint)this._requestID); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._realWorldTime.Unmarshal(dis); + this._simulationTime.Unmarshal(dis); + this._requestID = dis.ReadUnsignedInt(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._realWorldTime.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._simulationTime.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as StartResumePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(StartResumePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._realWorldTime.Equals(obj._realWorldTime)) + { + ivarsEqual = false; + } + + if (!this._simulationTime.Equals(obj._simulationTime)) + { + ivarsEqual = false; + } + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._realWorldTime.GetHashCode(); + result = GenerateHash(result) ^ this._simulationTime.GetHashCode(); + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/StartResumeReliablePdu.cs b/Libs/CsharpDis6/Dis1998/Generated/StartResumeReliablePdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/StartResumeReliablePdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/StartResumeReliablePdu.cs index 9e0831d..7baa785 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/StartResumeReliablePdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/StartResumeReliablePdu.cs @@ -1,469 +1,469 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.12.3: Start resume simulation, relaible. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(ClockTime))] - public partial class StartResumeReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable - { - /// - /// time in real world for this operation to happen - /// - private ClockTime _realWorldTime = new ClockTime(); - - /// - /// time in simulation for the simulation to resume - /// - private ClockTime _simulationTime = new ClockTime(); - - /// - /// level of reliability service used for this transaction - /// - private byte _requiredReliabilityService; - - /// - /// padding - /// - private ushort _pad1; - - /// - /// padding - /// - private byte _pad2; - - /// - /// Request ID - /// - private uint _requestID; - - /// - /// Initializes a new instance of the class. - /// - public StartResumeReliablePdu() - { - PduType = (byte)53; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(StartResumeReliablePdu left, StartResumeReliablePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(StartResumeReliablePdu left, StartResumeReliablePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._realWorldTime.GetMarshalledSize(); // this._realWorldTime - marshalSize += this._simulationTime.GetMarshalledSize(); // this._simulationTime - marshalSize += 1; // this._requiredReliabilityService - marshalSize += 2; // this._pad1 - marshalSize += 1; // this._pad2 - marshalSize += 4; // this._requestID - return marshalSize; - } - - /// - /// Gets or sets the time in real world for this operation to happen - /// - [XmlElement(Type = typeof(ClockTime), ElementName = "realWorldTime")] - public ClockTime RealWorldTime - { - get - { - return this._realWorldTime; - } - - set - { - this._realWorldTime = value; - } - } - - /// - /// Gets or sets the time in simulation for the simulation to resume - /// - [XmlElement(Type = typeof(ClockTime), ElementName = "simulationTime")] - public ClockTime SimulationTime - { - get - { - return this._simulationTime; - } - - set - { - this._simulationTime = value; - } - } - - /// - /// Gets or sets the level of reliability service used for this transaction - /// - [XmlElement(Type = typeof(byte), ElementName = "requiredReliabilityService")] - public byte RequiredReliabilityService - { - get - { - return this._requiredReliabilityService; - } - - set - { - this._requiredReliabilityService = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(ushort), ElementName = "pad1")] - public ushort Pad1 - { - get - { - return this._pad1; - } - - set - { - this._pad1 = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "pad2")] - public byte Pad2 - { - get - { - return this._pad2; - } - - set - { - this._pad2 = value; - } - } - - /// - /// Gets or sets the Request ID - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._realWorldTime.Marshal(dos); - this._simulationTime.Marshal(dos); - dos.WriteUnsignedByte((byte)this._requiredReliabilityService); - dos.WriteUnsignedShort((ushort)this._pad1); - dos.WriteUnsignedByte((byte)this._pad2); - dos.WriteUnsignedInt((uint)this._requestID); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._realWorldTime.Unmarshal(dis); - this._simulationTime.Unmarshal(dis); - this._requiredReliabilityService = dis.ReadUnsignedByte(); - this._pad1 = dis.ReadUnsignedShort(); - this._pad2 = dis.ReadUnsignedByte(); - this._requestID = dis.ReadUnsignedInt(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._realWorldTime.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._simulationTime.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._requiredReliabilityService.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as StartResumeReliablePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(StartResumeReliablePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._realWorldTime.Equals(obj._realWorldTime)) - { - ivarsEqual = false; - } - - if (!this._simulationTime.Equals(obj._simulationTime)) - { - ivarsEqual = false; - } - - if (this._requiredReliabilityService != obj._requiredReliabilityService) - { - ivarsEqual = false; - } - - if (this._pad1 != obj._pad1) - { - ivarsEqual = false; - } - - if (this._pad2 != obj._pad2) - { - ivarsEqual = false; - } - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._realWorldTime.GetHashCode(); - result = GenerateHash(result) ^ this._simulationTime.GetHashCode(); - result = GenerateHash(result) ^ this._requiredReliabilityService.GetHashCode(); - result = GenerateHash(result) ^ this._pad1.GetHashCode(); - result = GenerateHash(result) ^ this._pad2.GetHashCode(); - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.12.3: Start resume simulation, relaible. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(ClockTime))] + public partial class StartResumeReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable + { + /// + /// time in real world for this operation to happen + /// + private ClockTime _realWorldTime = new ClockTime(); + + /// + /// time in simulation for the simulation to resume + /// + private ClockTime _simulationTime = new ClockTime(); + + /// + /// level of reliability service used for this transaction + /// + private byte _requiredReliabilityService; + + /// + /// padding + /// + private ushort _pad1; + + /// + /// padding + /// + private byte _pad2; + + /// + /// Request ID + /// + private uint _requestID; + + /// + /// Initializes a new instance of the class. + /// + public StartResumeReliablePdu() + { + PduType = (byte)53; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(StartResumeReliablePdu left, StartResumeReliablePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(StartResumeReliablePdu left, StartResumeReliablePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._realWorldTime.GetMarshalledSize(); // this._realWorldTime + marshalSize += this._simulationTime.GetMarshalledSize(); // this._simulationTime + marshalSize += 1; // this._requiredReliabilityService + marshalSize += 2; // this._pad1 + marshalSize += 1; // this._pad2 + marshalSize += 4; // this._requestID + return marshalSize; + } + + /// + /// Gets or sets the time in real world for this operation to happen + /// + [XmlElement(Type = typeof(ClockTime), ElementName = "realWorldTime")] + public ClockTime RealWorldTime + { + get + { + return this._realWorldTime; + } + + set + { + this._realWorldTime = value; + } + } + + /// + /// Gets or sets the time in simulation for the simulation to resume + /// + [XmlElement(Type = typeof(ClockTime), ElementName = "simulationTime")] + public ClockTime SimulationTime + { + get + { + return this._simulationTime; + } + + set + { + this._simulationTime = value; + } + } + + /// + /// Gets or sets the level of reliability service used for this transaction + /// + [XmlElement(Type = typeof(byte), ElementName = "requiredReliabilityService")] + public byte RequiredReliabilityService + { + get + { + return this._requiredReliabilityService; + } + + set + { + this._requiredReliabilityService = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(ushort), ElementName = "pad1")] + public ushort Pad1 + { + get + { + return this._pad1; + } + + set + { + this._pad1 = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "pad2")] + public byte Pad2 + { + get + { + return this._pad2; + } + + set + { + this._pad2 = value; + } + } + + /// + /// Gets or sets the Request ID + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._realWorldTime.Marshal(dos); + this._simulationTime.Marshal(dos); + dos.WriteUnsignedByte((byte)this._requiredReliabilityService); + dos.WriteUnsignedShort((ushort)this._pad1); + dos.WriteUnsignedByte((byte)this._pad2); + dos.WriteUnsignedInt((uint)this._requestID); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._realWorldTime.Unmarshal(dis); + this._simulationTime.Unmarshal(dis); + this._requiredReliabilityService = dis.ReadUnsignedByte(); + this._pad1 = dis.ReadUnsignedShort(); + this._pad2 = dis.ReadUnsignedByte(); + this._requestID = dis.ReadUnsignedInt(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._realWorldTime.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._simulationTime.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._requiredReliabilityService.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as StartResumeReliablePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(StartResumeReliablePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._realWorldTime.Equals(obj._realWorldTime)) + { + ivarsEqual = false; + } + + if (!this._simulationTime.Equals(obj._simulationTime)) + { + ivarsEqual = false; + } + + if (this._requiredReliabilityService != obj._requiredReliabilityService) + { + ivarsEqual = false; + } + + if (this._pad1 != obj._pad1) + { + ivarsEqual = false; + } + + if (this._pad2 != obj._pad2) + { + ivarsEqual = false; + } + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._realWorldTime.GetHashCode(); + result = GenerateHash(result) ^ this._simulationTime.GetHashCode(); + result = GenerateHash(result) ^ this._requiredReliabilityService.GetHashCode(); + result = GenerateHash(result) ^ this._pad1.GetHashCode(); + result = GenerateHash(result) ^ this._pad2.GetHashCode(); + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/StopFreezePdu.cs b/Libs/CsharpDis6/Dis1998/Generated/StopFreezePdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/StopFreezePdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/StopFreezePdu.cs index 5dfff51..5010063 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/StopFreezePdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/StopFreezePdu.cs @@ -1,435 +1,435 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.2.3.4. Stop or freeze an exercise. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(ClockTime))] - public partial class StopFreezePdu : SimulationManagementFamilyPdu, IEquatable - { - /// - /// UTC time at which the simulation shall stop or freeze - /// - private ClockTime _realWorldTime = new ClockTime(); - - /// - /// Reason the simulation was stopped or frozen - /// - private byte _reason; - - /// - /// Internal behavior of the simulation and its appearance while frozento the other participants - /// - private byte _frozenBehavior; - - /// - /// padding - /// - private short _padding1; - - /// - /// Request ID that is unique - /// - private uint _requestID; - - /// - /// Initializes a new instance of the class. - /// - public StopFreezePdu() - { - PduType = (byte)14; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(StopFreezePdu left, StopFreezePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(StopFreezePdu left, StopFreezePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._realWorldTime.GetMarshalledSize(); // this._realWorldTime - marshalSize += 1; // this._reason - marshalSize += 1; // this._frozenBehavior - marshalSize += 2; // this._padding1 - marshalSize += 4; // this._requestID - return marshalSize; - } - - /// - /// Gets or sets the UTC time at which the simulation shall stop or freeze - /// - [XmlElement(Type = typeof(ClockTime), ElementName = "realWorldTime")] - public ClockTime RealWorldTime - { - get - { - return this._realWorldTime; - } - - set - { - this._realWorldTime = value; - } - } - - /// - /// Gets or sets the Reason the simulation was stopped or frozen - /// - [XmlElement(Type = typeof(byte), ElementName = "reason")] - public byte Reason - { - get - { - return this._reason; - } - - set - { - this._reason = value; - } - } - - /// - /// Gets or sets the Internal behavior of the simulation and its appearance while frozento the other participants - /// - [XmlElement(Type = typeof(byte), ElementName = "frozenBehavior")] - public byte FrozenBehavior - { - get - { - return this._frozenBehavior; - } - - set - { - this._frozenBehavior = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(short), ElementName = "padding1")] - public short Padding1 - { - get - { - return this._padding1; - } - - set - { - this._padding1 = value; - } - } - - /// - /// Gets or sets the Request ID that is unique - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._realWorldTime.Marshal(dos); - dos.WriteUnsignedByte((byte)this._reason); - dos.WriteUnsignedByte((byte)this._frozenBehavior); - dos.WriteShort((short)this._padding1); - dos.WriteUnsignedInt((uint)this._requestID); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._realWorldTime.Unmarshal(dis); - this._reason = dis.ReadUnsignedByte(); - this._frozenBehavior = dis.ReadUnsignedByte(); - this._padding1 = dis.ReadShort(); - this._requestID = dis.ReadUnsignedInt(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._realWorldTime.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._reason.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._frozenBehavior.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as StopFreezePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(StopFreezePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._realWorldTime.Equals(obj._realWorldTime)) - { - ivarsEqual = false; - } - - if (this._reason != obj._reason) - { - ivarsEqual = false; - } - - if (this._frozenBehavior != obj._frozenBehavior) - { - ivarsEqual = false; - } - - if (this._padding1 != obj._padding1) - { - ivarsEqual = false; - } - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._realWorldTime.GetHashCode(); - result = GenerateHash(result) ^ this._reason.GetHashCode(); - result = GenerateHash(result) ^ this._frozenBehavior.GetHashCode(); - result = GenerateHash(result) ^ this._padding1.GetHashCode(); - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.2.3.4. Stop or freeze an exercise. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(ClockTime))] + public partial class StopFreezePdu : SimulationManagementFamilyPdu, IEquatable + { + /// + /// UTC time at which the simulation shall stop or freeze + /// + private ClockTime _realWorldTime = new ClockTime(); + + /// + /// Reason the simulation was stopped or frozen + /// + private byte _reason; + + /// + /// Internal behavior of the simulation and its appearance while frozento the other participants + /// + private byte _frozenBehavior; + + /// + /// padding + /// + private short _padding1; + + /// + /// Request ID that is unique + /// + private uint _requestID; + + /// + /// Initializes a new instance of the class. + /// + public StopFreezePdu() + { + PduType = (byte)14; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(StopFreezePdu left, StopFreezePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(StopFreezePdu left, StopFreezePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._realWorldTime.GetMarshalledSize(); // this._realWorldTime + marshalSize += 1; // this._reason + marshalSize += 1; // this._frozenBehavior + marshalSize += 2; // this._padding1 + marshalSize += 4; // this._requestID + return marshalSize; + } + + /// + /// Gets or sets the UTC time at which the simulation shall stop or freeze + /// + [XmlElement(Type = typeof(ClockTime), ElementName = "realWorldTime")] + public ClockTime RealWorldTime + { + get + { + return this._realWorldTime; + } + + set + { + this._realWorldTime = value; + } + } + + /// + /// Gets or sets the Reason the simulation was stopped or frozen + /// + [XmlElement(Type = typeof(byte), ElementName = "reason")] + public byte Reason + { + get + { + return this._reason; + } + + set + { + this._reason = value; + } + } + + /// + /// Gets or sets the Internal behavior of the simulation and its appearance while frozento the other participants + /// + [XmlElement(Type = typeof(byte), ElementName = "frozenBehavior")] + public byte FrozenBehavior + { + get + { + return this._frozenBehavior; + } + + set + { + this._frozenBehavior = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(short), ElementName = "padding1")] + public short Padding1 + { + get + { + return this._padding1; + } + + set + { + this._padding1 = value; + } + } + + /// + /// Gets or sets the Request ID that is unique + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._realWorldTime.Marshal(dos); + dos.WriteUnsignedByte((byte)this._reason); + dos.WriteUnsignedByte((byte)this._frozenBehavior); + dos.WriteShort((short)this._padding1); + dos.WriteUnsignedInt((uint)this._requestID); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._realWorldTime.Unmarshal(dis); + this._reason = dis.ReadUnsignedByte(); + this._frozenBehavior = dis.ReadUnsignedByte(); + this._padding1 = dis.ReadShort(); + this._requestID = dis.ReadUnsignedInt(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._realWorldTime.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._reason.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._frozenBehavior.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as StopFreezePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(StopFreezePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._realWorldTime.Equals(obj._realWorldTime)) + { + ivarsEqual = false; + } + + if (this._reason != obj._reason) + { + ivarsEqual = false; + } + + if (this._frozenBehavior != obj._frozenBehavior) + { + ivarsEqual = false; + } + + if (this._padding1 != obj._padding1) + { + ivarsEqual = false; + } + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._realWorldTime.GetHashCode(); + result = GenerateHash(result) ^ this._reason.GetHashCode(); + result = GenerateHash(result) ^ this._frozenBehavior.GetHashCode(); + result = GenerateHash(result) ^ this._padding1.GetHashCode(); + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/StopFreezeReliablePdu.cs b/Libs/CsharpDis6/Dis1998/Generated/StopFreezeReliablePdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/StopFreezeReliablePdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/StopFreezeReliablePdu.cs index 912d0e9..2d06f25 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/StopFreezeReliablePdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/StopFreezeReliablePdu.cs @@ -1,467 +1,467 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.12.4: Stop freeze simulation, relaible. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(ClockTime))] - public partial class StopFreezeReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable - { - /// - /// time in real world for this operation to happen - /// - private ClockTime _realWorldTime = new ClockTime(); - - /// - /// Reason for stopping/freezing simulation - /// - private byte _reason; - - /// - /// internal behvior of the simulation while frozen - /// - private byte _frozenBehavior; - - /// - /// reliablity level - /// - private byte _requiredReliablityService; - - /// - /// padding - /// - private byte _pad1; - - /// - /// Request ID - /// - private uint _requestID; - - /// - /// Initializes a new instance of the class. - /// - public StopFreezeReliablePdu() - { - PduType = (byte)54; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(StopFreezeReliablePdu left, StopFreezeReliablePdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(StopFreezeReliablePdu left, StopFreezeReliablePdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._realWorldTime.GetMarshalledSize(); // this._realWorldTime - marshalSize += 1; // this._reason - marshalSize += 1; // this._frozenBehavior - marshalSize += 1; // this._requiredReliablityService - marshalSize += 1; // this._pad1 - marshalSize += 4; // this._requestID - return marshalSize; - } - - /// - /// Gets or sets the time in real world for this operation to happen - /// - [XmlElement(Type = typeof(ClockTime), ElementName = "realWorldTime")] - public ClockTime RealWorldTime - { - get - { - return this._realWorldTime; - } - - set - { - this._realWorldTime = value; - } - } - - /// - /// Gets or sets the Reason for stopping/freezing simulation - /// - [XmlElement(Type = typeof(byte), ElementName = "reason")] - public byte Reason - { - get - { - return this._reason; - } - - set - { - this._reason = value; - } - } - - /// - /// Gets or sets the internal behvior of the simulation while frozen - /// - [XmlElement(Type = typeof(byte), ElementName = "frozenBehavior")] - public byte FrozenBehavior - { - get - { - return this._frozenBehavior; - } - - set - { - this._frozenBehavior = value; - } - } - - /// - /// Gets or sets the reliablity level - /// - [XmlElement(Type = typeof(byte), ElementName = "requiredReliablityService")] - public byte RequiredReliablityService - { - get - { - return this._requiredReliablityService; - } - - set - { - this._requiredReliablityService = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "pad1")] - public byte Pad1 - { - get - { - return this._pad1; - } - - set - { - this._pad1 = value; - } - } - - /// - /// Gets or sets the Request ID - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._realWorldTime.Marshal(dos); - dos.WriteUnsignedByte((byte)this._reason); - dos.WriteUnsignedByte((byte)this._frozenBehavior); - dos.WriteUnsignedByte((byte)this._requiredReliablityService); - dos.WriteUnsignedByte((byte)this._pad1); - dos.WriteUnsignedInt((uint)this._requestID); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._realWorldTime.Unmarshal(dis); - this._reason = dis.ReadUnsignedByte(); - this._frozenBehavior = dis.ReadUnsignedByte(); - this._requiredReliablityService = dis.ReadUnsignedByte(); - this._pad1 = dis.ReadUnsignedByte(); - this._requestID = dis.ReadUnsignedInt(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._realWorldTime.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._reason.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._frozenBehavior.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._requiredReliablityService.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as StopFreezeReliablePdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(StopFreezeReliablePdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._realWorldTime.Equals(obj._realWorldTime)) - { - ivarsEqual = false; - } - - if (this._reason != obj._reason) - { - ivarsEqual = false; - } - - if (this._frozenBehavior != obj._frozenBehavior) - { - ivarsEqual = false; - } - - if (this._requiredReliablityService != obj._requiredReliablityService) - { - ivarsEqual = false; - } - - if (this._pad1 != obj._pad1) - { - ivarsEqual = false; - } - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._realWorldTime.GetHashCode(); - result = GenerateHash(result) ^ this._reason.GetHashCode(); - result = GenerateHash(result) ^ this._frozenBehavior.GetHashCode(); - result = GenerateHash(result) ^ this._requiredReliablityService.GetHashCode(); - result = GenerateHash(result) ^ this._pad1.GetHashCode(); - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.12.4: Stop freeze simulation, relaible. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(ClockTime))] + public partial class StopFreezeReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable + { + /// + /// time in real world for this operation to happen + /// + private ClockTime _realWorldTime = new ClockTime(); + + /// + /// Reason for stopping/freezing simulation + /// + private byte _reason; + + /// + /// internal behvior of the simulation while frozen + /// + private byte _frozenBehavior; + + /// + /// reliablity level + /// + private byte _requiredReliablityService; + + /// + /// padding + /// + private byte _pad1; + + /// + /// Request ID + /// + private uint _requestID; + + /// + /// Initializes a new instance of the class. + /// + public StopFreezeReliablePdu() + { + PduType = (byte)54; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(StopFreezeReliablePdu left, StopFreezeReliablePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(StopFreezeReliablePdu left, StopFreezeReliablePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._realWorldTime.GetMarshalledSize(); // this._realWorldTime + marshalSize += 1; // this._reason + marshalSize += 1; // this._frozenBehavior + marshalSize += 1; // this._requiredReliablityService + marshalSize += 1; // this._pad1 + marshalSize += 4; // this._requestID + return marshalSize; + } + + /// + /// Gets or sets the time in real world for this operation to happen + /// + [XmlElement(Type = typeof(ClockTime), ElementName = "realWorldTime")] + public ClockTime RealWorldTime + { + get + { + return this._realWorldTime; + } + + set + { + this._realWorldTime = value; + } + } + + /// + /// Gets or sets the Reason for stopping/freezing simulation + /// + [XmlElement(Type = typeof(byte), ElementName = "reason")] + public byte Reason + { + get + { + return this._reason; + } + + set + { + this._reason = value; + } + } + + /// + /// Gets or sets the internal behvior of the simulation while frozen + /// + [XmlElement(Type = typeof(byte), ElementName = "frozenBehavior")] + public byte FrozenBehavior + { + get + { + return this._frozenBehavior; + } + + set + { + this._frozenBehavior = value; + } + } + + /// + /// Gets or sets the reliablity level + /// + [XmlElement(Type = typeof(byte), ElementName = "requiredReliablityService")] + public byte RequiredReliablityService + { + get + { + return this._requiredReliablityService; + } + + set + { + this._requiredReliablityService = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "pad1")] + public byte Pad1 + { + get + { + return this._pad1; + } + + set + { + this._pad1 = value; + } + } + + /// + /// Gets or sets the Request ID + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._realWorldTime.Marshal(dos); + dos.WriteUnsignedByte((byte)this._reason); + dos.WriteUnsignedByte((byte)this._frozenBehavior); + dos.WriteUnsignedByte((byte)this._requiredReliablityService); + dos.WriteUnsignedByte((byte)this._pad1); + dos.WriteUnsignedInt((uint)this._requestID); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._realWorldTime.Unmarshal(dis); + this._reason = dis.ReadUnsignedByte(); + this._frozenBehavior = dis.ReadUnsignedByte(); + this._requiredReliablityService = dis.ReadUnsignedByte(); + this._pad1 = dis.ReadUnsignedByte(); + this._requestID = dis.ReadUnsignedInt(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._realWorldTime.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._reason.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._frozenBehavior.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._requiredReliablityService.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as StopFreezeReliablePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(StopFreezeReliablePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._realWorldTime.Equals(obj._realWorldTime)) + { + ivarsEqual = false; + } + + if (this._reason != obj._reason) + { + ivarsEqual = false; + } + + if (this._frozenBehavior != obj._frozenBehavior) + { + ivarsEqual = false; + } + + if (this._requiredReliablityService != obj._requiredReliablityService) + { + ivarsEqual = false; + } + + if (this._pad1 != obj._pad1) + { + ivarsEqual = false; + } + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._realWorldTime.GetHashCode(); + result = GenerateHash(result) ^ this._reason.GetHashCode(); + result = GenerateHash(result) ^ this._frozenBehavior.GetHashCode(); + result = GenerateHash(result) ^ this._requiredReliablityService.GetHashCode(); + result = GenerateHash(result) ^ this._pad1.GetHashCode(); + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/SupplyQuantity.cs b/Libs/CsharpDis6/Dis1998/Generated/SupplyQuantity.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/SupplyQuantity.cs rename to Libs/CsharpDis6/Dis1998/Generated/SupplyQuantity.cs index fde70c2..9be956b 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/SupplyQuantity.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/SupplyQuantity.cs @@ -1,335 +1,335 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.2.30. A supply, and the amount of that supply. Similar to an entity kind but with the addition of a quantity. - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityType))] - public partial class SupplyQuantity - { - /// - /// Type of supply - /// - private EntityType _supplyType = new EntityType(); - - /// - /// quantity to be supplied - /// - private byte _quantity; - - /// - /// Initializes a new instance of the class. - /// - public SupplyQuantity() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(SupplyQuantity left, SupplyQuantity right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(SupplyQuantity left, SupplyQuantity right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += this._supplyType.GetMarshalledSize(); // this._supplyType - marshalSize += 1; // this._quantity - return marshalSize; - } - - /// - /// Gets or sets the Type of supply - /// - [XmlElement(Type = typeof(EntityType), ElementName = "supplyType")] - public EntityType SupplyType - { - get - { - return this._supplyType; - } - - set - { - this._supplyType = value; - } - } - - /// - /// Gets or sets the quantity to be supplied - /// - [XmlElement(Type = typeof(byte), ElementName = "quantity")] - public byte Quantity - { - get - { - return this._quantity; - } - - set - { - this._quantity = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - this._supplyType.Marshal(dos); - dos.WriteUnsignedByte((byte)this._quantity); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._supplyType.Unmarshal(dis); - this._quantity = dis.ReadUnsignedByte(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine(""); - this._supplyType.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._quantity.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as SupplyQuantity; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(SupplyQuantity obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (!this._supplyType.Equals(obj._supplyType)) - { - ivarsEqual = false; - } - - if (this._quantity != obj._quantity) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._supplyType.GetHashCode(); - result = GenerateHash(result) ^ this._quantity.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.2.30. A supply, and the amount of that supply. Similar to an entity kind but with the addition of a quantity. + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityType))] + public partial class SupplyQuantity + { + /// + /// Type of supply + /// + private EntityType _supplyType = new EntityType(); + + /// + /// quantity to be supplied + /// + private byte _quantity; + + /// + /// Initializes a new instance of the class. + /// + public SupplyQuantity() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(SupplyQuantity left, SupplyQuantity right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(SupplyQuantity left, SupplyQuantity right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += this._supplyType.GetMarshalledSize(); // this._supplyType + marshalSize += 1; // this._quantity + return marshalSize; + } + + /// + /// Gets or sets the Type of supply + /// + [XmlElement(Type = typeof(EntityType), ElementName = "supplyType")] + public EntityType SupplyType + { + get + { + return this._supplyType; + } + + set + { + this._supplyType = value; + } + } + + /// + /// Gets or sets the quantity to be supplied + /// + [XmlElement(Type = typeof(byte), ElementName = "quantity")] + public byte Quantity + { + get + { + return this._quantity; + } + + set + { + this._quantity = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + this._supplyType.Marshal(dos); + dos.WriteUnsignedByte((byte)this._quantity); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._supplyType.Unmarshal(dis); + this._quantity = dis.ReadUnsignedByte(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine(""); + this._supplyType.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._quantity.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as SupplyQuantity; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(SupplyQuantity obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (!this._supplyType.Equals(obj._supplyType)) + { + ivarsEqual = false; + } + + if (this._quantity != obj._quantity) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._supplyType.GetHashCode(); + result = GenerateHash(result) ^ this._quantity.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/SyntheticEnvironmentFamilyPdu.cs b/Libs/CsharpDis6/Dis1998/Generated/SyntheticEnvironmentFamilyPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/SyntheticEnvironmentFamilyPdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/SyntheticEnvironmentFamilyPdu.cs index 8de4b9a..3d4a959 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/SyntheticEnvironmentFamilyPdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/SyntheticEnvironmentFamilyPdu.cs @@ -1,271 +1,271 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.11: Abstract superclass for synthetic environment PDUs - /// - [Serializable] - [XmlRoot] - public partial class SyntheticEnvironmentFamilyPdu : Pdu, IEquatable - { - /// - /// Initializes a new instance of the class. - /// - public SyntheticEnvironmentFamilyPdu() - { - ProtocolFamily = (byte)9; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(SyntheticEnvironmentFamilyPdu left, SyntheticEnvironmentFamilyPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(SyntheticEnvironmentFamilyPdu left, SyntheticEnvironmentFamilyPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - return marshalSize; - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public virtual void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as SyntheticEnvironmentFamilyPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(SyntheticEnvironmentFamilyPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.11: Abstract superclass for synthetic environment PDUs + /// + [Serializable] + [XmlRoot] + public partial class SyntheticEnvironmentFamilyPdu : Pdu, IEquatable + { + /// + /// Initializes a new instance of the class. + /// + public SyntheticEnvironmentFamilyPdu() + { + ProtocolFamily = (byte)9; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(SyntheticEnvironmentFamilyPdu left, SyntheticEnvironmentFamilyPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(SyntheticEnvironmentFamilyPdu left, SyntheticEnvironmentFamilyPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + return marshalSize; + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public virtual void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as SyntheticEnvironmentFamilyPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(SyntheticEnvironmentFamilyPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/SystemID.cs b/Libs/CsharpDis6/Dis1998/Generated/SystemID.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/SystemID.cs rename to Libs/CsharpDis6/Dis1998/Generated/SystemID.cs index ed431f4..aeda573 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/SystemID.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/SystemID.cs @@ -1,396 +1,396 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// 5.2.58. Used in IFF ATC PDU - /// - [Serializable] - [XmlRoot] - public partial class SystemID - { - /// - /// System Type - /// - private ushort _systemType; - - /// - /// System name, an enumeration - /// - private ushort _systemName; - - /// - /// System mode - /// - private byte _systemMode; - - /// - /// Change Options - /// - private byte _changeOptions; - - /// - /// Initializes a new instance of the class. - /// - public SystemID() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(SystemID left, SystemID right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(SystemID left, SystemID right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 2; // this._systemType - marshalSize += 2; // this._systemName - marshalSize += 1; // this._systemMode - marshalSize += 1; // this._changeOptions - return marshalSize; - } - - /// - /// Gets or sets the System Type - /// - [XmlElement(Type = typeof(ushort), ElementName = "systemType")] - public ushort SystemType - { - get - { - return this._systemType; - } - - set - { - this._systemType = value; - } - } - - /// - /// Gets or sets the System name, an enumeration - /// - [XmlElement(Type = typeof(ushort), ElementName = "systemName")] - public ushort SystemName - { - get - { - return this._systemName; - } - - set - { - this._systemName = value; - } - } - - /// - /// Gets or sets the System mode - /// - [XmlElement(Type = typeof(byte), ElementName = "systemMode")] - public byte SystemMode - { - get - { - return this._systemMode; - } - - set - { - this._systemMode = value; - } - } - - /// - /// Gets or sets the Change Options - /// - [XmlElement(Type = typeof(byte), ElementName = "changeOptions")] - public byte ChangeOptions - { - get - { - return this._changeOptions; - } - - set - { - this._changeOptions = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedShort((ushort)this._systemType); - dos.WriteUnsignedShort((ushort)this._systemName); - dos.WriteUnsignedByte((byte)this._systemMode); - dos.WriteUnsignedByte((byte)this._changeOptions); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._systemType = dis.ReadUnsignedShort(); - this._systemName = dis.ReadUnsignedShort(); - this._systemMode = dis.ReadUnsignedByte(); - this._changeOptions = dis.ReadUnsignedByte(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._systemType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._systemName.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._systemMode.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._changeOptions.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as SystemID; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(SystemID obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._systemType != obj._systemType) - { - ivarsEqual = false; - } - - if (this._systemName != obj._systemName) - { - ivarsEqual = false; - } - - if (this._systemMode != obj._systemMode) - { - ivarsEqual = false; - } - - if (this._changeOptions != obj._changeOptions) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._systemType.GetHashCode(); - result = GenerateHash(result) ^ this._systemName.GetHashCode(); - result = GenerateHash(result) ^ this._systemMode.GetHashCode(); - result = GenerateHash(result) ^ this._changeOptions.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// 5.2.58. Used in IFF ATC PDU + /// + [Serializable] + [XmlRoot] + public partial class SystemID + { + /// + /// System Type + /// + private ushort _systemType; + + /// + /// System name, an enumeration + /// + private ushort _systemName; + + /// + /// System mode + /// + private byte _systemMode; + + /// + /// Change Options + /// + private byte _changeOptions; + + /// + /// Initializes a new instance of the class. + /// + public SystemID() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(SystemID left, SystemID right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(SystemID left, SystemID right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 2; // this._systemType + marshalSize += 2; // this._systemName + marshalSize += 1; // this._systemMode + marshalSize += 1; // this._changeOptions + return marshalSize; + } + + /// + /// Gets or sets the System Type + /// + [XmlElement(Type = typeof(ushort), ElementName = "systemType")] + public ushort SystemType + { + get + { + return this._systemType; + } + + set + { + this._systemType = value; + } + } + + /// + /// Gets or sets the System name, an enumeration + /// + [XmlElement(Type = typeof(ushort), ElementName = "systemName")] + public ushort SystemName + { + get + { + return this._systemName; + } + + set + { + this._systemName = value; + } + } + + /// + /// Gets or sets the System mode + /// + [XmlElement(Type = typeof(byte), ElementName = "systemMode")] + public byte SystemMode + { + get + { + return this._systemMode; + } + + set + { + this._systemMode = value; + } + } + + /// + /// Gets or sets the Change Options + /// + [XmlElement(Type = typeof(byte), ElementName = "changeOptions")] + public byte ChangeOptions + { + get + { + return this._changeOptions; + } + + set + { + this._changeOptions = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._systemType); + dos.WriteUnsignedShort((ushort)this._systemName); + dos.WriteUnsignedByte((byte)this._systemMode); + dos.WriteUnsignedByte((byte)this._changeOptions); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._systemType = dis.ReadUnsignedShort(); + this._systemName = dis.ReadUnsignedShort(); + this._systemMode = dis.ReadUnsignedByte(); + this._changeOptions = dis.ReadUnsignedByte(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._systemType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._systemName.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._systemMode.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._changeOptions.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as SystemID; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(SystemID obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._systemType != obj._systemType) + { + ivarsEqual = false; + } + + if (this._systemName != obj._systemName) + { + ivarsEqual = false; + } + + if (this._systemMode != obj._systemMode) + { + ivarsEqual = false; + } + + if (this._changeOptions != obj._changeOptions) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._systemType.GetHashCode(); + result = GenerateHash(result) ^ this._systemName.GetHashCode(); + result = GenerateHash(result) ^ this._systemMode.GetHashCode(); + result = GenerateHash(result) ^ this._changeOptions.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/TrackJamTarget.cs b/Libs/CsharpDis6/Dis1998/Generated/TrackJamTarget.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/TrackJamTarget.cs rename to Libs/CsharpDis6/Dis1998/Generated/TrackJamTarget.cs index dd34c40..4eef9ab 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/TrackJamTarget.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/TrackJamTarget.cs @@ -1,367 +1,367 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// One track/jam target - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - public partial class TrackJamTarget - { - /// - /// track/jam target - /// - private EntityID _trackJam = new EntityID(); - - /// - /// Emitter ID - /// - private byte _emitterID; - - /// - /// beam ID - /// - private byte _beamID; - - /// - /// Initializes a new instance of the class. - /// - public TrackJamTarget() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(TrackJamTarget left, TrackJamTarget right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(TrackJamTarget left, TrackJamTarget right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += this._trackJam.GetMarshalledSize(); // this._trackJam - marshalSize += 1; // this._emitterID - marshalSize += 1; // this._beamID - return marshalSize; - } - - /// - /// Gets or sets the track/jam target - /// - [XmlElement(Type = typeof(EntityID), ElementName = "trackJam")] - public EntityID TrackJam - { - get - { - return this._trackJam; - } - - set - { - this._trackJam = value; - } - } - - /// - /// Gets or sets the Emitter ID - /// - [XmlElement(Type = typeof(byte), ElementName = "emitterID")] - public byte EmitterID - { - get - { - return this._emitterID; - } - - set - { - this._emitterID = value; - } - } - - /// - /// Gets or sets the beam ID - /// - [XmlElement(Type = typeof(byte), ElementName = "beamID")] - public byte BeamID - { - get - { - return this._beamID; - } - - set - { - this._beamID = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - this._trackJam.Marshal(dos); - dos.WriteUnsignedByte((byte)this._emitterID); - dos.WriteUnsignedByte((byte)this._beamID); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._trackJam.Unmarshal(dis); - this._emitterID = dis.ReadUnsignedByte(); - this._beamID = dis.ReadUnsignedByte(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine(""); - this._trackJam.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._emitterID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._beamID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as TrackJamTarget; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(TrackJamTarget obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (!this._trackJam.Equals(obj._trackJam)) - { - ivarsEqual = false; - } - - if (this._emitterID != obj._emitterID) - { - ivarsEqual = false; - } - - if (this._beamID != obj._beamID) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._trackJam.GetHashCode(); - result = GenerateHash(result) ^ this._emitterID.GetHashCode(); - result = GenerateHash(result) ^ this._beamID.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// One track/jam target + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + public partial class TrackJamTarget + { + /// + /// track/jam target + /// + private EntityID _trackJam = new EntityID(); + + /// + /// Emitter ID + /// + private byte _emitterID; + + /// + /// beam ID + /// + private byte _beamID; + + /// + /// Initializes a new instance of the class. + /// + public TrackJamTarget() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(TrackJamTarget left, TrackJamTarget right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(TrackJamTarget left, TrackJamTarget right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += this._trackJam.GetMarshalledSize(); // this._trackJam + marshalSize += 1; // this._emitterID + marshalSize += 1; // this._beamID + return marshalSize; + } + + /// + /// Gets or sets the track/jam target + /// + [XmlElement(Type = typeof(EntityID), ElementName = "trackJam")] + public EntityID TrackJam + { + get + { + return this._trackJam; + } + + set + { + this._trackJam = value; + } + } + + /// + /// Gets or sets the Emitter ID + /// + [XmlElement(Type = typeof(byte), ElementName = "emitterID")] + public byte EmitterID + { + get + { + return this._emitterID; + } + + set + { + this._emitterID = value; + } + } + + /// + /// Gets or sets the beam ID + /// + [XmlElement(Type = typeof(byte), ElementName = "beamID")] + public byte BeamID + { + get + { + return this._beamID; + } + + set + { + this._beamID = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + this._trackJam.Marshal(dos); + dos.WriteUnsignedByte((byte)this._emitterID); + dos.WriteUnsignedByte((byte)this._beamID); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._trackJam.Unmarshal(dis); + this._emitterID = dis.ReadUnsignedByte(); + this._beamID = dis.ReadUnsignedByte(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine(""); + this._trackJam.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._emitterID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._beamID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as TrackJamTarget; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(TrackJamTarget obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (!this._trackJam.Equals(obj._trackJam)) + { + ivarsEqual = false; + } + + if (this._emitterID != obj._emitterID) + { + ivarsEqual = false; + } + + if (this._beamID != obj._beamID) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._trackJam.GetHashCode(); + result = GenerateHash(result) ^ this._emitterID.GetHashCode(); + result = GenerateHash(result) ^ this._beamID.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/TransferControlRequestPdu.cs b/Libs/CsharpDis6/Dis1998/Generated/TransferControlRequestPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/TransferControlRequestPdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/TransferControlRequestPdu.cs index acdd52f..ecefdc3 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/TransferControlRequestPdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/TransferControlRequestPdu.cs @@ -1,577 +1,577 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.9.3 Information initiating the dyanic allocation and control of simulation entities between two simulation applications. Requires manual cleanup. The padding between record sets is variable. UNFINISHED - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(RecordSet))] - public partial class TransferControlRequestPdu : EntityManagementFamilyPdu, IEquatable - { - /// - /// ID of entity originating request - /// - private EntityID _orginatingEntityID = new EntityID(); - - /// - /// ID of entity receiving request - /// - private EntityID _recevingEntityID = new EntityID(); - - /// - /// ID ofrequest - /// - private uint _requestID; - - /// - /// required level of reliabliity service. - /// - private byte _requiredReliabilityService; - - /// - /// type of transfer desired - /// - private byte _tranferType; - - /// - /// The entity for which control is being requested to transfer - /// - private EntityID _transferEntityID = new EntityID(); - - /// - /// number of record sets to transfer - /// - private byte _numberOfRecordSets; - - /// - /// ^^^This is wrong--the RecordSet class needs more work - /// - private List _recordSets = new List(); - - /// - /// Initializes a new instance of the class. - /// - public TransferControlRequestPdu() - { - PduType = (byte)35; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(TransferControlRequestPdu left, TransferControlRequestPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(TransferControlRequestPdu left, TransferControlRequestPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._orginatingEntityID.GetMarshalledSize(); // this._orginatingEntityID - marshalSize += this._recevingEntityID.GetMarshalledSize(); // this._recevingEntityID - marshalSize += 4; // this._requestID - marshalSize += 1; // this._requiredReliabilityService - marshalSize += 1; // this._tranferType - marshalSize += this._transferEntityID.GetMarshalledSize(); // this._transferEntityID - marshalSize += 1; // this._numberOfRecordSets - for (int idx = 0; idx < this._recordSets.Count; idx++) - { - RecordSet listElement = (RecordSet)this._recordSets[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the ID of entity originating request - /// - [XmlElement(Type = typeof(EntityID), ElementName = "orginatingEntityID")] - public EntityID OrginatingEntityID - { - get - { - return this._orginatingEntityID; - } - - set - { - this._orginatingEntityID = value; - } - } - - /// - /// Gets or sets the ID of entity receiving request - /// - [XmlElement(Type = typeof(EntityID), ElementName = "recevingEntityID")] - public EntityID RecevingEntityID - { - get - { - return this._recevingEntityID; - } - - set - { - this._recevingEntityID = value; - } - } - - /// - /// Gets or sets the ID ofrequest - /// - [XmlElement(Type = typeof(uint), ElementName = "requestID")] - public uint RequestID - { - get - { - return this._requestID; - } - - set - { - this._requestID = value; - } - } - - /// - /// Gets or sets the required level of reliabliity service. - /// - [XmlElement(Type = typeof(byte), ElementName = "requiredReliabilityService")] - public byte RequiredReliabilityService - { - get - { - return this._requiredReliabilityService; - } - - set - { - this._requiredReliabilityService = value; - } - } - - /// - /// Gets or sets the type of transfer desired - /// - [XmlElement(Type = typeof(byte), ElementName = "tranferType")] - public byte TranferType - { - get - { - return this._tranferType; - } - - set - { - this._tranferType = value; - } - } - - /// - /// Gets or sets the The entity for which control is being requested to transfer - /// - [XmlElement(Type = typeof(EntityID), ElementName = "transferEntityID")] - public EntityID TransferEntityID - { - get - { - return this._transferEntityID; - } - - set - { - this._transferEntityID = value; - } - } - - /// - /// Gets or sets the number of record sets to transfer - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfRecordSets method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfRecordSets")] - public byte NumberOfRecordSets - { - get - { - return this._numberOfRecordSets; - } - - set - { - this._numberOfRecordSets = value; - } - } - - /// - /// Gets the ^^^This is wrong--the RecordSet class needs more work - /// - [XmlElement(ElementName = "recordSetsList", Type = typeof(List))] - public List RecordSets - { - get - { - return this._recordSets; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._orginatingEntityID.Marshal(dos); - this._recevingEntityID.Marshal(dos); - dos.WriteUnsignedInt((uint)this._requestID); - dos.WriteUnsignedByte((byte)this._requiredReliabilityService); - dos.WriteUnsignedByte((byte)this._tranferType); - this._transferEntityID.Marshal(dos); - dos.WriteUnsignedByte((byte)this._recordSets.Count); - - for (int idx = 0; idx < this._recordSets.Count; idx++) - { - RecordSet aRecordSet = (RecordSet)this._recordSets[idx]; - aRecordSet.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._orginatingEntityID.Unmarshal(dis); - this._recevingEntityID.Unmarshal(dis); - this._requestID = dis.ReadUnsignedInt(); - this._requiredReliabilityService = dis.ReadUnsignedByte(); - this._tranferType = dis.ReadUnsignedByte(); - this._transferEntityID.Unmarshal(dis); - this._numberOfRecordSets = dis.ReadUnsignedByte(); - - for (int idx = 0; idx < this.NumberOfRecordSets; idx++) - { - RecordSet anX = new RecordSet(); - anX.Unmarshal(dis); - this._recordSets.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._orginatingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._recevingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._requiredReliabilityService.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._tranferType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._transferEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._recordSets.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._recordSets.Count; idx++) - { - sb.AppendLine(""); - RecordSet aRecordSet = (RecordSet)this._recordSets[idx]; - aRecordSet.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as TransferControlRequestPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(TransferControlRequestPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._orginatingEntityID.Equals(obj._orginatingEntityID)) - { - ivarsEqual = false; - } - - if (!this._recevingEntityID.Equals(obj._recevingEntityID)) - { - ivarsEqual = false; - } - - if (this._requestID != obj._requestID) - { - ivarsEqual = false; - } - - if (this._requiredReliabilityService != obj._requiredReliabilityService) - { - ivarsEqual = false; - } - - if (this._tranferType != obj._tranferType) - { - ivarsEqual = false; - } - - if (!this._transferEntityID.Equals(obj._transferEntityID)) - { - ivarsEqual = false; - } - - if (this._numberOfRecordSets != obj._numberOfRecordSets) - { - ivarsEqual = false; - } - - if (this._recordSets.Count != obj._recordSets.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._recordSets.Count; idx++) - { - if (!this._recordSets[idx].Equals(obj._recordSets[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._orginatingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._recevingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._requestID.GetHashCode(); - result = GenerateHash(result) ^ this._requiredReliabilityService.GetHashCode(); - result = GenerateHash(result) ^ this._tranferType.GetHashCode(); - result = GenerateHash(result) ^ this._transferEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfRecordSets.GetHashCode(); - - if (this._recordSets.Count > 0) - { - for (int idx = 0; idx < this._recordSets.Count; idx++) - { - result = GenerateHash(result) ^ this._recordSets[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.9.3 Information initiating the dyanic allocation and control of simulation entities between two simulation applications. Requires manual cleanup. The padding between record sets is variable. UNFINISHED + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(RecordSet))] + public partial class TransferControlRequestPdu : EntityManagementFamilyPdu, IEquatable + { + /// + /// ID of entity originating request + /// + private EntityID _orginatingEntityID = new EntityID(); + + /// + /// ID of entity receiving request + /// + private EntityID _recevingEntityID = new EntityID(); + + /// + /// ID ofrequest + /// + private uint _requestID; + + /// + /// required level of reliabliity service. + /// + private byte _requiredReliabilityService; + + /// + /// type of transfer desired + /// + private byte _tranferType; + + /// + /// The entity for which control is being requested to transfer + /// + private EntityID _transferEntityID = new EntityID(); + + /// + /// number of record sets to transfer + /// + private byte _numberOfRecordSets; + + /// + /// ^^^This is wrong--the RecordSet class needs more work + /// + private List _recordSets = new List(); + + /// + /// Initializes a new instance of the class. + /// + public TransferControlRequestPdu() + { + PduType = (byte)35; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(TransferControlRequestPdu left, TransferControlRequestPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(TransferControlRequestPdu left, TransferControlRequestPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._orginatingEntityID.GetMarshalledSize(); // this._orginatingEntityID + marshalSize += this._recevingEntityID.GetMarshalledSize(); // this._recevingEntityID + marshalSize += 4; // this._requestID + marshalSize += 1; // this._requiredReliabilityService + marshalSize += 1; // this._tranferType + marshalSize += this._transferEntityID.GetMarshalledSize(); // this._transferEntityID + marshalSize += 1; // this._numberOfRecordSets + for (int idx = 0; idx < this._recordSets.Count; idx++) + { + RecordSet listElement = (RecordSet)this._recordSets[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the ID of entity originating request + /// + [XmlElement(Type = typeof(EntityID), ElementName = "orginatingEntityID")] + public EntityID OrginatingEntityID + { + get + { + return this._orginatingEntityID; + } + + set + { + this._orginatingEntityID = value; + } + } + + /// + /// Gets or sets the ID of entity receiving request + /// + [XmlElement(Type = typeof(EntityID), ElementName = "recevingEntityID")] + public EntityID RecevingEntityID + { + get + { + return this._recevingEntityID; + } + + set + { + this._recevingEntityID = value; + } + } + + /// + /// Gets or sets the ID ofrequest + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Gets or sets the required level of reliabliity service. + /// + [XmlElement(Type = typeof(byte), ElementName = "requiredReliabilityService")] + public byte RequiredReliabilityService + { + get + { + return this._requiredReliabilityService; + } + + set + { + this._requiredReliabilityService = value; + } + } + + /// + /// Gets or sets the type of transfer desired + /// + [XmlElement(Type = typeof(byte), ElementName = "tranferType")] + public byte TranferType + { + get + { + return this._tranferType; + } + + set + { + this._tranferType = value; + } + } + + /// + /// Gets or sets the The entity for which control is being requested to transfer + /// + [XmlElement(Type = typeof(EntityID), ElementName = "transferEntityID")] + public EntityID TransferEntityID + { + get + { + return this._transferEntityID; + } + + set + { + this._transferEntityID = value; + } + } + + /// + /// Gets or sets the number of record sets to transfer + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfRecordSets method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfRecordSets")] + public byte NumberOfRecordSets + { + get + { + return this._numberOfRecordSets; + } + + set + { + this._numberOfRecordSets = value; + } + } + + /// + /// Gets the ^^^This is wrong--the RecordSet class needs more work + /// + [XmlElement(ElementName = "recordSetsList", Type = typeof(List))] + public List RecordSets + { + get + { + return this._recordSets; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._orginatingEntityID.Marshal(dos); + this._recevingEntityID.Marshal(dos); + dos.WriteUnsignedInt((uint)this._requestID); + dos.WriteUnsignedByte((byte)this._requiredReliabilityService); + dos.WriteUnsignedByte((byte)this._tranferType); + this._transferEntityID.Marshal(dos); + dos.WriteUnsignedByte((byte)this._recordSets.Count); + + for (int idx = 0; idx < this._recordSets.Count; idx++) + { + RecordSet aRecordSet = (RecordSet)this._recordSets[idx]; + aRecordSet.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._orginatingEntityID.Unmarshal(dis); + this._recevingEntityID.Unmarshal(dis); + this._requestID = dis.ReadUnsignedInt(); + this._requiredReliabilityService = dis.ReadUnsignedByte(); + this._tranferType = dis.ReadUnsignedByte(); + this._transferEntityID.Unmarshal(dis); + this._numberOfRecordSets = dis.ReadUnsignedByte(); + + for (int idx = 0; idx < this.NumberOfRecordSets; idx++) + { + RecordSet anX = new RecordSet(); + anX.Unmarshal(dis); + this._recordSets.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._orginatingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._recevingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._requiredReliabilityService.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._tranferType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._transferEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._recordSets.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._recordSets.Count; idx++) + { + sb.AppendLine(""); + RecordSet aRecordSet = (RecordSet)this._recordSets[idx]; + aRecordSet.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as TransferControlRequestPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(TransferControlRequestPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._orginatingEntityID.Equals(obj._orginatingEntityID)) + { + ivarsEqual = false; + } + + if (!this._recevingEntityID.Equals(obj._recevingEntityID)) + { + ivarsEqual = false; + } + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + if (this._requiredReliabilityService != obj._requiredReliabilityService) + { + ivarsEqual = false; + } + + if (this._tranferType != obj._tranferType) + { + ivarsEqual = false; + } + + if (!this._transferEntityID.Equals(obj._transferEntityID)) + { + ivarsEqual = false; + } + + if (this._numberOfRecordSets != obj._numberOfRecordSets) + { + ivarsEqual = false; + } + + if (this._recordSets.Count != obj._recordSets.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._recordSets.Count; idx++) + { + if (!this._recordSets[idx].Equals(obj._recordSets[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._orginatingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._recevingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + result = GenerateHash(result) ^ this._requiredReliabilityService.GetHashCode(); + result = GenerateHash(result) ^ this._tranferType.GetHashCode(); + result = GenerateHash(result) ^ this._transferEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfRecordSets.GetHashCode(); + + if (this._recordSets.Count > 0) + { + for (int idx = 0; idx < this._recordSets.Count; idx++) + { + result = GenerateHash(result) ^ this._recordSets[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/TransmitterPdu.cs b/Libs/CsharpDis6/Dis1998/Generated/TransmitterPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/TransmitterPdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/TransmitterPdu.cs index 1e35e4e..2b8a9a4 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/TransmitterPdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/TransmitterPdu.cs @@ -1,976 +1,976 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.8.1. Detailed information about a radio transmitter. This PDU requires manually written code to complete, since the modulation parameters are of variable length. UNFINISHED - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(RadioEntityType))] - [XmlInclude(typeof(Vector3Double))] - [XmlInclude(typeof(Vector3Float))] - [XmlInclude(typeof(ModulationType))] - [XmlInclude(typeof(Vector3Float))] - [XmlInclude(typeof(Vector3Float))] - public partial class TransmitterPdu : RadioCommunicationsFamilyPdu, IEquatable - { - /// - /// linear accelleration of entity - /// - private RadioEntityType _radioEntityType = new RadioEntityType(); - - /// - /// transmit state - /// - private byte _transmitState; - - /// - /// input source - /// - private byte _inputSource; - - /// - /// padding - /// - private ushort _padding1; - - /// - /// Location of antenna - /// - private Vector3Double _antennaLocation = new Vector3Double(); - - /// - /// relative location of antenna - /// - private Vector3Float _relativeAntennaLocation = new Vector3Float(); - - /// - /// antenna pattern type - /// - private ushort _antennaPatternType; - - /// - /// atenna pattern length - /// - private ushort _antennaPatternCount; - - /// - /// frequency - /// - private ulong _frequency; - - /// - /// transmit frequency Bandwidth - /// - private float _transmitFrequencyBandwidth; - - /// - /// transmission power - /// - private float _power; - - /// - /// modulation - /// - private ModulationType _modulationType = new ModulationType(); - - /// - /// crypto system enumeration - /// - private ushort _cryptoSystem; - - /// - /// crypto system key identifer - /// - private ushort _cryptoKeyId; - - /// - /// how many modulation parameters we have - /// - private byte _modulationParameterCount; - - /// - /// padding2 - /// - private ushort _padding2; - - /// - /// padding3 - /// - private byte _padding3; - - /// - /// variable length list of modulation parameters - /// - private List _modulationParametersList = new List(); - - /// - /// variable length list of antenna pattern records - /// - private List _antennaPatternList = new List(); - - /// - /// Initializes a new instance of the class. - /// - public TransmitterPdu() - { - PduType = (byte)25; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(TransmitterPdu left, TransmitterPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(TransmitterPdu left, TransmitterPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._radioEntityType.GetMarshalledSize(); // this._radioEntityType - marshalSize += 1; // this._transmitState - marshalSize += 1; // this._inputSource - marshalSize += 2; // this._padding1 - marshalSize += this._antennaLocation.GetMarshalledSize(); // this._antennaLocation - marshalSize += this._relativeAntennaLocation.GetMarshalledSize(); // this._relativeAntennaLocation - marshalSize += 2; // this._antennaPatternType - marshalSize += 2; // this._antennaPatternCount - marshalSize += 8; // this._frequency - marshalSize += 4; // this._transmitFrequencyBandwidth - marshalSize += 4; // this._power - marshalSize += this._modulationType.GetMarshalledSize(); // this._modulationType - marshalSize += 2; // this._cryptoSystem - marshalSize += 2; // this._cryptoKeyId - marshalSize += 1; // this._modulationParameterCount - marshalSize += 2; // this._padding2 - marshalSize += 1; // this._padding3 - for (int idx = 0; idx < this._modulationParametersList.Count; idx++) - { - Vector3Float listElement = (Vector3Float)this._modulationParametersList[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._antennaPatternList.Count; idx++) - { - Vector3Float listElement = (Vector3Float)this._antennaPatternList[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the linear accelleration of entity - /// - [XmlElement(Type = typeof(RadioEntityType), ElementName = "radioEntityType")] - public RadioEntityType RadioEntityType - { - get - { - return this._radioEntityType; - } - - set - { - this._radioEntityType = value; - } - } - - /// - /// Gets or sets the transmit state - /// - [XmlElement(Type = typeof(byte), ElementName = "transmitState")] - public byte TransmitState - { - get - { - return this._transmitState; - } - - set - { - this._transmitState = value; - } - } - - /// - /// Gets or sets the input source - /// - [XmlElement(Type = typeof(byte), ElementName = "inputSource")] - public byte InputSource - { - get - { - return this._inputSource; - } - - set - { - this._inputSource = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(ushort), ElementName = "padding1")] - public ushort Padding1 - { - get - { - return this._padding1; - } - - set - { - this._padding1 = value; - } - } - - /// - /// Gets or sets the Location of antenna - /// - [XmlElement(Type = typeof(Vector3Double), ElementName = "antennaLocation")] - public Vector3Double AntennaLocation - { - get - { - return this._antennaLocation; - } - - set - { - this._antennaLocation = value; - } - } - - /// - /// Gets or sets the relative location of antenna - /// - [XmlElement(Type = typeof(Vector3Float), ElementName = "relativeAntennaLocation")] - public Vector3Float RelativeAntennaLocation - { - get - { - return this._relativeAntennaLocation; - } - - set - { - this._relativeAntennaLocation = value; - } - } - - /// - /// Gets or sets the antenna pattern type - /// - [XmlElement(Type = typeof(ushort), ElementName = "antennaPatternType")] - public ushort AntennaPatternType - { - get - { - return this._antennaPatternType; - } - - set - { - this._antennaPatternType = value; - } - } - - /// - /// Gets or sets the atenna pattern length - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getantennaPatternCount method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(ushort), ElementName = "antennaPatternCount")] - public ushort AntennaPatternCount - { - get - { - return this._antennaPatternCount; - } - - set - { - this._antennaPatternCount = value; - } - } - - /// - /// Gets or sets the frequency - /// - [XmlElement(Type = typeof(ulong), ElementName = "frequency")] - public ulong Frequency - { - get - { - return this._frequency; - } - - set - { - this._frequency = value; - } - } - - /// - /// Gets or sets the transmit frequency Bandwidth - /// - [XmlElement(Type = typeof(float), ElementName = "transmitFrequencyBandwidth")] - public float TransmitFrequencyBandwidth - { - get - { - return this._transmitFrequencyBandwidth; - } - - set - { - this._transmitFrequencyBandwidth = value; - } - } - - /// - /// Gets or sets the transmission power - /// - [XmlElement(Type = typeof(float), ElementName = "power")] - public float Power - { - get - { - return this._power; - } - - set - { - this._power = value; - } - } - - /// - /// Gets or sets the modulation - /// - [XmlElement(Type = typeof(ModulationType), ElementName = "modulationType")] - public ModulationType ModulationType - { - get - { - return this._modulationType; - } - - set - { - this._modulationType = value; - } - } - - /// - /// Gets or sets the crypto system enumeration - /// - [XmlElement(Type = typeof(ushort), ElementName = "cryptoSystem")] - public ushort CryptoSystem - { - get - { - return this._cryptoSystem; - } - - set - { - this._cryptoSystem = value; - } - } - - /// - /// Gets or sets the crypto system key identifer - /// - [XmlElement(Type = typeof(ushort), ElementName = "cryptoKeyId")] - public ushort CryptoKeyId - { - get - { - return this._cryptoKeyId; - } - - set - { - this._cryptoKeyId = value; - } - } - - /// - /// Gets or sets the how many modulation parameters we have - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getmodulationParameterCount method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "modulationParameterCount")] - public byte ModulationParameterCount - { - get - { - return this._modulationParameterCount; - } - - set - { - this._modulationParameterCount = value; - } - } - - /// - /// Gets or sets the padding2 - /// - [XmlElement(Type = typeof(ushort), ElementName = "padding2")] - public ushort Padding2 - { - get - { - return this._padding2; - } - - set - { - this._padding2 = value; - } - } - - /// - /// Gets or sets the padding3 - /// - [XmlElement(Type = typeof(byte), ElementName = "padding3")] - public byte Padding3 - { - get - { - return this._padding3; - } - - set - { - this._padding3 = value; - } - } - - /// - /// Gets the variable length list of modulation parameters - /// - [XmlElement(ElementName = "modulationParametersListList", Type = typeof(List))] - public List ModulationParametersList - { - get - { - return this._modulationParametersList; - } - } - - /// - /// Gets the variable length list of antenna pattern records - /// - [XmlElement(ElementName = "antennaPatternListList", Type = typeof(List))] - public List AntennaPatternList - { - get - { - return this._antennaPatternList; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._radioEntityType.Marshal(dos); - dos.WriteUnsignedByte((byte)this._transmitState); - dos.WriteUnsignedByte((byte)this._inputSource); - dos.WriteUnsignedShort((ushort)this._padding1); - this._antennaLocation.Marshal(dos); - this._relativeAntennaLocation.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._antennaPatternType); - dos.WriteUnsignedShort((ushort)this._antennaPatternList.Count); - dos.WriteUnsignedLong((ulong)this._frequency); - dos.WriteFloat((float)this._transmitFrequencyBandwidth); - dos.WriteFloat((float)this._power); - this._modulationType.Marshal(dos); - dos.WriteUnsignedShort((ushort)this._cryptoSystem); - dos.WriteUnsignedShort((ushort)this._cryptoKeyId); - dos.WriteUnsignedByte((byte)this._modulationParametersList.Count); - dos.WriteUnsignedShort((ushort)this._padding2); - dos.WriteUnsignedByte((byte)this._padding3); - - for (int idx = 0; idx < this._modulationParametersList.Count; idx++) - { - Vector3Float aVector3Float = (Vector3Float)this._modulationParametersList[idx]; - aVector3Float.Marshal(dos); - } - - for (int idx = 0; idx < this._antennaPatternList.Count; idx++) - { - Vector3Float aVector3Float = (Vector3Float)this._antennaPatternList[idx]; - aVector3Float.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._radioEntityType.Unmarshal(dis); - this._transmitState = dis.ReadUnsignedByte(); - this._inputSource = dis.ReadUnsignedByte(); - this._padding1 = dis.ReadUnsignedShort(); - this._antennaLocation.Unmarshal(dis); - this._relativeAntennaLocation.Unmarshal(dis); - this._antennaPatternType = dis.ReadUnsignedShort(); - this._antennaPatternCount = dis.ReadUnsignedShort(); - this._frequency = dis.ReadUnsignedLong(); - this._transmitFrequencyBandwidth = dis.ReadFloat(); - this._power = dis.ReadFloat(); - this._modulationType.Unmarshal(dis); - this._cryptoSystem = dis.ReadUnsignedShort(); - this._cryptoKeyId = dis.ReadUnsignedShort(); - this._modulationParameterCount = dis.ReadUnsignedByte(); - this._padding2 = dis.ReadUnsignedShort(); - this._padding3 = dis.ReadUnsignedByte(); - - for (int idx = 0; idx < this.ModulationParameterCount; idx++) - { - Vector3Float anX = new Vector3Float(); - anX.Unmarshal(dis); - this._modulationParametersList.Add(anX); - } - - for (int idx = 0; idx < this.AntennaPatternCount; idx++) - { - Vector3Float anX = new Vector3Float(); - anX.Unmarshal(dis); - this._antennaPatternList.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._radioEntityType.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._transmitState.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._inputSource.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._antennaLocation.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._relativeAntennaLocation.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._antennaPatternType.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._antennaPatternList.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._frequency.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._transmitFrequencyBandwidth.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._power.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - this._modulationType.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._cryptoSystem.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._cryptoKeyId.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._modulationParametersList.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._padding3.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._modulationParametersList.Count; idx++) - { - sb.AppendLine(""); - Vector3Float aVector3Float = (Vector3Float)this._modulationParametersList[idx]; - aVector3Float.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._antennaPatternList.Count; idx++) - { - sb.AppendLine(""); - Vector3Float aVector3Float = (Vector3Float)this._antennaPatternList[idx]; - aVector3Float.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as TransmitterPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(TransmitterPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._radioEntityType.Equals(obj._radioEntityType)) - { - ivarsEqual = false; - } - - if (this._transmitState != obj._transmitState) - { - ivarsEqual = false; - } - - if (this._inputSource != obj._inputSource) - { - ivarsEqual = false; - } - - if (this._padding1 != obj._padding1) - { - ivarsEqual = false; - } - - if (!this._antennaLocation.Equals(obj._antennaLocation)) - { - ivarsEqual = false; - } - - if (!this._relativeAntennaLocation.Equals(obj._relativeAntennaLocation)) - { - ivarsEqual = false; - } - - if (this._antennaPatternType != obj._antennaPatternType) - { - ivarsEqual = false; - } - - if (this._antennaPatternCount != obj._antennaPatternCount) - { - ivarsEqual = false; - } - - if (this._frequency != obj._frequency) - { - ivarsEqual = false; - } - - if (this._transmitFrequencyBandwidth != obj._transmitFrequencyBandwidth) - { - ivarsEqual = false; - } - - if (this._power != obj._power) - { - ivarsEqual = false; - } - - if (!this._modulationType.Equals(obj._modulationType)) - { - ivarsEqual = false; - } - - if (this._cryptoSystem != obj._cryptoSystem) - { - ivarsEqual = false; - } - - if (this._cryptoKeyId != obj._cryptoKeyId) - { - ivarsEqual = false; - } - - if (this._modulationParameterCount != obj._modulationParameterCount) - { - ivarsEqual = false; - } - - if (this._padding2 != obj._padding2) - { - ivarsEqual = false; - } - - if (this._padding3 != obj._padding3) - { - ivarsEqual = false; - } - - if (this._modulationParametersList.Count != obj._modulationParametersList.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._modulationParametersList.Count; idx++) - { - if (!this._modulationParametersList[idx].Equals(obj._modulationParametersList[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._antennaPatternList.Count != obj._antennaPatternList.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._antennaPatternList.Count; idx++) - { - if (!this._antennaPatternList[idx].Equals(obj._antennaPatternList[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._radioEntityType.GetHashCode(); - result = GenerateHash(result) ^ this._transmitState.GetHashCode(); - result = GenerateHash(result) ^ this._inputSource.GetHashCode(); - result = GenerateHash(result) ^ this._padding1.GetHashCode(); - result = GenerateHash(result) ^ this._antennaLocation.GetHashCode(); - result = GenerateHash(result) ^ this._relativeAntennaLocation.GetHashCode(); - result = GenerateHash(result) ^ this._antennaPatternType.GetHashCode(); - result = GenerateHash(result) ^ this._antennaPatternCount.GetHashCode(); - result = GenerateHash(result) ^ this._frequency.GetHashCode(); - result = GenerateHash(result) ^ this._transmitFrequencyBandwidth.GetHashCode(); - result = GenerateHash(result) ^ this._power.GetHashCode(); - result = GenerateHash(result) ^ this._modulationType.GetHashCode(); - result = GenerateHash(result) ^ this._cryptoSystem.GetHashCode(); - result = GenerateHash(result) ^ this._cryptoKeyId.GetHashCode(); - result = GenerateHash(result) ^ this._modulationParameterCount.GetHashCode(); - result = GenerateHash(result) ^ this._padding2.GetHashCode(); - result = GenerateHash(result) ^ this._padding3.GetHashCode(); - - if (this._modulationParametersList.Count > 0) - { - for (int idx = 0; idx < this._modulationParametersList.Count; idx++) - { - result = GenerateHash(result) ^ this._modulationParametersList[idx].GetHashCode(); - } - } - - if (this._antennaPatternList.Count > 0) - { - for (int idx = 0; idx < this._antennaPatternList.Count; idx++) - { - result = GenerateHash(result) ^ this._antennaPatternList[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.8.1. Detailed information about a radio transmitter. This PDU requires manually written code to complete, since the modulation parameters are of variable length. UNFINISHED + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(RadioEntityType))] + [XmlInclude(typeof(Vector3Double))] + [XmlInclude(typeof(Vector3Float))] + [XmlInclude(typeof(ModulationType))] + [XmlInclude(typeof(Vector3Float))] + [XmlInclude(typeof(Vector3Float))] + public partial class TransmitterPdu : RadioCommunicationsFamilyPdu, IEquatable + { + /// + /// linear accelleration of entity + /// + private RadioEntityType _radioEntityType = new RadioEntityType(); + + /// + /// transmit state + /// + private byte _transmitState; + + /// + /// input source + /// + private byte _inputSource; + + /// + /// padding + /// + private ushort _padding1; + + /// + /// Location of antenna + /// + private Vector3Double _antennaLocation = new Vector3Double(); + + /// + /// relative location of antenna + /// + private Vector3Float _relativeAntennaLocation = new Vector3Float(); + + /// + /// antenna pattern type + /// + private ushort _antennaPatternType; + + /// + /// atenna pattern length + /// + private ushort _antennaPatternCount; + + /// + /// frequency + /// + private ulong _frequency; + + /// + /// transmit frequency Bandwidth + /// + private float _transmitFrequencyBandwidth; + + /// + /// transmission power + /// + private float _power; + + /// + /// modulation + /// + private ModulationType _modulationType = new ModulationType(); + + /// + /// crypto system enumeration + /// + private ushort _cryptoSystem; + + /// + /// crypto system key identifer + /// + private ushort _cryptoKeyId; + + /// + /// how many modulation parameters we have + /// + private byte _modulationParameterCount; + + /// + /// padding2 + /// + private ushort _padding2; + + /// + /// padding3 + /// + private byte _padding3; + + /// + /// variable length list of modulation parameters + /// + private List _modulationParametersList = new List(); + + /// + /// variable length list of antenna pattern records + /// + private List _antennaPatternList = new List(); + + /// + /// Initializes a new instance of the class. + /// + public TransmitterPdu() + { + PduType = (byte)25; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(TransmitterPdu left, TransmitterPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(TransmitterPdu left, TransmitterPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._radioEntityType.GetMarshalledSize(); // this._radioEntityType + marshalSize += 1; // this._transmitState + marshalSize += 1; // this._inputSource + marshalSize += 2; // this._padding1 + marshalSize += this._antennaLocation.GetMarshalledSize(); // this._antennaLocation + marshalSize += this._relativeAntennaLocation.GetMarshalledSize(); // this._relativeAntennaLocation + marshalSize += 2; // this._antennaPatternType + marshalSize += 2; // this._antennaPatternCount + marshalSize += 8; // this._frequency + marshalSize += 4; // this._transmitFrequencyBandwidth + marshalSize += 4; // this._power + marshalSize += this._modulationType.GetMarshalledSize(); // this._modulationType + marshalSize += 2; // this._cryptoSystem + marshalSize += 2; // this._cryptoKeyId + marshalSize += 1; // this._modulationParameterCount + marshalSize += 2; // this._padding2 + marshalSize += 1; // this._padding3 + for (int idx = 0; idx < this._modulationParametersList.Count; idx++) + { + Vector3Float listElement = (Vector3Float)this._modulationParametersList[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._antennaPatternList.Count; idx++) + { + Vector3Float listElement = (Vector3Float)this._antennaPatternList[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the linear accelleration of entity + /// + [XmlElement(Type = typeof(RadioEntityType), ElementName = "radioEntityType")] + public RadioEntityType RadioEntityType + { + get + { + return this._radioEntityType; + } + + set + { + this._radioEntityType = value; + } + } + + /// + /// Gets or sets the transmit state + /// + [XmlElement(Type = typeof(byte), ElementName = "transmitState")] + public byte TransmitState + { + get + { + return this._transmitState; + } + + set + { + this._transmitState = value; + } + } + + /// + /// Gets or sets the input source + /// + [XmlElement(Type = typeof(byte), ElementName = "inputSource")] + public byte InputSource + { + get + { + return this._inputSource; + } + + set + { + this._inputSource = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(ushort), ElementName = "padding1")] + public ushort Padding1 + { + get + { + return this._padding1; + } + + set + { + this._padding1 = value; + } + } + + /// + /// Gets or sets the Location of antenna + /// + [XmlElement(Type = typeof(Vector3Double), ElementName = "antennaLocation")] + public Vector3Double AntennaLocation + { + get + { + return this._antennaLocation; + } + + set + { + this._antennaLocation = value; + } + } + + /// + /// Gets or sets the relative location of antenna + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "relativeAntennaLocation")] + public Vector3Float RelativeAntennaLocation + { + get + { + return this._relativeAntennaLocation; + } + + set + { + this._relativeAntennaLocation = value; + } + } + + /// + /// Gets or sets the antenna pattern type + /// + [XmlElement(Type = typeof(ushort), ElementName = "antennaPatternType")] + public ushort AntennaPatternType + { + get + { + return this._antennaPatternType; + } + + set + { + this._antennaPatternType = value; + } + } + + /// + /// Gets or sets the atenna pattern length + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getantennaPatternCount method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(ushort), ElementName = "antennaPatternCount")] + public ushort AntennaPatternCount + { + get + { + return this._antennaPatternCount; + } + + set + { + this._antennaPatternCount = value; + } + } + + /// + /// Gets or sets the frequency + /// + [XmlElement(Type = typeof(ulong), ElementName = "frequency")] + public ulong Frequency + { + get + { + return this._frequency; + } + + set + { + this._frequency = value; + } + } + + /// + /// Gets or sets the transmit frequency Bandwidth + /// + [XmlElement(Type = typeof(float), ElementName = "transmitFrequencyBandwidth")] + public float TransmitFrequencyBandwidth + { + get + { + return this._transmitFrequencyBandwidth; + } + + set + { + this._transmitFrequencyBandwidth = value; + } + } + + /// + /// Gets or sets the transmission power + /// + [XmlElement(Type = typeof(float), ElementName = "power")] + public float Power + { + get + { + return this._power; + } + + set + { + this._power = value; + } + } + + /// + /// Gets or sets the modulation + /// + [XmlElement(Type = typeof(ModulationType), ElementName = "modulationType")] + public ModulationType ModulationType + { + get + { + return this._modulationType; + } + + set + { + this._modulationType = value; + } + } + + /// + /// Gets or sets the crypto system enumeration + /// + [XmlElement(Type = typeof(ushort), ElementName = "cryptoSystem")] + public ushort CryptoSystem + { + get + { + return this._cryptoSystem; + } + + set + { + this._cryptoSystem = value; + } + } + + /// + /// Gets or sets the crypto system key identifer + /// + [XmlElement(Type = typeof(ushort), ElementName = "cryptoKeyId")] + public ushort CryptoKeyId + { + get + { + return this._cryptoKeyId; + } + + set + { + this._cryptoKeyId = value; + } + } + + /// + /// Gets or sets the how many modulation parameters we have + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getmodulationParameterCount method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "modulationParameterCount")] + public byte ModulationParameterCount + { + get + { + return this._modulationParameterCount; + } + + set + { + this._modulationParameterCount = value; + } + } + + /// + /// Gets or sets the padding2 + /// + [XmlElement(Type = typeof(ushort), ElementName = "padding2")] + public ushort Padding2 + { + get + { + return this._padding2; + } + + set + { + this._padding2 = value; + } + } + + /// + /// Gets or sets the padding3 + /// + [XmlElement(Type = typeof(byte), ElementName = "padding3")] + public byte Padding3 + { + get + { + return this._padding3; + } + + set + { + this._padding3 = value; + } + } + + /// + /// Gets the variable length list of modulation parameters + /// + [XmlElement(ElementName = "modulationParametersListList", Type = typeof(List))] + public List ModulationParametersList + { + get + { + return this._modulationParametersList; + } + } + + /// + /// Gets the variable length list of antenna pattern records + /// + [XmlElement(ElementName = "antennaPatternListList", Type = typeof(List))] + public List AntennaPatternList + { + get + { + return this._antennaPatternList; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._radioEntityType.Marshal(dos); + dos.WriteUnsignedByte((byte)this._transmitState); + dos.WriteUnsignedByte((byte)this._inputSource); + dos.WriteUnsignedShort((ushort)this._padding1); + this._antennaLocation.Marshal(dos); + this._relativeAntennaLocation.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._antennaPatternType); + dos.WriteUnsignedShort((ushort)this._antennaPatternList.Count); + dos.WriteUnsignedLong((ulong)this._frequency); + dos.WriteFloat((float)this._transmitFrequencyBandwidth); + dos.WriteFloat((float)this._power); + this._modulationType.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._cryptoSystem); + dos.WriteUnsignedShort((ushort)this._cryptoKeyId); + dos.WriteUnsignedByte((byte)this._modulationParametersList.Count); + dos.WriteUnsignedShort((ushort)this._padding2); + dos.WriteUnsignedByte((byte)this._padding3); + + for (int idx = 0; idx < this._modulationParametersList.Count; idx++) + { + Vector3Float aVector3Float = (Vector3Float)this._modulationParametersList[idx]; + aVector3Float.Marshal(dos); + } + + for (int idx = 0; idx < this._antennaPatternList.Count; idx++) + { + Vector3Float aVector3Float = (Vector3Float)this._antennaPatternList[idx]; + aVector3Float.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._radioEntityType.Unmarshal(dis); + this._transmitState = dis.ReadUnsignedByte(); + this._inputSource = dis.ReadUnsignedByte(); + this._padding1 = dis.ReadUnsignedShort(); + this._antennaLocation.Unmarshal(dis); + this._relativeAntennaLocation.Unmarshal(dis); + this._antennaPatternType = dis.ReadUnsignedShort(); + this._antennaPatternCount = dis.ReadUnsignedShort(); + this._frequency = dis.ReadUnsignedLong(); + this._transmitFrequencyBandwidth = dis.ReadFloat(); + this._power = dis.ReadFloat(); + this._modulationType.Unmarshal(dis); + this._cryptoSystem = dis.ReadUnsignedShort(); + this._cryptoKeyId = dis.ReadUnsignedShort(); + this._modulationParameterCount = dis.ReadUnsignedByte(); + this._padding2 = dis.ReadUnsignedShort(); + this._padding3 = dis.ReadUnsignedByte(); + + for (int idx = 0; idx < this.ModulationParameterCount; idx++) + { + Vector3Float anX = new Vector3Float(); + anX.Unmarshal(dis); + this._modulationParametersList.Add(anX); + } + + for (int idx = 0; idx < this.AntennaPatternCount; idx++) + { + Vector3Float anX = new Vector3Float(); + anX.Unmarshal(dis); + this._antennaPatternList.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._radioEntityType.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._transmitState.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._inputSource.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._antennaLocation.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._relativeAntennaLocation.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._antennaPatternType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._antennaPatternList.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._frequency.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._transmitFrequencyBandwidth.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._power.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._modulationType.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._cryptoSystem.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._cryptoKeyId.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._modulationParametersList.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding3.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._modulationParametersList.Count; idx++) + { + sb.AppendLine(""); + Vector3Float aVector3Float = (Vector3Float)this._modulationParametersList[idx]; + aVector3Float.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._antennaPatternList.Count; idx++) + { + sb.AppendLine(""); + Vector3Float aVector3Float = (Vector3Float)this._antennaPatternList[idx]; + aVector3Float.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as TransmitterPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(TransmitterPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._radioEntityType.Equals(obj._radioEntityType)) + { + ivarsEqual = false; + } + + if (this._transmitState != obj._transmitState) + { + ivarsEqual = false; + } + + if (this._inputSource != obj._inputSource) + { + ivarsEqual = false; + } + + if (this._padding1 != obj._padding1) + { + ivarsEqual = false; + } + + if (!this._antennaLocation.Equals(obj._antennaLocation)) + { + ivarsEqual = false; + } + + if (!this._relativeAntennaLocation.Equals(obj._relativeAntennaLocation)) + { + ivarsEqual = false; + } + + if (this._antennaPatternType != obj._antennaPatternType) + { + ivarsEqual = false; + } + + if (this._antennaPatternCount != obj._antennaPatternCount) + { + ivarsEqual = false; + } + + if (this._frequency != obj._frequency) + { + ivarsEqual = false; + } + + if (this._transmitFrequencyBandwidth != obj._transmitFrequencyBandwidth) + { + ivarsEqual = false; + } + + if (this._power != obj._power) + { + ivarsEqual = false; + } + + if (!this._modulationType.Equals(obj._modulationType)) + { + ivarsEqual = false; + } + + if (this._cryptoSystem != obj._cryptoSystem) + { + ivarsEqual = false; + } + + if (this._cryptoKeyId != obj._cryptoKeyId) + { + ivarsEqual = false; + } + + if (this._modulationParameterCount != obj._modulationParameterCount) + { + ivarsEqual = false; + } + + if (this._padding2 != obj._padding2) + { + ivarsEqual = false; + } + + if (this._padding3 != obj._padding3) + { + ivarsEqual = false; + } + + if (this._modulationParametersList.Count != obj._modulationParametersList.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._modulationParametersList.Count; idx++) + { + if (!this._modulationParametersList[idx].Equals(obj._modulationParametersList[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._antennaPatternList.Count != obj._antennaPatternList.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._antennaPatternList.Count; idx++) + { + if (!this._antennaPatternList[idx].Equals(obj._antennaPatternList[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._radioEntityType.GetHashCode(); + result = GenerateHash(result) ^ this._transmitState.GetHashCode(); + result = GenerateHash(result) ^ this._inputSource.GetHashCode(); + result = GenerateHash(result) ^ this._padding1.GetHashCode(); + result = GenerateHash(result) ^ this._antennaLocation.GetHashCode(); + result = GenerateHash(result) ^ this._relativeAntennaLocation.GetHashCode(); + result = GenerateHash(result) ^ this._antennaPatternType.GetHashCode(); + result = GenerateHash(result) ^ this._antennaPatternCount.GetHashCode(); + result = GenerateHash(result) ^ this._frequency.GetHashCode(); + result = GenerateHash(result) ^ this._transmitFrequencyBandwidth.GetHashCode(); + result = GenerateHash(result) ^ this._power.GetHashCode(); + result = GenerateHash(result) ^ this._modulationType.GetHashCode(); + result = GenerateHash(result) ^ this._cryptoSystem.GetHashCode(); + result = GenerateHash(result) ^ this._cryptoKeyId.GetHashCode(); + result = GenerateHash(result) ^ this._modulationParameterCount.GetHashCode(); + result = GenerateHash(result) ^ this._padding2.GetHashCode(); + result = GenerateHash(result) ^ this._padding3.GetHashCode(); + + if (this._modulationParametersList.Count > 0) + { + for (int idx = 0; idx < this._modulationParametersList.Count; idx++) + { + result = GenerateHash(result) ^ this._modulationParametersList[idx].GetHashCode(); + } + } + + if (this._antennaPatternList.Count > 0) + { + for (int idx = 0; idx < this._antennaPatternList.Count; idx++) + { + result = GenerateHash(result) ^ this._antennaPatternList[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/TwoByteChunk.cs b/Libs/CsharpDis6/Dis1998/Generated/TwoByteChunk.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/TwoByteChunk.cs rename to Libs/CsharpDis6/Dis1998/Generated/TwoByteChunk.cs index 4aa47db..b722426 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/TwoByteChunk.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/TwoByteChunk.cs @@ -1,324 +1,324 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// 16 bit piece of data - /// - [Serializable] - [XmlRoot] - public partial class TwoByteChunk - { - /// - /// two bytes of arbitrary data - /// - private byte[] _otherParameters = new byte[2]; - - /// - /// Initializes a new instance of the class. - /// - public TwoByteChunk() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(TwoByteChunk left, TwoByteChunk right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(TwoByteChunk left, TwoByteChunk right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 2 * 1; // _otherParameters - return marshalSize; - } - - /// - /// Gets or sets the two bytes of arbitrary data - /// - [XmlArray(ElementName = "otherParameters")] - public byte[] OtherParameters - { - get - { - return this._otherParameters; - } - - set - { - this._otherParameters = value; - } -} - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - for (int idx = 0; idx < this._otherParameters.Length; idx++) - { - dos.WriteByte(this._otherParameters[idx]); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - for (int idx = 0; idx < this._otherParameters.Length; idx++) - { - this._otherParameters[idx] = dis.ReadByte(); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - for (int idx = 0; idx < this._otherParameters.Length; idx++) - { - sb.AppendLine("" + this._otherParameters[idx] + ""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as TwoByteChunk; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(TwoByteChunk obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (obj._otherParameters.Length != 2) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < 2; idx++) - { - if (this._otherParameters[idx] != obj._otherParameters[idx]) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - for (int idx = 0; idx < 2; idx++) - { - result = GenerateHash(result) ^ this._otherParameters[idx].GetHashCode(); - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// 16 bit piece of data + /// + [Serializable] + [XmlRoot] + public partial class TwoByteChunk + { + /// + /// two bytes of arbitrary data + /// + private byte[] _otherParameters = new byte[2]; + + /// + /// Initializes a new instance of the class. + /// + public TwoByteChunk() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(TwoByteChunk left, TwoByteChunk right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(TwoByteChunk left, TwoByteChunk right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 2 * 1; // _otherParameters + return marshalSize; + } + + /// + /// Gets or sets the two bytes of arbitrary data + /// + [XmlArray(ElementName = "otherParameters")] + public byte[] OtherParameters + { + get + { + return this._otherParameters; + } + + set + { + this._otherParameters = value; + } +} + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + for (int idx = 0; idx < this._otherParameters.Length; idx++) + { + dos.WriteByte(this._otherParameters[idx]); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + for (int idx = 0; idx < this._otherParameters.Length; idx++) + { + this._otherParameters[idx] = dis.ReadByte(); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + for (int idx = 0; idx < this._otherParameters.Length; idx++) + { + sb.AppendLine("" + this._otherParameters[idx] + ""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as TwoByteChunk; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(TwoByteChunk obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (obj._otherParameters.Length != 2) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < 2; idx++) + { + if (this._otherParameters[idx] != obj._otherParameters[idx]) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + for (int idx = 0; idx < 2; idx++) + { + result = GenerateHash(result) ^ this._otherParameters[idx].GetHashCode(); + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/UaPdu.cs b/Libs/CsharpDis6/Dis1998/Generated/UaPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/UaPdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/UaPdu.cs index 5726589..2e23a48 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/UaPdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/UaPdu.cs @@ -1,785 +1,785 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.7.3. Information about underwater acoustic emmissions. This requires manual cleanup. The beam data records should ALL be a the finish, rather than attached to each emitter system. UNFINISHED - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - [XmlInclude(typeof(EventID))] - [XmlInclude(typeof(ShaftRPMs))] - [XmlInclude(typeof(ApaData))] - [XmlInclude(typeof(AcousticEmitterSystemData))] - public partial class UaPdu : DistributedEmissionsFamilyPdu, IEquatable - { - /// - /// ID of the entity that is the source of the emission - /// - private EntityID _emittingEntityID = new EntityID(); - - /// - /// ID of event - /// - private EventID _eventID = new EventID(); - - /// - /// This field shall be used to indicate whether the data in the UA PDU represent a state update or data that have changed since issuance of the last UA PDU - /// - private byte _stateChangeIndicator; - - /// - /// padding - /// - private byte _pad; - - /// - /// This field indicates which database record (or file) shall be used in the definition of passive signature (unintentional) emissions of the entity. The indicated database record (or file) shall define all noise generated as a function of propulsion plant configurations and associated auxiliaries. - /// - private ushort _passiveParameterIndex; - - /// - /// This field shall specify the entity propulsion plant configuration. This field is used to determine the passive signature characteristics of an entity. - /// - private byte _propulsionPlantConfiguration; - - /// - /// This field shall represent the number of shafts on a platform - /// - private byte _numberOfShafts; - - /// - /// This field shall indicate the number of APAs described in the current UA PDU - /// - private byte _numberOfAPAs; - - /// - /// This field shall specify the number of UA emitter systems being described in the current UA PDU - /// - private byte _numberOfUAEmitterSystems; - - /// - /// shaft RPM values - /// - private List _shaftRPMs = new List(); - - /// - /// apaData - /// - private List _apaData = new List(); - - private List _emitterSystems = new List(); - - /// - /// Initializes a new instance of the class. - /// - public UaPdu() - { - PduType = (byte)29; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(UaPdu left, UaPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(UaPdu left, UaPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._emittingEntityID.GetMarshalledSize(); // this._emittingEntityID - marshalSize += this._eventID.GetMarshalledSize(); // this._eventID - marshalSize += 1; // this._stateChangeIndicator - marshalSize += 1; // this._pad - marshalSize += 2; // this._passiveParameterIndex - marshalSize += 1; // this._propulsionPlantConfiguration - marshalSize += 1; // this._numberOfShafts - marshalSize += 1; // this._numberOfAPAs - marshalSize += 1; // this._numberOfUAEmitterSystems - for (int idx = 0; idx < this._shaftRPMs.Count; idx++) - { - ShaftRPMs listElement = (ShaftRPMs)this._shaftRPMs[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._apaData.Count; idx++) - { - ApaData listElement = (ApaData)this._apaData[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - for (int idx = 0; idx < this._emitterSystems.Count; idx++) - { - AcousticEmitterSystemData listElement = (AcousticEmitterSystemData)this._emitterSystems[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the ID of the entity that is the source of the emission - /// - [XmlElement(Type = typeof(EntityID), ElementName = "emittingEntityID")] - public EntityID EmittingEntityID - { - get - { - return this._emittingEntityID; - } - - set - { - this._emittingEntityID = value; - } - } - - /// - /// Gets or sets the ID of event - /// - [XmlElement(Type = typeof(EventID), ElementName = "eventID")] - public EventID EventID - { - get - { - return this._eventID; - } - - set - { - this._eventID = value; - } - } - - /// - /// Gets or sets the This field shall be used to indicate whether the data in the UA PDU represent a state update or data that have changed since issuance of the last UA PDU - /// - [XmlElement(Type = typeof(byte), ElementName = "stateChangeIndicator")] - public byte StateChangeIndicator - { - get - { - return this._stateChangeIndicator; - } - - set - { - this._stateChangeIndicator = value; - } - } - - /// - /// Gets or sets the padding - /// - [XmlElement(Type = typeof(byte), ElementName = "pad")] - public byte Pad - { - get - { - return this._pad; - } - - set - { - this._pad = value; - } - } - - /// - /// Gets or sets the This field indicates which database record (or file) shall be used in the definition of passive signature (unintentional) emissions of the entity. The indicated database record (or file) shall define all noise generated as a function of propulsion plant configurations and associated auxiliaries. - /// - [XmlElement(Type = typeof(ushort), ElementName = "passiveParameterIndex")] - public ushort PassiveParameterIndex - { - get - { - return this._passiveParameterIndex; - } - - set - { - this._passiveParameterIndex = value; - } - } - - /// - /// Gets or sets the This field shall specify the entity propulsion plant configuration. This field is used to determine the passive signature characteristics of an entity. - /// - [XmlElement(Type = typeof(byte), ElementName = "propulsionPlantConfiguration")] - public byte PropulsionPlantConfiguration - { - get - { - return this._propulsionPlantConfiguration; - } - - set - { - this._propulsionPlantConfiguration = value; - } - } - - /// - /// Gets or sets the This field shall represent the number of shafts on a platform - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfShafts method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfShafts")] - public byte NumberOfShafts - { - get - { - return this._numberOfShafts; - } - - set - { - this._numberOfShafts = value; - } - } - - /// - /// Gets or sets the This field shall indicate the number of APAs described in the current UA PDU - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfAPAs method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfAPAs")] - public byte NumberOfAPAs - { - get - { - return this._numberOfAPAs; - } - - set - { - this._numberOfAPAs = value; - } - } - - /// - /// Gets or sets the This field shall specify the number of UA emitter systems being described in the current UA PDU - /// - /// - /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. - /// The getnumberOfUAEmitterSystems method will also be based on the actual list length rather than this value. - /// The method is simply here for completeness and should not be used for any computations. - /// - [XmlElement(Type = typeof(byte), ElementName = "numberOfUAEmitterSystems")] - public byte NumberOfUAEmitterSystems - { - get - { - return this._numberOfUAEmitterSystems; - } - - set - { - this._numberOfUAEmitterSystems = value; - } - } - - /// - /// Gets the shaft RPM values - /// - [XmlElement(ElementName = "shaftRPMsList", Type = typeof(List))] - public List ShaftRPMs - { - get - { - return this._shaftRPMs; - } - } - - /// - /// Gets the apaData - /// - [XmlElement(ElementName = "apaDataList", Type = typeof(List))] - public List ApaData - { - get - { - return this._apaData; - } - } - - /// - /// Gets the emitterSystems - /// - [XmlElement(ElementName = "emitterSystemsList", Type = typeof(List))] - public List EmitterSystems - { - get - { - return this._emitterSystems; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public override void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._emittingEntityID.Marshal(dos); - this._eventID.Marshal(dos); - dos.WriteByte((byte)this._stateChangeIndicator); - dos.WriteByte((byte)this._pad); - dos.WriteUnsignedShort((ushort)this._passiveParameterIndex); - dos.WriteUnsignedByte((byte)this._propulsionPlantConfiguration); - dos.WriteUnsignedByte((byte)this._shaftRPMs.Count); - dos.WriteUnsignedByte((byte)this._apaData.Count); - dos.WriteUnsignedByte((byte)this._emitterSystems.Count); - - for (int idx = 0; idx < this._shaftRPMs.Count; idx++) - { - ShaftRPMs aShaftRPMs = (ShaftRPMs)this._shaftRPMs[idx]; - aShaftRPMs.Marshal(dos); - } - - for (int idx = 0; idx < this._apaData.Count; idx++) - { - ApaData aApaData = (ApaData)this._apaData[idx]; - aApaData.Marshal(dos); - } - - for (int idx = 0; idx < this._emitterSystems.Count; idx++) - { - AcousticEmitterSystemData aAcousticEmitterSystemData = (AcousticEmitterSystemData)this._emitterSystems[idx]; - aAcousticEmitterSystemData.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._emittingEntityID.Unmarshal(dis); - this._eventID.Unmarshal(dis); - this._stateChangeIndicator = dis.ReadByte(); - this._pad = dis.ReadByte(); - this._passiveParameterIndex = dis.ReadUnsignedShort(); - this._propulsionPlantConfiguration = dis.ReadUnsignedByte(); - this._numberOfShafts = dis.ReadUnsignedByte(); - this._numberOfAPAs = dis.ReadUnsignedByte(); - this._numberOfUAEmitterSystems = dis.ReadUnsignedByte(); - - for (int idx = 0; idx < this.NumberOfShafts; idx++) - { - ShaftRPMs anX = new ShaftRPMs(); - anX.Unmarshal(dis); - this._shaftRPMs.Add(anX); - } - - for (int idx = 0; idx < this.NumberOfAPAs; idx++) - { - ApaData anX = new ApaData(); - anX.Unmarshal(dis); - this._apaData.Add(anX); - } - - for (int idx = 0; idx < this.NumberOfUAEmitterSystems; idx++) - { - AcousticEmitterSystemData anX = new AcousticEmitterSystemData(); - anX.Unmarshal(dis); - this._emitterSystems.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._emittingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._eventID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine("" + this._stateChangeIndicator.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._pad.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._passiveParameterIndex.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._propulsionPlantConfiguration.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._shaftRPMs.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._apaData.Count.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._emitterSystems.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._shaftRPMs.Count; idx++) - { - sb.AppendLine(""); - ShaftRPMs aShaftRPMs = (ShaftRPMs)this._shaftRPMs[idx]; - aShaftRPMs.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._apaData.Count; idx++) - { - sb.AppendLine(""); - ApaData aApaData = (ApaData)this._apaData[idx]; - aApaData.Reflection(sb); - sb.AppendLine(""); - } - - for (int idx = 0; idx < this._emitterSystems.Count; idx++) - { - sb.AppendLine(""); - AcousticEmitterSystemData aAcousticEmitterSystemData = (AcousticEmitterSystemData)this._emitterSystems[idx]; - aAcousticEmitterSystemData.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as UaPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(UaPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._emittingEntityID.Equals(obj._emittingEntityID)) - { - ivarsEqual = false; - } - - if (!this._eventID.Equals(obj._eventID)) - { - ivarsEqual = false; - } - - if (this._stateChangeIndicator != obj._stateChangeIndicator) - { - ivarsEqual = false; - } - - if (this._pad != obj._pad) - { - ivarsEqual = false; - } - - if (this._passiveParameterIndex != obj._passiveParameterIndex) - { - ivarsEqual = false; - } - - if (this._propulsionPlantConfiguration != obj._propulsionPlantConfiguration) - { - ivarsEqual = false; - } - - if (this._numberOfShafts != obj._numberOfShafts) - { - ivarsEqual = false; - } - - if (this._numberOfAPAs != obj._numberOfAPAs) - { - ivarsEqual = false; - } - - if (this._numberOfUAEmitterSystems != obj._numberOfUAEmitterSystems) - { - ivarsEqual = false; - } - - if (this._shaftRPMs.Count != obj._shaftRPMs.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._shaftRPMs.Count; idx++) - { - if (!this._shaftRPMs[idx].Equals(obj._shaftRPMs[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._apaData.Count != obj._apaData.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._apaData.Count; idx++) - { - if (!this._apaData[idx].Equals(obj._apaData[idx])) - { - ivarsEqual = false; - } - } - } - - if (this._emitterSystems.Count != obj._emitterSystems.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._emitterSystems.Count; idx++) - { - if (!this._emitterSystems[idx].Equals(obj._emitterSystems[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._emittingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._eventID.GetHashCode(); - result = GenerateHash(result) ^ this._stateChangeIndicator.GetHashCode(); - result = GenerateHash(result) ^ this._pad.GetHashCode(); - result = GenerateHash(result) ^ this._passiveParameterIndex.GetHashCode(); - result = GenerateHash(result) ^ this._propulsionPlantConfiguration.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfShafts.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfAPAs.GetHashCode(); - result = GenerateHash(result) ^ this._numberOfUAEmitterSystems.GetHashCode(); - - if (this._shaftRPMs.Count > 0) - { - for (int idx = 0; idx < this._shaftRPMs.Count; idx++) - { - result = GenerateHash(result) ^ this._shaftRPMs[idx].GetHashCode(); - } - } - - if (this._apaData.Count > 0) - { - for (int idx = 0; idx < this._apaData.Count; idx++) - { - result = GenerateHash(result) ^ this._apaData[idx].GetHashCode(); - } - } - - if (this._emitterSystems.Count > 0) - { - for (int idx = 0; idx < this._emitterSystems.Count; idx++) - { - result = GenerateHash(result) ^ this._emitterSystems[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.7.3. Information about underwater acoustic emmissions. This requires manual cleanup. The beam data records should ALL be a the finish, rather than attached to each emitter system. UNFINISHED + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(EventID))] + [XmlInclude(typeof(ShaftRPMs))] + [XmlInclude(typeof(ApaData))] + [XmlInclude(typeof(AcousticEmitterSystemData))] + public partial class UaPdu : DistributedEmissionsFamilyPdu, IEquatable + { + /// + /// ID of the entity that is the source of the emission + /// + private EntityID _emittingEntityID = new EntityID(); + + /// + /// ID of event + /// + private EventID _eventID = new EventID(); + + /// + /// This field shall be used to indicate whether the data in the UA PDU represent a state update or data that have changed since issuance of the last UA PDU + /// + private byte _stateChangeIndicator; + + /// + /// padding + /// + private byte _pad; + + /// + /// This field indicates which database record (or file) shall be used in the definition of passive signature (unintentional) emissions of the entity. The indicated database record (or file) shall define all noise generated as a function of propulsion plant configurations and associated auxiliaries. + /// + private ushort _passiveParameterIndex; + + /// + /// This field shall specify the entity propulsion plant configuration. This field is used to determine the passive signature characteristics of an entity. + /// + private byte _propulsionPlantConfiguration; + + /// + /// This field shall represent the number of shafts on a platform + /// + private byte _numberOfShafts; + + /// + /// This field shall indicate the number of APAs described in the current UA PDU + /// + private byte _numberOfAPAs; + + /// + /// This field shall specify the number of UA emitter systems being described in the current UA PDU + /// + private byte _numberOfUAEmitterSystems; + + /// + /// shaft RPM values + /// + private List _shaftRPMs = new List(); + + /// + /// apaData + /// + private List _apaData = new List(); + + private List _emitterSystems = new List(); + + /// + /// Initializes a new instance of the class. + /// + public UaPdu() + { + PduType = (byte)29; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(UaPdu left, UaPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(UaPdu left, UaPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._emittingEntityID.GetMarshalledSize(); // this._emittingEntityID + marshalSize += this._eventID.GetMarshalledSize(); // this._eventID + marshalSize += 1; // this._stateChangeIndicator + marshalSize += 1; // this._pad + marshalSize += 2; // this._passiveParameterIndex + marshalSize += 1; // this._propulsionPlantConfiguration + marshalSize += 1; // this._numberOfShafts + marshalSize += 1; // this._numberOfAPAs + marshalSize += 1; // this._numberOfUAEmitterSystems + for (int idx = 0; idx < this._shaftRPMs.Count; idx++) + { + ShaftRPMs listElement = (ShaftRPMs)this._shaftRPMs[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._apaData.Count; idx++) + { + ApaData listElement = (ApaData)this._apaData[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._emitterSystems.Count; idx++) + { + AcousticEmitterSystemData listElement = (AcousticEmitterSystemData)this._emitterSystems[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the ID of the entity that is the source of the emission + /// + [XmlElement(Type = typeof(EntityID), ElementName = "emittingEntityID")] + public EntityID EmittingEntityID + { + get + { + return this._emittingEntityID; + } + + set + { + this._emittingEntityID = value; + } + } + + /// + /// Gets or sets the ID of event + /// + [XmlElement(Type = typeof(EventID), ElementName = "eventID")] + public EventID EventID + { + get + { + return this._eventID; + } + + set + { + this._eventID = value; + } + } + + /// + /// Gets or sets the This field shall be used to indicate whether the data in the UA PDU represent a state update or data that have changed since issuance of the last UA PDU + /// + [XmlElement(Type = typeof(byte), ElementName = "stateChangeIndicator")] + public byte StateChangeIndicator + { + get + { + return this._stateChangeIndicator; + } + + set + { + this._stateChangeIndicator = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "pad")] + public byte Pad + { + get + { + return this._pad; + } + + set + { + this._pad = value; + } + } + + /// + /// Gets or sets the This field indicates which database record (or file) shall be used in the definition of passive signature (unintentional) emissions of the entity. The indicated database record (or file) shall define all noise generated as a function of propulsion plant configurations and associated auxiliaries. + /// + [XmlElement(Type = typeof(ushort), ElementName = "passiveParameterIndex")] + public ushort PassiveParameterIndex + { + get + { + return this._passiveParameterIndex; + } + + set + { + this._passiveParameterIndex = value; + } + } + + /// + /// Gets or sets the This field shall specify the entity propulsion plant configuration. This field is used to determine the passive signature characteristics of an entity. + /// + [XmlElement(Type = typeof(byte), ElementName = "propulsionPlantConfiguration")] + public byte PropulsionPlantConfiguration + { + get + { + return this._propulsionPlantConfiguration; + } + + set + { + this._propulsionPlantConfiguration = value; + } + } + + /// + /// Gets or sets the This field shall represent the number of shafts on a platform + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfShafts method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfShafts")] + public byte NumberOfShafts + { + get + { + return this._numberOfShafts; + } + + set + { + this._numberOfShafts = value; + } + } + + /// + /// Gets or sets the This field shall indicate the number of APAs described in the current UA PDU + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfAPAs method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfAPAs")] + public byte NumberOfAPAs + { + get + { + return this._numberOfAPAs; + } + + set + { + this._numberOfAPAs = value; + } + } + + /// + /// Gets or sets the This field shall specify the number of UA emitter systems being described in the current UA PDU + /// + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfUAEmitterSystems method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfUAEmitterSystems")] + public byte NumberOfUAEmitterSystems + { + get + { + return this._numberOfUAEmitterSystems; + } + + set + { + this._numberOfUAEmitterSystems = value; + } + } + + /// + /// Gets the shaft RPM values + /// + [XmlElement(ElementName = "shaftRPMsList", Type = typeof(List))] + public List ShaftRPMs + { + get + { + return this._shaftRPMs; + } + } + + /// + /// Gets the apaData + /// + [XmlElement(ElementName = "apaDataList", Type = typeof(List))] + public List ApaData + { + get + { + return this._apaData; + } + } + + /// + /// Gets the emitterSystems + /// + [XmlElement(ElementName = "emitterSystemsList", Type = typeof(List))] + public List EmitterSystems + { + get + { + return this._emitterSystems; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._emittingEntityID.Marshal(dos); + this._eventID.Marshal(dos); + dos.WriteByte((byte)this._stateChangeIndicator); + dos.WriteByte((byte)this._pad); + dos.WriteUnsignedShort((ushort)this._passiveParameterIndex); + dos.WriteUnsignedByte((byte)this._propulsionPlantConfiguration); + dos.WriteUnsignedByte((byte)this._shaftRPMs.Count); + dos.WriteUnsignedByte((byte)this._apaData.Count); + dos.WriteUnsignedByte((byte)this._emitterSystems.Count); + + for (int idx = 0; idx < this._shaftRPMs.Count; idx++) + { + ShaftRPMs aShaftRPMs = (ShaftRPMs)this._shaftRPMs[idx]; + aShaftRPMs.Marshal(dos); + } + + for (int idx = 0; idx < this._apaData.Count; idx++) + { + ApaData aApaData = (ApaData)this._apaData[idx]; + aApaData.Marshal(dos); + } + + for (int idx = 0; idx < this._emitterSystems.Count; idx++) + { + AcousticEmitterSystemData aAcousticEmitterSystemData = (AcousticEmitterSystemData)this._emitterSystems[idx]; + aAcousticEmitterSystemData.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._emittingEntityID.Unmarshal(dis); + this._eventID.Unmarshal(dis); + this._stateChangeIndicator = dis.ReadByte(); + this._pad = dis.ReadByte(); + this._passiveParameterIndex = dis.ReadUnsignedShort(); + this._propulsionPlantConfiguration = dis.ReadUnsignedByte(); + this._numberOfShafts = dis.ReadUnsignedByte(); + this._numberOfAPAs = dis.ReadUnsignedByte(); + this._numberOfUAEmitterSystems = dis.ReadUnsignedByte(); + + for (int idx = 0; idx < this.NumberOfShafts; idx++) + { + ShaftRPMs anX = new ShaftRPMs(); + anX.Unmarshal(dis); + this._shaftRPMs.Add(anX); + } + + for (int idx = 0; idx < this.NumberOfAPAs; idx++) + { + ApaData anX = new ApaData(); + anX.Unmarshal(dis); + this._apaData.Add(anX); + } + + for (int idx = 0; idx < this.NumberOfUAEmitterSystems; idx++) + { + AcousticEmitterSystemData anX = new AcousticEmitterSystemData(); + anX.Unmarshal(dis); + this._emitterSystems.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._emittingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._eventID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._stateChangeIndicator.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._passiveParameterIndex.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._propulsionPlantConfiguration.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._shaftRPMs.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._apaData.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._emitterSystems.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._shaftRPMs.Count; idx++) + { + sb.AppendLine(""); + ShaftRPMs aShaftRPMs = (ShaftRPMs)this._shaftRPMs[idx]; + aShaftRPMs.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._apaData.Count; idx++) + { + sb.AppendLine(""); + ApaData aApaData = (ApaData)this._apaData[idx]; + aApaData.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._emitterSystems.Count; idx++) + { + sb.AppendLine(""); + AcousticEmitterSystemData aAcousticEmitterSystemData = (AcousticEmitterSystemData)this._emitterSystems[idx]; + aAcousticEmitterSystemData.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as UaPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(UaPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._emittingEntityID.Equals(obj._emittingEntityID)) + { + ivarsEqual = false; + } + + if (!this._eventID.Equals(obj._eventID)) + { + ivarsEqual = false; + } + + if (this._stateChangeIndicator != obj._stateChangeIndicator) + { + ivarsEqual = false; + } + + if (this._pad != obj._pad) + { + ivarsEqual = false; + } + + if (this._passiveParameterIndex != obj._passiveParameterIndex) + { + ivarsEqual = false; + } + + if (this._propulsionPlantConfiguration != obj._propulsionPlantConfiguration) + { + ivarsEqual = false; + } + + if (this._numberOfShafts != obj._numberOfShafts) + { + ivarsEqual = false; + } + + if (this._numberOfAPAs != obj._numberOfAPAs) + { + ivarsEqual = false; + } + + if (this._numberOfUAEmitterSystems != obj._numberOfUAEmitterSystems) + { + ivarsEqual = false; + } + + if (this._shaftRPMs.Count != obj._shaftRPMs.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._shaftRPMs.Count; idx++) + { + if (!this._shaftRPMs[idx].Equals(obj._shaftRPMs[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._apaData.Count != obj._apaData.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._apaData.Count; idx++) + { + if (!this._apaData[idx].Equals(obj._apaData[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._emitterSystems.Count != obj._emitterSystems.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._emitterSystems.Count; idx++) + { + if (!this._emitterSystems[idx].Equals(obj._emitterSystems[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._emittingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._eventID.GetHashCode(); + result = GenerateHash(result) ^ this._stateChangeIndicator.GetHashCode(); + result = GenerateHash(result) ^ this._pad.GetHashCode(); + result = GenerateHash(result) ^ this._passiveParameterIndex.GetHashCode(); + result = GenerateHash(result) ^ this._propulsionPlantConfiguration.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfShafts.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfAPAs.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfUAEmitterSystems.GetHashCode(); + + if (this._shaftRPMs.Count > 0) + { + for (int idx = 0; idx < this._shaftRPMs.Count; idx++) + { + result = GenerateHash(result) ^ this._shaftRPMs[idx].GetHashCode(); + } + } + + if (this._apaData.Count > 0) + { + for (int idx = 0; idx < this._apaData.Count; idx++) + { + result = GenerateHash(result) ^ this._apaData[idx].GetHashCode(); + } + } + + if (this._emitterSystems.Count > 0) + { + for (int idx = 0; idx < this._emitterSystems.Count; idx++) + { + result = GenerateHash(result) ^ this._emitterSystems[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/VariableDatum.cs b/Libs/CsharpDis6/Dis1998/Generated/VariableDatum.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/VariableDatum.cs rename to Libs/CsharpDis6/Dis1998/Generated/VariableDatum.cs index 6f5fb5c..f2dea02 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/VariableDatum.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/VariableDatum.cs @@ -1,406 +1,406 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.2.32. Variable Datum Record - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EightByteChunk))] - public partial class VariableDatum - { - /// - /// ID of the variable datum - /// - private uint _variableDatumID; - - /// - /// length of the variable datums - /// - private uint _variableDatumLength; - - /// - /// variable length list of 64-bit datums - /// - private List _variableDatums = new List(); - - /// - /// Initializes a new instance of the class. - /// - public VariableDatum() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(VariableDatum left, VariableDatum right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(VariableDatum left, VariableDatum right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._variableDatumID - marshalSize += 4; // this._variableDatumLength - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - EightByteChunk listElement = (EightByteChunk)this._variableDatums[idx]; - marshalSize += listElement.GetMarshalledSize(); - } - - return marshalSize; - } - - /// - /// Gets or sets the ID of the variable datum - /// - [XmlElement(Type = typeof(uint), ElementName = "variableDatumID")] - public uint VariableDatumID - { - get - { - return this._variableDatumID; - } - - set - { - this._variableDatumID = value; - } - } - - /// - /// Gets or sets the length of the variable datums - /// - /// - /// This value must be set for any PDU using it to work! -/// This value should be the number of bits used. - /// - [XmlElement(Type = typeof(uint), ElementName = "variableDatumLength")] - public uint VariableDatumLength - { - get - { - return this._variableDatumLength; - } - - set - { - this._variableDatumLength = value; - } - } - - /// - /// Gets the variable length list of 64-bit datums - /// - [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] - public List VariableDatums - { - get - { - return this._variableDatums; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteUnsignedInt((uint)this._variableDatumID); - dos.WriteUnsignedInt((uint)this._variableDatumLength); //Post processedtums.Count); - - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - EightByteChunk aEightByteChunk = (EightByteChunk)this._variableDatums[idx]; - aEightByteChunk.Marshal(dos); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._variableDatumID = dis.ReadUnsignedInt(); - this._variableDatumLength = dis.ReadUnsignedInt(); - int variableCount = (int)(this._variableDatumLength / 64) + (this._variableDatumLength % 64 > 0 ? 1 : 0); //Post processed - - for (int idx = 0; idx < variableCount; idx++) - { - EightByteChunk anX = new EightByteChunk(); - anX.Unmarshal(dis); - this._variableDatums.Add(anX); - } - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._variableDatumID.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - sb.AppendLine(""); - EightByteChunk aEightByteChunk = (EightByteChunk)this._variableDatums[idx]; - aEightByteChunk.Reflection(sb); - sb.AppendLine(""); - } - - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as VariableDatum; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(VariableDatum obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._variableDatumID != obj._variableDatumID) - { - ivarsEqual = false; - } - - if (this._variableDatumLength != obj._variableDatumLength) - { - ivarsEqual = false; - } - - if (this._variableDatums.Count != obj._variableDatums.Count) - { - ivarsEqual = false; - } - - if (ivarsEqual) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) - { - ivarsEqual = false; - } - } - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._variableDatumID.GetHashCode(); - result = GenerateHash(result) ^ this._variableDatumLength.GetHashCode(); - - if (this._variableDatums.Count > 0) - { - for (int idx = 0; idx < this._variableDatums.Count; idx++) - { - result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); - } - } - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.2.32. Variable Datum Record + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EightByteChunk))] + public partial class VariableDatum + { + /// + /// ID of the variable datum + /// + private uint _variableDatumID; + + /// + /// length of the variable datums + /// + private uint _variableDatumLength; + + /// + /// variable length list of 64-bit datums + /// + private List _variableDatums = new List(); + + /// + /// Initializes a new instance of the class. + /// + public VariableDatum() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(VariableDatum left, VariableDatum right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(VariableDatum left, VariableDatum right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._variableDatumID + marshalSize += 4; // this._variableDatumLength + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + EightByteChunk listElement = (EightByteChunk)this._variableDatums[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the ID of the variable datum + /// + [XmlElement(Type = typeof(uint), ElementName = "variableDatumID")] + public uint VariableDatumID + { + get + { + return this._variableDatumID; + } + + set + { + this._variableDatumID = value; + } + } + + /// + /// Gets or sets the length of the variable datums + /// + /// + /// This value must be set for any PDU using it to work! +/// This value should be the number of bits used. + /// + [XmlElement(Type = typeof(uint), ElementName = "variableDatumLength")] + public uint VariableDatumLength + { + get + { + return this._variableDatumLength; + } + + set + { + this._variableDatumLength = value; + } + } + + /// + /// Gets the variable length list of 64-bit datums + /// + [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] + public List VariableDatums + { + get + { + return this._variableDatums; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._variableDatumID); + dos.WriteUnsignedInt((uint)this._variableDatumLength); //Post processedtums.Count); + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + EightByteChunk aEightByteChunk = (EightByteChunk)this._variableDatums[idx]; + aEightByteChunk.Marshal(dos); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._variableDatumID = dis.ReadUnsignedInt(); + this._variableDatumLength = dis.ReadUnsignedInt(); + int variableCount = (int)(this._variableDatumLength / 64) + (this._variableDatumLength % 64 > 0 ? 1 : 0); //Post processed + + for (int idx = 0; idx < variableCount; idx++) + { + EightByteChunk anX = new EightByteChunk(); + anX.Unmarshal(dis); + this._variableDatums.Add(anX); + } + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._variableDatumID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + sb.AppendLine(""); + EightByteChunk aEightByteChunk = (EightByteChunk)this._variableDatums[idx]; + aEightByteChunk.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as VariableDatum; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(VariableDatum obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._variableDatumID != obj._variableDatumID) + { + ivarsEqual = false; + } + + if (this._variableDatumLength != obj._variableDatumLength) + { + ivarsEqual = false; + } + + if (this._variableDatums.Count != obj._variableDatums.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._variableDatumID.GetHashCode(); + result = GenerateHash(result) ^ this._variableDatumLength.GetHashCode(); + + if (this._variableDatums.Count > 0) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/Vector3Double.cs b/Libs/CsharpDis6/Dis1998/Generated/Vector3Double.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/Vector3Double.cs rename to Libs/CsharpDis6/Dis1998/Generated/Vector3Double.cs index 703bced..7185ee2 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/Vector3Double.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/Vector3Double.cs @@ -1,364 +1,364 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.34. Three double precision floating point values, x, y, and z - /// - [Serializable] - [XmlRoot] - public partial class Vector3Double - { - /// - /// X value - /// - private double _x; - - /// - /// Y value - /// - private double _y; - - /// - /// Z value - /// - private double _z; - - /// - /// Initializes a new instance of the class. - /// - public Vector3Double() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(Vector3Double left, Vector3Double right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(Vector3Double left, Vector3Double right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 8; // this._x - marshalSize += 8; // this._y - marshalSize += 8; // this._z - return marshalSize; - } - - /// - /// Gets or sets the X value - /// - [XmlElement(Type = typeof(double), ElementName = "x")] - public double X - { - get - { - return this._x; - } - - set - { - this._x = value; - } - } - - /// - /// Gets or sets the Y value - /// - [XmlElement(Type = typeof(double), ElementName = "y")] - public double Y - { - get - { - return this._y; - } - - set - { - this._y = value; - } - } - - /// - /// Gets or sets the Z value - /// - [XmlElement(Type = typeof(double), ElementName = "z")] - public double Z - { - get - { - return this._z; - } - - set - { - this._z = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteDouble((double)this._x); - dos.WriteDouble((double)this._y); - dos.WriteDouble((double)this._z); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._x = dis.ReadDouble(); - this._y = dis.ReadDouble(); - this._z = dis.ReadDouble(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._x.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._y.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._z.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as Vector3Double; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(Vector3Double obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._x != obj._x) - { - ivarsEqual = false; - } - - if (this._y != obj._y) - { - ivarsEqual = false; - } - - if (this._z != obj._z) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._x.GetHashCode(); - result = GenerateHash(result) ^ this._y.GetHashCode(); - result = GenerateHash(result) ^ this._z.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.34. Three double precision floating point values, x, y, and z + /// + [Serializable] + [XmlRoot] + public partial class Vector3Double + { + /// + /// X value + /// + private double _x; + + /// + /// Y value + /// + private double _y; + + /// + /// Z value + /// + private double _z; + + /// + /// Initializes a new instance of the class. + /// + public Vector3Double() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(Vector3Double left, Vector3Double right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(Vector3Double left, Vector3Double right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 8; // this._x + marshalSize += 8; // this._y + marshalSize += 8; // this._z + return marshalSize; + } + + /// + /// Gets or sets the X value + /// + [XmlElement(Type = typeof(double), ElementName = "x")] + public double X + { + get + { + return this._x; + } + + set + { + this._x = value; + } + } + + /// + /// Gets or sets the Y value + /// + [XmlElement(Type = typeof(double), ElementName = "y")] + public double Y + { + get + { + return this._y; + } + + set + { + this._y = value; + } + } + + /// + /// Gets or sets the Z value + /// + [XmlElement(Type = typeof(double), ElementName = "z")] + public double Z + { + get + { + return this._z; + } + + set + { + this._z = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteDouble((double)this._x); + dos.WriteDouble((double)this._y); + dos.WriteDouble((double)this._z); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._x = dis.ReadDouble(); + this._y = dis.ReadDouble(); + this._z = dis.ReadDouble(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._x.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._y.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._z.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as Vector3Double; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(Vector3Double obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._x != obj._x) + { + ivarsEqual = false; + } + + if (this._y != obj._y) + { + ivarsEqual = false; + } + + if (this._z != obj._z) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._x.GetHashCode(); + result = GenerateHash(result) ^ this._y.GetHashCode(); + result = GenerateHash(result) ^ this._z.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/Vector3Float.cs b/Libs/CsharpDis6/Dis1998/Generated/Vector3Float.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/Vector3Float.cs rename to Libs/CsharpDis6/Dis1998/Generated/Vector3Float.cs index 9c6a76e..0cac45f 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/Vector3Float.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/Vector3Float.cs @@ -1,364 +1,364 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.2.33. Three floating point values, x, y, and z - /// - [Serializable] - [XmlRoot] - public partial class Vector3Float - { - /// - /// X value - /// - private float _x; - - /// - /// y Value - /// - private float _y; - - /// - /// Z value - /// - private float _z; - - /// - /// Initializes a new instance of the class. - /// - public Vector3Float() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(Vector3Float left, Vector3Float right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(Vector3Float left, Vector3Float right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._x - marshalSize += 4; // this._y - marshalSize += 4; // this._z - return marshalSize; - } - - /// - /// Gets or sets the X value - /// - [XmlElement(Type = typeof(float), ElementName = "x")] - public float X - { - get - { - return this._x; - } - - set - { - this._x = value; - } - } - - /// - /// Gets or sets the y Value - /// - [XmlElement(Type = typeof(float), ElementName = "y")] - public float Y - { - get - { - return this._y; - } - - set - { - this._y = value; - } - } - - /// - /// Gets or sets the Z value - /// - [XmlElement(Type = typeof(float), ElementName = "z")] - public float Z - { - get - { - return this._z; - } - - set - { - this._z = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteFloat((float)this._x); - dos.WriteFloat((float)this._y); - dos.WriteFloat((float)this._z); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._x = dis.ReadFloat(); - this._y = dis.ReadFloat(); - this._z = dis.ReadFloat(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._x.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._y.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._z.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as Vector3Float; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(Vector3Float obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._x != obj._x) - { - ivarsEqual = false; - } - - if (this._y != obj._y) - { - ivarsEqual = false; - } - - if (this._z != obj._z) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._x.GetHashCode(); - result = GenerateHash(result) ^ this._y.GetHashCode(); - result = GenerateHash(result) ^ this._z.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.2.33. Three floating point values, x, y, and z + /// + [Serializable] + [XmlRoot] + public partial class Vector3Float + { + /// + /// X value + /// + private float _x; + + /// + /// y Value + /// + private float _y; + + /// + /// Z value + /// + private float _z; + + /// + /// Initializes a new instance of the class. + /// + public Vector3Float() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(Vector3Float left, Vector3Float right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(Vector3Float left, Vector3Float right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._x + marshalSize += 4; // this._y + marshalSize += 4; // this._z + return marshalSize; + } + + /// + /// Gets or sets the X value + /// + [XmlElement(Type = typeof(float), ElementName = "x")] + public float X + { + get + { + return this._x; + } + + set + { + this._x = value; + } + } + + /// + /// Gets or sets the y Value + /// + [XmlElement(Type = typeof(float), ElementName = "y")] + public float Y + { + get + { + return this._y; + } + + set + { + this._y = value; + } + } + + /// + /// Gets or sets the Z value + /// + [XmlElement(Type = typeof(float), ElementName = "z")] + public float Z + { + get + { + return this._z; + } + + set + { + this._z = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteFloat((float)this._x); + dos.WriteFloat((float)this._y); + dos.WriteFloat((float)this._z); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._x = dis.ReadFloat(); + this._y = dis.ReadFloat(); + this._z = dis.ReadFloat(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._x.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._y.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._z.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as Vector3Float; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(Vector3Float obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._x != obj._x) + { + ivarsEqual = false; + } + + if (this._y != obj._y) + { + ivarsEqual = false; + } + + if (this._z != obj._z) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._x.GetHashCode(); + result = GenerateHash(result) ^ this._y.GetHashCode(); + result = GenerateHash(result) ^ this._z.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/VectoringNozzleSystemData.cs b/Libs/CsharpDis6/Dis1998/Generated/VectoringNozzleSystemData.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/VectoringNozzleSystemData.cs rename to Libs/CsharpDis6/Dis1998/Generated/VectoringNozzleSystemData.cs index 998432b..a2f5e1f 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/VectoringNozzleSystemData.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/VectoringNozzleSystemData.cs @@ -1,332 +1,332 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Data about a vectoring nozzle system - /// - [Serializable] - [XmlRoot] - public partial class VectoringNozzleSystemData - { - /// - /// horizontal deflection angle - /// - private float _horizontalDeflectionAngle; - - /// - /// vertical deflection angle - /// - private float _verticalDeflectionAngle; - - /// - /// Initializes a new instance of the class. - /// - public VectoringNozzleSystemData() - { - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(VectoringNozzleSystemData left, VectoringNozzleSystemData right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(VectoringNozzleSystemData left, VectoringNozzleSystemData right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public virtual int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize += 4; // this._horizontalDeflectionAngle - marshalSize += 4; // this._verticalDeflectionAngle - return marshalSize; - } - - /// - /// Gets or sets the horizontal deflection angle - /// - [XmlElement(Type = typeof(float), ElementName = "horizontalDeflectionAngle")] - public float HorizontalDeflectionAngle - { - get - { - return this._horizontalDeflectionAngle; - } - - set - { - this._horizontalDeflectionAngle = value; - } - } - - /// - /// Gets or sets the vertical deflection angle - /// - [XmlElement(Type = typeof(float), ElementName = "verticalDeflectionAngle")] - public float VerticalDeflectionAngle - { - get - { - return this._verticalDeflectionAngle; - } - - set - { - this._verticalDeflectionAngle = value; - } - } - - /// - /// Occurs when exception when processing PDU is caught. - /// - public event EventHandler ExceptionOccured; - - /// - /// Called when exception occurs (raises the event). - /// - /// The exception. - protected void RaiseExceptionOccured(Exception e) - { - if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) - { - this.ExceptionOccured(this, new PduExceptionEventArgs(e)); - } - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Marshal(DataOutputStream dos) - { - if (dos != null) - { - try - { - dos.WriteFloat((float)this._horizontalDeflectionAngle); - dos.WriteFloat((float)this._verticalDeflectionAngle); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Unmarshal(DataInputStream dis) - { - if (dis != null) - { - try - { - this._horizontalDeflectionAngle = dis.ReadFloat(); - this._verticalDeflectionAngle = dis.ReadFloat(); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public virtual void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - try - { - sb.AppendLine("" + this._horizontalDeflectionAngle.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine("" + this._verticalDeflectionAngle.ToString(CultureInfo.InvariantCulture) + ""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as VectoringNozzleSystemData; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(VectoringNozzleSystemData obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - if (this._horizontalDeflectionAngle != obj._horizontalDeflectionAngle) - { - ivarsEqual = false; - } - - if (this._verticalDeflectionAngle != obj._verticalDeflectionAngle) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ this._horizontalDeflectionAngle.GetHashCode(); - result = GenerateHash(result) ^ this._verticalDeflectionAngle.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Data about a vectoring nozzle system + /// + [Serializable] + [XmlRoot] + public partial class VectoringNozzleSystemData + { + /// + /// horizontal deflection angle + /// + private float _horizontalDeflectionAngle; + + /// + /// vertical deflection angle + /// + private float _verticalDeflectionAngle; + + /// + /// Initializes a new instance of the class. + /// + public VectoringNozzleSystemData() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(VectoringNozzleSystemData left, VectoringNozzleSystemData right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(VectoringNozzleSystemData left, VectoringNozzleSystemData right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._horizontalDeflectionAngle + marshalSize += 4; // this._verticalDeflectionAngle + return marshalSize; + } + + /// + /// Gets or sets the horizontal deflection angle + /// + [XmlElement(Type = typeof(float), ElementName = "horizontalDeflectionAngle")] + public float HorizontalDeflectionAngle + { + get + { + return this._horizontalDeflectionAngle; + } + + set + { + this._horizontalDeflectionAngle = value; + } + } + + /// + /// Gets or sets the vertical deflection angle + /// + [XmlElement(Type = typeof(float), ElementName = "verticalDeflectionAngle")] + public float VerticalDeflectionAngle + { + get + { + return this._verticalDeflectionAngle; + } + + set + { + this._verticalDeflectionAngle = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event EventHandler ExceptionOccured; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void RaiseExceptionOccured(Exception e) + { + if (Pdu.FireExceptionEvents && this.ExceptionOccured != null) + { + this.ExceptionOccured(this, new PduExceptionEventArgs(e)); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteFloat((float)this._horizontalDeflectionAngle); + dos.WriteFloat((float)this._verticalDeflectionAngle); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._horizontalDeflectionAngle = dis.ReadFloat(); + this._verticalDeflectionAngle = dis.ReadFloat(); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._horizontalDeflectionAngle.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._verticalDeflectionAngle.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as VectoringNozzleSystemData; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(VectoringNozzleSystemData obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._horizontalDeflectionAngle != obj._horizontalDeflectionAngle) + { + ivarsEqual = false; + } + + if (this._verticalDeflectionAngle != obj._verticalDeflectionAngle) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._horizontalDeflectionAngle.GetHashCode(); + result = GenerateHash(result) ^ this._verticalDeflectionAngle.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/WarfareFamilyPdu.cs b/Libs/CsharpDis6/Dis1998/Generated/WarfareFamilyPdu.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/Generated/WarfareFamilyPdu.cs rename to Libs/CsharpDis6/Dis1998/Generated/WarfareFamilyPdu.cs index b493f2b..e04d3a0 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Generated/WarfareFamilyPdu.cs +++ b/Libs/CsharpDis6/Dis1998/Generated/WarfareFamilyPdu.cs @@ -1,341 +1,341 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author: DMcG -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; -using System.Text; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.3.4. abstract superclass for fire and detonation pdus that have shared information. COMPLETE - /// - [Serializable] - [XmlRoot] - [XmlInclude(typeof(EntityID))] - public partial class WarfareFamilyPdu : Pdu, IEquatable - { - /// - /// ID of the entity that shot - /// - private EntityID _firingEntityID = new EntityID(); - - /// - /// ID of the entity that is being shot at - /// - private EntityID _targetEntityID = new EntityID(); - - /// - /// Initializes a new instance of the class. - /// - public WarfareFamilyPdu() - { - ProtocolFamily = (byte)2; - } - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(WarfareFamilyPdu left, WarfareFamilyPdu right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if both operands are equal; otherwise, false. - /// - public static bool operator ==(WarfareFamilyPdu left, WarfareFamilyPdu right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - public override int GetMarshalledSize() - { - int marshalSize = 0; - - marshalSize = base.GetMarshalledSize(); - marshalSize += this._firingEntityID.GetMarshalledSize(); // this._firingEntityID - marshalSize += this._targetEntityID.GetMarshalledSize(); // this._targetEntityID - return marshalSize; - } - - /// - /// Gets or sets the ID of the entity that shot - /// - [XmlElement(Type = typeof(EntityID), ElementName = "firingEntityID")] - public EntityID FiringEntityID - { - get - { - return this._firingEntityID; - } - - set - { - this._firingEntityID = value; - } - } - - /// - /// Gets or sets the ID of the entity that is being shot at - /// - [XmlElement(Type = typeof(EntityID), ElementName = "targetEntityID")] - public EntityID TargetEntityID - { - get - { - return this._targetEntityID; - } - - set - { - this._targetEntityID = value; - } - } - - /// - /// Automatically sets the length of the marshalled data, then calls the marshal method. - /// - /// The DataOutputStream instance to which the PDU is marshaled. - public virtual void MarshalAutoLengthSet(DataOutputStream dos) - { - // Set the length prior to marshalling data - this.Length = (ushort)this.GetMarshalledSize(); - this.Marshal(dos); - } - - /// - /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method - /// - /// The DataOutputStream instance to which the PDU is marshaled. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Marshal(DataOutputStream dos) - { - base.Marshal(dos); - if (dos != null) - { - try - { - this._firingEntityID.Marshal(dos); - this._targetEntityID.Marshal(dos); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Unmarshal(DataInputStream dis) - { - base.Unmarshal(dis); - - if (dis != null) - { - try - { - this._firingEntityID.Unmarshal(dis); - this._targetEntityID.Unmarshal(dis); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - } - - /// - /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. - /// This will be modified in the future to provide a better display. Usage: - /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); - /// where pdu is an object representing a single pdu and sb is a StringBuilder. - /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality - /// - /// The StringBuilder instance to which the PDU is written to. - [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] - public override void Reflection(StringBuilder sb) - { - sb.AppendLine(""); - base.Reflection(sb); - try - { - sb.AppendLine(""); - this._firingEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - this._targetEntityID.Reflection(sb); - sb.AppendLine(""); - sb.AppendLine(""); - } - catch (Exception e) - { - if (PduBase.TraceExceptions) - { - Trace.WriteLine(e); - Trace.Flush(); - } - - this.RaiseExceptionOccured(e); - - if (PduBase.ThrowExceptions) - { - throw e; - } - } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - return this == obj as WarfareFamilyPdu; - } - - /// - /// Compares for reference AND value equality. - /// - /// The object to compare with this instance. - /// - /// true if both operands are equal; otherwise, false. - /// - public bool Equals(WarfareFamilyPdu obj) - { - bool ivarsEqual = true; - - if (obj.GetType() != this.GetType()) - { - return false; - } - - ivarsEqual = base.Equals(obj); - - if (!this._firingEntityID.Equals(obj._firingEntityID)) - { - ivarsEqual = false; - } - - if (!this._targetEntityID.Equals(obj._targetEntityID)) - { - ivarsEqual = false; - } - - return ivarsEqual; - } - - /// - /// HashCode Helper - /// - /// The hash value. - /// The new hash value. - private static int GenerateHash(int hash) - { - hash = hash << (5 + hash); - return hash; - } - - /// - /// Gets the hash code. - /// - /// The hash code. - public override int GetHashCode() - { - int result = 0; - - result = GenerateHash(result) ^ base.GetHashCode(); - - result = GenerateHash(result) ^ this._firingEntityID.GetHashCode(); - result = GenerateHash(result) ^ this._targetEntityID.GetHashCode(); - - return result; - } - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.3.4. abstract superclass for fire and detonation pdus that have shared information. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + public partial class WarfareFamilyPdu : Pdu, IEquatable + { + /// + /// ID of the entity that shot + /// + private EntityID _firingEntityID = new EntityID(); + + /// + /// ID of the entity that is being shot at + /// + private EntityID _targetEntityID = new EntityID(); + + /// + /// Initializes a new instance of the class. + /// + public WarfareFamilyPdu() + { + ProtocolFamily = (byte)2; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(WarfareFamilyPdu left, WarfareFamilyPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(WarfareFamilyPdu left, WarfareFamilyPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._firingEntityID.GetMarshalledSize(); // this._firingEntityID + marshalSize += this._targetEntityID.GetMarshalledSize(); // this._targetEntityID + return marshalSize; + } + + /// + /// Gets or sets the ID of the entity that shot + /// + [XmlElement(Type = typeof(EntityID), ElementName = "firingEntityID")] + public EntityID FiringEntityID + { + get + { + return this._firingEntityID; + } + + set + { + this._firingEntityID = value; + } + } + + /// + /// Gets or sets the ID of the entity that is being shot at + /// + [XmlElement(Type = typeof(EntityID), ElementName = "targetEntityID")] + public EntityID TargetEntityID + { + get + { + return this._targetEntityID; + } + + set + { + this._targetEntityID = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public virtual void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._firingEntityID.Marshal(dos); + this._targetEntityID.Marshal(dos); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._firingEntityID.Unmarshal(dis); + this._targetEntityID.Unmarshal(dis); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._firingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._targetEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + } + catch (Exception e) + { + if (PduBase.TraceExceptions) + { + Trace.WriteLine(e); + Trace.Flush(); + } + + this.RaiseExceptionOccured(e); + + if (PduBase.ThrowExceptions) + { + throw e; + } + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as WarfareFamilyPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(WarfareFamilyPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._firingEntityID.Equals(obj._firingEntityID)) + { + ivarsEqual = false; + } + + if (!this._targetEntityID.Equals(obj._targetEntityID)) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._firingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._targetEntityID.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/PduFactory.cs b/Libs/CsharpDis6/Dis1998/PduFactory.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Dis1998/PduFactory.cs rename to Libs/CsharpDis6/Dis1998/PduFactory.cs index 4ae7b28..3aae42f 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/PduFactory.cs +++ b/Libs/CsharpDis6/Dis1998/PduFactory.cs @@ -1,239 +1,239 @@ -using System; -using OpenDis.Core; -using OpenDis.Enumerations; - -namespace OpenDis.Dis1998 -{ - public static class PduFactory - { - /// - /// Creates the PDU. - /// - /// The type of PDU to be created. - /// Returns the corresponding PDU instance or null if type equals 0. - /// if the PDU type specified in parameter is not supported. - public static IPdu CreatePdu(byte type) - { - return CreatePdu((PduType)type); - } - - /// - /// Creates the PDU. - /// - /// The type of PDU to be created. - /// Returns the corresponding PDU instance or null if PduType.Other is specified. - /// if the PDU type specified in parameter is not supported. - public static IPdu CreatePdu(PduType type) - { - IPdu pdu = null; - - switch (type) - { - case PduType.Other: - pdu = new Pdu(); - break; - case PduType.EntityState: - pdu = new EntityStatePdu(); - break; - case PduType.Fire: - pdu = new FirePdu(); - break; - case PduType.Detonation: - pdu = new DetonationPdu(); - break; - case PduType.Collision: - pdu = new CollisionPdu(); - break; - case PduType.ServiceRequest: - pdu = new ServiceRequestPdu(); - break; - case PduType.ResupplyOffer: - pdu = new ResupplyOfferPdu(); - break; - case PduType.ResupplyReceived: - pdu = new ResupplyReceivedPdu(); - break; - case PduType.ResupplyCancel: - pdu = new ResupplyCancelPdu(); - break; - case PduType.RepairComplete: - pdu = new RepairCompletePdu(); - break; - case PduType.RepairResponse: - pdu = new RepairResponsePdu(); - break; - case PduType.CreateEntity: - pdu = new CreateEntityPdu(); - break; - case PduType.RemoveEntity: - pdu = new RemoveEntityPdu(); - break; - case PduType.StartResume: - pdu = new StartResumePdu(); - break; - case PduType.StopFreeze: - pdu = new StopFreezePdu(); - break; - case PduType.Acknowledge: - pdu = new AcknowledgePdu(); - break; - case PduType.ActionRequest: - pdu = new ActionRequestPdu(); - break; - case PduType.ActionResponse: - pdu = new ActionResponsePdu(); - break; - case PduType.DataQuery: - pdu = new DataQueryPdu(); - break; - case PduType.SetData: - pdu = new SetDataPdu(); - break; - case PduType.Data: - pdu = new DataPdu(); - break; - case PduType.EventReport: - pdu = new EventReportPdu(); - break; - case PduType.Comment: - pdu = new CommentPdu(); - break; - case PduType.ElectromagneticEmission: - pdu = new ElectronicEmissionsPdu(); - break; - case PduType.Designator: - pdu = new DesignatorPdu(); - break; - case PduType.Transmitter: - pdu = new TransmitterPdu(); - break; - case PduType.Signal: - pdu = new SignalPdu(); - break; - case PduType.Receiver: - pdu = new ReceiverPdu(); - break; - case PduType.IFF_ATC_NAVAIDS: - pdu = new IffAtcNavAidsLayer1Pdu(); - break; - case PduType.UnderwaterAcoustic: - pdu = new UaPdu(); - break; - case PduType.SupplementalEmissionEntityState: - pdu = new SeesPdu(); - break; - case PduType.IntercomSignal: - pdu = new IntercomSignalPdu(); - break; - case PduType.IntercomControl: - pdu = new IntercomControlPdu(); - break; - case PduType.AggregateState: - pdu = new AggregateStatePdu(); - break; - case PduType.IsGroupOf: - pdu = new IsGroupOfPdu(); - break; - case PduType.TransferControl: - pdu = new TransferControlRequestPdu(); - break; - case PduType.IsPartOf: - pdu = new IsPartOfPdu(); - break; - case PduType.MinefieldState: - pdu = new MinefieldStatePdu(); - break; - case PduType.MinefieldQuery: - pdu = new MinefieldQueryPdu(); - break; - case PduType.MinefieldData: - pdu = new MinefieldDataPdu(); - break; - case PduType.MinefieldResponseNAK: - pdu = new MinefieldResponseNackPdu(); - break; - case PduType.EnvironmentalProcess: - pdu = new EnvironmentalProcessPdu(); - break; - case PduType.GriddedData: - pdu = new GriddedDataPdu(); - break; - case PduType.PointObjectState: - pdu = new PointObjectStatePdu(); - break; - case PduType.LinearObjectState: - pdu = new LinearObjectStatePdu(); - break; - case PduType.ArealObjectState: - pdu = new ArealObjectStatePdu(); - break; - case PduType.TSPI: - throw new NotImplementedException(); - case PduType.Appearance: - throw new NotImplementedException(); - case PduType.ArticulatedParts: - throw new NotImplementedException(); - case PduType.LEFire: - throw new NotImplementedException(); - case PduType.LEDetonation: - throw new NotImplementedException(); - case PduType.CreateEntityR: - pdu = new CreateEntityReliablePdu(); - break; - case PduType.RemoveEntityR: - pdu = new RemoveEntityReliablePdu(); - break; - case PduType.StartResumeR: - pdu = new StartResumeReliablePdu(); - break; - case PduType.StopFreezeR: - pdu = new StopFreezeReliablePdu(); - break; - case PduType.AcknowledgeR: - pdu = new AcknowledgeReliablePdu(); - break; - case PduType.ActionRequestR: - pdu = new ActionRequestReliablePdu(); - break; - case PduType.ActionResponseR: - pdu = new ActionResponseReliablePdu(); - break; - case PduType.DataQueryR: - pdu = new DataQueryReliablePdu(); - break; - case PduType.SetDataR: - pdu = new SetDataReliablePdu(); - break; - case PduType.DataR: - pdu = new DataReliablePdu(); - break; - case PduType.EventReportR: - pdu = new EventReportReliablePdu(); - break; - case PduType.CommentR: - pdu = new CommentReliablePdu(); - break; - case PduType.RecordR: - pdu = new RecordQueryReliablePdu(); - break; - case PduType.SetRecordR: - pdu = new SetRecordReliablePdu(); - break; - case PduType.RecordQueryR: - pdu = new RecordQueryReliablePdu(); - break; - case PduType.CollisionElastic: - pdu = new CollisionElasticPdu(); - break; - case PduType.EntityStateUpdate: - pdu = new EntityStateUpdatePdu(); - break; - default: - pdu = null; - break; - } - - return pdu; - } - } -} +using System; +using OpenDis.Core; +using OpenDis.Enumerations; + +namespace OpenDis.Dis1998 +{ + public static class PduFactory + { + /// + /// Creates the PDU. + /// + /// The type of PDU to be created. + /// Returns the corresponding PDU instance or null if type equals 0. + /// if the PDU type specified in parameter is not supported. + public static IPdu CreatePdu(byte type) + { + return CreatePdu((PduType)type); + } + + /// + /// Creates the PDU. + /// + /// The type of PDU to be created. + /// Returns the corresponding PDU instance or null if PduType.Other is specified. + /// if the PDU type specified in parameter is not supported. + public static IPdu CreatePdu(PduType type) + { + IPdu pdu = null; + + switch (type) + { + case PduType.Other: + pdu = new Pdu(); + break; + case PduType.EntityState: + pdu = new EntityStatePdu(); + break; + case PduType.Fire: + pdu = new FirePdu(); + break; + case PduType.Detonation: + pdu = new DetonationPdu(); + break; + case PduType.Collision: + pdu = new CollisionPdu(); + break; + case PduType.ServiceRequest: + pdu = new ServiceRequestPdu(); + break; + case PduType.ResupplyOffer: + pdu = new ResupplyOfferPdu(); + break; + case PduType.ResupplyReceived: + pdu = new ResupplyReceivedPdu(); + break; + case PduType.ResupplyCancel: + pdu = new ResupplyCancelPdu(); + break; + case PduType.RepairComplete: + pdu = new RepairCompletePdu(); + break; + case PduType.RepairResponse: + pdu = new RepairResponsePdu(); + break; + case PduType.CreateEntity: + pdu = new CreateEntityPdu(); + break; + case PduType.RemoveEntity: + pdu = new RemoveEntityPdu(); + break; + case PduType.StartResume: + pdu = new StartResumePdu(); + break; + case PduType.StopFreeze: + pdu = new StopFreezePdu(); + break; + case PduType.Acknowledge: + pdu = new AcknowledgePdu(); + break; + case PduType.ActionRequest: + pdu = new ActionRequestPdu(); + break; + case PduType.ActionResponse: + pdu = new ActionResponsePdu(); + break; + case PduType.DataQuery: + pdu = new DataQueryPdu(); + break; + case PduType.SetData: + pdu = new SetDataPdu(); + break; + case PduType.Data: + pdu = new DataPdu(); + break; + case PduType.EventReport: + pdu = new EventReportPdu(); + break; + case PduType.Comment: + pdu = new CommentPdu(); + break; + case PduType.ElectromagneticEmission: + pdu = new ElectronicEmissionsPdu(); + break; + case PduType.Designator: + pdu = new DesignatorPdu(); + break; + case PduType.Transmitter: + pdu = new TransmitterPdu(); + break; + case PduType.Signal: + pdu = new SignalPdu(); + break; + case PduType.Receiver: + pdu = new ReceiverPdu(); + break; + case PduType.IFF_ATC_NAVAIDS: + pdu = new IffAtcNavAidsLayer1Pdu(); + break; + case PduType.UnderwaterAcoustic: + pdu = new UaPdu(); + break; + case PduType.SupplementalEmissionEntityState: + pdu = new SeesPdu(); + break; + case PduType.IntercomSignal: + pdu = new IntercomSignalPdu(); + break; + case PduType.IntercomControl: + pdu = new IntercomControlPdu(); + break; + case PduType.AggregateState: + pdu = new AggregateStatePdu(); + break; + case PduType.IsGroupOf: + pdu = new IsGroupOfPdu(); + break; + case PduType.TransferControl: + pdu = new TransferControlRequestPdu(); + break; + case PduType.IsPartOf: + pdu = new IsPartOfPdu(); + break; + case PduType.MinefieldState: + pdu = new MinefieldStatePdu(); + break; + case PduType.MinefieldQuery: + pdu = new MinefieldQueryPdu(); + break; + case PduType.MinefieldData: + pdu = new MinefieldDataPdu(); + break; + case PduType.MinefieldResponseNAK: + pdu = new MinefieldResponseNackPdu(); + break; + case PduType.EnvironmentalProcess: + pdu = new EnvironmentalProcessPdu(); + break; + case PduType.GriddedData: + pdu = new GriddedDataPdu(); + break; + case PduType.PointObjectState: + pdu = new PointObjectStatePdu(); + break; + case PduType.LinearObjectState: + pdu = new LinearObjectStatePdu(); + break; + case PduType.ArealObjectState: + pdu = new ArealObjectStatePdu(); + break; + case PduType.TSPI: + throw new NotImplementedException(); + case PduType.Appearance: + throw new NotImplementedException(); + case PduType.ArticulatedParts: + throw new NotImplementedException(); + case PduType.LEFire: + throw new NotImplementedException(); + case PduType.LEDetonation: + throw new NotImplementedException(); + case PduType.CreateEntityR: + pdu = new CreateEntityReliablePdu(); + break; + case PduType.RemoveEntityR: + pdu = new RemoveEntityReliablePdu(); + break; + case PduType.StartResumeR: + pdu = new StartResumeReliablePdu(); + break; + case PduType.StopFreezeR: + pdu = new StopFreezeReliablePdu(); + break; + case PduType.AcknowledgeR: + pdu = new AcknowledgeReliablePdu(); + break; + case PduType.ActionRequestR: + pdu = new ActionRequestReliablePdu(); + break; + case PduType.ActionResponseR: + pdu = new ActionResponseReliablePdu(); + break; + case PduType.DataQueryR: + pdu = new DataQueryReliablePdu(); + break; + case PduType.SetDataR: + pdu = new SetDataReliablePdu(); + break; + case PduType.DataR: + pdu = new DataReliablePdu(); + break; + case PduType.EventReportR: + pdu = new EventReportReliablePdu(); + break; + case PduType.CommentR: + pdu = new CommentReliablePdu(); + break; + case PduType.RecordR: + pdu = new RecordQueryReliablePdu(); + break; + case PduType.SetRecordR: + pdu = new SetRecordReliablePdu(); + break; + case PduType.RecordQueryR: + pdu = new RecordQueryReliablePdu(); + break; + case PduType.CollisionElastic: + pdu = new CollisionElasticPdu(); + break; + case PduType.EntityStateUpdate: + pdu = new EntityStateUpdatePdu(); + break; + default: + pdu = null; + break; + } + + return pdu; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Vector3Double.cs b/Libs/CsharpDis6/Dis1998/Vector3Double.cs similarity index 96% rename from Libs/CsharpDis6/OpenDis/Dis1998/Vector3Double.cs rename to Libs/CsharpDis6/Dis1998/Vector3Double.cs index 92e556f..88bfe8a 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Vector3Double.cs +++ b/Libs/CsharpDis6/Dis1998/Vector3Double.cs @@ -1,19 +1,19 @@ -using System; - -namespace OpenDis.Dis1998 -{ - /// - /// Three floating point values, x, y, and z. - /// - public partial class Vector3Double - { - /// - /// Calculates the length of the vector. - /// - /// The length of the vector. - public double CalculateLength() - { - return Math.Sqrt(Math.Pow(this.X, 2) + Math.Pow(this.Y, 2) + Math.Pow(this.Z, 2)); - } - } -} +using System; + +namespace OpenDis.Dis1998 +{ + /// + /// Three floating point values, x, y, and z. + /// + public partial class Vector3Double + { + /// + /// Calculates the length of the vector. + /// + /// The length of the vector. + public double CalculateLength() + { + return Math.Sqrt(Math.Pow(this.X, 2) + Math.Pow(this.Y, 2) + Math.Pow(this.Z, 2)); + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Dis1998/Vector3Float.cs b/Libs/CsharpDis6/Dis1998/Vector3Float.cs similarity index 96% rename from Libs/CsharpDis6/OpenDis/Dis1998/Vector3Float.cs rename to Libs/CsharpDis6/Dis1998/Vector3Float.cs index a936c47..4684f94 100644 --- a/Libs/CsharpDis6/OpenDis/Dis1998/Vector3Float.cs +++ b/Libs/CsharpDis6/Dis1998/Vector3Float.cs @@ -1,19 +1,19 @@ -using System; - -namespace OpenDis.Dis1998 -{ - /// - /// Section 5.2.33. Three floating point values, x, y, and z - /// - public partial class Vector3Float - { - /// - /// Calculates the length of the vector. - /// - /// The length of the vector. - public double CalculateLength() - { - return Math.Sqrt(Math.Pow(this.X, 2) + Math.Pow(this.Y, 2) + Math.Pow(this.Z, 2)); - } - } -} +using System; + +namespace OpenDis.Dis1998 +{ + /// + /// Section 5.2.33. Three floating point values, x, y, and z + /// + public partial class Vector3Float + { + /// + /// Calculates the length of the vector. + /// + /// The length of the vector. + public double CalculateLength() + { + return Math.Sqrt(Math.Pow(this.X, 2) + Math.Pow(this.Y, 2) + Math.Pow(this.Z, 2)); + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/AggregateTypes.xml b/Libs/CsharpDis6/Enumerations/Cet2006/AggregateTypes.xml similarity index 97% rename from Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/AggregateTypes.xml rename to Libs/CsharpDis6/Enumerations/Cet2006/AggregateTypes.xml index 87b19f9..7554c06 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/AggregateTypes.xml +++ b/Libs/CsharpDis6/Enumerations/Cet2006/AggregateTypes.xml @@ -1,16 +1,16 @@ - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/Category.cs b/Libs/CsharpDis6/Enumerations/Cet2006/Category.cs similarity index 95% rename from Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/Category.cs rename to Libs/CsharpDis6/Enumerations/Cet2006/Category.cs index 401ef62..32452bf 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/Category.cs +++ b/Libs/CsharpDis6/Enumerations/Cet2006/Category.cs @@ -1,84 +1,84 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Globalization; -using System.Xml.Schema; -using System.Xml.Serialization; - -namespace OpenDis.Enumerations.Cet2006 -{ - [Serializable()] - [DebuggerStepThrough()] - public class Category : GenericEntry - { - #region Fields (3)  - - private List subcategoryField; - - private byte id; - private string idField; - - #endregion Fields  - - #region Properties (3)  - - [XmlIgnore] - public byte Id - { - get - { - return this.id; - } - - set - { - if (this.id != value) - { - this.RawId = ((byte)value).ToString(CultureInfo.InvariantCulture); - this.RaisePropertyChanged("Id"); - } - } - } - - [XmlAttribute(AttributeName = "id", DataType = "nonNegativeInteger")] - public string RawId - { - get - { - return this.idField; - } - - set - { - this.VerifyNumericString(value, false); - - if (this.idField != value) - { - this.idField = value; - this.id = byte.Parse(value, CultureInfo.InvariantCulture); - this.RaisePropertyChanged("RawId"); - } - } - } - - [XmlElement("subcategory", Form = XmlSchemaForm.Unqualified)] - public List Subcategories - { - get - { - return this.subcategoryField; - } - - set - { - if (this.subcategoryField != value) - { - this.subcategoryField = value; - this.RaisePropertyChanged("Subcategories"); - } - } - } - - #endregion Properties  - } -} +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Globalization; +using System.Xml.Schema; +using System.Xml.Serialization; + +namespace OpenDis.Enumerations.Cet2006 +{ + [Serializable()] + [DebuggerStepThrough()] + public class Category : GenericEntry + { + #region Fields (3)  + + private List subcategoryField; + + private byte id; + private string idField; + + #endregion Fields  + + #region Properties (3)  + + [XmlIgnore] + public byte Id + { + get + { + return this.id; + } + + set + { + if (this.id != value) + { + this.RawId = ((byte)value).ToString(CultureInfo.InvariantCulture); + this.RaisePropertyChanged("Id"); + } + } + } + + [XmlAttribute(AttributeName = "id", DataType = "nonNegativeInteger")] + public string RawId + { + get + { + return this.idField; + } + + set + { + this.VerifyNumericString(value, false); + + if (this.idField != value) + { + this.idField = value; + this.id = byte.Parse(value, CultureInfo.InvariantCulture); + this.RaisePropertyChanged("RawId"); + } + } + } + + [XmlElement("subcategory", Form = XmlSchemaForm.Unqualified)] + public List Subcategories + { + get + { + return this.subcategoryField; + } + + set + { + if (this.subcategoryField != value) + { + this.subcategoryField = value; + this.RaisePropertyChanged("Subcategories"); + } + } + } + + #endregion Properties  + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/Cet.cs b/Libs/CsharpDis6/Enumerations/Cet2006/Cet.cs similarity index 95% rename from Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/Cet.cs rename to Libs/CsharpDis6/Enumerations/Cet2006/Cet.cs index d32b7d4..d5c38cf 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/Cet.cs +++ b/Libs/CsharpDis6/Enumerations/Cet2006/Cet.cs @@ -1,42 +1,42 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Xml.Schema; -using System.Xml.Serialization; - -namespace OpenDis.Enumerations.Cet2006 -{ - [Serializable()] - [DebuggerStepThrough()] - [XmlRoot("cet", Namespace = "", IsNullable = false)] - public class Cet : GenericTable - { - #region Fields (1)  - - private List entityField; - - #endregion Fields  - - #region Properties (1)  - - [XmlElement("entity", Form = XmlSchemaForm.Unqualified)] - public List Entities - { - get - { - return this.entityField; - } - - set - { - if (this.entityField != value) - { - this.entityField = value; - this.RaisePropertyChanged("Entities"); - } - } - } - - #endregion Properties  - } +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Xml.Schema; +using System.Xml.Serialization; + +namespace OpenDis.Enumerations.Cet2006 +{ + [Serializable()] + [DebuggerStepThrough()] + [XmlRoot("cet", Namespace = "", IsNullable = false)] + public class Cet : GenericTable + { + #region Fields (1)  + + private List entityField; + + #endregion Fields  + + #region Properties (1)  + + [XmlElement("entity", Form = XmlSchemaForm.Unqualified)] + public List Entities + { + get + { + return this.entityField; + } + + set + { + if (this.entityField != value) + { + this.entityField = value; + this.RaisePropertyChanged("Entities"); + } + } + } + + #endregion Properties  + } } \ No newline at end of file diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/CetFactory.cs b/Libs/CsharpDis6/Enumerations/Cet2006/CetFactory.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/CetFactory.cs rename to Libs/CsharpDis6/Enumerations/Cet2006/CetFactory.cs index 11c22ae..4ad0804 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/CetFactory.cs +++ b/Libs/CsharpDis6/Enumerations/Cet2006/CetFactory.cs @@ -1,124 +1,124 @@ -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Reflection; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Enumerations.Cet2006 -{ - /// - /// Comprehensive entity types factory. - /// - public class CetFactory - { - #region Static methods (3)  - - /// - /// Creates the aggregate types. - /// - /// Aggregate types - public static Cet CreateAggregateTypes() - { - return CreateCet("OpenDis.Enumerations.Cet2006.AggregateTypes.xml"); - } - - public static List Transform(Cet c) - { - List items = new List(); - - IEnumerable extras = - from e in c.Entities - from j in e.Categories - from k in j.Subcategories - from l in k.Specifices - from m in l.Extras - select new CetItem() - { - Category = j.Id, - Country = e.Country, - Description = m.Description, - Domain = e.Domain, - Extra = m.Id != 0 ? (byte?)m.Id : null, - Kind = e.Kind, - Specific = l.Id != 0 ? (byte?)l.Id : null, - Subcategory = k.Id != 0 ? (byte?)k.Id : null - }; - - IEnumerable specifices = - from e in c.Entities - from j in e.Categories - from k in j.Subcategories - from l in k.Specifices - select new CetItem() - { - Category = j.Id, - Country = e.Country, - Description = l.Description, - Domain = e.Domain, - Kind = e.Kind, - Specific = l.Id != 0 ? (byte?)l.Id : null, - Maximum = l.Id2 != 0 ? (byte?)l.Id2 : null, - Subcategory = k.Id != 0 ? (byte?)k.Id : null - }; - - IEnumerable subcategories = - from e in c.Entities - from j in e.Categories - from k in j.Subcategories - select new CetItem() - { - Category = j.Id, - Country = e.Country, - Description = k.Description, - Domain = e.Domain, - Kind = e.Kind, - Subcategory = k.Id != 0 ? (byte?)k.Id : null, - Maximum = k.Id2 != 0 ? (byte?)k.Id2 : null - }; - - IEnumerable categories = - from e in c.Entities - from j in e.Categories - select new CetItem() - { - Category = j.Id, - Country = e.Country, - Description = j.Description, - Domain = e.Domain, - Kind = e.Kind - }; - - items = items.Concat(extras).Concat(specifices).Concat(subcategories).Concat(categories).ToList(); - items.Sort(); - - return items; - } - - /// - /// Creates the comprehensive entity-type instance. - /// - /// The resource from which the CET is extracted. - /// Comprehensive entity-type instance - private static Cet CreateCet(string resource) - { - XmlSerializer serializer = new XmlSerializer(typeof(Cet)); - - Stream s = Assembly.GetExecutingAssembly().GetManifestResourceStream(resource); - Cet et = (Cet)serializer.Deserialize(s); - - return et; - } - - /// - /// Creates the entity types. - /// - /// Entity types. - public static Cet CreateEntityTypes() - { - return CreateCet("OpenDis.Enumerations.Cet2006.EntityTypes.xml"); - } - - #endregion Static methods  - } -} +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Reflection; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Enumerations.Cet2006 +{ + /// + /// Comprehensive entity types factory. + /// + public class CetFactory + { + #region Static methods (3)  + + /// + /// Creates the aggregate types. + /// + /// Aggregate types + public static Cet CreateAggregateTypes() + { + return CreateCet("OpenDis.Enumerations.Cet2006.AggregateTypes.xml"); + } + + public static List Transform(Cet c) + { + List items = new List(); + + IEnumerable extras = + from e in c.Entities + from j in e.Categories + from k in j.Subcategories + from l in k.Specifices + from m in l.Extras + select new CetItem() + { + Category = j.Id, + Country = e.Country, + Description = m.Description, + Domain = e.Domain, + Extra = m.Id != 0 ? (byte?)m.Id : null, + Kind = e.Kind, + Specific = l.Id != 0 ? (byte?)l.Id : null, + Subcategory = k.Id != 0 ? (byte?)k.Id : null + }; + + IEnumerable specifices = + from e in c.Entities + from j in e.Categories + from k in j.Subcategories + from l in k.Specifices + select new CetItem() + { + Category = j.Id, + Country = e.Country, + Description = l.Description, + Domain = e.Domain, + Kind = e.Kind, + Specific = l.Id != 0 ? (byte?)l.Id : null, + Maximum = l.Id2 != 0 ? (byte?)l.Id2 : null, + Subcategory = k.Id != 0 ? (byte?)k.Id : null + }; + + IEnumerable subcategories = + from e in c.Entities + from j in e.Categories + from k in j.Subcategories + select new CetItem() + { + Category = j.Id, + Country = e.Country, + Description = k.Description, + Domain = e.Domain, + Kind = e.Kind, + Subcategory = k.Id != 0 ? (byte?)k.Id : null, + Maximum = k.Id2 != 0 ? (byte?)k.Id2 : null + }; + + IEnumerable categories = + from e in c.Entities + from j in e.Categories + select new CetItem() + { + Category = j.Id, + Country = e.Country, + Description = j.Description, + Domain = e.Domain, + Kind = e.Kind + }; + + items = items.Concat(extras).Concat(specifices).Concat(subcategories).Concat(categories).ToList(); + items.Sort(); + + return items; + } + + /// + /// Creates the comprehensive entity-type instance. + /// + /// The resource from which the CET is extracted. + /// Comprehensive entity-type instance + private static Cet CreateCet(string resource) + { + XmlSerializer serializer = new XmlSerializer(typeof(Cet)); + + Stream s = Assembly.GetExecutingAssembly().GetManifestResourceStream(resource); + Cet et = (Cet)serializer.Deserialize(s); + + return et; + } + + /// + /// Creates the entity types. + /// + /// Entity types. + public static Cet CreateEntityTypes() + { + return CreateCet("OpenDis.Enumerations.Cet2006.EntityTypes.xml"); + } + + #endregion Static methods  + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/CetItem.cs b/Libs/CsharpDis6/Enumerations/Cet2006/CetItem.cs similarity index 96% rename from Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/CetItem.cs rename to Libs/CsharpDis6/Enumerations/Cet2006/CetItem.cs index 34c0fae..2d65d89 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/CetItem.cs +++ b/Libs/CsharpDis6/Enumerations/Cet2006/CetItem.cs @@ -1,149 +1,149 @@ -using System; -using OpenDis.Core; -using OpenDis.Enumerations.EntityState.Type; - -namespace OpenDis.Enumerations.Cet2006 -{ - public class CetItem : ICetItem - { - #region Properties (10)  - - public Country Country { get; set; } - - public byte Domain { get; set; } - - public EntityKind Kind { get; set; } - - public byte Category { get; set; } - - public byte? Subcategory { get; set; } - - public byte? Specific { get; set; } - - public byte? Extra { get; set; } - - public uint? Maximum { get; set; } - - public string Description { get; set; } - - #endregion Properties  - - #region Methods (2)  - - public int CompareTo(ICetItem other) - { - // By definition, any object compares greater than a null reference - if (other == null) - { - return 1; - } - - int countryCompare = this.Country.ToString().CompareTo(other.Country.ToString()); - if (countryCompare != 0) - { - return countryCompare; - } - - int domainCompare = this.Domain.CompareTo(other.Domain); - if (domainCompare != 0) - { - return domainCompare; - } - - int kindCompare = this.Kind.ToString().CompareTo(other.Kind.ToString()); - if (kindCompare != 0) - { - return kindCompare; - } - - int categoryCompare = this.Category.CompareTo(other.Category); - if (categoryCompare != 0) - { - return categoryCompare; - } - - if (this.Subcategory != null) - { - int subcategoryCompare = ((byte)this.Subcategory).CompareTo(other.Subcategory); - if (subcategoryCompare != 0) - { - return subcategoryCompare; - } - } - else - { - if (other.Subcategory != null) - { - return -1; - } - else - { - return 0; - } - } - - if (this.Specific != null) - { - int specificCompare = ((byte)this.Specific).CompareTo(other.Specific); - if (specificCompare != 0) - { - return specificCompare; - } - } - else - { - if (other.Specific != null) - { - return -1; - } - else - { - return 0; - } - } - - if (this.Extra != null) - { - int extraCompare = ((byte)this.Extra).CompareTo(other.Extra); - if (extraCompare != 0) - { - return extraCompare; - } - } - else - { - if (other.Extra != null) - { - return -1; - } - else - { - return 0; - } - } - - if (!string.IsNullOrEmpty(this.Description)) - { - return this.Description.CompareTo(other.Description); - } - else - { - return 0; - } - } - - public int CompareTo(object obj) - { - if (obj is CetItem) - { - return this.CompareTo((CetItem)obj); - } - else - { - throw new ArgumentException("Object is not of type CetItem."); - } - } - - #endregion Methods  - } -} +using System; +using OpenDis.Core; +using OpenDis.Enumerations.EntityState.Type; + +namespace OpenDis.Enumerations.Cet2006 +{ + public class CetItem : ICetItem + { + #region Properties (10)  + + public Country Country { get; set; } + + public byte Domain { get; set; } + + public EntityKind Kind { get; set; } + + public byte Category { get; set; } + + public byte? Subcategory { get; set; } + + public byte? Specific { get; set; } + + public byte? Extra { get; set; } + + public uint? Maximum { get; set; } + + public string Description { get; set; } + + #endregion Properties  + + #region Methods (2)  + + public int CompareTo(ICetItem other) + { + // By definition, any object compares greater than a null reference + if (other == null) + { + return 1; + } + + int countryCompare = this.Country.ToString().CompareTo(other.Country.ToString()); + if (countryCompare != 0) + { + return countryCompare; + } + + int domainCompare = this.Domain.CompareTo(other.Domain); + if (domainCompare != 0) + { + return domainCompare; + } + + int kindCompare = this.Kind.ToString().CompareTo(other.Kind.ToString()); + if (kindCompare != 0) + { + return kindCompare; + } + + int categoryCompare = this.Category.CompareTo(other.Category); + if (categoryCompare != 0) + { + return categoryCompare; + } + + if (this.Subcategory != null) + { + int subcategoryCompare = ((byte)this.Subcategory).CompareTo(other.Subcategory); + if (subcategoryCompare != 0) + { + return subcategoryCompare; + } + } + else + { + if (other.Subcategory != null) + { + return -1; + } + else + { + return 0; + } + } + + if (this.Specific != null) + { + int specificCompare = ((byte)this.Specific).CompareTo(other.Specific); + if (specificCompare != 0) + { + return specificCompare; + } + } + else + { + if (other.Specific != null) + { + return -1; + } + else + { + return 0; + } + } + + if (this.Extra != null) + { + int extraCompare = ((byte)this.Extra).CompareTo(other.Extra); + if (extraCompare != 0) + { + return extraCompare; + } + } + else + { + if (other.Extra != null) + { + return -1; + } + else + { + return 0; + } + } + + if (!string.IsNullOrEmpty(this.Description)) + { + return this.Description.CompareTo(other.Description); + } + else + { + return 0; + } + } + + public int CompareTo(object obj) + { + if (obj is CetItem) + { + return this.CompareTo((CetItem)obj); + } + else + { + throw new ArgumentException("Object is not of type CetItem."); + } + } + + #endregion Methods  + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/Entity.cs b/Libs/CsharpDis6/Enumerations/Cet2006/Entity.cs similarity index 96% rename from Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/Entity.cs rename to Libs/CsharpDis6/Enumerations/Cet2006/Entity.cs index 83837fc..056849c 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/Entity.cs +++ b/Libs/CsharpDis6/Enumerations/Cet2006/Entity.cs @@ -1,282 +1,282 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Xml.Schema; -using System.Xml.Serialization; -using OpenDis.Core; -using OpenDis.Enumerations.EntityState.Type; - -namespace OpenDis.Enumerations.Cet2006 -{ - [Serializable()] - [DebuggerStepThrough()] - public class Entity : CetBase, INotifyPropertyChanged - { - #region Fields (12)  - - private List categoryField; - - private Country country; - private string countryField; - private string descriptionField; - private byte domain; - private string domainField; - private string footnoteField; - private EntityKind kind; - private string kindField; - private bool unusedField; - private bool unusedFieldSpecified; - private string xrefField; - - #endregion Fields  - - #region Delegates and Events (1)  - - public event PropertyChangedEventHandler PropertyChanged; - - #endregion Delegates and Events  - - #region Properties (12)  - - [XmlElement("category", Form = XmlSchemaForm.Unqualified)] - public List Categories - { - get - { - return this.categoryField; - } - - set - { - if (this.categoryField != value) - { - this.categoryField = value; - this.RaisePropertyChanged("Category"); - } - } - } - - [XmlIgnore] - public Country Country - { - get - { - return this.country; - } - - set - { - if (this.country != value) - { - this.RawCountry = ((int)value).ToString(CultureInfo.InvariantCulture); - this.RaisePropertyChanged("Country"); - } - } - } - - [XmlAttribute(AttributeName = "description")] - public string Description - { - get - { - return this.descriptionField; - } - - set - { - if (this.descriptionField != value) - { - this.descriptionField = value; - this.RaisePropertyChanged("Description"); - } - } - } - - [XmlIgnore] - public byte Domain - { - get - { - return this.domain; - } - - set - { - if (this.domain != value) - { - this.RawDomain = ((byte)value).ToString(CultureInfo.InvariantCulture); - this.RaisePropertyChanged("Domain"); - } - } - } - - [XmlAttribute(AttributeName = "footnote")] - public string Footnote - { - get - { - return this.footnoteField; - } - - set - { - if (this.footnoteField != value) - { - this.footnoteField = value; - this.RaisePropertyChanged("Footnote"); - } - } - } - - [XmlIgnore] - public EntityKind Kind - { - get - { - return this.kind; - } - - set - { - if (this.kind != value) - { - this.RawKind = ((byte)value).ToString(CultureInfo.InvariantCulture); - this.RaisePropertyChanged("Kind"); - } - } - } - - [XmlAttribute(AttributeName = "country", DataType = "nonNegativeInteger")] - public string RawCountry - { - get - { - return this.countryField; - } - - set - { - this.VerifyNumericString(value, false); - - if (this.countryField != value) - { - this.countryField = value; - int intValue = int.Parse(value, NumberStyles.Integer, CultureInfo.InvariantCulture); - this.country = (Country)Enum.ToObject(typeof(Country), intValue); - this.RaisePropertyChanged("RawCountry"); - } - } - } - - [XmlAttribute(AttributeName = "domain", DataType = "nonNegativeInteger")] - public string RawDomain - { - get - { - return this.domainField; - } - - set - { - this.VerifyNumericString(value, false); - - if (this.domainField != value) - { - this.domainField = value; - this.domain = byte.Parse(value, NumberStyles.Integer, CultureInfo.InvariantCulture); - this.RaisePropertyChanged("RawDomain"); - } - } - } - - [XmlAttribute(AttributeName = "kind", DataType = "nonNegativeInteger")] - public string RawKind - { - get - { - return this.kindField; - } - - set - { - if (this.kindField != value) - { - this.kindField = value; - byte byteValue = byte.Parse(value, CultureInfo.InvariantCulture); - this.kind = (EntityKind)Enum.ToObject(typeof(EntityKind), byteValue); - this.RaisePropertyChanged("RawKind"); - } - } - } - - [XmlAttribute(AttributeName = "unused")] - public bool Unused - { - get - { - return this.unusedField; - } - - set - { - if (this.unusedField != value) - { - this.unusedField = value; - this.RaisePropertyChanged("Unused"); - } - } - } - - [XmlIgnore()] - public bool UnusedSpecified - { - get - { - return this.unusedFieldSpecified; - } - - set - { - if (this.unusedFieldSpecified != value) - { - this.unusedFieldSpecified = value; - this.RaisePropertyChanged("UnusedSpecified"); - } - } - } - - [XmlAttribute(AttributeName = "xref")] - public string XRef - { - get - { - return this.xrefField; - } - - set - { - if (this.xrefField != value) - { - this.xrefField = value; - this.RaisePropertyChanged("XRef"); - } - } - } - - #endregion Properties  - - #region Methods (1)  - - protected void RaisePropertyChanged(string propertyName) - { - if (this.PropertyChanged != null) - { - this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); - } - } - - #endregion Methods  - } +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Diagnostics; +using System.Globalization; +using System.Xml.Schema; +using System.Xml.Serialization; +using OpenDis.Core; +using OpenDis.Enumerations.EntityState.Type; + +namespace OpenDis.Enumerations.Cet2006 +{ + [Serializable()] + [DebuggerStepThrough()] + public class Entity : CetBase, INotifyPropertyChanged + { + #region Fields (12)  + + private List categoryField; + + private Country country; + private string countryField; + private string descriptionField; + private byte domain; + private string domainField; + private string footnoteField; + private EntityKind kind; + private string kindField; + private bool unusedField; + private bool unusedFieldSpecified; + private string xrefField; + + #endregion Fields  + + #region Delegates and Events (1)  + + public event PropertyChangedEventHandler PropertyChanged; + + #endregion Delegates and Events  + + #region Properties (12)  + + [XmlElement("category", Form = XmlSchemaForm.Unqualified)] + public List Categories + { + get + { + return this.categoryField; + } + + set + { + if (this.categoryField != value) + { + this.categoryField = value; + this.RaisePropertyChanged("Category"); + } + } + } + + [XmlIgnore] + public Country Country + { + get + { + return this.country; + } + + set + { + if (this.country != value) + { + this.RawCountry = ((int)value).ToString(CultureInfo.InvariantCulture); + this.RaisePropertyChanged("Country"); + } + } + } + + [XmlAttribute(AttributeName = "description")] + public string Description + { + get + { + return this.descriptionField; + } + + set + { + if (this.descriptionField != value) + { + this.descriptionField = value; + this.RaisePropertyChanged("Description"); + } + } + } + + [XmlIgnore] + public byte Domain + { + get + { + return this.domain; + } + + set + { + if (this.domain != value) + { + this.RawDomain = ((byte)value).ToString(CultureInfo.InvariantCulture); + this.RaisePropertyChanged("Domain"); + } + } + } + + [XmlAttribute(AttributeName = "footnote")] + public string Footnote + { + get + { + return this.footnoteField; + } + + set + { + if (this.footnoteField != value) + { + this.footnoteField = value; + this.RaisePropertyChanged("Footnote"); + } + } + } + + [XmlIgnore] + public EntityKind Kind + { + get + { + return this.kind; + } + + set + { + if (this.kind != value) + { + this.RawKind = ((byte)value).ToString(CultureInfo.InvariantCulture); + this.RaisePropertyChanged("Kind"); + } + } + } + + [XmlAttribute(AttributeName = "country", DataType = "nonNegativeInteger")] + public string RawCountry + { + get + { + return this.countryField; + } + + set + { + this.VerifyNumericString(value, false); + + if (this.countryField != value) + { + this.countryField = value; + int intValue = int.Parse(value, NumberStyles.Integer, CultureInfo.InvariantCulture); + this.country = (Country)Enum.ToObject(typeof(Country), intValue); + this.RaisePropertyChanged("RawCountry"); + } + } + } + + [XmlAttribute(AttributeName = "domain", DataType = "nonNegativeInteger")] + public string RawDomain + { + get + { + return this.domainField; + } + + set + { + this.VerifyNumericString(value, false); + + if (this.domainField != value) + { + this.domainField = value; + this.domain = byte.Parse(value, NumberStyles.Integer, CultureInfo.InvariantCulture); + this.RaisePropertyChanged("RawDomain"); + } + } + } + + [XmlAttribute(AttributeName = "kind", DataType = "nonNegativeInteger")] + public string RawKind + { + get + { + return this.kindField; + } + + set + { + if (this.kindField != value) + { + this.kindField = value; + byte byteValue = byte.Parse(value, CultureInfo.InvariantCulture); + this.kind = (EntityKind)Enum.ToObject(typeof(EntityKind), byteValue); + this.RaisePropertyChanged("RawKind"); + } + } + } + + [XmlAttribute(AttributeName = "unused")] + public bool Unused + { + get + { + return this.unusedField; + } + + set + { + if (this.unusedField != value) + { + this.unusedField = value; + this.RaisePropertyChanged("Unused"); + } + } + } + + [XmlIgnore()] + public bool UnusedSpecified + { + get + { + return this.unusedFieldSpecified; + } + + set + { + if (this.unusedFieldSpecified != value) + { + this.unusedFieldSpecified = value; + this.RaisePropertyChanged("UnusedSpecified"); + } + } + } + + [XmlAttribute(AttributeName = "xref")] + public string XRef + { + get + { + return this.xrefField; + } + + set + { + if (this.xrefField != value) + { + this.xrefField = value; + this.RaisePropertyChanged("XRef"); + } + } + } + + #endregion Properties  + + #region Methods (1)  + + protected void RaisePropertyChanged(string propertyName) + { + if (this.PropertyChanged != null) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + + #endregion Methods  + } } \ No newline at end of file diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/EntityTypes.xml b/Libs/CsharpDis6/Enumerations/Cet2006/EntityTypes.xml similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/EntityTypes.xml rename to Libs/CsharpDis6/Enumerations/Cet2006/EntityTypes.xml index fd71b2a..53ea2df 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/EntityTypes.xml +++ b/Libs/CsharpDis6/Enumerations/Cet2006/EntityTypes.xml @@ -1,15256 +1,15256 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/Extra.cs b/Libs/CsharpDis6/Enumerations/Cet2006/Extra.cs similarity index 95% rename from Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/Extra.cs rename to Libs/CsharpDis6/Enumerations/Cet2006/Extra.cs index d1a9818..ff2d932 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/Extra.cs +++ b/Libs/CsharpDis6/Enumerations/Cet2006/Extra.cs @@ -1,62 +1,62 @@ -using System; -using System.Diagnostics; -using System.Globalization; -using System.Xml.Serialization; - -namespace OpenDis.Enumerations.Cet2006 -{ - [Serializable()] - [DebuggerStepThrough()] - public class Extra : GenericEntry - { - #region Fields (2)  - - private byte id; - private string idField; - - #endregion Fields  - - #region Properties (2)  - - [XmlIgnore] - public byte Id - { - get - { - return this.id; - } - - set - { - if (this.id != value) - { - this.RawId = ((byte)value).ToString(CultureInfo.InvariantCulture); - this.RaisePropertyChanged("Id"); - } - } - } - - [XmlAttribute(AttributeName = "id", DataType = "nonNegativeInteger")] - public string RawId - { - get - { - return this.idField; - } - - set - { - this.VerifyNumericString(value, false); - - if (this.idField != value) - { - this.idField = value; - this.id = byte.Parse(value, CultureInfo.InvariantCulture); - this.RaisePropertyChanged("RawId"); - } - } - } - - #endregion Properties  - } -} +using System; +using System.Diagnostics; +using System.Globalization; +using System.Xml.Serialization; + +namespace OpenDis.Enumerations.Cet2006 +{ + [Serializable()] + [DebuggerStepThrough()] + public class Extra : GenericEntry + { + #region Fields (2)  + + private byte id; + private string idField; + + #endregion Fields  + + #region Properties (2)  + + [XmlIgnore] + public byte Id + { + get + { + return this.id; + } + + set + { + if (this.id != value) + { + this.RawId = ((byte)value).ToString(CultureInfo.InvariantCulture); + this.RaisePropertyChanged("Id"); + } + } + } + + [XmlAttribute(AttributeName = "id", DataType = "nonNegativeInteger")] + public string RawId + { + get + { + return this.idField; + } + + set + { + this.VerifyNumericString(value, false); + + if (this.idField != value) + { + this.idField = value; + this.id = byte.Parse(value, CultureInfo.InvariantCulture); + this.RaisePropertyChanged("RawId"); + } + } + } + + #endregion Properties  + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/GenericEntry.cs b/Libs/CsharpDis6/Enumerations/Cet2006/GenericEntry.cs similarity index 95% rename from Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/GenericEntry.cs rename to Libs/CsharpDis6/Enumerations/Cet2006/GenericEntry.cs index 189c73c..91abc7e 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/GenericEntry.cs +++ b/Libs/CsharpDis6/Enumerations/Cet2006/GenericEntry.cs @@ -1,177 +1,177 @@ -using System; -using System.ComponentModel; -using System.Diagnostics; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Enumerations.Cet2006 -{ - [XmlInclude(typeof(Extra))] - [XmlInclude(typeof(Specific))] - [XmlInclude(typeof(Subcategory))] - [XmlInclude(typeof(Category))] - [Serializable()] - [DebuggerStepThrough()] - public class GenericEntry : CetBase, INotifyPropertyChanged - { - #region Fields (7)  - - private bool deletedField; - private bool deletedFieldSpecified; - private string descriptionField; - private string footnoteField; - private bool unusedField; - private bool unusedFieldSpecified; - private string xrefField; - - #endregion Fields  - - #region Delegates and Events (1)  - - public event PropertyChangedEventHandler PropertyChanged; - - #endregion Delegates and Events  - - #region Properties (7)  - - [XmlAttribute(AttributeName = "deleted")] - public bool Deleted - { - get - { - return this.deletedField; - } - - set - { - if (this.deletedField != value) - { - this.deletedField = value; - this.RaisePropertyChanged("Deleted"); - } - } - } - - [XmlIgnore()] - public bool DeletedSpecified - { - get - { - return this.deletedFieldSpecified; - } - - set - { - if (this.deletedFieldSpecified != value) - { - this.deletedFieldSpecified = value; - this.RaisePropertyChanged("DeletedSpecified"); - } - } - } - - [XmlAttribute(AttributeName = "description")] - public string Description - { - get - { - return this.descriptionField; - } - - set - { - if (this.descriptionField != value) - { - this.descriptionField = value; - this.RaisePropertyChanged("Description"); - } - } - } - - [XmlAttribute(AttributeName = "footnote")] - public string Footnote - { - get - { - return this.footnoteField; - } - - set - { - if (this.footnoteField != value) - { - this.footnoteField = value; - this.RaisePropertyChanged("Footnote"); - } - } - } - - [XmlAttribute(AttributeName = "unused")] - public bool Unused - { - get - { - return this.unusedField; - } - - set - { - if (this.unusedField != value) - { - this.unusedField = value; - this.RaisePropertyChanged("Unused"); - } - } - } - - [XmlIgnore()] - public bool UnusedSpecified - { - get - { - return this.unusedFieldSpecified; - } - - set - { - if (this.unusedFieldSpecified) - { - this.unusedFieldSpecified = value; - this.RaisePropertyChanged("UnusedSpecified"); - } - } - } - - [XmlAttribute(AttributeName = "xref")] - public string XRef - { - get - { - return this.xrefField; - } - - set - { - if (this.xrefField != value) - { - this.xrefField = value; - this.RaisePropertyChanged("XRef"); - } - } - } - - #endregion Properties  - - #region Methods (1)  - - protected void RaisePropertyChanged(string propertyName) - { - if (this.PropertyChanged != null) - { - this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); - } - } - - #endregion Methods  - } -} +using System; +using System.ComponentModel; +using System.Diagnostics; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Enumerations.Cet2006 +{ + [XmlInclude(typeof(Extra))] + [XmlInclude(typeof(Specific))] + [XmlInclude(typeof(Subcategory))] + [XmlInclude(typeof(Category))] + [Serializable()] + [DebuggerStepThrough()] + public class GenericEntry : CetBase, INotifyPropertyChanged + { + #region Fields (7)  + + private bool deletedField; + private bool deletedFieldSpecified; + private string descriptionField; + private string footnoteField; + private bool unusedField; + private bool unusedFieldSpecified; + private string xrefField; + + #endregion Fields  + + #region Delegates and Events (1)  + + public event PropertyChangedEventHandler PropertyChanged; + + #endregion Delegates and Events  + + #region Properties (7)  + + [XmlAttribute(AttributeName = "deleted")] + public bool Deleted + { + get + { + return this.deletedField; + } + + set + { + if (this.deletedField != value) + { + this.deletedField = value; + this.RaisePropertyChanged("Deleted"); + } + } + } + + [XmlIgnore()] + public bool DeletedSpecified + { + get + { + return this.deletedFieldSpecified; + } + + set + { + if (this.deletedFieldSpecified != value) + { + this.deletedFieldSpecified = value; + this.RaisePropertyChanged("DeletedSpecified"); + } + } + } + + [XmlAttribute(AttributeName = "description")] + public string Description + { + get + { + return this.descriptionField; + } + + set + { + if (this.descriptionField != value) + { + this.descriptionField = value; + this.RaisePropertyChanged("Description"); + } + } + } + + [XmlAttribute(AttributeName = "footnote")] + public string Footnote + { + get + { + return this.footnoteField; + } + + set + { + if (this.footnoteField != value) + { + this.footnoteField = value; + this.RaisePropertyChanged("Footnote"); + } + } + } + + [XmlAttribute(AttributeName = "unused")] + public bool Unused + { + get + { + return this.unusedField; + } + + set + { + if (this.unusedField != value) + { + this.unusedField = value; + this.RaisePropertyChanged("Unused"); + } + } + } + + [XmlIgnore()] + public bool UnusedSpecified + { + get + { + return this.unusedFieldSpecified; + } + + set + { + if (this.unusedFieldSpecified) + { + this.unusedFieldSpecified = value; + this.RaisePropertyChanged("UnusedSpecified"); + } + } + } + + [XmlAttribute(AttributeName = "xref")] + public string XRef + { + get + { + return this.xrefField; + } + + set + { + if (this.xrefField != value) + { + this.xrefField = value; + this.RaisePropertyChanged("XRef"); + } + } + } + + #endregion Properties  + + #region Methods (1)  + + protected void RaisePropertyChanged(string propertyName) + { + if (this.PropertyChanged != null) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + + #endregion Methods  + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/GenericTable.cs b/Libs/CsharpDis6/Enumerations/Cet2006/GenericTable.cs similarity index 96% rename from Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/GenericTable.cs rename to Libs/CsharpDis6/Enumerations/Cet2006/GenericTable.cs index 2a4a0dd..c17a357 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/GenericTable.cs +++ b/Libs/CsharpDis6/Enumerations/Cet2006/GenericTable.cs @@ -1,177 +1,177 @@ -using System; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Enumerations.Cet2006 -{ - [XmlInclude(typeof(Cet))] - [Serializable()] - [DebuggerStepThrough()] - public class GenericTable : CetBase, INotifyPropertyChanged - { - #region Fields (7)  - - private string cnameField; - private ulong id; - private string idField; - private ulong length; - private string lengthField; - private string nameField; - private string sourceField; - - #endregion Fields  - - #region Delegates and Events (1)  - - public event PropertyChangedEventHandler PropertyChanged; - - #endregion Delegates and Events  - - #region Properties (7)  - - [XmlAttribute(AttributeName = "cname")] - public string CName - { - get - { - return this.cnameField; - } - - set - { - if (this.cnameField != value) - { - this.cnameField = value; - this.RaisePropertyChanged("CName"); - } - } - } - - [XmlIgnore] - public ulong Id - { - get - { - return this.id; - } - - set - { - if (this.id != value) - { - this.RawId = ((ulong)value).ToString(CultureInfo.InvariantCulture); - this.RaisePropertyChanged("Id"); - } - } - } - - [XmlIgnore] - public ulong Length - { - get - { - return this.length; - } - - set - { - if (this.length != value) - { - this.RawLength = ((ulong)value).ToString(CultureInfo.InvariantCulture); - this.RaisePropertyChanged("Length"); - } - } - } - - [XmlAttributeAttribute(AttributeName = "name")] - public string Name - { - get - { - return this.nameField; - } - - set - { - if (this.nameField != value) - { - this.nameField = value; - this.RaisePropertyChanged("Name"); - } - } - } - - [XmlAttribute(AttributeName = "id", DataType = "positiveInteger")] - public string RawId - { - get - { - return this.idField; - } - - set - { - if (this.idField != value) - { - this.idField = value; - this.id = ulong.Parse(value, CultureInfo.InvariantCulture); - this.RaisePropertyChanged("RawId"); - } - } - } - - [XmlAttributeAttribute(AttributeName = "length", DataType = "positiveInteger")] - public string RawLength - { - get - { - return this.lengthField; - } - - set - { - if (this.lengthField != value) - { - this.lengthField = value; - this.length = ulong.Parse(value, CultureInfo.InvariantCulture); - this.RaisePropertyChanged("RawLength"); - } - } - } - - [XmlAttributeAttribute(AttributeName = "source")] - public string Source - { - get - { - return this.sourceField; - } - - set - { - if (this.sourceField != value) - { - this.sourceField = value; - this.RaisePropertyChanged("Source"); - } - } - } - - #endregion Properties  - - #region Methods (1)  - - protected void RaisePropertyChanged(string propertyName) - { - if (this.PropertyChanged != null) - { - this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); - } - } - - #endregion Methods  - } -} +using System; +using System.ComponentModel; +using System.Diagnostics; +using System.Globalization; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Enumerations.Cet2006 +{ + [XmlInclude(typeof(Cet))] + [Serializable()] + [DebuggerStepThrough()] + public class GenericTable : CetBase, INotifyPropertyChanged + { + #region Fields (7)  + + private string cnameField; + private ulong id; + private string idField; + private ulong length; + private string lengthField; + private string nameField; + private string sourceField; + + #endregion Fields  + + #region Delegates and Events (1)  + + public event PropertyChangedEventHandler PropertyChanged; + + #endregion Delegates and Events  + + #region Properties (7)  + + [XmlAttribute(AttributeName = "cname")] + public string CName + { + get + { + return this.cnameField; + } + + set + { + if (this.cnameField != value) + { + this.cnameField = value; + this.RaisePropertyChanged("CName"); + } + } + } + + [XmlIgnore] + public ulong Id + { + get + { + return this.id; + } + + set + { + if (this.id != value) + { + this.RawId = ((ulong)value).ToString(CultureInfo.InvariantCulture); + this.RaisePropertyChanged("Id"); + } + } + } + + [XmlIgnore] + public ulong Length + { + get + { + return this.length; + } + + set + { + if (this.length != value) + { + this.RawLength = ((ulong)value).ToString(CultureInfo.InvariantCulture); + this.RaisePropertyChanged("Length"); + } + } + } + + [XmlAttributeAttribute(AttributeName = "name")] + public string Name + { + get + { + return this.nameField; + } + + set + { + if (this.nameField != value) + { + this.nameField = value; + this.RaisePropertyChanged("Name"); + } + } + } + + [XmlAttribute(AttributeName = "id", DataType = "positiveInteger")] + public string RawId + { + get + { + return this.idField; + } + + set + { + if (this.idField != value) + { + this.idField = value; + this.id = ulong.Parse(value, CultureInfo.InvariantCulture); + this.RaisePropertyChanged("RawId"); + } + } + } + + [XmlAttributeAttribute(AttributeName = "length", DataType = "positiveInteger")] + public string RawLength + { + get + { + return this.lengthField; + } + + set + { + if (this.lengthField != value) + { + this.lengthField = value; + this.length = ulong.Parse(value, CultureInfo.InvariantCulture); + this.RaisePropertyChanged("RawLength"); + } + } + } + + [XmlAttributeAttribute(AttributeName = "source")] + public string Source + { + get + { + return this.sourceField; + } + + set + { + if (this.sourceField != value) + { + this.sourceField = value; + this.RaisePropertyChanged("Source"); + } + } + } + + #endregion Properties  + + #region Methods (1)  + + protected void RaisePropertyChanged(string propertyName) + { + if (this.PropertyChanged != null) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + + #endregion Methods  + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/Specific.cs b/Libs/CsharpDis6/Enumerations/Cet2006/Specific.cs similarity index 95% rename from Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/Specific.cs rename to Libs/CsharpDis6/Enumerations/Cet2006/Specific.cs index f845e6c..dc1a654 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/Specific.cs +++ b/Libs/CsharpDis6/Enumerations/Cet2006/Specific.cs @@ -1,122 +1,122 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Globalization; -using System.Xml.Serialization; - -namespace OpenDis.Enumerations.Cet2006 -{ - [Serializable()] - [DebuggerStepThrough()] - public class Specific : GenericEntry - { - #region Fields (5)  - - private List extraField; - - private byte id; - private byte id2; - private string id2Field; - private string idField; - - #endregion Fields  - - #region Properties (5)  - - [XmlElementAttribute("extra", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] - public List Extras - { - get - { - return this.extraField; - } - - set - { - if (this.extraField != value) - { - this.extraField = value; - this.RaisePropertyChanged("Extra"); - } - } - } - - [XmlIgnore] - public byte Id - { - get - { - return this.id; - } - - set - { - if (this.id != value) - { - this.RawId = ((byte)value).ToString(CultureInfo.InvariantCulture); - this.RaisePropertyChanged("Id"); - } - } - } - - [XmlIgnore] - public byte Id2 - { - get - { - return this.id2; - } - - set - { - if (this.id2 != value) - { - this.RawId2 = ((byte)value).ToString(CultureInfo.InvariantCulture); - this.RaisePropertyChanged("Id2"); - } - } - } - - [XmlAttribute(AttributeName = "id", DataType = "nonNegativeInteger")] - public string RawId - { - get - { - return this.idField; - } - - set - { - this.VerifyNumericString(value, false); - - if (this.idField != value) - { - this.idField = value; - this.id = byte.Parse(value, CultureInfo.InvariantCulture); - this.RaisePropertyChanged("RawId"); - } - } - } - - [XmlAttribute(AttributeName = "id2", DataType = "nonNegativeInteger")] - public string RawId2 - { - get - { - return this.id2Field; - } - - set - { - if (this.id2Field != value) - { - this.id2Field = value; - this.id2 = byte.Parse(value, CultureInfo.InvariantCulture); - this.RaisePropertyChanged("Id2"); - } - } - } - - #endregion Properties  - } -} +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Globalization; +using System.Xml.Serialization; + +namespace OpenDis.Enumerations.Cet2006 +{ + [Serializable()] + [DebuggerStepThrough()] + public class Specific : GenericEntry + { + #region Fields (5)  + + private List extraField; + + private byte id; + private byte id2; + private string id2Field; + private string idField; + + #endregion Fields  + + #region Properties (5)  + + [XmlElementAttribute("extra", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] + public List Extras + { + get + { + return this.extraField; + } + + set + { + if (this.extraField != value) + { + this.extraField = value; + this.RaisePropertyChanged("Extra"); + } + } + } + + [XmlIgnore] + public byte Id + { + get + { + return this.id; + } + + set + { + if (this.id != value) + { + this.RawId = ((byte)value).ToString(CultureInfo.InvariantCulture); + this.RaisePropertyChanged("Id"); + } + } + } + + [XmlIgnore] + public byte Id2 + { + get + { + return this.id2; + } + + set + { + if (this.id2 != value) + { + this.RawId2 = ((byte)value).ToString(CultureInfo.InvariantCulture); + this.RaisePropertyChanged("Id2"); + } + } + } + + [XmlAttribute(AttributeName = "id", DataType = "nonNegativeInteger")] + public string RawId + { + get + { + return this.idField; + } + + set + { + this.VerifyNumericString(value, false); + + if (this.idField != value) + { + this.idField = value; + this.id = byte.Parse(value, CultureInfo.InvariantCulture); + this.RaisePropertyChanged("RawId"); + } + } + } + + [XmlAttribute(AttributeName = "id2", DataType = "nonNegativeInteger")] + public string RawId2 + { + get + { + return this.id2Field; + } + + set + { + if (this.id2Field != value) + { + this.id2Field = value; + this.id2 = byte.Parse(value, CultureInfo.InvariantCulture); + this.RaisePropertyChanged("Id2"); + } + } + } + + #endregion Properties  + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/Subcategory.cs b/Libs/CsharpDis6/Enumerations/Cet2006/Subcategory.cs similarity index 95% rename from Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/Subcategory.cs rename to Libs/CsharpDis6/Enumerations/Cet2006/Subcategory.cs index ba322ca..f108844 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/Subcategory.cs +++ b/Libs/CsharpDis6/Enumerations/Cet2006/Subcategory.cs @@ -1,122 +1,122 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Globalization; -using System.Xml.Serialization; - -namespace OpenDis.Enumerations.Cet2006 -{ - [Serializable()] - [DebuggerStepThrough()] - public class Subcategory : GenericEntry - { - #region Fields (5)  - - private List specificField; - - private byte id; - private byte id2; - private string id2Field; - private string idField; - - #endregion Fields  - - #region Properties (5)  - - [XmlIgnore] - public byte Id - { - get - { - return this.id; - } - - set - { - if (this.id != value) - { - this.RawId = ((byte)value).ToString(CultureInfo.InvariantCulture); - this.RaisePropertyChanged("Id"); - } - } - } - - [XmlIgnore] - public byte Id2 - { - get - { - return this.id2; - } - - set - { - if (this.id2 != value) - { - this.RawId2 = ((byte)value).ToString(CultureInfo.InvariantCulture); - this.RaisePropertyChanged("Id2"); - } - } - } - - [XmlAttribute(AttributeName = "id", DataType = "nonNegativeInteger")] - public string RawId - { - get - { - return this.idField; - } - - set - { - this.VerifyNumericString(value, false); - - if (this.idField != value) - { - this.idField = value; - this.id = byte.Parse(value, CultureInfo.InvariantCulture); - this.RaisePropertyChanged("RawId"); - } - } - } - - [XmlAttribute(AttributeName = "id2", DataType = "nonNegativeInteger")] - public string RawId2 - { - get - { - return this.id2Field; - } - - set - { - if (this.id2Field != value) - { - this.id2Field = value; - this.id2 = byte.Parse(value, CultureInfo.InvariantCulture); - this.RaisePropertyChanged("Id2"); - } - } - } - - [XmlElement("specific", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] - public List Specifices - { - get - { - return this.specificField; - } - - set - { - if (this.specificField != value) - { - this.specificField = value; - this.RaisePropertyChanged("Specifices"); - } - } - } - - #endregion Properties  - } -} +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Globalization; +using System.Xml.Serialization; + +namespace OpenDis.Enumerations.Cet2006 +{ + [Serializable()] + [DebuggerStepThrough()] + public class Subcategory : GenericEntry + { + #region Fields (5)  + + private List specificField; + + private byte id; + private byte id2; + private string id2Field; + private string idField; + + #endregion Fields  + + #region Properties (5)  + + [XmlIgnore] + public byte Id + { + get + { + return this.id; + } + + set + { + if (this.id != value) + { + this.RawId = ((byte)value).ToString(CultureInfo.InvariantCulture); + this.RaisePropertyChanged("Id"); + } + } + } + + [XmlIgnore] + public byte Id2 + { + get + { + return this.id2; + } + + set + { + if (this.id2 != value) + { + this.RawId2 = ((byte)value).ToString(CultureInfo.InvariantCulture); + this.RaisePropertyChanged("Id2"); + } + } + } + + [XmlAttribute(AttributeName = "id", DataType = "nonNegativeInteger")] + public string RawId + { + get + { + return this.idField; + } + + set + { + this.VerifyNumericString(value, false); + + if (this.idField != value) + { + this.idField = value; + this.id = byte.Parse(value, CultureInfo.InvariantCulture); + this.RaisePropertyChanged("RawId"); + } + } + } + + [XmlAttribute(AttributeName = "id2", DataType = "nonNegativeInteger")] + public string RawId2 + { + get + { + return this.id2Field; + } + + set + { + if (this.id2Field != value) + { + this.id2Field = value; + this.id2 = byte.Parse(value, CultureInfo.InvariantCulture); + this.RaisePropertyChanged("Id2"); + } + } + } + + [XmlElement("specific", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] + public List Specifices + { + get + { + return this.specificField; + } + + set + { + if (this.specificField != value) + { + this.specificField = value; + this.RaisePropertyChanged("Specifices"); + } + } + } + + #endregion Properties  + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/cet.xsd b/Libs/CsharpDis6/Enumerations/Cet2006/cet.xsd similarity index 100% rename from Libs/CsharpDis6/OpenDis/Enumerations/Cet2006/cet.xsd rename to Libs/CsharpDis6/Enumerations/Cet2006/cet.xsd diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/AggregateTypes.xml b/Libs/CsharpDis6/Enumerations/Cet2010/AggregateTypes.xml similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/AggregateTypes.xml rename to Libs/CsharpDis6/Enumerations/Cet2010/AggregateTypes.xml index 5bb7bb1..e0a6698 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/AggregateTypes.xml +++ b/Libs/CsharpDis6/Enumerations/Cet2010/AggregateTypes.xml @@ -1,16 +1,16 @@ - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/Category.cs b/Libs/CsharpDis6/Enumerations/Cet2010/Category.cs similarity index 96% rename from Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/Category.cs rename to Libs/CsharpDis6/Enumerations/Cet2010/Category.cs index 4b8595a..899fc2d 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/Category.cs +++ b/Libs/CsharpDis6/Enumerations/Cet2010/Category.cs @@ -1,95 +1,95 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Globalization; -using System.Xml.Schema; -using System.Xml.Serialization; - -namespace OpenDis.Enumerations.Cet2010 -{ - [Serializable()] - [DebuggerStepThrough()] - public class Category : GenericEntrySingle, ICategoryOrCategoryRange - { - #regionFields(3) - - private List subcategories; - - private ulong uid; - private string uidField; - - #endregionFields - - #regionProperties(3) - - /// - /// Gets or sets the unique numeric identifer - RAW value. - /// - /// The RAW unique numeric identifer. - [XmlAttribute(AttributeName = "uid", DataType = "nonNegativeInteger")] - public string RawUId - { - get - { - return this.uidField; - } - - set - { - if (this.uidField == value) - { - return; - } - - this.uidField = value; - this.uid = ulong.Parse(value, CultureInfo.InvariantCulture); - this.RaisePropertyChanged("RawUId"); - } - } - - [XmlElement("subcategory", typeof(Subcategory), Form = XmlSchemaForm.Unqualified)] - [XmlElement("subcategory_range", typeof(SubcategoryRange), Form = XmlSchemaForm.Unqualified)] - public List Subcategories - { - get - { - return this.subcategories; - } - - set - { - if (this.subcategories == value) - { - return; - } - - this.subcategories = value; - this.RaisePropertyChanged("Subcategories"); - } - } - - /// - /// Gets or sets the unique numeric identifer. - /// - /// The unique numeric identifer. - [XmlIgnore] - public ulong UId - { - get - { - return this.uid; - } - - set - { - if (this.uid != value) - { - this.RawUId = ((ulong)value).ToString(CultureInfo.InvariantCulture); - this.RaisePropertyChanged("UId"); - } - } - } - - #endregionProperties - } -} +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Globalization; +using System.Xml.Schema; +using System.Xml.Serialization; + +namespace OpenDis.Enumerations.Cet2010 +{ + [Serializable()] + [DebuggerStepThrough()] + public class Category : GenericEntrySingle, ICategoryOrCategoryRange + { + #regionFields(3) + + private List subcategories; + + private ulong uid; + private string uidField; + + #endregionFields + + #regionProperties(3) + + /// + /// Gets or sets the unique numeric identifer - RAW value. + /// + /// The RAW unique numeric identifer. + [XmlAttribute(AttributeName = "uid", DataType = "nonNegativeInteger")] + public string RawUId + { + get + { + return this.uidField; + } + + set + { + if (this.uidField == value) + { + return; + } + + this.uidField = value; + this.uid = ulong.Parse(value, CultureInfo.InvariantCulture); + this.RaisePropertyChanged("RawUId"); + } + } + + [XmlElement("subcategory", typeof(Subcategory), Form = XmlSchemaForm.Unqualified)] + [XmlElement("subcategory_range", typeof(SubcategoryRange), Form = XmlSchemaForm.Unqualified)] + public List Subcategories + { + get + { + return this.subcategories; + } + + set + { + if (this.subcategories == value) + { + return; + } + + this.subcategories = value; + this.RaisePropertyChanged("Subcategories"); + } + } + + /// + /// Gets or sets the unique numeric identifer. + /// + /// The unique numeric identifer. + [XmlIgnore] + public ulong UId + { + get + { + return this.uid; + } + + set + { + if (this.uid != value) + { + this.RawUId = ((ulong)value).ToString(CultureInfo.InvariantCulture); + this.RaisePropertyChanged("UId"); + } + } + } + + #endregionProperties + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/CategoryRange.cs b/Libs/CsharpDis6/Enumerations/Cet2010/CategoryRange.cs similarity index 96% rename from Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/CategoryRange.cs rename to Libs/CsharpDis6/Enumerations/Cet2010/CategoryRange.cs index 4a1bde0..ac4a03d 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/CategoryRange.cs +++ b/Libs/CsharpDis6/Enumerations/Cet2010/CategoryRange.cs @@ -1,95 +1,95 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Globalization; -using System.Xml.Schema; -using System.Xml.Serialization; - -namespace OpenDis.Enumerations.Cet2010 -{ - [Serializable()] - [DebuggerStepThrough()] - public class CategoryRange : GenericEntryRange, ICategoryOrCategoryRange - { - #regionFields(3) - - private List items1Field; - - private ulong uid; - private string uidField; - - #endregionFields - - #regionProperties(3) - - /// - /// Gets or sets the unique numeric identifer - RAW value. - /// - /// The RAW unique numeric identifer. - [XmlAttribute(AttributeName = "uid", DataType = "nonNegativeInteger")] - public string RawUId - { - get - { - return this.uidField; - } - - set - { - if (this.uidField == value) - { - return; - } - - this.uidField = value; - this.uid = ulong.Parse(value, CultureInfo.InvariantCulture); - this.RaisePropertyChanged("RawUId"); - } - } - - [XmlElement("subcategory", typeof(Subcategory), Form = XmlSchemaForm.Unqualified)] - [XmlElement("subcategory_range", typeof(SubcategoryRange), Form = XmlSchemaForm.Unqualified)] - public List Subcategories - { - get - { - return this.items1Field; - } - - set - { - if (this.items1Field == value) - { - return; - } - - this.items1Field = value; - this.RaisePropertyChanged("Subcategories"); - } - } - - /// - /// Gets or sets the unique numeric identifer. - /// - /// The unique numeric identifer. - [XmlIgnore] - public ulong UId - { - get - { - return this.uid; - } - - set - { - if (this.uid != value) - { - this.RawUId = ((ulong)value).ToString(CultureInfo.InvariantCulture); - this.RaisePropertyChanged("UId"); - } - } - } - - #endregionProperties - } -} +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Globalization; +using System.Xml.Schema; +using System.Xml.Serialization; + +namespace OpenDis.Enumerations.Cet2010 +{ + [Serializable()] + [DebuggerStepThrough()] + public class CategoryRange : GenericEntryRange, ICategoryOrCategoryRange + { + #regionFields(3) + + private List items1Field; + + private ulong uid; + private string uidField; + + #endregionFields + + #regionProperties(3) + + /// + /// Gets or sets the unique numeric identifer - RAW value. + /// + /// The RAW unique numeric identifer. + [XmlAttribute(AttributeName = "uid", DataType = "nonNegativeInteger")] + public string RawUId + { + get + { + return this.uidField; + } + + set + { + if (this.uidField == value) + { + return; + } + + this.uidField = value; + this.uid = ulong.Parse(value, CultureInfo.InvariantCulture); + this.RaisePropertyChanged("RawUId"); + } + } + + [XmlElement("subcategory", typeof(Subcategory), Form = XmlSchemaForm.Unqualified)] + [XmlElement("subcategory_range", typeof(SubcategoryRange), Form = XmlSchemaForm.Unqualified)] + public List Subcategories + { + get + { + return this.items1Field; + } + + set + { + if (this.items1Field == value) + { + return; + } + + this.items1Field = value; + this.RaisePropertyChanged("Subcategories"); + } + } + + /// + /// Gets or sets the unique numeric identifer. + /// + /// The unique numeric identifer. + [XmlIgnore] + public ulong UId + { + get + { + return this.uid; + } + + set + { + if (this.uid != value) + { + this.RawUId = ((ulong)value).ToString(CultureInfo.InvariantCulture); + this.RaisePropertyChanged("UId"); + } + } + } + + #endregionProperties + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/Cet.cs b/Libs/CsharpDis6/Enumerations/Cet2010/Cet.cs similarity index 95% rename from Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/Cet.cs rename to Libs/CsharpDis6/Enumerations/Cet2010/Cet.cs index 2046aee..9855ac1 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/Cet.cs +++ b/Libs/CsharpDis6/Enumerations/Cet2010/Cet.cs @@ -1,44 +1,44 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Xml.Schema; -using System.Xml.Serialization; - -namespace OpenDis.Enumerations.Cet2010 -{ - [Serializable()] - [DebuggerStepThrough()] - [XmlRoot("cet", IsNullable = false)] - public class Cet : GenericTable - { - #region Fields (1)  - - private List entityField; - - #endregion Fields  - - #region Properties (1)  - - [XmlElement("entity", Form = XmlSchemaForm.Unqualified)] - public List Entities - { - get - { - return this.entityField; - } - - set - { - if (this.entityField == value) - { - return; - } - - this.entityField = value; - this.RaisePropertyChanged("Entities"); - } - } - - #endregion Properties  - } -} +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Xml.Schema; +using System.Xml.Serialization; + +namespace OpenDis.Enumerations.Cet2010 +{ + [Serializable()] + [DebuggerStepThrough()] + [XmlRoot("cet", IsNullable = false)] + public class Cet : GenericTable + { + #region Fields (1)  + + private List entityField; + + #endregion Fields  + + #region Properties (1)  + + [XmlElement("entity", Form = XmlSchemaForm.Unqualified)] + public List Entities + { + get + { + return this.entityField; + } + + set + { + if (this.entityField == value) + { + return; + } + + this.entityField = value; + this.RaisePropertyChanged("Entities"); + } + } + + #endregion Properties  + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/CetFactory.cs b/Libs/CsharpDis6/Enumerations/Cet2010/CetFactory.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/CetFactory.cs rename to Libs/CsharpDis6/Enumerations/Cet2010/CetFactory.cs index 50d3c48..11e107b 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/CetFactory.cs +++ b/Libs/CsharpDis6/Enumerations/Cet2010/CetFactory.cs @@ -1,125 +1,125 @@ -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Reflection; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Enumerations.Cet2010 -{ - /// - /// Comprehensive entity types factory. - /// - public class CetFactory - { - #region Static methods (3)  - - /// - /// Creates the aggregate types. - /// - /// Aggregate types - public static Cet CreateAggregateTypes() - { - return CreateCet("OpenDis.Enumerations.Cet2010.AggregateTypes.xml"); - } - - /// - /// Creates the comprehensive entity-type instance. - /// - /// The resource from which the CET is extracted. - /// Comprehensive entity-type instance - private static Cet CreateCet(string resource) - { - XmlSerializer serializer = new XmlSerializer(typeof(Cet)); - - Stream s = Assembly.GetExecutingAssembly().GetManifestResourceStream(resource); - Cet et = (Cet)serializer.Deserialize(s); - - return et; - } - - public static List Transform(Cet c) - { - List items = new List(); - - IEnumerable extras = - from e in c.Entities - from j in e.Categories - from k in ((ICategoryOrCategoryRange)j).Subcategories - from l in ((ISubcategoryOrSubcategoryRange)k).Specifices - from m in ((ISpecificOrSpecificRange)l).Extras - select new CetItem() - { - Category = (byte)((GenericEntrySingle)j).Value, - Country = e.Country, - Description = m.Description, - Domain = e.Domain, - Extra = (m is GenericEntryRange) ? (((GenericEntryRange)m).Min != 0 ? (byte?)((GenericEntryRange)m).Min : null) : (byte)((GenericEntrySingle)m).Value, - Maximum = (m is GenericEntryRange) ? (((GenericEntryRange)m).Max != 0 ? (byte?)((GenericEntryRange)m).Max : null) : null, - Kind = e.Kind, - Specific = (l is GenericEntryRange) ? (((GenericEntryRange)l).Min != 0 ? (byte?)((GenericEntryRange)l).Min : null) : (byte)((GenericEntrySingle)l).Value, - Subcategory = (k is GenericEntryRange) ? (((GenericEntryRange)k).Min != 0 ? (byte?)((GenericEntryRange)k).Min : null) : (byte)((GenericEntrySingle)k).Value - }; - - IEnumerable specifices = - from e in c.Entities - from j in e.Categories - from k in ((ICategoryOrCategoryRange)j).Subcategories - from l in ((ISubcategoryOrSubcategoryRange)k).Specifices - select new CetItem() - { - Category = (byte)((GenericEntrySingle)j).Value, - Country = e.Country, - Description = l.Description, - Domain = e.Domain, - Kind = e.Kind, - Specific = (l is GenericEntryRange) ? (((GenericEntryRange)l).Min != 0 ? (byte?)((GenericEntryRange)l).Min : null) : (byte)((GenericEntrySingle)l).Value, - Maximum = (l is GenericEntryRange) ? (((GenericEntryRange)l).Max != 0 ? (byte?)((GenericEntryRange)l).Max : null) : null, - Subcategory = (k is GenericEntryRange) ? (((GenericEntryRange)k).Min != 0 ? (byte?)((GenericEntryRange)k).Min : null) : (byte)((GenericEntrySingle)k).Value - }; - - IEnumerable subcategories = - from e in c.Entities - from j in e.Categories - from k in ((ICategoryOrCategoryRange)j).Subcategories - select new CetItem() - { - Category = (byte)((GenericEntrySingle)j).Value, - Country = e.Country, - Description = k.Description, - Domain = e.Domain, - Kind = e.Kind, - Subcategory = (k is GenericEntryRange) ? (((GenericEntryRange)k).Min != 0 ? (byte?)((GenericEntryRange)k).Min : null) : (byte)((GenericEntrySingle)k).Value, - Maximum = (k is GenericEntryRange) ? (((GenericEntryRange)k).Max != 0 ? (byte?)((GenericEntryRange)k).Max : null) : null, - }; - - IEnumerable categories = - from e in c.Entities - from j in e.Categories - select new CetItem() - { - Category = (byte)((GenericEntrySingle)j).Value, - Country = e.Country, - Description = j.Description, - Domain = e.Domain, - Kind = e.Kind - }; - - items = items.Concat(extras).Concat(specifices).Concat(subcategories).Concat(categories).ToList(); - items.Sort(); - - return items; - } - - /// - /// Creates the entity types. - /// - /// Entity types. - public static Cet CreateEntityTypes() - { - return CreateCet("OpenDis.Enumerations.Cet2010.EntityTypes.xml"); - } - - #endregion Static methods  - } -} +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Reflection; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Enumerations.Cet2010 +{ + /// + /// Comprehensive entity types factory. + /// + public class CetFactory + { + #region Static methods (3)  + + /// + /// Creates the aggregate types. + /// + /// Aggregate types + public static Cet CreateAggregateTypes() + { + return CreateCet("OpenDis.Enumerations.Cet2010.AggregateTypes.xml"); + } + + /// + /// Creates the comprehensive entity-type instance. + /// + /// The resource from which the CET is extracted. + /// Comprehensive entity-type instance + private static Cet CreateCet(string resource) + { + XmlSerializer serializer = new XmlSerializer(typeof(Cet)); + + Stream s = Assembly.GetExecutingAssembly().GetManifestResourceStream(resource); + Cet et = (Cet)serializer.Deserialize(s); + + return et; + } + + public static List Transform(Cet c) + { + List items = new List(); + + IEnumerable extras = + from e in c.Entities + from j in e.Categories + from k in ((ICategoryOrCategoryRange)j).Subcategories + from l in ((ISubcategoryOrSubcategoryRange)k).Specifices + from m in ((ISpecificOrSpecificRange)l).Extras + select new CetItem() + { + Category = (byte)((GenericEntrySingle)j).Value, + Country = e.Country, + Description = m.Description, + Domain = e.Domain, + Extra = (m is GenericEntryRange) ? (((GenericEntryRange)m).Min != 0 ? (byte?)((GenericEntryRange)m).Min : null) : (byte)((GenericEntrySingle)m).Value, + Maximum = (m is GenericEntryRange) ? (((GenericEntryRange)m).Max != 0 ? (byte?)((GenericEntryRange)m).Max : null) : null, + Kind = e.Kind, + Specific = (l is GenericEntryRange) ? (((GenericEntryRange)l).Min != 0 ? (byte?)((GenericEntryRange)l).Min : null) : (byte)((GenericEntrySingle)l).Value, + Subcategory = (k is GenericEntryRange) ? (((GenericEntryRange)k).Min != 0 ? (byte?)((GenericEntryRange)k).Min : null) : (byte)((GenericEntrySingle)k).Value + }; + + IEnumerable specifices = + from e in c.Entities + from j in e.Categories + from k in ((ICategoryOrCategoryRange)j).Subcategories + from l in ((ISubcategoryOrSubcategoryRange)k).Specifices + select new CetItem() + { + Category = (byte)((GenericEntrySingle)j).Value, + Country = e.Country, + Description = l.Description, + Domain = e.Domain, + Kind = e.Kind, + Specific = (l is GenericEntryRange) ? (((GenericEntryRange)l).Min != 0 ? (byte?)((GenericEntryRange)l).Min : null) : (byte)((GenericEntrySingle)l).Value, + Maximum = (l is GenericEntryRange) ? (((GenericEntryRange)l).Max != 0 ? (byte?)((GenericEntryRange)l).Max : null) : null, + Subcategory = (k is GenericEntryRange) ? (((GenericEntryRange)k).Min != 0 ? (byte?)((GenericEntryRange)k).Min : null) : (byte)((GenericEntrySingle)k).Value + }; + + IEnumerable subcategories = + from e in c.Entities + from j in e.Categories + from k in ((ICategoryOrCategoryRange)j).Subcategories + select new CetItem() + { + Category = (byte)((GenericEntrySingle)j).Value, + Country = e.Country, + Description = k.Description, + Domain = e.Domain, + Kind = e.Kind, + Subcategory = (k is GenericEntryRange) ? (((GenericEntryRange)k).Min != 0 ? (byte?)((GenericEntryRange)k).Min : null) : (byte)((GenericEntrySingle)k).Value, + Maximum = (k is GenericEntryRange) ? (((GenericEntryRange)k).Max != 0 ? (byte?)((GenericEntryRange)k).Max : null) : null, + }; + + IEnumerable categories = + from e in c.Entities + from j in e.Categories + select new CetItem() + { + Category = (byte)((GenericEntrySingle)j).Value, + Country = e.Country, + Description = j.Description, + Domain = e.Domain, + Kind = e.Kind + }; + + items = items.Concat(extras).Concat(specifices).Concat(subcategories).Concat(categories).ToList(); + items.Sort(); + + return items; + } + + /// + /// Creates the entity types. + /// + /// Entity types. + public static Cet CreateEntityTypes() + { + return CreateCet("OpenDis.Enumerations.Cet2010.EntityTypes.xml"); + } + + #endregion Static methods  + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/CetItem.cs b/Libs/CsharpDis6/Enumerations/Cet2010/CetItem.cs similarity index 96% rename from Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/CetItem.cs rename to Libs/CsharpDis6/Enumerations/Cet2010/CetItem.cs index 44fbce5..dfdbe7c 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/CetItem.cs +++ b/Libs/CsharpDis6/Enumerations/Cet2010/CetItem.cs @@ -1,149 +1,149 @@ -using System; -using OpenDis.Core; -using OpenDis.Enumerations.EntityState.Type; - -namespace OpenDis.Enumerations.Cet2010 -{ - public class CetItem : ICetItem - { - #region Properties (10)  - - public Country Country { get; set; } - - public byte Domain { get; set; } - - public EntityKind Kind { get; set; } - - public byte Category { get; set; } - - public byte? Subcategory { get; set; } - - public byte? Specific { get; set; } - - public byte? Extra { get; set; } - - public uint? Maximum { get; set; } - - public string Description { get; set; } - - #endregion Properties  - - #region Methods (2)  - - public int CompareTo(ICetItem other) - { - // By definition, any object compares greater than a null reference - if (other == null) - { - return 1; - } - - int countryCompare = this.Country.ToString().CompareTo(other.Country.ToString()); - if (countryCompare != 0) - { - return countryCompare; - } - - int domainCompare = this.Domain.CompareTo(other.Domain); - if (domainCompare != 0) - { - return domainCompare; - } - - int kindCompare = this.Kind.ToString().CompareTo(other.Kind.ToString()); - if (kindCompare != 0) - { - return kindCompare; - } - - int categoryCompare = this.Category.CompareTo(other.Category); - if (categoryCompare != 0) - { - return categoryCompare; - } - - if (this.Subcategory != null) - { - int subcategoryCompare = ((byte)this.Subcategory).CompareTo(other.Subcategory); - if (subcategoryCompare != 0) - { - return subcategoryCompare; - } - } - else - { - if (other.Subcategory != null) - { - return -1; - } - else - { - return 0; - } - } - - if (this.Specific != null) - { - int specificCompare = ((byte)this.Specific).CompareTo(other.Specific); - if (specificCompare != 0) - { - return specificCompare; - } - } - else - { - if (other.Specific != null) - { - return -1; - } - else - { - return 0; - } - } - - if (this.Extra != null) - { - int extraCompare = ((byte)this.Extra).CompareTo(other.Extra); - if (extraCompare != 0) - { - return extraCompare; - } - } - else - { - if (other.Extra != null) - { - return -1; - } - else - { - return 0; - } - } - - if (!string.IsNullOrEmpty(this.Description)) - { - return this.Description.CompareTo(other.Description); - } - else - { - return 0; - } - } - - public int CompareTo(object obj) - { - if (obj is CetItem) - { - return this.CompareTo((CetItem)obj); - } - else - { - throw new ArgumentException("Object is not of type CetItem."); - } - } - - #endregion Methods  - } -} +using System; +using OpenDis.Core; +using OpenDis.Enumerations.EntityState.Type; + +namespace OpenDis.Enumerations.Cet2010 +{ + public class CetItem : ICetItem + { + #region Properties (10)  + + public Country Country { get; set; } + + public byte Domain { get; set; } + + public EntityKind Kind { get; set; } + + public byte Category { get; set; } + + public byte? Subcategory { get; set; } + + public byte? Specific { get; set; } + + public byte? Extra { get; set; } + + public uint? Maximum { get; set; } + + public string Description { get; set; } + + #endregion Properties  + + #region Methods (2)  + + public int CompareTo(ICetItem other) + { + // By definition, any object compares greater than a null reference + if (other == null) + { + return 1; + } + + int countryCompare = this.Country.ToString().CompareTo(other.Country.ToString()); + if (countryCompare != 0) + { + return countryCompare; + } + + int domainCompare = this.Domain.CompareTo(other.Domain); + if (domainCompare != 0) + { + return domainCompare; + } + + int kindCompare = this.Kind.ToString().CompareTo(other.Kind.ToString()); + if (kindCompare != 0) + { + return kindCompare; + } + + int categoryCompare = this.Category.CompareTo(other.Category); + if (categoryCompare != 0) + { + return categoryCompare; + } + + if (this.Subcategory != null) + { + int subcategoryCompare = ((byte)this.Subcategory).CompareTo(other.Subcategory); + if (subcategoryCompare != 0) + { + return subcategoryCompare; + } + } + else + { + if (other.Subcategory != null) + { + return -1; + } + else + { + return 0; + } + } + + if (this.Specific != null) + { + int specificCompare = ((byte)this.Specific).CompareTo(other.Specific); + if (specificCompare != 0) + { + return specificCompare; + } + } + else + { + if (other.Specific != null) + { + return -1; + } + else + { + return 0; + } + } + + if (this.Extra != null) + { + int extraCompare = ((byte)this.Extra).CompareTo(other.Extra); + if (extraCompare != 0) + { + return extraCompare; + } + } + else + { + if (other.Extra != null) + { + return -1; + } + else + { + return 0; + } + } + + if (!string.IsNullOrEmpty(this.Description)) + { + return this.Description.CompareTo(other.Description); + } + else + { + return 0; + } + } + + public int CompareTo(object obj) + { + if (obj is CetItem) + { + return this.CompareTo((CetItem)obj); + } + else + { + throw new ArgumentException("Object is not of type CetItem."); + } + } + + #endregion Methods  + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/Cr.cs b/Libs/CsharpDis6/Enumerations/Cet2010/Cr.cs similarity index 96% rename from Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/Cr.cs rename to Libs/CsharpDis6/Enumerations/Cet2010/Cr.cs index 6803a6d..2b38380 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/Cr.cs +++ b/Libs/CsharpDis6/Enumerations/Cet2010/Cr.cs @@ -1,93 +1,93 @@ -using System; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Enumerations.Cet2010 -{ - /// - /// Change request - /// - [Serializable()] - [DebuggerStepThrough()] - public class Cr : CetBase, INotifyPropertyChanged - { - #regionFields(2) - - private ulong value; - private string valueField; - - #endregionFields - - #regionDelegatesandEvents(1) - - public event PropertyChangedEventHandler PropertyChanged; - - #endregionDelegatesandEvents - - #regionProperties(2) - - /// - /// Gets or sets the change request number - RAW value. - /// - /// The RAW change request number. - [XmlAttribute(AttributeName = "value", DataType = "positiveInteger")] - public string RawValue - { - get - { - return this.valueField; - } - - set - { - if (this.valueField == value) - { - return; - } - - this.valueField = value; - this.value = ulong.Parse(value, CultureInfo.InvariantCulture); - this.RaisePropertyChanged("RawValue"); - } - } - - /// - /// Gets or sets the change request number. - /// - /// The change request number. - [XmlIgnore] - public ulong Value - { - get - { - return this.value; - } - - set - { - if (this.value != value) - { - this.RawValue = ((ulong)value).ToString(CultureInfo.InvariantCulture); - this.RaisePropertyChanged("Value"); - } - } - } - - #endregionProperties - - #regionMethods(1) - - protected void RaisePropertyChanged(string propertyName) - { - if (this.PropertyChanged != null) - { - this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); - } - } - - #endregionMethods - } -} +using System; +using System.ComponentModel; +using System.Diagnostics; +using System.Globalization; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Enumerations.Cet2010 +{ + /// + /// Change request + /// + [Serializable()] + [DebuggerStepThrough()] + public class Cr : CetBase, INotifyPropertyChanged + { + #regionFields(2) + + private ulong value; + private string valueField; + + #endregionFields + + #regionDelegatesandEvents(1) + + public event PropertyChangedEventHandler PropertyChanged; + + #endregionDelegatesandEvents + + #regionProperties(2) + + /// + /// Gets or sets the change request number - RAW value. + /// + /// The RAW change request number. + [XmlAttribute(AttributeName = "value", DataType = "positiveInteger")] + public string RawValue + { + get + { + return this.valueField; + } + + set + { + if (this.valueField == value) + { + return; + } + + this.valueField = value; + this.value = ulong.Parse(value, CultureInfo.InvariantCulture); + this.RaisePropertyChanged("RawValue"); + } + } + + /// + /// Gets or sets the change request number. + /// + /// The change request number. + [XmlIgnore] + public ulong Value + { + get + { + return this.value; + } + + set + { + if (this.value != value) + { + this.RawValue = ((ulong)value).ToString(CultureInfo.InvariantCulture); + this.RaisePropertyChanged("Value"); + } + } + } + + #endregionProperties + + #regionMethods(1) + + protected void RaisePropertyChanged(string propertyName) + { + if (this.PropertyChanged != null) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + + #endregionMethods + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/CrRange.cs b/Libs/CsharpDis6/Enumerations/Cet2010/CrRange.cs similarity index 95% rename from Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/CrRange.cs rename to Libs/CsharpDis6/Enumerations/Cet2010/CrRange.cs index 0a62ff5..9ce8380 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/CrRange.cs +++ b/Libs/CsharpDis6/Enumerations/Cet2010/CrRange.cs @@ -1,93 +1,93 @@ -using System; -using System.ComponentModel; -using System.Diagnostics; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Enumerations.Cet2010 -{ - /// - /// Change request range - /// - [Serializable()] - [DebuggerStepThrough()] - public class CrRange : CetBase, INotifyPropertyChanged - { - #regionFields(2) - - private int max; - private int min; - - #endregionFields - - #regionDelegatesandEvents(1) - - public event PropertyChangedEventHandler PropertyChanged; - - #endregionDelegatesandEvents - - #regionProperties(2) - - /// - /// Gets or sets the maximum change request number (inclusive). - /// - /// The maximum change request number (inclusive).. - [XmlAttribute(AttributeName = "value_max")] - public int Max - { - get - { - return this.max; - } - - set - { - if (this.max == value) - { - return; - } - - this.max = value; - this.RaisePropertyChanged("Max"); - } - } - - /// - /// Gets or sets the minimum change request number (inclusive). - /// - /// The minimum change request number (inclusive).. - [XmlAttribute(AttributeName = "value_min")] - public int Min - { - get - { - return this.min; - } - - set - { - if (this.min == value) - { - return; - } - - this.min = value; - this.RaisePropertyChanged("Min"); - } - } - - #endregionProperties - - #regionMethods(1) - - protected void RaisePropertyChanged(string propertyName) - { - if (this.PropertyChanged != null) - { - this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); - } - } - - #endregionMethods - } -} +using System; +using System.ComponentModel; +using System.Diagnostics; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Enumerations.Cet2010 +{ + /// + /// Change request range + /// + [Serializable()] + [DebuggerStepThrough()] + public class CrRange : CetBase, INotifyPropertyChanged + { + #regionFields(2) + + private int max; + private int min; + + #endregionFields + + #regionDelegatesandEvents(1) + + public event PropertyChangedEventHandler PropertyChanged; + + #endregionDelegatesandEvents + + #regionProperties(2) + + /// + /// Gets or sets the maximum change request number (inclusive). + /// + /// The maximum change request number (inclusive).. + [XmlAttribute(AttributeName = "value_max")] + public int Max + { + get + { + return this.max; + } + + set + { + if (this.max == value) + { + return; + } + + this.max = value; + this.RaisePropertyChanged("Max"); + } + } + + /// + /// Gets or sets the minimum change request number (inclusive). + /// + /// The minimum change request number (inclusive).. + [XmlAttribute(AttributeName = "value_min")] + public int Min + { + get + { + return this.min; + } + + set + { + if (this.min == value) + { + return; + } + + this.min = value; + this.RaisePropertyChanged("Min"); + } + } + + #endregionProperties + + #regionMethods(1) + + protected void RaisePropertyChanged(string propertyName) + { + if (this.PropertyChanged != null) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + + #endregionMethods + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/Entity.cs b/Libs/CsharpDis6/Enumerations/Cet2010/Entity.cs similarity index 96% rename from Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/Entity.cs rename to Libs/CsharpDis6/Enumerations/Cet2010/Entity.cs index 5676e97..5a76eb1 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/Entity.cs +++ b/Libs/CsharpDis6/Enumerations/Cet2010/Entity.cs @@ -1,219 +1,219 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Globalization; -using System.Xml.Schema; -using System.Xml.Serialization; -using OpenDis.Enumerations.EntityState.Type; - -namespace OpenDis.Enumerations.Cet2010 -{ - [Serializable()] - [DebuggerStepThrough()] - public class Entity : GenericEntry - { - #regionFields(9) - - private List categories; - - private Country country; - private string countryField; - private byte domain; - private string domainField; - private EntityKind kind; - private string kindField; - private ulong uid; - private string uidField; - - #endregionFields - - #regionProperties(9) - - [XmlElement("category", typeof(Category), Form = XmlSchemaForm.Unqualified)] - [XmlElement("category_range", typeof(CategoryRange), Form = XmlSchemaForm.Unqualified)] - public List Categories - { - get - { - return this.categories; - } - - set - { - if (this.categories == value) - { - return; - } - - this.categories = value; - this.RaisePropertyChanged("Categories"); - } - } - - [XmlIgnore] - public Country Country - { - get - { - return this.country; - } - - set - { - if (this.country != value) - { - this.RawCountry = ((int)value).ToString(CultureInfo.InvariantCulture); - this.RaisePropertyChanged("Country"); - } - } - } - - [XmlIgnore] - public byte Domain - { - get - { - return this.domain; - } - - set - { - if (this.domain != value) - { - this.RawDomain = ((byte)value).ToString(CultureInfo.InvariantCulture); - this.RaisePropertyChanged("Domain"); - } - } - } - - [XmlIgnore] - public EntityKind Kind - { - get - { - return this.kind; - } - - set - { - if (this.kind != value) - { - this.RawKind = ((byte)value).ToString(CultureInfo.InvariantCulture); - this.RaisePropertyChanged("Kind"); - } - } - } - - [XmlAttribute(AttributeName = "country", DataType = "nonNegativeInteger")] - public string RawCountry - { - get - { - return this.countryField; - } - - set - { - this.VerifyNumericString(value, false); - - if (this.countryField != value) - { - this.countryField = value; - int intValue = int.Parse(value, NumberStyles.Integer, CultureInfo.InvariantCulture); - this.country = (Country)Enum.ToObject(typeof(Country), intValue); - this.RaisePropertyChanged("RawCountry"); - } - } - } - - [XmlAttribute(AttributeName = "domain", DataType = "nonNegativeInteger")] - public string RawDomain - { - get - { - return this.domainField; - } - - set - { - this.VerifyNumericString(value, false); - - if (this.domainField != value) - { - this.domainField = value; - this.domain = byte.Parse(value, NumberStyles.Integer, CultureInfo.InvariantCulture); - this.RaisePropertyChanged("RawDomain"); - } - } - } - - [XmlAttribute(AttributeName = "kind", DataType = "nonNegativeInteger")] - public string RawKind - { - get - { - return this.kindField; - } - - set - { - if (this.kindField != value) - { - this.kindField = value; - byte byteValue = byte.Parse(value, CultureInfo.InvariantCulture); - this.kind = (EntityKind)Enum.ToObject(typeof(EntityKind), byteValue); - this.RaisePropertyChanged("RawKind"); - } - } - } - - /// - /// Gets or sets the unique numeric identifer - RAW value. - /// - /// The RAW unique numeric identifer. - [XmlAttribute(AttributeName = "uid", DataType = "nonNegativeInteger")] - public string RawUId - { - get - { - return this.uidField; - } - - set - { - if (this.uidField == value) - { - return; - } - - this.uidField = value; - this.uid = ulong.Parse(value, CultureInfo.InvariantCulture); - this.RaisePropertyChanged("RawUId"); - } - } - - /// - /// Gets or sets the unique numeric identifer. - /// - /// The unique numeric identifer. - [XmlIgnore] - public ulong UId - { - get - { - return this.uid; - } - - set - { - if (this.uid != value) - { - this.RawUId = ((ulong)value).ToString(CultureInfo.InvariantCulture); - this.RaisePropertyChanged("UId"); - } - } - } - - #endregionProperties - } -} +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Globalization; +using System.Xml.Schema; +using System.Xml.Serialization; +using OpenDis.Enumerations.EntityState.Type; + +namespace OpenDis.Enumerations.Cet2010 +{ + [Serializable()] + [DebuggerStepThrough()] + public class Entity : GenericEntry + { + #regionFields(9) + + private List categories; + + private Country country; + private string countryField; + private byte domain; + private string domainField; + private EntityKind kind; + private string kindField; + private ulong uid; + private string uidField; + + #endregionFields + + #regionProperties(9) + + [XmlElement("category", typeof(Category), Form = XmlSchemaForm.Unqualified)] + [XmlElement("category_range", typeof(CategoryRange), Form = XmlSchemaForm.Unqualified)] + public List Categories + { + get + { + return this.categories; + } + + set + { + if (this.categories == value) + { + return; + } + + this.categories = value; + this.RaisePropertyChanged("Categories"); + } + } + + [XmlIgnore] + public Country Country + { + get + { + return this.country; + } + + set + { + if (this.country != value) + { + this.RawCountry = ((int)value).ToString(CultureInfo.InvariantCulture); + this.RaisePropertyChanged("Country"); + } + } + } + + [XmlIgnore] + public byte Domain + { + get + { + return this.domain; + } + + set + { + if (this.domain != value) + { + this.RawDomain = ((byte)value).ToString(CultureInfo.InvariantCulture); + this.RaisePropertyChanged("Domain"); + } + } + } + + [XmlIgnore] + public EntityKind Kind + { + get + { + return this.kind; + } + + set + { + if (this.kind != value) + { + this.RawKind = ((byte)value).ToString(CultureInfo.InvariantCulture); + this.RaisePropertyChanged("Kind"); + } + } + } + + [XmlAttribute(AttributeName = "country", DataType = "nonNegativeInteger")] + public string RawCountry + { + get + { + return this.countryField; + } + + set + { + this.VerifyNumericString(value, false); + + if (this.countryField != value) + { + this.countryField = value; + int intValue = int.Parse(value, NumberStyles.Integer, CultureInfo.InvariantCulture); + this.country = (Country)Enum.ToObject(typeof(Country), intValue); + this.RaisePropertyChanged("RawCountry"); + } + } + } + + [XmlAttribute(AttributeName = "domain", DataType = "nonNegativeInteger")] + public string RawDomain + { + get + { + return this.domainField; + } + + set + { + this.VerifyNumericString(value, false); + + if (this.domainField != value) + { + this.domainField = value; + this.domain = byte.Parse(value, NumberStyles.Integer, CultureInfo.InvariantCulture); + this.RaisePropertyChanged("RawDomain"); + } + } + } + + [XmlAttribute(AttributeName = "kind", DataType = "nonNegativeInteger")] + public string RawKind + { + get + { + return this.kindField; + } + + set + { + if (this.kindField != value) + { + this.kindField = value; + byte byteValue = byte.Parse(value, CultureInfo.InvariantCulture); + this.kind = (EntityKind)Enum.ToObject(typeof(EntityKind), byteValue); + this.RaisePropertyChanged("RawKind"); + } + } + } + + /// + /// Gets or sets the unique numeric identifer - RAW value. + /// + /// The RAW unique numeric identifer. + [XmlAttribute(AttributeName = "uid", DataType = "nonNegativeInteger")] + public string RawUId + { + get + { + return this.uidField; + } + + set + { + if (this.uidField == value) + { + return; + } + + this.uidField = value; + this.uid = ulong.Parse(value, CultureInfo.InvariantCulture); + this.RaisePropertyChanged("RawUId"); + } + } + + /// + /// Gets or sets the unique numeric identifer. + /// + /// The unique numeric identifer. + [XmlIgnore] + public ulong UId + { + get + { + return this.uid; + } + + set + { + if (this.uid != value) + { + this.RawUId = ((ulong)value).ToString(CultureInfo.InvariantCulture); + this.RaisePropertyChanged("UId"); + } + } + } + + #endregionProperties + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/EntityTypes.xml b/Libs/CsharpDis6/Enumerations/Cet2010/EntityTypes.xml similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/EntityTypes.xml rename to Libs/CsharpDis6/Enumerations/Cet2010/EntityTypes.xml index dec8515..45026b7 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/EntityTypes.xml +++ b/Libs/CsharpDis6/Enumerations/Cet2010/EntityTypes.xml @@ -1,16085 +1,16085 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/Extra.cs b/Libs/CsharpDis6/Enumerations/Cet2010/Extra.cs similarity index 96% rename from Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/Extra.cs rename to Libs/CsharpDis6/Enumerations/Cet2010/Extra.cs index 900652f..140ba1d 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/Extra.cs +++ b/Libs/CsharpDis6/Enumerations/Cet2010/Extra.cs @@ -1,70 +1,70 @@ -using System; -using System.Diagnostics; -using System.Globalization; -using System.Xml.Serialization; - -namespace OpenDis.Enumerations.Cet2010 -{ - [Serializable()] - [DebuggerStepThrough()] - public class Extra : GenericEntrySingle, IExtraOrExtraRange - { - #regionFields(2) - - private ulong uid; - private string uidField; - - #endregionFields - - #regionProperties(2) - - /// - /// Gets or sets the unique numeric identifer - RAW value. - /// - /// The RAW unique numeric identifer. - [XmlAttribute(AttributeName = "uid", DataType = "nonNegativeInteger")] - public string RawUId - { - get - { - return this.uidField; - } - - set - { - if (this.uidField == value) - { - return; - } - - this.uidField = value; - this.uid = ulong.Parse(value, CultureInfo.InvariantCulture); - this.RaisePropertyChanged("RawUId"); - } - } - - /// - /// Gets or sets the unique numeric identifer. - /// - /// The unique numeric identifer. - [XmlIgnore] - public ulong UId - { - get - { - return this.uid; - } - - set - { - if (this.uid != value) - { - this.RawUId = ((ulong)value).ToString(CultureInfo.InvariantCulture); - this.RaisePropertyChanged("UId"); - } - } - } - - #endregionProperties - } -} +using System; +using System.Diagnostics; +using System.Globalization; +using System.Xml.Serialization; + +namespace OpenDis.Enumerations.Cet2010 +{ + [Serializable()] + [DebuggerStepThrough()] + public class Extra : GenericEntrySingle, IExtraOrExtraRange + { + #regionFields(2) + + private ulong uid; + private string uidField; + + #endregionFields + + #regionProperties(2) + + /// + /// Gets or sets the unique numeric identifer - RAW value. + /// + /// The RAW unique numeric identifer. + [XmlAttribute(AttributeName = "uid", DataType = "nonNegativeInteger")] + public string RawUId + { + get + { + return this.uidField; + } + + set + { + if (this.uidField == value) + { + return; + } + + this.uidField = value; + this.uid = ulong.Parse(value, CultureInfo.InvariantCulture); + this.RaisePropertyChanged("RawUId"); + } + } + + /// + /// Gets or sets the unique numeric identifer. + /// + /// The unique numeric identifer. + [XmlIgnore] + public ulong UId + { + get + { + return this.uid; + } + + set + { + if (this.uid != value) + { + this.RawUId = ((ulong)value).ToString(CultureInfo.InvariantCulture); + this.RaisePropertyChanged("UId"); + } + } + } + + #endregionProperties + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/ExtraRange.cs b/Libs/CsharpDis6/Enumerations/Cet2010/ExtraRange.cs similarity index 96% rename from Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/ExtraRange.cs rename to Libs/CsharpDis6/Enumerations/Cet2010/ExtraRange.cs index 5052ff1..145ad10 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/ExtraRange.cs +++ b/Libs/CsharpDis6/Enumerations/Cet2010/ExtraRange.cs @@ -1,70 +1,70 @@ -using System; -using System.Diagnostics; -using System.Globalization; -using System.Xml.Serialization; - -namespace OpenDis.Enumerations.Cet2010 -{ - [Serializable()] - [DebuggerStepThrough()] - public class ExtraRange : GenericEntryRange, IExtraOrExtraRange - { - #regionFields(2) - - private ulong uid; - private string uidField; - - #endregionFields - - #regionProperties(2) - - /// - /// Gets or sets the unique numeric identifer - RAW value. - /// - /// The RAW unique numeric identifer. - [XmlAttribute(AttributeName = "uid", DataType = "nonNegativeInteger")] - public string RawUId - { - get - { - return this.uidField; - } - - set - { - if (this.uidField == value) - { - return; - } - - this.uidField = value; - this.uid = ulong.Parse(value, CultureInfo.InvariantCulture); - this.RaisePropertyChanged("RawUId"); - } - } - - /// - /// Gets or sets the unique numeric identifer. - /// - /// The unique numeric identifer. - [XmlIgnore] - public ulong UId - { - get - { - return this.uid; - } - - set - { - if (this.uid != value) - { - this.RawUId = ((ulong)value).ToString(CultureInfo.InvariantCulture); - this.RaisePropertyChanged("UId"); - } - } - } - - #endregionProperties - } -} +using System; +using System.Diagnostics; +using System.Globalization; +using System.Xml.Serialization; + +namespace OpenDis.Enumerations.Cet2010 +{ + [Serializable()] + [DebuggerStepThrough()] + public class ExtraRange : GenericEntryRange, IExtraOrExtraRange + { + #regionFields(2) + + private ulong uid; + private string uidField; + + #endregionFields + + #regionProperties(2) + + /// + /// Gets or sets the unique numeric identifer - RAW value. + /// + /// The RAW unique numeric identifer. + [XmlAttribute(AttributeName = "uid", DataType = "nonNegativeInteger")] + public string RawUId + { + get + { + return this.uidField; + } + + set + { + if (this.uidField == value) + { + return; + } + + this.uidField = value; + this.uid = ulong.Parse(value, CultureInfo.InvariantCulture); + this.RaisePropertyChanged("RawUId"); + } + } + + /// + /// Gets or sets the unique numeric identifer. + /// + /// The unique numeric identifer. + [XmlIgnore] + public ulong UId + { + get + { + return this.uid; + } + + set + { + if (this.uid != value) + { + this.RawUId = ((ulong)value).ToString(CultureInfo.InvariantCulture); + this.RaisePropertyChanged("UId"); + } + } + } + + #endregionProperties + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/GenericEntry.cs b/Libs/CsharpDis6/Enumerations/Cet2010/GenericEntry.cs similarity index 96% rename from Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/GenericEntry.cs rename to Libs/CsharpDis6/Enumerations/Cet2010/GenericEntry.cs index c56c190..11ea171 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/GenericEntry.cs +++ b/Libs/CsharpDis6/Enumerations/Cet2010/GenericEntry.cs @@ -1,388 +1,388 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Text.RegularExpressions; -using System.Xml.Schema; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Enumerations.Cet2010 -{ - /// - /// Attributes and elements common to all enumeration entries. - /// - [XmlInclude(typeof(Entity))] - [XmlInclude(typeof(GenericEntryDescription))] - [XmlInclude(typeof(GenericEntryRange))] - [XmlInclude(typeof(ExtraRange))] - [XmlInclude(typeof(SpecificRange))] - [XmlInclude(typeof(SubcategoryRange))] - [XmlInclude(typeof(CategoryRange))] - [XmlInclude(typeof(GenericEntrySingle))] - [XmlInclude(typeof(Extra))] - [XmlInclude(typeof(Specific))] - [XmlInclude(typeof(Subcategory))] - [XmlInclude(typeof(Category))] - [XmlInclude(typeof(GenericEntryString))] - [Serializable()] - [DebuggerStepThrough()] - public abstract class GenericEntry : CetBase, INotifyPropertyChanged, OpenDis.Enumerations.Cet2010.IGenericEntry - { - #regionFields(14) - - private static Regex uuidRegEx = new Regex("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"); - - private List itemsField; - - private bool baseuuidField; - private bool baseuuidFieldSpecified; - private bool deprecatedField; - private bool deprecatedFieldSpecified; - private bool draft1278Field; - private bool draft1278FieldSpecified; - private string footnoteField; - private GenericEntryStatus statusField; - private bool statusFieldSpecified; - private string uuidField; - private ulong xref; - private string xrefField; - - #endregionFields - - #regionDelegatesandEvents(1) - - public event PropertyChangedEventHandler PropertyChanged; - - #endregionDelegatesandEvents - - #regionProperties(13) - - /// - /// Gets or sets a value indicating whether this entry was based on another enumeration entry UUID. - /// - /// true if base UUID; otherwise, false. - [XmlAttribute(AttributeName = "baseuuid")] - public bool BaseUuid - { - get - { - return this.baseuuidField; - } - - set - { - if (this.baseuuidField == value) - { - return; - } - - this.baseuuidField = value; - this.RaisePropertyChanged("BaseUuid"); - } - } - - /// - /// Gets or sets a value indicating whether Base UUID is specified - /// - /// true if base is UUID specified; otherwise, false. - [XmlIgnore()] - public bool BaseUuidSpecified - { - get - { - return this.baseuuidFieldSpecified; - } - - set - { - if (this.baseuuidFieldSpecified == value) - { - return; - } - - this.baseuuidFieldSpecified = value; - this.RaisePropertyChanged("BaseUuidSpecified"); - } - } - - [XmlElement("cr", typeof(Cr), Form = XmlSchemaForm.Unqualified)] - [XmlElement("cr_range", typeof(CrRange), Form = XmlSchemaForm.Unqualified)] - public List ChangeRequests - { - get - { - return this.itemsField; - } - - set - { - if (this.itemsField == value) - { - return; - } - - this.itemsField = value; - this.RaisePropertyChanged("ChangeRequests"); - } - } - - /// - /// Gets or sets a value indicating whether the enumeration entry has been deprecated. - /// - /// true if deprecated; otherwise, false. - [XmlAttribute(AttributeName = "deprecated")] - public bool Deprecated - { - get - { - return this.deprecatedField; - } - - set - { - if (this.deprecatedField == value) - { - return; - } - - this.deprecatedField = value; - this.RaisePropertyChanged("Deprecated"); - } - } - - /// - /// Gets or sets a value indicating whether deprecated field is specified. - /// - /// true if deprecated field is specified; otherwise, false. - [XmlIgnore()] - public bool DeprecatedSpecified - { - get - { - return this.deprecatedFieldSpecified; - } - - set - { - if (this.deprecatedFieldSpecified == value) - { - return; - } - - this.deprecatedFieldSpecified = value; - this.RaisePropertyChanged("DeprecatedSpecified"); - } - } - - /// - /// Gets or sets a value indicating whether the enumeration entry applies to a draft revision of IEEE 1278. - /// - /// true if the enumeration entry applies to a draft revision of IEEE 1278; otherwise, false. - [XmlAttribute(AttributeName = "draft1278")] - public bool Draft1278 - { - get - { - return this.draft1278Field; - } - - set - { - if (this.draft1278Field == value) - { - return; - } - - this.draft1278Field = value; - this.RaisePropertyChanged("Draft1278"); - } - } - - /// - /// Gets or sets a value indicating whether the value indicating whether the enumeration entry applies to a draft revision of IEEE 1278 is specified. - /// - /// true if the value indicating whether the enumeration entry applies to a draft revision of IEEE 1278 is specified; otherwise, false. - [XmlIgnore()] - public bool Draft1278Specified - { - get - { - return this.draft1278FieldSpecified; - } - - set - { - if (this.draft1278FieldSpecified == value) - { - return; - } - - this.draft1278FieldSpecified = value; - this.RaisePropertyChanged("Draft1278Specified"); - } - } - - /// - /// Gets or sets any additional information pertaining to the enumeration entry. - /// - /// The additional information pertaining to the enumeration entry. - [XmlAttribute(AttributeName = "footnote")] - public string Footnote - { - get - { - return this.footnoteField; - } - - set - { - if (this.footnoteField == value) - { - return; - } - - this.footnoteField = value; - this.RaisePropertyChanged("Footnote"); - } - } - - /// - /// Gets or sets the cross-reference to another enumeration table (uid) - RAW value. - /// - /// The RAW value for csross-reference to another enumeration table (uid). - [XmlAttribute(AttributeName = "xref", DataType = "positiveInteger")] - public string RawXRef - { - get - { - return this.xrefField; - } - - set - { - if (this.xrefField == value) - { - return; - } - - this.xrefField = value; - this.xref = ulong.Parse(value, CultureInfo.InvariantCulture); - this.RaisePropertyChanged("RawXRref"); - } - } - - /// - /// Gets or sets the value indicating the approval status of the entry. - /// - /// The value indicating the approval status of the entry. - [XmlAttribute(AttributeName = "status")] - public GenericEntryStatus Status - { - get - { - return this.statusField; - } - - set - { - if (this.statusField == value) - { - return; - } - - this.statusField = value; - this.RaisePropertyChanged("Status"); - } - } - - /// - /// Gets or sets a value indicating whether the status is specified. - /// - /// true if the status is specified; otherwise, false. - [XmlIgnore()] - public bool StatusSpecified - { - get - { - return this.statusFieldSpecified; - } - - set - { - if (this.statusFieldSpecified == value) - { - return; - } - - this.statusFieldSpecified = value; - this.RaisePropertyChanged("StatusSpecified"); - } - } - - /// - /// Gets or sets the RFC 4122 Universally Unique IDentifier (UUID) - /// - [XmlAttribute(AttributeName = "uuid")] - public string Uuid - { - get - { - return this.uuidField; - } - - set - { - if (this.uuidField == value) - { - return; - } - - if (!uuidRegEx.IsMatch(value, 0)) - { - throw new ArgumentException("Invalid value! Value must be conformant with RFC-4122."); - } - - this.uuidField = value; - this.RaisePropertyChanged("Uuid"); - } - } - - /// - /// Gets or sets the cross-reference to another enumeration table (uid). - /// - /// The csross-reference to another enumeration table (uid). - [XmlIgnore] - public ulong XRef - { - get - { - return this.xref; - } - - set - { - if (this.xref != value) - { - this.RawXRef = ((ulong)value).ToString(CultureInfo.InvariantCulture); - this.RaisePropertyChanged("XRef"); - } - } - } - - #endregionProperties - - #regionMethods(1) - - protected void RaisePropertyChanged(string propertyName) - { - if (this.PropertyChanged != null) - { - this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); - } - } - - #endregionMethods - } +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Diagnostics; +using System.Globalization; +using System.Text.RegularExpressions; +using System.Xml.Schema; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Enumerations.Cet2010 +{ + /// + /// Attributes and elements common to all enumeration entries. + /// + [XmlInclude(typeof(Entity))] + [XmlInclude(typeof(GenericEntryDescription))] + [XmlInclude(typeof(GenericEntryRange))] + [XmlInclude(typeof(ExtraRange))] + [XmlInclude(typeof(SpecificRange))] + [XmlInclude(typeof(SubcategoryRange))] + [XmlInclude(typeof(CategoryRange))] + [XmlInclude(typeof(GenericEntrySingle))] + [XmlInclude(typeof(Extra))] + [XmlInclude(typeof(Specific))] + [XmlInclude(typeof(Subcategory))] + [XmlInclude(typeof(Category))] + [XmlInclude(typeof(GenericEntryString))] + [Serializable()] + [DebuggerStepThrough()] + public abstract class GenericEntry : CetBase, INotifyPropertyChanged, OpenDis.Enumerations.Cet2010.IGenericEntry + { + #regionFields(14) + + private static Regex uuidRegEx = new Regex("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"); + + private List itemsField; + + private bool baseuuidField; + private bool baseuuidFieldSpecified; + private bool deprecatedField; + private bool deprecatedFieldSpecified; + private bool draft1278Field; + private bool draft1278FieldSpecified; + private string footnoteField; + private GenericEntryStatus statusField; + private bool statusFieldSpecified; + private string uuidField; + private ulong xref; + private string xrefField; + + #endregionFields + + #regionDelegatesandEvents(1) + + public event PropertyChangedEventHandler PropertyChanged; + + #endregionDelegatesandEvents + + #regionProperties(13) + + /// + /// Gets or sets a value indicating whether this entry was based on another enumeration entry UUID. + /// + /// true if base UUID; otherwise, false. + [XmlAttribute(AttributeName = "baseuuid")] + public bool BaseUuid + { + get + { + return this.baseuuidField; + } + + set + { + if (this.baseuuidField == value) + { + return; + } + + this.baseuuidField = value; + this.RaisePropertyChanged("BaseUuid"); + } + } + + /// + /// Gets or sets a value indicating whether Base UUID is specified + /// + /// true if base is UUID specified; otherwise, false. + [XmlIgnore()] + public bool BaseUuidSpecified + { + get + { + return this.baseuuidFieldSpecified; + } + + set + { + if (this.baseuuidFieldSpecified == value) + { + return; + } + + this.baseuuidFieldSpecified = value; + this.RaisePropertyChanged("BaseUuidSpecified"); + } + } + + [XmlElement("cr", typeof(Cr), Form = XmlSchemaForm.Unqualified)] + [XmlElement("cr_range", typeof(CrRange), Form = XmlSchemaForm.Unqualified)] + public List ChangeRequests + { + get + { + return this.itemsField; + } + + set + { + if (this.itemsField == value) + { + return; + } + + this.itemsField = value; + this.RaisePropertyChanged("ChangeRequests"); + } + } + + /// + /// Gets or sets a value indicating whether the enumeration entry has been deprecated. + /// + /// true if deprecated; otherwise, false. + [XmlAttribute(AttributeName = "deprecated")] + public bool Deprecated + { + get + { + return this.deprecatedField; + } + + set + { + if (this.deprecatedField == value) + { + return; + } + + this.deprecatedField = value; + this.RaisePropertyChanged("Deprecated"); + } + } + + /// + /// Gets or sets a value indicating whether deprecated field is specified. + /// + /// true if deprecated field is specified; otherwise, false. + [XmlIgnore()] + public bool DeprecatedSpecified + { + get + { + return this.deprecatedFieldSpecified; + } + + set + { + if (this.deprecatedFieldSpecified == value) + { + return; + } + + this.deprecatedFieldSpecified = value; + this.RaisePropertyChanged("DeprecatedSpecified"); + } + } + + /// + /// Gets or sets a value indicating whether the enumeration entry applies to a draft revision of IEEE 1278. + /// + /// true if the enumeration entry applies to a draft revision of IEEE 1278; otherwise, false. + [XmlAttribute(AttributeName = "draft1278")] + public bool Draft1278 + { + get + { + return this.draft1278Field; + } + + set + { + if (this.draft1278Field == value) + { + return; + } + + this.draft1278Field = value; + this.RaisePropertyChanged("Draft1278"); + } + } + + /// + /// Gets or sets a value indicating whether the value indicating whether the enumeration entry applies to a draft revision of IEEE 1278 is specified. + /// + /// true if the value indicating whether the enumeration entry applies to a draft revision of IEEE 1278 is specified; otherwise, false. + [XmlIgnore()] + public bool Draft1278Specified + { + get + { + return this.draft1278FieldSpecified; + } + + set + { + if (this.draft1278FieldSpecified == value) + { + return; + } + + this.draft1278FieldSpecified = value; + this.RaisePropertyChanged("Draft1278Specified"); + } + } + + /// + /// Gets or sets any additional information pertaining to the enumeration entry. + /// + /// The additional information pertaining to the enumeration entry. + [XmlAttribute(AttributeName = "footnote")] + public string Footnote + { + get + { + return this.footnoteField; + } + + set + { + if (this.footnoteField == value) + { + return; + } + + this.footnoteField = value; + this.RaisePropertyChanged("Footnote"); + } + } + + /// + /// Gets or sets the cross-reference to another enumeration table (uid) - RAW value. + /// + /// The RAW value for csross-reference to another enumeration table (uid). + [XmlAttribute(AttributeName = "xref", DataType = "positiveInteger")] + public string RawXRef + { + get + { + return this.xrefField; + } + + set + { + if (this.xrefField == value) + { + return; + } + + this.xrefField = value; + this.xref = ulong.Parse(value, CultureInfo.InvariantCulture); + this.RaisePropertyChanged("RawXRref"); + } + } + + /// + /// Gets or sets the value indicating the approval status of the entry. + /// + /// The value indicating the approval status of the entry. + [XmlAttribute(AttributeName = "status")] + public GenericEntryStatus Status + { + get + { + return this.statusField; + } + + set + { + if (this.statusField == value) + { + return; + } + + this.statusField = value; + this.RaisePropertyChanged("Status"); + } + } + + /// + /// Gets or sets a value indicating whether the status is specified. + /// + /// true if the status is specified; otherwise, false. + [XmlIgnore()] + public bool StatusSpecified + { + get + { + return this.statusFieldSpecified; + } + + set + { + if (this.statusFieldSpecified == value) + { + return; + } + + this.statusFieldSpecified = value; + this.RaisePropertyChanged("StatusSpecified"); + } + } + + /// + /// Gets or sets the RFC 4122 Universally Unique IDentifier (UUID) + /// + [XmlAttribute(AttributeName = "uuid")] + public string Uuid + { + get + { + return this.uuidField; + } + + set + { + if (this.uuidField == value) + { + return; + } + + if (!uuidRegEx.IsMatch(value, 0)) + { + throw new ArgumentException("Invalid value! Value must be conformant with RFC-4122."); + } + + this.uuidField = value; + this.RaisePropertyChanged("Uuid"); + } + } + + /// + /// Gets or sets the cross-reference to another enumeration table (uid). + /// + /// The csross-reference to another enumeration table (uid). + [XmlIgnore] + public ulong XRef + { + get + { + return this.xref; + } + + set + { + if (this.xref != value) + { + this.RawXRef = ((ulong)value).ToString(CultureInfo.InvariantCulture); + this.RaisePropertyChanged("XRef"); + } + } + } + + #endregionProperties + + #regionMethods(1) + + protected void RaisePropertyChanged(string propertyName) + { + if (this.PropertyChanged != null) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + + #endregionMethods + } } \ No newline at end of file diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/GenericEntryDescription.cs b/Libs/CsharpDis6/Enumerations/Cet2010/GenericEntryDescription.cs similarity index 96% rename from Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/GenericEntryDescription.cs rename to Libs/CsharpDis6/Enumerations/Cet2010/GenericEntryDescription.cs index b882475..a125c74 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/GenericEntryDescription.cs +++ b/Libs/CsharpDis6/Enumerations/Cet2010/GenericEntryDescription.cs @@ -1,105 +1,105 @@ -using System; -using System.ComponentModel; -using System.Diagnostics; -using System.Xml.Serialization; - -namespace OpenDis.Enumerations.Cet2010 -{ - [XmlInclude(typeof(GenericEntryRange))] - [XmlInclude(typeof(ExtraRange))] - [XmlInclude(typeof(SpecificRange))] - [XmlInclude(typeof(SubcategoryRange))] - [XmlInclude(typeof(CategoryRange))] - [XmlInclude(typeof(GenericEntrySingle))] - [XmlInclude(typeof(Extra))] - [XmlInclude(typeof(Specific))] - [XmlInclude(typeof(Subcategory))] - [XmlInclude(typeof(Category))] - [XmlInclude(typeof(GenericEntryString))] - [Serializable()] - [DebuggerStepThrough()] - public abstract class GenericEntryDescription : GenericEntry, OpenDis.Enumerations.Cet2010.IGenericEntryDescription - { - #regionFields(3) - - private string descriptionField; - private int groupField; - private bool groupFieldSpecified; - - #endregionFields - - #regionProperties(3) - - /// - /// Gets or sets the text description of the enumeration entry. - /// - [XmlAttribute(AttributeName = "description")] - public string Description - { - get - { - return this.descriptionField; - } - - set - { - if (this.descriptionField == value) - { - return; - } - - this.descriptionField = value; - this.RaisePropertyChanged("Description"); - } - } - - /// - /// Gets or sets the value which indicates which group, if any, the enumeration entry belongs to. - /// - [XmlAttribute(AttributeName = "group")] - public int Group - { - get - { - return this.groupField; - } - - set - { - if (this.groupField == value) - { - return; - } - - this.groupField = value; - this.RaisePropertyChanged("Group"); - } - } - - /// - /// Gets or sets a value indicating whether the group is specified. - /// - /// true if group is specified; otherwise, false. - [XmlIgnore()] - public bool GroupSpecified - { - get - { - return this.groupFieldSpecified; - } - - set - { - if (this.groupFieldSpecified == value) - { - return; - } - - this.groupFieldSpecified = value; - this.RaisePropertyChanged("GroupSpecified"); - } - } - - #endregionProperties - } -} +using System; +using System.ComponentModel; +using System.Diagnostics; +using System.Xml.Serialization; + +namespace OpenDis.Enumerations.Cet2010 +{ + [XmlInclude(typeof(GenericEntryRange))] + [XmlInclude(typeof(ExtraRange))] + [XmlInclude(typeof(SpecificRange))] + [XmlInclude(typeof(SubcategoryRange))] + [XmlInclude(typeof(CategoryRange))] + [XmlInclude(typeof(GenericEntrySingle))] + [XmlInclude(typeof(Extra))] + [XmlInclude(typeof(Specific))] + [XmlInclude(typeof(Subcategory))] + [XmlInclude(typeof(Category))] + [XmlInclude(typeof(GenericEntryString))] + [Serializable()] + [DebuggerStepThrough()] + public abstract class GenericEntryDescription : GenericEntry, OpenDis.Enumerations.Cet2010.IGenericEntryDescription + { + #regionFields(3) + + private string descriptionField; + private int groupField; + private bool groupFieldSpecified; + + #endregionFields + + #regionProperties(3) + + /// + /// Gets or sets the text description of the enumeration entry. + /// + [XmlAttribute(AttributeName = "description")] + public string Description + { + get + { + return this.descriptionField; + } + + set + { + if (this.descriptionField == value) + { + return; + } + + this.descriptionField = value; + this.RaisePropertyChanged("Description"); + } + } + + /// + /// Gets or sets the value which indicates which group, if any, the enumeration entry belongs to. + /// + [XmlAttribute(AttributeName = "group")] + public int Group + { + get + { + return this.groupField; + } + + set + { + if (this.groupField == value) + { + return; + } + + this.groupField = value; + this.RaisePropertyChanged("Group"); + } + } + + /// + /// Gets or sets a value indicating whether the group is specified. + /// + /// true if group is specified; otherwise, false. + [XmlIgnore()] + public bool GroupSpecified + { + get + { + return this.groupFieldSpecified; + } + + set + { + if (this.groupFieldSpecified == value) + { + return; + } + + this.groupFieldSpecified = value; + this.RaisePropertyChanged("GroupSpecified"); + } + } + + #endregionProperties + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/GenericEntryRange.cs b/Libs/CsharpDis6/Enumerations/Cet2010/GenericEntryRange.cs similarity index 96% rename from Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/GenericEntryRange.cs rename to Libs/CsharpDis6/Enumerations/Cet2010/GenericEntryRange.cs index 317caee..4d38c11 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/GenericEntryRange.cs +++ b/Libs/CsharpDis6/Enumerations/Cet2010/GenericEntryRange.cs @@ -1,75 +1,75 @@ -using System; -using System.Diagnostics; -using System.Xml.Serialization; - -namespace OpenDis.Enumerations.Cet2010 -{ - /// - /// Attributes and elements common to enumeration entries concerning a range of integer values. - /// - [XmlInclude(typeof(ExtraRange))] - [XmlInclude(typeof(SpecificRange))] - [XmlInclude(typeof(SubcategoryRange))] - [XmlInclude(typeof(CategoryRange))] - [Serializable()] - [DebuggerStepThrough()] - public abstract class GenericEntryRange : GenericEntryDescription - { - #regionFields(2) - - private int value_maxField; - private int value_minField; - - #endregionFields - - #regionProperties(2) - - /// - /// Gets or sets the maximum value (inclusive) of the enumerated range. - /// - [XmlAttribute(AttributeName = "value_max")] - public int Max - { - get - { - return this.value_maxField; - } - - set - { - if (this.value_maxField == value) - { - return; - } - - this.value_maxField = value; - this.RaisePropertyChanged("Max"); - } - } - - /// - /// Gets or sets the maximum value (inclusive) of the enumerated range. - /// - [XmlAttribute(AttributeName = "value_min")] - public int Min - { - get - { - return this.value_minField; - } - - set - { - if (this.value_minField == value) - { - return; - } - - this.value_minField = value; - this.RaisePropertyChanged("Min"); - } - } - - #endregionProperties - } -} +using System; +using System.Diagnostics; +using System.Xml.Serialization; + +namespace OpenDis.Enumerations.Cet2010 +{ + /// + /// Attributes and elements common to enumeration entries concerning a range of integer values. + /// + [XmlInclude(typeof(ExtraRange))] + [XmlInclude(typeof(SpecificRange))] + [XmlInclude(typeof(SubcategoryRange))] + [XmlInclude(typeof(CategoryRange))] + [Serializable()] + [DebuggerStepThrough()] + public abstract class GenericEntryRange : GenericEntryDescription + { + #regionFields(2) + + private int value_maxField; + private int value_minField; + + #endregionFields + + #regionProperties(2) + + /// + /// Gets or sets the maximum value (inclusive) of the enumerated range. + /// + [XmlAttribute(AttributeName = "value_max")] + public int Max + { + get + { + return this.value_maxField; + } + + set + { + if (this.value_maxField == value) + { + return; + } + + this.value_maxField = value; + this.RaisePropertyChanged("Max"); + } + } + + /// + /// Gets or sets the maximum value (inclusive) of the enumerated range. + /// + [XmlAttribute(AttributeName = "value_min")] + public int Min + { + get + { + return this.value_minField; + } + + set + { + if (this.value_minField == value) + { + return; + } + + this.value_minField = value; + this.RaisePropertyChanged("Min"); + } + } + + #endregionProperties + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/GenericEntrySingle.cs b/Libs/CsharpDis6/Enumerations/Cet2010/GenericEntrySingle.cs similarity index 95% rename from Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/GenericEntrySingle.cs rename to Libs/CsharpDis6/Enumerations/Cet2010/GenericEntrySingle.cs index 2b1a5d0..07f5825 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/GenericEntrySingle.cs +++ b/Libs/CsharpDis6/Enumerations/Cet2010/GenericEntrySingle.cs @@ -1,52 +1,52 @@ -using System; -using System.ComponentModel; -using System.Diagnostics; -using System.Xml.Serialization; - -namespace OpenDis.Enumerations.Cet2010 -{ - /// - /// Attributes and elements common to enumeration entries concerning a single integer value. - /// - [XmlInclude(typeof(Extra))] - [XmlInclude(typeof(Specific))] - [XmlInclude(typeof(Subcategory))] - [XmlInclude(typeof(Category))] - [Serializable()] - [DebuggerStepThrough()] - public class GenericEntrySingle : GenericEntryDescription - { - #regionFields(1) - - private int valueField; - - #endregionFields - - #regionProperties(1) - - /// - /// Gets or sets the enumerated value. - /// - [XmlAttribute(AttributeName = "value")] - public int Value - { - get - { - return this.valueField; - } - - set - { - if (this.valueField == value) - { - return; - } - - this.valueField = value; - this.RaisePropertyChanged("Value"); - } - } - - #endregionProperties - } -} +using System; +using System.ComponentModel; +using System.Diagnostics; +using System.Xml.Serialization; + +namespace OpenDis.Enumerations.Cet2010 +{ + /// + /// Attributes and elements common to enumeration entries concerning a single integer value. + /// + [XmlInclude(typeof(Extra))] + [XmlInclude(typeof(Specific))] + [XmlInclude(typeof(Subcategory))] + [XmlInclude(typeof(Category))] + [Serializable()] + [DebuggerStepThrough()] + public class GenericEntrySingle : GenericEntryDescription + { + #regionFields(1) + + private int valueField; + + #endregionFields + + #regionProperties(1) + + /// + /// Gets or sets the enumerated value. + /// + [XmlAttribute(AttributeName = "value")] + public int Value + { + get + { + return this.valueField; + } + + set + { + if (this.valueField == value) + { + return; + } + + this.valueField = value; + this.RaisePropertyChanged("Value"); + } + } + + #endregionProperties + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/GenericEntryStatus.cs b/Libs/CsharpDis6/Enumerations/Cet2010/GenericEntryStatus.cs similarity index 96% rename from Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/GenericEntryStatus.cs rename to Libs/CsharpDis6/Enumerations/Cet2010/GenericEntryStatus.cs index fbd0d83..7a8b63c 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/GenericEntryStatus.cs +++ b/Libs/CsharpDis6/Enumerations/Cet2010/GenericEntryStatus.cs @@ -1,23 +1,23 @@ -using System; -using System.Xml.Serialization; - -namespace OpenDis.Enumerations.Cet2010 -{ - /// - /// Flag to indicate the approval status of the entry. - /// - [Serializable()] - [XmlType(AnonymousType = true)] - public enum GenericEntryStatus - { - /// - /// Pending denotes that the enty has been proposed, but not yet approved by the EWG. - /// - pending, - - /// - /// New means that the entry has been approved by the EWG since that last formal issue of the database. - /// - @new - } -} +using System; +using System.Xml.Serialization; + +namespace OpenDis.Enumerations.Cet2010 +{ + /// + /// Flag to indicate the approval status of the entry. + /// + [Serializable()] + [XmlType(AnonymousType = true)] + public enum GenericEntryStatus + { + /// + /// Pending denotes that the enty has been proposed, but not yet approved by the EWG. + /// + pending, + + /// + /// New means that the entry has been approved by the EWG since that last formal issue of the database. + /// + @new + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/GenericEntryString.cs b/Libs/CsharpDis6/Enumerations/Cet2010/GenericEntryString.cs similarity index 95% rename from Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/GenericEntryString.cs rename to Libs/CsharpDis6/Enumerations/Cet2010/GenericEntryString.cs index 2f450b7..17364b6 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/GenericEntryString.cs +++ b/Libs/CsharpDis6/Enumerations/Cet2010/GenericEntryString.cs @@ -1,47 +1,47 @@ -using System; -using System.Diagnostics; -using System.Xml.Serialization; - -namespace OpenDis.Enumerations.Cet2010 -{ - /// - /// Attributes and elements common to enumeration entries concerning a single string value. - /// - [Serializable()] - [DebuggerStepThrough()] - public class GenericEntryString : GenericEntryDescription - { - #regionFields(1) - - private string valueField; - - #endregionFields - - #regionProperties(1) - - /// - /// Gets or sets the enumerated value. - /// - [XmlAttribute(AttributeName = "value")] - public string Value - { - get - { - return this.valueField; - } - - set - { - if (this.valueField == value) - { - return; - } - - this.valueField = value; - this.RaisePropertyChanged("Value"); - } - } - - #endregionProperties - } -} +using System; +using System.Diagnostics; +using System.Xml.Serialization; + +namespace OpenDis.Enumerations.Cet2010 +{ + /// + /// Attributes and elements common to enumeration entries concerning a single string value. + /// + [Serializable()] + [DebuggerStepThrough()] + public class GenericEntryString : GenericEntryDescription + { + #regionFields(1) + + private string valueField; + + #endregionFields + + #regionProperties(1) + + /// + /// Gets or sets the enumerated value. + /// + [XmlAttribute(AttributeName = "value")] + public string Value + { + get + { + return this.valueField; + } + + set + { + if (this.valueField == value) + { + return; + } + + this.valueField = value; + this.RaisePropertyChanged("Value"); + } + } + + #endregionProperties + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/GenericTable.cs b/Libs/CsharpDis6/Enumerations/Cet2010/GenericTable.cs similarity index 96% rename from Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/GenericTable.cs rename to Libs/CsharpDis6/Enumerations/Cet2010/GenericTable.cs index 9a6923e..c435e06 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/GenericTable.cs +++ b/Libs/CsharpDis6/Enumerations/Cet2010/GenericTable.cs @@ -1,291 +1,291 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Xml.Schema; -using System.Xml.Serialization; -using OpenDis.Core; - -namespace OpenDis.Enumerations.Cet2010 -{ - [XmlInclude(typeof(Cet))] - [Serializable()] - [DebuggerStepThrough()] - public abstract class GenericTable : CetBase, INotifyPropertyChanged - { - #regionFields(10) - - private List itemsField; - - private bool deprecatedField; - private bool deprecatedFieldSpecified; - private bool draft1278Field; - private bool draft1278FieldSpecified; - private int groupField; - private bool groupFieldSpecified; - private string nameField; - private ulong uid; - private string uidField; - - #endregionFields - - #regionDelegatesandEvents(1) - - public event PropertyChangedEventHandler PropertyChanged; - - #endregionDelegatesandEvents - - #regionProperties(10) - - [XmlElement("cr", typeof(Cr), Form = XmlSchemaForm.Unqualified)] - [XmlElement("cr_range", typeof(CrRange), Form = XmlSchemaForm.Unqualified)] - public List ChangeRequests - { - get - { - return this.itemsField; - } - - set - { - if (this.itemsField == value) - { - return; - } - - this.itemsField = value; - this.RaisePropertyChanged("ChangeRequests"); - } - } - - /// - /// Gets or sets a value indicating whether the enumeration entry has been deprecated. - /// - /// true if deprecated; otherwise, false. - [XmlAttribute(AttributeName = "deprecated")] - public bool Deprecated - { - get - { - return this.deprecatedField; - } - - set - { - if (this.deprecatedField == value) - { - return; - } - - this.deprecatedField = value; - this.RaisePropertyChanged("Deprecated"); - } - } - - /// - /// Gets or sets a value indicating whether deprecated field is specified. - /// - /// true if deprecated field is specified; otherwise, false. - [XmlIgnore()] - public bool DeprecatedSpecified - { - get - { - return this.deprecatedFieldSpecified; - } - - set - { - if (this.deprecatedFieldSpecified == value) - { - return; - } - - this.deprecatedFieldSpecified = value; - this.RaisePropertyChanged("DeprecatedSpecified"); - } - } - - /// - /// Gets or sets the value denoting the table is to be used to define the allowed groups for elements of the enumeration table. - /// - /// The group value defining the allowed groups for elements of the enumeration table. - [XmlAttribute(AttributeName = "group")] - public int Group - { - get - { - return this.groupField; - } - - set - { - if (this.groupField == value) - { - return; - } - - this.groupField = value; - this.RaisePropertyChanged("Group"); - } - } - - /// - /// Gets or sets a value indicating whether value for group is specified. - /// - /// true if value for group is specified; otherwise, false. - [XmlIgnore()] - public bool GroupSpecified - { - get - { - return this.groupFieldSpecified; - } - - set - { - if (this.groupFieldSpecified == value) - { - return; - } - - this.groupFieldSpecified = value; - this.RaisePropertyChanged("GroupSpecified"); - } - } - - /// - /// Gets or sets a value indicating whether the enumeration entry applies to a draft revision of IEEE 1278. - /// - /// true if the enumeration entry applies to a draft revision of IEEE 1278; otherwise, false. - [XmlAttribute(AttributeName = "draft1278")] - public bool IsDraft1278 - { - get - { - return this.draft1278Field; - } - - set - { - if (this.draft1278Field == value) - { - return; - } - - this.draft1278Field = value; - this.RaisePropertyChanged("IsDraft1278"); - } - } - - /// - /// Gets or sets a value indicating whether the value indicating whether the enumeration entry applies to a draft revision of IEEE 1278 is specified. - /// - /// true if the value indicating whether the enumeration entry applies to a draft revision of IEEE 1278 is specified; otherwise, false. - [XmlIgnore()] - public bool IsDraft1278Specified - { - get - { - return this.draft1278FieldSpecified; - } - - set - { - if (this.draft1278FieldSpecified == value) - { - return; - } - - this.draft1278FieldSpecified = value; - this.RaisePropertyChanged("IsDraft1278Specified"); - } - } - - /// - /// Gets or sets the name of the table. - /// - /// The name of the table. - [XmlAttribute(AttributeName = "name")] - public string Name - { - get - { - return this.nameField; - } - - set - { - if (this.nameField == value) - { - return; - } - - this.nameField = value; - this.RaisePropertyChanged("Name"); - } - } - - /// - /// Gets or sets a value representing unique numeric identifier for the enumeration table - RAW value. - /// - /// The RAW unique numeric identifier for the enumeration table. - [XmlAttribute(AttributeName = "uid", DataType = "positiveInteger")] - public string RawUId - { - get - { - return this.uidField; - } - - set - { - if (this.uidField == value) - { - return; - } - - this.uidField = value; - this.uid = ulong.Parse(value, CultureInfo.InvariantCulture); - this.RaisePropertyChanged("RawUId"); - } - } - - /// - /// Gets or sets a value representing unique numeric identifier for the enumeration table. - /// - /// The unique numeric identifier for the enumeration table. - [XmlIgnore] - public ulong UId - { - get - { - return this.uid; - } - - set - { - if (this.uid != value) - { - this.RawUId = ((ulong)value).ToString(CultureInfo.InvariantCulture); - this.RaisePropertyChanged("UId"); - } - } - } - - #endregionProperties - - #regionMethods(1) - - protected void RaisePropertyChanged(string propertyName) - { - if (this.PropertyChanged != null) - { - this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); - } - } - - #endregionMethods - } -} +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Diagnostics; +using System.Globalization; +using System.Xml.Schema; +using System.Xml.Serialization; +using OpenDis.Core; + +namespace OpenDis.Enumerations.Cet2010 +{ + [XmlInclude(typeof(Cet))] + [Serializable()] + [DebuggerStepThrough()] + public abstract class GenericTable : CetBase, INotifyPropertyChanged + { + #regionFields(10) + + private List itemsField; + + private bool deprecatedField; + private bool deprecatedFieldSpecified; + private bool draft1278Field; + private bool draft1278FieldSpecified; + private int groupField; + private bool groupFieldSpecified; + private string nameField; + private ulong uid; + private string uidField; + + #endregionFields + + #regionDelegatesandEvents(1) + + public event PropertyChangedEventHandler PropertyChanged; + + #endregionDelegatesandEvents + + #regionProperties(10) + + [XmlElement("cr", typeof(Cr), Form = XmlSchemaForm.Unqualified)] + [XmlElement("cr_range", typeof(CrRange), Form = XmlSchemaForm.Unqualified)] + public List ChangeRequests + { + get + { + return this.itemsField; + } + + set + { + if (this.itemsField == value) + { + return; + } + + this.itemsField = value; + this.RaisePropertyChanged("ChangeRequests"); + } + } + + /// + /// Gets or sets a value indicating whether the enumeration entry has been deprecated. + /// + /// true if deprecated; otherwise, false. + [XmlAttribute(AttributeName = "deprecated")] + public bool Deprecated + { + get + { + return this.deprecatedField; + } + + set + { + if (this.deprecatedField == value) + { + return; + } + + this.deprecatedField = value; + this.RaisePropertyChanged("Deprecated"); + } + } + + /// + /// Gets or sets a value indicating whether deprecated field is specified. + /// + /// true if deprecated field is specified; otherwise, false. + [XmlIgnore()] + public bool DeprecatedSpecified + { + get + { + return this.deprecatedFieldSpecified; + } + + set + { + if (this.deprecatedFieldSpecified == value) + { + return; + } + + this.deprecatedFieldSpecified = value; + this.RaisePropertyChanged("DeprecatedSpecified"); + } + } + + /// + /// Gets or sets the value denoting the table is to be used to define the allowed groups for elements of the enumeration table. + /// + /// The group value defining the allowed groups for elements of the enumeration table. + [XmlAttribute(AttributeName = "group")] + public int Group + { + get + { + return this.groupField; + } + + set + { + if (this.groupField == value) + { + return; + } + + this.groupField = value; + this.RaisePropertyChanged("Group"); + } + } + + /// + /// Gets or sets a value indicating whether value for group is specified. + /// + /// true if value for group is specified; otherwise, false. + [XmlIgnore()] + public bool GroupSpecified + { + get + { + return this.groupFieldSpecified; + } + + set + { + if (this.groupFieldSpecified == value) + { + return; + } + + this.groupFieldSpecified = value; + this.RaisePropertyChanged("GroupSpecified"); + } + } + + /// + /// Gets or sets a value indicating whether the enumeration entry applies to a draft revision of IEEE 1278. + /// + /// true if the enumeration entry applies to a draft revision of IEEE 1278; otherwise, false. + [XmlAttribute(AttributeName = "draft1278")] + public bool IsDraft1278 + { + get + { + return this.draft1278Field; + } + + set + { + if (this.draft1278Field == value) + { + return; + } + + this.draft1278Field = value; + this.RaisePropertyChanged("IsDraft1278"); + } + } + + /// + /// Gets or sets a value indicating whether the value indicating whether the enumeration entry applies to a draft revision of IEEE 1278 is specified. + /// + /// true if the value indicating whether the enumeration entry applies to a draft revision of IEEE 1278 is specified; otherwise, false. + [XmlIgnore()] + public bool IsDraft1278Specified + { + get + { + return this.draft1278FieldSpecified; + } + + set + { + if (this.draft1278FieldSpecified == value) + { + return; + } + + this.draft1278FieldSpecified = value; + this.RaisePropertyChanged("IsDraft1278Specified"); + } + } + + /// + /// Gets or sets the name of the table. + /// + /// The name of the table. + [XmlAttribute(AttributeName = "name")] + public string Name + { + get + { + return this.nameField; + } + + set + { + if (this.nameField == value) + { + return; + } + + this.nameField = value; + this.RaisePropertyChanged("Name"); + } + } + + /// + /// Gets or sets a value representing unique numeric identifier for the enumeration table - RAW value. + /// + /// The RAW unique numeric identifier for the enumeration table. + [XmlAttribute(AttributeName = "uid", DataType = "positiveInteger")] + public string RawUId + { + get + { + return this.uidField; + } + + set + { + if (this.uidField == value) + { + return; + } + + this.uidField = value; + this.uid = ulong.Parse(value, CultureInfo.InvariantCulture); + this.RaisePropertyChanged("RawUId"); + } + } + + /// + /// Gets or sets a value representing unique numeric identifier for the enumeration table. + /// + /// The unique numeric identifier for the enumeration table. + [XmlIgnore] + public ulong UId + { + get + { + return this.uid; + } + + set + { + if (this.uid != value) + { + this.RawUId = ((ulong)value).ToString(CultureInfo.InvariantCulture); + this.RaisePropertyChanged("UId"); + } + } + } + + #endregionProperties + + #regionMethods(1) + + protected void RaisePropertyChanged(string propertyName) + { + if (this.PropertyChanged != null) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + + #endregionMethods + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/ICategoryOrCategoryRange.cs b/Libs/CsharpDis6/Enumerations/Cet2010/ICategoryOrCategoryRange.cs similarity index 96% rename from Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/ICategoryOrCategoryRange.cs rename to Libs/CsharpDis6/Enumerations/Cet2010/ICategoryOrCategoryRange.cs index 7b0b0da..be76a7d 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/ICategoryOrCategoryRange.cs +++ b/Libs/CsharpDis6/Enumerations/Cet2010/ICategoryOrCategoryRange.cs @@ -1,12 +1,12 @@ -using System; -using System.Collections.Generic; - -namespace OpenDis.Enumerations.Cet2010 -{ - public interface ICategoryOrCategoryRange : IGenericEntryDescription - { - ////List Subcategories { get; set; } - List Subcategories { get; set; } - ulong UId { get; set; } - } -} +using System; +using System.Collections.Generic; + +namespace OpenDis.Enumerations.Cet2010 +{ + public interface ICategoryOrCategoryRange : IGenericEntryDescription + { + ////List Subcategories { get; set; } + List Subcategories { get; set; } + ulong UId { get; set; } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/IExtraOrExtraRange.cs b/Libs/CsharpDis6/Enumerations/Cet2010/IExtraOrExtraRange.cs similarity index 95% rename from Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/IExtraOrExtraRange.cs rename to Libs/CsharpDis6/Enumerations/Cet2010/IExtraOrExtraRange.cs index af3d423..f62a911 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/IExtraOrExtraRange.cs +++ b/Libs/CsharpDis6/Enumerations/Cet2010/IExtraOrExtraRange.cs @@ -1,12 +1,12 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace OpenDis.Enumerations.Cet2010 -{ - public interface IExtraOrExtraRange : IGenericEntryDescription - { - ulong UId { get; set; } - } -} +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace OpenDis.Enumerations.Cet2010 +{ + public interface IExtraOrExtraRange : IGenericEntryDescription + { + ulong UId { get; set; } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/IGenericEntry.cs b/Libs/CsharpDis6/Enumerations/Cet2010/IGenericEntry.cs similarity index 96% rename from Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/IGenericEntry.cs rename to Libs/CsharpDis6/Enumerations/Cet2010/IGenericEntry.cs index 69a8b95..32245fc 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/IGenericEntry.cs +++ b/Libs/CsharpDis6/Enumerations/Cet2010/IGenericEntry.cs @@ -1,22 +1,22 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; - -namespace OpenDis.Enumerations.Cet2010 -{ - public interface IGenericEntry : INotifyPropertyChanged - { - bool BaseUuid { get; set; } - bool BaseUuidSpecified { get; set; } - List ChangeRequests { get; set; } - bool Deprecated { get; set; } - bool DeprecatedSpecified { get; set; } - bool Draft1278 { get; set; } - bool Draft1278Specified { get; set; } - string Footnote { get; set; } - GenericEntryStatus Status { get; set; } - bool StatusSpecified { get; set; } - string Uuid { get; set; } - ulong XRef { get; set; } - } -} +using System; +using System.Collections.Generic; +using System.ComponentModel; + +namespace OpenDis.Enumerations.Cet2010 +{ + public interface IGenericEntry : INotifyPropertyChanged + { + bool BaseUuid { get; set; } + bool BaseUuidSpecified { get; set; } + List ChangeRequests { get; set; } + bool Deprecated { get; set; } + bool DeprecatedSpecified { get; set; } + bool Draft1278 { get; set; } + bool Draft1278Specified { get; set; } + string Footnote { get; set; } + GenericEntryStatus Status { get; set; } + bool StatusSpecified { get; set; } + string Uuid { get; set; } + ulong XRef { get; set; } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/IGenericEntryDescription.cs b/Libs/CsharpDis6/Enumerations/Cet2010/IGenericEntryDescription.cs similarity index 95% rename from Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/IGenericEntryDescription.cs rename to Libs/CsharpDis6/Enumerations/Cet2010/IGenericEntryDescription.cs index c40fe6a..9f5a720 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/IGenericEntryDescription.cs +++ b/Libs/CsharpDis6/Enumerations/Cet2010/IGenericEntryDescription.cs @@ -1,11 +1,11 @@ -using System; - -namespace OpenDis.Enumerations.Cet2010 -{ - public interface IGenericEntryDescription : IGenericEntry - { - string Description { get; set; } - int Group { get; set; } - bool GroupSpecified { get; set; } - } -} +using System; + +namespace OpenDis.Enumerations.Cet2010 +{ + public interface IGenericEntryDescription : IGenericEntry + { + string Description { get; set; } + int Group { get; set; } + bool GroupSpecified { get; set; } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/ISpecificOrSpecificRange.cs b/Libs/CsharpDis6/Enumerations/Cet2010/ISpecificOrSpecificRange.cs similarity index 96% rename from Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/ISpecificOrSpecificRange.cs rename to Libs/CsharpDis6/Enumerations/Cet2010/ISpecificOrSpecificRange.cs index a18d2e0..3094ca9 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/ISpecificOrSpecificRange.cs +++ b/Libs/CsharpDis6/Enumerations/Cet2010/ISpecificOrSpecificRange.cs @@ -1,12 +1,12 @@ -using System; -using System.Collections.Generic; - -namespace OpenDis.Enumerations.Cet2010 -{ - public interface ISpecificOrSpecificRange : IGenericEntryDescription - { - ////List Extras {get; set;} - List Extras { get; set; } - ulong UId { get; set; } - } -} +using System; +using System.Collections.Generic; + +namespace OpenDis.Enumerations.Cet2010 +{ + public interface ISpecificOrSpecificRange : IGenericEntryDescription + { + ////List Extras {get; set;} + List Extras { get; set; } + ulong UId { get; set; } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/ISubcategoryOrSubcategoryRange.cs b/Libs/CsharpDis6/Enumerations/Cet2010/ISubcategoryOrSubcategoryRange.cs similarity index 96% rename from Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/ISubcategoryOrSubcategoryRange.cs rename to Libs/CsharpDis6/Enumerations/Cet2010/ISubcategoryOrSubcategoryRange.cs index 2e62ecb..b402937 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/ISubcategoryOrSubcategoryRange.cs +++ b/Libs/CsharpDis6/Enumerations/Cet2010/ISubcategoryOrSubcategoryRange.cs @@ -1,12 +1,12 @@ -using System; -using System.Collections.Generic; - -namespace OpenDis.Enumerations.Cet2010 -{ - public interface ISubcategoryOrSubcategoryRange : IGenericEntryDescription - { - //// List Specifices { get; set; } - List Specifices { get; set; } - ulong UId { get; set; } - } -} +using System; +using System.Collections.Generic; + +namespace OpenDis.Enumerations.Cet2010 +{ + public interface ISubcategoryOrSubcategoryRange : IGenericEntryDescription + { + //// List Specifices { get; set; } + List Specifices { get; set; } + ulong UId { get; set; } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/Specific.cs b/Libs/CsharpDis6/Enumerations/Cet2010/Specific.cs similarity index 96% rename from Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/Specific.cs rename to Libs/CsharpDis6/Enumerations/Cet2010/Specific.cs index b625864..46e010c 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/Specific.cs +++ b/Libs/CsharpDis6/Enumerations/Cet2010/Specific.cs @@ -1,95 +1,95 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Globalization; -using System.Xml.Schema; -using System.Xml.Serialization; - -namespace OpenDis.Enumerations.Cet2010 -{ - [Serializable()] - [DebuggerStepThrough()] - public class Specific : GenericEntrySingle, ISpecificOrSpecificRange - { - #regionFields(3) - - private List items1Field; - - private ulong uid; - private string uidField; - - #endregionFields - - #regionProperties(3) - - [XmlElement("extra", typeof(Extra), Form = XmlSchemaForm.Unqualified)] - [XmlElement("extra_range", typeof(ExtraRange), Form = XmlSchemaForm.Unqualified)] - public List Extras - { - get - { - return this.items1Field; - } - - set - { - if (this.items1Field == value) - { - return; - } - - this.items1Field = value; - this.RaisePropertyChanged("Extras"); - } - } - - /// - /// Gets or sets the unique numeric identifer - RAW value. - /// - /// The RAW unique numeric identifer. - [XmlAttribute(AttributeName = "uid", DataType = "nonNegativeInteger")] - public string RawUId - { - get - { - return this.uidField; - } - - set - { - if (this.uidField == value) - { - return; - } - - this.uidField = value; - this.uid = ulong.Parse(value, CultureInfo.InvariantCulture); - this.RaisePropertyChanged("RawUId"); - } - } - - /// - /// Gets or sets the unique numeric identifer. - /// - /// The unique numeric identifer. - [XmlIgnore] - public ulong UId - { - get - { - return this.uid; - } - - set - { - if (this.uid != value) - { - this.RawUId = ((ulong)value).ToString(CultureInfo.InvariantCulture); - this.RaisePropertyChanged("UId"); - } - } - } - - #endregionProperties - } -} +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Globalization; +using System.Xml.Schema; +using System.Xml.Serialization; + +namespace OpenDis.Enumerations.Cet2010 +{ + [Serializable()] + [DebuggerStepThrough()] + public class Specific : GenericEntrySingle, ISpecificOrSpecificRange + { + #regionFields(3) + + private List items1Field; + + private ulong uid; + private string uidField; + + #endregionFields + + #regionProperties(3) + + [XmlElement("extra", typeof(Extra), Form = XmlSchemaForm.Unqualified)] + [XmlElement("extra_range", typeof(ExtraRange), Form = XmlSchemaForm.Unqualified)] + public List Extras + { + get + { + return this.items1Field; + } + + set + { + if (this.items1Field == value) + { + return; + } + + this.items1Field = value; + this.RaisePropertyChanged("Extras"); + } + } + + /// + /// Gets or sets the unique numeric identifer - RAW value. + /// + /// The RAW unique numeric identifer. + [XmlAttribute(AttributeName = "uid", DataType = "nonNegativeInteger")] + public string RawUId + { + get + { + return this.uidField; + } + + set + { + if (this.uidField == value) + { + return; + } + + this.uidField = value; + this.uid = ulong.Parse(value, CultureInfo.InvariantCulture); + this.RaisePropertyChanged("RawUId"); + } + } + + /// + /// Gets or sets the unique numeric identifer. + /// + /// The unique numeric identifer. + [XmlIgnore] + public ulong UId + { + get + { + return this.uid; + } + + set + { + if (this.uid != value) + { + this.RawUId = ((ulong)value).ToString(CultureInfo.InvariantCulture); + this.RaisePropertyChanged("UId"); + } + } + } + + #endregionProperties + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/SpecificRange.cs b/Libs/CsharpDis6/Enumerations/Cet2010/SpecificRange.cs similarity index 96% rename from Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/SpecificRange.cs rename to Libs/CsharpDis6/Enumerations/Cet2010/SpecificRange.cs index 07218e1..57d0bbc 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/SpecificRange.cs +++ b/Libs/CsharpDis6/Enumerations/Cet2010/SpecificRange.cs @@ -1,95 +1,95 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Globalization; -using System.Xml.Schema; -using System.Xml.Serialization; - -namespace OpenDis.Enumerations.Cet2010 -{ - [Serializable()] - [DebuggerStepThrough()] - public class SpecificRange : GenericEntryRange, ISpecificOrSpecificRange - { - #regionFields(3) - - private List items1Field; - - private ulong uid; - private string uidField; - - #endregionFields - - #regionProperties(3) - - [XmlElement("extra", typeof(Extra), Form = XmlSchemaForm.Unqualified)] - [XmlElement("extra_range", typeof(ExtraRange), Form = XmlSchemaForm.Unqualified)] - public List Extras - { - get - { - return this.items1Field; - } - - set - { - if (this.items1Field == value) - { - return; - } - - this.items1Field = value; - this.RaisePropertyChanged("Extras"); - } - } - - /// - /// Gets or sets the unique numeric identifer - RAW value. - /// - /// The RAW unique numeric identifer. - [XmlAttribute(AttributeName = "uid", DataType = "nonNegativeInteger")] - public string RawUId - { - get - { - return this.uidField; - } - - set - { - if (this.uidField == value) - { - return; - } - - this.uidField = value; - this.uid = ulong.Parse(value, CultureInfo.InvariantCulture); - this.RaisePropertyChanged("RawUId"); - } - } - - /// - /// Gets or sets the unique numeric identifer. - /// - /// The unique numeric identifer. - [XmlIgnore] - public ulong UId - { - get - { - return this.uid; - } - - set - { - if (this.uid != value) - { - this.RawUId = ((byte)value).ToString(CultureInfo.InvariantCulture); - this.RaisePropertyChanged("UId"); - } - } - } - - #endregionProperties - } -} +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Globalization; +using System.Xml.Schema; +using System.Xml.Serialization; + +namespace OpenDis.Enumerations.Cet2010 +{ + [Serializable()] + [DebuggerStepThrough()] + public class SpecificRange : GenericEntryRange, ISpecificOrSpecificRange + { + #regionFields(3) + + private List items1Field; + + private ulong uid; + private string uidField; + + #endregionFields + + #regionProperties(3) + + [XmlElement("extra", typeof(Extra), Form = XmlSchemaForm.Unqualified)] + [XmlElement("extra_range", typeof(ExtraRange), Form = XmlSchemaForm.Unqualified)] + public List Extras + { + get + { + return this.items1Field; + } + + set + { + if (this.items1Field == value) + { + return; + } + + this.items1Field = value; + this.RaisePropertyChanged("Extras"); + } + } + + /// + /// Gets or sets the unique numeric identifer - RAW value. + /// + /// The RAW unique numeric identifer. + [XmlAttribute(AttributeName = "uid", DataType = "nonNegativeInteger")] + public string RawUId + { + get + { + return this.uidField; + } + + set + { + if (this.uidField == value) + { + return; + } + + this.uidField = value; + this.uid = ulong.Parse(value, CultureInfo.InvariantCulture); + this.RaisePropertyChanged("RawUId"); + } + } + + /// + /// Gets or sets the unique numeric identifer. + /// + /// The unique numeric identifer. + [XmlIgnore] + public ulong UId + { + get + { + return this.uid; + } + + set + { + if (this.uid != value) + { + this.RawUId = ((byte)value).ToString(CultureInfo.InvariantCulture); + this.RaisePropertyChanged("UId"); + } + } + } + + #endregionProperties + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/Subcategory.cs b/Libs/CsharpDis6/Enumerations/Cet2010/Subcategory.cs similarity index 96% rename from Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/Subcategory.cs rename to Libs/CsharpDis6/Enumerations/Cet2010/Subcategory.cs index fddfdc3..2474829 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/Subcategory.cs +++ b/Libs/CsharpDis6/Enumerations/Cet2010/Subcategory.cs @@ -1,95 +1,95 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Globalization; -using System.Xml.Schema; -using System.Xml.Serialization; - -namespace OpenDis.Enumerations.Cet2010 -{ - [Serializable()] - [DebuggerStepThrough()] - public class Subcategory : GenericEntrySingle, ISubcategoryOrSubcategoryRange - { - #regionFields(3) - - private List items1Field; - - private ulong uid; - private string uidField; - - #endregionFields - - #regionProperties(3) - - /// - /// Gets or sets the unique numeric identifer - RAW value. - /// - /// The RAW unique numeric identifer. - [XmlAttribute(AttributeName = "uid", DataType = "nonNegativeInteger")] - public string RawUId - { - get - { - return this.uidField; - } - - set - { - if (this.uidField == value) - { - return; - } - - this.uidField = value; - this.uid = ulong.Parse(value, CultureInfo.InvariantCulture); - this.RaisePropertyChanged("RawUId"); - } - } - - [XmlElement("specific", typeof(Specific), Form = XmlSchemaForm.Unqualified)] - [XmlElement("specific_range", typeof(SpecificRange), Form = XmlSchemaForm.Unqualified)] - public List Specifices - { - get - { - return this.items1Field; - } - - set - { - if (this.items1Field == value) - { - return; - } - - this.items1Field = value; - this.RaisePropertyChanged("Specifices"); - } - } - - /// - /// Gets or sets the unique numeric identifer. - /// - /// The unique numeric identifer. - [XmlIgnore] - public ulong UId - { - get - { - return this.uid; - } - - set - { - if (this.uid != value) - { - this.RawUId = ((ulong)value).ToString(CultureInfo.InvariantCulture); - this.RaisePropertyChanged("UId"); - } - } - } - - #endregionProperties - } -} +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Globalization; +using System.Xml.Schema; +using System.Xml.Serialization; + +namespace OpenDis.Enumerations.Cet2010 +{ + [Serializable()] + [DebuggerStepThrough()] + public class Subcategory : GenericEntrySingle, ISubcategoryOrSubcategoryRange + { + #regionFields(3) + + private List items1Field; + + private ulong uid; + private string uidField; + + #endregionFields + + #regionProperties(3) + + /// + /// Gets or sets the unique numeric identifer - RAW value. + /// + /// The RAW unique numeric identifer. + [XmlAttribute(AttributeName = "uid", DataType = "nonNegativeInteger")] + public string RawUId + { + get + { + return this.uidField; + } + + set + { + if (this.uidField == value) + { + return; + } + + this.uidField = value; + this.uid = ulong.Parse(value, CultureInfo.InvariantCulture); + this.RaisePropertyChanged("RawUId"); + } + } + + [XmlElement("specific", typeof(Specific), Form = XmlSchemaForm.Unqualified)] + [XmlElement("specific_range", typeof(SpecificRange), Form = XmlSchemaForm.Unqualified)] + public List Specifices + { + get + { + return this.items1Field; + } + + set + { + if (this.items1Field == value) + { + return; + } + + this.items1Field = value; + this.RaisePropertyChanged("Specifices"); + } + } + + /// + /// Gets or sets the unique numeric identifer. + /// + /// The unique numeric identifer. + [XmlIgnore] + public ulong UId + { + get + { + return this.uid; + } + + set + { + if (this.uid != value) + { + this.RawUId = ((ulong)value).ToString(CultureInfo.InvariantCulture); + this.RaisePropertyChanged("UId"); + } + } + } + + #endregionProperties + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/SubcategoryRange.cs b/Libs/CsharpDis6/Enumerations/Cet2010/SubcategoryRange.cs similarity index 96% rename from Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/SubcategoryRange.cs rename to Libs/CsharpDis6/Enumerations/Cet2010/SubcategoryRange.cs index 06459ab..bea9e5a 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/SubcategoryRange.cs +++ b/Libs/CsharpDis6/Enumerations/Cet2010/SubcategoryRange.cs @@ -1,95 +1,95 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Globalization; -using System.Xml.Schema; -using System.Xml.Serialization; - -namespace OpenDis.Enumerations.Cet2010 -{ - [Serializable()] - [DebuggerStepThrough()] - public class SubcategoryRange : GenericEntryRange, ISubcategoryOrSubcategoryRange - { - #regionFields(3) - - private List items1Field; - - private ulong uid; - private string uidField; - - #endregionFields - - #regionProperties(3) - - /// - /// Gets or sets the unique numeric identifer - RAW value. - /// - /// The RAW unique numeric identifer. - [XmlAttribute(AttributeName = "uid", DataType = "nonNegativeInteger")] - public string RawUId - { - get - { - return this.uidField; - } - - set - { - if (this.uidField == value) - { - return; - } - - this.uidField = value; - this.uid = ulong.Parse(value, CultureInfo.InvariantCulture); - this.RaisePropertyChanged("RawUId"); - } - } - - [XmlElement("specific", typeof(Specific), Form = XmlSchemaForm.Unqualified)] - [XmlElement("specific_range", typeof(SpecificRange), Form = XmlSchemaForm.Unqualified)] - public List Specifices - { - get - { - return this.items1Field; - } - - set - { - if (this.items1Field == value) - { - return; - } - - this.items1Field = value; - this.RaisePropertyChanged("Specifices"); - } - } - - /// - /// Gets or sets the unique numeric identifer. - /// - /// The unique numeric identifer. - [XmlIgnore] - public ulong UId - { - get - { - return this.uid; - } - - set - { - if (this.uid != value) - { - this.RawUId = ((ulong)value).ToString(CultureInfo.InvariantCulture); - this.RaisePropertyChanged("UId"); - } - } - } - - #endregionProperties - } -} +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Globalization; +using System.Xml.Schema; +using System.Xml.Serialization; + +namespace OpenDis.Enumerations.Cet2010 +{ + [Serializable()] + [DebuggerStepThrough()] + public class SubcategoryRange : GenericEntryRange, ISubcategoryOrSubcategoryRange + { + #regionFields(3) + + private List items1Field; + + private ulong uid; + private string uidField; + + #endregionFields + + #regionProperties(3) + + /// + /// Gets or sets the unique numeric identifer - RAW value. + /// + /// The RAW unique numeric identifer. + [XmlAttribute(AttributeName = "uid", DataType = "nonNegativeInteger")] + public string RawUId + { + get + { + return this.uidField; + } + + set + { + if (this.uidField == value) + { + return; + } + + this.uidField = value; + this.uid = ulong.Parse(value, CultureInfo.InvariantCulture); + this.RaisePropertyChanged("RawUId"); + } + } + + [XmlElement("specific", typeof(Specific), Form = XmlSchemaForm.Unqualified)] + [XmlElement("specific_range", typeof(SpecificRange), Form = XmlSchemaForm.Unqualified)] + public List Specifices + { + get + { + return this.items1Field; + } + + set + { + if (this.items1Field == value) + { + return; + } + + this.items1Field = value; + this.RaisePropertyChanged("Specifices"); + } + } + + /// + /// Gets or sets the unique numeric identifer. + /// + /// The unique numeric identifer. + [XmlIgnore] + public ulong UId + { + get + { + return this.uid; + } + + set + { + if (this.uid != value) + { + this.RawUId = ((ulong)value).ToString(CultureInfo.InvariantCulture); + this.RaisePropertyChanged("UId"); + } + } + } + + #endregionProperties + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/cet.xsd b/Libs/CsharpDis6/Enumerations/Cet2010/cet.xsd similarity index 100% rename from Libs/CsharpDis6/OpenDis/Enumerations/Cet2010/cet.xsd rename to Libs/CsharpDis6/Enumerations/Cet2010/cet.xsd diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Country.cs b/Libs/CsharpDis6/Enumerations/Country.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Country.cs rename to Libs/CsharpDis6/Enumerations/Country.cs index 78f02e1..d57841a 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Country.cs +++ b/Libs/CsharpDis6/Enumerations/Country.cs @@ -1,3234 +1,3234 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; -using OpenDis.Core; - -namespace OpenDis.Enumerations -{ - /// - /// Enumeration values for Country (es.type.country, Country, - /// section 4.2.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum Country : ushort - { - /// - /// Other - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other")] - [InternetDomainCode("Unknown")] - Other = 0, - - - /// - /// Afghanistan - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Afghanistan")] - [InternetDomainCode("AF")] - Afghanistan = 1, - - - /// - /// Albania - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Albania")] - [InternetDomainCode("AL")] - Albania = 2, - - - /// - /// Algeria - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Algeria")] - [InternetDomainCode("DZ")] - Algeria = 3, - - - /// - /// American Samoa (United States) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("American Samoa (United States)")] - [InternetDomainCode("Unknown")] - AmericanSamoaUnitedStates = 4, - - - /// - /// Andorra - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Andorra")] - [InternetDomainCode("AD")] - Andorra = 5, - - - /// - /// Angola - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Angola")] - [InternetDomainCode("AO")] - Angola = 6, - - - /// - /// Anguilla - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Anguilla")] - [InternetDomainCode("AI")] - Anguilla = 7, - - - /// - /// Antarctica (International) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Antarctica (International)")] - [InternetDomainCode("Unknown")] - AntarcticaInternational = 8, - - - /// - /// Antigua and Barbuda - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Antigua and Barbuda")] - [InternetDomainCode("AG")] - AntiguaAndBarbuda = 9, - - - /// - /// Argentina - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Argentina")] - [InternetDomainCode("AR")] - Argentina = 10, - - - /// - /// Armenia - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Armenia")] - [InternetDomainCode("AM")] - Armenia = 244, - - - /// - /// Aruba - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Aruba")] - [InternetDomainCode("AW")] - Aruba = 11, - - - /// - /// Ashmore and Cartier Islands (Australia) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ashmore and Cartier Islands (Australia)")] - [InternetDomainCode("Unknown")] - AshmoreAndCartierIslandsAustralia = 12, - - - /// - /// Australia - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Australia")] - [InternetDomainCode("AU")] - Australia = 13, - - - /// - /// Austria - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Austria")] - [InternetDomainCode("AT")] - Austria = 14, - - - /// - /// Azerbaijan - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Azerbaijan")] - [InternetDomainCode("AZ")] - Azerbaijan = 245, - - - /// - /// Bahamas - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Bahamas")] - [InternetDomainCode("BS")] - Bahamas = 15, - - - /// - /// Bahrain - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Bahrain")] - [InternetDomainCode("BH")] - Bahrain = 16, - - - /// - /// Baker Island (United States) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Baker Island (United States)")] - [InternetDomainCode("Unknown")] - BakerIslandUnitedStates = 17, - - - /// - /// Bangladesh - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Bangladesh")] - [InternetDomainCode("BD")] - Bangladesh = 18, - - - /// - /// Barbados - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Barbados")] - [InternetDomainCode("BB")] - Barbados = 19, - - - /// - /// Bassas da India (France) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Bassas da India (France)")] - [InternetDomainCode("Unknown")] - BassasDaIndiaFrance = 20, - - - /// - /// Belarus - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Belarus")] - [InternetDomainCode("BY")] - Belarus = 246, - - - /// - /// Belgium - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Belgium")] - [InternetDomainCode("BE")] - Belgium = 21, - - - /// - /// Belize - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Belize")] - [InternetDomainCode("BZ")] - Belize = 22, - - - /// - /// Benin (aka Dahomey) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Benin (aka Dahomey)")] - [InternetDomainCode("Unknown")] - BeninAkaDahomey = 23, - - - /// - /// Bermuda (United Kingdom) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Bermuda (United Kingdom)")] - [InternetDomainCode("Unknown")] - BermudaUnitedKingdom = 24, - - - /// - /// Bhutan - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Bhutan")] - [InternetDomainCode("BT")] - Bhutan = 25, - - - /// - /// Bolivia - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Bolivia")] - [InternetDomainCode("BO")] - Bolivia = 26, - - - /// - /// Bosnia and Hercegovina - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Bosnia and Hercegovina")] - [InternetDomainCode("Unknown")] - BosniaAndHercegovina = 247, - - - /// - /// Botswana - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Botswana")] - [InternetDomainCode("BW")] - Botswana = 27, - - - /// - /// Bouvet Island (Norway) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Bouvet Island (Norway)")] - [InternetDomainCode("Unknown")] - BouvetIslandNorway = 28, - - - /// - /// Brazil - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Brazil")] - [InternetDomainCode("BR")] - Brazil = 29, - - - /// - /// British Indian Ocean Territory (United Kingdom) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("British Indian Ocean Territory (United Kingdom)")] - [InternetDomainCode("Unknown")] - BritishIndianOceanTerritoryUnitedKingdom = 30, - - - /// - /// British Virgin Islands (United Kingdom) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("British Virgin Islands (United Kingdom)")] - [InternetDomainCode("Unknown")] - BritishVirginIslandsUnitedKingdom = 31, - - - /// - /// Brunei - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Brunei")] - [InternetDomainCode("Unknown")] - Brunei = 32, - - - /// - /// Bulgaria - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Bulgaria")] - [InternetDomainCode("BG")] - Bulgaria = 33, - - - /// - /// Burkina (aka Burkina Faso or Upper Volta) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Burkina (aka Burkina Faso or Upper Volta)")] - [InternetDomainCode("Unknown")] - BurkinaAkaBurkinaFasoOrUpperVolta = 34, - - - /// - /// Burma (Myanmar) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Burma (Myanmar)")] - [InternetDomainCode("Unknown")] - BurmaMyanmar = 35, - - - /// - /// Burundi - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Burundi")] - [InternetDomainCode("BI")] - Burundi = 36, - - - /// - /// Cambodia (aka Kampuchea) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Cambodia (aka Kampuchea)")] - [InternetDomainCode("Unknown")] - CambodiaAkaKampuchea = 37, - - - /// - /// Cameroon - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Cameroon")] - [InternetDomainCode("CM")] - Cameroon = 38, - - - /// - /// Canada - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Canada")] - [InternetDomainCode("CA")] - Canada = 39, - - - /// - /// Cape Verde, Republic of - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Cape Verde, Republic of")] - [InternetDomainCode("Unknown")] - CapeVerdeRepublicOf = 40, - - - /// - /// Cayman Islands (United Kingdom) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Cayman Islands (United Kingdom)")] - [InternetDomainCode("Unknown")] - CaymanIslandsUnitedKingdom = 41, - - - /// - /// Central African Republic - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Central African Republic")] - [InternetDomainCode("CF")] - CentralAfricanRepublic = 42, - - - /// - /// Chad - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Chad")] - [InternetDomainCode("TD")] - Chad = 43, - - - /// - /// Chile - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Chile")] - [InternetDomainCode("CL")] - Chile = 44, - - - /// - /// China, People's Republic of - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("China, People's Republic of")] - [InternetDomainCode("Unknown")] - ChinaPeopleSRepublicOf = 45, - - - /// - /// Christmas Island (Australia) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Christmas Island (Australia)")] - [InternetDomainCode("Unknown")] - ChristmasIslandAustralia = 46, - - - /// - /// Clipperton Island (France) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Clipperton Island (France)")] - [InternetDomainCode("Unknown")] - ClippertonIslandFrance = 248, - - - /// - /// Cocos (Keeling) Islands (Australia) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Cocos (Keeling) Islands (Australia)")] - [InternetDomainCode("Unknown")] - CocosKeelingIslandsAustralia = 47, - - - /// - /// Colombia - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Colombia")] - [InternetDomainCode("CO")] - Colombia = 48, - - - /// - /// Commonwealth of Independent States - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Commonwealth of Independent States")] - [InternetDomainCode("Unknown")] - CommonwealthOfIndependentStates = 222, - - - /// - /// Comoros - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Comoros")] - [InternetDomainCode("KM")] - Comoros = 49, - - - /// - /// Congo, Republic of - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Congo, Republic of")] - [InternetDomainCode("Unknown")] - CongoRepublicOf = 50, - - - /// - /// Cook Islands (New Zealand) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Cook Islands (New Zealand)")] - [InternetDomainCode("Unknown")] - CookIslandsNewZealand = 51, - - - /// - /// Coral Sea Islands (Australia) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Coral Sea Islands (Australia)")] - [InternetDomainCode("Unknown")] - CoralSeaIslandsAustralia = 52, - - - /// - /// Costa Rica - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Costa Rica")] - [InternetDomainCode("CR")] - CostaRica = 53, - - - /// - /// (Cote D'Ivoire (aka Ivory Coast) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("(Cote D'Ivoire (aka Ivory Coast)")] - [InternetDomainCode("Unknown")] - CoteDIvoireAkaIvoryCoast = 107, - - - /// - /// Croatia - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Croatia")] - [InternetDomainCode("Unknown")] - Croatia = 249, - - - /// - /// Cuba - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Cuba")] - [InternetDomainCode("CU")] - Cuba = 54, - - - /// - /// Cyprus - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Cyprus")] - [InternetDomainCode("CY")] - Cyprus = 55, - - - /// - /// Czechoslovakia (separating into Czech Republic and Slovak Republic) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Czechoslovakia (separating into Czech Republic and Slovak Republic)")] - [InternetDomainCode("Unknown")] - CzechoslovakiaSeparatingIntoCzechRepublicAndSlovakRepublic = 56, - - - /// - /// Dahomey (aka Benin) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Dahomey (aka Benin)")] - [InternetDomainCode("Unknown")] - DahomeyAkaBenin = 23, - - - /// - /// Denmark - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Denmark")] - [InternetDomainCode("DK")] - Denmark = 57, - - - /// - /// Djibouti - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Djibouti")] - [InternetDomainCode("DJ")] - Djibouti = 58, - - - /// - /// Dominica - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Dominica")] - [InternetDomainCode("DM")] - Dominica = 59, - - - /// - /// Dominican Republic - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Dominican Republic")] - [InternetDomainCode("DO")] - DominicanRepublic = 60, - - - /// - /// Ecuador - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ecuador")] - [InternetDomainCode("EC")] - Ecuador = 61, - - - /// - /// Egypt - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Egypt")] - [InternetDomainCode("EG")] - Egypt = 62, - - - /// - /// El Salvador - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("El Salvador")] - [InternetDomainCode("SV")] - ElSalvador = 63, - - - /// - /// Equatorial Guinea - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Equatorial Guinea")] - [InternetDomainCode("GQ")] - EquatorialGuinea = 64, - - - /// - /// Estonia - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Estonia")] - [InternetDomainCode("EE")] - Estonia = 250, - - - /// - /// Ethiopia - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ethiopia")] - [InternetDomainCode("ET")] - Ethiopia = 65, - - - /// - /// Europa Island (France) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Europa Island (France)")] - [InternetDomainCode("Unknown")] - EuropaIslandFrance = 66, - - - /// - /// Falkland Islands (aka Islas Malvinas) (United Kingdom) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Falkland Islands (aka Islas Malvinas) (United Kingdom)")] - [InternetDomainCode("Unknown")] - FalklandIslandsAkaIslasMalvinasUnitedKingdom = 67, - - - /// - /// Faroe Islands (Denmark) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Faroe Islands (Denmark)")] - [InternetDomainCode("Unknown")] - FaroeIslandsDenmark = 68, - - - /// - /// Fiji - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fiji")] - [InternetDomainCode("FJ")] - Fiji = 69, - - - /// - /// Finland - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Finland")] - [InternetDomainCode("FI")] - Finland = 70, - - - /// - /// France - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("France")] - [InternetDomainCode("FR")] - France = 71, - - - /// - /// French Guiana (France) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("French Guiana (France)")] - [InternetDomainCode("Unknown")] - FrenchGuianaFrance = 72, - - - /// - /// French Polynesia (France) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("French Polynesia (France)")] - [InternetDomainCode("Unknown")] - FrenchPolynesiaFrance = 73, - - - /// - /// French Southern and Antarctic Islands (France) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("French Southern and Antarctic Islands (France)")] - [InternetDomainCode("Unknown")] - FrenchSouthernAndAntarcticIslandsFrance = 74, - - - /// - /// Gabon - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Gabon")] - [InternetDomainCode("GA")] - Gabon = 75, - - - /// - /// Gambia, The - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Gambia, The")] - [InternetDomainCode("Unknown")] - GambiaThe = 76, - - - /// - /// Gaza Strip (Israel) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Gaza Strip (Israel)")] - [InternetDomainCode("Unknown")] - GazaStripIsrael = 77, - - - /// - /// Georgia - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Georgia")] - [InternetDomainCode("GE")] - Georgia = 251, - - - /// - /// Germany - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Germany")] - [InternetDomainCode("DE")] - Germany = 78, - - - /// - /// Ghana - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ghana")] - [InternetDomainCode("GH")] - Ghana = 79, - - - /// - /// Gibraltar (United Kingdom) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Gibraltar (United Kingdom)")] - [InternetDomainCode("Unknown")] - GibraltarUnitedKingdom = 80, - - - /// - /// Glorioso Islands (France) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Glorioso Islands (France)")] - [InternetDomainCode("Unknown")] - GloriosoIslandsFrance = 81, - - - /// - /// Greece - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Greece")] - [InternetDomainCode("GR")] - Greece = 82, - - - /// - /// Greenland (Denmark) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Greenland (Denmark)")] - [InternetDomainCode("Unknown")] - GreenlandDenmark = 83, - - - /// - /// Grenada - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Grenada")] - [InternetDomainCode("GD")] - Grenada = 84, - - - /// - /// Guadaloupe (France) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Guadaloupe (France)")] - [InternetDomainCode("Unknown")] - GuadaloupeFrance = 85, - - - /// - /// Guam (United States) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Guam (United States)")] - [InternetDomainCode("Unknown")] - GuamUnitedStates = 86, - - - /// - /// Guatemala - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Guatemala")] - [InternetDomainCode("GT")] - Guatemala = 87, - - - /// - /// Guernsey (United Kingdom) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Guernsey (United Kingdom)")] - [InternetDomainCode("Unknown")] - GuernseyUnitedKingdom = 88, - - - /// - /// Guinea - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Guinea")] - [InternetDomainCode("GN")] - Guinea = 89, - - - /// - /// Guinea- Bissau - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Guinea- Bissau")] - [InternetDomainCode("Unknown")] - GuineaBissau = 90, - - - /// - /// Guyana - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Guyana")] - [InternetDomainCode("GY")] - Guyana = 91, - - - /// - /// Haiti - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Haiti")] - [InternetDomainCode("HT")] - Haiti = 92, - - - /// - /// Heard Island and McDonald Islands (Australia) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Heard Island and McDonald Islands (Australia)")] - [InternetDomainCode("Unknown")] - HeardIslandAndMcDonaldIslandsAustralia = 93, - - - /// - /// Honduras - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Honduras")] - [InternetDomainCode("HN")] - Honduras = 94, - - - /// - /// Hong Kong (United Kingdom) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Hong Kong (United Kingdom)")] - [InternetDomainCode("Unknown")] - HongKongUnitedKingdom = 95, - - - /// - /// Howland Island (United States) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Howland Island (United States)")] - [InternetDomainCode("Unknown")] - HowlandIslandUnitedStates = 96, - - - /// - /// Hungary - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Hungary")] - [InternetDomainCode("HU")] - Hungary = 97, - - - /// - /// Iceland - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Iceland")] - [InternetDomainCode("IS")] - Iceland = 98, - - - /// - /// India - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("India")] - [InternetDomainCode("IN")] - India = 99, - - - /// - /// Indonesia - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Indonesia")] - [InternetDomainCode("ID")] - Indonesia = 100, - - - /// - /// Iran - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Iran")] - [InternetDomainCode("IR")] - Iran = 101, - - - /// - /// Iraq - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Iraq")] - [InternetDomainCode("IQ")] - Iraq = 102, - - - /// - /// Ireland - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ireland")] - [InternetDomainCode("IE")] - Ireland = 104, - - - /// - /// Israel - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Israel")] - [InternetDomainCode("IL")] - Israel = 105, - - - /// - /// Italy - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Italy")] - [InternetDomainCode("IT")] - Italy = 106, - - - /// - /// Ivory Coast (aka Cote D'Ivoire) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ivory Coast (aka Cote D'Ivoire)")] - [InternetDomainCode("Unknown")] - IvoryCoastAkaCoteDIvoire = 107, - - - /// - /// Jamaica - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Jamaica")] - [InternetDomainCode("JM")] - Jamaica = 108, - - - /// - /// Jan Mayen (Norway) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Jan Mayen (Norway)")] - [InternetDomainCode("Unknown")] - JanMayenNorway = 109, - - - /// - /// Japan - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Japan")] - [InternetDomainCode("JP")] - Japan = 110, - - - /// - /// Jarvis Island (United States) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Jarvis Island (United States)")] - [InternetDomainCode("Unknown")] - JarvisIslandUnitedStates = 111, - - - /// - /// Jersey (United Kingdom) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Jersey (United Kingdom)")] - [InternetDomainCode("Unknown")] - JerseyUnitedKingdom = 112, - - - /// - /// Johnston Atoll (United States) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Johnston Atoll (United States)")] - [InternetDomainCode("Unknown")] - JohnstonAtollUnitedStates = 113, - - - /// - /// Jordan - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Jordan")] - [InternetDomainCode("JO")] - Jordan = 114, - - - /// - /// Juan de Nova Island - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Juan de Nova Island")] - [InternetDomainCode("Unknown")] - JuanDeNovaIsland = 115, - - - /// - /// Kazakhstan - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Kazakhstan")] - [InternetDomainCode("KZ")] - Kazakhstan = 252, - - - /// - /// Kenya - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Kenya")] - [InternetDomainCode("KE")] - Kenya = 116, - - - /// - /// Kingman Reef (United States) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Kingman Reef (United States)")] - [InternetDomainCode("Unknown")] - KingmanReefUnitedStates = 117, - - - /// - /// Kiribati - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Kiribati")] - [InternetDomainCode("KI")] - Kiribati = 118, - - - /// - /// Korea, Democratic People's Republic of (North) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Korea, Democratic People's Republic of (North)")] - [InternetDomainCode("Unknown")] - KoreaDemocraticPeopleSRepublicOfNorth = 119, - - - /// - /// Korea, Republic of (South) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Korea, Republic of (South)")] - [InternetDomainCode("Unknown")] - KoreaRepublicOfSouth = 120, - - - /// - /// Kuwait - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Kuwait")] - [InternetDomainCode("KW")] - Kuwait = 121, - - - /// - /// Kyrgyzstan - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Kyrgyzstan")] - [InternetDomainCode("KG")] - Kyrgyzstan = 253, - - - /// - /// Laos - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Laos")] - [InternetDomainCode("LA")] - Laos = 122, - - - /// - /// Latvia - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Latvia")] - [InternetDomainCode("LV")] - Latvia = 254, - - - /// - /// Lebanon - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Lebanon")] - [InternetDomainCode("LB")] - Lebanon = 123, - - - /// - /// Lesotho - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Lesotho")] - [InternetDomainCode("LS")] - Lesotho = 124, - - - /// - /// Liberia - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Liberia")] - [InternetDomainCode("LR")] - Liberia = 125, - - - /// - /// Libya - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Libya")] - [InternetDomainCode("LY")] - Libya = 126, - - - /// - /// Liechtenstein - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Liechtenstein")] - [InternetDomainCode("LI")] - Liechtenstein = 127, - - - /// - /// Lithuania - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Lithuania")] - [InternetDomainCode("LT")] - Lithuania = 255, - - - /// - /// Luxembourg - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Luxembourg")] - [InternetDomainCode("LU")] - Luxembourg = 128, - - - /// - /// Macau (Portugal) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Macau (Portugal)")] - [InternetDomainCode("Unknown")] - MacauPortugal = 130, - - - /// - /// Macedonia - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Macedonia")] - [InternetDomainCode("MK")] - Macedonia = 256, - - - /// - /// Madagascar - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Madagascar")] - [InternetDomainCode("MG")] - Madagascar = 129, - - - /// - /// Malawi - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Malawi")] - [InternetDomainCode("MW")] - Malawi = 131, - - - /// - /// Malaysia - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Malaysia")] - [InternetDomainCode("MY")] - Malaysia = 132, - - - /// - /// Maldives - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Maldives")] - [InternetDomainCode("MV")] - Maldives = 133, - - - /// - /// Mali - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mali")] - [InternetDomainCode("ML")] - Mali = 134, - - - /// - /// Malta - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Malta")] - [InternetDomainCode("MT")] - Malta = 135, - - - /// - /// Man, Isle of (United Kingdom) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Man, Isle of (United Kingdom)")] - [InternetDomainCode("Unknown")] - ManIsleOfUnitedKingdom = 136, - - - /// - /// Marshall Islands - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Marshall Islands")] - [InternetDomainCode("MH")] - MarshallIslands = 137, - - - /// - /// Martinique (France) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Martinique (France)")] - [InternetDomainCode("Unknown")] - MartiniqueFrance = 138, - - - /// - /// Mauritania - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mauritania")] - [InternetDomainCode("MR")] - Mauritania = 139, - - - /// - /// Mauritius - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mauritius")] - [InternetDomainCode("MU")] - Mauritius = 140, - - - /// - /// Mayotte (France) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mayotte (France)")] - [InternetDomainCode("Unknown")] - MayotteFrance = 141, - - - /// - /// Mexico - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mexico")] - [InternetDomainCode("MX")] - Mexico = 142, - - - /// - /// Micronesia, Federative States of - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Micronesia, Federative States of")] - [InternetDomainCode("Unknown")] - MicronesiaFederativeStatesOf = 143, - - - /// - /// Midway Islands (United States) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Midway Islands (United States)")] - [InternetDomainCode("Unknown")] - MidwayIslandsUnitedStates = 257, - - - /// - /// Moldova - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Moldova")] - [InternetDomainCode("MD")] - Moldova = 258, - - - /// - /// Monaco - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Monaco")] - [InternetDomainCode("MC")] - Monaco = 144, - - - /// - /// Mongolia - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mongolia")] - [InternetDomainCode("MN")] - Mongolia = 145, - - - /// - /// Montenegro - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Montenegro")] - [InternetDomainCode("Unknown")] - Montenegro = 259, - - - /// - /// Montserrat (United Kingdom) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Montserrat (United Kingdom)")] - [InternetDomainCode("Unknown")] - MontserratUnitedKingdom = 146, - - - /// - /// Morocco - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Morocco")] - [InternetDomainCode("MA")] - Morocco = 147, - - - /// - /// Mozambique - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mozambique")] - [InternetDomainCode("MZ")] - Mozambique = 148, - - - /// - /// Myanmar (aka Burma) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Myanmar (aka Burma)")] - [InternetDomainCode("Unknown")] - MyanmarAkaBurma = 35, - - - /// - /// Namibia (South West Africa) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Namibia (South West Africa)")] - [InternetDomainCode("Unknown")] - NamibiaSouthWestAfrica = 149, - - - /// - /// Nauru - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Nauru")] - [InternetDomainCode("NR")] - Nauru = 150, - - - /// - /// Navassa Island (United States) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Navassa Island (United States)")] - [InternetDomainCode("Unknown")] - NavassaIslandUnitedStates = 151, - - - /// - /// Nepal - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Nepal")] - [InternetDomainCode("NP")] - Nepal = 152, - - - /// - /// Netherlands - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Netherlands")] - [InternetDomainCode("NL")] - Netherlands = 153, - - - /// - /// Netherlands Antilles (Curacao, Bonaire, Saba, Sint Maarten Sint Eustatius) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Netherlands Antilles (Curacao, Bonaire, Saba, Sint Maarten Sint Eustatius)")] - [InternetDomainCode("Unknown")] - NetherlandsAntillesCuracaoBonaireSabaSintMaartenSintEustatius = 154, - - - /// - /// New Caledonia (France) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("New Caledonia (France)")] - [InternetDomainCode("Unknown")] - NewCaledoniaFrance = 155, - - - /// - /// New Zealand - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("New Zealand")] - [InternetDomainCode("Unknown")] - NewZealand = 156, - - - /// - /// Nicaragua - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Nicaragua")] - [InternetDomainCode("NI")] - Nicaragua = 157, - - - /// - /// Niger - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Niger")] - [InternetDomainCode("NE")] - Niger = 158, - - - /// - /// Nigeria - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Nigeria")] - [InternetDomainCode("NG")] - Nigeria = 159, - - - /// - /// Niue (New Zealand) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Niue (New Zealand)")] - [InternetDomainCode("Unknown")] - NiueNewZealand = 160, - - - /// - /// Norfolk Island (Australia) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Norfolk Island (Australia)")] - [InternetDomainCode("Unknown")] - NorfolkIslandAustralia = 161, - - - /// - /// Northern Mariana Islands (United States) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Northern Mariana Islands (United States)")] - [InternetDomainCode("Unknown")] - NorthernMarianaIslandsUnitedStates = 162, - - - /// - /// Norway - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Norway")] - [InternetDomainCode("NO")] - Norway = 163, - - - /// - /// Oman - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Oman")] - [InternetDomainCode("OM")] - Oman = 164, - - - /// - /// Pacific Islands, Trust Territory of the (Palau) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Pacific Islands, Trust Territory of the (Palau)")] - [InternetDomainCode("Unknown")] - PacificIslandsTrustTerritoryOfThePalau = 216, - - - /// - /// Pakistan - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Pakistan")] - [InternetDomainCode("PK")] - Pakistan = 165, - - - /// - /// Palmyra Atoll (United States) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Palmyra Atoll (United States)")] - [InternetDomainCode("Unknown")] - PalmyraAtollUnitedStates = 166, - - - /// - /// Panama - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Panama")] - [InternetDomainCode("PA")] - Panama = 168, - - - /// - /// Papua New Guinea - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Papua New Guinea")] - [InternetDomainCode("PG")] - PapuaNewGuinea = 169, - - - /// - /// Paracel Islands (International - Occupied by China, also claimed by Taiwan and Vietnam) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Paracel Islands (International - Occupied by China, also claimed by Taiwan and Vietnam)")] - [InternetDomainCode("Unknown")] - ParacelIslandsInternationalOccupiedByChinaAlsoClaimedByTaiwanAndVietnam = 170, - - - /// - /// Paraguay - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Paraguay")] - [InternetDomainCode("PY")] - Paraguay = 171, - - - /// - /// Peru - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Peru")] - [InternetDomainCode("PE")] - Peru = 172, - - - /// - /// Philippines - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Philippines")] - [InternetDomainCode("PH")] - Philippines = 173, - - - /// - /// Pitcairn Islands (United Kingdom) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Pitcairn Islands (United Kingdom)")] - [InternetDomainCode("Unknown")] - PitcairnIslandsUnitedKingdom = 174, - - - /// - /// Poland - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Poland")] - [InternetDomainCode("PL")] - Poland = 175, - - - /// - /// Portugal - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Portugal")] - [InternetDomainCode("PT")] - Portugal = 176, - - - /// - /// Puerto Rico (United States) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Puerto Rico (United States)")] - [InternetDomainCode("Unknown")] - PuertoRicoUnitedStates = 177, - - - /// - /// Qatar - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Qatar")] - [InternetDomainCode("QA")] - Qatar = 178, - - - /// - /// Reunion (France) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Reunion (France)")] - [InternetDomainCode("Unknown")] - ReunionFrance = 179, - - - /// - /// Romania - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Romania")] - [InternetDomainCode("RO")] - Romania = 180, - - - /// - /// Russia - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Russia")] - [InternetDomainCode("Unknown")] - Russia = 260, - - - /// - /// Rwanda - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Rwanda")] - [InternetDomainCode("RW")] - Rwanda = 181, - - - /// - /// St. Helena (United Kingdom) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("St. Helena (United Kingdom)")] - [InternetDomainCode("Unknown")] - StHelenaUnitedKingdom = 183, - - - /// - /// St. Lucia - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("St. Lucia")] - [InternetDomainCode("Unknown")] - StLucia = 184, - - - /// - /// St. Vincent and the Grenadines - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("St. Vincent and the Grenadines")] - [InternetDomainCode("Unknown")] - StVincentAndTheGrenadines = 186, - - - /// - /// St. Kitts and Nevis - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("St. Kitts and Nevis")] - [InternetDomainCode("Unknown")] - StKittsAndNevis = 182, - - - /// - /// St. Pierre and Miquelon (France) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("St. Pierre and Miquelon (France)")] - [InternetDomainCode("Unknown")] - StPierreAndMiquelonFrance = 185, - - - /// - /// San Marino - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("San Marino")] - [InternetDomainCode("SM")] - SanMarino = 187, - - - /// - /// Sao Tome and Principe - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sao Tome and Principe")] - [InternetDomainCode("ST")] - SaoTomeAndPrincipe = 188, - - - /// - /// Saudi Arabia - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Saudi Arabia")] - [InternetDomainCode("SA")] - SaudiArabia = 189, - - - /// - /// Senegal - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Senegal")] - [InternetDomainCode("SN")] - Senegal = 190, - - - /// - /// Serbia and Montenegro (Montenegro to separate) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Serbia and Montenegro (Montenegro to separate)")] - [InternetDomainCode("Unknown")] - SerbiaAndMontenegroMontenegroToSeparate = 261, - - - /// - /// Seychelles - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Seychelles")] - [InternetDomainCode("SC")] - Seychelles = 191, - - - /// - /// Sierra Leone - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sierra Leone")] - [InternetDomainCode("SL")] - SierraLeone = 192, - - - /// - /// Singapore - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Singapore")] - [InternetDomainCode("SG")] - Singapore = 193, - - - /// - /// Slovenia - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Slovenia")] - [InternetDomainCode("SI")] - Slovenia = 262, - - - /// - /// Solomon Islands - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Solomon Islands")] - [InternetDomainCode("SB")] - SolomonIslands = 194, - - - /// - /// Somalia - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Somalia")] - [InternetDomainCode("SO")] - Somalia = 195, - - - /// - /// South Africa - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("South Africa")] - [InternetDomainCode("ZA")] - SouthAfrica = 197, - - - /// - /// South Georgia and the South Sandwich Islands (United Kingdom) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("South Georgia and the South Sandwich Islands (United Kingdom)")] - [InternetDomainCode("Unknown")] - SouthGeorgiaAndTheSouthSandwichIslandsUnitedKingdom = 196, - - - /// - /// Spain - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Spain")] - [InternetDomainCode("ES")] - Spain = 198, - - - /// - /// Spratly Islands (International - parts occupied and claimed by China,Malaysia, Philippines, Taiwan, Vietnam) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Spratly Islands (International - parts occupied and claimed by China,Malaysia, Philippines, Taiwan, Vietnam)")] - [InternetDomainCode("Unknown")] - SpratlyIslandsInternationalPartsOccupiedAndClaimedByChinaMalaysiaPhilippinesTaiwanVietnam = 199, - - - /// - /// Sri Lanka - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sri Lanka")] - [InternetDomainCode("LK")] - SriLanka = 200, - - - /// - /// Sudan - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sudan")] - [InternetDomainCode("SD")] - Sudan = 201, - - - /// - /// Suriname - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Suriname")] - [InternetDomainCode("SR")] - Suriname = 202, - - - /// - /// Svalbard (Norway) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Svalbard (Norway)")] - [InternetDomainCode("Unknown")] - SvalbardNorway = 203, - - - /// - /// Swaziland - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Swaziland")] - [InternetDomainCode("SZ")] - Swaziland = 204, - - - /// - /// Sweden - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sweden")] - [InternetDomainCode("SE")] - Sweden = 205, - - - /// - /// Switzerland - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Switzerland")] - [InternetDomainCode("CH")] - Switzerland = 206, - - - /// - /// Syria - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Syria")] - [InternetDomainCode("SY")] - Syria = 207, - - - /// - /// Taiwan - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Taiwan")] - [InternetDomainCode("TW")] - Taiwan = 208, - - - /// - /// Tajikistan - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tajikistan")] - [InternetDomainCode("TJ")] - Tajikistan = 263, - - - /// - /// Tanzania - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tanzania")] - [InternetDomainCode("TZ")] - Tanzania = 209, - - - /// - /// Thailand - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Thailand")] - [InternetDomainCode("TH")] - Thailand = 210, - - - /// - /// Togo - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Togo")] - [InternetDomainCode("TG")] - Togo = 211, - - - /// - /// Tokelau (New Zealand) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tokelau (New Zealand)")] - [InternetDomainCode("Unknown")] - TokelauNewZealand = 212, - - - /// - /// Tonga - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tonga")] - [InternetDomainCode("TO")] - Tonga = 213, - - - /// - /// Trinidad and Tobago - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Trinidad and Tobago")] - [InternetDomainCode("TT")] - TrinidadAndTobago = 214, - - - /// - /// Tromelin Island (France) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tromelin Island (France)")] - [InternetDomainCode("Unknown")] - TromelinIslandFrance = 215, - - - /// - /// Tunisia - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tunisia")] - [InternetDomainCode("TN")] - Tunisia = 217, - - - /// - /// Turkey - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Turkey")] - [InternetDomainCode("TR")] - Turkey = 218, - - - /// - /// Turkmenistan - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Turkmenistan")] - [InternetDomainCode("TM")] - Turkmenistan = 264, - - - /// - /// Turks and Caicos Islands (United Kingdom) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Turks and Caicos Islands (United Kingdom)")] - [InternetDomainCode("Unknown")] - TurksAndCaicosIslandsUnitedKingdom = 219, - - - /// - /// Tuvalu - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tuvalu")] - [InternetDomainCode("TV")] - Tuvalu = 220, - - - /// - /// Uganda - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Uganda")] - [InternetDomainCode("UG")] - Uganda = 221, - - - /// - /// Ukraine - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ukraine")] - [InternetDomainCode("UA")] - Ukraine = 265, - - - /// - /// United Arab Emirates - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("United Arab Emirates")] - [InternetDomainCode("AE")] - UnitedArabEmirates = 223, - - - /// - /// United Kingdom - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("United Kingdom")] - [InternetDomainCode("UK")] - UnitedKingdom = 224, - - - /// - /// United States - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("United States")] - [InternetDomainCode("US")] - UnitedStates = 225, - - - /// - /// Upper Volta (aka Burkina or Burkina Faso) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Upper Volta (aka Burkina or Burkina Faso)")] - [InternetDomainCode("Unknown")] - UpperVoltaAkaBurkinaOrBurkinaFaso = 34, - - - /// - /// Uruguay - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Uruguay")] - [InternetDomainCode("UY")] - Uruguay = 226, - - - /// - /// Uzbekistan - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Uzbekistan")] - [InternetDomainCode("UZ")] - Uzbekistan = 266, - - - /// - /// Vanuatu - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Vanuatu")] - [InternetDomainCode("VU")] - Vanuatu = 227, - - - /// - /// Vatican City (Holy See) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Vatican City (Holy See)")] - [InternetDomainCode("Unknown")] - VaticanCityHolySee = 228, - - - /// - /// Venezuela - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Venezuela")] - [InternetDomainCode("VE")] - Venezuela = 229, - - - /// - /// Vietnam - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Vietnam")] - [InternetDomainCode("Unknown")] - Vietnam = 230, - - - /// - /// Virgin Islands (United States) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Virgin Islands (United States)")] - [InternetDomainCode("Unknown")] - VirginIslandsUnitedStates = 231, - - - /// - /// Wake Island (United States) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Wake Island (United States)")] - [InternetDomainCode("Unknown")] - WakeIslandUnitedStates = 232, - - - /// - /// Wallis and Futuna (France) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Wallis and Futuna (France)")] - [InternetDomainCode("Unknown")] - WallisAndFutunaFrance = 233, - - - /// - /// West Bank (Israel) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("West Bank (Israel)")] - [InternetDomainCode("Unknown")] - WestBankIsrael = 235, - - - /// - /// Western Sahara - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Western Sahara")] - [InternetDomainCode("EH")] - WesternSahara = 234, - - - /// - /// Western Samoa - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Western Samoa")] - [InternetDomainCode("Unknown")] - WesternSamoa = 236, - - - /// - /// Yemen - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Yemen")] - [InternetDomainCode("YE")] - Yemen = 237, - - - /// - /// Serbia and Montenegro - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Serbia and Montenegro")] - [InternetDomainCode("CS")] - SerbiaAndMontenegro = 240, - - - /// - /// Zaire - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Zaire")] - [InternetDomainCode("Unknown")] - Zaire = 241, - - - /// - /// Zambia - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Zambia")] - [InternetDomainCode("ZM")] - Zambia = 242, - - - /// - /// Zimbabwe - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Zimbabwe")] - [InternetDomainCode("ZW")] - Zimbabwe = 243 - - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; +using OpenDis.Core; + +namespace OpenDis.Enumerations +{ + /// + /// Enumeration values for Country (es.type.country, Country, + /// section 4.2.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum Country : ushort + { + /// + /// Other + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other")] + [InternetDomainCode("Unknown")] + Other = 0, + + + /// + /// Afghanistan + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Afghanistan")] + [InternetDomainCode("AF")] + Afghanistan = 1, + + + /// + /// Albania + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Albania")] + [InternetDomainCode("AL")] + Albania = 2, + + + /// + /// Algeria + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Algeria")] + [InternetDomainCode("DZ")] + Algeria = 3, + + + /// + /// American Samoa (United States) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("American Samoa (United States)")] + [InternetDomainCode("Unknown")] + AmericanSamoaUnitedStates = 4, + + + /// + /// Andorra + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Andorra")] + [InternetDomainCode("AD")] + Andorra = 5, + + + /// + /// Angola + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Angola")] + [InternetDomainCode("AO")] + Angola = 6, + + + /// + /// Anguilla + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Anguilla")] + [InternetDomainCode("AI")] + Anguilla = 7, + + + /// + /// Antarctica (International) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Antarctica (International)")] + [InternetDomainCode("Unknown")] + AntarcticaInternational = 8, + + + /// + /// Antigua and Barbuda + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Antigua and Barbuda")] + [InternetDomainCode("AG")] + AntiguaAndBarbuda = 9, + + + /// + /// Argentina + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Argentina")] + [InternetDomainCode("AR")] + Argentina = 10, + + + /// + /// Armenia + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Armenia")] + [InternetDomainCode("AM")] + Armenia = 244, + + + /// + /// Aruba + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Aruba")] + [InternetDomainCode("AW")] + Aruba = 11, + + + /// + /// Ashmore and Cartier Islands (Australia) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ashmore and Cartier Islands (Australia)")] + [InternetDomainCode("Unknown")] + AshmoreAndCartierIslandsAustralia = 12, + + + /// + /// Australia + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Australia")] + [InternetDomainCode("AU")] + Australia = 13, + + + /// + /// Austria + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Austria")] + [InternetDomainCode("AT")] + Austria = 14, + + + /// + /// Azerbaijan + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Azerbaijan")] + [InternetDomainCode("AZ")] + Azerbaijan = 245, + + + /// + /// Bahamas + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Bahamas")] + [InternetDomainCode("BS")] + Bahamas = 15, + + + /// + /// Bahrain + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Bahrain")] + [InternetDomainCode("BH")] + Bahrain = 16, + + + /// + /// Baker Island (United States) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Baker Island (United States)")] + [InternetDomainCode("Unknown")] + BakerIslandUnitedStates = 17, + + + /// + /// Bangladesh + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Bangladesh")] + [InternetDomainCode("BD")] + Bangladesh = 18, + + + /// + /// Barbados + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Barbados")] + [InternetDomainCode("BB")] + Barbados = 19, + + + /// + /// Bassas da India (France) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Bassas da India (France)")] + [InternetDomainCode("Unknown")] + BassasDaIndiaFrance = 20, + + + /// + /// Belarus + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Belarus")] + [InternetDomainCode("BY")] + Belarus = 246, + + + /// + /// Belgium + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Belgium")] + [InternetDomainCode("BE")] + Belgium = 21, + + + /// + /// Belize + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Belize")] + [InternetDomainCode("BZ")] + Belize = 22, + + + /// + /// Benin (aka Dahomey) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Benin (aka Dahomey)")] + [InternetDomainCode("Unknown")] + BeninAkaDahomey = 23, + + + /// + /// Bermuda (United Kingdom) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Bermuda (United Kingdom)")] + [InternetDomainCode("Unknown")] + BermudaUnitedKingdom = 24, + + + /// + /// Bhutan + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Bhutan")] + [InternetDomainCode("BT")] + Bhutan = 25, + + + /// + /// Bolivia + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Bolivia")] + [InternetDomainCode("BO")] + Bolivia = 26, + + + /// + /// Bosnia and Hercegovina + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Bosnia and Hercegovina")] + [InternetDomainCode("Unknown")] + BosniaAndHercegovina = 247, + + + /// + /// Botswana + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Botswana")] + [InternetDomainCode("BW")] + Botswana = 27, + + + /// + /// Bouvet Island (Norway) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Bouvet Island (Norway)")] + [InternetDomainCode("Unknown")] + BouvetIslandNorway = 28, + + + /// + /// Brazil + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Brazil")] + [InternetDomainCode("BR")] + Brazil = 29, + + + /// + /// British Indian Ocean Territory (United Kingdom) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("British Indian Ocean Territory (United Kingdom)")] + [InternetDomainCode("Unknown")] + BritishIndianOceanTerritoryUnitedKingdom = 30, + + + /// + /// British Virgin Islands (United Kingdom) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("British Virgin Islands (United Kingdom)")] + [InternetDomainCode("Unknown")] + BritishVirginIslandsUnitedKingdom = 31, + + + /// + /// Brunei + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Brunei")] + [InternetDomainCode("Unknown")] + Brunei = 32, + + + /// + /// Bulgaria + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Bulgaria")] + [InternetDomainCode("BG")] + Bulgaria = 33, + + + /// + /// Burkina (aka Burkina Faso or Upper Volta) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Burkina (aka Burkina Faso or Upper Volta)")] + [InternetDomainCode("Unknown")] + BurkinaAkaBurkinaFasoOrUpperVolta = 34, + + + /// + /// Burma (Myanmar) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Burma (Myanmar)")] + [InternetDomainCode("Unknown")] + BurmaMyanmar = 35, + + + /// + /// Burundi + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Burundi")] + [InternetDomainCode("BI")] + Burundi = 36, + + + /// + /// Cambodia (aka Kampuchea) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Cambodia (aka Kampuchea)")] + [InternetDomainCode("Unknown")] + CambodiaAkaKampuchea = 37, + + + /// + /// Cameroon + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Cameroon")] + [InternetDomainCode("CM")] + Cameroon = 38, + + + /// + /// Canada + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Canada")] + [InternetDomainCode("CA")] + Canada = 39, + + + /// + /// Cape Verde, Republic of + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Cape Verde, Republic of")] + [InternetDomainCode("Unknown")] + CapeVerdeRepublicOf = 40, + + + /// + /// Cayman Islands (United Kingdom) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Cayman Islands (United Kingdom)")] + [InternetDomainCode("Unknown")] + CaymanIslandsUnitedKingdom = 41, + + + /// + /// Central African Republic + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Central African Republic")] + [InternetDomainCode("CF")] + CentralAfricanRepublic = 42, + + + /// + /// Chad + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Chad")] + [InternetDomainCode("TD")] + Chad = 43, + + + /// + /// Chile + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Chile")] + [InternetDomainCode("CL")] + Chile = 44, + + + /// + /// China, People's Republic of + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("China, People's Republic of")] + [InternetDomainCode("Unknown")] + ChinaPeopleSRepublicOf = 45, + + + /// + /// Christmas Island (Australia) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Christmas Island (Australia)")] + [InternetDomainCode("Unknown")] + ChristmasIslandAustralia = 46, + + + /// + /// Clipperton Island (France) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Clipperton Island (France)")] + [InternetDomainCode("Unknown")] + ClippertonIslandFrance = 248, + + + /// + /// Cocos (Keeling) Islands (Australia) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Cocos (Keeling) Islands (Australia)")] + [InternetDomainCode("Unknown")] + CocosKeelingIslandsAustralia = 47, + + + /// + /// Colombia + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Colombia")] + [InternetDomainCode("CO")] + Colombia = 48, + + + /// + /// Commonwealth of Independent States + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Commonwealth of Independent States")] + [InternetDomainCode("Unknown")] + CommonwealthOfIndependentStates = 222, + + + /// + /// Comoros + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Comoros")] + [InternetDomainCode("KM")] + Comoros = 49, + + + /// + /// Congo, Republic of + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Congo, Republic of")] + [InternetDomainCode("Unknown")] + CongoRepublicOf = 50, + + + /// + /// Cook Islands (New Zealand) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Cook Islands (New Zealand)")] + [InternetDomainCode("Unknown")] + CookIslandsNewZealand = 51, + + + /// + /// Coral Sea Islands (Australia) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Coral Sea Islands (Australia)")] + [InternetDomainCode("Unknown")] + CoralSeaIslandsAustralia = 52, + + + /// + /// Costa Rica + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Costa Rica")] + [InternetDomainCode("CR")] + CostaRica = 53, + + + /// + /// (Cote D'Ivoire (aka Ivory Coast) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("(Cote D'Ivoire (aka Ivory Coast)")] + [InternetDomainCode("Unknown")] + CoteDIvoireAkaIvoryCoast = 107, + + + /// + /// Croatia + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Croatia")] + [InternetDomainCode("Unknown")] + Croatia = 249, + + + /// + /// Cuba + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Cuba")] + [InternetDomainCode("CU")] + Cuba = 54, + + + /// + /// Cyprus + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Cyprus")] + [InternetDomainCode("CY")] + Cyprus = 55, + + + /// + /// Czechoslovakia (separating into Czech Republic and Slovak Republic) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Czechoslovakia (separating into Czech Republic and Slovak Republic)")] + [InternetDomainCode("Unknown")] + CzechoslovakiaSeparatingIntoCzechRepublicAndSlovakRepublic = 56, + + + /// + /// Dahomey (aka Benin) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Dahomey (aka Benin)")] + [InternetDomainCode("Unknown")] + DahomeyAkaBenin = 23, + + + /// + /// Denmark + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Denmark")] + [InternetDomainCode("DK")] + Denmark = 57, + + + /// + /// Djibouti + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Djibouti")] + [InternetDomainCode("DJ")] + Djibouti = 58, + + + /// + /// Dominica + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Dominica")] + [InternetDomainCode("DM")] + Dominica = 59, + + + /// + /// Dominican Republic + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Dominican Republic")] + [InternetDomainCode("DO")] + DominicanRepublic = 60, + + + /// + /// Ecuador + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ecuador")] + [InternetDomainCode("EC")] + Ecuador = 61, + + + /// + /// Egypt + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Egypt")] + [InternetDomainCode("EG")] + Egypt = 62, + + + /// + /// El Salvador + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("El Salvador")] + [InternetDomainCode("SV")] + ElSalvador = 63, + + + /// + /// Equatorial Guinea + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Equatorial Guinea")] + [InternetDomainCode("GQ")] + EquatorialGuinea = 64, + + + /// + /// Estonia + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Estonia")] + [InternetDomainCode("EE")] + Estonia = 250, + + + /// + /// Ethiopia + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ethiopia")] + [InternetDomainCode("ET")] + Ethiopia = 65, + + + /// + /// Europa Island (France) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Europa Island (France)")] + [InternetDomainCode("Unknown")] + EuropaIslandFrance = 66, + + + /// + /// Falkland Islands (aka Islas Malvinas) (United Kingdom) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Falkland Islands (aka Islas Malvinas) (United Kingdom)")] + [InternetDomainCode("Unknown")] + FalklandIslandsAkaIslasMalvinasUnitedKingdom = 67, + + + /// + /// Faroe Islands (Denmark) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Faroe Islands (Denmark)")] + [InternetDomainCode("Unknown")] + FaroeIslandsDenmark = 68, + + + /// + /// Fiji + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fiji")] + [InternetDomainCode("FJ")] + Fiji = 69, + + + /// + /// Finland + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Finland")] + [InternetDomainCode("FI")] + Finland = 70, + + + /// + /// France + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("France")] + [InternetDomainCode("FR")] + France = 71, + + + /// + /// French Guiana (France) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("French Guiana (France)")] + [InternetDomainCode("Unknown")] + FrenchGuianaFrance = 72, + + + /// + /// French Polynesia (France) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("French Polynesia (France)")] + [InternetDomainCode("Unknown")] + FrenchPolynesiaFrance = 73, + + + /// + /// French Southern and Antarctic Islands (France) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("French Southern and Antarctic Islands (France)")] + [InternetDomainCode("Unknown")] + FrenchSouthernAndAntarcticIslandsFrance = 74, + + + /// + /// Gabon + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Gabon")] + [InternetDomainCode("GA")] + Gabon = 75, + + + /// + /// Gambia, The + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Gambia, The")] + [InternetDomainCode("Unknown")] + GambiaThe = 76, + + + /// + /// Gaza Strip (Israel) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Gaza Strip (Israel)")] + [InternetDomainCode("Unknown")] + GazaStripIsrael = 77, + + + /// + /// Georgia + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Georgia")] + [InternetDomainCode("GE")] + Georgia = 251, + + + /// + /// Germany + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Germany")] + [InternetDomainCode("DE")] + Germany = 78, + + + /// + /// Ghana + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ghana")] + [InternetDomainCode("GH")] + Ghana = 79, + + + /// + /// Gibraltar (United Kingdom) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Gibraltar (United Kingdom)")] + [InternetDomainCode("Unknown")] + GibraltarUnitedKingdom = 80, + + + /// + /// Glorioso Islands (France) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Glorioso Islands (France)")] + [InternetDomainCode("Unknown")] + GloriosoIslandsFrance = 81, + + + /// + /// Greece + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Greece")] + [InternetDomainCode("GR")] + Greece = 82, + + + /// + /// Greenland (Denmark) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Greenland (Denmark)")] + [InternetDomainCode("Unknown")] + GreenlandDenmark = 83, + + + /// + /// Grenada + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Grenada")] + [InternetDomainCode("GD")] + Grenada = 84, + + + /// + /// Guadaloupe (France) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Guadaloupe (France)")] + [InternetDomainCode("Unknown")] + GuadaloupeFrance = 85, + + + /// + /// Guam (United States) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Guam (United States)")] + [InternetDomainCode("Unknown")] + GuamUnitedStates = 86, + + + /// + /// Guatemala + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Guatemala")] + [InternetDomainCode("GT")] + Guatemala = 87, + + + /// + /// Guernsey (United Kingdom) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Guernsey (United Kingdom)")] + [InternetDomainCode("Unknown")] + GuernseyUnitedKingdom = 88, + + + /// + /// Guinea + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Guinea")] + [InternetDomainCode("GN")] + Guinea = 89, + + + /// + /// Guinea- Bissau + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Guinea- Bissau")] + [InternetDomainCode("Unknown")] + GuineaBissau = 90, + + + /// + /// Guyana + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Guyana")] + [InternetDomainCode("GY")] + Guyana = 91, + + + /// + /// Haiti + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Haiti")] + [InternetDomainCode("HT")] + Haiti = 92, + + + /// + /// Heard Island and McDonald Islands (Australia) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Heard Island and McDonald Islands (Australia)")] + [InternetDomainCode("Unknown")] + HeardIslandAndMcDonaldIslandsAustralia = 93, + + + /// + /// Honduras + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Honduras")] + [InternetDomainCode("HN")] + Honduras = 94, + + + /// + /// Hong Kong (United Kingdom) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Hong Kong (United Kingdom)")] + [InternetDomainCode("Unknown")] + HongKongUnitedKingdom = 95, + + + /// + /// Howland Island (United States) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Howland Island (United States)")] + [InternetDomainCode("Unknown")] + HowlandIslandUnitedStates = 96, + + + /// + /// Hungary + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Hungary")] + [InternetDomainCode("HU")] + Hungary = 97, + + + /// + /// Iceland + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Iceland")] + [InternetDomainCode("IS")] + Iceland = 98, + + + /// + /// India + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("India")] + [InternetDomainCode("IN")] + India = 99, + + + /// + /// Indonesia + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Indonesia")] + [InternetDomainCode("ID")] + Indonesia = 100, + + + /// + /// Iran + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Iran")] + [InternetDomainCode("IR")] + Iran = 101, + + + /// + /// Iraq + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Iraq")] + [InternetDomainCode("IQ")] + Iraq = 102, + + + /// + /// Ireland + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ireland")] + [InternetDomainCode("IE")] + Ireland = 104, + + + /// + /// Israel + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Israel")] + [InternetDomainCode("IL")] + Israel = 105, + + + /// + /// Italy + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Italy")] + [InternetDomainCode("IT")] + Italy = 106, + + + /// + /// Ivory Coast (aka Cote D'Ivoire) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ivory Coast (aka Cote D'Ivoire)")] + [InternetDomainCode("Unknown")] + IvoryCoastAkaCoteDIvoire = 107, + + + /// + /// Jamaica + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Jamaica")] + [InternetDomainCode("JM")] + Jamaica = 108, + + + /// + /// Jan Mayen (Norway) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Jan Mayen (Norway)")] + [InternetDomainCode("Unknown")] + JanMayenNorway = 109, + + + /// + /// Japan + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Japan")] + [InternetDomainCode("JP")] + Japan = 110, + + + /// + /// Jarvis Island (United States) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Jarvis Island (United States)")] + [InternetDomainCode("Unknown")] + JarvisIslandUnitedStates = 111, + + + /// + /// Jersey (United Kingdom) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Jersey (United Kingdom)")] + [InternetDomainCode("Unknown")] + JerseyUnitedKingdom = 112, + + + /// + /// Johnston Atoll (United States) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Johnston Atoll (United States)")] + [InternetDomainCode("Unknown")] + JohnstonAtollUnitedStates = 113, + + + /// + /// Jordan + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Jordan")] + [InternetDomainCode("JO")] + Jordan = 114, + + + /// + /// Juan de Nova Island + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Juan de Nova Island")] + [InternetDomainCode("Unknown")] + JuanDeNovaIsland = 115, + + + /// + /// Kazakhstan + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Kazakhstan")] + [InternetDomainCode("KZ")] + Kazakhstan = 252, + + + /// + /// Kenya + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Kenya")] + [InternetDomainCode("KE")] + Kenya = 116, + + + /// + /// Kingman Reef (United States) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Kingman Reef (United States)")] + [InternetDomainCode("Unknown")] + KingmanReefUnitedStates = 117, + + + /// + /// Kiribati + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Kiribati")] + [InternetDomainCode("KI")] + Kiribati = 118, + + + /// + /// Korea, Democratic People's Republic of (North) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Korea, Democratic People's Republic of (North)")] + [InternetDomainCode("Unknown")] + KoreaDemocraticPeopleSRepublicOfNorth = 119, + + + /// + /// Korea, Republic of (South) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Korea, Republic of (South)")] + [InternetDomainCode("Unknown")] + KoreaRepublicOfSouth = 120, + + + /// + /// Kuwait + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Kuwait")] + [InternetDomainCode("KW")] + Kuwait = 121, + + + /// + /// Kyrgyzstan + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Kyrgyzstan")] + [InternetDomainCode("KG")] + Kyrgyzstan = 253, + + + /// + /// Laos + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Laos")] + [InternetDomainCode("LA")] + Laos = 122, + + + /// + /// Latvia + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Latvia")] + [InternetDomainCode("LV")] + Latvia = 254, + + + /// + /// Lebanon + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Lebanon")] + [InternetDomainCode("LB")] + Lebanon = 123, + + + /// + /// Lesotho + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Lesotho")] + [InternetDomainCode("LS")] + Lesotho = 124, + + + /// + /// Liberia + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Liberia")] + [InternetDomainCode("LR")] + Liberia = 125, + + + /// + /// Libya + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Libya")] + [InternetDomainCode("LY")] + Libya = 126, + + + /// + /// Liechtenstein + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Liechtenstein")] + [InternetDomainCode("LI")] + Liechtenstein = 127, + + + /// + /// Lithuania + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Lithuania")] + [InternetDomainCode("LT")] + Lithuania = 255, + + + /// + /// Luxembourg + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Luxembourg")] + [InternetDomainCode("LU")] + Luxembourg = 128, + + + /// + /// Macau (Portugal) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Macau (Portugal)")] + [InternetDomainCode("Unknown")] + MacauPortugal = 130, + + + /// + /// Macedonia + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Macedonia")] + [InternetDomainCode("MK")] + Macedonia = 256, + + + /// + /// Madagascar + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Madagascar")] + [InternetDomainCode("MG")] + Madagascar = 129, + + + /// + /// Malawi + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Malawi")] + [InternetDomainCode("MW")] + Malawi = 131, + + + /// + /// Malaysia + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Malaysia")] + [InternetDomainCode("MY")] + Malaysia = 132, + + + /// + /// Maldives + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Maldives")] + [InternetDomainCode("MV")] + Maldives = 133, + + + /// + /// Mali + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mali")] + [InternetDomainCode("ML")] + Mali = 134, + + + /// + /// Malta + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Malta")] + [InternetDomainCode("MT")] + Malta = 135, + + + /// + /// Man, Isle of (United Kingdom) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Man, Isle of (United Kingdom)")] + [InternetDomainCode("Unknown")] + ManIsleOfUnitedKingdom = 136, + + + /// + /// Marshall Islands + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Marshall Islands")] + [InternetDomainCode("MH")] + MarshallIslands = 137, + + + /// + /// Martinique (France) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Martinique (France)")] + [InternetDomainCode("Unknown")] + MartiniqueFrance = 138, + + + /// + /// Mauritania + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mauritania")] + [InternetDomainCode("MR")] + Mauritania = 139, + + + /// + /// Mauritius + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mauritius")] + [InternetDomainCode("MU")] + Mauritius = 140, + + + /// + /// Mayotte (France) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mayotte (France)")] + [InternetDomainCode("Unknown")] + MayotteFrance = 141, + + + /// + /// Mexico + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mexico")] + [InternetDomainCode("MX")] + Mexico = 142, + + + /// + /// Micronesia, Federative States of + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Micronesia, Federative States of")] + [InternetDomainCode("Unknown")] + MicronesiaFederativeStatesOf = 143, + + + /// + /// Midway Islands (United States) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Midway Islands (United States)")] + [InternetDomainCode("Unknown")] + MidwayIslandsUnitedStates = 257, + + + /// + /// Moldova + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Moldova")] + [InternetDomainCode("MD")] + Moldova = 258, + + + /// + /// Monaco + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Monaco")] + [InternetDomainCode("MC")] + Monaco = 144, + + + /// + /// Mongolia + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mongolia")] + [InternetDomainCode("MN")] + Mongolia = 145, + + + /// + /// Montenegro + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Montenegro")] + [InternetDomainCode("Unknown")] + Montenegro = 259, + + + /// + /// Montserrat (United Kingdom) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Montserrat (United Kingdom)")] + [InternetDomainCode("Unknown")] + MontserratUnitedKingdom = 146, + + + /// + /// Morocco + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Morocco")] + [InternetDomainCode("MA")] + Morocco = 147, + + + /// + /// Mozambique + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mozambique")] + [InternetDomainCode("MZ")] + Mozambique = 148, + + + /// + /// Myanmar (aka Burma) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Myanmar (aka Burma)")] + [InternetDomainCode("Unknown")] + MyanmarAkaBurma = 35, + + + /// + /// Namibia (South West Africa) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Namibia (South West Africa)")] + [InternetDomainCode("Unknown")] + NamibiaSouthWestAfrica = 149, + + + /// + /// Nauru + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Nauru")] + [InternetDomainCode("NR")] + Nauru = 150, + + + /// + /// Navassa Island (United States) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Navassa Island (United States)")] + [InternetDomainCode("Unknown")] + NavassaIslandUnitedStates = 151, + + + /// + /// Nepal + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Nepal")] + [InternetDomainCode("NP")] + Nepal = 152, + + + /// + /// Netherlands + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Netherlands")] + [InternetDomainCode("NL")] + Netherlands = 153, + + + /// + /// Netherlands Antilles (Curacao, Bonaire, Saba, Sint Maarten Sint Eustatius) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Netherlands Antilles (Curacao, Bonaire, Saba, Sint Maarten Sint Eustatius)")] + [InternetDomainCode("Unknown")] + NetherlandsAntillesCuracaoBonaireSabaSintMaartenSintEustatius = 154, + + + /// + /// New Caledonia (France) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("New Caledonia (France)")] + [InternetDomainCode("Unknown")] + NewCaledoniaFrance = 155, + + + /// + /// New Zealand + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("New Zealand")] + [InternetDomainCode("Unknown")] + NewZealand = 156, + + + /// + /// Nicaragua + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Nicaragua")] + [InternetDomainCode("NI")] + Nicaragua = 157, + + + /// + /// Niger + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Niger")] + [InternetDomainCode("NE")] + Niger = 158, + + + /// + /// Nigeria + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Nigeria")] + [InternetDomainCode("NG")] + Nigeria = 159, + + + /// + /// Niue (New Zealand) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Niue (New Zealand)")] + [InternetDomainCode("Unknown")] + NiueNewZealand = 160, + + + /// + /// Norfolk Island (Australia) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Norfolk Island (Australia)")] + [InternetDomainCode("Unknown")] + NorfolkIslandAustralia = 161, + + + /// + /// Northern Mariana Islands (United States) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Northern Mariana Islands (United States)")] + [InternetDomainCode("Unknown")] + NorthernMarianaIslandsUnitedStates = 162, + + + /// + /// Norway + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Norway")] + [InternetDomainCode("NO")] + Norway = 163, + + + /// + /// Oman + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Oman")] + [InternetDomainCode("OM")] + Oman = 164, + + + /// + /// Pacific Islands, Trust Territory of the (Palau) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Pacific Islands, Trust Territory of the (Palau)")] + [InternetDomainCode("Unknown")] + PacificIslandsTrustTerritoryOfThePalau = 216, + + + /// + /// Pakistan + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Pakistan")] + [InternetDomainCode("PK")] + Pakistan = 165, + + + /// + /// Palmyra Atoll (United States) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Palmyra Atoll (United States)")] + [InternetDomainCode("Unknown")] + PalmyraAtollUnitedStates = 166, + + + /// + /// Panama + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Panama")] + [InternetDomainCode("PA")] + Panama = 168, + + + /// + /// Papua New Guinea + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Papua New Guinea")] + [InternetDomainCode("PG")] + PapuaNewGuinea = 169, + + + /// + /// Paracel Islands (International - Occupied by China, also claimed by Taiwan and Vietnam) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Paracel Islands (International - Occupied by China, also claimed by Taiwan and Vietnam)")] + [InternetDomainCode("Unknown")] + ParacelIslandsInternationalOccupiedByChinaAlsoClaimedByTaiwanAndVietnam = 170, + + + /// + /// Paraguay + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Paraguay")] + [InternetDomainCode("PY")] + Paraguay = 171, + + + /// + /// Peru + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Peru")] + [InternetDomainCode("PE")] + Peru = 172, + + + /// + /// Philippines + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Philippines")] + [InternetDomainCode("PH")] + Philippines = 173, + + + /// + /// Pitcairn Islands (United Kingdom) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Pitcairn Islands (United Kingdom)")] + [InternetDomainCode("Unknown")] + PitcairnIslandsUnitedKingdom = 174, + + + /// + /// Poland + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Poland")] + [InternetDomainCode("PL")] + Poland = 175, + + + /// + /// Portugal + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Portugal")] + [InternetDomainCode("PT")] + Portugal = 176, + + + /// + /// Puerto Rico (United States) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Puerto Rico (United States)")] + [InternetDomainCode("Unknown")] + PuertoRicoUnitedStates = 177, + + + /// + /// Qatar + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Qatar")] + [InternetDomainCode("QA")] + Qatar = 178, + + + /// + /// Reunion (France) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Reunion (France)")] + [InternetDomainCode("Unknown")] + ReunionFrance = 179, + + + /// + /// Romania + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Romania")] + [InternetDomainCode("RO")] + Romania = 180, + + + /// + /// Russia + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Russia")] + [InternetDomainCode("Unknown")] + Russia = 260, + + + /// + /// Rwanda + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Rwanda")] + [InternetDomainCode("RW")] + Rwanda = 181, + + + /// + /// St. Helena (United Kingdom) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("St. Helena (United Kingdom)")] + [InternetDomainCode("Unknown")] + StHelenaUnitedKingdom = 183, + + + /// + /// St. Lucia + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("St. Lucia")] + [InternetDomainCode("Unknown")] + StLucia = 184, + + + /// + /// St. Vincent and the Grenadines + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("St. Vincent and the Grenadines")] + [InternetDomainCode("Unknown")] + StVincentAndTheGrenadines = 186, + + + /// + /// St. Kitts and Nevis + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("St. Kitts and Nevis")] + [InternetDomainCode("Unknown")] + StKittsAndNevis = 182, + + + /// + /// St. Pierre and Miquelon (France) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("St. Pierre and Miquelon (France)")] + [InternetDomainCode("Unknown")] + StPierreAndMiquelonFrance = 185, + + + /// + /// San Marino + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("San Marino")] + [InternetDomainCode("SM")] + SanMarino = 187, + + + /// + /// Sao Tome and Principe + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sao Tome and Principe")] + [InternetDomainCode("ST")] + SaoTomeAndPrincipe = 188, + + + /// + /// Saudi Arabia + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Saudi Arabia")] + [InternetDomainCode("SA")] + SaudiArabia = 189, + + + /// + /// Senegal + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Senegal")] + [InternetDomainCode("SN")] + Senegal = 190, + + + /// + /// Serbia and Montenegro (Montenegro to separate) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Serbia and Montenegro (Montenegro to separate)")] + [InternetDomainCode("Unknown")] + SerbiaAndMontenegroMontenegroToSeparate = 261, + + + /// + /// Seychelles + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Seychelles")] + [InternetDomainCode("SC")] + Seychelles = 191, + + + /// + /// Sierra Leone + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sierra Leone")] + [InternetDomainCode("SL")] + SierraLeone = 192, + + + /// + /// Singapore + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Singapore")] + [InternetDomainCode("SG")] + Singapore = 193, + + + /// + /// Slovenia + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Slovenia")] + [InternetDomainCode("SI")] + Slovenia = 262, + + + /// + /// Solomon Islands + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Solomon Islands")] + [InternetDomainCode("SB")] + SolomonIslands = 194, + + + /// + /// Somalia + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Somalia")] + [InternetDomainCode("SO")] + Somalia = 195, + + + /// + /// South Africa + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("South Africa")] + [InternetDomainCode("ZA")] + SouthAfrica = 197, + + + /// + /// South Georgia and the South Sandwich Islands (United Kingdom) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("South Georgia and the South Sandwich Islands (United Kingdom)")] + [InternetDomainCode("Unknown")] + SouthGeorgiaAndTheSouthSandwichIslandsUnitedKingdom = 196, + + + /// + /// Spain + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Spain")] + [InternetDomainCode("ES")] + Spain = 198, + + + /// + /// Spratly Islands (International - parts occupied and claimed by China,Malaysia, Philippines, Taiwan, Vietnam) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Spratly Islands (International - parts occupied and claimed by China,Malaysia, Philippines, Taiwan, Vietnam)")] + [InternetDomainCode("Unknown")] + SpratlyIslandsInternationalPartsOccupiedAndClaimedByChinaMalaysiaPhilippinesTaiwanVietnam = 199, + + + /// + /// Sri Lanka + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sri Lanka")] + [InternetDomainCode("LK")] + SriLanka = 200, + + + /// + /// Sudan + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sudan")] + [InternetDomainCode("SD")] + Sudan = 201, + + + /// + /// Suriname + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Suriname")] + [InternetDomainCode("SR")] + Suriname = 202, + + + /// + /// Svalbard (Norway) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Svalbard (Norway)")] + [InternetDomainCode("Unknown")] + SvalbardNorway = 203, + + + /// + /// Swaziland + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Swaziland")] + [InternetDomainCode("SZ")] + Swaziland = 204, + + + /// + /// Sweden + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sweden")] + [InternetDomainCode("SE")] + Sweden = 205, + + + /// + /// Switzerland + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Switzerland")] + [InternetDomainCode("CH")] + Switzerland = 206, + + + /// + /// Syria + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Syria")] + [InternetDomainCode("SY")] + Syria = 207, + + + /// + /// Taiwan + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Taiwan")] + [InternetDomainCode("TW")] + Taiwan = 208, + + + /// + /// Tajikistan + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tajikistan")] + [InternetDomainCode("TJ")] + Tajikistan = 263, + + + /// + /// Tanzania + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tanzania")] + [InternetDomainCode("TZ")] + Tanzania = 209, + + + /// + /// Thailand + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Thailand")] + [InternetDomainCode("TH")] + Thailand = 210, + + + /// + /// Togo + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Togo")] + [InternetDomainCode("TG")] + Togo = 211, + + + /// + /// Tokelau (New Zealand) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tokelau (New Zealand)")] + [InternetDomainCode("Unknown")] + TokelauNewZealand = 212, + + + /// + /// Tonga + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tonga")] + [InternetDomainCode("TO")] + Tonga = 213, + + + /// + /// Trinidad and Tobago + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Trinidad and Tobago")] + [InternetDomainCode("TT")] + TrinidadAndTobago = 214, + + + /// + /// Tromelin Island (France) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tromelin Island (France)")] + [InternetDomainCode("Unknown")] + TromelinIslandFrance = 215, + + + /// + /// Tunisia + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tunisia")] + [InternetDomainCode("TN")] + Tunisia = 217, + + + /// + /// Turkey + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Turkey")] + [InternetDomainCode("TR")] + Turkey = 218, + + + /// + /// Turkmenistan + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Turkmenistan")] + [InternetDomainCode("TM")] + Turkmenistan = 264, + + + /// + /// Turks and Caicos Islands (United Kingdom) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Turks and Caicos Islands (United Kingdom)")] + [InternetDomainCode("Unknown")] + TurksAndCaicosIslandsUnitedKingdom = 219, + + + /// + /// Tuvalu + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tuvalu")] + [InternetDomainCode("TV")] + Tuvalu = 220, + + + /// + /// Uganda + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Uganda")] + [InternetDomainCode("UG")] + Uganda = 221, + + + /// + /// Ukraine + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ukraine")] + [InternetDomainCode("UA")] + Ukraine = 265, + + + /// + /// United Arab Emirates + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("United Arab Emirates")] + [InternetDomainCode("AE")] + UnitedArabEmirates = 223, + + + /// + /// United Kingdom + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("United Kingdom")] + [InternetDomainCode("UK")] + UnitedKingdom = 224, + + + /// + /// United States + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("United States")] + [InternetDomainCode("US")] + UnitedStates = 225, + + + /// + /// Upper Volta (aka Burkina or Burkina Faso) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Upper Volta (aka Burkina or Burkina Faso)")] + [InternetDomainCode("Unknown")] + UpperVoltaAkaBurkinaOrBurkinaFaso = 34, + + + /// + /// Uruguay + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Uruguay")] + [InternetDomainCode("UY")] + Uruguay = 226, + + + /// + /// Uzbekistan + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Uzbekistan")] + [InternetDomainCode("UZ")] + Uzbekistan = 266, + + + /// + /// Vanuatu + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Vanuatu")] + [InternetDomainCode("VU")] + Vanuatu = 227, + + + /// + /// Vatican City (Holy See) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Vatican City (Holy See)")] + [InternetDomainCode("Unknown")] + VaticanCityHolySee = 228, + + + /// + /// Venezuela + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Venezuela")] + [InternetDomainCode("VE")] + Venezuela = 229, + + + /// + /// Vietnam + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Vietnam")] + [InternetDomainCode("Unknown")] + Vietnam = 230, + + + /// + /// Virgin Islands (United States) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Virgin Islands (United States)")] + [InternetDomainCode("Unknown")] + VirginIslandsUnitedStates = 231, + + + /// + /// Wake Island (United States) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Wake Island (United States)")] + [InternetDomainCode("Unknown")] + WakeIslandUnitedStates = 232, + + + /// + /// Wallis and Futuna (France) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Wallis and Futuna (France)")] + [InternetDomainCode("Unknown")] + WallisAndFutunaFrance = 233, + + + /// + /// West Bank (Israel) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("West Bank (Israel)")] + [InternetDomainCode("Unknown")] + WestBankIsrael = 235, + + + /// + /// Western Sahara + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Western Sahara")] + [InternetDomainCode("EH")] + WesternSahara = 234, + + + /// + /// Western Samoa + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Western Samoa")] + [InternetDomainCode("Unknown")] + WesternSamoa = 236, + + + /// + /// Yemen + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Yemen")] + [InternetDomainCode("YE")] + Yemen = 237, + + + /// + /// Serbia and Montenegro + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Serbia and Montenegro")] + [InternetDomainCode("CS")] + SerbiaAndMontenegro = 240, + + + /// + /// Zaire + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Zaire")] + [InternetDomainCode("Unknown")] + Zaire = 241, + + + /// + /// Zambia + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Zambia")] + [InternetDomainCode("ZM")] + Zambia = 242, + + + /// + /// Zimbabwe + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Zimbabwe")] + [InternetDomainCode("ZW")] + Zimbabwe = 243 + + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/InformationLayers.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/InformationLayers.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/InformationLayers.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/InformationLayers.cs index 6950d61..68372b9 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/InformationLayers.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/InformationLayers.cs @@ -1,50 +1,50 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for InformationLayers (der.iff.infolayers, Information Layers, - /// section 8.3.1.2.10) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - [Flags] - public enum InformationLayers : byte - { - /// - /// Set bit means 'Present', reset bit means 'Not Present'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Present', reset bit means 'Not Present'.")] - Layer1 = 2, - - /// - /// Set bit means 'Present', reset bit means 'Not Present'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Present', reset bit means 'Not Present'.")] - Layer2 = 4 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for InformationLayers (der.iff.infolayers, Information Layers, + /// section 8.3.1.2.10) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + [Flags] + public enum InformationLayers : byte + { + /// + /// Set bit means 'Present', reset bit means 'Not Present'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Present', reset bit means 'Not Present'.")] + Layer1 = 2, + + /// + /// Set bit means 'Present', reset bit means 'Not Present'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Present', reset bit means 'Not Present'.")] + Layer2 = 4 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/LayerSpecificInformation.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/LayerSpecificInformation.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/LayerSpecificInformation.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/LayerSpecificInformation.cs index 99afb15..1dbc4e3 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/LayerSpecificInformation.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/LayerSpecificInformation.cs @@ -1,39 +1,39 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for LayerSpecificInformation (der.iff.layerspecific, Layer Specific Information, - /// section 8.3.1.3.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum LayerSpecificInformation : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for LayerSpecificInformation (der.iff.layerspecific, Layer Specific Information, + /// section 8.3.1.3.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum LayerSpecificInformation : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/SystemMode.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/SystemMode.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/SystemMode.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/SystemMode.cs index 3a3efb3..4198277 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/SystemMode.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/SystemMode.cs @@ -1,39 +1,39 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for SystemMode (der.iff.mode, System Mode, - /// section 8.3.1.1.4) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum SystemMode : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for SystemMode (der.iff.mode, System Mode, + /// section 8.3.1.1.4) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum SystemMode : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/SystemName.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/SystemName.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/SystemName.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/SystemName.cs index f92a4e4..826e9f1 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/SystemName.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/SystemName.cs @@ -1,129 +1,129 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for SystemName (der.iff.name, System Name, - /// section 8.3.1.1.3) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum SystemName : ushort - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Mark X. applies-to: 1,2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mark X. applies-to: 1,2.")] - MarkXAppliesTo12 = 1, - - /// - /// Mark XII. applies-to: 1,2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mark XII. applies-to: 1,2.")] - MarkXIIAppliesTo12 = 2, - - /// - /// ATCRBS. applies-to: 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ATCRBS. applies-to: 2.")] - ATCRBSAppliesTo2 = 3, - - /// - /// Soviet. applies-to: 3,4. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Soviet. applies-to: 3,4.")] - SovietAppliesTo34 = 4, - - /// - /// Mode S. applies-to: 1,2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mode S. applies-to: 1,2.")] - ModeSAppliesTo12 = 5, - - /// - /// Mark X/XII/ATCRBS. applies-to: 1,2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mark X/XII/ATCRBS. applies-to: 1,2.")] - MarkXXIIATCRBSAppliesTo12 = 6, - - /// - /// Mark X/XII/ATCRBS/Mode S. applies-to: 1,2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mark X/XII/ATCRBS/Mode S. applies-to: 1,2.")] - MarkXXIIATCRBSModeSAppliesTo12 = 7, - - /// - /// ARI 5954. applies-to: 5. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ARI 5954. applies-to: 5.")] - ARI5954AppliesTo5 = 8, - - /// - /// ARI 5983. applies-to: 5. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ARI 5983. applies-to: 5.")] - ARI5983AppliesTo5 = 9 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for SystemName (der.iff.name, System Name, + /// section 8.3.1.1.3) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum SystemName : ushort + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Mark X. applies-to: 1,2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mark X. applies-to: 1,2.")] + MarkXAppliesTo12 = 1, + + /// + /// Mark XII. applies-to: 1,2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mark XII. applies-to: 1,2.")] + MarkXIIAppliesTo12 = 2, + + /// + /// ATCRBS. applies-to: 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ATCRBS. applies-to: 2.")] + ATCRBSAppliesTo2 = 3, + + /// + /// Soviet. applies-to: 3,4. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Soviet. applies-to: 3,4.")] + SovietAppliesTo34 = 4, + + /// + /// Mode S. applies-to: 1,2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mode S. applies-to: 1,2.")] + ModeSAppliesTo12 = 5, + + /// + /// Mark X/XII/ATCRBS. applies-to: 1,2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mark X/XII/ATCRBS. applies-to: 1,2.")] + MarkXXIIATCRBSAppliesTo12 = 6, + + /// + /// Mark X/XII/ATCRBS/Mode S. applies-to: 1,2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mark X/XII/ATCRBS/Mode S. applies-to: 1,2.")] + MarkXXIIATCRBSModeSAppliesTo12 = 7, + + /// + /// ARI 5954. applies-to: 5. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ARI 5954. applies-to: 5.")] + ARI5954AppliesTo5 = 8, + + /// + /// ARI 5983. applies-to: 5. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ARI 5983. applies-to: 5.")] + ARI5983AppliesTo5 = 9 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/SystemStatus.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/SystemStatus.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/SystemStatus.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/SystemStatus.cs index 339df94..6887dc3 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/SystemStatus.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/SystemStatus.cs @@ -1,110 +1,110 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for SystemStatus (der.iff.fop.status, System Status, - /// section 8.3.1.2.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - [Flags] - public enum SystemStatus : byte - { - /// - /// Set bit means 'On', reset bit means 'Off'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'On', reset bit means 'Off'.")] - SystemOnOff = 1, - - /// - /// Set bit means 'Not capable', reset bit means 'Capable'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Not capable', reset bit means 'Capable'.")] - Parameter1 = 2, - - /// - /// Set bit means 'Not capable', reset bit means 'Capable'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Not capable', reset bit means 'Capable'.")] - Parameter2 = 4, - - /// - /// Set bit means 'Not capable', reset bit means 'Capable'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Not capable', reset bit means 'Capable'.")] - Parameter3 = 8, - - /// - /// Set bit means 'Not capable', reset bit means 'Capable'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Not capable', reset bit means 'Capable'.")] - Parameter4 = 16, - - /// - /// Set bit means 'Not capable', reset bit means 'Capable'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Not capable', reset bit means 'Capable'.")] - Parameter5 = 32, - - /// - /// Set bit means 'Not capable', reset bit means 'Capable'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Not capable', reset bit means 'Capable'.")] - Parameter6 = 64, - - /// - /// Set bit means 'System failed', reset bit means 'Operational'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'System failed', reset bit means 'Operational'.")] - OperationalStatus = 128 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for SystemStatus (der.iff.fop.status, System Status, + /// section 8.3.1.2.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + [Flags] + public enum SystemStatus : byte + { + /// + /// Set bit means 'On', reset bit means 'Off'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'On', reset bit means 'Off'.")] + SystemOnOff = 1, + + /// + /// Set bit means 'Not capable', reset bit means 'Capable'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Not capable', reset bit means 'Capable'.")] + Parameter1 = 2, + + /// + /// Set bit means 'Not capable', reset bit means 'Capable'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Not capable', reset bit means 'Capable'.")] + Parameter2 = 4, + + /// + /// Set bit means 'Not capable', reset bit means 'Capable'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Not capable', reset bit means 'Capable'.")] + Parameter3 = 8, + + /// + /// Set bit means 'Not capable', reset bit means 'Capable'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Not capable', reset bit means 'Capable'.")] + Parameter4 = 16, + + /// + /// Set bit means 'Not capable', reset bit means 'Capable'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Not capable', reset bit means 'Capable'.")] + Parameter5 = 32, + + /// + /// Set bit means 'Not capable', reset bit means 'Capable'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Not capable', reset bit means 'Capable'.")] + Parameter6 = 64, + + /// + /// Set bit means 'System failed', reset bit means 'Operational'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'System failed', reset bit means 'Operational'.")] + OperationalStatus = 128 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/SystemType.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/SystemType.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/SystemType.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/SystemType.cs index f3630d9..4dfedb2 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/SystemType.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/SystemType.cs @@ -1,89 +1,89 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for SystemType (der.iff.type, System Type, - /// section 8.3.1.1.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum SystemType : ushort - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Mark X/XII/ATCRBS/Mode S Transponder. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mark X/XII/ATCRBS/Mode S Transponder.")] - MarkXXIIATCRBSModeSTransponder = 1, - - /// - /// Mark X/XII/ATCRBS/Mode S Interrogator. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mark X/XII/ATCRBS/Mode S Interrogator.")] - MarkXXIIATCRBSModeSInterrogator = 2, - - /// - /// Soviet Transponder. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Soviet Transponder.")] - SovietTransponder = 3, - - /// - /// Soviet Interrogator. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Soviet Interrogator.")] - SovietInterrogator = 4, - - /// - /// RRB Transponder. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("RRB Transponder.")] - RRBTransponder = 5 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for SystemType (der.iff.type, System Type, + /// section 8.3.1.1.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum SystemType : ushort + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Mark X/XII/ATCRBS/Mode S Transponder. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mark X/XII/ATCRBS/Mode S Transponder.")] + MarkXXIIATCRBSModeSTransponder = 1, + + /// + /// Mark X/XII/ATCRBS/Mode S Interrogator. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mark X/XII/ATCRBS/Mode S Interrogator.")] + MarkXXIIATCRBSModeSInterrogator = 2, + + /// + /// Soviet Transponder. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Soviet Transponder.")] + SovietTransponder = 3, + + /// + /// Soviet Interrogator. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Soviet Interrogator.")] + SovietInterrogator = 4, + + /// + /// RRB Transponder. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("RRB Transponder.")] + RRBTransponder = 5 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1AlternateParameter4.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type1AlternateParameter4.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1AlternateParameter4.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type1AlternateParameter4.cs index 5ecd1ee..fe38c1a 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1AlternateParameter4.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type1AlternateParameter4.cs @@ -1,69 +1,69 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for Type1AlternateParameter4 (der.iff.type.1.fop.altp4, Alternate Parameter 4, - /// section 8.3.1.2.9) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum Type1AlternateParameter4 : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Valid. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Valid.")] - Valid = 1, - - /// - /// Invalid. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Invalid.")] - Invalid = 2, - - /// - /// No response. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("No response.")] - NoResponse = 3 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for Type1AlternateParameter4 (der.iff.type.1.fop.altp4, Alternate Parameter 4, + /// section 8.3.1.2.9) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum Type1AlternateParameter4 : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Valid. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Valid.")] + Valid = 1, + + /// + /// Invalid. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Invalid.")] + Invalid = 2, + + /// + /// No response. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("No response.")] + NoResponse = 3 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1ChangeOptions.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type1ChangeOptions.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1ChangeOptions.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type1ChangeOptions.cs index d839988..58cab59 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1ChangeOptions.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type1ChangeOptions.cs @@ -1,60 +1,60 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for Type1ChangeOptions (der.iff.type.1.changeoptions, Change/Options, - /// section 8.3.1.1.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - [Flags] - public enum Type1ChangeOptions : byte - { - /// - /// Set bit means 'Initial report or change since last report', reset bit means 'No change since last report'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Initial report or change since last report', reset bit means 'No change since last report'.")] - ChangeIndicator = 1, - - /// - /// Set bit means 'Yes', reset bit means 'No'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Yes', reset bit means 'No'.")] - AlternateMode4 = 2, - - /// - /// Set bit means 'Yes', reset bit means 'No'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Yes', reset bit means 'No'.")] - AlternateModeC = 4 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for Type1ChangeOptions (der.iff.type.1.changeoptions, Change/Options, + /// section 8.3.1.1.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + [Flags] + public enum Type1ChangeOptions : byte + { + /// + /// Set bit means 'Initial report or change since last report', reset bit means 'No change since last report'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Initial report or change since last report', reset bit means 'No change since last report'.")] + ChangeIndicator = 1, + + /// + /// Set bit means 'Yes', reset bit means 'No'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Yes', reset bit means 'No'.")] + AlternateMode4 = 2, + + /// + /// Set bit means 'Yes', reset bit means 'No'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Yes', reset bit means 'No'.")] + AlternateModeC = 4 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Modifier.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type1Modifier.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Modifier.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type1Modifier.cs index 83e1f6f..a9576bc 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Modifier.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type1Modifier.cs @@ -1,70 +1,70 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for Type1Modifier (der.iff.type.1.fop.modifier, Modifier, - /// section 8.3.1.2.7) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - [Flags] - public enum Type1Modifier : byte - { - /// - /// Value of 0 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value of 0")] - Other = 1, - - /// - /// Set bit means 'On', reset bit means 'Off'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'On', reset bit means 'Off'.")] - Emergency = 2, - - /// - /// Set bit means 'On', reset bit means 'Off'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'On', reset bit means 'Off'.")] - IdentSquawkFlash = 4, - - /// - /// Set bit means 'Damage', reset bit means 'No damage'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Damage', reset bit means 'No damage'.")] - STI = 8 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for Type1Modifier (der.iff.type.1.fop.modifier, Modifier, + /// section 8.3.1.2.7) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + [Flags] + public enum Type1Modifier : byte + { + /// + /// Value of 0 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value of 0")] + Other = 1, + + /// + /// Set bit means 'On', reset bit means 'Off'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'On', reset bit means 'Off'.")] + Emergency = 2, + + /// + /// Set bit means 'On', reset bit means 'Off'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'On', reset bit means 'Off'.")] + IdentSquawkFlash = 4, + + /// + /// Set bit means 'Damage', reset bit means 'No damage'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Damage', reset bit means 'No damage'.")] + STI = 8 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1OperationalParameter1.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type1OperationalParameter1.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1OperationalParameter1.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type1OperationalParameter1.cs index ac75502..b7e92c2 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1OperationalParameter1.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type1OperationalParameter1.cs @@ -1,39 +1,39 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for Type1OperationalParameter1 (der.iff.type.1.sop.param1, Operational Parameter 1, - /// section 8.3.1.4.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum Type1OperationalParameter1 : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for Type1OperationalParameter1 (der.iff.type.1.sop.param1, Operational Parameter 1, + /// section 8.3.1.4.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum Type1OperationalParameter1 : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1OperationalParameter2.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type1OperationalParameter2.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1OperationalParameter2.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type1OperationalParameter2.cs index e604cd9..e65e22f 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1OperationalParameter2.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type1OperationalParameter2.cs @@ -1,39 +1,39 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for Type1OperationalParameter2 (der.iff.type.1.sop.param2, Operational Parameter 2, - /// section 8.3.1.4.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum Type1OperationalParameter2 : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for Type1OperationalParameter2 (der.iff.type.1.sop.param2, Operational Parameter 2, + /// section 8.3.1.4.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum Type1OperationalParameter2 : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter1Mode1CodeStatus.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type1Parameter1Mode1CodeStatus.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter1Mode1CodeStatus.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type1Parameter1Mode1CodeStatus.cs index 72439f8..9100813 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter1Mode1CodeStatus.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type1Parameter1Mode1CodeStatus.cs @@ -1,361 +1,361 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for Type1Parameter1Mode1CodeStatus (der.iff.type.1.fop.param1, Parameter 1 - Mode 1 Code/Status, - /// section 8.3.1.2.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public struct Type1Parameter1Mode1CodeStatus - { - /// - /// Status - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Status")] - public enum StatusValue : uint - { - /// - /// Off - /// - Off = 0, - - /// - /// On - /// - On = 1 - } - - /// - /// Damage - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Damage")] - public enum DamageValue : uint - { - /// - /// No damage - /// - NoDamage = 0, - - /// - /// Damage - /// - Damage = 1 - } - - /// - /// Malfunction - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Malfunction")] - public enum MalfunctionValue : uint - { - /// - /// No malfunction - /// - NoMalfunction = 0, - - /// - /// Malfunction - /// - Malfunction = 1 - } - - private byte codeElement1; - private byte codeElement2; - private Type1Parameter1Mode1CodeStatus.StatusValue status; - private Type1Parameter1Mode1CodeStatus.DamageValue damage; - private Type1Parameter1Mode1CodeStatus.MalfunctionValue malfunction; - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(Type1Parameter1Mode1CodeStatus left, Type1Parameter1Mode1CodeStatus right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator ==(Type1Parameter1Mode1CodeStatus left, Type1Parameter1Mode1CodeStatus right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - // If parameters are null return false (cast to object to prevent recursive loop!) - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The scheme instance. - /// The result of the conversion. - public static explicit operator ushort(Type1Parameter1Mode1CodeStatus obj) - { - return obj.ToUInt16(); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The ushort value. - /// The result of the conversion. - public static explicit operator Type1Parameter1Mode1CodeStatus(ushort value) - { - return Type1Parameter1Mode1CodeStatus.FromUInt16(value); - } - - /// - /// Creates the instance from the byte array. - /// - /// The array which holds the values for the . - /// The starting position within value. - /// The instance, represented by a byte array. - /// if the array is null. - /// if the index is lower than 0 or greater or equal than number of elements in array. - public static Type1Parameter1Mode1CodeStatus FromByteArray(byte[] array, int index) - { - if (array == null) - { - throw new ArgumentNullException("array"); - } - - if (index < 0 || - index > array.Length - 1 || - index + 2 > array.Length - 1) - { - throw new IndexOutOfRangeException(); - } - - return FromUInt16(BitConverter.ToUInt16(array, index)); - } - - /// - /// Creates the instance from the ushort value. - /// - /// The ushort value which represents the instance. - /// The instance, represented by the ushort value. - public static Type1Parameter1Mode1CodeStatus FromUInt16(ushort value) - { - Type1Parameter1Mode1CodeStatus ps = new Type1Parameter1Mode1CodeStatus(); - - uint mask0 = 0x0007; - byte shift0 = 0; - uint newValue0 = (value & mask0) >> shift0; - ps.CodeElement1 = (byte)newValue0; - - uint mask1 = 0x0038; - byte shift1 = 3; - uint newValue1 = (value & mask1) >> shift1; - ps.CodeElement2 = (byte)newValue1; - - uint mask4 = 0x2000; - byte shift4 = 13; - uint newValue4 = (value & mask4) >> shift4; - ps.Status = (Type1Parameter1Mode1CodeStatus.StatusValue)newValue4; - - uint mask5 = 0x4000; - byte shift5 = 14; - uint newValue5 = (value & mask5) >> shift5; - ps.Damage = (Type1Parameter1Mode1CodeStatus.DamageValue)newValue5; - - uint mask6 = 0x8000; - byte shift6 = 15; - uint newValue6 = (value & mask6) >> shift6; - ps.Malfunction = (Type1Parameter1Mode1CodeStatus.MalfunctionValue)newValue6; - - return ps; - } - - /// - /// Gets or sets the codeelement1. - /// - /// The codeelement1. - public byte CodeElement1 - { - get { return this.codeElement1; } - set { this.codeElement1 = value; } - } - - /// - /// Gets or sets the codeelement2. - /// - /// The codeelement2. - public byte CodeElement2 - { - get { return this.codeElement2; } - set { this.codeElement2 = value; } - } - - /// - /// Gets or sets the status. - /// - /// The status. - public Type1Parameter1Mode1CodeStatus.StatusValue Status - { - get { return this.status; } - set { this.status = value; } - } - - /// - /// Gets or sets the damage. - /// - /// The damage. - public Type1Parameter1Mode1CodeStatus.DamageValue Damage - { - get { return this.damage; } - set { this.damage = value; } - } - - /// - /// Gets or sets the malfunction. - /// - /// The malfunction. - public Type1Parameter1Mode1CodeStatus.MalfunctionValue Malfunction - { - get { return this.malfunction; } - set { this.malfunction = value; } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - if (obj == null) - { - return false; - } - - if (!(obj is Type1Parameter1Mode1CodeStatus)) - { - return false; - } - - return this.Equals((Type1Parameter1Mode1CodeStatus)obj); - } - - /// - /// Determines whether the specified instance is equal to this instance. - /// - /// The instance to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public bool Equals(Type1Parameter1Mode1CodeStatus other) - { - // If parameter is null return false (cast to object to prevent recursive loop!) - if ((object)other == null) - { - return false; - } - - return - this.CodeElement1 == other.CodeElement1 && - this.CodeElement2 == other.CodeElement2 && - this.Status == other.Status && - this.Damage == other.Damage && - this.Malfunction == other.Malfunction; - } - - /// - /// Converts the instance of to the byte array. - /// - /// The byte array representing the current instance. - public byte[] ToByteArray() - { - return BitConverter.GetBytes(this.ToUInt16()); - } - - /// - /// Converts the instance of to the ushort value. - /// - /// The ushort value representing the current instance. - public ushort ToUInt16() - { - ushort val = 0; - - val |= (ushort)((uint)this.CodeElement1 << 0); - val |= (ushort)((uint)this.CodeElement2 << 3); - val |= (ushort)((uint)this.Status << 13); - val |= (ushort)((uint)this.Damage << 14); - val |= (ushort)((uint)this.Malfunction << 15); - - return val; - } - - /// - /// Returns a hash code for this instance. - /// - /// - /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - /// - public override int GetHashCode() - { - int hash = 17; - - // Overflow is fine, just wrap - unchecked - { - hash = (hash * 29) + this.CodeElement1.GetHashCode(); - hash = (hash * 29) + this.CodeElement2.GetHashCode(); - hash = (hash * 29) + this.Status.GetHashCode(); - hash = (hash * 29) + this.Damage.GetHashCode(); - hash = (hash * 29) + this.Malfunction.GetHashCode(); - } - - return hash; - } - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for Type1Parameter1Mode1CodeStatus (der.iff.type.1.fop.param1, Parameter 1 - Mode 1 Code/Status, + /// section 8.3.1.2.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public struct Type1Parameter1Mode1CodeStatus + { + /// + /// Status + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Status")] + public enum StatusValue : uint + { + /// + /// Off + /// + Off = 0, + + /// + /// On + /// + On = 1 + } + + /// + /// Damage + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Damage")] + public enum DamageValue : uint + { + /// + /// No damage + /// + NoDamage = 0, + + /// + /// Damage + /// + Damage = 1 + } + + /// + /// Malfunction + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Malfunction")] + public enum MalfunctionValue : uint + { + /// + /// No malfunction + /// + NoMalfunction = 0, + + /// + /// Malfunction + /// + Malfunction = 1 + } + + private byte codeElement1; + private byte codeElement2; + private Type1Parameter1Mode1CodeStatus.StatusValue status; + private Type1Parameter1Mode1CodeStatus.DamageValue damage; + private Type1Parameter1Mode1CodeStatus.MalfunctionValue malfunction; + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(Type1Parameter1Mode1CodeStatus left, Type1Parameter1Mode1CodeStatus right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator ==(Type1Parameter1Mode1CodeStatus left, Type1Parameter1Mode1CodeStatus right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + // If parameters are null return false (cast to object to prevent recursive loop!) + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The scheme instance. + /// The result of the conversion. + public static explicit operator ushort(Type1Parameter1Mode1CodeStatus obj) + { + return obj.ToUInt16(); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The ushort value. + /// The result of the conversion. + public static explicit operator Type1Parameter1Mode1CodeStatus(ushort value) + { + return Type1Parameter1Mode1CodeStatus.FromUInt16(value); + } + + /// + /// Creates the instance from the byte array. + /// + /// The array which holds the values for the . + /// The starting position within value. + /// The instance, represented by a byte array. + /// if the array is null. + /// if the index is lower than 0 or greater or equal than number of elements in array. + public static Type1Parameter1Mode1CodeStatus FromByteArray(byte[] array, int index) + { + if (array == null) + { + throw new ArgumentNullException("array"); + } + + if (index < 0 || + index > array.Length - 1 || + index + 2 > array.Length - 1) + { + throw new IndexOutOfRangeException(); + } + + return FromUInt16(BitConverter.ToUInt16(array, index)); + } + + /// + /// Creates the instance from the ushort value. + /// + /// The ushort value which represents the instance. + /// The instance, represented by the ushort value. + public static Type1Parameter1Mode1CodeStatus FromUInt16(ushort value) + { + Type1Parameter1Mode1CodeStatus ps = new Type1Parameter1Mode1CodeStatus(); + + uint mask0 = 0x0007; + byte shift0 = 0; + uint newValue0 = (value & mask0) >> shift0; + ps.CodeElement1 = (byte)newValue0; + + uint mask1 = 0x0038; + byte shift1 = 3; + uint newValue1 = (value & mask1) >> shift1; + ps.CodeElement2 = (byte)newValue1; + + uint mask4 = 0x2000; + byte shift4 = 13; + uint newValue4 = (value & mask4) >> shift4; + ps.Status = (Type1Parameter1Mode1CodeStatus.StatusValue)newValue4; + + uint mask5 = 0x4000; + byte shift5 = 14; + uint newValue5 = (value & mask5) >> shift5; + ps.Damage = (Type1Parameter1Mode1CodeStatus.DamageValue)newValue5; + + uint mask6 = 0x8000; + byte shift6 = 15; + uint newValue6 = (value & mask6) >> shift6; + ps.Malfunction = (Type1Parameter1Mode1CodeStatus.MalfunctionValue)newValue6; + + return ps; + } + + /// + /// Gets or sets the codeelement1. + /// + /// The codeelement1. + public byte CodeElement1 + { + get { return this.codeElement1; } + set { this.codeElement1 = value; } + } + + /// + /// Gets or sets the codeelement2. + /// + /// The codeelement2. + public byte CodeElement2 + { + get { return this.codeElement2; } + set { this.codeElement2 = value; } + } + + /// + /// Gets or sets the status. + /// + /// The status. + public Type1Parameter1Mode1CodeStatus.StatusValue Status + { + get { return this.status; } + set { this.status = value; } + } + + /// + /// Gets or sets the damage. + /// + /// The damage. + public Type1Parameter1Mode1CodeStatus.DamageValue Damage + { + get { return this.damage; } + set { this.damage = value; } + } + + /// + /// Gets or sets the malfunction. + /// + /// The malfunction. + public Type1Parameter1Mode1CodeStatus.MalfunctionValue Malfunction + { + get { return this.malfunction; } + set { this.malfunction = value; } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (!(obj is Type1Parameter1Mode1CodeStatus)) + { + return false; + } + + return this.Equals((Type1Parameter1Mode1CodeStatus)obj); + } + + /// + /// Determines whether the specified instance is equal to this instance. + /// + /// The instance to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public bool Equals(Type1Parameter1Mode1CodeStatus other) + { + // If parameter is null return false (cast to object to prevent recursive loop!) + if ((object)other == null) + { + return false; + } + + return + this.CodeElement1 == other.CodeElement1 && + this.CodeElement2 == other.CodeElement2 && + this.Status == other.Status && + this.Damage == other.Damage && + this.Malfunction == other.Malfunction; + } + + /// + /// Converts the instance of to the byte array. + /// + /// The byte array representing the current instance. + public byte[] ToByteArray() + { + return BitConverter.GetBytes(this.ToUInt16()); + } + + /// + /// Converts the instance of to the ushort value. + /// + /// The ushort value representing the current instance. + public ushort ToUInt16() + { + ushort val = 0; + + val |= (ushort)((uint)this.CodeElement1 << 0); + val |= (ushort)((uint)this.CodeElement2 << 3); + val |= (ushort)((uint)this.Status << 13); + val |= (ushort)((uint)this.Damage << 14); + val |= (ushort)((uint)this.Malfunction << 15); + + return val; + } + + /// + /// Returns a hash code for this instance. + /// + /// + /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + /// + public override int GetHashCode() + { + int hash = 17; + + // Overflow is fine, just wrap + unchecked + { + hash = (hash * 29) + this.CodeElement1.GetHashCode(); + hash = (hash * 29) + this.CodeElement2.GetHashCode(); + hash = (hash * 29) + this.Status.GetHashCode(); + hash = (hash * 29) + this.Damage.GetHashCode(); + hash = (hash * 29) + this.Malfunction.GetHashCode(); + } + + return hash; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter2Mode2CodeStatus.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type1Parameter2Mode2CodeStatus.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter2Mode2CodeStatus.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type1Parameter2Mode2CodeStatus.cs index 7927c88..9b58fbe 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter2Mode2CodeStatus.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type1Parameter2Mode2CodeStatus.cs @@ -1,399 +1,399 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for Type1Parameter2Mode2CodeStatus (der.iff.type.1.fop.param2, Parameter 2 - Mode 2 Code/Status, - /// section 8.3.1.2.3) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public struct Type1Parameter2Mode2CodeStatus - { - /// - /// Status - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Status")] - public enum StatusValue : uint - { - /// - /// Off - /// - Off = 0, - - /// - /// On - /// - On = 1 - } - - /// - /// Damage - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Damage")] - public enum DamageValue : uint - { - /// - /// No damage - /// - NoDamage = 0, - - /// - /// Damage - /// - Damage = 1 - } - - /// - /// Malfunction - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Malfunction")] - public enum MalfunctionValue : uint - { - /// - /// No malfunction - /// - NoMalfunction = 0, - - /// - /// Malfunction - /// - Malfunction = 1 - } - - private byte codeElement1; - private byte codeElement2; - private byte codeElement3; - private byte codeElement4; - private Type1Parameter2Mode2CodeStatus.StatusValue status; - private Type1Parameter2Mode2CodeStatus.DamageValue damage; - private Type1Parameter2Mode2CodeStatus.MalfunctionValue malfunction; - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(Type1Parameter2Mode2CodeStatus left, Type1Parameter2Mode2CodeStatus right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator ==(Type1Parameter2Mode2CodeStatus left, Type1Parameter2Mode2CodeStatus right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - // If parameters are null return false (cast to object to prevent recursive loop!) - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The scheme instance. - /// The result of the conversion. - public static explicit operator ushort(Type1Parameter2Mode2CodeStatus obj) - { - return obj.ToUInt16(); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The ushort value. - /// The result of the conversion. - public static explicit operator Type1Parameter2Mode2CodeStatus(ushort value) - { - return Type1Parameter2Mode2CodeStatus.FromUInt16(value); - } - - /// - /// Creates the instance from the byte array. - /// - /// The array which holds the values for the . - /// The starting position within value. - /// The instance, represented by a byte array. - /// if the array is null. - /// if the index is lower than 0 or greater or equal than number of elements in array. - public static Type1Parameter2Mode2CodeStatus FromByteArray(byte[] array, int index) - { - if (array == null) - { - throw new ArgumentNullException("array"); - } - - if (index < 0 || - index > array.Length - 1 || - index + 2 > array.Length - 1) - { - throw new IndexOutOfRangeException(); - } - - return FromUInt16(BitConverter.ToUInt16(array, index)); - } - - /// - /// Creates the instance from the ushort value. - /// - /// The ushort value which represents the instance. - /// The instance, represented by the ushort value. - public static Type1Parameter2Mode2CodeStatus FromUInt16(ushort value) - { - Type1Parameter2Mode2CodeStatus ps = new Type1Parameter2Mode2CodeStatus(); - - uint mask0 = 0x0007; - byte shift0 = 0; - uint newValue0 = (value & mask0) >> shift0; - ps.CodeElement1 = (byte)newValue0; - - uint mask1 = 0x0038; - byte shift1 = 3; - uint newValue1 = (value & mask1) >> shift1; - ps.CodeElement2 = (byte)newValue1; - - uint mask2 = 0x01c0; - byte shift2 = 6; - uint newValue2 = (value & mask2) >> shift2; - ps.CodeElement3 = (byte)newValue2; - - uint mask3 = 0x0e00; - byte shift3 = 9; - uint newValue3 = (value & mask3) >> shift3; - ps.CodeElement4 = (byte)newValue3; - - uint mask5 = 0x2000; - byte shift5 = 13; - uint newValue5 = (value & mask5) >> shift5; - ps.Status = (Type1Parameter2Mode2CodeStatus.StatusValue)newValue5; - - uint mask6 = 0x4000; - byte shift6 = 14; - uint newValue6 = (value & mask6) >> shift6; - ps.Damage = (Type1Parameter2Mode2CodeStatus.DamageValue)newValue6; - - uint mask7 = 0x8000; - byte shift7 = 15; - uint newValue7 = (value & mask7) >> shift7; - ps.Malfunction = (Type1Parameter2Mode2CodeStatus.MalfunctionValue)newValue7; - - return ps; - } - - /// - /// Gets or sets the codeelement1. - /// - /// The codeelement1. - public byte CodeElement1 - { - get { return this.codeElement1; } - set { this.codeElement1 = value; } - } - - /// - /// Gets or sets the codeelement2. - /// - /// The codeelement2. - public byte CodeElement2 - { - get { return this.codeElement2; } - set { this.codeElement2 = value; } - } - - /// - /// Gets or sets the codeelement3. - /// - /// The codeelement3. - public byte CodeElement3 - { - get { return this.codeElement3; } - set { this.codeElement3 = value; } - } - - /// - /// Gets or sets the codeelement4. - /// - /// The codeelement4. - public byte CodeElement4 - { - get { return this.codeElement4; } - set { this.codeElement4 = value; } - } - - /// - /// Gets or sets the status. - /// - /// The status. - public Type1Parameter2Mode2CodeStatus.StatusValue Status - { - get { return this.status; } - set { this.status = value; } - } - - /// - /// Gets or sets the damage. - /// - /// The damage. - public Type1Parameter2Mode2CodeStatus.DamageValue Damage - { - get { return this.damage; } - set { this.damage = value; } - } - - /// - /// Gets or sets the malfunction. - /// - /// The malfunction. - public Type1Parameter2Mode2CodeStatus.MalfunctionValue Malfunction - { - get { return this.malfunction; } - set { this.malfunction = value; } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - if (obj == null) - { - return false; - } - - if (!(obj is Type1Parameter2Mode2CodeStatus)) - { - return false; - } - - return this.Equals((Type1Parameter2Mode2CodeStatus)obj); - } - - /// - /// Determines whether the specified instance is equal to this instance. - /// - /// The instance to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public bool Equals(Type1Parameter2Mode2CodeStatus other) - { - // If parameter is null return false (cast to object to prevent recursive loop!) - if ((object)other == null) - { - return false; - } - - return - this.CodeElement1 == other.CodeElement1 && - this.CodeElement2 == other.CodeElement2 && - this.CodeElement3 == other.CodeElement3 && - this.CodeElement4 == other.CodeElement4 && - this.Status == other.Status && - this.Damage == other.Damage && - this.Malfunction == other.Malfunction; - } - - /// - /// Converts the instance of to the byte array. - /// - /// The byte array representing the current instance. - public byte[] ToByteArray() - { - return BitConverter.GetBytes(this.ToUInt16()); - } - - /// - /// Converts the instance of to the ushort value. - /// - /// The ushort value representing the current instance. - public ushort ToUInt16() - { - ushort val = 0; - - val |= (ushort)((uint)this.CodeElement1 << 0); - val |= (ushort)((uint)this.CodeElement2 << 3); - val |= (ushort)((uint)this.CodeElement3 << 6); - val |= (ushort)((uint)this.CodeElement4 << 9); - val |= (ushort)((uint)this.Status << 13); - val |= (ushort)((uint)this.Damage << 14); - val |= (ushort)((uint)this.Malfunction << 15); - - return val; - } - - /// - /// Returns a hash code for this instance. - /// - /// - /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - /// - public override int GetHashCode() - { - int hash = 17; - - // Overflow is fine, just wrap - unchecked - { - hash = (hash * 29) + this.CodeElement1.GetHashCode(); - hash = (hash * 29) + this.CodeElement2.GetHashCode(); - hash = (hash * 29) + this.CodeElement3.GetHashCode(); - hash = (hash * 29) + this.CodeElement4.GetHashCode(); - hash = (hash * 29) + this.Status.GetHashCode(); - hash = (hash * 29) + this.Damage.GetHashCode(); - hash = (hash * 29) + this.Malfunction.GetHashCode(); - } - - return hash; - } - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for Type1Parameter2Mode2CodeStatus (der.iff.type.1.fop.param2, Parameter 2 - Mode 2 Code/Status, + /// section 8.3.1.2.3) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public struct Type1Parameter2Mode2CodeStatus + { + /// + /// Status + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Status")] + public enum StatusValue : uint + { + /// + /// Off + /// + Off = 0, + + /// + /// On + /// + On = 1 + } + + /// + /// Damage + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Damage")] + public enum DamageValue : uint + { + /// + /// No damage + /// + NoDamage = 0, + + /// + /// Damage + /// + Damage = 1 + } + + /// + /// Malfunction + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Malfunction")] + public enum MalfunctionValue : uint + { + /// + /// No malfunction + /// + NoMalfunction = 0, + + /// + /// Malfunction + /// + Malfunction = 1 + } + + private byte codeElement1; + private byte codeElement2; + private byte codeElement3; + private byte codeElement4; + private Type1Parameter2Mode2CodeStatus.StatusValue status; + private Type1Parameter2Mode2CodeStatus.DamageValue damage; + private Type1Parameter2Mode2CodeStatus.MalfunctionValue malfunction; + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(Type1Parameter2Mode2CodeStatus left, Type1Parameter2Mode2CodeStatus right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator ==(Type1Parameter2Mode2CodeStatus left, Type1Parameter2Mode2CodeStatus right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + // If parameters are null return false (cast to object to prevent recursive loop!) + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The scheme instance. + /// The result of the conversion. + public static explicit operator ushort(Type1Parameter2Mode2CodeStatus obj) + { + return obj.ToUInt16(); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The ushort value. + /// The result of the conversion. + public static explicit operator Type1Parameter2Mode2CodeStatus(ushort value) + { + return Type1Parameter2Mode2CodeStatus.FromUInt16(value); + } + + /// + /// Creates the instance from the byte array. + /// + /// The array which holds the values for the . + /// The starting position within value. + /// The instance, represented by a byte array. + /// if the array is null. + /// if the index is lower than 0 or greater or equal than number of elements in array. + public static Type1Parameter2Mode2CodeStatus FromByteArray(byte[] array, int index) + { + if (array == null) + { + throw new ArgumentNullException("array"); + } + + if (index < 0 || + index > array.Length - 1 || + index + 2 > array.Length - 1) + { + throw new IndexOutOfRangeException(); + } + + return FromUInt16(BitConverter.ToUInt16(array, index)); + } + + /// + /// Creates the instance from the ushort value. + /// + /// The ushort value which represents the instance. + /// The instance, represented by the ushort value. + public static Type1Parameter2Mode2CodeStatus FromUInt16(ushort value) + { + Type1Parameter2Mode2CodeStatus ps = new Type1Parameter2Mode2CodeStatus(); + + uint mask0 = 0x0007; + byte shift0 = 0; + uint newValue0 = (value & mask0) >> shift0; + ps.CodeElement1 = (byte)newValue0; + + uint mask1 = 0x0038; + byte shift1 = 3; + uint newValue1 = (value & mask1) >> shift1; + ps.CodeElement2 = (byte)newValue1; + + uint mask2 = 0x01c0; + byte shift2 = 6; + uint newValue2 = (value & mask2) >> shift2; + ps.CodeElement3 = (byte)newValue2; + + uint mask3 = 0x0e00; + byte shift3 = 9; + uint newValue3 = (value & mask3) >> shift3; + ps.CodeElement4 = (byte)newValue3; + + uint mask5 = 0x2000; + byte shift5 = 13; + uint newValue5 = (value & mask5) >> shift5; + ps.Status = (Type1Parameter2Mode2CodeStatus.StatusValue)newValue5; + + uint mask6 = 0x4000; + byte shift6 = 14; + uint newValue6 = (value & mask6) >> shift6; + ps.Damage = (Type1Parameter2Mode2CodeStatus.DamageValue)newValue6; + + uint mask7 = 0x8000; + byte shift7 = 15; + uint newValue7 = (value & mask7) >> shift7; + ps.Malfunction = (Type1Parameter2Mode2CodeStatus.MalfunctionValue)newValue7; + + return ps; + } + + /// + /// Gets or sets the codeelement1. + /// + /// The codeelement1. + public byte CodeElement1 + { + get { return this.codeElement1; } + set { this.codeElement1 = value; } + } + + /// + /// Gets or sets the codeelement2. + /// + /// The codeelement2. + public byte CodeElement2 + { + get { return this.codeElement2; } + set { this.codeElement2 = value; } + } + + /// + /// Gets or sets the codeelement3. + /// + /// The codeelement3. + public byte CodeElement3 + { + get { return this.codeElement3; } + set { this.codeElement3 = value; } + } + + /// + /// Gets or sets the codeelement4. + /// + /// The codeelement4. + public byte CodeElement4 + { + get { return this.codeElement4; } + set { this.codeElement4 = value; } + } + + /// + /// Gets or sets the status. + /// + /// The status. + public Type1Parameter2Mode2CodeStatus.StatusValue Status + { + get { return this.status; } + set { this.status = value; } + } + + /// + /// Gets or sets the damage. + /// + /// The damage. + public Type1Parameter2Mode2CodeStatus.DamageValue Damage + { + get { return this.damage; } + set { this.damage = value; } + } + + /// + /// Gets or sets the malfunction. + /// + /// The malfunction. + public Type1Parameter2Mode2CodeStatus.MalfunctionValue Malfunction + { + get { return this.malfunction; } + set { this.malfunction = value; } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (!(obj is Type1Parameter2Mode2CodeStatus)) + { + return false; + } + + return this.Equals((Type1Parameter2Mode2CodeStatus)obj); + } + + /// + /// Determines whether the specified instance is equal to this instance. + /// + /// The instance to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public bool Equals(Type1Parameter2Mode2CodeStatus other) + { + // If parameter is null return false (cast to object to prevent recursive loop!) + if ((object)other == null) + { + return false; + } + + return + this.CodeElement1 == other.CodeElement1 && + this.CodeElement2 == other.CodeElement2 && + this.CodeElement3 == other.CodeElement3 && + this.CodeElement4 == other.CodeElement4 && + this.Status == other.Status && + this.Damage == other.Damage && + this.Malfunction == other.Malfunction; + } + + /// + /// Converts the instance of to the byte array. + /// + /// The byte array representing the current instance. + public byte[] ToByteArray() + { + return BitConverter.GetBytes(this.ToUInt16()); + } + + /// + /// Converts the instance of to the ushort value. + /// + /// The ushort value representing the current instance. + public ushort ToUInt16() + { + ushort val = 0; + + val |= (ushort)((uint)this.CodeElement1 << 0); + val |= (ushort)((uint)this.CodeElement2 << 3); + val |= (ushort)((uint)this.CodeElement3 << 6); + val |= (ushort)((uint)this.CodeElement4 << 9); + val |= (ushort)((uint)this.Status << 13); + val |= (ushort)((uint)this.Damage << 14); + val |= (ushort)((uint)this.Malfunction << 15); + + return val; + } + + /// + /// Returns a hash code for this instance. + /// + /// + /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + /// + public override int GetHashCode() + { + int hash = 17; + + // Overflow is fine, just wrap + unchecked + { + hash = (hash * 29) + this.CodeElement1.GetHashCode(); + hash = (hash * 29) + this.CodeElement2.GetHashCode(); + hash = (hash * 29) + this.CodeElement3.GetHashCode(); + hash = (hash * 29) + this.CodeElement4.GetHashCode(); + hash = (hash * 29) + this.Status.GetHashCode(); + hash = (hash * 29) + this.Damage.GetHashCode(); + hash = (hash * 29) + this.Malfunction.GetHashCode(); + } + + return hash; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter3Mode3CodeStatus.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type1Parameter3Mode3CodeStatus.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter3Mode3CodeStatus.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type1Parameter3Mode3CodeStatus.cs index f16f529..834b841 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter3Mode3CodeStatus.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type1Parameter3Mode3CodeStatus.cs @@ -1,399 +1,399 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for Type1Parameter3Mode3CodeStatus (der.iff.type.1.fop.param3, Parameter 3 - Mode 3 Code/Status, - /// section 8.3.1.2.4) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public struct Type1Parameter3Mode3CodeStatus - { - /// - /// Status - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Status")] - public enum StatusValue : uint - { - /// - /// Off - /// - Off = 0, - - /// - /// On - /// - On = 1 - } - - /// - /// Damage - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Damage")] - public enum DamageValue : uint - { - /// - /// No damage - /// - NoDamage = 0, - - /// - /// Damage - /// - Damage = 1 - } - - /// - /// Malfunction - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Malfunction")] - public enum MalfunctionValue : uint - { - /// - /// No malfunction - /// - NoMalfunction = 0, - - /// - /// Malfunction - /// - Malfunction = 1 - } - - private byte codeElement1; - private byte codeElement2; - private byte codeElement3; - private byte codeElement4; - private Type1Parameter3Mode3CodeStatus.StatusValue status; - private Type1Parameter3Mode3CodeStatus.DamageValue damage; - private Type1Parameter3Mode3CodeStatus.MalfunctionValue malfunction; - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(Type1Parameter3Mode3CodeStatus left, Type1Parameter3Mode3CodeStatus right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator ==(Type1Parameter3Mode3CodeStatus left, Type1Parameter3Mode3CodeStatus right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - // If parameters are null return false (cast to object to prevent recursive loop!) - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The scheme instance. - /// The result of the conversion. - public static explicit operator ushort(Type1Parameter3Mode3CodeStatus obj) - { - return obj.ToUInt16(); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The ushort value. - /// The result of the conversion. - public static explicit operator Type1Parameter3Mode3CodeStatus(ushort value) - { - return Type1Parameter3Mode3CodeStatus.FromUInt16(value); - } - - /// - /// Creates the instance from the byte array. - /// - /// The array which holds the values for the . - /// The starting position within value. - /// The instance, represented by a byte array. - /// if the array is null. - /// if the index is lower than 0 or greater or equal than number of elements in array. - public static Type1Parameter3Mode3CodeStatus FromByteArray(byte[] array, int index) - { - if (array == null) - { - throw new ArgumentNullException("array"); - } - - if (index < 0 || - index > array.Length - 1 || - index + 2 > array.Length - 1) - { - throw new IndexOutOfRangeException(); - } - - return FromUInt16(BitConverter.ToUInt16(array, index)); - } - - /// - /// Creates the instance from the ushort value. - /// - /// The ushort value which represents the instance. - /// The instance, represented by the ushort value. - public static Type1Parameter3Mode3CodeStatus FromUInt16(ushort value) - { - Type1Parameter3Mode3CodeStatus ps = new Type1Parameter3Mode3CodeStatus(); - - uint mask0 = 0x0007; - byte shift0 = 0; - uint newValue0 = (value & mask0) >> shift0; - ps.CodeElement1 = (byte)newValue0; - - uint mask1 = 0x0038; - byte shift1 = 3; - uint newValue1 = (value & mask1) >> shift1; - ps.CodeElement2 = (byte)newValue1; - - uint mask2 = 0x01c0; - byte shift2 = 6; - uint newValue2 = (value & mask2) >> shift2; - ps.CodeElement3 = (byte)newValue2; - - uint mask3 = 0x0e00; - byte shift3 = 9; - uint newValue3 = (value & mask3) >> shift3; - ps.CodeElement4 = (byte)newValue3; - - uint mask5 = 0x2000; - byte shift5 = 13; - uint newValue5 = (value & mask5) >> shift5; - ps.Status = (Type1Parameter3Mode3CodeStatus.StatusValue)newValue5; - - uint mask6 = 0x4000; - byte shift6 = 14; - uint newValue6 = (value & mask6) >> shift6; - ps.Damage = (Type1Parameter3Mode3CodeStatus.DamageValue)newValue6; - - uint mask7 = 0x8000; - byte shift7 = 15; - uint newValue7 = (value & mask7) >> shift7; - ps.Malfunction = (Type1Parameter3Mode3CodeStatus.MalfunctionValue)newValue7; - - return ps; - } - - /// - /// Gets or sets the codeelement1. - /// - /// The codeelement1. - public byte CodeElement1 - { - get { return this.codeElement1; } - set { this.codeElement1 = value; } - } - - /// - /// Gets or sets the codeelement2. - /// - /// The codeelement2. - public byte CodeElement2 - { - get { return this.codeElement2; } - set { this.codeElement2 = value; } - } - - /// - /// Gets or sets the codeelement3. - /// - /// The codeelement3. - public byte CodeElement3 - { - get { return this.codeElement3; } - set { this.codeElement3 = value; } - } - - /// - /// Gets or sets the codeelement4. - /// - /// The codeelement4. - public byte CodeElement4 - { - get { return this.codeElement4; } - set { this.codeElement4 = value; } - } - - /// - /// Gets or sets the status. - /// - /// The status. - public Type1Parameter3Mode3CodeStatus.StatusValue Status - { - get { return this.status; } - set { this.status = value; } - } - - /// - /// Gets or sets the damage. - /// - /// The damage. - public Type1Parameter3Mode3CodeStatus.DamageValue Damage - { - get { return this.damage; } - set { this.damage = value; } - } - - /// - /// Gets or sets the malfunction. - /// - /// The malfunction. - public Type1Parameter3Mode3CodeStatus.MalfunctionValue Malfunction - { - get { return this.malfunction; } - set { this.malfunction = value; } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - if (obj == null) - { - return false; - } - - if (!(obj is Type1Parameter3Mode3CodeStatus)) - { - return false; - } - - return this.Equals((Type1Parameter3Mode3CodeStatus)obj); - } - - /// - /// Determines whether the specified instance is equal to this instance. - /// - /// The instance to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public bool Equals(Type1Parameter3Mode3CodeStatus other) - { - // If parameter is null return false (cast to object to prevent recursive loop!) - if ((object)other == null) - { - return false; - } - - return - this.CodeElement1 == other.CodeElement1 && - this.CodeElement2 == other.CodeElement2 && - this.CodeElement3 == other.CodeElement3 && - this.CodeElement4 == other.CodeElement4 && - this.Status == other.Status && - this.Damage == other.Damage && - this.Malfunction == other.Malfunction; - } - - /// - /// Converts the instance of to the byte array. - /// - /// The byte array representing the current instance. - public byte[] ToByteArray() - { - return BitConverter.GetBytes(this.ToUInt16()); - } - - /// - /// Converts the instance of to the ushort value. - /// - /// The ushort value representing the current instance. - public ushort ToUInt16() - { - ushort val = 0; - - val |= (ushort)((uint)this.CodeElement1 << 0); - val |= (ushort)((uint)this.CodeElement2 << 3); - val |= (ushort)((uint)this.CodeElement3 << 6); - val |= (ushort)((uint)this.CodeElement4 << 9); - val |= (ushort)((uint)this.Status << 13); - val |= (ushort)((uint)this.Damage << 14); - val |= (ushort)((uint)this.Malfunction << 15); - - return val; - } - - /// - /// Returns a hash code for this instance. - /// - /// - /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - /// - public override int GetHashCode() - { - int hash = 17; - - // Overflow is fine, just wrap - unchecked - { - hash = (hash * 29) + this.CodeElement1.GetHashCode(); - hash = (hash * 29) + this.CodeElement2.GetHashCode(); - hash = (hash * 29) + this.CodeElement3.GetHashCode(); - hash = (hash * 29) + this.CodeElement4.GetHashCode(); - hash = (hash * 29) + this.Status.GetHashCode(); - hash = (hash * 29) + this.Damage.GetHashCode(); - hash = (hash * 29) + this.Malfunction.GetHashCode(); - } - - return hash; - } - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for Type1Parameter3Mode3CodeStatus (der.iff.type.1.fop.param3, Parameter 3 - Mode 3 Code/Status, + /// section 8.3.1.2.4) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public struct Type1Parameter3Mode3CodeStatus + { + /// + /// Status + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Status")] + public enum StatusValue : uint + { + /// + /// Off + /// + Off = 0, + + /// + /// On + /// + On = 1 + } + + /// + /// Damage + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Damage")] + public enum DamageValue : uint + { + /// + /// No damage + /// + NoDamage = 0, + + /// + /// Damage + /// + Damage = 1 + } + + /// + /// Malfunction + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Malfunction")] + public enum MalfunctionValue : uint + { + /// + /// No malfunction + /// + NoMalfunction = 0, + + /// + /// Malfunction + /// + Malfunction = 1 + } + + private byte codeElement1; + private byte codeElement2; + private byte codeElement3; + private byte codeElement4; + private Type1Parameter3Mode3CodeStatus.StatusValue status; + private Type1Parameter3Mode3CodeStatus.DamageValue damage; + private Type1Parameter3Mode3CodeStatus.MalfunctionValue malfunction; + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(Type1Parameter3Mode3CodeStatus left, Type1Parameter3Mode3CodeStatus right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator ==(Type1Parameter3Mode3CodeStatus left, Type1Parameter3Mode3CodeStatus right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + // If parameters are null return false (cast to object to prevent recursive loop!) + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The scheme instance. + /// The result of the conversion. + public static explicit operator ushort(Type1Parameter3Mode3CodeStatus obj) + { + return obj.ToUInt16(); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The ushort value. + /// The result of the conversion. + public static explicit operator Type1Parameter3Mode3CodeStatus(ushort value) + { + return Type1Parameter3Mode3CodeStatus.FromUInt16(value); + } + + /// + /// Creates the instance from the byte array. + /// + /// The array which holds the values for the . + /// The starting position within value. + /// The instance, represented by a byte array. + /// if the array is null. + /// if the index is lower than 0 or greater or equal than number of elements in array. + public static Type1Parameter3Mode3CodeStatus FromByteArray(byte[] array, int index) + { + if (array == null) + { + throw new ArgumentNullException("array"); + } + + if (index < 0 || + index > array.Length - 1 || + index + 2 > array.Length - 1) + { + throw new IndexOutOfRangeException(); + } + + return FromUInt16(BitConverter.ToUInt16(array, index)); + } + + /// + /// Creates the instance from the ushort value. + /// + /// The ushort value which represents the instance. + /// The instance, represented by the ushort value. + public static Type1Parameter3Mode3CodeStatus FromUInt16(ushort value) + { + Type1Parameter3Mode3CodeStatus ps = new Type1Parameter3Mode3CodeStatus(); + + uint mask0 = 0x0007; + byte shift0 = 0; + uint newValue0 = (value & mask0) >> shift0; + ps.CodeElement1 = (byte)newValue0; + + uint mask1 = 0x0038; + byte shift1 = 3; + uint newValue1 = (value & mask1) >> shift1; + ps.CodeElement2 = (byte)newValue1; + + uint mask2 = 0x01c0; + byte shift2 = 6; + uint newValue2 = (value & mask2) >> shift2; + ps.CodeElement3 = (byte)newValue2; + + uint mask3 = 0x0e00; + byte shift3 = 9; + uint newValue3 = (value & mask3) >> shift3; + ps.CodeElement4 = (byte)newValue3; + + uint mask5 = 0x2000; + byte shift5 = 13; + uint newValue5 = (value & mask5) >> shift5; + ps.Status = (Type1Parameter3Mode3CodeStatus.StatusValue)newValue5; + + uint mask6 = 0x4000; + byte shift6 = 14; + uint newValue6 = (value & mask6) >> shift6; + ps.Damage = (Type1Parameter3Mode3CodeStatus.DamageValue)newValue6; + + uint mask7 = 0x8000; + byte shift7 = 15; + uint newValue7 = (value & mask7) >> shift7; + ps.Malfunction = (Type1Parameter3Mode3CodeStatus.MalfunctionValue)newValue7; + + return ps; + } + + /// + /// Gets or sets the codeelement1. + /// + /// The codeelement1. + public byte CodeElement1 + { + get { return this.codeElement1; } + set { this.codeElement1 = value; } + } + + /// + /// Gets or sets the codeelement2. + /// + /// The codeelement2. + public byte CodeElement2 + { + get { return this.codeElement2; } + set { this.codeElement2 = value; } + } + + /// + /// Gets or sets the codeelement3. + /// + /// The codeelement3. + public byte CodeElement3 + { + get { return this.codeElement3; } + set { this.codeElement3 = value; } + } + + /// + /// Gets or sets the codeelement4. + /// + /// The codeelement4. + public byte CodeElement4 + { + get { return this.codeElement4; } + set { this.codeElement4 = value; } + } + + /// + /// Gets or sets the status. + /// + /// The status. + public Type1Parameter3Mode3CodeStatus.StatusValue Status + { + get { return this.status; } + set { this.status = value; } + } + + /// + /// Gets or sets the damage. + /// + /// The damage. + public Type1Parameter3Mode3CodeStatus.DamageValue Damage + { + get { return this.damage; } + set { this.damage = value; } + } + + /// + /// Gets or sets the malfunction. + /// + /// The malfunction. + public Type1Parameter3Mode3CodeStatus.MalfunctionValue Malfunction + { + get { return this.malfunction; } + set { this.malfunction = value; } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (!(obj is Type1Parameter3Mode3CodeStatus)) + { + return false; + } + + return this.Equals((Type1Parameter3Mode3CodeStatus)obj); + } + + /// + /// Determines whether the specified instance is equal to this instance. + /// + /// The instance to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public bool Equals(Type1Parameter3Mode3CodeStatus other) + { + // If parameter is null return false (cast to object to prevent recursive loop!) + if ((object)other == null) + { + return false; + } + + return + this.CodeElement1 == other.CodeElement1 && + this.CodeElement2 == other.CodeElement2 && + this.CodeElement3 == other.CodeElement3 && + this.CodeElement4 == other.CodeElement4 && + this.Status == other.Status && + this.Damage == other.Damage && + this.Malfunction == other.Malfunction; + } + + /// + /// Converts the instance of to the byte array. + /// + /// The byte array representing the current instance. + public byte[] ToByteArray() + { + return BitConverter.GetBytes(this.ToUInt16()); + } + + /// + /// Converts the instance of to the ushort value. + /// + /// The ushort value representing the current instance. + public ushort ToUInt16() + { + ushort val = 0; + + val |= (ushort)((uint)this.CodeElement1 << 0); + val |= (ushort)((uint)this.CodeElement2 << 3); + val |= (ushort)((uint)this.CodeElement3 << 6); + val |= (ushort)((uint)this.CodeElement4 << 9); + val |= (ushort)((uint)this.Status << 13); + val |= (ushort)((uint)this.Damage << 14); + val |= (ushort)((uint)this.Malfunction << 15); + + return val; + } + + /// + /// Returns a hash code for this instance. + /// + /// + /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + /// + public override int GetHashCode() + { + int hash = 17; + + // Overflow is fine, just wrap + unchecked + { + hash = (hash * 29) + this.CodeElement1.GetHashCode(); + hash = (hash * 29) + this.CodeElement2.GetHashCode(); + hash = (hash * 29) + this.CodeElement3.GetHashCode(); + hash = (hash * 29) + this.CodeElement4.GetHashCode(); + hash = (hash * 29) + this.Status.GetHashCode(); + hash = (hash * 29) + this.Damage.GetHashCode(); + hash = (hash * 29) + this.Malfunction.GetHashCode(); + } + + return hash; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter4Mode4CodeStatus.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type1Parameter4Mode4CodeStatus.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter4Mode4CodeStatus.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type1Parameter4Mode4CodeStatus.cs index b98f51d..f40344b 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter4Mode4CodeStatus.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type1Parameter4Mode4CodeStatus.cs @@ -1,363 +1,363 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for Type1Parameter4Mode4CodeStatus (der.iff.type.1.fop.param4, Parameter 4 - Mode 4 Code/Status, - /// section 8.3.1.2.5) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public struct Type1Parameter4Mode4CodeStatus - { - /// - /// Code element 1 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Code element 1")] - public enum CodeElement1Value : uint - { - /// - /// Pseudo-Crypto value - /// - PseudoCryptoValue = 0, - - /// - /// No Pseudo-Crypto value. Use Alternate Mode 4 value - /// - NoPseudoCryptoValueUseAlternateMode4Value = 4095 - } - - /// - /// Status - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Status")] - public enum StatusValue : uint - { - /// - /// Off - /// - Off = 0, - - /// - /// On - /// - On = 1 - } - - /// - /// Damage - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Damage")] - public enum DamageValue : uint - { - /// - /// No damage - /// - NoDamage = 0, - - /// - /// Damage - /// - Damage = 1 - } - - /// - /// Malfunction - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Malfunction")] - public enum MalfunctionValue : uint - { - /// - /// No malfunction - /// - NoMalfunction = 0, - - /// - /// Malfunction - /// - Malfunction = 1 - } - - private Type1Parameter4Mode4CodeStatus.CodeElement1Value codeElement1; - private Type1Parameter4Mode4CodeStatus.StatusValue status; - private Type1Parameter4Mode4CodeStatus.DamageValue damage; - private Type1Parameter4Mode4CodeStatus.MalfunctionValue malfunction; - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(Type1Parameter4Mode4CodeStatus left, Type1Parameter4Mode4CodeStatus right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator ==(Type1Parameter4Mode4CodeStatus left, Type1Parameter4Mode4CodeStatus right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - // If parameters are null return false (cast to object to prevent recursive loop!) - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The scheme instance. - /// The result of the conversion. - public static explicit operator ushort(Type1Parameter4Mode4CodeStatus obj) - { - return obj.ToUInt16(); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The ushort value. - /// The result of the conversion. - public static explicit operator Type1Parameter4Mode4CodeStatus(ushort value) - { - return Type1Parameter4Mode4CodeStatus.FromUInt16(value); - } - - /// - /// Creates the instance from the byte array. - /// - /// The array which holds the values for the . - /// The starting position within value. - /// The instance, represented by a byte array. - /// if the array is null. - /// if the index is lower than 0 or greater or equal than number of elements in array. - public static Type1Parameter4Mode4CodeStatus FromByteArray(byte[] array, int index) - { - if (array == null) - { - throw new ArgumentNullException("array"); - } - - if (index < 0 || - index > array.Length - 1 || - index + 2 > array.Length - 1) - { - throw new IndexOutOfRangeException(); - } - - return FromUInt16(BitConverter.ToUInt16(array, index)); - } - - /// - /// Creates the instance from the ushort value. - /// - /// The ushort value which represents the instance. - /// The instance, represented by the ushort value. - public static Type1Parameter4Mode4CodeStatus FromUInt16(ushort value) - { - Type1Parameter4Mode4CodeStatus ps = new Type1Parameter4Mode4CodeStatus(); - - uint mask0 = 0x0fff; - byte shift0 = 0; - uint newValue0 = (value & mask0) >> shift0; - ps.CodeElement1 = (Type1Parameter4Mode4CodeStatus.CodeElement1Value)newValue0; - - uint mask2 = 0x2000; - byte shift2 = 13; - uint newValue2 = (value & mask2) >> shift2; - ps.Status = (Type1Parameter4Mode4CodeStatus.StatusValue)newValue2; - - uint mask3 = 0x4000; - byte shift3 = 14; - uint newValue3 = (value & mask3) >> shift3; - ps.Damage = (Type1Parameter4Mode4CodeStatus.DamageValue)newValue3; - - uint mask4 = 0x8000; - byte shift4 = 15; - uint newValue4 = (value & mask4) >> shift4; - ps.Malfunction = (Type1Parameter4Mode4CodeStatus.MalfunctionValue)newValue4; - - return ps; - } - - /// - /// Gets or sets the codeelement1. - /// - /// The codeelement1. - public Type1Parameter4Mode4CodeStatus.CodeElement1Value CodeElement1 - { - get { return this.codeElement1; } - set { this.codeElement1 = value; } - } - - /// - /// Gets or sets the status. - /// - /// The status. - public Type1Parameter4Mode4CodeStatus.StatusValue Status - { - get { return this.status; } - set { this.status = value; } - } - - /// - /// Gets or sets the damage. - /// - /// The damage. - public Type1Parameter4Mode4CodeStatus.DamageValue Damage - { - get { return this.damage; } - set { this.damage = value; } - } - - /// - /// Gets or sets the malfunction. - /// - /// The malfunction. - public Type1Parameter4Mode4CodeStatus.MalfunctionValue Malfunction - { - get { return this.malfunction; } - set { this.malfunction = value; } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - if (obj == null) - { - return false; - } - - if (!(obj is Type1Parameter4Mode4CodeStatus)) - { - return false; - } - - return this.Equals((Type1Parameter4Mode4CodeStatus)obj); - } - - /// - /// Determines whether the specified instance is equal to this instance. - /// - /// The instance to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public bool Equals(Type1Parameter4Mode4CodeStatus other) - { - // If parameter is null return false (cast to object to prevent recursive loop!) - if ((object)other == null) - { - return false; - } - - return - this.CodeElement1 == other.CodeElement1 && - this.Status == other.Status && - this.Damage == other.Damage && - this.Malfunction == other.Malfunction; - } - - /// - /// Converts the instance of to the byte array. - /// - /// The byte array representing the current instance. - public byte[] ToByteArray() - { - return BitConverter.GetBytes(this.ToUInt16()); - } - - /// - /// Converts the instance of to the ushort value. - /// - /// The ushort value representing the current instance. - public ushort ToUInt16() - { - ushort val = 0; - - val |= (ushort)((uint)this.CodeElement1 << 0); - val |= (ushort)((uint)this.Status << 13); - val |= (ushort)((uint)this.Damage << 14); - val |= (ushort)((uint)this.Malfunction << 15); - - return val; - } - - /// - /// Returns a hash code for this instance. - /// - /// - /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - /// - public override int GetHashCode() - { - int hash = 17; - - // Overflow is fine, just wrap - unchecked - { - hash = (hash * 29) + this.CodeElement1.GetHashCode(); - hash = (hash * 29) + this.Status.GetHashCode(); - hash = (hash * 29) + this.Damage.GetHashCode(); - hash = (hash * 29) + this.Malfunction.GetHashCode(); - } - - return hash; - } - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for Type1Parameter4Mode4CodeStatus (der.iff.type.1.fop.param4, Parameter 4 - Mode 4 Code/Status, + /// section 8.3.1.2.5) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public struct Type1Parameter4Mode4CodeStatus + { + /// + /// Code element 1 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Code element 1")] + public enum CodeElement1Value : uint + { + /// + /// Pseudo-Crypto value + /// + PseudoCryptoValue = 0, + + /// + /// No Pseudo-Crypto value. Use Alternate Mode 4 value + /// + NoPseudoCryptoValueUseAlternateMode4Value = 4095 + } + + /// + /// Status + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Status")] + public enum StatusValue : uint + { + /// + /// Off + /// + Off = 0, + + /// + /// On + /// + On = 1 + } + + /// + /// Damage + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Damage")] + public enum DamageValue : uint + { + /// + /// No damage + /// + NoDamage = 0, + + /// + /// Damage + /// + Damage = 1 + } + + /// + /// Malfunction + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Malfunction")] + public enum MalfunctionValue : uint + { + /// + /// No malfunction + /// + NoMalfunction = 0, + + /// + /// Malfunction + /// + Malfunction = 1 + } + + private Type1Parameter4Mode4CodeStatus.CodeElement1Value codeElement1; + private Type1Parameter4Mode4CodeStatus.StatusValue status; + private Type1Parameter4Mode4CodeStatus.DamageValue damage; + private Type1Parameter4Mode4CodeStatus.MalfunctionValue malfunction; + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(Type1Parameter4Mode4CodeStatus left, Type1Parameter4Mode4CodeStatus right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator ==(Type1Parameter4Mode4CodeStatus left, Type1Parameter4Mode4CodeStatus right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + // If parameters are null return false (cast to object to prevent recursive loop!) + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The scheme instance. + /// The result of the conversion. + public static explicit operator ushort(Type1Parameter4Mode4CodeStatus obj) + { + return obj.ToUInt16(); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The ushort value. + /// The result of the conversion. + public static explicit operator Type1Parameter4Mode4CodeStatus(ushort value) + { + return Type1Parameter4Mode4CodeStatus.FromUInt16(value); + } + + /// + /// Creates the instance from the byte array. + /// + /// The array which holds the values for the . + /// The starting position within value. + /// The instance, represented by a byte array. + /// if the array is null. + /// if the index is lower than 0 or greater or equal than number of elements in array. + public static Type1Parameter4Mode4CodeStatus FromByteArray(byte[] array, int index) + { + if (array == null) + { + throw new ArgumentNullException("array"); + } + + if (index < 0 || + index > array.Length - 1 || + index + 2 > array.Length - 1) + { + throw new IndexOutOfRangeException(); + } + + return FromUInt16(BitConverter.ToUInt16(array, index)); + } + + /// + /// Creates the instance from the ushort value. + /// + /// The ushort value which represents the instance. + /// The instance, represented by the ushort value. + public static Type1Parameter4Mode4CodeStatus FromUInt16(ushort value) + { + Type1Parameter4Mode4CodeStatus ps = new Type1Parameter4Mode4CodeStatus(); + + uint mask0 = 0x0fff; + byte shift0 = 0; + uint newValue0 = (value & mask0) >> shift0; + ps.CodeElement1 = (Type1Parameter4Mode4CodeStatus.CodeElement1Value)newValue0; + + uint mask2 = 0x2000; + byte shift2 = 13; + uint newValue2 = (value & mask2) >> shift2; + ps.Status = (Type1Parameter4Mode4CodeStatus.StatusValue)newValue2; + + uint mask3 = 0x4000; + byte shift3 = 14; + uint newValue3 = (value & mask3) >> shift3; + ps.Damage = (Type1Parameter4Mode4CodeStatus.DamageValue)newValue3; + + uint mask4 = 0x8000; + byte shift4 = 15; + uint newValue4 = (value & mask4) >> shift4; + ps.Malfunction = (Type1Parameter4Mode4CodeStatus.MalfunctionValue)newValue4; + + return ps; + } + + /// + /// Gets or sets the codeelement1. + /// + /// The codeelement1. + public Type1Parameter4Mode4CodeStatus.CodeElement1Value CodeElement1 + { + get { return this.codeElement1; } + set { this.codeElement1 = value; } + } + + /// + /// Gets or sets the status. + /// + /// The status. + public Type1Parameter4Mode4CodeStatus.StatusValue Status + { + get { return this.status; } + set { this.status = value; } + } + + /// + /// Gets or sets the damage. + /// + /// The damage. + public Type1Parameter4Mode4CodeStatus.DamageValue Damage + { + get { return this.damage; } + set { this.damage = value; } + } + + /// + /// Gets or sets the malfunction. + /// + /// The malfunction. + public Type1Parameter4Mode4CodeStatus.MalfunctionValue Malfunction + { + get { return this.malfunction; } + set { this.malfunction = value; } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (!(obj is Type1Parameter4Mode4CodeStatus)) + { + return false; + } + + return this.Equals((Type1Parameter4Mode4CodeStatus)obj); + } + + /// + /// Determines whether the specified instance is equal to this instance. + /// + /// The instance to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public bool Equals(Type1Parameter4Mode4CodeStatus other) + { + // If parameter is null return false (cast to object to prevent recursive loop!) + if ((object)other == null) + { + return false; + } + + return + this.CodeElement1 == other.CodeElement1 && + this.Status == other.Status && + this.Damage == other.Damage && + this.Malfunction == other.Malfunction; + } + + /// + /// Converts the instance of to the byte array. + /// + /// The byte array representing the current instance. + public byte[] ToByteArray() + { + return BitConverter.GetBytes(this.ToUInt16()); + } + + /// + /// Converts the instance of to the ushort value. + /// + /// The ushort value representing the current instance. + public ushort ToUInt16() + { + ushort val = 0; + + val |= (ushort)((uint)this.CodeElement1 << 0); + val |= (ushort)((uint)this.Status << 13); + val |= (ushort)((uint)this.Damage << 14); + val |= (ushort)((uint)this.Malfunction << 15); + + return val; + } + + /// + /// Returns a hash code for this instance. + /// + /// + /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + /// + public override int GetHashCode() + { + int hash = 17; + + // Overflow is fine, just wrap + unchecked + { + hash = (hash * 29) + this.CodeElement1.GetHashCode(); + hash = (hash * 29) + this.Status.GetHashCode(); + hash = (hash * 29) + this.Damage.GetHashCode(); + hash = (hash * 29) + this.Malfunction.GetHashCode(); + } + + return hash; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter5ModeCCodeStatus.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type1Parameter5ModeCCodeStatus.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter5ModeCCodeStatus.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type1Parameter5ModeCCodeStatus.cs index b5192a8..5f1b1c5 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter5ModeCCodeStatus.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type1Parameter5ModeCCodeStatus.cs @@ -1,403 +1,403 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for Type1Parameter5ModeCCodeStatus (der.iff.type.1.fop.param5, Parameter 5 - Mode C Code/Status, - /// section 8.3.1.2.6) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public struct Type1Parameter5ModeCCodeStatus - { - /// - /// Negative Altitude - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Negative Altitude")] - public enum NegativeAltitudeValue : uint - { - /// - /// Positive altitude above mean sea level Indicator if Mode C altitude is contained in Bits 1-11 - /// - PositiveAltitudeAboveMeanSeaLevelIndicatorIfModeCAltitudeIsContainedInBits111 = 0, - - /// - /// Negative altitude below mean sea level Indicator if Mode C altitude is contained in Bits 1-11, or, Alternate Mode 5 if altitude Bits 1-11 = 2047. - /// - NegativeAltitudeBelowMeanSeaLevelIndicatorIfModeCAltitudeIsContainedInBits111OrAlternateMode5IfAltitudeBits1112047 = 1 - } - - /// - /// Mode C altitude - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mode C altitude")] - public enum ModeCAltitudeValue : uint - { - /// - /// Actual Mode C altitude in the range 0-126,000 feet in 100-foot increments (Bit 0 - Negative / Positive Indicator must be set appropriately) - /// - ActualModeCAltitudeInTheRange0126000FeetIn100FootIncrementsBit0NegativePositiveIndicatorMustBeSetAppropriately = 0, - - /// - /// Not actual Mode C altitude value. Use alternate Mode 5 (Bits 0-11 = 4095 i.e. all 1-s) - /// - NotActualModeCAltitudeValueUseAlternateMode5Bits0114095IEAll1S = 2047 - } - - /// - /// Status - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Status")] - public enum StatusValue : uint - { - /// - /// Off - /// - Off = 0, - - /// - /// On - /// - On = 1 - } - - /// - /// Damage - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Damage")] - public enum DamageValue : uint - { - /// - /// No damage - /// - NoDamage = 0, - - /// - /// Damage - /// - Damage = 1 - } - - /// - /// Malfunction - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Malfunction")] - public enum MalfunctionValue : uint - { - /// - /// No malfunction - /// - NoMalfunction = 0, - - /// - /// Malfunction - /// - Malfunction = 1 - } - - private Type1Parameter5ModeCCodeStatus.NegativeAltitudeValue negativeAltitude; - private Type1Parameter5ModeCCodeStatus.ModeCAltitudeValue modeCAltitude; - private Type1Parameter5ModeCCodeStatus.StatusValue status; - private Type1Parameter5ModeCCodeStatus.DamageValue damage; - private Type1Parameter5ModeCCodeStatus.MalfunctionValue malfunction; - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(Type1Parameter5ModeCCodeStatus left, Type1Parameter5ModeCCodeStatus right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator ==(Type1Parameter5ModeCCodeStatus left, Type1Parameter5ModeCCodeStatus right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - // If parameters are null return false (cast to object to prevent recursive loop!) - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The scheme instance. - /// The result of the conversion. - public static explicit operator ushort(Type1Parameter5ModeCCodeStatus obj) - { - return obj.ToUInt16(); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The ushort value. - /// The result of the conversion. - public static explicit operator Type1Parameter5ModeCCodeStatus(ushort value) - { - return Type1Parameter5ModeCCodeStatus.FromUInt16(value); - } - - /// - /// Creates the instance from the byte array. - /// - /// The array which holds the values for the . - /// The starting position within value. - /// The instance, represented by a byte array. - /// if the array is null. - /// if the index is lower than 0 or greater or equal than number of elements in array. - public static Type1Parameter5ModeCCodeStatus FromByteArray(byte[] array, int index) - { - if (array == null) - { - throw new ArgumentNullException("array"); - } - - if (index < 0 || - index > array.Length - 1 || - index + 2 > array.Length - 1) - { - throw new IndexOutOfRangeException(); - } - - return FromUInt16(BitConverter.ToUInt16(array, index)); - } - - /// - /// Creates the instance from the ushort value. - /// - /// The ushort value which represents the instance. - /// The instance, represented by the ushort value. - public static Type1Parameter5ModeCCodeStatus FromUInt16(ushort value) - { - Type1Parameter5ModeCCodeStatus ps = new Type1Parameter5ModeCCodeStatus(); - - uint mask0 = 0x0001; - byte shift0 = 0; - uint newValue0 = (value & mask0) >> shift0; - ps.NegativeAltitude = (Type1Parameter5ModeCCodeStatus.NegativeAltitudeValue)newValue0; - - uint mask1 = 0x0ffe; - byte shift1 = 1; - uint newValue1 = (value & mask1) >> shift1; - ps.ModeCAltitude = (Type1Parameter5ModeCCodeStatus.ModeCAltitudeValue)newValue1; - - uint mask3 = 0x2000; - byte shift3 = 13; - uint newValue3 = (value & mask3) >> shift3; - ps.Status = (Type1Parameter5ModeCCodeStatus.StatusValue)newValue3; - - uint mask4 = 0x4000; - byte shift4 = 14; - uint newValue4 = (value & mask4) >> shift4; - ps.Damage = (Type1Parameter5ModeCCodeStatus.DamageValue)newValue4; - - uint mask5 = 0x8000; - byte shift5 = 15; - uint newValue5 = (value & mask5) >> shift5; - ps.Malfunction = (Type1Parameter5ModeCCodeStatus.MalfunctionValue)newValue5; - - return ps; - } - - /// - /// Gets or sets the negativealtitude. - /// - /// The negativealtitude. - public Type1Parameter5ModeCCodeStatus.NegativeAltitudeValue NegativeAltitude - { - get { return this.negativeAltitude; } - set { this.negativeAltitude = value; } - } - - /// - /// Gets or sets the modecaltitude. - /// - /// The modecaltitude. - public Type1Parameter5ModeCCodeStatus.ModeCAltitudeValue ModeCAltitude - { - get { return this.modeCAltitude; } - set { this.modeCAltitude = value; } - } - - /// - /// Gets or sets the status. - /// - /// The status. - public Type1Parameter5ModeCCodeStatus.StatusValue Status - { - get { return this.status; } - set { this.status = value; } - } - - /// - /// Gets or sets the damage. - /// - /// The damage. - public Type1Parameter5ModeCCodeStatus.DamageValue Damage - { - get { return this.damage; } - set { this.damage = value; } - } - - /// - /// Gets or sets the malfunction. - /// - /// The malfunction. - public Type1Parameter5ModeCCodeStatus.MalfunctionValue Malfunction - { - get { return this.malfunction; } - set { this.malfunction = value; } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - if (obj == null) - { - return false; - } - - if (!(obj is Type1Parameter5ModeCCodeStatus)) - { - return false; - } - - return this.Equals((Type1Parameter5ModeCCodeStatus)obj); - } - - /// - /// Determines whether the specified instance is equal to this instance. - /// - /// The instance to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public bool Equals(Type1Parameter5ModeCCodeStatus other) - { - // If parameter is null return false (cast to object to prevent recursive loop!) - if ((object)other == null) - { - return false; - } - - return - this.NegativeAltitude == other.NegativeAltitude && - this.ModeCAltitude == other.ModeCAltitude && - this.Status == other.Status && - this.Damage == other.Damage && - this.Malfunction == other.Malfunction; - } - - /// - /// Converts the instance of to the byte array. - /// - /// The byte array representing the current instance. - public byte[] ToByteArray() - { - return BitConverter.GetBytes(this.ToUInt16()); - } - - /// - /// Converts the instance of to the ushort value. - /// - /// The ushort value representing the current instance. - public ushort ToUInt16() - { - ushort val = 0; - - val |= (ushort)((uint)this.NegativeAltitude << 0); - val |= (ushort)((uint)this.ModeCAltitude << 1); - val |= (ushort)((uint)this.Status << 13); - val |= (ushort)((uint)this.Damage << 14); - val |= (ushort)((uint)this.Malfunction << 15); - - return val; - } - - /// - /// Returns a hash code for this instance. - /// - /// - /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - /// - public override int GetHashCode() - { - int hash = 17; - - // Overflow is fine, just wrap - unchecked - { - hash = (hash * 29) + this.NegativeAltitude.GetHashCode(); - hash = (hash * 29) + this.ModeCAltitude.GetHashCode(); - hash = (hash * 29) + this.Status.GetHashCode(); - hash = (hash * 29) + this.Damage.GetHashCode(); - hash = (hash * 29) + this.Malfunction.GetHashCode(); - } - - return hash; - } - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for Type1Parameter5ModeCCodeStatus (der.iff.type.1.fop.param5, Parameter 5 - Mode C Code/Status, + /// section 8.3.1.2.6) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public struct Type1Parameter5ModeCCodeStatus + { + /// + /// Negative Altitude + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Negative Altitude")] + public enum NegativeAltitudeValue : uint + { + /// + /// Positive altitude above mean sea level Indicator if Mode C altitude is contained in Bits 1-11 + /// + PositiveAltitudeAboveMeanSeaLevelIndicatorIfModeCAltitudeIsContainedInBits111 = 0, + + /// + /// Negative altitude below mean sea level Indicator if Mode C altitude is contained in Bits 1-11, or, Alternate Mode 5 if altitude Bits 1-11 = 2047. + /// + NegativeAltitudeBelowMeanSeaLevelIndicatorIfModeCAltitudeIsContainedInBits111OrAlternateMode5IfAltitudeBits1112047 = 1 + } + + /// + /// Mode C altitude + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mode C altitude")] + public enum ModeCAltitudeValue : uint + { + /// + /// Actual Mode C altitude in the range 0-126,000 feet in 100-foot increments (Bit 0 - Negative / Positive Indicator must be set appropriately) + /// + ActualModeCAltitudeInTheRange0126000FeetIn100FootIncrementsBit0NegativePositiveIndicatorMustBeSetAppropriately = 0, + + /// + /// Not actual Mode C altitude value. Use alternate Mode 5 (Bits 0-11 = 4095 i.e. all 1-s) + /// + NotActualModeCAltitudeValueUseAlternateMode5Bits0114095IEAll1S = 2047 + } + + /// + /// Status + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Status")] + public enum StatusValue : uint + { + /// + /// Off + /// + Off = 0, + + /// + /// On + /// + On = 1 + } + + /// + /// Damage + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Damage")] + public enum DamageValue : uint + { + /// + /// No damage + /// + NoDamage = 0, + + /// + /// Damage + /// + Damage = 1 + } + + /// + /// Malfunction + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Malfunction")] + public enum MalfunctionValue : uint + { + /// + /// No malfunction + /// + NoMalfunction = 0, + + /// + /// Malfunction + /// + Malfunction = 1 + } + + private Type1Parameter5ModeCCodeStatus.NegativeAltitudeValue negativeAltitude; + private Type1Parameter5ModeCCodeStatus.ModeCAltitudeValue modeCAltitude; + private Type1Parameter5ModeCCodeStatus.StatusValue status; + private Type1Parameter5ModeCCodeStatus.DamageValue damage; + private Type1Parameter5ModeCCodeStatus.MalfunctionValue malfunction; + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(Type1Parameter5ModeCCodeStatus left, Type1Parameter5ModeCCodeStatus right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator ==(Type1Parameter5ModeCCodeStatus left, Type1Parameter5ModeCCodeStatus right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + // If parameters are null return false (cast to object to prevent recursive loop!) + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The scheme instance. + /// The result of the conversion. + public static explicit operator ushort(Type1Parameter5ModeCCodeStatus obj) + { + return obj.ToUInt16(); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The ushort value. + /// The result of the conversion. + public static explicit operator Type1Parameter5ModeCCodeStatus(ushort value) + { + return Type1Parameter5ModeCCodeStatus.FromUInt16(value); + } + + /// + /// Creates the instance from the byte array. + /// + /// The array which holds the values for the . + /// The starting position within value. + /// The instance, represented by a byte array. + /// if the array is null. + /// if the index is lower than 0 or greater or equal than number of elements in array. + public static Type1Parameter5ModeCCodeStatus FromByteArray(byte[] array, int index) + { + if (array == null) + { + throw new ArgumentNullException("array"); + } + + if (index < 0 || + index > array.Length - 1 || + index + 2 > array.Length - 1) + { + throw new IndexOutOfRangeException(); + } + + return FromUInt16(BitConverter.ToUInt16(array, index)); + } + + /// + /// Creates the instance from the ushort value. + /// + /// The ushort value which represents the instance. + /// The instance, represented by the ushort value. + public static Type1Parameter5ModeCCodeStatus FromUInt16(ushort value) + { + Type1Parameter5ModeCCodeStatus ps = new Type1Parameter5ModeCCodeStatus(); + + uint mask0 = 0x0001; + byte shift0 = 0; + uint newValue0 = (value & mask0) >> shift0; + ps.NegativeAltitude = (Type1Parameter5ModeCCodeStatus.NegativeAltitudeValue)newValue0; + + uint mask1 = 0x0ffe; + byte shift1 = 1; + uint newValue1 = (value & mask1) >> shift1; + ps.ModeCAltitude = (Type1Parameter5ModeCCodeStatus.ModeCAltitudeValue)newValue1; + + uint mask3 = 0x2000; + byte shift3 = 13; + uint newValue3 = (value & mask3) >> shift3; + ps.Status = (Type1Parameter5ModeCCodeStatus.StatusValue)newValue3; + + uint mask4 = 0x4000; + byte shift4 = 14; + uint newValue4 = (value & mask4) >> shift4; + ps.Damage = (Type1Parameter5ModeCCodeStatus.DamageValue)newValue4; + + uint mask5 = 0x8000; + byte shift5 = 15; + uint newValue5 = (value & mask5) >> shift5; + ps.Malfunction = (Type1Parameter5ModeCCodeStatus.MalfunctionValue)newValue5; + + return ps; + } + + /// + /// Gets or sets the negativealtitude. + /// + /// The negativealtitude. + public Type1Parameter5ModeCCodeStatus.NegativeAltitudeValue NegativeAltitude + { + get { return this.negativeAltitude; } + set { this.negativeAltitude = value; } + } + + /// + /// Gets or sets the modecaltitude. + /// + /// The modecaltitude. + public Type1Parameter5ModeCCodeStatus.ModeCAltitudeValue ModeCAltitude + { + get { return this.modeCAltitude; } + set { this.modeCAltitude = value; } + } + + /// + /// Gets or sets the status. + /// + /// The status. + public Type1Parameter5ModeCCodeStatus.StatusValue Status + { + get { return this.status; } + set { this.status = value; } + } + + /// + /// Gets or sets the damage. + /// + /// The damage. + public Type1Parameter5ModeCCodeStatus.DamageValue Damage + { + get { return this.damage; } + set { this.damage = value; } + } + + /// + /// Gets or sets the malfunction. + /// + /// The malfunction. + public Type1Parameter5ModeCCodeStatus.MalfunctionValue Malfunction + { + get { return this.malfunction; } + set { this.malfunction = value; } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (!(obj is Type1Parameter5ModeCCodeStatus)) + { + return false; + } + + return this.Equals((Type1Parameter5ModeCCodeStatus)obj); + } + + /// + /// Determines whether the specified instance is equal to this instance. + /// + /// The instance to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public bool Equals(Type1Parameter5ModeCCodeStatus other) + { + // If parameter is null return false (cast to object to prevent recursive loop!) + if ((object)other == null) + { + return false; + } + + return + this.NegativeAltitude == other.NegativeAltitude && + this.ModeCAltitude == other.ModeCAltitude && + this.Status == other.Status && + this.Damage == other.Damage && + this.Malfunction == other.Malfunction; + } + + /// + /// Converts the instance of to the byte array. + /// + /// The byte array representing the current instance. + public byte[] ToByteArray() + { + return BitConverter.GetBytes(this.ToUInt16()); + } + + /// + /// Converts the instance of to the ushort value. + /// + /// The ushort value representing the current instance. + public ushort ToUInt16() + { + ushort val = 0; + + val |= (ushort)((uint)this.NegativeAltitude << 0); + val |= (ushort)((uint)this.ModeCAltitude << 1); + val |= (ushort)((uint)this.Status << 13); + val |= (ushort)((uint)this.Damage << 14); + val |= (ushort)((uint)this.Malfunction << 15); + + return val; + } + + /// + /// Returns a hash code for this instance. + /// + /// + /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + /// + public override int GetHashCode() + { + int hash = 17; + + // Overflow is fine, just wrap + unchecked + { + hash = (hash * 29) + this.NegativeAltitude.GetHashCode(); + hash = (hash * 29) + this.ModeCAltitude.GetHashCode(); + hash = (hash * 29) + this.Status.GetHashCode(); + hash = (hash * 29) + this.Damage.GetHashCode(); + hash = (hash * 29) + this.Malfunction.GetHashCode(); + } + + return hash; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter6ModeSCodeStatus.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type1Parameter6ModeSCodeStatus.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter6ModeSCodeStatus.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type1Parameter6ModeSCodeStatus.cs index 6b7aeee..62881f7 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type1Parameter6ModeSCodeStatus.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type1Parameter6ModeSCodeStatus.cs @@ -1,70 +1,70 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for Type1Parameter6ModeSCodeStatus (der.iff.type.1.fop.param6, Parameter 6 - Mode S Code/Status, - /// section 8.3.1.2.7) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - [Flags] - public enum Type1Parameter6ModeSCodeStatus : ushort - { - /// - /// Set bit means 'TCAS II', reset bit means 'TCAS I'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'TCAS II', reset bit means 'TCAS I'.")] - TCAS = 4096, - - /// - /// Set bit means 'On', reset bit means 'Off'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'On', reset bit means 'Off'.")] - Status = 8192, - - /// - /// Set bit means 'Damage', reset bit means 'No damage'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Damage', reset bit means 'No damage'.")] - Damage = 16384, - - /// - /// Set bit means 'Malfunction', reset bit means 'No malfunction'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Malfunction', reset bit means 'No malfunction'.")] - Malfunction = 32768 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for Type1Parameter6ModeSCodeStatus (der.iff.type.1.fop.param6, Parameter 6 - Mode S Code/Status, + /// section 8.3.1.2.7) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + [Flags] + public enum Type1Parameter6ModeSCodeStatus : ushort + { + /// + /// Set bit means 'TCAS II', reset bit means 'TCAS I'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'TCAS II', reset bit means 'TCAS I'.")] + TCAS = 4096, + + /// + /// Set bit means 'On', reset bit means 'Off'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'On', reset bit means 'Off'.")] + Status = 8192, + + /// + /// Set bit means 'Damage', reset bit means 'No damage'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Damage', reset bit means 'No damage'.")] + Damage = 16384, + + /// + /// Set bit means 'Malfunction', reset bit means 'No malfunction'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Malfunction', reset bit means 'No malfunction'.")] + Malfunction = 32768 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2AlternateParameter4.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type2AlternateParameter4.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2AlternateParameter4.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type2AlternateParameter4.cs index aa0bfab..568bc60 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2AlternateParameter4.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type2AlternateParameter4.cs @@ -1,69 +1,69 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for Type2AlternateParameter4 (der.iff.type.2.fop.altp4, Alternate Parameter 4, - /// section 8.3.1.2.9) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum Type2AlternateParameter4 : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Valid. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Valid.")] - Valid = 1, - - /// - /// Invalid. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Invalid.")] - Invalid = 2, - - /// - /// No response. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("No response.")] - NoResponse = 3 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for Type2AlternateParameter4 (der.iff.type.2.fop.altp4, Alternate Parameter 4, + /// section 8.3.1.2.9) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum Type2AlternateParameter4 : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Valid. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Valid.")] + Valid = 1, + + /// + /// Invalid. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Invalid.")] + Invalid = 2, + + /// + /// No response. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("No response.")] + NoResponse = 3 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2ChangeOptions.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type2ChangeOptions.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2ChangeOptions.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type2ChangeOptions.cs index 145e048..03abdd4 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2ChangeOptions.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type2ChangeOptions.cs @@ -1,60 +1,60 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for Type2ChangeOptions (der.iff.type.2.changeoptions, Change/Options, - /// section 8.3.2.1.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - [Flags] - public enum Type2ChangeOptions : byte - { - /// - /// Set bit means 'Initial report or change since last report', reset bit means 'No change since last report'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Initial report or change since last report', reset bit means 'No change since last report'.")] - ChangeIndicator = 1, - - /// - /// Set bit means 'Yes', reset bit means 'No'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Yes', reset bit means 'No'.")] - AlternateMode4 = 2, - - /// - /// Set bit means 'Yes', reset bit means 'No'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Yes', reset bit means 'No'.")] - AlternateModeC = 4 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for Type2ChangeOptions (der.iff.type.2.changeoptions, Change/Options, + /// section 8.3.2.1.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + [Flags] + public enum Type2ChangeOptions : byte + { + /// + /// Set bit means 'Initial report or change since last report', reset bit means 'No change since last report'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Initial report or change since last report', reset bit means 'No change since last report'.")] + ChangeIndicator = 1, + + /// + /// Set bit means 'Yes', reset bit means 'No'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Yes', reset bit means 'No'.")] + AlternateMode4 = 2, + + /// + /// Set bit means 'Yes', reset bit means 'No'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Yes', reset bit means 'No'.")] + AlternateModeC = 4 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2OperationalParameter1.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type2OperationalParameter1.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2OperationalParameter1.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type2OperationalParameter1.cs index e6f68a8..e0d1e05 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2OperationalParameter1.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type2OperationalParameter1.cs @@ -1,39 +1,39 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for Type2OperationalParameter1 (der.iff.type.2.sop.param1, Operational Parameter 1, - /// section 8.3.2.4.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum Type2OperationalParameter1 : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for Type2OperationalParameter1 (der.iff.type.2.sop.param1, Operational Parameter 1, + /// section 8.3.2.4.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum Type2OperationalParameter1 : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2OperationalParameter2.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type2OperationalParameter2.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2OperationalParameter2.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type2OperationalParameter2.cs index 07d32a2..2ef3582 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2OperationalParameter2.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type2OperationalParameter2.cs @@ -1,39 +1,39 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for Type2OperationalParameter2 (der.iff.type.2.sop.param2, Operational Parameter 2, - /// section 8.3.2.4.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum Type2OperationalParameter2 : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for Type2OperationalParameter2 (der.iff.type.2.sop.param2, Operational Parameter 2, + /// section 8.3.2.4.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum Type2OperationalParameter2 : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter1Mode1InterrogatorStatus.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type2Parameter1Mode1InterrogatorStatus.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter1Mode1InterrogatorStatus.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type2Parameter1Mode1InterrogatorStatus.cs index ee4593b..1f39a45 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter1Mode1InterrogatorStatus.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type2Parameter1Mode1InterrogatorStatus.cs @@ -1,60 +1,60 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for Type2Parameter1Mode1InterrogatorStatus (der.iff.type.2.fop.param1, Parameter 1 - Mode 1 Interrogator Status, - /// section 8.3.2.2.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - [Flags] - public enum Type2Parameter1Mode1InterrogatorStatus : ushort - { - /// - /// Set bit means 'On', reset bit means 'Off'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'On', reset bit means 'Off'.")] - Status = 8192, - - /// - /// Set bit means 'Damage', reset bit means 'No damage'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Damage', reset bit means 'No damage'.")] - Damage = 16384, - - /// - /// Set bit means 'Malfunction', reset bit means 'No malfunction'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Malfunction', reset bit means 'No malfunction'.")] - Malfunction = 32768 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for Type2Parameter1Mode1InterrogatorStatus (der.iff.type.2.fop.param1, Parameter 1 - Mode 1 Interrogator Status, + /// section 8.3.2.2.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + [Flags] + public enum Type2Parameter1Mode1InterrogatorStatus : ushort + { + /// + /// Set bit means 'On', reset bit means 'Off'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'On', reset bit means 'Off'.")] + Status = 8192, + + /// + /// Set bit means 'Damage', reset bit means 'No damage'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Damage', reset bit means 'No damage'.")] + Damage = 16384, + + /// + /// Set bit means 'Malfunction', reset bit means 'No malfunction'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Malfunction', reset bit means 'No malfunction'.")] + Malfunction = 32768 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter2Mode2InterrogatorStatus.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type2Parameter2Mode2InterrogatorStatus.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter2Mode2InterrogatorStatus.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type2Parameter2Mode2InterrogatorStatus.cs index 3626fa8..4e0ca54 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter2Mode2InterrogatorStatus.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type2Parameter2Mode2InterrogatorStatus.cs @@ -1,60 +1,60 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for Type2Parameter2Mode2InterrogatorStatus (der.iff.type.2.fop.param2, Parameter 2 - Mode 2 Interrogator Status, - /// section 8.3.2.2.3) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - [Flags] - public enum Type2Parameter2Mode2InterrogatorStatus : ushort - { - /// - /// Set bit means 'On', reset bit means 'Off'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'On', reset bit means 'Off'.")] - Status = 8192, - - /// - /// Set bit means 'Damage', reset bit means 'No damage'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Damage', reset bit means 'No damage'.")] - Damage = 16384, - - /// - /// Set bit means 'Malfunction', reset bit means 'No malfunction'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Malfunction', reset bit means 'No malfunction'.")] - Malfunction = 32768 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for Type2Parameter2Mode2InterrogatorStatus (der.iff.type.2.fop.param2, Parameter 2 - Mode 2 Interrogator Status, + /// section 8.3.2.2.3) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + [Flags] + public enum Type2Parameter2Mode2InterrogatorStatus : ushort + { + /// + /// Set bit means 'On', reset bit means 'Off'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'On', reset bit means 'Off'.")] + Status = 8192, + + /// + /// Set bit means 'Damage', reset bit means 'No damage'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Damage', reset bit means 'No damage'.")] + Damage = 16384, + + /// + /// Set bit means 'Malfunction', reset bit means 'No malfunction'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Malfunction', reset bit means 'No malfunction'.")] + Malfunction = 32768 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter3Mode3InterrogatorStatus.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type2Parameter3Mode3InterrogatorStatus.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter3Mode3InterrogatorStatus.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type2Parameter3Mode3InterrogatorStatus.cs index 1d931d0..cff97d5 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter3Mode3InterrogatorStatus.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type2Parameter3Mode3InterrogatorStatus.cs @@ -1,60 +1,60 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for Type2Parameter3Mode3InterrogatorStatus (der.iff.type.2.fop.param3, Parameter 3 - Mode 3 Interrogator Status, - /// section 8.3.2.2.4) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - [Flags] - public enum Type2Parameter3Mode3InterrogatorStatus : ushort - { - /// - /// Set bit means 'On', reset bit means 'Off'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'On', reset bit means 'Off'.")] - Status = 8192, - - /// - /// Set bit means 'Damage', reset bit means 'No damage'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Damage', reset bit means 'No damage'.")] - Damage = 16384, - - /// - /// Set bit means 'Malfunction', reset bit means 'No malfunction'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Malfunction', reset bit means 'No malfunction'.")] - Malfunction = 32768 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for Type2Parameter3Mode3InterrogatorStatus (der.iff.type.2.fop.param3, Parameter 3 - Mode 3 Interrogator Status, + /// section 8.3.2.2.4) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + [Flags] + public enum Type2Parameter3Mode3InterrogatorStatus : ushort + { + /// + /// Set bit means 'On', reset bit means 'Off'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'On', reset bit means 'Off'.")] + Status = 8192, + + /// + /// Set bit means 'Damage', reset bit means 'No damage'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Damage', reset bit means 'No damage'.")] + Damage = 16384, + + /// + /// Set bit means 'Malfunction', reset bit means 'No malfunction'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Malfunction', reset bit means 'No malfunction'.")] + Malfunction = 32768 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter4Mode4InterrogatorStatus.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type2Parameter4Mode4InterrogatorStatus.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter4Mode4InterrogatorStatus.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type2Parameter4Mode4InterrogatorStatus.cs index 6ecaab9..5f35de0 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter4Mode4InterrogatorStatus.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type2Parameter4Mode4InterrogatorStatus.cs @@ -1,363 +1,363 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for Type2Parameter4Mode4InterrogatorStatus (der.iff.type.2.fop.param4, Parameter 4 - Mode 4 Interrogator Status, - /// section 8.3.2.2.5) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public struct Type2Parameter4Mode4InterrogatorStatus - { - /// - /// Code element 1 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Code element 1")] - public enum CodeElement1Value : uint - { - /// - /// Pseudo-Crypto value - /// - PseudoCryptoValue = 0, - - /// - /// No Pseudo-Crypto value. Use Alternate Mode 4 value - /// - NoPseudoCryptoValueUseAlternateMode4Value = 4095 - } - - /// - /// Status - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Status")] - public enum StatusValue : uint - { - /// - /// Off - /// - Off = 0, - - /// - /// On - /// - On = 1 - } - - /// - /// Damage - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Damage")] - public enum DamageValue : uint - { - /// - /// No damage - /// - NoDamage = 0, - - /// - /// Damage - /// - Damage = 1 - } - - /// - /// Malfunction - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Malfunction")] - public enum MalfunctionValue : uint - { - /// - /// No malfunction - /// - NoMalfunction = 0, - - /// - /// Malfunction - /// - Malfunction = 1 - } - - private Type2Parameter4Mode4InterrogatorStatus.CodeElement1Value codeElement1; - private Type2Parameter4Mode4InterrogatorStatus.StatusValue status; - private Type2Parameter4Mode4InterrogatorStatus.DamageValue damage; - private Type2Parameter4Mode4InterrogatorStatus.MalfunctionValue malfunction; - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(Type2Parameter4Mode4InterrogatorStatus left, Type2Parameter4Mode4InterrogatorStatus right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator ==(Type2Parameter4Mode4InterrogatorStatus left, Type2Parameter4Mode4InterrogatorStatus right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - // If parameters are null return false (cast to object to prevent recursive loop!) - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The scheme instance. - /// The result of the conversion. - public static explicit operator ushort(Type2Parameter4Mode4InterrogatorStatus obj) - { - return obj.ToUInt16(); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The ushort value. - /// The result of the conversion. - public static explicit operator Type2Parameter4Mode4InterrogatorStatus(ushort value) - { - return Type2Parameter4Mode4InterrogatorStatus.FromUInt16(value); - } - - /// - /// Creates the instance from the byte array. - /// - /// The array which holds the values for the . - /// The starting position within value. - /// The instance, represented by a byte array. - /// if the array is null. - /// if the index is lower than 0 or greater or equal than number of elements in array. - public static Type2Parameter4Mode4InterrogatorStatus FromByteArray(byte[] array, int index) - { - if (array == null) - { - throw new ArgumentNullException("array"); - } - - if (index < 0 || - index > array.Length - 1 || - index + 2 > array.Length - 1) - { - throw new IndexOutOfRangeException(); - } - - return FromUInt16(BitConverter.ToUInt16(array, index)); - } - - /// - /// Creates the instance from the ushort value. - /// - /// The ushort value which represents the instance. - /// The instance, represented by the ushort value. - public static Type2Parameter4Mode4InterrogatorStatus FromUInt16(ushort value) - { - Type2Parameter4Mode4InterrogatorStatus ps = new Type2Parameter4Mode4InterrogatorStatus(); - - uint mask0 = 0x0fff; - byte shift0 = 0; - uint newValue0 = (value & mask0) >> shift0; - ps.CodeElement1 = (Type2Parameter4Mode4InterrogatorStatus.CodeElement1Value)newValue0; - - uint mask2 = 0x2000; - byte shift2 = 13; - uint newValue2 = (value & mask2) >> shift2; - ps.Status = (Type2Parameter4Mode4InterrogatorStatus.StatusValue)newValue2; - - uint mask3 = 0x4000; - byte shift3 = 14; - uint newValue3 = (value & mask3) >> shift3; - ps.Damage = (Type2Parameter4Mode4InterrogatorStatus.DamageValue)newValue3; - - uint mask4 = 0x8000; - byte shift4 = 15; - uint newValue4 = (value & mask4) >> shift4; - ps.Malfunction = (Type2Parameter4Mode4InterrogatorStatus.MalfunctionValue)newValue4; - - return ps; - } - - /// - /// Gets or sets the codeelement1. - /// - /// The codeelement1. - public Type2Parameter4Mode4InterrogatorStatus.CodeElement1Value CodeElement1 - { - get { return this.codeElement1; } - set { this.codeElement1 = value; } - } - - /// - /// Gets or sets the status. - /// - /// The status. - public Type2Parameter4Mode4InterrogatorStatus.StatusValue Status - { - get { return this.status; } - set { this.status = value; } - } - - /// - /// Gets or sets the damage. - /// - /// The damage. - public Type2Parameter4Mode4InterrogatorStatus.DamageValue Damage - { - get { return this.damage; } - set { this.damage = value; } - } - - /// - /// Gets or sets the malfunction. - /// - /// The malfunction. - public Type2Parameter4Mode4InterrogatorStatus.MalfunctionValue Malfunction - { - get { return this.malfunction; } - set { this.malfunction = value; } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - if (obj == null) - { - return false; - } - - if (!(obj is Type2Parameter4Mode4InterrogatorStatus)) - { - return false; - } - - return this.Equals((Type2Parameter4Mode4InterrogatorStatus)obj); - } - - /// - /// Determines whether the specified instance is equal to this instance. - /// - /// The instance to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public bool Equals(Type2Parameter4Mode4InterrogatorStatus other) - { - // If parameter is null return false (cast to object to prevent recursive loop!) - if ((object)other == null) - { - return false; - } - - return - this.CodeElement1 == other.CodeElement1 && - this.Status == other.Status && - this.Damage == other.Damage && - this.Malfunction == other.Malfunction; - } - - /// - /// Converts the instance of to the byte array. - /// - /// The byte array representing the current instance. - public byte[] ToByteArray() - { - return BitConverter.GetBytes(this.ToUInt16()); - } - - /// - /// Converts the instance of to the ushort value. - /// - /// The ushort value representing the current instance. - public ushort ToUInt16() - { - ushort val = 0; - - val |= (ushort)((uint)this.CodeElement1 << 0); - val |= (ushort)((uint)this.Status << 13); - val |= (ushort)((uint)this.Damage << 14); - val |= (ushort)((uint)this.Malfunction << 15); - - return val; - } - - /// - /// Returns a hash code for this instance. - /// - /// - /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - /// - public override int GetHashCode() - { - int hash = 17; - - // Overflow is fine, just wrap - unchecked - { - hash = (hash * 29) + this.CodeElement1.GetHashCode(); - hash = (hash * 29) + this.Status.GetHashCode(); - hash = (hash * 29) + this.Damage.GetHashCode(); - hash = (hash * 29) + this.Malfunction.GetHashCode(); - } - - return hash; - } - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for Type2Parameter4Mode4InterrogatorStatus (der.iff.type.2.fop.param4, Parameter 4 - Mode 4 Interrogator Status, + /// section 8.3.2.2.5) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public struct Type2Parameter4Mode4InterrogatorStatus + { + /// + /// Code element 1 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Code element 1")] + public enum CodeElement1Value : uint + { + /// + /// Pseudo-Crypto value + /// + PseudoCryptoValue = 0, + + /// + /// No Pseudo-Crypto value. Use Alternate Mode 4 value + /// + NoPseudoCryptoValueUseAlternateMode4Value = 4095 + } + + /// + /// Status + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Status")] + public enum StatusValue : uint + { + /// + /// Off + /// + Off = 0, + + /// + /// On + /// + On = 1 + } + + /// + /// Damage + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Damage")] + public enum DamageValue : uint + { + /// + /// No damage + /// + NoDamage = 0, + + /// + /// Damage + /// + Damage = 1 + } + + /// + /// Malfunction + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Malfunction")] + public enum MalfunctionValue : uint + { + /// + /// No malfunction + /// + NoMalfunction = 0, + + /// + /// Malfunction + /// + Malfunction = 1 + } + + private Type2Parameter4Mode4InterrogatorStatus.CodeElement1Value codeElement1; + private Type2Parameter4Mode4InterrogatorStatus.StatusValue status; + private Type2Parameter4Mode4InterrogatorStatus.DamageValue damage; + private Type2Parameter4Mode4InterrogatorStatus.MalfunctionValue malfunction; + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(Type2Parameter4Mode4InterrogatorStatus left, Type2Parameter4Mode4InterrogatorStatus right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator ==(Type2Parameter4Mode4InterrogatorStatus left, Type2Parameter4Mode4InterrogatorStatus right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + // If parameters are null return false (cast to object to prevent recursive loop!) + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The scheme instance. + /// The result of the conversion. + public static explicit operator ushort(Type2Parameter4Mode4InterrogatorStatus obj) + { + return obj.ToUInt16(); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The ushort value. + /// The result of the conversion. + public static explicit operator Type2Parameter4Mode4InterrogatorStatus(ushort value) + { + return Type2Parameter4Mode4InterrogatorStatus.FromUInt16(value); + } + + /// + /// Creates the instance from the byte array. + /// + /// The array which holds the values for the . + /// The starting position within value. + /// The instance, represented by a byte array. + /// if the array is null. + /// if the index is lower than 0 or greater or equal than number of elements in array. + public static Type2Parameter4Mode4InterrogatorStatus FromByteArray(byte[] array, int index) + { + if (array == null) + { + throw new ArgumentNullException("array"); + } + + if (index < 0 || + index > array.Length - 1 || + index + 2 > array.Length - 1) + { + throw new IndexOutOfRangeException(); + } + + return FromUInt16(BitConverter.ToUInt16(array, index)); + } + + /// + /// Creates the instance from the ushort value. + /// + /// The ushort value which represents the instance. + /// The instance, represented by the ushort value. + public static Type2Parameter4Mode4InterrogatorStatus FromUInt16(ushort value) + { + Type2Parameter4Mode4InterrogatorStatus ps = new Type2Parameter4Mode4InterrogatorStatus(); + + uint mask0 = 0x0fff; + byte shift0 = 0; + uint newValue0 = (value & mask0) >> shift0; + ps.CodeElement1 = (Type2Parameter4Mode4InterrogatorStatus.CodeElement1Value)newValue0; + + uint mask2 = 0x2000; + byte shift2 = 13; + uint newValue2 = (value & mask2) >> shift2; + ps.Status = (Type2Parameter4Mode4InterrogatorStatus.StatusValue)newValue2; + + uint mask3 = 0x4000; + byte shift3 = 14; + uint newValue3 = (value & mask3) >> shift3; + ps.Damage = (Type2Parameter4Mode4InterrogatorStatus.DamageValue)newValue3; + + uint mask4 = 0x8000; + byte shift4 = 15; + uint newValue4 = (value & mask4) >> shift4; + ps.Malfunction = (Type2Parameter4Mode4InterrogatorStatus.MalfunctionValue)newValue4; + + return ps; + } + + /// + /// Gets or sets the codeelement1. + /// + /// The codeelement1. + public Type2Parameter4Mode4InterrogatorStatus.CodeElement1Value CodeElement1 + { + get { return this.codeElement1; } + set { this.codeElement1 = value; } + } + + /// + /// Gets or sets the status. + /// + /// The status. + public Type2Parameter4Mode4InterrogatorStatus.StatusValue Status + { + get { return this.status; } + set { this.status = value; } + } + + /// + /// Gets or sets the damage. + /// + /// The damage. + public Type2Parameter4Mode4InterrogatorStatus.DamageValue Damage + { + get { return this.damage; } + set { this.damage = value; } + } + + /// + /// Gets or sets the malfunction. + /// + /// The malfunction. + public Type2Parameter4Mode4InterrogatorStatus.MalfunctionValue Malfunction + { + get { return this.malfunction; } + set { this.malfunction = value; } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (!(obj is Type2Parameter4Mode4InterrogatorStatus)) + { + return false; + } + + return this.Equals((Type2Parameter4Mode4InterrogatorStatus)obj); + } + + /// + /// Determines whether the specified instance is equal to this instance. + /// + /// The instance to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public bool Equals(Type2Parameter4Mode4InterrogatorStatus other) + { + // If parameter is null return false (cast to object to prevent recursive loop!) + if ((object)other == null) + { + return false; + } + + return + this.CodeElement1 == other.CodeElement1 && + this.Status == other.Status && + this.Damage == other.Damage && + this.Malfunction == other.Malfunction; + } + + /// + /// Converts the instance of to the byte array. + /// + /// The byte array representing the current instance. + public byte[] ToByteArray() + { + return BitConverter.GetBytes(this.ToUInt16()); + } + + /// + /// Converts the instance of to the ushort value. + /// + /// The ushort value representing the current instance. + public ushort ToUInt16() + { + ushort val = 0; + + val |= (ushort)((uint)this.CodeElement1 << 0); + val |= (ushort)((uint)this.Status << 13); + val |= (ushort)((uint)this.Damage << 14); + val |= (ushort)((uint)this.Malfunction << 15); + + return val; + } + + /// + /// Returns a hash code for this instance. + /// + /// + /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + /// + public override int GetHashCode() + { + int hash = 17; + + // Overflow is fine, just wrap + unchecked + { + hash = (hash * 29) + this.CodeElement1.GetHashCode(); + hash = (hash * 29) + this.Status.GetHashCode(); + hash = (hash * 29) + this.Damage.GetHashCode(); + hash = (hash * 29) + this.Malfunction.GetHashCode(); + } + + return hash; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter5ModeCInterrogatorStatus.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type2Parameter5ModeCInterrogatorStatus.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter5ModeCInterrogatorStatus.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type2Parameter5ModeCInterrogatorStatus.cs index 7a7843b..aa74620 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter5ModeCInterrogatorStatus.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type2Parameter5ModeCInterrogatorStatus.cs @@ -1,60 +1,60 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for Type2Parameter5ModeCInterrogatorStatus (der.iff.type.2.fop.param5, Parameter 5 - Mode C Interrogator Status, - /// section 8.3.2.2.6) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - [Flags] - public enum Type2Parameter5ModeCInterrogatorStatus : ushort - { - /// - /// Set bit means 'On', reset bit means 'Off'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'On', reset bit means 'Off'.")] - Status = 8192, - - /// - /// Set bit means 'Damage', reset bit means 'No damage'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Damage', reset bit means 'No damage'.")] - Damage = 16384, - - /// - /// Set bit means 'Malfunction', reset bit means 'No malfunction'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Malfunction', reset bit means 'No malfunction'.")] - Malfunction = 32768 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for Type2Parameter5ModeCInterrogatorStatus (der.iff.type.2.fop.param5, Parameter 5 - Mode C Interrogator Status, + /// section 8.3.2.2.6) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + [Flags] + public enum Type2Parameter5ModeCInterrogatorStatus : ushort + { + /// + /// Set bit means 'On', reset bit means 'Off'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'On', reset bit means 'Off'.")] + Status = 8192, + + /// + /// Set bit means 'Damage', reset bit means 'No damage'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Damage', reset bit means 'No damage'.")] + Damage = 16384, + + /// + /// Set bit means 'Malfunction', reset bit means 'No malfunction'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Malfunction', reset bit means 'No malfunction'.")] + Malfunction = 32768 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter6ModeSCodeStatus.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type2Parameter6ModeSCodeStatus.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter6ModeSCodeStatus.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type2Parameter6ModeSCodeStatus.cs index 9be40af..99709a7 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type2Parameter6ModeSCodeStatus.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type2Parameter6ModeSCodeStatus.cs @@ -1,70 +1,70 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for Type2Parameter6ModeSCodeStatus (der.iff.type.2.fop.param6, Parameter 6 - Mode S Code/Status, - /// section 8.3.2.2.7) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - [Flags] - public enum Type2Parameter6ModeSCodeStatus : ushort - { - /// - /// Set bit means 'TCAS II', reset bit means 'TCAS I'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'TCAS II', reset bit means 'TCAS I'.")] - TCAS = 4096, - - /// - /// Set bit means 'On', reset bit means 'Off'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'On', reset bit means 'Off'.")] - Status = 8192, - - /// - /// Set bit means 'Damage', reset bit means 'No damage'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Damage', reset bit means 'No damage'.")] - Damage = 16384, - - /// - /// Set bit means 'Malfunction', reset bit means 'No malfunction'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Malfunction', reset bit means 'No malfunction'.")] - Malfunction = 32768 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for Type2Parameter6ModeSCodeStatus (der.iff.type.2.fop.param6, Parameter 6 - Mode S Code/Status, + /// section 8.3.2.2.7) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + [Flags] + public enum Type2Parameter6ModeSCodeStatus : ushort + { + /// + /// Set bit means 'TCAS II', reset bit means 'TCAS I'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'TCAS II', reset bit means 'TCAS I'.")] + TCAS = 4096, + + /// + /// Set bit means 'On', reset bit means 'Off'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'On', reset bit means 'Off'.")] + Status = 8192, + + /// + /// Set bit means 'Damage', reset bit means 'No damage'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Damage', reset bit means 'No damage'.")] + Damage = 16384, + + /// + /// Set bit means 'Malfunction', reset bit means 'No malfunction'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Malfunction', reset bit means 'No malfunction'.")] + Malfunction = 32768 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3ChangeOptions.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type3ChangeOptions.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3ChangeOptions.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type3ChangeOptions.cs index 92c8ba2..ed06886 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3ChangeOptions.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type3ChangeOptions.cs @@ -1,40 +1,40 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for Type3ChangeOptions (der.iff.type.3.changeoptions, Change/Options, - /// section 8.3.3.1.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - [Flags] - public enum Type3ChangeOptions : byte - { - /// - /// Set bit means 'Initial report or change since last report', reset bit means 'No change since last report'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Initial report or change since last report', reset bit means 'No change since last report'.")] - ChangeIndicator = 1 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for Type3ChangeOptions (der.iff.type.3.changeoptions, Change/Options, + /// section 8.3.3.1.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + [Flags] + public enum Type3ChangeOptions : byte + { + /// + /// Set bit means 'Initial report or change since last report', reset bit means 'No change since last report'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Initial report or change since last report', reset bit means 'No change since last report'.")] + ChangeIndicator = 1 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3OperationalParameter1.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type3OperationalParameter1.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3OperationalParameter1.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type3OperationalParameter1.cs index e6bd427..5d7ac87 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3OperationalParameter1.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type3OperationalParameter1.cs @@ -1,39 +1,39 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for Type3OperationalParameter1 (der.iff.type.3.sop.param1, Operational Parameter 1, - /// section 8.3.3.4.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum Type3OperationalParameter1 : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for Type3OperationalParameter1 (der.iff.type.3.sop.param1, Operational Parameter 1, + /// section 8.3.3.4.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum Type3OperationalParameter1 : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3OperationalParameter2.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type3OperationalParameter2.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3OperationalParameter2.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type3OperationalParameter2.cs index cbdf2ae..9a6eacc 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3OperationalParameter2.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type3OperationalParameter2.cs @@ -1,39 +1,39 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for Type3OperationalParameter2 (der.iff.type.3.sop.param2, Operational Parameter 2, - /// section 8.3.3.4.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum Type3OperationalParameter2 : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for Type3OperationalParameter2 (der.iff.type.3.sop.param2, Operational Parameter 2, + /// section 8.3.3.4.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum Type3OperationalParameter2 : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter1Mode1CodeStatus.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type3Parameter1Mode1CodeStatus.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter1Mode1CodeStatus.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type3Parameter1Mode1CodeStatus.cs index 45c81cf..e1d0c9c 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter1Mode1CodeStatus.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type3Parameter1Mode1CodeStatus.cs @@ -1,60 +1,60 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for Type3Parameter1Mode1CodeStatus (der.iff.type.3.fop.param1, Parameter 1, - /// section 8.3.3.2.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - [Flags] - public enum Type3Parameter1Mode1CodeStatus : ushort - { - /// - /// Set bit means 'On', reset bit means 'Off'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'On', reset bit means 'Off'.")] - Status = 8192, - - /// - /// Set bit means 'Damage', reset bit means 'No damage'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Damage', reset bit means 'No damage'.")] - Damage = 16384, - - /// - /// Set bit means 'Malfunction', reset bit means 'No malfunction'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Malfunction', reset bit means 'No malfunction'.")] - Malfunction = 32768 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for Type3Parameter1Mode1CodeStatus (der.iff.type.3.fop.param1, Parameter 1, + /// section 8.3.3.2.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + [Flags] + public enum Type3Parameter1Mode1CodeStatus : ushort + { + /// + /// Set bit means 'On', reset bit means 'Off'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'On', reset bit means 'Off'.")] + Status = 8192, + + /// + /// Set bit means 'Damage', reset bit means 'No damage'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Damage', reset bit means 'No damage'.")] + Damage = 16384, + + /// + /// Set bit means 'Malfunction', reset bit means 'No malfunction'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Malfunction', reset bit means 'No malfunction'.")] + Malfunction = 32768 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter2Mode2CodeStatus.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type3Parameter2Mode2CodeStatus.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter2Mode2CodeStatus.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type3Parameter2Mode2CodeStatus.cs index 12102ce..974e5a5 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter2Mode2CodeStatus.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type3Parameter2Mode2CodeStatus.cs @@ -1,60 +1,60 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for Type3Parameter2Mode2CodeStatus (der.iff.type.3.fop.param2, Parameter 2, - /// section 8.3.3.2.3) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - [Flags] - public enum Type3Parameter2Mode2CodeStatus : ushort - { - /// - /// Set bit means 'On', reset bit means 'Off'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'On', reset bit means 'Off'.")] - Status = 8192, - - /// - /// Set bit means 'Damage', reset bit means 'No damage'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Damage', reset bit means 'No damage'.")] - Damage = 16384, - - /// - /// Set bit means 'Malfunction', reset bit means 'No malfunction'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Malfunction', reset bit means 'No malfunction'.")] - Malfunction = 32768 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for Type3Parameter2Mode2CodeStatus (der.iff.type.3.fop.param2, Parameter 2, + /// section 8.3.3.2.3) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + [Flags] + public enum Type3Parameter2Mode2CodeStatus : ushort + { + /// + /// Set bit means 'On', reset bit means 'Off'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'On', reset bit means 'Off'.")] + Status = 8192, + + /// + /// Set bit means 'Damage', reset bit means 'No damage'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Damage', reset bit means 'No damage'.")] + Damage = 16384, + + /// + /// Set bit means 'Malfunction', reset bit means 'No malfunction'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Malfunction', reset bit means 'No malfunction'.")] + Malfunction = 32768 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter3Mode3CodeStatus.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type3Parameter3Mode3CodeStatus.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter3Mode3CodeStatus.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type3Parameter3Mode3CodeStatus.cs index 2d54641..8eb4fb9 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter3Mode3CodeStatus.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type3Parameter3Mode3CodeStatus.cs @@ -1,60 +1,60 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for Type3Parameter3Mode3CodeStatus (der.iff.type.3.fop.param3, Parameter 3, - /// section 8.3.3.2.4) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - [Flags] - public enum Type3Parameter3Mode3CodeStatus : ushort - { - /// - /// Set bit means 'On', reset bit means 'Off'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'On', reset bit means 'Off'.")] - Status = 8192, - - /// - /// Set bit means 'Damage', reset bit means 'No damage'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Damage', reset bit means 'No damage'.")] - Damage = 16384, - - /// - /// Set bit means 'Malfunction', reset bit means 'No malfunction'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Malfunction', reset bit means 'No malfunction'.")] - Malfunction = 32768 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for Type3Parameter3Mode3CodeStatus (der.iff.type.3.fop.param3, Parameter 3, + /// section 8.3.3.2.4) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + [Flags] + public enum Type3Parameter3Mode3CodeStatus : ushort + { + /// + /// Set bit means 'On', reset bit means 'Off'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'On', reset bit means 'Off'.")] + Status = 8192, + + /// + /// Set bit means 'Damage', reset bit means 'No damage'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Damage', reset bit means 'No damage'.")] + Damage = 16384, + + /// + /// Set bit means 'Malfunction', reset bit means 'No malfunction'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Malfunction', reset bit means 'No malfunction'.")] + Malfunction = 32768 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter4Mode4CodeStatus.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type3Parameter4Mode4CodeStatus.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter4Mode4CodeStatus.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type3Parameter4Mode4CodeStatus.cs index f848133..e1567b7 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter4Mode4CodeStatus.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type3Parameter4Mode4CodeStatus.cs @@ -1,60 +1,60 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for Type3Parameter4Mode4CodeStatus (der.iff.type.3.fop.param4, Parameter 4, - /// section 8.3.3.2.5) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - [Flags] - public enum Type3Parameter4Mode4CodeStatus : ushort - { - /// - /// Set bit means 'On', reset bit means 'Off'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'On', reset bit means 'Off'.")] - Status = 8192, - - /// - /// Set bit means 'Damage', reset bit means 'No damage'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Damage', reset bit means 'No damage'.")] - Damage = 16384, - - /// - /// Set bit means 'Malfunction', reset bit means 'No malfunction'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Malfunction', reset bit means 'No malfunction'.")] - Malfunction = 32768 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for Type3Parameter4Mode4CodeStatus (der.iff.type.3.fop.param4, Parameter 4, + /// section 8.3.3.2.5) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + [Flags] + public enum Type3Parameter4Mode4CodeStatus : ushort + { + /// + /// Set bit means 'On', reset bit means 'Off'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'On', reset bit means 'Off'.")] + Status = 8192, + + /// + /// Set bit means 'Damage', reset bit means 'No damage'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Damage', reset bit means 'No damage'.")] + Damage = 16384, + + /// + /// Set bit means 'Malfunction', reset bit means 'No malfunction'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Malfunction', reset bit means 'No malfunction'.")] + Malfunction = 32768 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter5ModeCCodeStatus.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type3Parameter5ModeCCodeStatus.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter5ModeCCodeStatus.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type3Parameter5ModeCCodeStatus.cs index b71744f..a03b634 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter5ModeCCodeStatus.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type3Parameter5ModeCCodeStatus.cs @@ -1,60 +1,60 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for Type3Parameter5ModeCCodeStatus (der.iff.type.3.fop.param5, Parameter 5, - /// section 8.3.3.2.6) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - [Flags] - public enum Type3Parameter5ModeCCodeStatus : ushort - { - /// - /// Set bit means 'On', reset bit means 'Off'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'On', reset bit means 'Off'.")] - Status = 8192, - - /// - /// Set bit means 'Damage', reset bit means 'No damage'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Damage', reset bit means 'No damage'.")] - Damage = 16384, - - /// - /// Set bit means 'Malfunction', reset bit means 'No malfunction'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Malfunction', reset bit means 'No malfunction'.")] - Malfunction = 32768 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for Type3Parameter5ModeCCodeStatus (der.iff.type.3.fop.param5, Parameter 5, + /// section 8.3.3.2.6) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + [Flags] + public enum Type3Parameter5ModeCCodeStatus : ushort + { + /// + /// Set bit means 'On', reset bit means 'Off'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'On', reset bit means 'Off'.")] + Status = 8192, + + /// + /// Set bit means 'Damage', reset bit means 'No damage'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Damage', reset bit means 'No damage'.")] + Damage = 16384, + + /// + /// Set bit means 'Malfunction', reset bit means 'No malfunction'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Malfunction', reset bit means 'No malfunction'.")] + Malfunction = 32768 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter6Mode1CodeStatus.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type3Parameter6Mode1CodeStatus.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter6Mode1CodeStatus.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type3Parameter6Mode1CodeStatus.cs index 8b76c2d..2468d1e 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type3Parameter6Mode1CodeStatus.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type3Parameter6Mode1CodeStatus.cs @@ -1,60 +1,60 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for Type3Parameter6Mode1CodeStatus (der.iff.type.3.fop.param6, Parameter 6, - /// section 8.3.3.2.7) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - [Flags] - public enum Type3Parameter6Mode1CodeStatus : ushort - { - /// - /// Set bit means 'On', reset bit means 'Off'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'On', reset bit means 'Off'.")] - Status = 8192, - - /// - /// Set bit means 'Damage', reset bit means 'No damage'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Damage', reset bit means 'No damage'.")] - Damage = 16384, - - /// - /// Set bit means 'Malfunction', reset bit means 'No malfunction'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Malfunction', reset bit means 'No malfunction'.")] - Malfunction = 32768 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for Type3Parameter6Mode1CodeStatus (der.iff.type.3.fop.param6, Parameter 6, + /// section 8.3.3.2.7) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + [Flags] + public enum Type3Parameter6Mode1CodeStatus : ushort + { + /// + /// Set bit means 'On', reset bit means 'Off'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'On', reset bit means 'Off'.")] + Status = 8192, + + /// + /// Set bit means 'Damage', reset bit means 'No damage'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Damage', reset bit means 'No damage'.")] + Damage = 16384, + + /// + /// Set bit means 'Malfunction', reset bit means 'No malfunction'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Malfunction', reset bit means 'No malfunction'.")] + Malfunction = 32768 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4ChangeOptions.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type4ChangeOptions.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4ChangeOptions.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type4ChangeOptions.cs index 2fee03d..df78480 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4ChangeOptions.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type4ChangeOptions.cs @@ -1,40 +1,40 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for Type4ChangeOptions (der.iff.type.4.changeoptions, Change/Options, - /// section 8.3.4.1.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - [Flags] - public enum Type4ChangeOptions : byte - { - /// - /// Set bit means 'Initial report or change since last report', reset bit means 'No change since last report'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Initial report or change since last report', reset bit means 'No change since last report'.")] - ChangeIndicator = 1 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for Type4ChangeOptions (der.iff.type.4.changeoptions, Change/Options, + /// section 8.3.4.1.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + [Flags] + public enum Type4ChangeOptions : byte + { + /// + /// Set bit means 'Initial report or change since last report', reset bit means 'No change since last report'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Initial report or change since last report', reset bit means 'No change since last report'.")] + ChangeIndicator = 1 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4OperationalParameter1.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type4OperationalParameter1.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4OperationalParameter1.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type4OperationalParameter1.cs index b67c58b..5d4ba10 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4OperationalParameter1.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type4OperationalParameter1.cs @@ -1,39 +1,39 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for Type4OperationalParameter1 (der.iff.type.4.sop.param1, Operational Parameter 1, - /// section 8.3.4.4.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum Type4OperationalParameter1 : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for Type4OperationalParameter1 (der.iff.type.4.sop.param1, Operational Parameter 1, + /// section 8.3.4.4.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum Type4OperationalParameter1 : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4OperationalParameter2.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type4OperationalParameter2.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4OperationalParameter2.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type4OperationalParameter2.cs index 5b91deb..d449192 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4OperationalParameter2.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type4OperationalParameter2.cs @@ -1,39 +1,39 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for Type4OperationalParameter2 (der.iff.type.4.sop.param2, Operational Parameter 2, - /// section 8.3.4.4.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum Type4OperationalParameter2 : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for Type4OperationalParameter2 (der.iff.type.4.sop.param2, Operational Parameter 2, + /// section 8.3.4.4.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum Type4OperationalParameter2 : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter1.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type4Parameter1.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter1.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type4Parameter1.cs index 6b9143d..7c58cfa 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter1.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type4Parameter1.cs @@ -1,60 +1,60 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for Type4Parameter1 (der.iff.type.4.fop.param1, Parameter 1, - /// section 8.3.4.2.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - [Flags] - public enum Type4Parameter1 : ushort - { - /// - /// Set bit means 'On', reset bit means 'Off'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'On', reset bit means 'Off'.")] - Status = 8192, - - /// - /// Set bit means 'Damage', reset bit means 'No damage'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Damage', reset bit means 'No damage'.")] - Damage = 16384, - - /// - /// Set bit means 'Malfunction', reset bit means 'No malfunction'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Malfunction', reset bit means 'No malfunction'.")] - Malfunction = 32768 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for Type4Parameter1 (der.iff.type.4.fop.param1, Parameter 1, + /// section 8.3.4.2.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + [Flags] + public enum Type4Parameter1 : ushort + { + /// + /// Set bit means 'On', reset bit means 'Off'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'On', reset bit means 'Off'.")] + Status = 8192, + + /// + /// Set bit means 'Damage', reset bit means 'No damage'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Damage', reset bit means 'No damage'.")] + Damage = 16384, + + /// + /// Set bit means 'Malfunction', reset bit means 'No malfunction'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Malfunction', reset bit means 'No malfunction'.")] + Malfunction = 32768 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter2.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type4Parameter2.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter2.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type4Parameter2.cs index ecea87e..29ae72c 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter2.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type4Parameter2.cs @@ -1,60 +1,60 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for Type4Parameter2 (der.iff.type.4.fop.param2, Parameter 2, - /// section 8.3.4.2.3) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - [Flags] - public enum Type4Parameter2 : ushort - { - /// - /// Set bit means 'On', reset bit means 'Off'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'On', reset bit means 'Off'.")] - Status = 8192, - - /// - /// Set bit means 'Damage', reset bit means 'No damage'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Damage', reset bit means 'No damage'.")] - Damage = 16384, - - /// - /// Set bit means 'Malfunction', reset bit means 'No malfunction'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Malfunction', reset bit means 'No malfunction'.")] - Malfunction = 32768 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for Type4Parameter2 (der.iff.type.4.fop.param2, Parameter 2, + /// section 8.3.4.2.3) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + [Flags] + public enum Type4Parameter2 : ushort + { + /// + /// Set bit means 'On', reset bit means 'Off'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'On', reset bit means 'Off'.")] + Status = 8192, + + /// + /// Set bit means 'Damage', reset bit means 'No damage'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Damage', reset bit means 'No damage'.")] + Damage = 16384, + + /// + /// Set bit means 'Malfunction', reset bit means 'No malfunction'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Malfunction', reset bit means 'No malfunction'.")] + Malfunction = 32768 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter3.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type4Parameter3.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter3.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type4Parameter3.cs index 750d41f..7fe129a 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter3.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type4Parameter3.cs @@ -1,60 +1,60 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for Type4Parameter3 (der.iff.type.4.fop.param3, Parameter 3, - /// section 8.3.4.2.4) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - [Flags] - public enum Type4Parameter3 : ushort - { - /// - /// Set bit means 'On', reset bit means 'Off'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'On', reset bit means 'Off'.")] - Status = 8192, - - /// - /// Set bit means 'Damage', reset bit means 'No damage'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Damage', reset bit means 'No damage'.")] - Damage = 16384, - - /// - /// Set bit means 'Malfunction', reset bit means 'No malfunction'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Malfunction', reset bit means 'No malfunction'.")] - Malfunction = 32768 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for Type4Parameter3 (der.iff.type.4.fop.param3, Parameter 3, + /// section 8.3.4.2.4) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + [Flags] + public enum Type4Parameter3 : ushort + { + /// + /// Set bit means 'On', reset bit means 'Off'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'On', reset bit means 'Off'.")] + Status = 8192, + + /// + /// Set bit means 'Damage', reset bit means 'No damage'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Damage', reset bit means 'No damage'.")] + Damage = 16384, + + /// + /// Set bit means 'Malfunction', reset bit means 'No malfunction'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Malfunction', reset bit means 'No malfunction'.")] + Malfunction = 32768 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter4.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type4Parameter4.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter4.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type4Parameter4.cs index abd0f6e..c4ec5ab 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter4.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type4Parameter4.cs @@ -1,60 +1,60 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for Type4Parameter4 (der.iff.type.4.fop.param4, Parameter 4, - /// section 8.3.4.2.5) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - [Flags] - public enum Type4Parameter4 : ushort - { - /// - /// Set bit means 'On', reset bit means 'Off'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'On', reset bit means 'Off'.")] - Status = 8192, - - /// - /// Set bit means 'Damage', reset bit means 'No damage'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Damage', reset bit means 'No damage'.")] - Damage = 16384, - - /// - /// Set bit means 'Malfunction', reset bit means 'No malfunction'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Malfunction', reset bit means 'No malfunction'.")] - Malfunction = 32768 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for Type4Parameter4 (der.iff.type.4.fop.param4, Parameter 4, + /// section 8.3.4.2.5) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + [Flags] + public enum Type4Parameter4 : ushort + { + /// + /// Set bit means 'On', reset bit means 'Off'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'On', reset bit means 'Off'.")] + Status = 8192, + + /// + /// Set bit means 'Damage', reset bit means 'No damage'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Damage', reset bit means 'No damage'.")] + Damage = 16384, + + /// + /// Set bit means 'Malfunction', reset bit means 'No malfunction'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Malfunction', reset bit means 'No malfunction'.")] + Malfunction = 32768 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter5.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type4Parameter5.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter5.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type4Parameter5.cs index de95d75..a87d036 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter5.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type4Parameter5.cs @@ -1,60 +1,60 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for Type4Parameter5 (der.iff.type.4.fop.param5, Parameter 5, - /// section 8.3.4.2.6) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - [Flags] - public enum Type4Parameter5 : ushort - { - /// - /// Set bit means 'On', reset bit means 'Off'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'On', reset bit means 'Off'.")] - Status = 8192, - - /// - /// Set bit means 'Damage', reset bit means 'No damage'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Damage', reset bit means 'No damage'.")] - Damage = 16384, - - /// - /// Set bit means 'Malfunction', reset bit means 'No malfunction'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Malfunction', reset bit means 'No malfunction'.")] - Malfunction = 32768 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for Type4Parameter5 (der.iff.type.4.fop.param5, Parameter 5, + /// section 8.3.4.2.6) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + [Flags] + public enum Type4Parameter5 : ushort + { + /// + /// Set bit means 'On', reset bit means 'Off'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'On', reset bit means 'Off'.")] + Status = 8192, + + /// + /// Set bit means 'Damage', reset bit means 'No damage'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Damage', reset bit means 'No damage'.")] + Damage = 16384, + + /// + /// Set bit means 'Malfunction', reset bit means 'No malfunction'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Malfunction', reset bit means 'No malfunction'.")] + Malfunction = 32768 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter6.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type4Parameter6.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter6.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type4Parameter6.cs index d97e9ed..331a9c6 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type4Parameter6.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type4Parameter6.cs @@ -1,60 +1,60 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for Type4Parameter6 (der.iff.type.4.fop.param6, Parameter 6, - /// section 8.3.4.2.7) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - [Flags] - public enum Type4Parameter6 : ushort - { - /// - /// Set bit means 'On', reset bit means 'Off'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'On', reset bit means 'Off'.")] - Status = 8192, - - /// - /// Set bit means 'Damage', reset bit means 'No damage'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Damage', reset bit means 'No damage'.")] - Damage = 16384, - - /// - /// Set bit means 'Malfunction', reset bit means 'No malfunction'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Malfunction', reset bit means 'No malfunction'.")] - Malfunction = 32768 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for Type4Parameter6 (der.iff.type.4.fop.param6, Parameter 6, + /// section 8.3.4.2.7) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + [Flags] + public enum Type4Parameter6 : ushort + { + /// + /// Set bit means 'On', reset bit means 'Off'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'On', reset bit means 'Off'.")] + Status = 8192, + + /// + /// Set bit means 'Damage', reset bit means 'No damage'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Damage', reset bit means 'No damage'.")] + Damage = 16384, + + /// + /// Set bit means 'Malfunction', reset bit means 'No malfunction'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Malfunction', reset bit means 'No malfunction'.")] + Malfunction = 32768 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type5ChangeOptions.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type5ChangeOptions.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type5ChangeOptions.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type5ChangeOptions.cs index 5333579..0901881 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type5ChangeOptions.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type5ChangeOptions.cs @@ -1,40 +1,40 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for Type5ChangeOptions (der.iff.type.5.changeoptions, Change/Options, - /// section 8.3.5.1.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - [Flags] - public enum Type5ChangeOptions : byte - { - /// - /// Set bit means 'Initial report or change since last report', reset bit means 'No change since last report'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Initial report or change since last report', reset bit means 'No change since last report'.")] - ChangeIndicator = 1 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for Type5ChangeOptions (der.iff.type.5.changeoptions, Change/Options, + /// section 8.3.5.1.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + [Flags] + public enum Type5ChangeOptions : byte + { + /// + /// Set bit means 'Initial report or change since last report', reset bit means 'No change since last report'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Initial report or change since last report', reset bit means 'No change since last report'.")] + ChangeIndicator = 1 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type5OperationalParameter1.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type5OperationalParameter1.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type5OperationalParameter1.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type5OperationalParameter1.cs index 6b86ce4..440f030 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type5OperationalParameter1.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type5OperationalParameter1.cs @@ -1,39 +1,39 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for Type5OperationalParameter1 (der.iff.type.5.sop.param1, Operational Parameter 1, - /// section 8.3.5.4.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum Type5OperationalParameter1 : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for Type5OperationalParameter1 (der.iff.type.5.sop.param1, Operational Parameter 1, + /// section 8.3.5.4.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum Type5OperationalParameter1 : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type5OperationalParameter2.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type5OperationalParameter2.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type5OperationalParameter2.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type5OperationalParameter2.cs index 32a5ada..5ca8dd9 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type5OperationalParameter2.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type5OperationalParameter2.cs @@ -1,39 +1,39 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for Type5OperationalParameter2 (der.iff.type.5.sop.param2, Operational Parameter 2, - /// section 8.3.5.4.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum Type5OperationalParameter2 : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for Type5OperationalParameter2 (der.iff.type.5.sop.param2, Operational Parameter 2, + /// section 8.3.5.4.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum Type5OperationalParameter2 : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type5Parameter1RRBResponse.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type5Parameter1RRBResponse.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type5Parameter1RRBResponse.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type5Parameter1RRBResponse.cs index af314ba..cd1b7fd 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.Iff/Type5Parameter1RRBResponse.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.Iff/Type5Parameter1RRBResponse.cs @@ -1,422 +1,422 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.Iff -{ - /// - /// Enumeration values for Type5Parameter1RRBResponse (der.iff.type.5.fop.param1, Parameter 1 - RRB Response, - /// section 8.3.5.2.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public struct Type5Parameter1RRBResponse - { - /// - /// Power Reduction - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Power Reduction")] - public enum PowerReductionValue : uint - { - /// - /// Off - /// - Off = 0, - - /// - /// On - /// - On = 1 - } - - /// - /// Radar Enhancement - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Radar Enhancement")] - public enum RadarEnhancementValue : uint - { - /// - /// Off - /// - Off = 0, - - /// - /// On - /// - On = 1 - } - - /// - /// Status - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Status")] - public enum StatusValue : uint - { - /// - /// Off - /// - Off = 0, - - /// - /// On - /// - On = 1 - } - - /// - /// Damage - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Damage")] - public enum DamageValue : uint - { - /// - /// No damage - /// - NoDamage = 0, - - /// - /// Damage - /// - Damage = 1 - } - - /// - /// Malfunction - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Malfunction")] - public enum MalfunctionValue : uint - { - /// - /// No malfunction - /// - NoMalfunction = 0, - - /// - /// Malfunction - /// - Malfunction = 1 - } - - private byte code; - private Type5Parameter1RRBResponse.PowerReductionValue powerReduction; - private Type5Parameter1RRBResponse.RadarEnhancementValue radarEnhancement; - private Type5Parameter1RRBResponse.StatusValue status; - private Type5Parameter1RRBResponse.DamageValue damage; - private Type5Parameter1RRBResponse.MalfunctionValue malfunction; - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(Type5Parameter1RRBResponse left, Type5Parameter1RRBResponse right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator ==(Type5Parameter1RRBResponse left, Type5Parameter1RRBResponse right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - // If parameters are null return false (cast to object to prevent recursive loop!) - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The scheme instance. - /// The result of the conversion. - public static explicit operator ushort(Type5Parameter1RRBResponse obj) - { - return obj.ToUInt16(); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The ushort value. - /// The result of the conversion. - public static explicit operator Type5Parameter1RRBResponse(ushort value) - { - return Type5Parameter1RRBResponse.FromUInt16(value); - } - - /// - /// Creates the instance from the byte array. - /// - /// The array which holds the values for the . - /// The starting position within value. - /// The instance, represented by a byte array. - /// if the array is null. - /// if the index is lower than 0 or greater or equal than number of elements in array. - public static Type5Parameter1RRBResponse FromByteArray(byte[] array, int index) - { - if (array == null) - { - throw new ArgumentNullException("array"); - } - - if (index < 0 || - index > array.Length - 1 || - index + 2 > array.Length - 1) - { - throw new IndexOutOfRangeException(); - } - - return FromUInt16(BitConverter.ToUInt16(array, index)); - } - - /// - /// Creates the instance from the ushort value. - /// - /// The ushort value which represents the instance. - /// The instance, represented by the ushort value. - public static Type5Parameter1RRBResponse FromUInt16(ushort value) - { - Type5Parameter1RRBResponse ps = new Type5Parameter1RRBResponse(); - - uint mask0 = 0x001f; - byte shift0 = 0; - uint newValue0 = (value & mask0) >> shift0; - ps.Code = (byte)newValue0; - - uint mask2 = 0x0800; - byte shift2 = 11; - uint newValue2 = (value & mask2) >> shift2; - ps.PowerReduction = (Type5Parameter1RRBResponse.PowerReductionValue)newValue2; - - uint mask3 = 0x1000; - byte shift3 = 12; - uint newValue3 = (value & mask3) >> shift3; - ps.RadarEnhancement = (Type5Parameter1RRBResponse.RadarEnhancementValue)newValue3; - - uint mask4 = 0x2000; - byte shift4 = 13; - uint newValue4 = (value & mask4) >> shift4; - ps.Status = (Type5Parameter1RRBResponse.StatusValue)newValue4; - - uint mask5 = 0x4000; - byte shift5 = 14; - uint newValue5 = (value & mask5) >> shift5; - ps.Damage = (Type5Parameter1RRBResponse.DamageValue)newValue5; - - uint mask6 = 0x8000; - byte shift6 = 15; - uint newValue6 = (value & mask6) >> shift6; - ps.Malfunction = (Type5Parameter1RRBResponse.MalfunctionValue)newValue6; - - return ps; - } - - /// - /// Gets or sets the code. - /// - /// The code. - public byte Code - { - get { return this.code; } - set { this.code = value; } - } - - /// - /// Gets or sets the powerreduction. - /// - /// The powerreduction. - public Type5Parameter1RRBResponse.PowerReductionValue PowerReduction - { - get { return this.powerReduction; } - set { this.powerReduction = value; } - } - - /// - /// Gets or sets the radarenhancement. - /// - /// The radarenhancement. - public Type5Parameter1RRBResponse.RadarEnhancementValue RadarEnhancement - { - get { return this.radarEnhancement; } - set { this.radarEnhancement = value; } - } - - /// - /// Gets or sets the status. - /// - /// The status. - public Type5Parameter1RRBResponse.StatusValue Status - { - get { return this.status; } - set { this.status = value; } - } - - /// - /// Gets or sets the damage. - /// - /// The damage. - public Type5Parameter1RRBResponse.DamageValue Damage - { - get { return this.damage; } - set { this.damage = value; } - } - - /// - /// Gets or sets the malfunction. - /// - /// The malfunction. - public Type5Parameter1RRBResponse.MalfunctionValue Malfunction - { - get { return this.malfunction; } - set { this.malfunction = value; } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - if (obj == null) - { - return false; - } - - if (!(obj is Type5Parameter1RRBResponse)) - { - return false; - } - - return this.Equals((Type5Parameter1RRBResponse)obj); - } - - /// - /// Determines whether the specified instance is equal to this instance. - /// - /// The instance to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public bool Equals(Type5Parameter1RRBResponse other) - { - // If parameter is null return false (cast to object to prevent recursive loop!) - if ((object)other == null) - { - return false; - } - - return - this.Code == other.Code && - this.PowerReduction == other.PowerReduction && - this.RadarEnhancement == other.RadarEnhancement && - this.Status == other.Status && - this.Damage == other.Damage && - this.Malfunction == other.Malfunction; - } - - /// - /// Converts the instance of to the byte array. - /// - /// The byte array representing the current instance. - public byte[] ToByteArray() - { - return BitConverter.GetBytes(this.ToUInt16()); - } - - /// - /// Converts the instance of to the ushort value. - /// - /// The ushort value representing the current instance. - public ushort ToUInt16() - { - ushort val = 0; - - val |= (ushort)((uint)this.Code << 0); - val |= (ushort)((uint)this.PowerReduction << 11); - val |= (ushort)((uint)this.RadarEnhancement << 12); - val |= (ushort)((uint)this.Status << 13); - val |= (ushort)((uint)this.Damage << 14); - val |= (ushort)((uint)this.Malfunction << 15); - - return val; - } - - /// - /// Returns a hash code for this instance. - /// - /// - /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - /// - public override int GetHashCode() - { - int hash = 17; - - // Overflow is fine, just wrap - unchecked - { - hash = (hash * 29) + this.Code.GetHashCode(); - hash = (hash * 29) + this.PowerReduction.GetHashCode(); - hash = (hash * 29) + this.RadarEnhancement.GetHashCode(); - hash = (hash * 29) + this.Status.GetHashCode(); - hash = (hash * 29) + this.Damage.GetHashCode(); - hash = (hash * 29) + this.Malfunction.GetHashCode(); - } - - return hash; - } - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.Iff +{ + /// + /// Enumeration values for Type5Parameter1RRBResponse (der.iff.type.5.fop.param1, Parameter 1 - RRB Response, + /// section 8.3.5.2.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public struct Type5Parameter1RRBResponse + { + /// + /// Power Reduction + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Power Reduction")] + public enum PowerReductionValue : uint + { + /// + /// Off + /// + Off = 0, + + /// + /// On + /// + On = 1 + } + + /// + /// Radar Enhancement + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Radar Enhancement")] + public enum RadarEnhancementValue : uint + { + /// + /// Off + /// + Off = 0, + + /// + /// On + /// + On = 1 + } + + /// + /// Status + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Status")] + public enum StatusValue : uint + { + /// + /// Off + /// + Off = 0, + + /// + /// On + /// + On = 1 + } + + /// + /// Damage + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Damage")] + public enum DamageValue : uint + { + /// + /// No damage + /// + NoDamage = 0, + + /// + /// Damage + /// + Damage = 1 + } + + /// + /// Malfunction + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Malfunction")] + public enum MalfunctionValue : uint + { + /// + /// No malfunction + /// + NoMalfunction = 0, + + /// + /// Malfunction + /// + Malfunction = 1 + } + + private byte code; + private Type5Parameter1RRBResponse.PowerReductionValue powerReduction; + private Type5Parameter1RRBResponse.RadarEnhancementValue radarEnhancement; + private Type5Parameter1RRBResponse.StatusValue status; + private Type5Parameter1RRBResponse.DamageValue damage; + private Type5Parameter1RRBResponse.MalfunctionValue malfunction; + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(Type5Parameter1RRBResponse left, Type5Parameter1RRBResponse right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator ==(Type5Parameter1RRBResponse left, Type5Parameter1RRBResponse right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + // If parameters are null return false (cast to object to prevent recursive loop!) + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The scheme instance. + /// The result of the conversion. + public static explicit operator ushort(Type5Parameter1RRBResponse obj) + { + return obj.ToUInt16(); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The ushort value. + /// The result of the conversion. + public static explicit operator Type5Parameter1RRBResponse(ushort value) + { + return Type5Parameter1RRBResponse.FromUInt16(value); + } + + /// + /// Creates the instance from the byte array. + /// + /// The array which holds the values for the . + /// The starting position within value. + /// The instance, represented by a byte array. + /// if the array is null. + /// if the index is lower than 0 or greater or equal than number of elements in array. + public static Type5Parameter1RRBResponse FromByteArray(byte[] array, int index) + { + if (array == null) + { + throw new ArgumentNullException("array"); + } + + if (index < 0 || + index > array.Length - 1 || + index + 2 > array.Length - 1) + { + throw new IndexOutOfRangeException(); + } + + return FromUInt16(BitConverter.ToUInt16(array, index)); + } + + /// + /// Creates the instance from the ushort value. + /// + /// The ushort value which represents the instance. + /// The instance, represented by the ushort value. + public static Type5Parameter1RRBResponse FromUInt16(ushort value) + { + Type5Parameter1RRBResponse ps = new Type5Parameter1RRBResponse(); + + uint mask0 = 0x001f; + byte shift0 = 0; + uint newValue0 = (value & mask0) >> shift0; + ps.Code = (byte)newValue0; + + uint mask2 = 0x0800; + byte shift2 = 11; + uint newValue2 = (value & mask2) >> shift2; + ps.PowerReduction = (Type5Parameter1RRBResponse.PowerReductionValue)newValue2; + + uint mask3 = 0x1000; + byte shift3 = 12; + uint newValue3 = (value & mask3) >> shift3; + ps.RadarEnhancement = (Type5Parameter1RRBResponse.RadarEnhancementValue)newValue3; + + uint mask4 = 0x2000; + byte shift4 = 13; + uint newValue4 = (value & mask4) >> shift4; + ps.Status = (Type5Parameter1RRBResponse.StatusValue)newValue4; + + uint mask5 = 0x4000; + byte shift5 = 14; + uint newValue5 = (value & mask5) >> shift5; + ps.Damage = (Type5Parameter1RRBResponse.DamageValue)newValue5; + + uint mask6 = 0x8000; + byte shift6 = 15; + uint newValue6 = (value & mask6) >> shift6; + ps.Malfunction = (Type5Parameter1RRBResponse.MalfunctionValue)newValue6; + + return ps; + } + + /// + /// Gets or sets the code. + /// + /// The code. + public byte Code + { + get { return this.code; } + set { this.code = value; } + } + + /// + /// Gets or sets the powerreduction. + /// + /// The powerreduction. + public Type5Parameter1RRBResponse.PowerReductionValue PowerReduction + { + get { return this.powerReduction; } + set { this.powerReduction = value; } + } + + /// + /// Gets or sets the radarenhancement. + /// + /// The radarenhancement. + public Type5Parameter1RRBResponse.RadarEnhancementValue RadarEnhancement + { + get { return this.radarEnhancement; } + set { this.radarEnhancement = value; } + } + + /// + /// Gets or sets the status. + /// + /// The status. + public Type5Parameter1RRBResponse.StatusValue Status + { + get { return this.status; } + set { this.status = value; } + } + + /// + /// Gets or sets the damage. + /// + /// The damage. + public Type5Parameter1RRBResponse.DamageValue Damage + { + get { return this.damage; } + set { this.damage = value; } + } + + /// + /// Gets or sets the malfunction. + /// + /// The malfunction. + public Type5Parameter1RRBResponse.MalfunctionValue Malfunction + { + get { return this.malfunction; } + set { this.malfunction = value; } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (!(obj is Type5Parameter1RRBResponse)) + { + return false; + } + + return this.Equals((Type5Parameter1RRBResponse)obj); + } + + /// + /// Determines whether the specified instance is equal to this instance. + /// + /// The instance to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public bool Equals(Type5Parameter1RRBResponse other) + { + // If parameter is null return false (cast to object to prevent recursive loop!) + if ((object)other == null) + { + return false; + } + + return + this.Code == other.Code && + this.PowerReduction == other.PowerReduction && + this.RadarEnhancement == other.RadarEnhancement && + this.Status == other.Status && + this.Damage == other.Damage && + this.Malfunction == other.Malfunction; + } + + /// + /// Converts the instance of to the byte array. + /// + /// The byte array representing the current instance. + public byte[] ToByteArray() + { + return BitConverter.GetBytes(this.ToUInt16()); + } + + /// + /// Converts the instance of to the ushort value. + /// + /// The ushort value representing the current instance. + public ushort ToUInt16() + { + ushort val = 0; + + val |= (ushort)((uint)this.Code << 0); + val |= (ushort)((uint)this.PowerReduction << 11); + val |= (ushort)((uint)this.RadarEnhancement << 12); + val |= (ushort)((uint)this.Status << 13); + val |= (ushort)((uint)this.Damage << 14); + val |= (ushort)((uint)this.Malfunction << 15); + + return val; + } + + /// + /// Returns a hash code for this instance. + /// + /// + /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + /// + public override int GetHashCode() + { + int hash = 17; + + // Overflow is fine, just wrap + unchecked + { + hash = (hash * 29) + this.Code.GetHashCode(); + hash = (hash * 29) + this.PowerReduction.GetHashCode(); + hash = (hash * 29) + this.RadarEnhancement.GetHashCode(); + hash = (hash * 29) + this.Status.GetHashCode(); + hash = (hash * 29) + this.Damage.GetHashCode(); + hash = (hash * 29) + this.Malfunction.GetHashCode(); + } + + return hash; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/ActiveEmissionParameterIndex.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.UnderwaterAcoustic/ActiveEmissionParameterIndex.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/ActiveEmissionParameterIndex.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.UnderwaterAcoustic/ActiveEmissionParameterIndex.cs index a567a4a..d132a0f 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/ActiveEmissionParameterIndex.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.UnderwaterAcoustic/ActiveEmissionParameterIndex.cs @@ -1,39 +1,39 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.UnderwaterAcoustic -{ - /// - /// Enumeration values for ActiveEmissionParameterIndex (der.ua.activeparameterindex, Active Emission Parameter Index, - /// section 8.4.4) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum ActiveEmissionParameterIndex : ushort - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.UnderwaterAcoustic +{ + /// + /// Enumeration values for ActiveEmissionParameterIndex (der.ua.activeparameterindex, Active Emission Parameter Index, + /// section 8.4.4) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum ActiveEmissionParameterIndex : ushort + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/AdditionalPassiveActivityParameterIndex.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.UnderwaterAcoustic/AdditionalPassiveActivityParameterIndex.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/AdditionalPassiveActivityParameterIndex.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.UnderwaterAcoustic/AdditionalPassiveActivityParameterIndex.cs index 5f24c9d..940feaf 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/AdditionalPassiveActivityParameterIndex.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.UnderwaterAcoustic/AdditionalPassiveActivityParameterIndex.cs @@ -1,52 +1,52 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.UnderwaterAcoustic -{ - /// - /// Enumeration values for AdditionalPassiveActivityParameterIndex (der.ua.apaparameterindex, Additional Passive Activity Parameter Index, - /// section 8.4.8) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - /// - /// Values from 32769 to 65535: Reserved for classified enumerations - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum AdditionalPassiveActivityParameterIndex : ushort - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Graham's MKV Coffee Maker. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Graham's MKV Coffee Maker.")] - GrahamSMKVCoffeeMaker = 1 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.UnderwaterAcoustic +{ + /// + /// Enumeration values for AdditionalPassiveActivityParameterIndex (der.ua.apaparameterindex, Additional Passive Activity Parameter Index, + /// section 8.4.8) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + /// + /// Values from 32769 to 65535: Reserved for classified enumerations + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum AdditionalPassiveActivityParameterIndex : ushort + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Graham's MKV Coffee Maker. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Graham's MKV Coffee Maker.")] + GrahamSMKVCoffeeMaker = 1 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/EmitterFunction.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.UnderwaterAcoustic/EmitterFunction.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/EmitterFunction.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.UnderwaterAcoustic/EmitterFunction.cs index c41c70c..b218670 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/EmitterFunction.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.UnderwaterAcoustic/EmitterFunction.cs @@ -1,79 +1,79 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.UnderwaterAcoustic -{ - /// - /// Enumeration values for EmitterFunction (der.ua.function, Function, - /// section 8.4.3) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum EmitterFunction : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Platform search/detect/track. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Platform search/detect/track.")] - PlatformSearchDetectTrack = 1, - - /// - /// Navigation. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Navigation.")] - Navigation = 2, - - /// - /// Mine hunting. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mine hunting.")] - MineHunting = 3, - - /// - /// Weapon search/detect/track/detect. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Weapon search/detect/track/detect.")] - WeaponSearchDetectTrackDetect = 4 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.UnderwaterAcoustic +{ + /// + /// Enumeration values for EmitterFunction (der.ua.function, Function, + /// section 8.4.3) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum EmitterFunction : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Platform search/detect/track. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Platform search/detect/track.")] + PlatformSearchDetectTrack = 1, + + /// + /// Navigation. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Navigation.")] + Navigation = 2, + + /// + /// Mine hunting. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mine hunting.")] + MineHunting = 3, + + /// + /// Weapon search/detect/track/detect. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Weapon search/detect/track/detect.")] + WeaponSearchDetectTrackDetect = 4 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/PassiveParameterIndex.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.UnderwaterAcoustic/PassiveParameterIndex.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/PassiveParameterIndex.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.UnderwaterAcoustic/PassiveParameterIndex.cs index ed19508..3feb6ef 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/PassiveParameterIndex.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.UnderwaterAcoustic/PassiveParameterIndex.cs @@ -1,39 +1,39 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.UnderwaterAcoustic -{ - /// - /// Enumeration values for PassiveParameterIndex (der.ua.passiveparameterindex, Passive Parameter Index, - /// section 8.4.6) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum PassiveParameterIndex : ushort - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.UnderwaterAcoustic +{ + /// + /// Enumeration values for PassiveParameterIndex (der.ua.passiveparameterindex, Passive Parameter Index, + /// section 8.4.6) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum PassiveParameterIndex : ushort + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/PropulsionPlantConfiguration.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.UnderwaterAcoustic/PropulsionPlantConfiguration.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/PropulsionPlantConfiguration.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.UnderwaterAcoustic/PropulsionPlantConfiguration.cs index 086fee0..b2fba4e 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/PropulsionPlantConfiguration.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.UnderwaterAcoustic/PropulsionPlantConfiguration.cs @@ -1,318 +1,318 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.UnderwaterAcoustic -{ - /// - /// Enumeration values for PropulsionPlantConfiguration (der.ua.ppcfg, Propulsion Plant Configuration, - /// section 8.4.7) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public struct PropulsionPlantConfiguration - { - /// - /// Run internal simulation clock. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Run internal simulation clock.")] - public enum ConfigurationValue : uint - { - /// - /// Other - /// - Other = 0, - - /// - /// Diesel/electric - /// - DieselElectric = 1, - - /// - /// Diesel - /// - Diesel = 2, - - /// - /// Battery - /// - Battery = 3, - - /// - /// Turbine reduction - /// - TurbineReduction = 4, - - /// - /// null - /// - Unknown = 5, - - /// - /// Steam - /// - Steam = 6, - - /// - /// Gas turbine - /// - GasTurbine = 7, - - /// - /// null - /// - Unknown2 = 8 - } - - /// - /// Hull Mounted Masker status - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Hull Mounted Masker status")] - public enum HullMountedMaskerValue : uint - { - /// - /// Off - /// - Off = 0, - - /// - /// On - /// - On = 1 - } - - private PropulsionPlantConfiguration.ConfigurationValue configuration; - private PropulsionPlantConfiguration.HullMountedMaskerValue hullMountedMasker; - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(PropulsionPlantConfiguration left, PropulsionPlantConfiguration right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator ==(PropulsionPlantConfiguration left, PropulsionPlantConfiguration right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - // If parameters are null return false (cast to object to prevent recursive loop!) - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The scheme instance. - /// The result of the conversion. - public static explicit operator uint(PropulsionPlantConfiguration obj) - { - return obj.ToUInt32(); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The uint value. - /// The result of the conversion. - public static explicit operator PropulsionPlantConfiguration(uint value) - { - return PropulsionPlantConfiguration.FromUInt32(value); - } - - /// - /// Creates the instance from the byte array. - /// - /// The array which holds the values for the . - /// The starting position within value. - /// The instance, represented by a byte array. - /// if the array is null. - /// if the index is lower than 0 or greater or equal than number of elements in array. - public static PropulsionPlantConfiguration FromByteArray(byte[] array, int index) - { - if (array == null) - { - throw new ArgumentNullException("array"); - } - - if (index < 0 || - index > array.Length - 1 || - index + 4 > array.Length - 1) - { - throw new IndexOutOfRangeException(); - } - - return FromUInt32(BitConverter.ToUInt32(array, index)); - } - - /// - /// Creates the instance from the uint value. - /// - /// The uint value which represents the instance. - /// The instance, represented by the uint value. - public static PropulsionPlantConfiguration FromUInt32(uint value) - { - PropulsionPlantConfiguration ps = new PropulsionPlantConfiguration(); - - uint mask0 = 0x007f; - byte shift0 = 0; - uint newValue0 = (value & mask0) >> shift0; - ps.Configuration = (PropulsionPlantConfiguration.ConfigurationValue)newValue0; - - uint mask1 = 0x0080; - byte shift1 = 7; - uint newValue1 = (value & mask1) >> shift1; - ps.HullMountedMasker = (PropulsionPlantConfiguration.HullMountedMaskerValue)newValue1; - - return ps; - } - - /// - /// Gets or sets the configuration. - /// - /// The configuration. - public PropulsionPlantConfiguration.ConfigurationValue Configuration - { - get { return this.configuration; } - set { this.configuration = value; } - } - - /// - /// Gets or sets the hullmountedmasker. - /// - /// The hullmountedmasker. - public PropulsionPlantConfiguration.HullMountedMaskerValue HullMountedMasker - { - get { return this.hullMountedMasker; } - set { this.hullMountedMasker = value; } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - if (obj == null) - { - return false; - } - - if (!(obj is PropulsionPlantConfiguration)) - { - return false; - } - - return this.Equals((PropulsionPlantConfiguration)obj); - } - - /// - /// Determines whether the specified instance is equal to this instance. - /// - /// The instance to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public bool Equals(PropulsionPlantConfiguration other) - { - // If parameter is null return false (cast to object to prevent recursive loop!) - if ((object)other == null) - { - return false; - } - - return - this.Configuration == other.Configuration && - this.HullMountedMasker == other.HullMountedMasker; - } - - /// - /// Converts the instance of to the byte array. - /// - /// The byte array representing the current instance. - public byte[] ToByteArray() - { - return BitConverter.GetBytes(this.ToUInt32()); - } - - /// - /// Converts the instance of to the uint value. - /// - /// The uint value representing the current instance. - public uint ToUInt32() - { - uint val = 0; - - val |= (uint)((uint)this.Configuration << 0); - val |= (uint)((uint)this.HullMountedMasker << 7); - - return val; - } - - /// - /// Returns a hash code for this instance. - /// - /// - /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - /// - public override int GetHashCode() - { - int hash = 17; - - // Overflow is fine, just wrap - unchecked - { - hash = (hash * 29) + this.Configuration.GetHashCode(); - hash = (hash * 29) + this.HullMountedMasker.GetHashCode(); - } - - return hash; - } - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.UnderwaterAcoustic +{ + /// + /// Enumeration values for PropulsionPlantConfiguration (der.ua.ppcfg, Propulsion Plant Configuration, + /// section 8.4.7) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public struct PropulsionPlantConfiguration + { + /// + /// Run internal simulation clock. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Run internal simulation clock.")] + public enum ConfigurationValue : uint + { + /// + /// Other + /// + Other = 0, + + /// + /// Diesel/electric + /// + DieselElectric = 1, + + /// + /// Diesel + /// + Diesel = 2, + + /// + /// Battery + /// + Battery = 3, + + /// + /// Turbine reduction + /// + TurbineReduction = 4, + + /// + /// null + /// + Unknown = 5, + + /// + /// Steam + /// + Steam = 6, + + /// + /// Gas turbine + /// + GasTurbine = 7, + + /// + /// null + /// + Unknown2 = 8 + } + + /// + /// Hull Mounted Masker status + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Hull Mounted Masker status")] + public enum HullMountedMaskerValue : uint + { + /// + /// Off + /// + Off = 0, + + /// + /// On + /// + On = 1 + } + + private PropulsionPlantConfiguration.ConfigurationValue configuration; + private PropulsionPlantConfiguration.HullMountedMaskerValue hullMountedMasker; + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(PropulsionPlantConfiguration left, PropulsionPlantConfiguration right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator ==(PropulsionPlantConfiguration left, PropulsionPlantConfiguration right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + // If parameters are null return false (cast to object to prevent recursive loop!) + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The scheme instance. + /// The result of the conversion. + public static explicit operator uint(PropulsionPlantConfiguration obj) + { + return obj.ToUInt32(); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The uint value. + /// The result of the conversion. + public static explicit operator PropulsionPlantConfiguration(uint value) + { + return PropulsionPlantConfiguration.FromUInt32(value); + } + + /// + /// Creates the instance from the byte array. + /// + /// The array which holds the values for the . + /// The starting position within value. + /// The instance, represented by a byte array. + /// if the array is null. + /// if the index is lower than 0 or greater or equal than number of elements in array. + public static PropulsionPlantConfiguration FromByteArray(byte[] array, int index) + { + if (array == null) + { + throw new ArgumentNullException("array"); + } + + if (index < 0 || + index > array.Length - 1 || + index + 4 > array.Length - 1) + { + throw new IndexOutOfRangeException(); + } + + return FromUInt32(BitConverter.ToUInt32(array, index)); + } + + /// + /// Creates the instance from the uint value. + /// + /// The uint value which represents the instance. + /// The instance, represented by the uint value. + public static PropulsionPlantConfiguration FromUInt32(uint value) + { + PropulsionPlantConfiguration ps = new PropulsionPlantConfiguration(); + + uint mask0 = 0x007f; + byte shift0 = 0; + uint newValue0 = (value & mask0) >> shift0; + ps.Configuration = (PropulsionPlantConfiguration.ConfigurationValue)newValue0; + + uint mask1 = 0x0080; + byte shift1 = 7; + uint newValue1 = (value & mask1) >> shift1; + ps.HullMountedMasker = (PropulsionPlantConfiguration.HullMountedMaskerValue)newValue1; + + return ps; + } + + /// + /// Gets or sets the configuration. + /// + /// The configuration. + public PropulsionPlantConfiguration.ConfigurationValue Configuration + { + get { return this.configuration; } + set { this.configuration = value; } + } + + /// + /// Gets or sets the hullmountedmasker. + /// + /// The hullmountedmasker. + public PropulsionPlantConfiguration.HullMountedMaskerValue HullMountedMasker + { + get { return this.hullMountedMasker; } + set { this.hullMountedMasker = value; } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (!(obj is PropulsionPlantConfiguration)) + { + return false; + } + + return this.Equals((PropulsionPlantConfiguration)obj); + } + + /// + /// Determines whether the specified instance is equal to this instance. + /// + /// The instance to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public bool Equals(PropulsionPlantConfiguration other) + { + // If parameter is null return false (cast to object to prevent recursive loop!) + if ((object)other == null) + { + return false; + } + + return + this.Configuration == other.Configuration && + this.HullMountedMasker == other.HullMountedMasker; + } + + /// + /// Converts the instance of to the byte array. + /// + /// The byte array representing the current instance. + public byte[] ToByteArray() + { + return BitConverter.GetBytes(this.ToUInt32()); + } + + /// + /// Converts the instance of to the uint value. + /// + /// The uint value representing the current instance. + public uint ToUInt32() + { + uint val = 0; + + val |= (uint)((uint)this.Configuration << 0); + val |= (uint)((uint)this.HullMountedMasker << 7); + + return val; + } + + /// + /// Returns a hash code for this instance. + /// + /// + /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + /// + public override int GetHashCode() + { + int hash = 17; + + // Overflow is fine, just wrap + unchecked + { + hash = (hash * 29) + this.Configuration.GetHashCode(); + hash = (hash * 29) + this.HullMountedMasker.GetHashCode(); + } + + return hash; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/ScanPattern.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.UnderwaterAcoustic/ScanPattern.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/ScanPattern.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.UnderwaterAcoustic/ScanPattern.cs index f3a31a7..610931d 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/ScanPattern.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.UnderwaterAcoustic/ScanPattern.cs @@ -1,89 +1,89 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.UnderwaterAcoustic -{ - /// - /// Enumeration values for ScanPattern (der.ua.scanpattern, Scan Pattern, - /// section 8.4.5) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum ScanPattern : ushort - { - /// - /// Scan pattern not used. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Scan pattern not used.")] - ScanPatternNotUsed = 0, - - /// - /// Conical. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Conical.")] - Conical = 1, - - /// - /// Helical. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Helical.")] - Helical = 2, - - /// - /// Raster. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Raster.")] - Raster = 3, - - /// - /// Sector search. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sector search.")] - SectorSearch = 4, - - /// - /// Continuous search. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Continuous search.")] - ContinuousSearch = 5 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.UnderwaterAcoustic +{ + /// + /// Enumeration values for ScanPattern (der.ua.scanpattern, Scan Pattern, + /// section 8.4.5) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum ScanPattern : ushort + { + /// + /// Scan pattern not used. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Scan pattern not used.")] + ScanPatternNotUsed = 0, + + /// + /// Conical. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Conical.")] + Conical = 1, + + /// + /// Helical. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Helical.")] + Helical = 2, + + /// + /// Raster. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Raster.")] + Raster = 3, + + /// + /// Sector search. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sector search.")] + SectorSearch = 4, + + /// + /// Continuous search. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Continuous search.")] + ContinuousSearch = 5 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/StateChangeUpdateIndicator.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.UnderwaterAcoustic/StateChangeUpdateIndicator.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/StateChangeUpdateIndicator.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.UnderwaterAcoustic/StateChangeUpdateIndicator.cs index 53ec7f6..b55ea83 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/StateChangeUpdateIndicator.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.UnderwaterAcoustic/StateChangeUpdateIndicator.cs @@ -1,49 +1,49 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.UnderwaterAcoustic -{ - /// - /// Enumeration values for StateChangeUpdateIndicator (der.ua.statechangeupdate, State/Change Update indicator, - /// section 8.4.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum StateChangeUpdateIndicator : byte - { - /// - /// State Update. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("State Update.")] - StateUpdate = 0, - - /// - /// Changed Data Update. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Changed Data Update.")] - ChangedDataUpdate = 1 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.UnderwaterAcoustic +{ + /// + /// Enumeration values for StateChangeUpdateIndicator (der.ua.statechangeupdate, State/Change Update indicator, + /// section 8.4.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum StateChangeUpdateIndicator : byte + { + /// + /// State Update. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("State Update.")] + StateUpdate = 0, + + /// + /// Changed Data Update. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Changed Data Update.")] + ChangedDataUpdate = 1 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/SystemName.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission.UnderwaterAcoustic/SystemName.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/SystemName.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission.UnderwaterAcoustic/SystemName.cs index 2ee80d5..e47eb90 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission.UnderwaterAcoustic/SystemName.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission.UnderwaterAcoustic/SystemName.cs @@ -1,129 +1,129 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission.UnderwaterAcoustic -{ - /// - /// Enumeration values for SystemName (der.ua.systemname, Acoustic System Name, - /// section 8.4.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum SystemName : ushort - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// AN/BQQ-5. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/BQQ-5.")] - ANBQQ5 = 1, - - /// - /// AN/SSQ-62. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SSQ-62.")] - ANSSQ62 = 2, - - /// - /// AN/SQS-23. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SQS-23.")] - ANSQS23 = 3, - - /// - /// AN/SQS-26. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SQS-26.")] - ANSQS26 = 4, - - /// - /// AN/SQS-53. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SQS-53.")] - ANSQS53 = 5, - - /// - /// ALFS. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ALFS.")] - ALFS = 6, - - /// - /// LFA. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("LFA.")] - LFA = 7, - - /// - /// AN/AQS-901. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/AQS-901.")] - ANAQS901 = 8, - - /// - /// AN/AQS-902. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/AQS-902.")] - ANAQS902 = 9 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission.UnderwaterAcoustic +{ + /// + /// Enumeration values for SystemName (der.ua.systemname, Acoustic System Name, + /// section 8.4.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum SystemName : ushort + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// AN/BQQ-5. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/BQQ-5.")] + ANBQQ5 = 1, + + /// + /// AN/SSQ-62. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SSQ-62.")] + ANSSQ62 = 2, + + /// + /// AN/SQS-23. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SQS-23.")] + ANSQS23 = 3, + + /// + /// AN/SQS-26. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SQS-26.")] + ANSQS26 = 4, + + /// + /// AN/SQS-53. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SQS-53.")] + ANSQS53 = 5, + + /// + /// ALFS. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ALFS.")] + ALFS = 6, + + /// + /// LFA. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("LFA.")] + LFA = 7, + + /// + /// AN/AQS-901. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/AQS-901.")] + ANAQS901 = 8, + + /// + /// AN/AQS-902. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/AQS-902.")] + ANAQS902 = 9 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/AircraftEnginePower.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission/AircraftEnginePower.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/AircraftEnginePower.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission/AircraftEnginePower.cs index cf886ef..c35d050 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/AircraftEnginePower.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission/AircraftEnginePower.cs @@ -1,79 +1,79 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission -{ - /// - /// Enumeration values for AircraftEnginePower (der.sees.power.aircraft, Aircraft, - /// section 8.5.1.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum AircraftEnginePower : int - { - /// - /// Engine Off. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Engine Off.")] - EngineOff = -100, - - /// - /// Idle Power. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Idle Power.")] - IdlePower = 0, - - /// - /// Mil. Power. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mil. Power.")] - MilPower = 50, - - /// - /// Min. A/B. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Min. A/B.")] - MinAB = 51, - - /// - /// Max. A/B. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Max. A/B.")] - MaxAB = 100 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission +{ + /// + /// Enumeration values for AircraftEnginePower (der.sees.power.aircraft, Aircraft, + /// section 8.5.1.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum AircraftEnginePower : int + { + /// + /// Engine Off. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Engine Off.")] + EngineOff = -100, + + /// + /// Idle Power. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Idle Power.")] + IdlePower = 0, + + /// + /// Mil. Power. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mil. Power.")] + MilPower = 50, + + /// + /// Min. A/B. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Min. A/B.")] + MinAB = 51, + + /// + /// Max. A/B. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Max. A/B.")] + MaxAB = 100 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/DesignatorCode.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission/DesignatorCode.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/DesignatorCode.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission/DesignatorCode.cs index 5e4ace6..37f0b8a 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/DesignatorCode.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission/DesignatorCode.cs @@ -1,39 +1,39 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission -{ - /// - /// Enumeration values for DesignatorCode (der.designator.code, Designator Code, - /// section 8.2.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum DesignatorCode : ushort - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission +{ + /// + /// Enumeration values for DesignatorCode (der.designator.code, Designator Code, + /// section 8.2.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum DesignatorCode : ushort + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/DesignatorCodeName.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission/DesignatorCodeName.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/DesignatorCodeName.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission/DesignatorCodeName.cs index 54e8788..ebbda6f 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/DesignatorCodeName.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission/DesignatorCodeName.cs @@ -1,39 +1,39 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission -{ - /// - /// Enumeration values for DesignatorCodeName (der.designator.codename, Code Name, - /// section 8.2.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum DesignatorCodeName : ushort - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission +{ + /// + /// Enumeration values for DesignatorCodeName (der.designator.codename, Code Name, + /// section 8.2.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum DesignatorCodeName : ushort + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/ElectromagneticEmitters.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission/ElectromagneticEmitters.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/ElectromagneticEmitters.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission/ElectromagneticEmitters.cs index 3aab7d3..9a35a4c 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/ElectromagneticEmitters.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission/ElectromagneticEmitters.cs @@ -1,11839 +1,11839 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission -{ - /// - /// Enumeration values for ElectromagneticEmitters (der.emission.name.electro, Electromagnetic emitters, - /// section 8.1.1.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum ElectromagneticEmitters : ushort - { - /// - /// 1RL138. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("1RL138.")] - _1RL138 = 10, - - /// - /// 1226 DECCA MIL. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("1226 DECCA MIL.")] - _1226DECCAMIL = 45, - - /// - /// 9GR400. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("9GR400.")] - _9GR400 = 80, - - /// - /// 9GR600. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("9GR600.")] - _9GR600 = 90, - - /// - /// 9LV 200 TA. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("9LV 200 TA.")] - _9LV200TA = 135, - - /// - /// 9LV 200 TV. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("9LV 200 TV.")] - _9LV200TV = 180, - - /// - /// A310Z. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("A310Z.")] - A310Z = 225, - - /// - /// A325A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("A325A.")] - A325A = 270, - - /// - /// A346Z. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("A346Z.")] - A346Z = 315, - - /// - /// A353B. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("A353B.")] - A353B = 360, - - /// - /// A372A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("A372A.")] - A372A = 405, - - /// - /// A372B. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("A372B.")] - A372B = 450, - - /// - /// A372C. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("A372C.")] - A372C = 495, - - /// - /// A377A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("A377A.")] - A377A = 540, - - /// - /// A377B. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("A377B.")] - A377B = 585, - - /// - /// A380Z. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("A380Z.")] - A380Z = 630, - - /// - /// A381Z. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("A381Z.")] - A381Z = 675, - - /// - /// A398Z. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("A398Z.")] - A398Z = 720, - - /// - /// A403Z. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("A403Z.")] - A403Z = 765, - - /// - /// A409A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("A409A.")] - A409A = 810, - - /// - /// A418A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("A418A.")] - A418A = 855, - - /// - /// A419Z. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("A419Z.")] - A419Z = 900, - - /// - /// A429Z. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("A429Z.")] - A429Z = 945, - - /// - /// A432Z. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("A432Z.")] - A432Z = 990, - - /// - /// A434Z. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("A434Z.")] - A434Z = 1035, - - /// - /// A401A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("A401A.")] - A401A = 1080, - - /// - /// AA-12 Seeker. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AA-12 Seeker.")] - AA12Seeker = 1095, - - /// - /// Agave. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Agave.")] - Agave = 1100, - - /// - /// AGRION 15. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AGRION 15.")] - AGRION15 = 1125, - - /// - /// AI MK 23. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AI MK 23.")] - AIMK23 = 1170, - - /// - /// AIDA II. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AIDA II.")] - AIDAII = 1215, - - /// - /// Albatros MK2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Albatros MK2.")] - AlbatrosMK2 = 1260, - - /// - /// Box Spring. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Box Spring.")] - BoxSpring = 1280, - - /// - /// Box Spring B. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Box Spring B.")] - BoxSpringB = 1282, - - /// - /// ANA SPS 502. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ANA SPS 502.")] - ANASPS502 = 1305, - - /// - /// ANRITSU Electric AR-30A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ANRITSU Electric AR-30A.")] - ANRITSUElectricAR30A = 1350, - - /// - /// Antilope V. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Antilope V.")] - AntilopeV = 1395, - - /// - /// AN/ALE-50. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/ALE-50.")] - ANALE50 = 1400, - - /// - /// AN/ALQ 99. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/ALQ 99.")] - ANALQ99 = 1440, - - /// - /// AN/ALQ-100. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/ALQ-100.")] - ANALQ100 = 1485, - - /// - /// AN/ALQ-101. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/ALQ-101.")] - ANALQ101 = 1530, - - /// - /// AN/ALQ-119. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/ALQ-119.")] - ANALQ119 = 1575, - - /// - /// AN/ALQ-122. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/ALQ-122.")] - ANALQ122 = 1585, - - /// - /// AN/ALQ-126A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/ALQ-126A.")] - ANALQ126A = 1620, - - /// - /// AN/ALQ-131. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/ALQ-131.")] - ANALQ131 = 1626, - - /// - /// AN/ALQ-135C/D. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/ALQ-135C/D.")] - ANALQ135CD = 1628, - - /// - /// AN/ALQ-144A(V)3. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/ALQ-144A(V)3.")] - ANALQ144AV3 = 1630, - - /// - /// AN/ALQ-153. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/ALQ-153.")] - ANALQ153 = 1632, - - /// - /// AN/ALQ-155. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/ALQ-155.")] - ANALQ155 = 1634, - - /// - /// AN/ALQ-161/A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/ALQ-161/A.")] - ANALQ161A = 1636, - - /// - /// AN/ALQ-162. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/ALQ-162.")] - ANALQ162 = 1638, - - /// - /// AN/ALQ-165. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/ALQ-165.")] - ANALQ165 = 1640, - - /// - /// AN/ALQ-167. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/ALQ-167.")] - ANALQ167 = 1642, - - /// - /// AN/ALQ-172(V)2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/ALQ-172(V)2.")] - ANALQ172V2 = 1644, - - /// - /// AN/ALQ-176. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/ALQ-176.")] - ANALQ176 = 1646, - - /// - /// AN/ALQ-184. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/ALQ-184.")] - ANALQ184 = 1648, - - /// - /// AN/ALQ-188. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/ALQ-188.")] - ANALQ188 = 1650, - - /// - /// AN/ALR-56. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/ALR-56.")] - ANALR56 = 1652, - - /// - /// AN/ALR-69. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/ALR-69.")] - ANALR69 = 1654, - - /// - /// AN/ALT-16A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/ALT-16A.")] - ANALT16A = 1656, - - /// - /// AN/ALT-28. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/ALT-28.")] - ANALT28 = 1658, - - /// - /// AN/ALT-32A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/ALT-32A.")] - ANALT32A = 1660, - - /// - /// AN/APD 10. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APD 10.")] - ANAPD10 = 1665, - - /// - /// AN/APG 53. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APG 53.")] - ANAPG53 = 1710, - - /// - /// AN/APG 59. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APG 59.")] - ANAPG59 = 1755, - - /// - /// AN/APG-63. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APG-63.")] - ANAPG63 = 1800, - - /// - /// AN/APG-63(V)1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APG-63(V)1.")] - ANAPG63V1 = 1805, - - /// - /// AN/APG-63(V)2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APG-63(V)2.")] - ANAPG63V2 = 1807, - - /// - /// AN/APG-63(V)3. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APG-63(V)3.")] - ANAPG63V3 = 1809, - - /// - /// AN/APG 65. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APG 65.")] - ANAPG65 = 1845, - - /// - /// AN/APG-66. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APG-66.")] - ANAPG66 = 1870, - - /// - /// AN/APG 68. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APG 68.")] - ANAPG68 = 1890, - - /// - /// AN/APG 70. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APG 70.")] - ANAPG70 = 1935, - - /// - /// AN/APG-73. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APG-73.")] - ANAPG73 = 1945, - - /// - /// AN/APG-77. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APG-77.")] - ANAPG77 = 1960, - - /// - /// AN/APG-78. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APG-78.")] - ANAPG78 = 1970, - - /// - /// AN/APG-502. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APG-502.")] - ANAPG502 = 1980, - - /// - /// AN/APN-1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APN-1.")] - ANAPN1 = 2025, - - /// - /// AN/APN-22. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APN-22.")] - ANAPN22 = 2070, - - /// - /// AN/APN 59. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APN 59.")] - ANAPN59 = 2115, - - /// - /// AN/APN-69. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APN-69.")] - ANAPN69 = 2160, - - /// - /// AN/APN-81. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APN-81.")] - ANAPN81 = 2205, - - /// - /// AN/APN-117. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APN-117.")] - ANAPN117 = 2250, - - /// - /// AN/APN-118. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APN-118.")] - ANAPN118 = 2295, - - /// - /// AN/APN-130. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APN-130.")] - ANAPN130 = 2340, - - /// - /// AN/APN-131. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APN-131.")] - ANAPN131 = 2385, - - /// - /// AN/APN-133. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APN-133.")] - ANAPN133 = 2430, - - /// - /// AN/APN-134. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APN-134.")] - ANAPN134 = 2475, - - /// - /// AN/APN-147. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APN-147.")] - ANAPN147 = 2520, - - /// - /// AN/APN-150. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APN-150.")] - ANAPN150 = 2565, - - /// - /// AN/APN-153. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APN-153.")] - ANAPN153 = 2610, - - /// - /// AN/APN 154. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APN 154.")] - ANAPN154 = 2655, - - /// - /// AN/APN-155. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APN-155.")] - ANAPN155 = 2700, - - /// - /// AN/APN-159. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APN-159.")] - ANAPN159 = 2745, - - /// - /// AN/APN-182. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APN-182.")] - ANAPN182 = 2790, - - /// - /// AN/APN-187. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APN-187.")] - ANAPN187 = 2835, - - /// - /// AN/APN-190. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APN-190.")] - ANAPN190 = 2880, - - /// - /// AN/APN 194. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APN 194.")] - ANAPN194 = 2925, - - /// - /// AN/APN-195. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APN-195.")] - ANAPN195 = 2970, - - /// - /// AN/APN-198. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APN-198.")] - ANAPN198 = 3015, - - /// - /// AN/APN-200. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APN-200.")] - ANAPN200 = 3060, - - /// - /// AN/APN 202. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APN 202.")] - ANAPN202 = 3105, - - /// - /// AN/APN-217. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APN-217.")] - ANAPN217 = 3150, - - /// - /// AN/APN-218. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APN-218.")] - ANAPN218 = 3152, - - /// - /// AN/APN-238. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APN-238.")] - ANAPN238 = 3160, - - /// - /// AN/APN-239. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APN-239.")] - ANAPN239 = 3162, - - /// - /// AN/APN-241. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APN-241.")] - ANAPN241 = 3164, - - /// - /// AN/APN-242. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APN-242.")] - ANAPN242 = 3166, - - /// - /// AN/APN-506. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APN-506.")] - ANAPN506 = 3195, - - /// - /// AN/APQ-72. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APQ-72.")] - ANAPQ72 = 3240, - - /// - /// AN/APQ-99. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APQ-99.")] - ANAPQ99 = 3285, - - /// - /// AN/APQ 100. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APQ 100.")] - ANAPQ100 = 3330, - - /// - /// AN/APQ-102. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APQ-102.")] - ANAPQ102 = 3375, - - /// - /// AN/APQ-109. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APQ-109.")] - ANAPQ109 = 3420, - - /// - /// AN/APQ 113. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APQ 113.")] - ANAPQ113 = 3465, - - /// - /// AN/APQ 120. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APQ 120.")] - ANAPQ120 = 3510, - - /// - /// AN/APQ 126. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APQ 126.")] - ANAPQ126 = 3555, - - /// - /// AN/APQ-128. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APQ-128.")] - ANAPQ128 = 3600, - - /// - /// AN/APQ-129. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APQ-129.")] - ANAPQ129 = 3645, - - /// - /// AN/APQ 148. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APQ 148.")] - ANAPQ148 = 3690, - - /// - /// AN/APQ-153. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APQ-153.")] - ANAPQ153 = 3735, - - /// - /// AN/APQ 159. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APQ 159.")] - ANAPQ159 = 3780, - - /// - /// AN/APQ-164. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APQ-164.")] - ANAPQ164 = 3785, - - /// - /// AN/APQ-166. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APQ-166.")] - ANAPQ166 = 3788, - - /// - /// AN/APQ-181. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APQ-181.")] - ANAPQ181 = 3795, - - /// - /// AN/APS-31. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APS-31.")] - ANAPS31 = 3820, - - /// - /// AN/APS-42. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APS-42.")] - ANAPS42 = 3825, - - /// - /// AN/APS 80. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APS 80.")] - ANAPS80 = 3870, - - /// - /// AN/APS-88. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APS-88.")] - ANAPS88 = 3915, - - /// - /// AN/APS 115. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APS 115.")] - ANAPS115 = 3960, - - /// - /// AN/APS 116. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APS 116.")] - ANAPS116 = 4005, - - /// - /// AN/APS-120. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APS-120.")] - ANAPS120 = 4050, - - /// - /// AN/APS 121. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APS 121.")] - ANAPS121 = 4095, - - /// - /// AN/APS 124. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APS 124.")] - ANAPS124 = 4140, - - /// - /// AN/APS 125. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APS 125.")] - ANAPS125 = 4185, - - /// - /// AN/APS-128. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APS-128.")] - ANAPS128 = 4230, - - /// - /// AN/APS 130. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APS 130.")] - ANAPS130 = 4275, - - /// - /// AN/APS 133. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APS 133.")] - ANAPS133 = 4320, - - /// - /// AN/APS-134. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APS-134.")] - ANAPS134 = 4365, - - /// - /// AN/APS 137. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APS 137.")] - ANAPS137 = 4410, - - /// - /// AN/APS-138. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APS-138.")] - ANAPS138 = 4455, - - /// - /// AN/APS-143 (V) 1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APS-143 (V) 1.")] - ANAPS143V1 = 4465, - - /// - /// AN/APW 22. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APW 22.")] - ANAPW22 = 4500, - - /// - /// AN/APW 23. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APW 23.")] - ANAPW23 = 4545, - - /// - /// AN/APX-6. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APX-6.")] - ANAPX6 = 4590, - - /// - /// AN/APX 7. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APX 7.")] - ANAPX7 = 4635, - - /// - /// AN/APX 39. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APX 39.")] - ANAPX39 = 4680, - - /// - /// AN/APX-72. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APX-72.")] - ANAPX72 = 4725, - - /// - /// AN/APX 76. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APX 76.")] - ANAPX76 = 4770, - - /// - /// AN/APX 78. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APX 78.")] - ANAPX78 = 4815, - - /// - /// AN/APX 101. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APX 101.")] - ANAPX101 = 4860, - - /// - /// AN/APX-113 AIFF. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APX-113 AIFF.")] - ANAPX113AIFF = 4870, - - /// - /// AN/APY-1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APY-1.")] - ANAPY1 = 4900, - - /// - /// AN/APY 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APY 2.")] - ANAPY2 = 4905, - - /// - /// AN/APY 3. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/APY 3.")] - ANAPY3 = 4950, - - /// - /// LYNX(tm). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("LYNX(tm).")] - LYNXTm = 4953, - - /// - /// AN/ARN 21. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/ARN 21.")] - ANARN21 = 4995, - - /// - /// AN/ARN 52. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/ARN 52.")] - ANARN52 = 5040, - - /// - /// AN/ARN 84. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/ARN 84.")] - ANARN84 = 5085, - - /// - /// AN/ARN 118. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/ARN 118.")] - ANARN118 = 5130, - - /// - /// AN/ARW 73. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/ARW 73.")] - ANARW73 = 5175, - - /// - /// AN/ASB 1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/ASB 1.")] - ANASB1 = 5220, - - /// - /// AN/ASG 21. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/ASG 21.")] - ANASG21 = 5265, - - /// - /// AN/ASQ-108. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/ASQ-108.")] - ANASQ108 = 5280, - - /// - /// AN/AWG 9. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/AWG 9.")] - ANAWG9 = 5310, - - /// - /// AN/BPS-9. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/BPS-9.")] - ANBPS9 = 5355, - - /// - /// AN/BPS 15. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/BPS 15.")] - ANBPS15 = 5400, - - /// - /// AN/BPS-16. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/BPS-16.")] - ANBPS16 = 5405, - - /// - /// AN/CRM-30. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/CRM-30.")] - ANCRM30 = 5420, - - /// - /// AN/DPW-23. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/DPW-23.")] - ANDPW23 = 5430, - - /// - /// AN/DSQ 26 Phoenix MH. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/DSQ 26 Phoenix MH.")] - ANDSQ26PhoenixMH = 5445, - - /// - /// AN/DSQ 28 Harpoon MH. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/DSQ 28 Harpoon MH.")] - ANDSQ28HarpoonMH = 5490, - - /// - /// AN/FPN-40. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/FPN-40.")] - ANFPN40 = 5495, - - /// - /// AN/FPN-62. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/FPN-62.")] - ANFPN62 = 5500, - - /// - /// AN/FPS-16. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/FPS-16.")] - ANFPS16 = 5505, - - /// - /// AN/FPS-18. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/FPS-18.")] - ANFPS18 = 5507, - - /// - /// AN/FPS-89. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/FPS-89.")] - ANFPS89 = 5508, - - /// - /// AN/FPS-117. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/FPS-117.")] - ANFPS117 = 5510, - - /// - /// AN/FPS-20R. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/FPS-20R.")] - ANFPS20R = 5515, - - /// - /// AN/FPS-77. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/FPS-77.")] - ANFPS77 = 5520, - - /// - /// AN/FPS-103. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/FPS-103.")] - ANFPS103 = 5525, - - /// - /// AN/GPN-12. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/GPN-12.")] - ANGPN12 = 5527, - - /// - /// AN/GPX-6. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/GPX-6.")] - ANGPX6 = 5530, - - /// - /// AN/GPX 8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/GPX 8.")] - ANGPX8 = 5535, - - /// - /// AN/GRN-12. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/GRN-12.")] - ANGRN12 = 5537, - - /// - /// AN/MPQ-10. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/MPQ-10.")] - ANMPQ10 = 5540, - - /// - /// AN/MPQ-33/39/46/57/61 (HPIR) ILL. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/MPQ-33/39/46/57/61 (HPIR) ILL.")] - ANMPQ3339465761HPIRILL = 5545, - - /// - /// AN/MPQ-34/48/55/62 (CWAR) TA. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/MPQ-34/48/55/62 (CWAR) TA.")] - ANMPQ34485562CWARTA = 5550, - - /// - /// AN/MPQ-49. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/MPQ-49.")] - ANMPQ49 = 5551, - - /// - /// AN/MPQ-35/50 (PAR) TA. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/MPQ-35/50 (PAR) TA.")] - ANMPQ3550PARTA = 5555, - - /// - /// AN/MPQ-37/51 (ROR) TT. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/MPQ-37/51 (ROR) TT.")] - ANMPQ3751RORTT = 5560, - - /// - /// AN/MPQ-53. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/MPQ-53.")] - ANMPQ53 = 5570, - - /// - /// AN/MPQ-63. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/MPQ-63.")] - ANMPQ63 = 5571, - - /// - /// AN/MPQ-64. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/MPQ-64.")] - ANMPQ64 = 5575, - - /// - /// AN/SPG-34. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPG-34.")] - ANSPG34 = 5580, - - /// - /// AN/SPG 50. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPG 50.")] - ANSPG50 = 5625, - - /// - /// AN/SPG 51. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPG 51.")] - ANSPG51 = 5670, - - /// - /// AN/SPG-51 CWI TI. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPG-51 CWI TI.")] - ANSPG51CWITI = 5715, - - /// - /// AN/SPG-51 FC. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPG-51 FC.")] - ANSPG51FC = 5760, - - /// - /// AN/SPG 52. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPG 52.")] - ANSPG52 = 5805, - - /// - /// AN/SPG-53. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPG-53.")] - ANSPG53 = 5850, - - /// - /// AN/SPG 55B. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPG 55B.")] - ANSPG55B = 5895, - - /// - /// AN/SPG 60. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPG 60.")] - ANSPG60 = 5940, - - /// - /// AN/SPG 62. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPG 62.")] - ANSPG62 = 5985, - - /// - /// AN/SPN 35. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPN 35.")] - ANSPN35 = 6030, - - /// - /// AN/SPN 43. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPN 43.")] - ANSPN43 = 6075, - - /// - /// AN/SPQ-2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPQ-2.")] - ANSPQ2 = 6120, - - /// - /// AN/SPQ 9. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPQ 9.")] - ANSPQ9 = 6165, - - /// - /// AN/SPS-4. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPS-4.")] - ANSPS4 = 6210, - - /// - /// AN/SPS-5. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPS-5.")] - ANSPS5 = 6255, - - /// - /// AN/SPS-5C. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPS-5C.")] - ANSPS5C = 6300, - - /// - /// AN/SPS-6. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPS-6.")] - ANSPS6 = 6345, - - /// - /// AN/SPS 10. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPS 10.")] - ANSPS10 = 6390, - - /// - /// AN/SPS 21. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPS 21.")] - ANSPS21 = 6435, - - /// - /// AN/SPS-28. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPS-28.")] - ANSPS28 = 6480, - - /// - /// AN/SPS-37. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPS-37.")] - ANSPS37 = 6525, - - /// - /// AN/SPS-39A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPS-39A.")] - ANSPS39A = 6570, - - /// - /// AN/SPS 40. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPS 40.")] - ANSPS40 = 6615, - - /// - /// AN/SPS-41. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPS-41.")] - ANSPS41 = 6660, - - /// - /// AN/SPS-48. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPS-48.")] - ANSPS48 = 6705, - - /// - /// AN/SPS-48C. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPS-48C.")] - ANSPS48C = 6750, - - /// - /// AN/SPS-48E. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPS-48E.")] - ANSPS48E = 6752, - - /// - /// AN/SPS-49. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPS-49.")] - ANSPS49 = 6795, - - /// - /// AN/SPS-49(V)1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPS-49(V)1.")] - ANSPS49V1 = 6796, - - /// - /// AN/SPS-49(V)2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPS-49(V)2.")] - ANSPS49V2 = 6797, - - /// - /// AN/SPS-49(V)3. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPS-49(V)3.")] - ANSPS49V3 = 6798, - - /// - /// AN/SPS-49(V)4. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPS-49(V)4.")] - ANSPS49V4 = 6799, - - /// - /// AN/SPS-49(V)5. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPS-49(V)5.")] - ANSPS49V5 = 6800, - - /// - /// AN/SPS-49(V)6. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPS-49(V)6.")] - ANSPS49V6 = 6801, - - /// - /// AN/SPS-49(V)7. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPS-49(V)7.")] - ANSPS49V7 = 6802, - - /// - /// AN/SPS-49(V)8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPS-49(V)8.")] - ANSPS49V8 = 6803, - - /// - /// AN/SPS-49A(V)1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPS-49A(V)1.")] - ANSPS49AV1 = 6804, - - /// - /// AN/SPS 52. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPS 52.")] - ANSPS52 = 6840, - - /// - /// AN/SPS 53. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPS 53.")] - ANSPS53 = 6885, - - /// - /// AN/SPS 55. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPS 55.")] - ANSPS55 = 6930, - - /// - /// AN/SPS-55 SS. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPS-55 SS.")] - ANSPS55SS = 6975, - - /// - /// AN/SPS-58. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPS-58.")] - ANSPS58 = 7020, - - /// - /// AN/SPS 59. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPS 59.")] - ANSPS59 = 7065, - - /// - /// AN/SPS 64. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPS 64.")] - ANSPS64 = 7110, - - /// - /// AN/SPS 65. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPS 65.")] - ANSPS65 = 7155, - - /// - /// AN/SPS 67. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPS 67.")] - ANSPS67 = 7200, - - /// - /// AN/SPY-1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPY-1.")] - ANSPY1 = 7245, - - /// - /// AN/SPY-1A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPY-1A.")] - ANSPY1A = 7250, - - /// - /// AN/SPY-1B. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPY-1B.")] - ANSPY1B = 7252, - - /// - /// AN/SPY-1B(V). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPY-1B(V).")] - ANSPY1BV = 7253, - - /// - /// AN/SPY-1D. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPY-1D.")] - ANSPY1D = 7260, - - /// - /// AN/SPY-1D(V). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPY-1D(V).")] - ANSPY1DV = 7261, - - /// - /// AN/SPY-1F. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/SPY-1F.")] - ANSPY1F = 7265, - - /// - /// AN/TPN-17. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/TPN-17.")] - ANTPN17 = 7270, - - /// - /// AN/TPN-24. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/TPN-24.")] - ANTPN24 = 7275, - - /// - /// AN/TPQ-18. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/TPQ-18.")] - ANTPQ18 = 7280, - - /// - /// AN/TPQ-36. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/TPQ-36.")] - ANTPQ36 = 7295, - - /// - /// AN/TPQ-37. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/TPQ-37.")] - ANTPQ37 = 7300, - - /// - /// AN/TPQ-38 (V8). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/TPQ-38 (V8).")] - ANTPQ38V8 = 7301, - - /// - /// AN/TPQ-47. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/TPQ-47.")] - ANTPQ47 = 7303, - - /// - /// AN/TPS-43. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/TPS-43.")] - ANTPS43 = 7305, - - /// - /// AN/TPS-43E. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/TPS-43E.")] - ANTPS43E = 7310, - - /// - /// AN/TPS-59. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/TPS-59.")] - ANTPS59 = 7315, - - /// - /// AN/TPS-63. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/TPS-63.")] - ANTPS63 = 7320, - - /// - /// AN/TPS-70 (V) 1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/TPS-70 (V) 1.")] - ANTPS70V1 = 7322, - - /// - /// AN/TPS-75. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/TPS-75.")] - ANTPS75 = 7325, - - /// - /// AN/TPX-46(V)7. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/TPX-46(V)7.")] - ANTPX46V7 = 7330, - - /// - /// AN/ULQ-6A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/ULQ-6A.")] - ANULQ6A = 7335, - - /// - /// AN/UPN 25. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/UPN 25.")] - ANUPN25 = 7380, - - /// - /// AN/UPS 1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/UPS 1.")] - ANUPS1 = 7425, - - /// - /// AN/UPS-2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/UPS-2.")] - ANUPS2 = 7426, - - /// - /// AN/UPX 1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/UPX 1.")] - ANUPX1 = 7470, - - /// - /// AN/UPX 5. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/UPX 5.")] - ANUPX5 = 7515, - - /// - /// AN/UPX 11. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/UPX 11.")] - ANUPX11 = 7560, - - /// - /// AN/UPX 12. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/UPX 12.")] - ANUPX12 = 7605, - - /// - /// AN/UPX 17. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/UPX 17.")] - ANUPX17 = 7650, - - /// - /// AN/UPX 23. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/UPX 23.")] - ANUPX23 = 7695, - - /// - /// AN/VPS 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/VPS 2.")] - ANVPS2 = 7740, - - /// - /// Apelco AD 7 7. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Apelco AD 7 7.")] - ApelcoAD77 = 7785, - - /// - /// APG 71. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("APG 71.")] - APG71 = 7830, - - /// - /// APN 148. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("APN 148.")] - APN148 = 7875, - - /// - /// APN 227. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("APN 227.")] - APN227 = 7920, - - /// - /// APS 504 V3. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("APS 504 V3.")] - APS504V3 = 8100, - - /// - /// AR 3D. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AR 3D.")] - AR3D = 8105, - - /// - /// Plessey AR-5. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Plessey AR-5.")] - PlesseyAR5 = 8112, - - /// - /// AR 320. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AR 320.")] - AR320 = 8115, - - /// - /// AR 327. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AR 327.")] - AR327 = 8120, - - /// - /// AR M31. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AR M31.")] - ARM31 = 8145, - - /// - /// ARI 5954. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ARI 5954.")] - ARI5954 = 8190, - - /// - /// ARI 5955. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ARI 5955.")] - ARI5955 = 8235, - - /// - /// ARI 5979. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ARI 5979.")] - ARI5979 = 8280, - - /// - /// ARINC 564 BNDX/KING RDR 1E. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ARINC 564 BNDX/KING RDR 1E.")] - ARINC564BNDXKINGRDR1E = 8325, - - /// - /// ARINC 700 BNDX/KING RDR 1E. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ARINC 700 BNDX/KING RDR 1E.")] - ARINC700BNDXKINGRDR1E = 8370, - - /// - /// ARK-1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ARK-1.")] - ARK1 = 8375, - - /// - /// ARSR-3. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ARSR-3.")] - ARSR3 = 8380, - - /// - /// ARSR-18. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ARSR-18.")] - ARSR18 = 8390, - - /// - /// AS 2 Kipper. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AS 2 Kipper.")] - AS2Kipper = 8415, - - /// - /// AS 2 Kipper MH. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AS 2 Kipper MH.")] - AS2KipperMH = 8460, - - /// - /// AS 4 Kitchen. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AS 4 Kitchen.")] - AS4Kitchen = 8505, - - /// - /// AS 4 Kitchen MH. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AS 4 Kitchen MH.")] - AS4KitchenMH = 8550, - - /// - /// AS 5 Kelt MH. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AS 5 Kelt MH.")] - AS5KeltMH = 8595, - - /// - /// AS 6 Kingfish MH. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AS 6 Kingfish MH.")] - AS6KingfishMH = 8640, - - /// - /// AS 7 Kerry. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AS 7 Kerry.")] - AS7Kerry = 8685, - - /// - /// AS 7 Kerry MG. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AS 7 Kerry MG.")] - AS7KerryMG = 8730, - - /// - /// AS 15 KENT altimeter. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AS 15 KENT altimeter.")] - AS15KENTAltimeter = 8735, - - /// - /// Aspide AAM/SAM ILL. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Aspide AAM/SAM ILL.")] - AspideAAMSAMILL = 8760, - - /// - /// ASR-4. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ASR-4.")] - ASR4 = 8772, - - /// - /// ASR O. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ASR O.")] - ASRO = 8775, - - /// - /// ASR-5. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ASR-5.")] - ASR5 = 8780, - - /// - /// ASR-7. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ASR-7.")] - ASR7 = 8782, - - /// - /// ASR-8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ASR-8.")] - ASR8 = 8785, - - /// - /// ASR-9. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ASR-9.")] - ASR9 = 8790, - - /// - /// Raytheon ASR-10SS. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Raytheon ASR-10SS.")] - RaytheonASR10SS = 8812, - - /// - /// AT 2 Swatter MG. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AT 2 Swatter MG.")] - AT2SwatterMG = 8820, - - /// - /// ATCR-33. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ATCR-33.")] - ATCR33 = 8840, - - /// - /// ATCR 33 K/M. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ATCR 33 K/M.")] - ATCR33KM = 8845, - - /// - /// Atlas Elektronk TRS N. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Atlas Elektronk TRS N.")] - AtlasElektronkTRSN = 8865, - - /// - /// ATLAS-9740 VTS. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ATLAS-9740 VTS.")] - ATLAS9740VTS = 8870, - - /// - /// AVG 65. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AVG 65.")] - AVG65 = 8910, - - /// - /// AVH 7. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AVH 7.")] - AVH7 = 8955, - - /// - /// AVQ 20. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AVQ 20.")] - AVQ20 = 9000, - - /// - /// AVQ30X. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AVQ30X.")] - AVQ30X = 9045, - - /// - /// AVQ-50 (RCA). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AVQ-50 (RCA).")] - AVQ50RCA = 9075, - - /// - /// AVQ 70. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AVQ 70.")] - AVQ70 = 9090, - - /// - /// AWS 5. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AWS 5.")] - AWS5 = 9135, - - /// - /// AWS 6. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AWS 6.")] - AWS6 = 9180, - - /// - /// B597Z. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("B597Z.")] - B597Z = 9200, - - /// - /// B636Z. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("B636Z.")] - B636Z = 9205, - - /// - /// Back Net A B. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Back Net A B.")] - BackNetAB = 9225, - - /// - /// Back Trap. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Back Trap.")] - BackTrap = 9270, - - /// - /// BALTYK. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("BALTYK.")] - BALTYK = 9310, - - /// - /// Ball End. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ball End.")] - BallEnd = 9315, - - /// - /// Ball Gun. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ball Gun.")] - BallGun = 9360, - - /// - /// Band Stand. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Band Stand.")] - BandStand = 9405, - - /// - /// Bar Lock. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Bar Lock.")] - BarLock = 9450, - - /// - /// Bass Tilt. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Bass Tilt.")] - BassTilt = 9495, - - /// - /// Beacon. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Beacon.")] - Beacon = 9540, - - /// - /// Bean Sticks. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Bean Sticks.")] - BeanSticks = 9585, - - /// - /// Bee Hind. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Bee Hind.")] - BeeHind = 9630, - - /// - /// Bell Crown A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Bell Crown A.")] - BellCrownA = 9640, - - /// - /// Bell Crown B. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Bell Crown B.")] - BellCrownB = 9642, - - /// - /// BIG BACK. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("BIG BACK.")] - BIGBACK = 9645, - - /// - /// Big Bird. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Big Bird.")] - BigBird = 9660, - - /// - /// Big Bulge. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Big Bulge.")] - BigBulge = 9675, - - /// - /// Big Bulge A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Big Bulge A.")] - BigBulgeA = 9720, - - /// - /// Big Bulge B. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Big Bulge B.")] - BigBulgeB = 9765, - - /// - /// Big Fred. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Big Fred.")] - BigFred = 9780, - - /// - /// Big Mesh. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Big Mesh.")] - BigMesh = 9810, - - /// - /// Big Net. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Big Net.")] - BigNet = 9855, - - /// - /// Bill Board. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Bill Board.")] - BillBoard = 9885, - - /// - /// Bill Fold. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Bill Fold.")] - BillFold = 9900, - - /// - /// Blowpipe MG. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Blowpipe MG.")] - BlowpipeMG = 9905, - - /// - /// Sea Harrier FRS Mk 1/5. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sea Harrier FRS Mk 1/5.")] - SeaHarrierFRSMk15 = 9930, - - /// - /// Sea Harrier F/A Mk 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sea Harrier F/A Mk 2.")] - SeaHarrierFAMk2 = 9935, - - /// - /// Blue Silk. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Blue Silk.")] - BlueSilk = 9945, - - /// - /// Blue Parrot. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Blue Parrot.")] - BlueParrot = 9990, - - /// - /// Blue Orchid. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Blue Orchid.")] - BlueOrchid = 10035, - - /// - /// Boat Sail. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Boat Sail.")] - BoatSail = 10080, - - /// - /// Bofors Electronic 9LV 331. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Bofors Electronic 9LV 331.")] - BoforsElectronic9LV331 = 10125, - - /// - /// Bofors Ericsson Sea Giraffe 50 HC. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Bofors Ericsson Sea Giraffe 50 HC.")] - BoforsEricssonSeaGiraffe50HC = 10170, - - /// - /// Bowl Mesh. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Bowl Mesh.")] - BowlMesh = 10215, - - /// - /// Box Brick. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Box Brick.")] - BoxBrick = 10260, - - /// - /// Box Tail. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Box Tail.")] - BoxTail = 10305, - - /// - /// BPS 11A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("BPS 11A.")] - BPS11A = 10350, - - /// - /// BPS 14. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("BPS 14.")] - BPS14 = 10395, - - /// - /// BPS 15A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("BPS 15A.")] - BPS15A = 10440, - - /// - /// BR-15 Tokyo KEIKI. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("BR-15 Tokyo KEIKI.")] - BR15TokyoKEIKI = 10485, - - /// - /// BRIDGEMASTE. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("BRIDGEMASTE.")] - BRIDGEMASTE = 10510, - - /// - /// Bread Bin. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Bread Bin.")] - BreadBin = 10530, - - /// - /// BT 271. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("BT 271.")] - BT271 = 10575, - - /// - /// BX 732. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("BX 732.")] - BX732 = 10620, - - /// - /// Buzz Stand. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Buzz Stand.")] - BuzzStand = 10665, - - /// - /// C 5A Multi Mode Radar. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("C 5A Multi Mode Radar.")] - C5AMultiModeRadar = 10710, - - /// - /// Caiman. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Caiman.")] - Caiman = 10755, - - /// - /// Cake Stand. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Cake Stand.")] - CakeStand = 10800, - - /// - /// Calypso C61. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Calypso C61.")] - CalypsoC61 = 10845, - - /// - /// Calypso Ii. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Calypso Ii.")] - CalypsoIi = 10890, - - /// - /// Cardion Coastal. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Cardion Coastal.")] - CardionCoastal = 10895, - - /// - /// Castor Ii. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Castor Ii.")] - CastorIi = 10935, - - /// - /// Castor 2J TT (Crotale NG). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Castor 2J TT (Crotale NG).")] - Castor2JTTCrotaleNG = 10940, - - /// - /// Cat House. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Cat House.")] - CatHouse = 10980, - - /// - /// CDR-431. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("CDR-431.")] - CDR431 = 10985, - - /// - /// Chair Back TT. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Chair Back TT.")] - ChairBackTT = 11000, - - /// - /// Chair Back ILL. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Chair Back ILL.")] - ChairBackILL = 11010, - - /// - /// Cheese Brick. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Cheese Brick.")] - CheeseBrick = 11025, - - /// - /// Clam Pipe. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Clam Pipe.")] - ClamPipe = 11070, - - /// - /// Clamshell. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Clamshell.")] - Clamshell = 11115, - - /// - /// Collins WXR-700X. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Collins WXR-700X.")] - CollinsWXR700X = 11160, - - /// - /// Collins DN 101. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Collins DN 101.")] - CollinsDN101 = 11205, - - /// - /// Contraves Sea Hunter MK 4. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Contraves Sea Hunter MK 4.")] - ContravesSeaHunterMK4 = 11250, - - /// - /// Corn Can. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Corn Can.")] - CornCan = 11260, - - /// - /// CR-105 RMCA. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("CR-105 RMCA.")] - CR105RMCA = 11270, - - /// - /// Cross Bird. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Cross Bird.")] - CrossBird = 11295, - - /// - /// Cross Dome. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Cross Dome.")] - CrossDome = 11340, - - /// - /// Cross Legs. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Cross Legs.")] - CrossLegs = 11385, - - /// - /// Cross Out. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Cross Out.")] - CrossOut = 11430, - - /// - /// Cross Slot. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Cross Slot.")] - CrossSlot = 11475, - - /// - /// Cross Sword. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Cross Sword.")] - CrossSword = 11520, - - /// - /// Cross Up. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Cross Up.")] - CrossUp = 11565, - - /// - /// Cross Sword FC. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Cross Sword FC.")] - CrossSwordFC = 11610, - - /// - /// THD-5000. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("THD-5000.")] - THD5000 = 11655, - - /// - /// Griffon. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Griffon.")] - Griffon = 11660, - - /// - /// Crotale TT. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Crotale TT.")] - CrotaleTT = 11665, - - /// - /// Crotale MGMissile System. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Crotale MGMissile System.")] - CrotaleMGMissileSystem = 11700, - - /// - /// CSS C 3C CAS 1M1 M2 MH. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("CSS C 3C CAS 1M1 M2 MH.")] - CSSC3CCAS1M1M2MH = 11745, - - /// - /// CSS C 2B HY 1A MH. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("CSS C 2B HY 1A MH.")] - CSSC2BHY1AMH = 11790, - - /// - /// CWS 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("CWS 2.")] - CWS2 = 11835, - - /// - /// Cylinder Head. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Cylinder Head.")] - CylinderHead = 11880, - - /// - /// Cyrano II. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Cyrano II.")] - CyranoII = 11925, - - /// - /// Cyrano IV. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Cyrano IV.")] - CyranoIV = 11970, - - /// - /// Cyrano IV-M. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Cyrano IV-M.")] - CyranoIVM = 11975, - - /// - /// DA-01/00. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DA-01/00.")] - DA0100 = 12010, - - /// - /// DA 05 00. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DA 05 00.")] - DA0500 = 12015, - - /// - /// Dawn. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Dawn.")] - Dawn = 12060, - - /// - /// Dead Duck. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Dead Duck.")] - DeadDuck = 12105, - - /// - /// DECCA-20 V90/9. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DECCA-20 V90/9.")] - DECCA20V909 = 12110, - - /// - /// DECCA-20 V90S. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DECCA-20 V90S.")] - DECCA20V90S = 12111, - - /// - /// DECCA 45. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DECCA 45.")] - DECCA45 = 12150, - - /// - /// DECCA 50. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DECCA 50.")] - DECCA50 = 12195, - - /// - /// DECCA 110. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DECCA 110.")] - DECCA110 = 12240, - - /// - /// DECCA 170. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DECCA 170.")] - DECCA170 = 12285, - - /// - /// DECCA HF 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DECCA HF 2.")] - DECCAHF2 = 12292, - - /// - /// DECCA 202. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DECCA 202.")] - DECCA202 = 12330, - - /// - /// DECCA D202. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DECCA D202.")] - DECCAD202 = 12375, - - /// - /// DECCA 303. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DECCA 303.")] - DECCA303 = 12420, - - /// - /// DECCA 535. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DECCA 535.")] - DECCA535 = 12430, - - /// - /// DECCA 626. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DECCA 626.")] - DECCA626 = 12465, - - /// - /// DECCA 629. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DECCA 629.")] - DECCA629 = 12510, - - /// - /// DECCA 914. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DECCA 914.")] - DECCA914 = 12555, - - /// - /// DECCA 916. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DECCA 916.")] - DECCA916 = 12600, - - /// - /// DECCA 926. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DECCA 926.")] - DECCA926 = 12610, - - /// - /// DECCA 1226 Commercial. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DECCA 1226 Commercial.")] - DECCA1226Commercial = 12645, - - /// - /// DECCA 1626. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DECCA 1626.")] - DECCA1626 = 12690, - - /// - /// DECCA 2459. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DECCA 2459.")] - DECCA2459 = 12735, - - /// - /// DECCA AWS 1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DECCA AWS 1.")] - DECCAAWS1 = 12780, - - /// - /// DECCA AWS 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DECCA AWS 2.")] - DECCAAWS2 = 12782, - - /// - /// DECCA AWS 4. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DECCA AWS 4.")] - DECCAAWS4 = 12785, - - /// - /// DECCA AWS-4 (2). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DECCA AWS-4 (2).")] - DECCAAWS42 = 12787, - - /// - /// DECCA MAR. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DECCA MAR.")] - DECCAMAR = 12800, - - /// - /// DECCA RM 326. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DECCA RM 326.")] - DECCARM326 = 12805, - - /// - /// DECCA RM 416. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DECCA RM 416.")] - DECCARM416 = 12825, - - /// - /// DECCA RM 914. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DECCA RM 914.")] - DECCARM914 = 12870, - - /// - /// DECCA RM 1690. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DECCA RM 1690.")] - DECCARM1690 = 12915, - - /// - /// DECCA Super 101 MK 3. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DECCA Super 101 MK 3.")] - DECCASuper101MK3 = 12960, - - /// - /// DISS 1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DISS 1.")] - DISS1 = 13005, - - /// - /// DN 181. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DN 181.")] - DN181 = 13050, - - /// - /// BLINDFIRE FSC TT. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("BLINDFIRE FSC TT.")] - BLINDFIREFSCTT = 13055, - - /// - /// Dog Ear. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Dog Ear.")] - DogEar = 13095, - - /// - /// Dog House. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Dog House.")] - DogHouse = 13140, - - /// - /// Don 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Don 2.")] - Don2 = 13185, - - /// - /// Don A/B/2/Kay. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Don A/B/2/Kay.")] - DonAB2Kay = 13230, - - /// - /// Donets. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Donets.")] - Donets = 13275, - - /// - /// Down Beat. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Down Beat.")] - DownBeat = 13320, - - /// - /// DRAA 2A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DRAA 2A.")] - DRAA2A = 13365, - - /// - /// DRAA 2B. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DRAA 2B.")] - DRAA2B = 13410, - - /// - /// DRAC 39. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DRAC 39.")] - DRAC39 = 13455, - - /// - /// DRBC 30B. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DRBC 30B.")] - DRBC30B = 13500, - - /// - /// DRBC 31A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DRBC 31A.")] - DRBC31A = 13545, - - /// - /// DRBC 32A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DRBC 32A.")] - DRBC32A = 13590, - - /// - /// DRBC 32D. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DRBC 32D.")] - DRBC32D = 13635, - - /// - /// DRBC 33A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DRBC 33A.")] - DRBC33A = 13680, - - /// - /// DRBI 10. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DRBI 10.")] - DRBI10 = 13725, - - /// - /// DRBI 23. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DRBI 23.")] - DRBI23 = 13770, - - /// - /// DRBJ 11B. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DRBJ 11B.")] - DRBJ11B = 13815, - - /// - /// DRBN 30. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DRBN 30.")] - DRBN30 = 13860, - - /// - /// DRBN 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DRBN 32.")] - DRBN32 = 13905, - - /// - /// DRBR 51. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DRBR 51.")] - DRBR51 = 13950, - - /// - /// DRBV 20B. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DRBV 20B.")] - DRBV20B = 13995, - - /// - /// DRBV 22. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DRBV 22.")] - DRBV22 = 14040, - - /// - /// DRBV 26C. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DRBV 26C.")] - DRBV26C = 14085, - - /// - /// DRBV 30. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DRBV 30.")] - DRBV30 = 14130, - - /// - /// DRBV 50. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DRBV 50.")] - DRBV50 = 14175, - - /// - /// DRBV 51. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DRBV 51.")] - DRBV51 = 14220, - - /// - /// DRBV 51A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DRBV 51A.")] - DRBV51A = 14265, - - /// - /// DRBV 51B. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DRBV 51B.")] - DRBV51B = 14310, - - /// - /// DRBV 51C. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DRBV 51C.")] - DRBV51C = 14355, - - /// - /// Drop Kick. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Drop Kick.")] - DropKick = 14400, - - /// - /// DRUA 31. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DRUA 31.")] - DRUA31 = 14445, - - /// - /// Drum Tilt. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Drum Tilt.")] - DrumTilt = 14490, - - /// - /// Drum Tilt A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Drum Tilt A.")] - DrumTiltA = 14535, - - /// - /// Drum Tilt B. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Drum Tilt B.")] - DrumTiltB = 14545, - - /// - /// Dumbo. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Dumbo.")] - Dumbo = 14580, - - /// - /// ECR-90. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ECR-90.")] - ECR90 = 14600, - - /// - /// Egg Cup A/B. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Egg Cup A/B.")] - EggCupAB = 14625, - - /// - /// EKCO 190. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("EKCO 190.")] - EKCO190 = 14670, - - /// - /// EL M 2001B. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("EL M 2001B.")] - ELM2001B = 14715, - - /// - /// EL M 2207. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("EL M 2207.")] - ELM2207 = 14760, - - /// - /// EL/M 2216(V). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("EL/M 2216(V).")] - ELM2216V = 14770, - - /// - /// ELTA EL/M 2221 GM STGR. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ELTA EL/M 2221 GM STGR.")] - ELTAELM2221GMSTGR = 14805, - - /// - /// ELTA SIS. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ELTA SIS.")] - ELTASIS = 14810, - - /// - /// EMD 2900. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("EMD 2900.")] - EMD2900 = 14850, - - /// - /// End Tray. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("End Tray.")] - EndTray = 14895, - - /// - /// Exocet 1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Exocet 1.")] - Exocet1 = 14940, - - /// - /// Exocet 1 MH. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Exocet 1 MH.")] - Exocet1MH = 14985, - - /// - /// Exocet 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Exocet 2.")] - Exocet2 = 15030, - - /// - /// Eye Bowl. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Eye Bowl.")] - EyeBowl = 15075, - - /// - /// Eye Shield. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Eye Shield.")] - EyeShield = 15120, - - /// - /// F332Z. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("F332Z.")] - F332Z = 15140, - - /// - /// FALCON. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("FALCON.")] - FALCON = 15160, - - /// - /// Fan Song A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fan Song A.")] - FanSongA = 15165, - - /// - /// Fan Song B/F TA. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fan Song B/F TA.")] - FanSongBFTA = 15200, - - /// - /// Fan Song B/F TT. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fan Song B/F TT.")] - FanSongBFTT = 15210, - - /// - /// Fan Song C/E TA. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fan Song C/E TA.")] - FanSongCETA = 15220, - - /// - /// Fan Song C/E TT. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fan Song C/E TT.")] - FanSongCETT = 15230, - - /// - /// Fan Song C/E MG. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fan Song C/E MG.")] - FanSongCEMG = 15240, - - /// - /// Fan Song B/FF MG. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fan Song B/FF MG.")] - FanSongBFFMG = 15255, - - /// - /// Fan Tail. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fan Tail.")] - FanTail = 15300, - - /// - /// FCR-1401. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("FCR-1401.")] - FCR1401 = 15310, - - /// - /// Fin Curve. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fin Curve.")] - FinCurve = 15345, - - /// - /// Fire Can. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fire Can.")] - FireCan = 15390, - - /// - /// Fire Dish. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fire Dish.")] - FireDish = 15435, - - /// - /// Fire Dome TA. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fire Dome TA.")] - FireDomeTA = 15470, - - /// - /// Fire Dome TT. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fire Dome TT.")] - FireDomeTT = 15475, - - /// - /// Fire Dome TI. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fire Dome TI.")] - FireDomeTI = 15480, - - /// - /// Fire Iron. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fire Iron.")] - FireIron = 15525, - - /// - /// Fire Wheel. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fire Wheel.")] - FireWheel = 15570, - - /// - /// Fish Bowl. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fish Bowl.")] - FishBowl = 15615, - - /// - /// Flap Lid. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Flap Lid.")] - FlapLid = 15660, - - /// - /// Flap Truck. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Flap Truck.")] - FlapTruck = 15705, - - /// - /// Flap Wheel. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Flap Wheel.")] - FlapWheel = 15750, - - /// - /// Flash Dance. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Flash Dance.")] - FlashDance = 15795, - - /// - /// Flat Face A B C D. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Flat Face A B C D.")] - FlatFaceABCD = 15840, - - /// - /// Flat Screen. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Flat Screen.")] - FlatScreen = 15885, - - /// - /// Flat Spin. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Flat Spin.")] - FlatSpin = 15930, - - /// - /// Flat Twin. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Flat Twin.")] - FlatTwin = 15975, - - /// - /// Fledermaus. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fledermaus.")] - Fledermaus = 16020, - - /// - /// FLYCATCHER. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("FLYCATCHER.")] - FLYCATCHER = 16030, - - /// - /// Fly Screen. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fly Screen.")] - FlyScreen = 16065, - - /// - /// Fly Screen A&B. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fly Screen A&B.")] - FlyScreenAB = 16110, - - /// - /// Fly Trap B. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fly Trap B.")] - FlyTrapB = 16155, - - /// - /// Fog Lamp MG. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fog Lamp MG.")] - FogLampMG = 16200, - - /// - /// Fog Lamp TT. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fog Lamp TT.")] - FogLampTT = 16245, - - /// - /// Foil Two. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Foil Two.")] - FoilTwo = 16290, - - /// - /// Fox Hunter. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fox Hunter.")] - FoxHunter = 16335, - - /// - /// FOX FIREFox Fire AL. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("FOX FIREFox Fire AL.")] - FOXFIREFoxFireAL = 16380, - - /// - /// FOX FIRE ILL. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("FOX FIRE ILL.")] - FOXFIREILL = 16390, - - /// - /// FR-151A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("FR-151A.")] - FR151A = 16400, - - /// - /// FR-1505 DA. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("FR-1505 DA.")] - FR1505DA = 16410, - - /// - /// FR-2000. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("FR-2000.")] - FR2000 = 16420, - - /// - /// FR-2855W. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("FR-2855W.")] - FR2855W = 16421, - - /// - /// Front Dome. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Front Dome.")] - FrontDome = 16425, - - /// - /// Front Door. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Front Door.")] - FrontDoor = 16470, - - /// - /// Front Piece. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Front Piece.")] - FrontPiece = 16515, - - /// - /// Furuno. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Furuno.")] - Furuno = 16560, - - /// - /// Furuno 1721. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Furuno 1721.")] - Furuno1721 = 16561, - - /// - /// Furuno 701. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Furuno 701.")] - Furuno701 = 16605, - - /// - /// Furuno 711 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Furuno 711 2.")] - Furuno7112 = 16650, - - /// - /// Furuno 2400. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Furuno 2400.")] - Furuno2400 = 16695, - - /// - /// GA 01 00. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("GA 01 00.")] - GA0100 = 16740, - - /// - /// Gage. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Gage.")] - Gage = 16785, - - /// - /// Garpin. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Garpin.")] - Garpin = 16830, - - /// - /// GEM BX 132. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("GEM BX 132.")] - GEMBX132 = 16875, - - /// - /// Gepard TA. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Gepard TA.")] - GepardTA = 16880, - - /// - /// Gepard TT. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Gepard TT.")] - GepardTT = 16884, - - /// - /// GERAN-F. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("GERAN-F.")] - GERANF = 16888, - - /// - /// GIRAFFE. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("GIRAFFE.")] - GIRAFFE = 16900, - - /// - /// Gin Sling TA. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Gin Sling TA.")] - GinSlingTA = 16915, - - /// - /// Gin Sling TT. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Gin Sling TT.")] - GinSlingTT = 16920, - - /// - /// Gin Sling MG. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Gin Sling MG.")] - GinSlingMG = 16925, - - /// - /// GPN-22. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("GPN-22.")] - GPN22 = 16945, - - /// - /// GRN-9. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("GRN-9.")] - GRN9 = 16950, - - /// - /// Green Stain. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Green Stain.")] - GreenStain = 16965, - - /// - /// Grid Bow. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Grid Bow.")] - GridBow = 17010, - - /// - /// GRILL PAN TT. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("GRILL PAN TT.")] - GRILLPANTT = 17025, - - /// - /// Guardsman. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Guardsman.")] - Guardsman = 17055, - - /// - /// GUN DISH (ZSU-23/4). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("GUN DISH (ZSU-23/4).")] - GUNDISHZSU234 = 17070, - - /// - /// Hair Net. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Hair Net.")] - HairNet = 17100, - - /// - /// Half Plate A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Half Plate A.")] - HalfPlateA = 17145, - - /// - /// Half Plate B. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Half Plate B.")] - HalfPlateB = 17190, - - /// - /// HARD. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HARD.")] - HARD = 17220, - - /// - /// Hawk Screech. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Hawk Screech.")] - HawkScreech = 17235, - - /// - /// Head Light A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Head Light A.")] - HeadLightA = 17280, - - /// - /// Head Lights. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Head Lights.")] - HeadLights = 17325, - - /// - /// Head Lights C. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Head Lights C.")] - HeadLightsC = 17370, - - /// - /// Head Lights MG A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Head Lights MG A.")] - HeadLightsMGA = 17415, - - /// - /// Head Lights MG B. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Head Lights MG B.")] - HeadLightsMGB = 17460, - - /// - /// Head Lights TT. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Head Lights TT.")] - HeadLightsTT = 17505, - - /// - /// Head Net. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Head Net.")] - HeadNet = 17550, - - /// - /// Hen Egg. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Hen Egg.")] - HenEgg = 17595, - - /// - /// Hen House. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Hen House.")] - HenHouse = 17640, - - /// - /// Hen Nest. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Hen Nest.")] - HenNest = 17685, - - /// - /// Hen Roost. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Hen Roost.")] - HenRoost = 17730, - - /// - /// High Brick. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("High Brick.")] - HighBrick = 17775, - - /// - /// High Fix. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("High Fix.")] - HighFix = 17820, - - /// - /// High Lark TI. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("High Lark TI.")] - HighLarkTI = 17865, - - /// - /// High Lark 1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("High Lark 1.")] - HighLark1 = 17910, - - /// - /// High Lark 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("High Lark 2.")] - HighLark2 = 17955, - - /// - /// High Lark 4. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("High Lark 4.")] - HighLark4 = 18000, - - /// - /// High Lune. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("High Lune.")] - HighLune = 18045, - - /// - /// High Pole A&B. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("High Pole A&B.")] - HighPoleAB = 18090, - - /// - /// High Scoop. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("High Scoop.")] - HighScoop = 18135, - - /// - /// HIGH SCREEN. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HIGH SCREEN.")] - HIGHSCREEN = 18150, - - /// - /// High Sieve. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("High Sieve.")] - HighSieve = 18180, - - /// - /// HN-503. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HN-503.")] - HN503 = 18200, - - /// - /// Home Talk. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Home Talk.")] - HomeTalk = 18225, - - /// - /// Horn Spoon. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Horn Spoon.")] - HornSpoon = 18270, - - /// - /// HOT BRICK. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HOT BRICK.")] - HOTBRICK = 18280, - - /// - /// Hot Flash. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Hot Flash.")] - HotFlash = 18315, - - /// - /// Hot Shot TA. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Hot Shot TA.")] - HotShotTA = 18320, - - /// - /// Hot Shot TT. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Hot Shot TT.")] - HotShotTT = 18325, - - /// - /// Hot Shot MG. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Hot Shot MG.")] - HotShotMG = 18330, - - /// - /// IFF MK XII AIMS UPX 29. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("IFF MK XII AIMS UPX 29.")] - IFFMKXIIAIMSUPX29 = 18360, - - /// - /// IFF MK XV. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("IFF MK XV.")] - IFFMKXV = 18405, - - /// - /// Javelin MG. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Javelin MG.")] - JavelinMG = 18410, - - /// - /// Jay Bird. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Jay Bird.")] - JayBird = 18450, - - /// - /// JRC-NMD-401. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("JRC-NMD-401.")] - JRCNMD401 = 18460, - - /// - /// Jupiter. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Jupiter.")] - Jupiter = 18495, - - /// - /// Jupiter II. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Jupiter II.")] - JupiterII = 18540, - - /// - /// JY-8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("JY-8.")] - JY8 = 18550, - - /// - /// JY-9. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("JY-9.")] - JY9 = 18555, - - /// - /// JY-14. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("JY-14.")] - JY14 = 18560, - - /// - /// K376Z. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("K376Z.")] - K376Z = 18585, - - /// - /// Kelvin Hughes 2A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Kelvin Hughes 2A.")] - KelvinHughes2A = 18630, - - /// - /// Kelvin Hughes 14/9. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Kelvin Hughes 14/9.")] - KelvinHughes149 = 18675, - - /// - /// Kelvin Hughes type 1006. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Kelvin Hughes type 1006.")] - KelvinHughesType1006 = 18720, - - /// - /// Kelvin Hughes type 1007. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Kelvin Hughes type 1007.")] - KelvinHughesType1007 = 18765, - - /// - /// KH-902M. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("KH-902M.")] - KH902M = 18785, - - /// - /// Kite Screech. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Kite Screech.")] - KiteScreech = 18810, - - /// - /// Kite Screech A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Kite Screech A.")] - KiteScreechA = 18855, - - /// - /// Kite Screech B. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Kite Screech B.")] - KiteScreechB = 18900, - - /// - /// Kivach. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Kivach.")] - Kivach = 18945, - - /// - /// Knife Rest. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Knife Rest.")] - KnifeRest = 18990, - - /// - /// Knife Rest B. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Knife Rest B.")] - KnifeRestB = 19035, - - /// - /// KNIFE REST C. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("KNIFE REST C.")] - KNIFERESTC = 19037, - - /// - /// KR-75. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("KR-75.")] - KR75 = 19050, - - /// - /// KSA SRN. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("KSA SRN.")] - KSASRN = 19080, - - /// - /// KSA TSR. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("KSA TSR.")] - KSATSR = 19125, - - /// - /// Land Fall. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Land Fall.")] - LandFall = 19170, - - /// - /// Land Roll MG. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Land Roll MG.")] - LandRollMG = 19215, - - /// - /// Land Roll TA. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Land Roll TA.")] - LandRollTA = 19260, - - /// - /// Land Roll TT. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Land Roll TT.")] - LandRollTT = 19305, - - /// - /// LC-150. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("LC-150.")] - LC150 = 19310, - - /// - /// Leningraf. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Leningraf.")] - Leningraf = 19350, - - /// - /// Light Bulb. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Light Bulb.")] - LightBulb = 19395, - - /// - /// LMT NRAI-6A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("LMT NRAI-6A.")] - LMTNRAI6A = 19400, - - /// - /// LN 55. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("LN 55.")] - LN55 = 19440, - - /// - /// Ln 66. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ln 66.")] - Ln66 = 19485, - - /// - /// Long Bow. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Long Bow.")] - LongBow = 19530, - - /// - /// Long Brick. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Long Brick.")] - LongBrick = 19575, - - /// - /// Long Bull. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Long Bull.")] - LongBull = 19620, - - /// - /// Long Eye. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Long Eye.")] - LongEye = 19665, - - /// - /// Long Head. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Long Head.")] - LongHead = 19710, - - /// - /// Long Talk. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Long Talk.")] - LongTalk = 19755, - - /// - /// Long Track. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Long Track.")] - LongTrack = 19800, - - /// - /// Long Trough. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Long Trough.")] - LongTrough = 19845, - - /// - /// Look Two. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Look Two.")] - LookTwo = 19890, - - /// - /// LORAN. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("LORAN.")] - LORAN = 19935, - - /// - /// Low Blow TA. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Low Blow TA.")] - LowBlowTA = 19950, - - /// - /// Low Blow TT. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Low Blow TT.")] - LowBlowTT = 19955, - - /// - /// Low Blow MG. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Low Blow MG.")] - LowBlowMG = 19960, - - /// - /// Low Sieve. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Low Sieve.")] - LowSieve = 19980, - - /// - /// Low Trough. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Low Trough.")] - LowTrough = 20025, - - /// - /// LP-23. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("LP-23.")] - LP23 = 20040, - - /// - /// LW 08. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("LW 08.")] - LW08 = 20070, - - /// - /// M-1983 FCR. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("M-1983 FCR.")] - M1983FCR = 20090, - - /// - /// M22-40. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("M22-40.")] - M2240 = 20115, - - /// - /// M44. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("M44.")] - M44 = 20160, - - /// - /// M401Z. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("M401Z.")] - M401Z = 20205, - - /// - /// M585Z. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("M585Z.")] - M585Z = 20250, - - /// - /// M588Z. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("M588Z.")] - M588Z = 20295, - - /// - /// MA 1 IFF Portion. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("MA 1 IFF Portion.")] - MA1IFFPortion = 20340, - - /// - /// MARELD. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("MARELD.")] - MARELD = 20360, - - /// - /// MA Type 909#. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("MA Type 909#.")] - MAType909 = 20385, - - /// - /// Marconi 1810. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Marconi 1810.")] - Marconi1810 = 20430, - - /// - /// Marconi Canada HC 75. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Marconi Canada HC 75.")] - MarconiCanadaHC75 = 20475, - - /// - /// Marconi S 713. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Marconi S 713.")] - MarconiS713 = 20495, - - /// - /// Marconi S 1802. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Marconi S 1802.")] - MarconiS1802 = 20520, - - /// - /// Marconi S247. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Marconi S247.")] - MarconiS247 = 20530, - - /// - /// Marconi S 810. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Marconi S 810.")] - MarconiS810 = 20565, - - /// - /// Marconi SA 10. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Marconi SA 10.")] - MarconiSA10 = 20585, - - /// - /// Marconi type 967. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Marconi type 967.")] - MarconiType967 = 20610, - - /// - /// Marconi type 968. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Marconi type 968.")] - MarconiType968 = 20655, - - /// - /// Marconi type 992. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Marconi type 992.")] - MarconiType992 = 20700, - - /// - /// Marconi/signaal type 1022. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Marconi/signaal type 1022.")] - MarconiSignaalType1022 = 20745, - - /// - /// Marconi/signaal type 910. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Marconi/signaal type 910.")] - MarconiSignaalType910 = 20790, - - /// - /// Marconi/signaal type 911. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Marconi/signaal type 911.")] - MarconiSignaalType911 = 20835, - - /// - /// Marconi/signaal type 992R. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Marconi/signaal type 992R.")] - MarconiSignaalType992R = 20880, - - /// - /// Mesh Brick. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mesh Brick.")] - MeshBrick = 20925, - - /// - /// Mirage ILL. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mirage ILL.")] - MirageILL = 20950, - - /// - /// MK 15 CIWS. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("MK 15 CIWS.")] - MK15CIWS = 20970, - - /// - /// MK-23. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("MK-23.")] - MK23 = 21015, - - /// - /// MK 23 TAS. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("MK 23 TAS.")] - MK23TAS = 21060, - - /// - /// MK 25. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("MK 25.")] - MK25 = 21105, - - /// - /// MK-35 M2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("MK-35 M2.")] - MK35M2 = 21150, - - /// - /// MK 92. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("MK 92.")] - MK92 = 21195, - - /// - /// MK-92 CAS. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("MK-92 CAS.")] - MK92CAS = 21240, - - /// - /// MK-92 STIR. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("MK-92 STIR.")] - MK92STIR = 21285, - - /// - /// MK 95. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("MK 95.")] - MK95 = 21330, - - /// - /// MLA-1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("MLA-1.")] - MLA1 = 21340, - - /// - /// MM APS 705. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("MM APS 705.")] - MMAPS705 = 21375, - - /// - /// MM SPG 74. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("MM SPG 74.")] - MMSPG74 = 21420, - - /// - /// MM SPG 75. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("MM SPG 75.")] - MMSPG75 = 21465, - - /// - /// MM SPN 703. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("MM SPN 703.")] - MMSPN703 = 21490, - - /// - /// MM SPS 702. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("MM SPS 702.")] - MMSPS702 = 21510, - - /// - /// MM SPS 768. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("MM SPS 768.")] - MMSPS768 = 21555, - - /// - /// MM SPS 774. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("MM SPS 774.")] - MMSPS774 = 21600, - - /// - /// Moon 4. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Moon 4.")] - Moon4 = 21645, - - /// - /// MMRS. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("MMRS.")] - MMRS = 21650, - - /// - /// MPDR 18 X. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("MPDR 18 X.")] - MPDR18X = 21690, - - /// - /// MT-305X. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("MT-305X.")] - MT305X = 21710, - - /// - /// Muff Cob. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Muff Cob.")] - MuffCob = 21735, - - /// - /// Mushroom. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mushroom.")] - Mushroom = 21780, - - /// - /// Mushroom 1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mushroom 1.")] - Mushroom1 = 21825, - - /// - /// Mushroom 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mushroom 2.")] - Mushroom2 = 21870, - - /// - /// N920Z. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("N920Z.")] - N920Z = 21880, - - /// - /// Nanjing B. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Nanjing B.")] - NanjingB = 21890, - - /// - /// Nanjing C. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Nanjing C.")] - NanjingC = 21895, - - /// - /// Nayada. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Nayada.")] - Nayada = 21915, - - /// - /// Neptun. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Neptun.")] - Neptun = 21960, - - /// - /// NIKE TT. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("NIKE TT.")] - NIKETT = 21980, - - /// - /// NRBA 50. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("NRBA 50.")] - NRBA50 = 22005, - - /// - /// NRBA 51. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("NRBA 51.")] - NRBA51 = 22050, - - /// - /// NRBF 20A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("NRBF 20A.")] - NRBF20A = 22095, - - /// - /// Nysa B. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Nysa B.")] - NysaB = 22140, - - /// - /// O524A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("O524A.")] - O524A = 22185, - - /// - /// O580B. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("O580B.")] - O580B = 22230, - - /// - /// O625Z. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("O625Z.")] - O625Z = 22275, - - /// - /// O626Z. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("O626Z.")] - O626Z = 22320, - - /// - /// Odd Group. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Odd Group.")] - OddGroup = 22345, - - /// - /// Odd Lot. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Odd Lot.")] - OddLot = 22365, - - /// - /// Odd Pair. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Odd Pair.")] - OddPair = 22410, - - /// - /// Oka. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Oka.")] - Oka = 22455, - - /// - /// OKEAN. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("OKEAN.")] - OKEAN = 22500, - - /// - /// OKINXE 12C. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("OKINXE 12C.")] - OKINXE12C = 22545, - - /// - /// OMEGA. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("OMEGA.")] - OMEGA = 22590, - - /// - /// Omera ORB32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Omera ORB32.")] - OmeraORB32 = 22635, - - /// - /// One Eye. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("One Eye.")] - OneEye = 22680, - - /// - /// OP-28. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("OP-28.")] - OP28 = 22690, - - /// - /// OPS-16B. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("OPS-16B.")] - OPS16B = 22725, - - /// - /// OPS-18. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("OPS-18.")] - OPS18 = 22730, - - /// - /// OPS-28. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("OPS-28.")] - OPS28 = 22740, - - /// - /// OR-2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("OR-2.")] - OR2 = 22770, - - /// - /// ORB-31S. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ORB-31S.")] - ORB31S = 22810, - - /// - /// ORB 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ORB 32.")] - ORB32 = 22815, - - /// - /// Orion Rtn 10X. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Orion Rtn 10X.")] - OrionRtn10X = 22860, - - /// - /// Otomat MK II Teseo. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Otomat MK II Teseo.")] - OtomatMKIITeseo = 22905, - - /// - /// Owl Screech. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Owl Screech.")] - OwlScreech = 22950, - - /// - /// P360Z. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("P360Z.")] - P360Z = 22955, - - /// - /// PA-1660. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("PA-1660.")] - PA1660 = 22960, - - /// - /// Palm Frond. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Palm Frond.")] - PalmFrond = 22995, - - /// - /// Palm Frond AB. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Palm Frond AB.")] - PalmFrondAB = 23040, - - /// - /// Pat Hand TT. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Pat Hand TT.")] - PatHandTT = 23085, - - /// - /// Pat Hand MG. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Pat Hand MG.")] - PatHandMG = 23095, - - /// - /// Patty Cake. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Patty Cake.")] - PattyCake = 23130, - - /// - /// Pawn Cake. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Pawn Cake.")] - PawnCake = 23175, - - /// - /// PBR 4 Rubin. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("PBR 4 Rubin.")] - PBR4Rubin = 23220, - - /// - /// Pea Sticks. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Pea Sticks.")] - PeaSticks = 23265, - - /// - /// Peel Cone. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Peel Cone.")] - PeelCone = 23310, - - /// - /// Peel Group. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Peel Group.")] - PeelGroup = 23355, - - /// - /// Peel Group A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Peel Group A.")] - PeelGroupA = 23400, - - /// - /// Peel Group B. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Peel Group B.")] - PeelGroupB = 23445, - - /// - /// Peel Pair. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Peel Pair.")] - PeelPair = 23490, - - /// - /// Philips 9LV 200. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Philips 9LV 200.")] - Philips9LV200 = 23535, - - /// - /// Philips 9LV 331. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Philips 9LV 331.")] - Philips9LV331 = 23580, - - /// - /// Philips LV 223. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Philips LV 223.")] - PhilipsLV223 = 23625, - - /// - /// Philips Sea Giraffe 50 HC. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Philips Sea Giraffe 50 HC.")] - PhilipsSeaGiraffe50HC = 23670, - - /// - /// Pin Jib. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Pin Jib.")] - PinJib = 23690, - - /// - /// Plank Shad. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Plank Shad.")] - PlankShad = 23710, - - /// - /// Plank Shave. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Plank Shave.")] - PlankShave = 23715, - - /// - /// Plank Shave A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Plank Shave A.")] - PlankShaveA = 23760, - - /// - /// Plank Shave B. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Plank Shave B.")] - PlankShaveB = 23805, - - /// - /// Plate Steer. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Plate Steer.")] - PlateSteer = 23850, - - /// - /// Plessey AWS 1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Plessey AWS 1.")] - PlesseyAWS1 = 23895, - - /// - /// Plessey AWS 4. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Plessey AWS 4.")] - PlesseyAWS4 = 23940, - - /// - /// Plessey AWS 6. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Plessey AWS 6.")] - PlesseyAWS6 = 23985, - - /// - /// Plessey RJ. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Plessey RJ.")] - PlesseyRJ = 23990, - - /// - /// Plessey type 996. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Plessey type 996.")] - PlesseyType996 = 24030, - - /// - /// Plinth Net. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Plinth Net.")] - PlinthNet = 24075, - - /// - /// Pluto. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Pluto.")] - Pluto = 24095, - - /// - /// POHJANPALO. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("POHJANPALO.")] - POHJANPALO = 24100, - - /// - /// POLLUX. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("POLLUX.")] - POLLUX = 24120, - - /// - /// Pop Group. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Pop Group.")] - PopGroup = 24165, - - /// - /// Pop Group MG. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Pop Group MG.")] - PopGroupMG = 24210, - - /// - /// Pop Group TA. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Pop Group TA.")] - PopGroupTA = 24255, - - /// - /// Pop Group TT. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Pop Group TT.")] - PopGroupTT = 24300, - - /// - /// Pork Trough. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Pork Trough.")] - PorkTrough = 24345, - - /// - /// Post Bow. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Post Bow.")] - PostBow = 24390, - - /// - /// Post Lamp. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Post Lamp.")] - PostLamp = 24435, - - /// - /// Pot Drum. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Pot Drum.")] - PotDrum = 24480, - - /// - /// Pot Head. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Pot Head.")] - PotHead = 24525, - - /// - /// PRIMUS 40 WXD. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("PRIMUS 40 WXD.")] - PRIMUS40WXD = 24570, - - /// - /// PRIMUS 300SL. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("PRIMUS 300SL.")] - PRIMUS300SL = 24615, - - /// - /// Primus 3000. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primus 3000.")] - Primus3000 = 24620, - - /// - /// PS-05A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("PS-05A.")] - PS05A = 24650, - - /// - /// PS 46 A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("PS 46 A.")] - PS46A = 24660, - - /// - /// PS 70 R. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("PS 70 R.")] - PS70R = 24705, - - /// - /// PS-890. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("PS-890.")] - PS890 = 24710, - - /// - /// Puff Ball. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Puff Ball.")] - PuffBall = 24750, - - /// - /// R-76. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("R-76.")] - R76 = 24770, - - /// - /// RAC-30. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("RAC-30.")] - RAC30 = 24780, - - /// - /// Racal 1229. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Racal 1229.")] - Racal1229 = 24795, - - /// - /// Racal AC 2690 BT. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Racal AC 2690 BT.")] - RacalAC2690BT = 24840, - - /// - /// Racal Decca 1216. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Racal Decca 1216.")] - RacalDecca1216 = 24885, - - /// - /// Racal Decca 360. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Racal Decca 360.")] - RacalDecca360 = 24930, - - /// - /// Racal Decca AC 1290. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Racal Decca AC 1290.")] - RacalDeccaAC1290 = 24975, - - /// - /// Racal Decca TM 1229. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Racal Decca TM 1229.")] - RacalDeccaTM1229 = 25020, - - /// - /// Racal Decca TM 1626. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Racal Decca TM 1626.")] - RacalDeccaTM1626 = 25065, - - /// - /// Racal DRBN 34A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Racal DRBN 34A.")] - RacalDRBN34A = 25110, - - /// - /// Radar 24. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Radar 24.")] - Radar24 = 25155, - - /// - /// RAN 7S. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("RAN 7S.")] - RAN7S = 25200, - - /// - /// RAN 10S. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("RAN 10S.")] - RAN10S = 25205, - - /// - /// RAN 11 LX. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("RAN 11 LX.")] - RAN11LX = 25245, - - /// - /// Rapier TA. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Rapier TA.")] - RapierTA = 25260, - - /// - /// Dagger. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Dagger.")] - Dagger = 25265, - - /// - /// Rapier MG. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Rapier MG.")] - RapierMG = 25270, - - /// - /// RAT-31S. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("RAT-31S.")] - RAT31S = 25280, - - /// - /// RATAC (LCT). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("RATAC (LCT).")] - RATACLCT = 25285, - - /// - /// Raytheon 1220. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Raytheon 1220.")] - Raytheon1220 = 25290, - - /// - /// Raytheon 1302. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Raytheon 1302.")] - Raytheon1302 = 25300, - - /// - /// Raytheon 1500. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Raytheon 1500.")] - Raytheon1500 = 25335, - - /// - /// Raytheon 1645. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Raytheon 1645.")] - Raytheon1645 = 25380, - - /// - /// Raytheon 1650. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Raytheon 1650.")] - Raytheon1650 = 25425, - - /// - /// Raytheon 1900. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Raytheon 1900.")] - Raytheon1900 = 25470, - - /// - /// Raytheon 2502. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Raytheon 2502.")] - Raytheon2502 = 25515, - - /// - /// Raytheon TM 1650/6X. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Raytheon TM 1650/6X.")] - RaytheonTM16506X = 25560, - - /// - /// Raytheon TM 1660/12S. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Raytheon TM 1660/12S.")] - RaytheonTM166012S = 25605, - - /// - /// RAY-1220XR. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("RAY-1220XR.")] - RAY1220XR = 25630, - - /// - /// RAY-1401. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("RAY-1401.")] - RAY1401 = 25635, - - /// - /// Ray 2900. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ray 2900.")] - Ray2900 = 25650, - - /// - /// Raypath. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Raypath.")] - Raypath = 25695, - - /// - /// RBE2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("RBE2.")] - RBE2 = 25735, - - /// - /// RDM. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("RDM.")] - RDM = 25740, - - /// - /// RDY. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("RDY.")] - RDY = 25760, - - /// - /// RDN 72. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("RDN 72.")] - RDN72 = 25785, - - /// - /// RDR 1A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("RDR 1A.")] - RDR1A = 25830, - - /// - /// RDR 1E. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("RDR 1E.")] - RDR1E = 25835, - - /// - /// RDR 4A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("RDR 4A.")] - RDR4A = 25840, - - /// - /// RDR 1200. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("RDR 1200.")] - RDR1200 = 25875, - - /// - /// RDR 1400. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("RDR 1400.")] - RDR1400 = 25885, - - /// - /// RDR 1400 C. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("RDR 1400 C.")] - RDR1400C = 25890, - - /// - /// RDR 1500. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("RDR 1500.")] - RDR1500 = 25895, - - /// - /// Rice Lamp. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Rice Lamp.")] - RiceLamp = 25920, - - /// - /// Rice Pad. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Rice Pad.")] - RicePad = 25965, - - /// - /// Rice Screen. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Rice Screen.")] - RiceScreen = 26010, - - /// - /// ROLAND BN. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ROLAND BN.")] - ROLANDBN = 26055, - - /// - /// ROLAND MG. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ROLAND MG.")] - ROLANDMG = 26100, - - /// - /// ROLAND TA. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ROLAND TA.")] - ROLANDTA = 26145, - - /// - /// ROLAND TT. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ROLAND TT.")] - ROLANDTT = 26190, - - /// - /// Round Ball. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Round Ball.")] - RoundBall = 26235, - - /// - /// Round House. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Round House.")] - RoundHouse = 26280, - - /// - /// Round House B. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Round House B.")] - RoundHouseB = 26325, - - /// - /// RT-02/50. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("RT-02/50.")] - RT0250 = 26330, - - /// - /// RTN-1A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("RTN-1A.")] - RTN1A = 26350, - - /// - /// RV2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("RV2.")] - RV2 = 26370, - - /// - /// RV3. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("RV3.")] - RV3 = 26415, - - /// - /// RV5. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("RV5.")] - RV5 = 26460, - - /// - /// RV10. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("RV10.")] - RV10 = 26505, - - /// - /// RV17. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("RV17.")] - RV17 = 26550, - - /// - /// RV18. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("RV18.")] - RV18 = 26595, - - /// - /// RV-377. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("RV-377.")] - RV377 = 26610, - - /// - /// RV UM. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("RV UM.")] - RVUM = 26640, - - /// - /// RXN 2-60. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("RXN 2-60.")] - RXN260 = 26660, - - /// - /// S-1810CD. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("S-1810CD.")] - S1810CD = 26670, - - /// - /// SA 2 Guideline. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SA 2 Guideline.")] - SA2Guideline = 26685, - - /// - /// SA 3 Goa. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SA 3 Goa.")] - SA3Goa = 26730, - - /// - /// SA 8 Gecko DT. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SA 8 Gecko DT.")] - SA8GeckoDT = 26775, - - /// - /// SA-12 TELAR ILL. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SA-12 TELAR ILL.")] - SA12TELARILL = 26795, - - /// - /// SA N 7 Gadfly TI. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SA N 7 Gadfly TI.")] - SAN7GadflyTI = 26820, - - /// - /// SA N 11 Cads 1 UN. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SA N 11 Cads 1 UN.")] - SAN11Cads1UN = 26865, - - /// - /// Salt Pot A&B. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Salt Pot A&B.")] - SaltPotAB = 26910, - - /// - /// SATURNE II. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SATURNE II.")] - SATURNEII = 26955, - - /// - /// Scan Can. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Scan Can.")] - ScanCan = 27000, - - /// - /// Scan Fix. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Scan Fix.")] - ScanFix = 27045, - - /// - /// Scan Odd. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Scan Odd.")] - ScanOdd = 27090, - - /// - /// Scan Three. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Scan Three.")] - ScanThree = 27135, - - /// - /// SCANTER (CSR). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SCANTER (CSR).")] - SCANTERCSR = 27140, - - /// - /// SCORADS. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SCORADS.")] - SCORADS = 27141, - - /// - /// SCOREBOARD. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SCOREBOARD.")] - SCOREBOARD = 27150, - - /// - /// Scoup Plate. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Scoup Plate.")] - ScoupPlate = 27180, - - /// - /// SCR-584. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SCR-584.")] - SCR584 = 27190, - - /// - /// Sea Archer 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sea Archer 2.")] - SeaArcher2 = 27225, - - /// - /// Sea Hunter 4 MG. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sea Hunter 4 MG.")] - SeaHunter4MG = 27270, - - /// - /// Sea Hunter 4 TA. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sea Hunter 4 TA.")] - SeaHunter4TA = 27315, - - /// - /// Sea Hunter 4 TT. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sea Hunter 4 TT.")] - SeaHunter4TT = 27360, - - /// - /// Sea Gull. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sea Gull.")] - SeaGull = 27405, - - /// - /// Sea Net. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sea Net.")] - SeaNet = 27450, - - /// - /// Sea Spray. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sea Spray.")] - SeaSpray = 27495, - - /// - /// Sea Tiger. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sea Tiger.")] - SeaTiger = 27540, - - /// - /// Searchwater. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Searchwater.")] - Searchwater = 27570, - - /// - /// Selenia Orion 7. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Selenia Orion 7.")] - SeleniaOrion7 = 27585, - - /// - /// Selenia type 912. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Selenia type 912.")] - SeleniaType912 = 27630, - - /// - /// Selennia RAN 12 L/X. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Selennia RAN 12 L/X.")] - SelenniaRAN12LX = 27675, - - /// - /// Selennia RTN 10X. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Selennia RTN 10X.")] - SelenniaRTN10X = 27720, - - /// - /// Selinia ARP 1645. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Selinia ARP 1645.")] - SeliniaARP1645 = 27765, - - /// - /// SGR 102 00. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SGR 102 00.")] - SGR10200 = 27810, - - /// - /// SGR 103/02. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SGR 103/02.")] - SGR10302 = 27855, - - /// - /// SGR-104. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SGR-104.")] - SGR104 = 27870, - - /// - /// Sheet Bend. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sheet Bend.")] - SheetBend = 27900, - - /// - /// Sheet Curve. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sheet Curve.")] - SheetCurve = 27945, - - /// - /// Ship Globe. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ship Globe.")] - ShipGlobe = 27990, - - /// - /// Ship Wheel. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ship Wheel.")] - ShipWheel = 28035, - - /// - /// SGR 114. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SGR 114.")] - SGR114 = 28080, - - /// - /// Shore Walk A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Shore Walk A.")] - ShoreWalkA = 28125, - - /// - /// Short Horn. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Short Horn.")] - ShortHorn = 28170, - - /// - /// Shot Dome. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Shot Dome.")] - ShotDome = 28215, - - /// - /// Side Globe JN. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Side Globe JN.")] - SideGlobeJN = 28260, - - /// - /// Side Net. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Side Net.")] - SideNet = 28280, - - /// - /// Side Walk A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Side Walk A.")] - SideWalkA = 28305, - - /// - /// Signaal DA 02. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Signaal DA 02.")] - SignaalDA02 = 28350, - - /// - /// Signaal DA 05. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Signaal DA 05.")] - SignaalDA05 = 28395, - - /// - /// Signaal DA 08. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Signaal DA 08.")] - SignaalDA08 = 28440, - - /// - /// Signaal LW 08. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Signaal LW 08.")] - SignaalLW08 = 28485, - - /// - /// Signaal LWOR. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Signaal LWOR.")] - SignaalLWOR = 28530, - - /// - /// Signaal M45. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Signaal M45.")] - SignaalM45 = 28575, - - /// - /// Signaal MW 08. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Signaal MW 08.")] - SignaalMW08 = 28620, - - /// - /// Signaal SMART. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Signaal SMART.")] - SignaalSMART = 28665, - - /// - /// Signaal STING. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Signaal STING.")] - SignaalSTING = 28710, - - /// - /// Signaal STIR. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Signaal STIR.")] - SignaalSTIR = 28755, - - /// - /// Signaal WM 20/2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Signaal WM 20/2.")] - SignaalWM202 = 28800, - - /// - /// Signaal WM 25. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Signaal WM 25.")] - SignaalWM25 = 28845, - - /// - /// Signaal WM 27. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Signaal WM 27.")] - SignaalWM27 = 28890, - - /// - /// Signaal WM 28. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Signaal WM 28.")] - SignaalWM28 = 28935, - - /// - /// Signaal ZW 01. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Signaal ZW 01.")] - SignaalZW01 = 28980, - - /// - /// Signaal ZW 06. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Signaal ZW 06.")] - SignaalZW06 = 29025, - - /// - /// Ski Pole. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ski Pole.")] - SkiPole = 29070, - - /// - /// Skin Head. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Skin Head.")] - SkinHead = 29115, - - /// - /// Skip Spin. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Skip Spin.")] - SkipSpin = 29160, - - /// - /// UAR-1021. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("UAR-1021.")] - UAR1021 = 29185, - - /// - /// UAR-1021. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("UAR-1021.")] - UAR1021_29190 = 29190, - - /// - /// Sky Watch. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sky Watch.")] - SkyWatch = 29205, - - /// - /// SKYSHADOW. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SKYSHADOW.")] - SKYSHADOW = 29215, - - /// - /// SKYSHIELD TA. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SKYSHIELD TA.")] - SKYSHIELDTA = 29220, - - /// - /// SL. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SL.")] - SL = 29250, - - /// - /// SL/ALQ-234. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SL/ALQ-234.")] - SLALQ234 = 29270, - - /// - /// Slap Shot E. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Slap Shot E.")] - SlapShotE = 29295, - - /// - /// Slim Net. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Slim Net.")] - SlimNet = 29340, - - /// - /// Slot Back A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Slot Back A.")] - SlotBackA = 29385, - - /// - /// Slot Back ILL. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Slot Back ILL.")] - SlotBackILL = 29400, - - /// - /// Slot Back B. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Slot Back B.")] - SlotBackB = 29430, - - /// - /// Slot Rest. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Slot Rest.")] - SlotRest = 29440, - - /// - /// SMA 3 RM. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SMA 3 RM.")] - SMA3RM = 29475, - - /// - /// SMA 3 RM 20. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SMA 3 RM 20.")] - SMA3RM20 = 29520, - - /// - /// SMA 3RM 20A/SMG. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SMA 3RM 20A/SMG.")] - SMA3RM20ASMG = 29565, - - /// - /// SMA BPS 704. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SMA BPS 704.")] - SMABPS704 = 29610, - - /// - /// SMA SPIN 749 (V) 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SMA SPIN 749 (V) 2.")] - SMASPIN749V2 = 29655, - - /// - /// SMA SPN 703. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SMA SPN 703.")] - SMASPN703 = 29700, - - /// - /// SMA SPN 751. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SMA SPN 751.")] - SMASPN751 = 29745, - - /// - /// SMA SPOS 748. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SMA SPOS 748.")] - SMASPOS748 = 29790, - - /// - /// SMA SPQ 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SMA SPQ 2.")] - SMASPQ2 = 29835, - - /// - /// SMA SPQ 2D. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SMA SPQ 2D.")] - SMASPQ2D = 29880, - - /// - /// SMA SPQ 701. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SMA SPQ 701.")] - SMASPQ701 = 29925, - - /// - /// SMA SPS 702 UPX. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SMA SPS 702 UPX.")] - SMASPS702UPX = 29970, - - /// - /// SMA ST 2 OTOMAT II MH. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SMA ST 2 OTOMAT II MH.")] - SMAST2OTOMATIIMH = 30015, - - /// - /// SMA 718 Beacon. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SMA 718 Beacon.")] - SMA718Beacon = 30060, - - /// - /// SNAP SHOT. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SNAP SHOT.")] - SNAPSHOT = 30080, - - /// - /// Snoop Drift. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Snoop Drift.")] - SnoopDrift = 30105, - - /// - /// Snoop Head. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Snoop Head.")] - SnoopHead = 30150, - - /// - /// Snoop Pair. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Snoop Pair.")] - SnoopPair = 30195, - - /// - /// Snoop Plate. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Snoop Plate.")] - SnoopPlate = 30240, - - /// - /// Snoop Slab. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Snoop Slab.")] - SnoopSlab = 30285, - - /// - /// Snoop Tray. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Snoop Tray.")] - SnoopTray = 30330, - - /// - /// Snoop Tray 1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Snoop Tray 1.")] - SnoopTray1 = 30375, - - /// - /// Snoop Tray 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Snoop Tray 2.")] - SnoopTray2 = 30420, - - /// - /// Snoop Watch. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Snoop Watch.")] - SnoopWatch = 30465, - - /// - /// Snow Drift. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Snow Drift.")] - SnowDrift = 30470, - - /// - /// SO-1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SO-1.")] - SO1 = 30510, - - /// - /// SO-12. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SO-12.")] - SO12 = 30520, - - /// - /// SO A Communist. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SO A Communist.")] - SOACommunist = 30555, - - /// - /// SO-69. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SO-69.")] - SO69 = 30580, - - /// - /// Sock Eye. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sock Eye.")] - SockEye = 30600, - - /// - /// SOM 64. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SOM 64.")] - SOM64 = 30645, - - /// - /// SPADA TT. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SPADA TT.")] - SPADATT = 30670, - - /// - /// Sparrow (AIM/RIM-7) ILL. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sparrow (AIM/RIM-7) ILL.")] - SparrowAIMRIM7ILL = 30690, - - /// - /// Sperry M-3. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sperry M-3.")] - SperryM3 = 30700, - - /// - /// SPG 53F. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SPG 53F.")] - SPG53F = 30735, - - /// - /// SPG 70 (RTN 10X). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SPG 70 (RTN 10X).")] - SPG70RTN10X = 30780, - - /// - /// SPG 74 (RTN 20X). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SPG 74 (RTN 20X).")] - SPG74RTN20X = 30825, - - /// - /// SPG 75 (RTN 30X). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SPG 75 (RTN 30X).")] - SPG75RTN30X = 30870, - - /// - /// SPG 76 (RTN 30X). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SPG 76 (RTN 30X).")] - SPG76RTN30X = 30915, - - /// - /// Spin Scan A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Spin Scan A.")] - SpinScanA = 30960, - - /// - /// Spin Scan B. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Spin Scan B.")] - SpinScanB = 31005, - - /// - /// Spin Trough. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Spin Trough.")] - SpinTrough = 31050, - - /// - /// Splash Drop. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Splash Drop.")] - SplashDrop = 31095, - - /// - /// SPN 35A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SPN 35A.")] - SPN35A = 31140, - - /// - /// SPN 41. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SPN 41.")] - SPN41 = 31185, - - /// - /// SPN 42. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SPN 42.")] - SPN42 = 31230, - - /// - /// SPN 43A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SPN 43A.")] - SPN43A = 31275, - - /// - /// SPN 43B. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SPN 43B.")] - SPN43B = 31320, - - /// - /// SPN 44. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SPN 44.")] - SPN44 = 31365, - - /// - /// SPN 46. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SPN 46.")] - SPN46 = 31410, - - /// - /// SPN 703. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SPN 703.")] - SPN703 = 31455, - - /// - /// SPN 728 (V) 1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SPN 728 (V) 1.")] - SPN728V1 = 31500, - - /// - /// SPN 748. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SPN 748.")] - SPN748 = 31545, - - /// - /// SPN 750. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SPN 750.")] - SPN750 = 31590, - - /// - /// Sponge Cake. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sponge Cake.")] - SpongeCake = 31635, - - /// - /// Spoon Rest. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Spoon Rest.")] - SpoonRest = 31680, - - /// - /// Spoon Rest A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Spoon Rest A.")] - SpoonRestA = 31681, - - /// - /// Spoon Rest B. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Spoon Rest B.")] - SpoonRestB = 31682, - - /// - /// Spoon Rest D. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Spoon Rest D.")] - SpoonRestD = 31684, - - /// - /// SPQ 712 (RAN 12 L/X). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SPQ 712 (RAN 12 L/X).")] - SPQ712RAN12LX = 31725, - - /// - /// SPS 6C. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SPS 6C.")] - SPS6C = 31770, - - /// - /// SPS 10F. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SPS 10F.")] - SPS10F = 31815, - - /// - /// SPS 12. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SPS 12.")] - SPS12 = 31860, - - /// - /// SPS 768 (RAN EL). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SPS 768 (RAN EL).")] - SPS768RANEL = 31995, - - /// - /// SPS 774 (RAN 10S). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SPS 774 (RAN 10S).")] - SPS774RAN10S = 32040, - - /// - /// SPY 790. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SPY 790.")] - SPY790 = 32085, - - /// - /// Square Head. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Square Head.")] - SquareHead = 32130, - - /// - /// Square Pair. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Square Pair.")] - SquarePair = 32175, - - /// - /// Square Slot. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Square Slot.")] - SquareSlot = 32220, - - /// - /// Square Tie. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Square Tie.")] - SquareTie = 32265, - - /// - /// Squash Dome. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Squash Dome.")] - SquashDome = 32310, - - /// - /// Squat Eye. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Squat Eye.")] - SquatEye = 32330, - - /// - /// Squint Eye. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Squint Eye.")] - SquintEye = 32355, - - /// - /// SRN 6. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SRN 6.")] - SRN6 = 32400, - - /// - /// SRN 15. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SRN 15.")] - SRN15 = 32445, - - /// - /// SRN 745. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SRN 745.")] - SRN745 = 32490, - - /// - /// SRO 1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SRO 1.")] - SRO1 = 32535, - - /// - /// SRO 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SRO 2.")] - SRO2 = 32580, - - /// - /// SS C 2B Samlet MG. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SS C 2B Samlet MG.")] - SSC2BSamletMG = 32625, - - /// - /// SS N 2A B CSSC. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SS N 2A B CSSC.")] - SSN2ABCSSC = 32670, - - /// - /// SS N 2A B CSSC 2A 3A2 MH. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SS N 2A B CSSC 2A 3A2 MH.")] - SSN2ABCSSC2A3A2MH = 32715, - - /// - /// SS N 2C Seeker. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SS N 2C Seeker.")] - SSN2CSeeker = 32760, - - /// - /// SS N 2C D Styx. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SS N 2C D Styx.")] - SSN2CDStyx = 32805, - - /// - /// SS N 2C D Styx C D MH. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SS N 2C D Styx C D MH.")] - SSN2CDStyxCDMH = 32850, - - /// - /// SS N 3 SSC SS C 18 BN. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SS N 3 SSC SS C 18 BN.")] - SSN3SSCSSC18BN = 32895, - - /// - /// SS N 3B Sepal AL. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SS N 3B Sepal AL.")] - SSN3BSepalAL = 32940, - - /// - /// SS N 3B Sepal MH. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SS N 3B Sepal MH.")] - SSN3BSepalMH = 32985, - - /// - /// SS N 9 Siren. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SS N 9 Siren.")] - SSN9Siren = 33030, - - /// - /// SS N 9 Siren AL. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SS N 9 Siren AL.")] - SSN9SirenAL = 33075, - - /// - /// SS N 9 Siren MH. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SS N 9 Siren MH.")] - SSN9SirenMH = 33120, - - /// - /// SS N 12 Sandbox AL. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SS N 12 Sandbox AL.")] - SSN12SandboxAL = 33165, - - /// - /// SS N 12 Sandbox MH. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SS N 12 Sandbox MH.")] - SSN12SandboxMH = 33210, - - /// - /// SS N 19 Shipwreck. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SS N 19 Shipwreck.")] - SSN19Shipwreck = 33255, - - /// - /// SS N 19 Shipwreck AL. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SS N 19 Shipwreck AL.")] - SSN19ShipwreckAL = 33300, - - /// - /// SS N 19 Shipwreck MH. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SS N 19 Shipwreck MH.")] - SSN19ShipwreckMH = 33345, - - /// - /// SS N 21 AL. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SS N 21 AL.")] - SSN21AL = 33390, - - /// - /// SS N 22 Sunburn. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SS N 22 Sunburn.")] - SSN22Sunburn = 33435, - - /// - /// SS N 22 Sunburn MH. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SS N 22 Sunburn MH.")] - SSN22SunburnMH = 33480, - - /// - /// Stone Cake. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Stone Cake.")] - StoneCake = 33525, - - /// - /// STR 41. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("STR 41.")] - STR41 = 33570, - - /// - /// Straight Flush TA. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Straight Flush TA.")] - StraightFlushTA = 33590, - - /// - /// Straight Flush TT. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Straight Flush TT.")] - StraightFlushTT = 33595, - - /// - /// Straight Flush ILL. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Straight Flush ILL.")] - StraightFlushILL = 33600, - - /// - /// Strike Out. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Strike Out.")] - StrikeOut = 33615, - - /// - /// Strut Curve. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Strut Curve.")] - StrutCurve = 33660, - - /// - /// Strut Pair. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Strut Pair.")] - StrutPair = 33705, - - /// - /// Strut Pair 1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Strut Pair 1.")] - StrutPair1 = 33750, - - /// - /// Strut Pair 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Strut Pair 2.")] - StrutPair2 = 33795, - - /// - /// Sun Visor. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sun Visor.")] - SunVisor = 33840, - - /// - /// Superfledermaus. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Superfledermaus.")] - Superfledermaus = 33860, - - /// - /// Swift Rod 1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Swift Rod 1.")] - SwiftRod1 = 33885, - - /// - /// Swift Rod 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Swift Rod 2.")] - SwiftRod2 = 33930, - - /// - /// T1166. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("T1166.")] - T1166 = 33975, - - /// - /// T1171. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("T1171.")] - T1171 = 34020, - - /// - /// T1202. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("T1202.")] - T1202 = 34040, - - /// - /// T6004. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("T6004.")] - T6004 = 34065, - - /// - /// T6031. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("T6031.")] - T6031 = 34110, - - /// - /// T8067. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("T8067.")] - T8067 = 34155, - - /// - /// T8068. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("T8068.")] - T8068 = 34200, - - /// - /// T8124. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("T8124.")] - T8124 = 34245, - - /// - /// T8408. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("T8408.")] - T8408 = 34290, - - /// - /// T8911. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("T8911.")] - T8911 = 34335, - - /// - /// T8937. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("T8937.")] - T8937 = 34380, - - /// - /// T8944. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("T8944.")] - T8944 = 34425, - - /// - /// T8987. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("T8987.")] - T8987 = 34470, - - /// - /// Tall King. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tall King.")] - TallKing = 34515, - - /// - /// Tall Mike. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tall Mike.")] - TallMike = 34560, - - /// - /// Tall Path. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tall Path.")] - TallPath = 34605, - - /// - /// Team Work. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Team Work.")] - TeamWork = 34625, - - /// - /// THAAD GBR. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("THAAD GBR.")] - THAADGBR = 34640, - - /// - /// THD 225. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("THD 225.")] - THD225 = 34650, - - /// - /// Picador. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Picador.")] - Picador = 34670, - - /// - /// THD 5500. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("THD 5500.")] - THD5500 = 34695, - - /// - /// Thin Path. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Thin Path.")] - ThinPath = 34740, - - /// - /// Thin Skin. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Thin Skin.")] - ThinSkin = 34785, - - /// - /// Thompson CSF TA-10. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Thompson CSF TA-10.")] - ThompsonCSFTA10 = 34795, - - /// - /// Thompson CSF TH D 1040 Neptune. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Thompson CSF TH D 1040 Neptune.")] - ThompsonCSFTHD1040Neptune = 34830, - - /// - /// Thompson CSF Calypso. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Thompson CSF Calypso.")] - ThompsonCSFCalypso = 34875, - - /// - /// Thompson CSF CASTOR. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Thompson CSF CASTOR.")] - ThompsonCSFCASTOR = 34920, - - /// - /// Thompson CSF Castor II. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Thompson CSF Castor II.")] - ThompsonCSFCastorII = 34965, - - /// - /// Thompson CSF DRBC 32A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Thompson CSF DRBC 32A.")] - ThompsonCSFDRBC32A = 35010, - - /// - /// Thompson CSF DRBJ 11 D/E. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Thompson CSF DRBJ 11 D/E.")] - ThompsonCSFDRBJ11DE = 35055, - - /// - /// Thompson CSF DRBV 15A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Thompson CSF DRBV 15A.")] - ThompsonCSFDRBV15A = 35100, - - /// - /// Thompson CSF DRBV 15C. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Thompson CSF DRBV 15C.")] - ThompsonCSFDRBV15C = 35145, - - /// - /// Thompson CSF DRBV 22D. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Thompson CSF DRBV 22D.")] - ThompsonCSFDRBV22D = 35190, - - /// - /// Thompson CSF DRBV 23B. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Thompson CSF DRBV 23B.")] - ThompsonCSFDRBV23B = 35235, - - /// - /// Thompson CSF DRUA 33. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Thompson CSF DRUA 33.")] - ThompsonCSFDRUA33 = 35280, - - /// - /// Thompson CSF Mars DRBV 21A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Thompson CSF Mars DRBV 21A.")] - ThompsonCSFMarsDRBV21A = 35325, - - /// - /// Thompson CSF Sea Tiger. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Thompson CSF Sea Tiger.")] - ThompsonCSFSeaTiger = 35370, - - /// - /// Thompson CSF Triton. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Thompson CSF Triton.")] - ThompsonCSFTriton = 35415, - - /// - /// Thompson CSF Vega with DRBC 32E. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Thompson CSF Vega with DRBC 32E.")] - ThompsonCSFVegaWithDRBC32E = 35460, - - /// - /// TIGER-G. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TIGER-G.")] - TIGERG = 35480, - - /// - /// TIGER-S. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TIGER-S.")] - TIGERS = 35490, - - /// - /// Tie Rods. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tie Rods.")] - TieRods = 35505, - - /// - /// Tin Shield. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tin Shield.")] - TinShield = 35550, - - /// - /// Tin Trap. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tin Trap.")] - TinTrap = 35570, - - /// - /// TIRSPONDER. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TIRSPONDER.")] - TIRSPONDER = 35580, - - /// - /// Toad Stool 1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Toad Stool 1.")] - ToadStool1 = 35595, - - /// - /// Toad Stool 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Toad Stool 2.")] - ToadStool2 = 35640, - - /// - /// Toad Stool 3. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Toad Stool 3.")] - ToadStool3 = 35685, - - /// - /// Toad Stool 4. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Toad Stool 4.")] - ToadStool4 = 35730, - - /// - /// Toad Stool 5. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Toad Stool 5.")] - ToadStool5 = 35775, - - /// - /// Tomb Stone. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tomb Stone.")] - TombStone = 35800, - - /// - /// Top Bow. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Top Bow.")] - TopBow = 35820, - - /// - /// Top Dome. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Top Dome.")] - TopDome = 35865, - - /// - /// Top Knot. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Top Knot.")] - TopKnot = 35910, - - /// - /// Top Mesh. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Top Mesh.")] - TopMesh = 35955, - - /// - /// Top Pair. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Top Pair.")] - TopPair = 36000, - - /// - /// Top Plate. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Top Plate.")] - TopPlate = 36045, - - /// - /// Top Sail. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Top Sail.")] - TopSail = 36090, - - /// - /// Top Steer. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Top Steer.")] - TopSteer = 36135, - - /// - /// Top Trough. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Top Trough.")] - TopTrough = 36180, - - /// - /// Scrum Half TA. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Scrum Half TA.")] - ScrumHalfTA = 36220, - - /// - /// Tor. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tor.")] - Tor = 36225, - - /// - /// Scrum Half MG. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Scrum Half MG.")] - ScrumHalfMG = 36230, - - /// - /// Track Dish. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Track Dish.")] - TrackDish = 36270, - - /// - /// TORSO M. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TORSO M.")] - TORSOM = 36315, - - /// - /// Trap Door. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Trap Door.")] - TrapDoor = 36360, - - /// - /// TRISPONDE. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TRISPONDE.")] - TRISPONDE = 36380, - - /// - /// TRS 3033. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TRS 3033.")] - TRS3033 = 36405, - - /// - /// TRS 3405. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TRS 3405.")] - TRS3405 = 36420, - - /// - /// TRS 3410. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TRS 3410.")] - TRS3410 = 36425, - - /// - /// TRS 3415. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TRS 3415.")] - TRS3415 = 36430, - - /// - /// TRS-N. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TRS-N.")] - TRSN = 36450, - - /// - /// TSE 5000. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TSE 5000.")] - TSE5000 = 36495, - - /// - /// TSR 333. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TSR 333.")] - TSR333 = 36540, - - /// - /// Tube Arm. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tube Arm.")] - TubeArm = 36585, - - /// - /// Twin Eyes. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Twin Eyes.")] - TwinEyes = 36630, - - /// - /// Twin Pill. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Twin Pill.")] - TwinPill = 36675, - - /// - /// Twin Scan. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Twin Scan.")] - TwinScan = 36720, - - /// - /// Twin Scan Ro. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Twin Scan Ro.")] - TwinScanRo = 36765, - - /// - /// Two Spot. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Two Spot.")] - TwoSpot = 36810, - - /// - /// TYPE 262. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TYPE 262.")] - TYPE262 = 36855, - - /// - /// TYPE 275. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TYPE 275.")] - TYPE275 = 36900, - - /// - /// TYPE 293. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TYPE 293.")] - TYPE293 = 36945, - - /// - /// TYPE 343 SUN VISOR B. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TYPE 343 SUN VISOR B.")] - TYPE343SUNVISORB = 36990, - - /// - /// TYPE 347B. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TYPE 347B.")] - TYPE347B = 37035, - - /// - /// Type-404A(CH). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Type-404A(CH).")] - Type404ACH = 37050, - - /// - /// Type 756. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Type 756.")] - Type756 = 37080, - - /// - /// TYPE 903. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TYPE 903.")] - TYPE903 = 37125, - - /// - /// TYPE 909 TI. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TYPE 909 TI.")] - TYPE909TI = 37170, - - /// - /// TYPE 909 TT. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TYPE 909 TT.")] - TYPE909TT = 37215, - - /// - /// TYPE 910. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TYPE 910.")] - TYPE910 = 37260, - - /// - /// TYPE-931(CH). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TYPE-931(CH).")] - TYPE931CH = 37265, - - /// - /// TYPE 965. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TYPE 965.")] - TYPE965 = 37305, - - /// - /// TYPE 967. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TYPE 967.")] - TYPE967 = 37350, - - /// - /// TYPE 968. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TYPE 968.")] - TYPE968 = 37395, - - /// - /// TYPE 974. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TYPE 974.")] - TYPE974 = 37440, - - /// - /// TYPE 975. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TYPE 975.")] - TYPE975 = 37485, - - /// - /// TYPE 978. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TYPE 978.")] - TYPE978 = 37530, - - /// - /// TYPE 992. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TYPE 992.")] - TYPE992 = 37575, - - /// - /// TYPE 993. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TYPE 993.")] - TYPE993 = 37620, - - /// - /// TYPE 994. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TYPE 994.")] - TYPE994 = 37665, - - /// - /// TYPE 1006(1). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TYPE 1006(1).")] - TYPE10061 = 37710, - - /// - /// TYPE 1006(2). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TYPE 1006(2).")] - TYPE10062 = 37755, - - /// - /// TYPE 1022. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TYPE 1022.")] - TYPE1022 = 37800, - - /// - /// UK MK 10. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("UK MK 10.")] - UKMK10 = 37845, - - /// - /// UPS-220C. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("UPS-220C.")] - UPS220C = 37850, - - /// - /// UPX 1 10. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("UPX 1 10.")] - UPX110 = 37890, - - /// - /// UPX 27. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("UPX 27.")] - UPX27 = 37935, - - /// - /// URN 20. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("URN 20.")] - URN20 = 37980, - - /// - /// URN 25. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("URN 25.")] - URN25 = 38025, - - /// - /// VOLEX III/IV. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("VOLEX III/IV.")] - VOLEXIIIIV = 38045, - - /// - /// W8818. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("W8818.")] - W8818 = 38070, - - /// - /// W8838. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("W8838.")] - W8838 = 38115, - - /// - /// W8852. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("W8852.")] - W8852 = 38120, - - /// - /// WAS-74S. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("WAS-74S.")] - WAS74S = 38160, - - /// - /// Wasp Head. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Wasp Head.")] - WaspHead = 38205, - - /// - /// WATCHDOG. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("WATCHDOG.")] - WATCHDOG = 38210, - - /// - /// Watch Guard. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Watch Guard.")] - WatchGuard = 38250, - - /// - /// Watchman. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Watchman.")] - Watchman = 38260, - - /// - /// Western Electric MK 10. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Western Electric MK 10.")] - WesternElectricMK10 = 38295, - - /// - /// Westinghouse ADR-4 LRSR. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Westinghouse ADR-4 LRSR.")] - WestinghouseADR4LRSR = 38320, - - /// - /// Westinghouse Electric SPG 50. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Westinghouse Electric SPG 50.")] - WestinghouseElectricSPG50 = 38340, - - /// - /// Westinghouse Electric W 120. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Westinghouse Electric W 120.")] - WestinghouseElectricW120 = 38385, - - /// - /// Westinghouse SPS 29C. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Westinghouse SPS 29C.")] - WestinghouseSPS29C = 38430, - - /// - /// Westinghouse SPS 37. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Westinghouse SPS 37.")] - WestinghouseSPS37 = 38475, - - /// - /// Wet Eye. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Wet Eye.")] - WetEye = 38520, - - /// - /// Wet Eye Mod. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Wet Eye Mod.")] - WetEyeMod = 38565, - - /// - /// WGU-41/B. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("WGU-41/B.")] - WGU41B = 38570, - - /// - /// WGU-44/B. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("WGU-44/B.")] - WGU44B = 38572, - - /// - /// Whiff. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Whiff.")] - Whiff = 38610, - - /// - /// Whiff Brick. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Whiff Brick.")] - WhiffBrick = 38655, - - /// - /// Whiff Fire. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Whiff Fire.")] - WhiffFire = 38700, - - /// - /// WHITE HOUSE. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("WHITE HOUSE.")] - WHITEHOUSE = 38715, - - /// - /// Wild Card. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Wild Card.")] - WildCard = 38745, - - /// - /// Witch Eight. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Witch Eight.")] - WitchEight = 38790, - - /// - /// Witch Five. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Witch Five.")] - WitchFive = 38835, - - /// - /// WM2X Series. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("WM2X Series.")] - WM2XSeries = 38880, - - /// - /// WM2X Series CAS. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("WM2X Series CAS.")] - WM2XSeriesCAS = 38925, - - /// - /// WSR-74C. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("WSR-74C.")] - WSR74C = 38950, - - /// - /// WSR-74S. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("WSR-74S.")] - WSR74S = 38955, - - /// - /// Wood Gage. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Wood Gage.")] - WoodGage = 38970, - - /// - /// Yard Rake. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Yard Rake.")] - YardRake = 39015, - - /// - /// Yew Loop. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Yew Loop.")] - YewLoop = 39060, - - /// - /// Yo-Yo. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Yo-Yo.")] - YoYo = 39105 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission +{ + /// + /// Enumeration values for ElectromagneticEmitters (der.emission.name.electro, Electromagnetic emitters, + /// section 8.1.1.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum ElectromagneticEmitters : ushort + { + /// + /// 1RL138. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("1RL138.")] + _1RL138 = 10, + + /// + /// 1226 DECCA MIL. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("1226 DECCA MIL.")] + _1226DECCAMIL = 45, + + /// + /// 9GR400. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("9GR400.")] + _9GR400 = 80, + + /// + /// 9GR600. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("9GR600.")] + _9GR600 = 90, + + /// + /// 9LV 200 TA. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("9LV 200 TA.")] + _9LV200TA = 135, + + /// + /// 9LV 200 TV. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("9LV 200 TV.")] + _9LV200TV = 180, + + /// + /// A310Z. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("A310Z.")] + A310Z = 225, + + /// + /// A325A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("A325A.")] + A325A = 270, + + /// + /// A346Z. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("A346Z.")] + A346Z = 315, + + /// + /// A353B. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("A353B.")] + A353B = 360, + + /// + /// A372A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("A372A.")] + A372A = 405, + + /// + /// A372B. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("A372B.")] + A372B = 450, + + /// + /// A372C. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("A372C.")] + A372C = 495, + + /// + /// A377A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("A377A.")] + A377A = 540, + + /// + /// A377B. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("A377B.")] + A377B = 585, + + /// + /// A380Z. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("A380Z.")] + A380Z = 630, + + /// + /// A381Z. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("A381Z.")] + A381Z = 675, + + /// + /// A398Z. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("A398Z.")] + A398Z = 720, + + /// + /// A403Z. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("A403Z.")] + A403Z = 765, + + /// + /// A409A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("A409A.")] + A409A = 810, + + /// + /// A418A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("A418A.")] + A418A = 855, + + /// + /// A419Z. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("A419Z.")] + A419Z = 900, + + /// + /// A429Z. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("A429Z.")] + A429Z = 945, + + /// + /// A432Z. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("A432Z.")] + A432Z = 990, + + /// + /// A434Z. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("A434Z.")] + A434Z = 1035, + + /// + /// A401A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("A401A.")] + A401A = 1080, + + /// + /// AA-12 Seeker. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AA-12 Seeker.")] + AA12Seeker = 1095, + + /// + /// Agave. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Agave.")] + Agave = 1100, + + /// + /// AGRION 15. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AGRION 15.")] + AGRION15 = 1125, + + /// + /// AI MK 23. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AI MK 23.")] + AIMK23 = 1170, + + /// + /// AIDA II. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AIDA II.")] + AIDAII = 1215, + + /// + /// Albatros MK2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Albatros MK2.")] + AlbatrosMK2 = 1260, + + /// + /// Box Spring. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Box Spring.")] + BoxSpring = 1280, + + /// + /// Box Spring B. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Box Spring B.")] + BoxSpringB = 1282, + + /// + /// ANA SPS 502. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ANA SPS 502.")] + ANASPS502 = 1305, + + /// + /// ANRITSU Electric AR-30A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ANRITSU Electric AR-30A.")] + ANRITSUElectricAR30A = 1350, + + /// + /// Antilope V. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Antilope V.")] + AntilopeV = 1395, + + /// + /// AN/ALE-50. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/ALE-50.")] + ANALE50 = 1400, + + /// + /// AN/ALQ 99. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/ALQ 99.")] + ANALQ99 = 1440, + + /// + /// AN/ALQ-100. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/ALQ-100.")] + ANALQ100 = 1485, + + /// + /// AN/ALQ-101. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/ALQ-101.")] + ANALQ101 = 1530, + + /// + /// AN/ALQ-119. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/ALQ-119.")] + ANALQ119 = 1575, + + /// + /// AN/ALQ-122. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/ALQ-122.")] + ANALQ122 = 1585, + + /// + /// AN/ALQ-126A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/ALQ-126A.")] + ANALQ126A = 1620, + + /// + /// AN/ALQ-131. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/ALQ-131.")] + ANALQ131 = 1626, + + /// + /// AN/ALQ-135C/D. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/ALQ-135C/D.")] + ANALQ135CD = 1628, + + /// + /// AN/ALQ-144A(V)3. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/ALQ-144A(V)3.")] + ANALQ144AV3 = 1630, + + /// + /// AN/ALQ-153. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/ALQ-153.")] + ANALQ153 = 1632, + + /// + /// AN/ALQ-155. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/ALQ-155.")] + ANALQ155 = 1634, + + /// + /// AN/ALQ-161/A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/ALQ-161/A.")] + ANALQ161A = 1636, + + /// + /// AN/ALQ-162. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/ALQ-162.")] + ANALQ162 = 1638, + + /// + /// AN/ALQ-165. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/ALQ-165.")] + ANALQ165 = 1640, + + /// + /// AN/ALQ-167. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/ALQ-167.")] + ANALQ167 = 1642, + + /// + /// AN/ALQ-172(V)2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/ALQ-172(V)2.")] + ANALQ172V2 = 1644, + + /// + /// AN/ALQ-176. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/ALQ-176.")] + ANALQ176 = 1646, + + /// + /// AN/ALQ-184. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/ALQ-184.")] + ANALQ184 = 1648, + + /// + /// AN/ALQ-188. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/ALQ-188.")] + ANALQ188 = 1650, + + /// + /// AN/ALR-56. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/ALR-56.")] + ANALR56 = 1652, + + /// + /// AN/ALR-69. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/ALR-69.")] + ANALR69 = 1654, + + /// + /// AN/ALT-16A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/ALT-16A.")] + ANALT16A = 1656, + + /// + /// AN/ALT-28. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/ALT-28.")] + ANALT28 = 1658, + + /// + /// AN/ALT-32A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/ALT-32A.")] + ANALT32A = 1660, + + /// + /// AN/APD 10. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APD 10.")] + ANAPD10 = 1665, + + /// + /// AN/APG 53. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APG 53.")] + ANAPG53 = 1710, + + /// + /// AN/APG 59. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APG 59.")] + ANAPG59 = 1755, + + /// + /// AN/APG-63. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APG-63.")] + ANAPG63 = 1800, + + /// + /// AN/APG-63(V)1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APG-63(V)1.")] + ANAPG63V1 = 1805, + + /// + /// AN/APG-63(V)2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APG-63(V)2.")] + ANAPG63V2 = 1807, + + /// + /// AN/APG-63(V)3. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APG-63(V)3.")] + ANAPG63V3 = 1809, + + /// + /// AN/APG 65. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APG 65.")] + ANAPG65 = 1845, + + /// + /// AN/APG-66. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APG-66.")] + ANAPG66 = 1870, + + /// + /// AN/APG 68. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APG 68.")] + ANAPG68 = 1890, + + /// + /// AN/APG 70. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APG 70.")] + ANAPG70 = 1935, + + /// + /// AN/APG-73. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APG-73.")] + ANAPG73 = 1945, + + /// + /// AN/APG-77. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APG-77.")] + ANAPG77 = 1960, + + /// + /// AN/APG-78. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APG-78.")] + ANAPG78 = 1970, + + /// + /// AN/APG-502. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APG-502.")] + ANAPG502 = 1980, + + /// + /// AN/APN-1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APN-1.")] + ANAPN1 = 2025, + + /// + /// AN/APN-22. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APN-22.")] + ANAPN22 = 2070, + + /// + /// AN/APN 59. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APN 59.")] + ANAPN59 = 2115, + + /// + /// AN/APN-69. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APN-69.")] + ANAPN69 = 2160, + + /// + /// AN/APN-81. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APN-81.")] + ANAPN81 = 2205, + + /// + /// AN/APN-117. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APN-117.")] + ANAPN117 = 2250, + + /// + /// AN/APN-118. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APN-118.")] + ANAPN118 = 2295, + + /// + /// AN/APN-130. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APN-130.")] + ANAPN130 = 2340, + + /// + /// AN/APN-131. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APN-131.")] + ANAPN131 = 2385, + + /// + /// AN/APN-133. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APN-133.")] + ANAPN133 = 2430, + + /// + /// AN/APN-134. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APN-134.")] + ANAPN134 = 2475, + + /// + /// AN/APN-147. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APN-147.")] + ANAPN147 = 2520, + + /// + /// AN/APN-150. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APN-150.")] + ANAPN150 = 2565, + + /// + /// AN/APN-153. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APN-153.")] + ANAPN153 = 2610, + + /// + /// AN/APN 154. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APN 154.")] + ANAPN154 = 2655, + + /// + /// AN/APN-155. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APN-155.")] + ANAPN155 = 2700, + + /// + /// AN/APN-159. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APN-159.")] + ANAPN159 = 2745, + + /// + /// AN/APN-182. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APN-182.")] + ANAPN182 = 2790, + + /// + /// AN/APN-187. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APN-187.")] + ANAPN187 = 2835, + + /// + /// AN/APN-190. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APN-190.")] + ANAPN190 = 2880, + + /// + /// AN/APN 194. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APN 194.")] + ANAPN194 = 2925, + + /// + /// AN/APN-195. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APN-195.")] + ANAPN195 = 2970, + + /// + /// AN/APN-198. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APN-198.")] + ANAPN198 = 3015, + + /// + /// AN/APN-200. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APN-200.")] + ANAPN200 = 3060, + + /// + /// AN/APN 202. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APN 202.")] + ANAPN202 = 3105, + + /// + /// AN/APN-217. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APN-217.")] + ANAPN217 = 3150, + + /// + /// AN/APN-218. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APN-218.")] + ANAPN218 = 3152, + + /// + /// AN/APN-238. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APN-238.")] + ANAPN238 = 3160, + + /// + /// AN/APN-239. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APN-239.")] + ANAPN239 = 3162, + + /// + /// AN/APN-241. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APN-241.")] + ANAPN241 = 3164, + + /// + /// AN/APN-242. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APN-242.")] + ANAPN242 = 3166, + + /// + /// AN/APN-506. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APN-506.")] + ANAPN506 = 3195, + + /// + /// AN/APQ-72. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APQ-72.")] + ANAPQ72 = 3240, + + /// + /// AN/APQ-99. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APQ-99.")] + ANAPQ99 = 3285, + + /// + /// AN/APQ 100. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APQ 100.")] + ANAPQ100 = 3330, + + /// + /// AN/APQ-102. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APQ-102.")] + ANAPQ102 = 3375, + + /// + /// AN/APQ-109. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APQ-109.")] + ANAPQ109 = 3420, + + /// + /// AN/APQ 113. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APQ 113.")] + ANAPQ113 = 3465, + + /// + /// AN/APQ 120. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APQ 120.")] + ANAPQ120 = 3510, + + /// + /// AN/APQ 126. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APQ 126.")] + ANAPQ126 = 3555, + + /// + /// AN/APQ-128. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APQ-128.")] + ANAPQ128 = 3600, + + /// + /// AN/APQ-129. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APQ-129.")] + ANAPQ129 = 3645, + + /// + /// AN/APQ 148. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APQ 148.")] + ANAPQ148 = 3690, + + /// + /// AN/APQ-153. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APQ-153.")] + ANAPQ153 = 3735, + + /// + /// AN/APQ 159. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APQ 159.")] + ANAPQ159 = 3780, + + /// + /// AN/APQ-164. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APQ-164.")] + ANAPQ164 = 3785, + + /// + /// AN/APQ-166. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APQ-166.")] + ANAPQ166 = 3788, + + /// + /// AN/APQ-181. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APQ-181.")] + ANAPQ181 = 3795, + + /// + /// AN/APS-31. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APS-31.")] + ANAPS31 = 3820, + + /// + /// AN/APS-42. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APS-42.")] + ANAPS42 = 3825, + + /// + /// AN/APS 80. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APS 80.")] + ANAPS80 = 3870, + + /// + /// AN/APS-88. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APS-88.")] + ANAPS88 = 3915, + + /// + /// AN/APS 115. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APS 115.")] + ANAPS115 = 3960, + + /// + /// AN/APS 116. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APS 116.")] + ANAPS116 = 4005, + + /// + /// AN/APS-120. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APS-120.")] + ANAPS120 = 4050, + + /// + /// AN/APS 121. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APS 121.")] + ANAPS121 = 4095, + + /// + /// AN/APS 124. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APS 124.")] + ANAPS124 = 4140, + + /// + /// AN/APS 125. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APS 125.")] + ANAPS125 = 4185, + + /// + /// AN/APS-128. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APS-128.")] + ANAPS128 = 4230, + + /// + /// AN/APS 130. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APS 130.")] + ANAPS130 = 4275, + + /// + /// AN/APS 133. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APS 133.")] + ANAPS133 = 4320, + + /// + /// AN/APS-134. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APS-134.")] + ANAPS134 = 4365, + + /// + /// AN/APS 137. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APS 137.")] + ANAPS137 = 4410, + + /// + /// AN/APS-138. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APS-138.")] + ANAPS138 = 4455, + + /// + /// AN/APS-143 (V) 1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APS-143 (V) 1.")] + ANAPS143V1 = 4465, + + /// + /// AN/APW 22. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APW 22.")] + ANAPW22 = 4500, + + /// + /// AN/APW 23. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APW 23.")] + ANAPW23 = 4545, + + /// + /// AN/APX-6. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APX-6.")] + ANAPX6 = 4590, + + /// + /// AN/APX 7. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APX 7.")] + ANAPX7 = 4635, + + /// + /// AN/APX 39. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APX 39.")] + ANAPX39 = 4680, + + /// + /// AN/APX-72. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APX-72.")] + ANAPX72 = 4725, + + /// + /// AN/APX 76. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APX 76.")] + ANAPX76 = 4770, + + /// + /// AN/APX 78. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APX 78.")] + ANAPX78 = 4815, + + /// + /// AN/APX 101. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APX 101.")] + ANAPX101 = 4860, + + /// + /// AN/APX-113 AIFF. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APX-113 AIFF.")] + ANAPX113AIFF = 4870, + + /// + /// AN/APY-1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APY-1.")] + ANAPY1 = 4900, + + /// + /// AN/APY 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APY 2.")] + ANAPY2 = 4905, + + /// + /// AN/APY 3. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/APY 3.")] + ANAPY3 = 4950, + + /// + /// LYNX(tm). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("LYNX(tm).")] + LYNXTm = 4953, + + /// + /// AN/ARN 21. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/ARN 21.")] + ANARN21 = 4995, + + /// + /// AN/ARN 52. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/ARN 52.")] + ANARN52 = 5040, + + /// + /// AN/ARN 84. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/ARN 84.")] + ANARN84 = 5085, + + /// + /// AN/ARN 118. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/ARN 118.")] + ANARN118 = 5130, + + /// + /// AN/ARW 73. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/ARW 73.")] + ANARW73 = 5175, + + /// + /// AN/ASB 1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/ASB 1.")] + ANASB1 = 5220, + + /// + /// AN/ASG 21. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/ASG 21.")] + ANASG21 = 5265, + + /// + /// AN/ASQ-108. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/ASQ-108.")] + ANASQ108 = 5280, + + /// + /// AN/AWG 9. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/AWG 9.")] + ANAWG9 = 5310, + + /// + /// AN/BPS-9. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/BPS-9.")] + ANBPS9 = 5355, + + /// + /// AN/BPS 15. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/BPS 15.")] + ANBPS15 = 5400, + + /// + /// AN/BPS-16. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/BPS-16.")] + ANBPS16 = 5405, + + /// + /// AN/CRM-30. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/CRM-30.")] + ANCRM30 = 5420, + + /// + /// AN/DPW-23. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/DPW-23.")] + ANDPW23 = 5430, + + /// + /// AN/DSQ 26 Phoenix MH. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/DSQ 26 Phoenix MH.")] + ANDSQ26PhoenixMH = 5445, + + /// + /// AN/DSQ 28 Harpoon MH. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/DSQ 28 Harpoon MH.")] + ANDSQ28HarpoonMH = 5490, + + /// + /// AN/FPN-40. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/FPN-40.")] + ANFPN40 = 5495, + + /// + /// AN/FPN-62. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/FPN-62.")] + ANFPN62 = 5500, + + /// + /// AN/FPS-16. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/FPS-16.")] + ANFPS16 = 5505, + + /// + /// AN/FPS-18. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/FPS-18.")] + ANFPS18 = 5507, + + /// + /// AN/FPS-89. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/FPS-89.")] + ANFPS89 = 5508, + + /// + /// AN/FPS-117. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/FPS-117.")] + ANFPS117 = 5510, + + /// + /// AN/FPS-20R. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/FPS-20R.")] + ANFPS20R = 5515, + + /// + /// AN/FPS-77. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/FPS-77.")] + ANFPS77 = 5520, + + /// + /// AN/FPS-103. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/FPS-103.")] + ANFPS103 = 5525, + + /// + /// AN/GPN-12. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/GPN-12.")] + ANGPN12 = 5527, + + /// + /// AN/GPX-6. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/GPX-6.")] + ANGPX6 = 5530, + + /// + /// AN/GPX 8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/GPX 8.")] + ANGPX8 = 5535, + + /// + /// AN/GRN-12. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/GRN-12.")] + ANGRN12 = 5537, + + /// + /// AN/MPQ-10. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/MPQ-10.")] + ANMPQ10 = 5540, + + /// + /// AN/MPQ-33/39/46/57/61 (HPIR) ILL. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/MPQ-33/39/46/57/61 (HPIR) ILL.")] + ANMPQ3339465761HPIRILL = 5545, + + /// + /// AN/MPQ-34/48/55/62 (CWAR) TA. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/MPQ-34/48/55/62 (CWAR) TA.")] + ANMPQ34485562CWARTA = 5550, + + /// + /// AN/MPQ-49. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/MPQ-49.")] + ANMPQ49 = 5551, + + /// + /// AN/MPQ-35/50 (PAR) TA. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/MPQ-35/50 (PAR) TA.")] + ANMPQ3550PARTA = 5555, + + /// + /// AN/MPQ-37/51 (ROR) TT. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/MPQ-37/51 (ROR) TT.")] + ANMPQ3751RORTT = 5560, + + /// + /// AN/MPQ-53. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/MPQ-53.")] + ANMPQ53 = 5570, + + /// + /// AN/MPQ-63. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/MPQ-63.")] + ANMPQ63 = 5571, + + /// + /// AN/MPQ-64. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/MPQ-64.")] + ANMPQ64 = 5575, + + /// + /// AN/SPG-34. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPG-34.")] + ANSPG34 = 5580, + + /// + /// AN/SPG 50. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPG 50.")] + ANSPG50 = 5625, + + /// + /// AN/SPG 51. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPG 51.")] + ANSPG51 = 5670, + + /// + /// AN/SPG-51 CWI TI. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPG-51 CWI TI.")] + ANSPG51CWITI = 5715, + + /// + /// AN/SPG-51 FC. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPG-51 FC.")] + ANSPG51FC = 5760, + + /// + /// AN/SPG 52. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPG 52.")] + ANSPG52 = 5805, + + /// + /// AN/SPG-53. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPG-53.")] + ANSPG53 = 5850, + + /// + /// AN/SPG 55B. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPG 55B.")] + ANSPG55B = 5895, + + /// + /// AN/SPG 60. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPG 60.")] + ANSPG60 = 5940, + + /// + /// AN/SPG 62. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPG 62.")] + ANSPG62 = 5985, + + /// + /// AN/SPN 35. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPN 35.")] + ANSPN35 = 6030, + + /// + /// AN/SPN 43. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPN 43.")] + ANSPN43 = 6075, + + /// + /// AN/SPQ-2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPQ-2.")] + ANSPQ2 = 6120, + + /// + /// AN/SPQ 9. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPQ 9.")] + ANSPQ9 = 6165, + + /// + /// AN/SPS-4. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPS-4.")] + ANSPS4 = 6210, + + /// + /// AN/SPS-5. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPS-5.")] + ANSPS5 = 6255, + + /// + /// AN/SPS-5C. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPS-5C.")] + ANSPS5C = 6300, + + /// + /// AN/SPS-6. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPS-6.")] + ANSPS6 = 6345, + + /// + /// AN/SPS 10. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPS 10.")] + ANSPS10 = 6390, + + /// + /// AN/SPS 21. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPS 21.")] + ANSPS21 = 6435, + + /// + /// AN/SPS-28. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPS-28.")] + ANSPS28 = 6480, + + /// + /// AN/SPS-37. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPS-37.")] + ANSPS37 = 6525, + + /// + /// AN/SPS-39A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPS-39A.")] + ANSPS39A = 6570, + + /// + /// AN/SPS 40. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPS 40.")] + ANSPS40 = 6615, + + /// + /// AN/SPS-41. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPS-41.")] + ANSPS41 = 6660, + + /// + /// AN/SPS-48. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPS-48.")] + ANSPS48 = 6705, + + /// + /// AN/SPS-48C. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPS-48C.")] + ANSPS48C = 6750, + + /// + /// AN/SPS-48E. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPS-48E.")] + ANSPS48E = 6752, + + /// + /// AN/SPS-49. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPS-49.")] + ANSPS49 = 6795, + + /// + /// AN/SPS-49(V)1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPS-49(V)1.")] + ANSPS49V1 = 6796, + + /// + /// AN/SPS-49(V)2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPS-49(V)2.")] + ANSPS49V2 = 6797, + + /// + /// AN/SPS-49(V)3. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPS-49(V)3.")] + ANSPS49V3 = 6798, + + /// + /// AN/SPS-49(V)4. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPS-49(V)4.")] + ANSPS49V4 = 6799, + + /// + /// AN/SPS-49(V)5. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPS-49(V)5.")] + ANSPS49V5 = 6800, + + /// + /// AN/SPS-49(V)6. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPS-49(V)6.")] + ANSPS49V6 = 6801, + + /// + /// AN/SPS-49(V)7. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPS-49(V)7.")] + ANSPS49V7 = 6802, + + /// + /// AN/SPS-49(V)8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPS-49(V)8.")] + ANSPS49V8 = 6803, + + /// + /// AN/SPS-49A(V)1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPS-49A(V)1.")] + ANSPS49AV1 = 6804, + + /// + /// AN/SPS 52. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPS 52.")] + ANSPS52 = 6840, + + /// + /// AN/SPS 53. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPS 53.")] + ANSPS53 = 6885, + + /// + /// AN/SPS 55. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPS 55.")] + ANSPS55 = 6930, + + /// + /// AN/SPS-55 SS. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPS-55 SS.")] + ANSPS55SS = 6975, + + /// + /// AN/SPS-58. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPS-58.")] + ANSPS58 = 7020, + + /// + /// AN/SPS 59. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPS 59.")] + ANSPS59 = 7065, + + /// + /// AN/SPS 64. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPS 64.")] + ANSPS64 = 7110, + + /// + /// AN/SPS 65. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPS 65.")] + ANSPS65 = 7155, + + /// + /// AN/SPS 67. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPS 67.")] + ANSPS67 = 7200, + + /// + /// AN/SPY-1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPY-1.")] + ANSPY1 = 7245, + + /// + /// AN/SPY-1A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPY-1A.")] + ANSPY1A = 7250, + + /// + /// AN/SPY-1B. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPY-1B.")] + ANSPY1B = 7252, + + /// + /// AN/SPY-1B(V). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPY-1B(V).")] + ANSPY1BV = 7253, + + /// + /// AN/SPY-1D. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPY-1D.")] + ANSPY1D = 7260, + + /// + /// AN/SPY-1D(V). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPY-1D(V).")] + ANSPY1DV = 7261, + + /// + /// AN/SPY-1F. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/SPY-1F.")] + ANSPY1F = 7265, + + /// + /// AN/TPN-17. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/TPN-17.")] + ANTPN17 = 7270, + + /// + /// AN/TPN-24. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/TPN-24.")] + ANTPN24 = 7275, + + /// + /// AN/TPQ-18. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/TPQ-18.")] + ANTPQ18 = 7280, + + /// + /// AN/TPQ-36. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/TPQ-36.")] + ANTPQ36 = 7295, + + /// + /// AN/TPQ-37. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/TPQ-37.")] + ANTPQ37 = 7300, + + /// + /// AN/TPQ-38 (V8). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/TPQ-38 (V8).")] + ANTPQ38V8 = 7301, + + /// + /// AN/TPQ-47. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/TPQ-47.")] + ANTPQ47 = 7303, + + /// + /// AN/TPS-43. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/TPS-43.")] + ANTPS43 = 7305, + + /// + /// AN/TPS-43E. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/TPS-43E.")] + ANTPS43E = 7310, + + /// + /// AN/TPS-59. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/TPS-59.")] + ANTPS59 = 7315, + + /// + /// AN/TPS-63. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/TPS-63.")] + ANTPS63 = 7320, + + /// + /// AN/TPS-70 (V) 1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/TPS-70 (V) 1.")] + ANTPS70V1 = 7322, + + /// + /// AN/TPS-75. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/TPS-75.")] + ANTPS75 = 7325, + + /// + /// AN/TPX-46(V)7. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/TPX-46(V)7.")] + ANTPX46V7 = 7330, + + /// + /// AN/ULQ-6A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/ULQ-6A.")] + ANULQ6A = 7335, + + /// + /// AN/UPN 25. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/UPN 25.")] + ANUPN25 = 7380, + + /// + /// AN/UPS 1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/UPS 1.")] + ANUPS1 = 7425, + + /// + /// AN/UPS-2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/UPS-2.")] + ANUPS2 = 7426, + + /// + /// AN/UPX 1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/UPX 1.")] + ANUPX1 = 7470, + + /// + /// AN/UPX 5. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/UPX 5.")] + ANUPX5 = 7515, + + /// + /// AN/UPX 11. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/UPX 11.")] + ANUPX11 = 7560, + + /// + /// AN/UPX 12. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/UPX 12.")] + ANUPX12 = 7605, + + /// + /// AN/UPX 17. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/UPX 17.")] + ANUPX17 = 7650, + + /// + /// AN/UPX 23. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/UPX 23.")] + ANUPX23 = 7695, + + /// + /// AN/VPS 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/VPS 2.")] + ANVPS2 = 7740, + + /// + /// Apelco AD 7 7. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Apelco AD 7 7.")] + ApelcoAD77 = 7785, + + /// + /// APG 71. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("APG 71.")] + APG71 = 7830, + + /// + /// APN 148. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("APN 148.")] + APN148 = 7875, + + /// + /// APN 227. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("APN 227.")] + APN227 = 7920, + + /// + /// APS 504 V3. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("APS 504 V3.")] + APS504V3 = 8100, + + /// + /// AR 3D. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AR 3D.")] + AR3D = 8105, + + /// + /// Plessey AR-5. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Plessey AR-5.")] + PlesseyAR5 = 8112, + + /// + /// AR 320. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AR 320.")] + AR320 = 8115, + + /// + /// AR 327. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AR 327.")] + AR327 = 8120, + + /// + /// AR M31. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AR M31.")] + ARM31 = 8145, + + /// + /// ARI 5954. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ARI 5954.")] + ARI5954 = 8190, + + /// + /// ARI 5955. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ARI 5955.")] + ARI5955 = 8235, + + /// + /// ARI 5979. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ARI 5979.")] + ARI5979 = 8280, + + /// + /// ARINC 564 BNDX/KING RDR 1E. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ARINC 564 BNDX/KING RDR 1E.")] + ARINC564BNDXKINGRDR1E = 8325, + + /// + /// ARINC 700 BNDX/KING RDR 1E. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ARINC 700 BNDX/KING RDR 1E.")] + ARINC700BNDXKINGRDR1E = 8370, + + /// + /// ARK-1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ARK-1.")] + ARK1 = 8375, + + /// + /// ARSR-3. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ARSR-3.")] + ARSR3 = 8380, + + /// + /// ARSR-18. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ARSR-18.")] + ARSR18 = 8390, + + /// + /// AS 2 Kipper. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AS 2 Kipper.")] + AS2Kipper = 8415, + + /// + /// AS 2 Kipper MH. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AS 2 Kipper MH.")] + AS2KipperMH = 8460, + + /// + /// AS 4 Kitchen. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AS 4 Kitchen.")] + AS4Kitchen = 8505, + + /// + /// AS 4 Kitchen MH. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AS 4 Kitchen MH.")] + AS4KitchenMH = 8550, + + /// + /// AS 5 Kelt MH. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AS 5 Kelt MH.")] + AS5KeltMH = 8595, + + /// + /// AS 6 Kingfish MH. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AS 6 Kingfish MH.")] + AS6KingfishMH = 8640, + + /// + /// AS 7 Kerry. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AS 7 Kerry.")] + AS7Kerry = 8685, + + /// + /// AS 7 Kerry MG. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AS 7 Kerry MG.")] + AS7KerryMG = 8730, + + /// + /// AS 15 KENT altimeter. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AS 15 KENT altimeter.")] + AS15KENTAltimeter = 8735, + + /// + /// Aspide AAM/SAM ILL. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Aspide AAM/SAM ILL.")] + AspideAAMSAMILL = 8760, + + /// + /// ASR-4. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ASR-4.")] + ASR4 = 8772, + + /// + /// ASR O. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ASR O.")] + ASRO = 8775, + + /// + /// ASR-5. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ASR-5.")] + ASR5 = 8780, + + /// + /// ASR-7. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ASR-7.")] + ASR7 = 8782, + + /// + /// ASR-8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ASR-8.")] + ASR8 = 8785, + + /// + /// ASR-9. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ASR-9.")] + ASR9 = 8790, + + /// + /// Raytheon ASR-10SS. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Raytheon ASR-10SS.")] + RaytheonASR10SS = 8812, + + /// + /// AT 2 Swatter MG. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AT 2 Swatter MG.")] + AT2SwatterMG = 8820, + + /// + /// ATCR-33. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ATCR-33.")] + ATCR33 = 8840, + + /// + /// ATCR 33 K/M. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ATCR 33 K/M.")] + ATCR33KM = 8845, + + /// + /// Atlas Elektronk TRS N. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Atlas Elektronk TRS N.")] + AtlasElektronkTRSN = 8865, + + /// + /// ATLAS-9740 VTS. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ATLAS-9740 VTS.")] + ATLAS9740VTS = 8870, + + /// + /// AVG 65. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AVG 65.")] + AVG65 = 8910, + + /// + /// AVH 7. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AVH 7.")] + AVH7 = 8955, + + /// + /// AVQ 20. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AVQ 20.")] + AVQ20 = 9000, + + /// + /// AVQ30X. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AVQ30X.")] + AVQ30X = 9045, + + /// + /// AVQ-50 (RCA). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AVQ-50 (RCA).")] + AVQ50RCA = 9075, + + /// + /// AVQ 70. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AVQ 70.")] + AVQ70 = 9090, + + /// + /// AWS 5. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AWS 5.")] + AWS5 = 9135, + + /// + /// AWS 6. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AWS 6.")] + AWS6 = 9180, + + /// + /// B597Z. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("B597Z.")] + B597Z = 9200, + + /// + /// B636Z. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("B636Z.")] + B636Z = 9205, + + /// + /// Back Net A B. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Back Net A B.")] + BackNetAB = 9225, + + /// + /// Back Trap. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Back Trap.")] + BackTrap = 9270, + + /// + /// BALTYK. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("BALTYK.")] + BALTYK = 9310, + + /// + /// Ball End. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ball End.")] + BallEnd = 9315, + + /// + /// Ball Gun. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ball Gun.")] + BallGun = 9360, + + /// + /// Band Stand. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Band Stand.")] + BandStand = 9405, + + /// + /// Bar Lock. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Bar Lock.")] + BarLock = 9450, + + /// + /// Bass Tilt. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Bass Tilt.")] + BassTilt = 9495, + + /// + /// Beacon. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Beacon.")] + Beacon = 9540, + + /// + /// Bean Sticks. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Bean Sticks.")] + BeanSticks = 9585, + + /// + /// Bee Hind. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Bee Hind.")] + BeeHind = 9630, + + /// + /// Bell Crown A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Bell Crown A.")] + BellCrownA = 9640, + + /// + /// Bell Crown B. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Bell Crown B.")] + BellCrownB = 9642, + + /// + /// BIG BACK. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("BIG BACK.")] + BIGBACK = 9645, + + /// + /// Big Bird. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Big Bird.")] + BigBird = 9660, + + /// + /// Big Bulge. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Big Bulge.")] + BigBulge = 9675, + + /// + /// Big Bulge A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Big Bulge A.")] + BigBulgeA = 9720, + + /// + /// Big Bulge B. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Big Bulge B.")] + BigBulgeB = 9765, + + /// + /// Big Fred. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Big Fred.")] + BigFred = 9780, + + /// + /// Big Mesh. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Big Mesh.")] + BigMesh = 9810, + + /// + /// Big Net. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Big Net.")] + BigNet = 9855, + + /// + /// Bill Board. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Bill Board.")] + BillBoard = 9885, + + /// + /// Bill Fold. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Bill Fold.")] + BillFold = 9900, + + /// + /// Blowpipe MG. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Blowpipe MG.")] + BlowpipeMG = 9905, + + /// + /// Sea Harrier FRS Mk 1/5. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sea Harrier FRS Mk 1/5.")] + SeaHarrierFRSMk15 = 9930, + + /// + /// Sea Harrier F/A Mk 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sea Harrier F/A Mk 2.")] + SeaHarrierFAMk2 = 9935, + + /// + /// Blue Silk. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Blue Silk.")] + BlueSilk = 9945, + + /// + /// Blue Parrot. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Blue Parrot.")] + BlueParrot = 9990, + + /// + /// Blue Orchid. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Blue Orchid.")] + BlueOrchid = 10035, + + /// + /// Boat Sail. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Boat Sail.")] + BoatSail = 10080, + + /// + /// Bofors Electronic 9LV 331. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Bofors Electronic 9LV 331.")] + BoforsElectronic9LV331 = 10125, + + /// + /// Bofors Ericsson Sea Giraffe 50 HC. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Bofors Ericsson Sea Giraffe 50 HC.")] + BoforsEricssonSeaGiraffe50HC = 10170, + + /// + /// Bowl Mesh. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Bowl Mesh.")] + BowlMesh = 10215, + + /// + /// Box Brick. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Box Brick.")] + BoxBrick = 10260, + + /// + /// Box Tail. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Box Tail.")] + BoxTail = 10305, + + /// + /// BPS 11A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("BPS 11A.")] + BPS11A = 10350, + + /// + /// BPS 14. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("BPS 14.")] + BPS14 = 10395, + + /// + /// BPS 15A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("BPS 15A.")] + BPS15A = 10440, + + /// + /// BR-15 Tokyo KEIKI. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("BR-15 Tokyo KEIKI.")] + BR15TokyoKEIKI = 10485, + + /// + /// BRIDGEMASTE. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("BRIDGEMASTE.")] + BRIDGEMASTE = 10510, + + /// + /// Bread Bin. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Bread Bin.")] + BreadBin = 10530, + + /// + /// BT 271. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("BT 271.")] + BT271 = 10575, + + /// + /// BX 732. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("BX 732.")] + BX732 = 10620, + + /// + /// Buzz Stand. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Buzz Stand.")] + BuzzStand = 10665, + + /// + /// C 5A Multi Mode Radar. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("C 5A Multi Mode Radar.")] + C5AMultiModeRadar = 10710, + + /// + /// Caiman. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Caiman.")] + Caiman = 10755, + + /// + /// Cake Stand. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Cake Stand.")] + CakeStand = 10800, + + /// + /// Calypso C61. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Calypso C61.")] + CalypsoC61 = 10845, + + /// + /// Calypso Ii. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Calypso Ii.")] + CalypsoIi = 10890, + + /// + /// Cardion Coastal. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Cardion Coastal.")] + CardionCoastal = 10895, + + /// + /// Castor Ii. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Castor Ii.")] + CastorIi = 10935, + + /// + /// Castor 2J TT (Crotale NG). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Castor 2J TT (Crotale NG).")] + Castor2JTTCrotaleNG = 10940, + + /// + /// Cat House. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Cat House.")] + CatHouse = 10980, + + /// + /// CDR-431. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("CDR-431.")] + CDR431 = 10985, + + /// + /// Chair Back TT. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Chair Back TT.")] + ChairBackTT = 11000, + + /// + /// Chair Back ILL. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Chair Back ILL.")] + ChairBackILL = 11010, + + /// + /// Cheese Brick. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Cheese Brick.")] + CheeseBrick = 11025, + + /// + /// Clam Pipe. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Clam Pipe.")] + ClamPipe = 11070, + + /// + /// Clamshell. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Clamshell.")] + Clamshell = 11115, + + /// + /// Collins WXR-700X. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Collins WXR-700X.")] + CollinsWXR700X = 11160, + + /// + /// Collins DN 101. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Collins DN 101.")] + CollinsDN101 = 11205, + + /// + /// Contraves Sea Hunter MK 4. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Contraves Sea Hunter MK 4.")] + ContravesSeaHunterMK4 = 11250, + + /// + /// Corn Can. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Corn Can.")] + CornCan = 11260, + + /// + /// CR-105 RMCA. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("CR-105 RMCA.")] + CR105RMCA = 11270, + + /// + /// Cross Bird. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Cross Bird.")] + CrossBird = 11295, + + /// + /// Cross Dome. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Cross Dome.")] + CrossDome = 11340, + + /// + /// Cross Legs. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Cross Legs.")] + CrossLegs = 11385, + + /// + /// Cross Out. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Cross Out.")] + CrossOut = 11430, + + /// + /// Cross Slot. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Cross Slot.")] + CrossSlot = 11475, + + /// + /// Cross Sword. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Cross Sword.")] + CrossSword = 11520, + + /// + /// Cross Up. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Cross Up.")] + CrossUp = 11565, + + /// + /// Cross Sword FC. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Cross Sword FC.")] + CrossSwordFC = 11610, + + /// + /// THD-5000. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("THD-5000.")] + THD5000 = 11655, + + /// + /// Griffon. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Griffon.")] + Griffon = 11660, + + /// + /// Crotale TT. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Crotale TT.")] + CrotaleTT = 11665, + + /// + /// Crotale MGMissile System. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Crotale MGMissile System.")] + CrotaleMGMissileSystem = 11700, + + /// + /// CSS C 3C CAS 1M1 M2 MH. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("CSS C 3C CAS 1M1 M2 MH.")] + CSSC3CCAS1M1M2MH = 11745, + + /// + /// CSS C 2B HY 1A MH. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("CSS C 2B HY 1A MH.")] + CSSC2BHY1AMH = 11790, + + /// + /// CWS 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("CWS 2.")] + CWS2 = 11835, + + /// + /// Cylinder Head. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Cylinder Head.")] + CylinderHead = 11880, + + /// + /// Cyrano II. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Cyrano II.")] + CyranoII = 11925, + + /// + /// Cyrano IV. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Cyrano IV.")] + CyranoIV = 11970, + + /// + /// Cyrano IV-M. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Cyrano IV-M.")] + CyranoIVM = 11975, + + /// + /// DA-01/00. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DA-01/00.")] + DA0100 = 12010, + + /// + /// DA 05 00. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DA 05 00.")] + DA0500 = 12015, + + /// + /// Dawn. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Dawn.")] + Dawn = 12060, + + /// + /// Dead Duck. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Dead Duck.")] + DeadDuck = 12105, + + /// + /// DECCA-20 V90/9. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DECCA-20 V90/9.")] + DECCA20V909 = 12110, + + /// + /// DECCA-20 V90S. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DECCA-20 V90S.")] + DECCA20V90S = 12111, + + /// + /// DECCA 45. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DECCA 45.")] + DECCA45 = 12150, + + /// + /// DECCA 50. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DECCA 50.")] + DECCA50 = 12195, + + /// + /// DECCA 110. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DECCA 110.")] + DECCA110 = 12240, + + /// + /// DECCA 170. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DECCA 170.")] + DECCA170 = 12285, + + /// + /// DECCA HF 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DECCA HF 2.")] + DECCAHF2 = 12292, + + /// + /// DECCA 202. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DECCA 202.")] + DECCA202 = 12330, + + /// + /// DECCA D202. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DECCA D202.")] + DECCAD202 = 12375, + + /// + /// DECCA 303. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DECCA 303.")] + DECCA303 = 12420, + + /// + /// DECCA 535. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DECCA 535.")] + DECCA535 = 12430, + + /// + /// DECCA 626. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DECCA 626.")] + DECCA626 = 12465, + + /// + /// DECCA 629. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DECCA 629.")] + DECCA629 = 12510, + + /// + /// DECCA 914. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DECCA 914.")] + DECCA914 = 12555, + + /// + /// DECCA 916. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DECCA 916.")] + DECCA916 = 12600, + + /// + /// DECCA 926. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DECCA 926.")] + DECCA926 = 12610, + + /// + /// DECCA 1226 Commercial. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DECCA 1226 Commercial.")] + DECCA1226Commercial = 12645, + + /// + /// DECCA 1626. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DECCA 1626.")] + DECCA1626 = 12690, + + /// + /// DECCA 2459. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DECCA 2459.")] + DECCA2459 = 12735, + + /// + /// DECCA AWS 1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DECCA AWS 1.")] + DECCAAWS1 = 12780, + + /// + /// DECCA AWS 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DECCA AWS 2.")] + DECCAAWS2 = 12782, + + /// + /// DECCA AWS 4. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DECCA AWS 4.")] + DECCAAWS4 = 12785, + + /// + /// DECCA AWS-4 (2). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DECCA AWS-4 (2).")] + DECCAAWS42 = 12787, + + /// + /// DECCA MAR. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DECCA MAR.")] + DECCAMAR = 12800, + + /// + /// DECCA RM 326. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DECCA RM 326.")] + DECCARM326 = 12805, + + /// + /// DECCA RM 416. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DECCA RM 416.")] + DECCARM416 = 12825, + + /// + /// DECCA RM 914. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DECCA RM 914.")] + DECCARM914 = 12870, + + /// + /// DECCA RM 1690. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DECCA RM 1690.")] + DECCARM1690 = 12915, + + /// + /// DECCA Super 101 MK 3. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DECCA Super 101 MK 3.")] + DECCASuper101MK3 = 12960, + + /// + /// DISS 1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DISS 1.")] + DISS1 = 13005, + + /// + /// DN 181. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DN 181.")] + DN181 = 13050, + + /// + /// BLINDFIRE FSC TT. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("BLINDFIRE FSC TT.")] + BLINDFIREFSCTT = 13055, + + /// + /// Dog Ear. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Dog Ear.")] + DogEar = 13095, + + /// + /// Dog House. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Dog House.")] + DogHouse = 13140, + + /// + /// Don 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Don 2.")] + Don2 = 13185, + + /// + /// Don A/B/2/Kay. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Don A/B/2/Kay.")] + DonAB2Kay = 13230, + + /// + /// Donets. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Donets.")] + Donets = 13275, + + /// + /// Down Beat. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Down Beat.")] + DownBeat = 13320, + + /// + /// DRAA 2A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DRAA 2A.")] + DRAA2A = 13365, + + /// + /// DRAA 2B. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DRAA 2B.")] + DRAA2B = 13410, + + /// + /// DRAC 39. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DRAC 39.")] + DRAC39 = 13455, + + /// + /// DRBC 30B. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DRBC 30B.")] + DRBC30B = 13500, + + /// + /// DRBC 31A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DRBC 31A.")] + DRBC31A = 13545, + + /// + /// DRBC 32A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DRBC 32A.")] + DRBC32A = 13590, + + /// + /// DRBC 32D. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DRBC 32D.")] + DRBC32D = 13635, + + /// + /// DRBC 33A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DRBC 33A.")] + DRBC33A = 13680, + + /// + /// DRBI 10. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DRBI 10.")] + DRBI10 = 13725, + + /// + /// DRBI 23. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DRBI 23.")] + DRBI23 = 13770, + + /// + /// DRBJ 11B. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DRBJ 11B.")] + DRBJ11B = 13815, + + /// + /// DRBN 30. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DRBN 30.")] + DRBN30 = 13860, + + /// + /// DRBN 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DRBN 32.")] + DRBN32 = 13905, + + /// + /// DRBR 51. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DRBR 51.")] + DRBR51 = 13950, + + /// + /// DRBV 20B. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DRBV 20B.")] + DRBV20B = 13995, + + /// + /// DRBV 22. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DRBV 22.")] + DRBV22 = 14040, + + /// + /// DRBV 26C. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DRBV 26C.")] + DRBV26C = 14085, + + /// + /// DRBV 30. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DRBV 30.")] + DRBV30 = 14130, + + /// + /// DRBV 50. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DRBV 50.")] + DRBV50 = 14175, + + /// + /// DRBV 51. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DRBV 51.")] + DRBV51 = 14220, + + /// + /// DRBV 51A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DRBV 51A.")] + DRBV51A = 14265, + + /// + /// DRBV 51B. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DRBV 51B.")] + DRBV51B = 14310, + + /// + /// DRBV 51C. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DRBV 51C.")] + DRBV51C = 14355, + + /// + /// Drop Kick. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Drop Kick.")] + DropKick = 14400, + + /// + /// DRUA 31. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DRUA 31.")] + DRUA31 = 14445, + + /// + /// Drum Tilt. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Drum Tilt.")] + DrumTilt = 14490, + + /// + /// Drum Tilt A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Drum Tilt A.")] + DrumTiltA = 14535, + + /// + /// Drum Tilt B. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Drum Tilt B.")] + DrumTiltB = 14545, + + /// + /// Dumbo. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Dumbo.")] + Dumbo = 14580, + + /// + /// ECR-90. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ECR-90.")] + ECR90 = 14600, + + /// + /// Egg Cup A/B. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Egg Cup A/B.")] + EggCupAB = 14625, + + /// + /// EKCO 190. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("EKCO 190.")] + EKCO190 = 14670, + + /// + /// EL M 2001B. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("EL M 2001B.")] + ELM2001B = 14715, + + /// + /// EL M 2207. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("EL M 2207.")] + ELM2207 = 14760, + + /// + /// EL/M 2216(V). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("EL/M 2216(V).")] + ELM2216V = 14770, + + /// + /// ELTA EL/M 2221 GM STGR. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ELTA EL/M 2221 GM STGR.")] + ELTAELM2221GMSTGR = 14805, + + /// + /// ELTA SIS. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ELTA SIS.")] + ELTASIS = 14810, + + /// + /// EMD 2900. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("EMD 2900.")] + EMD2900 = 14850, + + /// + /// End Tray. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("End Tray.")] + EndTray = 14895, + + /// + /// Exocet 1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Exocet 1.")] + Exocet1 = 14940, + + /// + /// Exocet 1 MH. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Exocet 1 MH.")] + Exocet1MH = 14985, + + /// + /// Exocet 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Exocet 2.")] + Exocet2 = 15030, + + /// + /// Eye Bowl. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Eye Bowl.")] + EyeBowl = 15075, + + /// + /// Eye Shield. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Eye Shield.")] + EyeShield = 15120, + + /// + /// F332Z. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("F332Z.")] + F332Z = 15140, + + /// + /// FALCON. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("FALCON.")] + FALCON = 15160, + + /// + /// Fan Song A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fan Song A.")] + FanSongA = 15165, + + /// + /// Fan Song B/F TA. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fan Song B/F TA.")] + FanSongBFTA = 15200, + + /// + /// Fan Song B/F TT. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fan Song B/F TT.")] + FanSongBFTT = 15210, + + /// + /// Fan Song C/E TA. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fan Song C/E TA.")] + FanSongCETA = 15220, + + /// + /// Fan Song C/E TT. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fan Song C/E TT.")] + FanSongCETT = 15230, + + /// + /// Fan Song C/E MG. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fan Song C/E MG.")] + FanSongCEMG = 15240, + + /// + /// Fan Song B/FF MG. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fan Song B/FF MG.")] + FanSongBFFMG = 15255, + + /// + /// Fan Tail. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fan Tail.")] + FanTail = 15300, + + /// + /// FCR-1401. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("FCR-1401.")] + FCR1401 = 15310, + + /// + /// Fin Curve. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fin Curve.")] + FinCurve = 15345, + + /// + /// Fire Can. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fire Can.")] + FireCan = 15390, + + /// + /// Fire Dish. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fire Dish.")] + FireDish = 15435, + + /// + /// Fire Dome TA. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fire Dome TA.")] + FireDomeTA = 15470, + + /// + /// Fire Dome TT. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fire Dome TT.")] + FireDomeTT = 15475, + + /// + /// Fire Dome TI. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fire Dome TI.")] + FireDomeTI = 15480, + + /// + /// Fire Iron. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fire Iron.")] + FireIron = 15525, + + /// + /// Fire Wheel. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fire Wheel.")] + FireWheel = 15570, + + /// + /// Fish Bowl. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fish Bowl.")] + FishBowl = 15615, + + /// + /// Flap Lid. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Flap Lid.")] + FlapLid = 15660, + + /// + /// Flap Truck. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Flap Truck.")] + FlapTruck = 15705, + + /// + /// Flap Wheel. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Flap Wheel.")] + FlapWheel = 15750, + + /// + /// Flash Dance. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Flash Dance.")] + FlashDance = 15795, + + /// + /// Flat Face A B C D. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Flat Face A B C D.")] + FlatFaceABCD = 15840, + + /// + /// Flat Screen. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Flat Screen.")] + FlatScreen = 15885, + + /// + /// Flat Spin. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Flat Spin.")] + FlatSpin = 15930, + + /// + /// Flat Twin. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Flat Twin.")] + FlatTwin = 15975, + + /// + /// Fledermaus. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fledermaus.")] + Fledermaus = 16020, + + /// + /// FLYCATCHER. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("FLYCATCHER.")] + FLYCATCHER = 16030, + + /// + /// Fly Screen. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fly Screen.")] + FlyScreen = 16065, + + /// + /// Fly Screen A&B. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fly Screen A&B.")] + FlyScreenAB = 16110, + + /// + /// Fly Trap B. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fly Trap B.")] + FlyTrapB = 16155, + + /// + /// Fog Lamp MG. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fog Lamp MG.")] + FogLampMG = 16200, + + /// + /// Fog Lamp TT. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fog Lamp TT.")] + FogLampTT = 16245, + + /// + /// Foil Two. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Foil Two.")] + FoilTwo = 16290, + + /// + /// Fox Hunter. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fox Hunter.")] + FoxHunter = 16335, + + /// + /// FOX FIREFox Fire AL. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("FOX FIREFox Fire AL.")] + FOXFIREFoxFireAL = 16380, + + /// + /// FOX FIRE ILL. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("FOX FIRE ILL.")] + FOXFIREILL = 16390, + + /// + /// FR-151A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("FR-151A.")] + FR151A = 16400, + + /// + /// FR-1505 DA. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("FR-1505 DA.")] + FR1505DA = 16410, + + /// + /// FR-2000. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("FR-2000.")] + FR2000 = 16420, + + /// + /// FR-2855W. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("FR-2855W.")] + FR2855W = 16421, + + /// + /// Front Dome. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Front Dome.")] + FrontDome = 16425, + + /// + /// Front Door. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Front Door.")] + FrontDoor = 16470, + + /// + /// Front Piece. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Front Piece.")] + FrontPiece = 16515, + + /// + /// Furuno. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Furuno.")] + Furuno = 16560, + + /// + /// Furuno 1721. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Furuno 1721.")] + Furuno1721 = 16561, + + /// + /// Furuno 701. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Furuno 701.")] + Furuno701 = 16605, + + /// + /// Furuno 711 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Furuno 711 2.")] + Furuno7112 = 16650, + + /// + /// Furuno 2400. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Furuno 2400.")] + Furuno2400 = 16695, + + /// + /// GA 01 00. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("GA 01 00.")] + GA0100 = 16740, + + /// + /// Gage. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Gage.")] + Gage = 16785, + + /// + /// Garpin. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Garpin.")] + Garpin = 16830, + + /// + /// GEM BX 132. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("GEM BX 132.")] + GEMBX132 = 16875, + + /// + /// Gepard TA. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Gepard TA.")] + GepardTA = 16880, + + /// + /// Gepard TT. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Gepard TT.")] + GepardTT = 16884, + + /// + /// GERAN-F. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("GERAN-F.")] + GERANF = 16888, + + /// + /// GIRAFFE. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("GIRAFFE.")] + GIRAFFE = 16900, + + /// + /// Gin Sling TA. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Gin Sling TA.")] + GinSlingTA = 16915, + + /// + /// Gin Sling TT. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Gin Sling TT.")] + GinSlingTT = 16920, + + /// + /// Gin Sling MG. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Gin Sling MG.")] + GinSlingMG = 16925, + + /// + /// GPN-22. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("GPN-22.")] + GPN22 = 16945, + + /// + /// GRN-9. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("GRN-9.")] + GRN9 = 16950, + + /// + /// Green Stain. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Green Stain.")] + GreenStain = 16965, + + /// + /// Grid Bow. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Grid Bow.")] + GridBow = 17010, + + /// + /// GRILL PAN TT. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("GRILL PAN TT.")] + GRILLPANTT = 17025, + + /// + /// Guardsman. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Guardsman.")] + Guardsman = 17055, + + /// + /// GUN DISH (ZSU-23/4). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("GUN DISH (ZSU-23/4).")] + GUNDISHZSU234 = 17070, + + /// + /// Hair Net. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Hair Net.")] + HairNet = 17100, + + /// + /// Half Plate A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Half Plate A.")] + HalfPlateA = 17145, + + /// + /// Half Plate B. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Half Plate B.")] + HalfPlateB = 17190, + + /// + /// HARD. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HARD.")] + HARD = 17220, + + /// + /// Hawk Screech. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Hawk Screech.")] + HawkScreech = 17235, + + /// + /// Head Light A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Head Light A.")] + HeadLightA = 17280, + + /// + /// Head Lights. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Head Lights.")] + HeadLights = 17325, + + /// + /// Head Lights C. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Head Lights C.")] + HeadLightsC = 17370, + + /// + /// Head Lights MG A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Head Lights MG A.")] + HeadLightsMGA = 17415, + + /// + /// Head Lights MG B. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Head Lights MG B.")] + HeadLightsMGB = 17460, + + /// + /// Head Lights TT. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Head Lights TT.")] + HeadLightsTT = 17505, + + /// + /// Head Net. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Head Net.")] + HeadNet = 17550, + + /// + /// Hen Egg. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Hen Egg.")] + HenEgg = 17595, + + /// + /// Hen House. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Hen House.")] + HenHouse = 17640, + + /// + /// Hen Nest. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Hen Nest.")] + HenNest = 17685, + + /// + /// Hen Roost. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Hen Roost.")] + HenRoost = 17730, + + /// + /// High Brick. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("High Brick.")] + HighBrick = 17775, + + /// + /// High Fix. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("High Fix.")] + HighFix = 17820, + + /// + /// High Lark TI. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("High Lark TI.")] + HighLarkTI = 17865, + + /// + /// High Lark 1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("High Lark 1.")] + HighLark1 = 17910, + + /// + /// High Lark 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("High Lark 2.")] + HighLark2 = 17955, + + /// + /// High Lark 4. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("High Lark 4.")] + HighLark4 = 18000, + + /// + /// High Lune. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("High Lune.")] + HighLune = 18045, + + /// + /// High Pole A&B. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("High Pole A&B.")] + HighPoleAB = 18090, + + /// + /// High Scoop. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("High Scoop.")] + HighScoop = 18135, + + /// + /// HIGH SCREEN. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HIGH SCREEN.")] + HIGHSCREEN = 18150, + + /// + /// High Sieve. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("High Sieve.")] + HighSieve = 18180, + + /// + /// HN-503. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HN-503.")] + HN503 = 18200, + + /// + /// Home Talk. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Home Talk.")] + HomeTalk = 18225, + + /// + /// Horn Spoon. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Horn Spoon.")] + HornSpoon = 18270, + + /// + /// HOT BRICK. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HOT BRICK.")] + HOTBRICK = 18280, + + /// + /// Hot Flash. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Hot Flash.")] + HotFlash = 18315, + + /// + /// Hot Shot TA. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Hot Shot TA.")] + HotShotTA = 18320, + + /// + /// Hot Shot TT. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Hot Shot TT.")] + HotShotTT = 18325, + + /// + /// Hot Shot MG. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Hot Shot MG.")] + HotShotMG = 18330, + + /// + /// IFF MK XII AIMS UPX 29. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("IFF MK XII AIMS UPX 29.")] + IFFMKXIIAIMSUPX29 = 18360, + + /// + /// IFF MK XV. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("IFF MK XV.")] + IFFMKXV = 18405, + + /// + /// Javelin MG. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Javelin MG.")] + JavelinMG = 18410, + + /// + /// Jay Bird. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Jay Bird.")] + JayBird = 18450, + + /// + /// JRC-NMD-401. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("JRC-NMD-401.")] + JRCNMD401 = 18460, + + /// + /// Jupiter. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Jupiter.")] + Jupiter = 18495, + + /// + /// Jupiter II. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Jupiter II.")] + JupiterII = 18540, + + /// + /// JY-8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("JY-8.")] + JY8 = 18550, + + /// + /// JY-9. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("JY-9.")] + JY9 = 18555, + + /// + /// JY-14. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("JY-14.")] + JY14 = 18560, + + /// + /// K376Z. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("K376Z.")] + K376Z = 18585, + + /// + /// Kelvin Hughes 2A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Kelvin Hughes 2A.")] + KelvinHughes2A = 18630, + + /// + /// Kelvin Hughes 14/9. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Kelvin Hughes 14/9.")] + KelvinHughes149 = 18675, + + /// + /// Kelvin Hughes type 1006. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Kelvin Hughes type 1006.")] + KelvinHughesType1006 = 18720, + + /// + /// Kelvin Hughes type 1007. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Kelvin Hughes type 1007.")] + KelvinHughesType1007 = 18765, + + /// + /// KH-902M. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("KH-902M.")] + KH902M = 18785, + + /// + /// Kite Screech. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Kite Screech.")] + KiteScreech = 18810, + + /// + /// Kite Screech A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Kite Screech A.")] + KiteScreechA = 18855, + + /// + /// Kite Screech B. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Kite Screech B.")] + KiteScreechB = 18900, + + /// + /// Kivach. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Kivach.")] + Kivach = 18945, + + /// + /// Knife Rest. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Knife Rest.")] + KnifeRest = 18990, + + /// + /// Knife Rest B. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Knife Rest B.")] + KnifeRestB = 19035, + + /// + /// KNIFE REST C. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("KNIFE REST C.")] + KNIFERESTC = 19037, + + /// + /// KR-75. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("KR-75.")] + KR75 = 19050, + + /// + /// KSA SRN. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("KSA SRN.")] + KSASRN = 19080, + + /// + /// KSA TSR. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("KSA TSR.")] + KSATSR = 19125, + + /// + /// Land Fall. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Land Fall.")] + LandFall = 19170, + + /// + /// Land Roll MG. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Land Roll MG.")] + LandRollMG = 19215, + + /// + /// Land Roll TA. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Land Roll TA.")] + LandRollTA = 19260, + + /// + /// Land Roll TT. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Land Roll TT.")] + LandRollTT = 19305, + + /// + /// LC-150. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("LC-150.")] + LC150 = 19310, + + /// + /// Leningraf. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Leningraf.")] + Leningraf = 19350, + + /// + /// Light Bulb. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Light Bulb.")] + LightBulb = 19395, + + /// + /// LMT NRAI-6A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("LMT NRAI-6A.")] + LMTNRAI6A = 19400, + + /// + /// LN 55. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("LN 55.")] + LN55 = 19440, + + /// + /// Ln 66. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ln 66.")] + Ln66 = 19485, + + /// + /// Long Bow. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Long Bow.")] + LongBow = 19530, + + /// + /// Long Brick. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Long Brick.")] + LongBrick = 19575, + + /// + /// Long Bull. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Long Bull.")] + LongBull = 19620, + + /// + /// Long Eye. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Long Eye.")] + LongEye = 19665, + + /// + /// Long Head. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Long Head.")] + LongHead = 19710, + + /// + /// Long Talk. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Long Talk.")] + LongTalk = 19755, + + /// + /// Long Track. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Long Track.")] + LongTrack = 19800, + + /// + /// Long Trough. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Long Trough.")] + LongTrough = 19845, + + /// + /// Look Two. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Look Two.")] + LookTwo = 19890, + + /// + /// LORAN. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("LORAN.")] + LORAN = 19935, + + /// + /// Low Blow TA. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Low Blow TA.")] + LowBlowTA = 19950, + + /// + /// Low Blow TT. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Low Blow TT.")] + LowBlowTT = 19955, + + /// + /// Low Blow MG. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Low Blow MG.")] + LowBlowMG = 19960, + + /// + /// Low Sieve. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Low Sieve.")] + LowSieve = 19980, + + /// + /// Low Trough. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Low Trough.")] + LowTrough = 20025, + + /// + /// LP-23. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("LP-23.")] + LP23 = 20040, + + /// + /// LW 08. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("LW 08.")] + LW08 = 20070, + + /// + /// M-1983 FCR. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("M-1983 FCR.")] + M1983FCR = 20090, + + /// + /// M22-40. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("M22-40.")] + M2240 = 20115, + + /// + /// M44. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("M44.")] + M44 = 20160, + + /// + /// M401Z. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("M401Z.")] + M401Z = 20205, + + /// + /// M585Z. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("M585Z.")] + M585Z = 20250, + + /// + /// M588Z. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("M588Z.")] + M588Z = 20295, + + /// + /// MA 1 IFF Portion. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("MA 1 IFF Portion.")] + MA1IFFPortion = 20340, + + /// + /// MARELD. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("MARELD.")] + MARELD = 20360, + + /// + /// MA Type 909#. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("MA Type 909#.")] + MAType909 = 20385, + + /// + /// Marconi 1810. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Marconi 1810.")] + Marconi1810 = 20430, + + /// + /// Marconi Canada HC 75. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Marconi Canada HC 75.")] + MarconiCanadaHC75 = 20475, + + /// + /// Marconi S 713. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Marconi S 713.")] + MarconiS713 = 20495, + + /// + /// Marconi S 1802. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Marconi S 1802.")] + MarconiS1802 = 20520, + + /// + /// Marconi S247. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Marconi S247.")] + MarconiS247 = 20530, + + /// + /// Marconi S 810. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Marconi S 810.")] + MarconiS810 = 20565, + + /// + /// Marconi SA 10. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Marconi SA 10.")] + MarconiSA10 = 20585, + + /// + /// Marconi type 967. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Marconi type 967.")] + MarconiType967 = 20610, + + /// + /// Marconi type 968. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Marconi type 968.")] + MarconiType968 = 20655, + + /// + /// Marconi type 992. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Marconi type 992.")] + MarconiType992 = 20700, + + /// + /// Marconi/signaal type 1022. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Marconi/signaal type 1022.")] + MarconiSignaalType1022 = 20745, + + /// + /// Marconi/signaal type 910. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Marconi/signaal type 910.")] + MarconiSignaalType910 = 20790, + + /// + /// Marconi/signaal type 911. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Marconi/signaal type 911.")] + MarconiSignaalType911 = 20835, + + /// + /// Marconi/signaal type 992R. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Marconi/signaal type 992R.")] + MarconiSignaalType992R = 20880, + + /// + /// Mesh Brick. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mesh Brick.")] + MeshBrick = 20925, + + /// + /// Mirage ILL. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mirage ILL.")] + MirageILL = 20950, + + /// + /// MK 15 CIWS. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("MK 15 CIWS.")] + MK15CIWS = 20970, + + /// + /// MK-23. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("MK-23.")] + MK23 = 21015, + + /// + /// MK 23 TAS. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("MK 23 TAS.")] + MK23TAS = 21060, + + /// + /// MK 25. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("MK 25.")] + MK25 = 21105, + + /// + /// MK-35 M2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("MK-35 M2.")] + MK35M2 = 21150, + + /// + /// MK 92. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("MK 92.")] + MK92 = 21195, + + /// + /// MK-92 CAS. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("MK-92 CAS.")] + MK92CAS = 21240, + + /// + /// MK-92 STIR. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("MK-92 STIR.")] + MK92STIR = 21285, + + /// + /// MK 95. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("MK 95.")] + MK95 = 21330, + + /// + /// MLA-1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("MLA-1.")] + MLA1 = 21340, + + /// + /// MM APS 705. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("MM APS 705.")] + MMAPS705 = 21375, + + /// + /// MM SPG 74. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("MM SPG 74.")] + MMSPG74 = 21420, + + /// + /// MM SPG 75. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("MM SPG 75.")] + MMSPG75 = 21465, + + /// + /// MM SPN 703. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("MM SPN 703.")] + MMSPN703 = 21490, + + /// + /// MM SPS 702. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("MM SPS 702.")] + MMSPS702 = 21510, + + /// + /// MM SPS 768. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("MM SPS 768.")] + MMSPS768 = 21555, + + /// + /// MM SPS 774. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("MM SPS 774.")] + MMSPS774 = 21600, + + /// + /// Moon 4. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Moon 4.")] + Moon4 = 21645, + + /// + /// MMRS. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("MMRS.")] + MMRS = 21650, + + /// + /// MPDR 18 X. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("MPDR 18 X.")] + MPDR18X = 21690, + + /// + /// MT-305X. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("MT-305X.")] + MT305X = 21710, + + /// + /// Muff Cob. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Muff Cob.")] + MuffCob = 21735, + + /// + /// Mushroom. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mushroom.")] + Mushroom = 21780, + + /// + /// Mushroom 1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mushroom 1.")] + Mushroom1 = 21825, + + /// + /// Mushroom 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mushroom 2.")] + Mushroom2 = 21870, + + /// + /// N920Z. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("N920Z.")] + N920Z = 21880, + + /// + /// Nanjing B. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Nanjing B.")] + NanjingB = 21890, + + /// + /// Nanjing C. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Nanjing C.")] + NanjingC = 21895, + + /// + /// Nayada. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Nayada.")] + Nayada = 21915, + + /// + /// Neptun. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Neptun.")] + Neptun = 21960, + + /// + /// NIKE TT. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("NIKE TT.")] + NIKETT = 21980, + + /// + /// NRBA 50. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("NRBA 50.")] + NRBA50 = 22005, + + /// + /// NRBA 51. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("NRBA 51.")] + NRBA51 = 22050, + + /// + /// NRBF 20A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("NRBF 20A.")] + NRBF20A = 22095, + + /// + /// Nysa B. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Nysa B.")] + NysaB = 22140, + + /// + /// O524A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("O524A.")] + O524A = 22185, + + /// + /// O580B. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("O580B.")] + O580B = 22230, + + /// + /// O625Z. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("O625Z.")] + O625Z = 22275, + + /// + /// O626Z. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("O626Z.")] + O626Z = 22320, + + /// + /// Odd Group. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Odd Group.")] + OddGroup = 22345, + + /// + /// Odd Lot. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Odd Lot.")] + OddLot = 22365, + + /// + /// Odd Pair. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Odd Pair.")] + OddPair = 22410, + + /// + /// Oka. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Oka.")] + Oka = 22455, + + /// + /// OKEAN. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("OKEAN.")] + OKEAN = 22500, + + /// + /// OKINXE 12C. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("OKINXE 12C.")] + OKINXE12C = 22545, + + /// + /// OMEGA. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("OMEGA.")] + OMEGA = 22590, + + /// + /// Omera ORB32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Omera ORB32.")] + OmeraORB32 = 22635, + + /// + /// One Eye. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("One Eye.")] + OneEye = 22680, + + /// + /// OP-28. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("OP-28.")] + OP28 = 22690, + + /// + /// OPS-16B. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("OPS-16B.")] + OPS16B = 22725, + + /// + /// OPS-18. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("OPS-18.")] + OPS18 = 22730, + + /// + /// OPS-28. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("OPS-28.")] + OPS28 = 22740, + + /// + /// OR-2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("OR-2.")] + OR2 = 22770, + + /// + /// ORB-31S. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ORB-31S.")] + ORB31S = 22810, + + /// + /// ORB 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ORB 32.")] + ORB32 = 22815, + + /// + /// Orion Rtn 10X. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Orion Rtn 10X.")] + OrionRtn10X = 22860, + + /// + /// Otomat MK II Teseo. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Otomat MK II Teseo.")] + OtomatMKIITeseo = 22905, + + /// + /// Owl Screech. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Owl Screech.")] + OwlScreech = 22950, + + /// + /// P360Z. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("P360Z.")] + P360Z = 22955, + + /// + /// PA-1660. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("PA-1660.")] + PA1660 = 22960, + + /// + /// Palm Frond. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Palm Frond.")] + PalmFrond = 22995, + + /// + /// Palm Frond AB. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Palm Frond AB.")] + PalmFrondAB = 23040, + + /// + /// Pat Hand TT. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Pat Hand TT.")] + PatHandTT = 23085, + + /// + /// Pat Hand MG. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Pat Hand MG.")] + PatHandMG = 23095, + + /// + /// Patty Cake. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Patty Cake.")] + PattyCake = 23130, + + /// + /// Pawn Cake. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Pawn Cake.")] + PawnCake = 23175, + + /// + /// PBR 4 Rubin. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("PBR 4 Rubin.")] + PBR4Rubin = 23220, + + /// + /// Pea Sticks. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Pea Sticks.")] + PeaSticks = 23265, + + /// + /// Peel Cone. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Peel Cone.")] + PeelCone = 23310, + + /// + /// Peel Group. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Peel Group.")] + PeelGroup = 23355, + + /// + /// Peel Group A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Peel Group A.")] + PeelGroupA = 23400, + + /// + /// Peel Group B. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Peel Group B.")] + PeelGroupB = 23445, + + /// + /// Peel Pair. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Peel Pair.")] + PeelPair = 23490, + + /// + /// Philips 9LV 200. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Philips 9LV 200.")] + Philips9LV200 = 23535, + + /// + /// Philips 9LV 331. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Philips 9LV 331.")] + Philips9LV331 = 23580, + + /// + /// Philips LV 223. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Philips LV 223.")] + PhilipsLV223 = 23625, + + /// + /// Philips Sea Giraffe 50 HC. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Philips Sea Giraffe 50 HC.")] + PhilipsSeaGiraffe50HC = 23670, + + /// + /// Pin Jib. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Pin Jib.")] + PinJib = 23690, + + /// + /// Plank Shad. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Plank Shad.")] + PlankShad = 23710, + + /// + /// Plank Shave. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Plank Shave.")] + PlankShave = 23715, + + /// + /// Plank Shave A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Plank Shave A.")] + PlankShaveA = 23760, + + /// + /// Plank Shave B. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Plank Shave B.")] + PlankShaveB = 23805, + + /// + /// Plate Steer. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Plate Steer.")] + PlateSteer = 23850, + + /// + /// Plessey AWS 1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Plessey AWS 1.")] + PlesseyAWS1 = 23895, + + /// + /// Plessey AWS 4. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Plessey AWS 4.")] + PlesseyAWS4 = 23940, + + /// + /// Plessey AWS 6. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Plessey AWS 6.")] + PlesseyAWS6 = 23985, + + /// + /// Plessey RJ. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Plessey RJ.")] + PlesseyRJ = 23990, + + /// + /// Plessey type 996. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Plessey type 996.")] + PlesseyType996 = 24030, + + /// + /// Plinth Net. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Plinth Net.")] + PlinthNet = 24075, + + /// + /// Pluto. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Pluto.")] + Pluto = 24095, + + /// + /// POHJANPALO. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("POHJANPALO.")] + POHJANPALO = 24100, + + /// + /// POLLUX. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("POLLUX.")] + POLLUX = 24120, + + /// + /// Pop Group. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Pop Group.")] + PopGroup = 24165, + + /// + /// Pop Group MG. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Pop Group MG.")] + PopGroupMG = 24210, + + /// + /// Pop Group TA. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Pop Group TA.")] + PopGroupTA = 24255, + + /// + /// Pop Group TT. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Pop Group TT.")] + PopGroupTT = 24300, + + /// + /// Pork Trough. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Pork Trough.")] + PorkTrough = 24345, + + /// + /// Post Bow. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Post Bow.")] + PostBow = 24390, + + /// + /// Post Lamp. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Post Lamp.")] + PostLamp = 24435, + + /// + /// Pot Drum. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Pot Drum.")] + PotDrum = 24480, + + /// + /// Pot Head. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Pot Head.")] + PotHead = 24525, + + /// + /// PRIMUS 40 WXD. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("PRIMUS 40 WXD.")] + PRIMUS40WXD = 24570, + + /// + /// PRIMUS 300SL. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("PRIMUS 300SL.")] + PRIMUS300SL = 24615, + + /// + /// Primus 3000. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primus 3000.")] + Primus3000 = 24620, + + /// + /// PS-05A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("PS-05A.")] + PS05A = 24650, + + /// + /// PS 46 A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("PS 46 A.")] + PS46A = 24660, + + /// + /// PS 70 R. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("PS 70 R.")] + PS70R = 24705, + + /// + /// PS-890. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("PS-890.")] + PS890 = 24710, + + /// + /// Puff Ball. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Puff Ball.")] + PuffBall = 24750, + + /// + /// R-76. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("R-76.")] + R76 = 24770, + + /// + /// RAC-30. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("RAC-30.")] + RAC30 = 24780, + + /// + /// Racal 1229. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Racal 1229.")] + Racal1229 = 24795, + + /// + /// Racal AC 2690 BT. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Racal AC 2690 BT.")] + RacalAC2690BT = 24840, + + /// + /// Racal Decca 1216. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Racal Decca 1216.")] + RacalDecca1216 = 24885, + + /// + /// Racal Decca 360. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Racal Decca 360.")] + RacalDecca360 = 24930, + + /// + /// Racal Decca AC 1290. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Racal Decca AC 1290.")] + RacalDeccaAC1290 = 24975, + + /// + /// Racal Decca TM 1229. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Racal Decca TM 1229.")] + RacalDeccaTM1229 = 25020, + + /// + /// Racal Decca TM 1626. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Racal Decca TM 1626.")] + RacalDeccaTM1626 = 25065, + + /// + /// Racal DRBN 34A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Racal DRBN 34A.")] + RacalDRBN34A = 25110, + + /// + /// Radar 24. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Radar 24.")] + Radar24 = 25155, + + /// + /// RAN 7S. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("RAN 7S.")] + RAN7S = 25200, + + /// + /// RAN 10S. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("RAN 10S.")] + RAN10S = 25205, + + /// + /// RAN 11 LX. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("RAN 11 LX.")] + RAN11LX = 25245, + + /// + /// Rapier TA. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Rapier TA.")] + RapierTA = 25260, + + /// + /// Dagger. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Dagger.")] + Dagger = 25265, + + /// + /// Rapier MG. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Rapier MG.")] + RapierMG = 25270, + + /// + /// RAT-31S. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("RAT-31S.")] + RAT31S = 25280, + + /// + /// RATAC (LCT). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("RATAC (LCT).")] + RATACLCT = 25285, + + /// + /// Raytheon 1220. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Raytheon 1220.")] + Raytheon1220 = 25290, + + /// + /// Raytheon 1302. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Raytheon 1302.")] + Raytheon1302 = 25300, + + /// + /// Raytheon 1500. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Raytheon 1500.")] + Raytheon1500 = 25335, + + /// + /// Raytheon 1645. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Raytheon 1645.")] + Raytheon1645 = 25380, + + /// + /// Raytheon 1650. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Raytheon 1650.")] + Raytheon1650 = 25425, + + /// + /// Raytheon 1900. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Raytheon 1900.")] + Raytheon1900 = 25470, + + /// + /// Raytheon 2502. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Raytheon 2502.")] + Raytheon2502 = 25515, + + /// + /// Raytheon TM 1650/6X. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Raytheon TM 1650/6X.")] + RaytheonTM16506X = 25560, + + /// + /// Raytheon TM 1660/12S. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Raytheon TM 1660/12S.")] + RaytheonTM166012S = 25605, + + /// + /// RAY-1220XR. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("RAY-1220XR.")] + RAY1220XR = 25630, + + /// + /// RAY-1401. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("RAY-1401.")] + RAY1401 = 25635, + + /// + /// Ray 2900. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ray 2900.")] + Ray2900 = 25650, + + /// + /// Raypath. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Raypath.")] + Raypath = 25695, + + /// + /// RBE2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("RBE2.")] + RBE2 = 25735, + + /// + /// RDM. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("RDM.")] + RDM = 25740, + + /// + /// RDY. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("RDY.")] + RDY = 25760, + + /// + /// RDN 72. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("RDN 72.")] + RDN72 = 25785, + + /// + /// RDR 1A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("RDR 1A.")] + RDR1A = 25830, + + /// + /// RDR 1E. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("RDR 1E.")] + RDR1E = 25835, + + /// + /// RDR 4A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("RDR 4A.")] + RDR4A = 25840, + + /// + /// RDR 1200. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("RDR 1200.")] + RDR1200 = 25875, + + /// + /// RDR 1400. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("RDR 1400.")] + RDR1400 = 25885, + + /// + /// RDR 1400 C. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("RDR 1400 C.")] + RDR1400C = 25890, + + /// + /// RDR 1500. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("RDR 1500.")] + RDR1500 = 25895, + + /// + /// Rice Lamp. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Rice Lamp.")] + RiceLamp = 25920, + + /// + /// Rice Pad. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Rice Pad.")] + RicePad = 25965, + + /// + /// Rice Screen. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Rice Screen.")] + RiceScreen = 26010, + + /// + /// ROLAND BN. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ROLAND BN.")] + ROLANDBN = 26055, + + /// + /// ROLAND MG. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ROLAND MG.")] + ROLANDMG = 26100, + + /// + /// ROLAND TA. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ROLAND TA.")] + ROLANDTA = 26145, + + /// + /// ROLAND TT. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ROLAND TT.")] + ROLANDTT = 26190, + + /// + /// Round Ball. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Round Ball.")] + RoundBall = 26235, + + /// + /// Round House. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Round House.")] + RoundHouse = 26280, + + /// + /// Round House B. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Round House B.")] + RoundHouseB = 26325, + + /// + /// RT-02/50. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("RT-02/50.")] + RT0250 = 26330, + + /// + /// RTN-1A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("RTN-1A.")] + RTN1A = 26350, + + /// + /// RV2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("RV2.")] + RV2 = 26370, + + /// + /// RV3. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("RV3.")] + RV3 = 26415, + + /// + /// RV5. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("RV5.")] + RV5 = 26460, + + /// + /// RV10. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("RV10.")] + RV10 = 26505, + + /// + /// RV17. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("RV17.")] + RV17 = 26550, + + /// + /// RV18. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("RV18.")] + RV18 = 26595, + + /// + /// RV-377. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("RV-377.")] + RV377 = 26610, + + /// + /// RV UM. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("RV UM.")] + RVUM = 26640, + + /// + /// RXN 2-60. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("RXN 2-60.")] + RXN260 = 26660, + + /// + /// S-1810CD. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("S-1810CD.")] + S1810CD = 26670, + + /// + /// SA 2 Guideline. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SA 2 Guideline.")] + SA2Guideline = 26685, + + /// + /// SA 3 Goa. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SA 3 Goa.")] + SA3Goa = 26730, + + /// + /// SA 8 Gecko DT. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SA 8 Gecko DT.")] + SA8GeckoDT = 26775, + + /// + /// SA-12 TELAR ILL. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SA-12 TELAR ILL.")] + SA12TELARILL = 26795, + + /// + /// SA N 7 Gadfly TI. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SA N 7 Gadfly TI.")] + SAN7GadflyTI = 26820, + + /// + /// SA N 11 Cads 1 UN. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SA N 11 Cads 1 UN.")] + SAN11Cads1UN = 26865, + + /// + /// Salt Pot A&B. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Salt Pot A&B.")] + SaltPotAB = 26910, + + /// + /// SATURNE II. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SATURNE II.")] + SATURNEII = 26955, + + /// + /// Scan Can. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Scan Can.")] + ScanCan = 27000, + + /// + /// Scan Fix. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Scan Fix.")] + ScanFix = 27045, + + /// + /// Scan Odd. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Scan Odd.")] + ScanOdd = 27090, + + /// + /// Scan Three. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Scan Three.")] + ScanThree = 27135, + + /// + /// SCANTER (CSR). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SCANTER (CSR).")] + SCANTERCSR = 27140, + + /// + /// SCORADS. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SCORADS.")] + SCORADS = 27141, + + /// + /// SCOREBOARD. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SCOREBOARD.")] + SCOREBOARD = 27150, + + /// + /// Scoup Plate. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Scoup Plate.")] + ScoupPlate = 27180, + + /// + /// SCR-584. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SCR-584.")] + SCR584 = 27190, + + /// + /// Sea Archer 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sea Archer 2.")] + SeaArcher2 = 27225, + + /// + /// Sea Hunter 4 MG. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sea Hunter 4 MG.")] + SeaHunter4MG = 27270, + + /// + /// Sea Hunter 4 TA. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sea Hunter 4 TA.")] + SeaHunter4TA = 27315, + + /// + /// Sea Hunter 4 TT. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sea Hunter 4 TT.")] + SeaHunter4TT = 27360, + + /// + /// Sea Gull. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sea Gull.")] + SeaGull = 27405, + + /// + /// Sea Net. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sea Net.")] + SeaNet = 27450, + + /// + /// Sea Spray. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sea Spray.")] + SeaSpray = 27495, + + /// + /// Sea Tiger. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sea Tiger.")] + SeaTiger = 27540, + + /// + /// Searchwater. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Searchwater.")] + Searchwater = 27570, + + /// + /// Selenia Orion 7. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Selenia Orion 7.")] + SeleniaOrion7 = 27585, + + /// + /// Selenia type 912. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Selenia type 912.")] + SeleniaType912 = 27630, + + /// + /// Selennia RAN 12 L/X. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Selennia RAN 12 L/X.")] + SelenniaRAN12LX = 27675, + + /// + /// Selennia RTN 10X. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Selennia RTN 10X.")] + SelenniaRTN10X = 27720, + + /// + /// Selinia ARP 1645. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Selinia ARP 1645.")] + SeliniaARP1645 = 27765, + + /// + /// SGR 102 00. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SGR 102 00.")] + SGR10200 = 27810, + + /// + /// SGR 103/02. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SGR 103/02.")] + SGR10302 = 27855, + + /// + /// SGR-104. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SGR-104.")] + SGR104 = 27870, + + /// + /// Sheet Bend. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sheet Bend.")] + SheetBend = 27900, + + /// + /// Sheet Curve. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sheet Curve.")] + SheetCurve = 27945, + + /// + /// Ship Globe. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ship Globe.")] + ShipGlobe = 27990, + + /// + /// Ship Wheel. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ship Wheel.")] + ShipWheel = 28035, + + /// + /// SGR 114. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SGR 114.")] + SGR114 = 28080, + + /// + /// Shore Walk A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Shore Walk A.")] + ShoreWalkA = 28125, + + /// + /// Short Horn. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Short Horn.")] + ShortHorn = 28170, + + /// + /// Shot Dome. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Shot Dome.")] + ShotDome = 28215, + + /// + /// Side Globe JN. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Side Globe JN.")] + SideGlobeJN = 28260, + + /// + /// Side Net. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Side Net.")] + SideNet = 28280, + + /// + /// Side Walk A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Side Walk A.")] + SideWalkA = 28305, + + /// + /// Signaal DA 02. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Signaal DA 02.")] + SignaalDA02 = 28350, + + /// + /// Signaal DA 05. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Signaal DA 05.")] + SignaalDA05 = 28395, + + /// + /// Signaal DA 08. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Signaal DA 08.")] + SignaalDA08 = 28440, + + /// + /// Signaal LW 08. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Signaal LW 08.")] + SignaalLW08 = 28485, + + /// + /// Signaal LWOR. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Signaal LWOR.")] + SignaalLWOR = 28530, + + /// + /// Signaal M45. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Signaal M45.")] + SignaalM45 = 28575, + + /// + /// Signaal MW 08. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Signaal MW 08.")] + SignaalMW08 = 28620, + + /// + /// Signaal SMART. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Signaal SMART.")] + SignaalSMART = 28665, + + /// + /// Signaal STING. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Signaal STING.")] + SignaalSTING = 28710, + + /// + /// Signaal STIR. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Signaal STIR.")] + SignaalSTIR = 28755, + + /// + /// Signaal WM 20/2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Signaal WM 20/2.")] + SignaalWM202 = 28800, + + /// + /// Signaal WM 25. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Signaal WM 25.")] + SignaalWM25 = 28845, + + /// + /// Signaal WM 27. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Signaal WM 27.")] + SignaalWM27 = 28890, + + /// + /// Signaal WM 28. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Signaal WM 28.")] + SignaalWM28 = 28935, + + /// + /// Signaal ZW 01. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Signaal ZW 01.")] + SignaalZW01 = 28980, + + /// + /// Signaal ZW 06. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Signaal ZW 06.")] + SignaalZW06 = 29025, + + /// + /// Ski Pole. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ski Pole.")] + SkiPole = 29070, + + /// + /// Skin Head. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Skin Head.")] + SkinHead = 29115, + + /// + /// Skip Spin. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Skip Spin.")] + SkipSpin = 29160, + + /// + /// UAR-1021. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("UAR-1021.")] + UAR1021 = 29185, + + /// + /// UAR-1021. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("UAR-1021.")] + UAR1021_29190 = 29190, + + /// + /// Sky Watch. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sky Watch.")] + SkyWatch = 29205, + + /// + /// SKYSHADOW. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SKYSHADOW.")] + SKYSHADOW = 29215, + + /// + /// SKYSHIELD TA. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SKYSHIELD TA.")] + SKYSHIELDTA = 29220, + + /// + /// SL. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SL.")] + SL = 29250, + + /// + /// SL/ALQ-234. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SL/ALQ-234.")] + SLALQ234 = 29270, + + /// + /// Slap Shot E. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Slap Shot E.")] + SlapShotE = 29295, + + /// + /// Slim Net. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Slim Net.")] + SlimNet = 29340, + + /// + /// Slot Back A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Slot Back A.")] + SlotBackA = 29385, + + /// + /// Slot Back ILL. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Slot Back ILL.")] + SlotBackILL = 29400, + + /// + /// Slot Back B. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Slot Back B.")] + SlotBackB = 29430, + + /// + /// Slot Rest. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Slot Rest.")] + SlotRest = 29440, + + /// + /// SMA 3 RM. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SMA 3 RM.")] + SMA3RM = 29475, + + /// + /// SMA 3 RM 20. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SMA 3 RM 20.")] + SMA3RM20 = 29520, + + /// + /// SMA 3RM 20A/SMG. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SMA 3RM 20A/SMG.")] + SMA3RM20ASMG = 29565, + + /// + /// SMA BPS 704. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SMA BPS 704.")] + SMABPS704 = 29610, + + /// + /// SMA SPIN 749 (V) 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SMA SPIN 749 (V) 2.")] + SMASPIN749V2 = 29655, + + /// + /// SMA SPN 703. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SMA SPN 703.")] + SMASPN703 = 29700, + + /// + /// SMA SPN 751. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SMA SPN 751.")] + SMASPN751 = 29745, + + /// + /// SMA SPOS 748. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SMA SPOS 748.")] + SMASPOS748 = 29790, + + /// + /// SMA SPQ 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SMA SPQ 2.")] + SMASPQ2 = 29835, + + /// + /// SMA SPQ 2D. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SMA SPQ 2D.")] + SMASPQ2D = 29880, + + /// + /// SMA SPQ 701. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SMA SPQ 701.")] + SMASPQ701 = 29925, + + /// + /// SMA SPS 702 UPX. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SMA SPS 702 UPX.")] + SMASPS702UPX = 29970, + + /// + /// SMA ST 2 OTOMAT II MH. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SMA ST 2 OTOMAT II MH.")] + SMAST2OTOMATIIMH = 30015, + + /// + /// SMA 718 Beacon. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SMA 718 Beacon.")] + SMA718Beacon = 30060, + + /// + /// SNAP SHOT. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SNAP SHOT.")] + SNAPSHOT = 30080, + + /// + /// Snoop Drift. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Snoop Drift.")] + SnoopDrift = 30105, + + /// + /// Snoop Head. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Snoop Head.")] + SnoopHead = 30150, + + /// + /// Snoop Pair. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Snoop Pair.")] + SnoopPair = 30195, + + /// + /// Snoop Plate. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Snoop Plate.")] + SnoopPlate = 30240, + + /// + /// Snoop Slab. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Snoop Slab.")] + SnoopSlab = 30285, + + /// + /// Snoop Tray. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Snoop Tray.")] + SnoopTray = 30330, + + /// + /// Snoop Tray 1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Snoop Tray 1.")] + SnoopTray1 = 30375, + + /// + /// Snoop Tray 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Snoop Tray 2.")] + SnoopTray2 = 30420, + + /// + /// Snoop Watch. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Snoop Watch.")] + SnoopWatch = 30465, + + /// + /// Snow Drift. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Snow Drift.")] + SnowDrift = 30470, + + /// + /// SO-1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SO-1.")] + SO1 = 30510, + + /// + /// SO-12. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SO-12.")] + SO12 = 30520, + + /// + /// SO A Communist. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SO A Communist.")] + SOACommunist = 30555, + + /// + /// SO-69. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SO-69.")] + SO69 = 30580, + + /// + /// Sock Eye. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sock Eye.")] + SockEye = 30600, + + /// + /// SOM 64. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SOM 64.")] + SOM64 = 30645, + + /// + /// SPADA TT. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SPADA TT.")] + SPADATT = 30670, + + /// + /// Sparrow (AIM/RIM-7) ILL. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sparrow (AIM/RIM-7) ILL.")] + SparrowAIMRIM7ILL = 30690, + + /// + /// Sperry M-3. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sperry M-3.")] + SperryM3 = 30700, + + /// + /// SPG 53F. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SPG 53F.")] + SPG53F = 30735, + + /// + /// SPG 70 (RTN 10X). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SPG 70 (RTN 10X).")] + SPG70RTN10X = 30780, + + /// + /// SPG 74 (RTN 20X). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SPG 74 (RTN 20X).")] + SPG74RTN20X = 30825, + + /// + /// SPG 75 (RTN 30X). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SPG 75 (RTN 30X).")] + SPG75RTN30X = 30870, + + /// + /// SPG 76 (RTN 30X). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SPG 76 (RTN 30X).")] + SPG76RTN30X = 30915, + + /// + /// Spin Scan A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Spin Scan A.")] + SpinScanA = 30960, + + /// + /// Spin Scan B. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Spin Scan B.")] + SpinScanB = 31005, + + /// + /// Spin Trough. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Spin Trough.")] + SpinTrough = 31050, + + /// + /// Splash Drop. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Splash Drop.")] + SplashDrop = 31095, + + /// + /// SPN 35A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SPN 35A.")] + SPN35A = 31140, + + /// + /// SPN 41. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SPN 41.")] + SPN41 = 31185, + + /// + /// SPN 42. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SPN 42.")] + SPN42 = 31230, + + /// + /// SPN 43A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SPN 43A.")] + SPN43A = 31275, + + /// + /// SPN 43B. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SPN 43B.")] + SPN43B = 31320, + + /// + /// SPN 44. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SPN 44.")] + SPN44 = 31365, + + /// + /// SPN 46. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SPN 46.")] + SPN46 = 31410, + + /// + /// SPN 703. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SPN 703.")] + SPN703 = 31455, + + /// + /// SPN 728 (V) 1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SPN 728 (V) 1.")] + SPN728V1 = 31500, + + /// + /// SPN 748. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SPN 748.")] + SPN748 = 31545, + + /// + /// SPN 750. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SPN 750.")] + SPN750 = 31590, + + /// + /// Sponge Cake. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sponge Cake.")] + SpongeCake = 31635, + + /// + /// Spoon Rest. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Spoon Rest.")] + SpoonRest = 31680, + + /// + /// Spoon Rest A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Spoon Rest A.")] + SpoonRestA = 31681, + + /// + /// Spoon Rest B. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Spoon Rest B.")] + SpoonRestB = 31682, + + /// + /// Spoon Rest D. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Spoon Rest D.")] + SpoonRestD = 31684, + + /// + /// SPQ 712 (RAN 12 L/X). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SPQ 712 (RAN 12 L/X).")] + SPQ712RAN12LX = 31725, + + /// + /// SPS 6C. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SPS 6C.")] + SPS6C = 31770, + + /// + /// SPS 10F. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SPS 10F.")] + SPS10F = 31815, + + /// + /// SPS 12. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SPS 12.")] + SPS12 = 31860, + + /// + /// SPS 768 (RAN EL). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SPS 768 (RAN EL).")] + SPS768RANEL = 31995, + + /// + /// SPS 774 (RAN 10S). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SPS 774 (RAN 10S).")] + SPS774RAN10S = 32040, + + /// + /// SPY 790. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SPY 790.")] + SPY790 = 32085, + + /// + /// Square Head. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Square Head.")] + SquareHead = 32130, + + /// + /// Square Pair. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Square Pair.")] + SquarePair = 32175, + + /// + /// Square Slot. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Square Slot.")] + SquareSlot = 32220, + + /// + /// Square Tie. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Square Tie.")] + SquareTie = 32265, + + /// + /// Squash Dome. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Squash Dome.")] + SquashDome = 32310, + + /// + /// Squat Eye. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Squat Eye.")] + SquatEye = 32330, + + /// + /// Squint Eye. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Squint Eye.")] + SquintEye = 32355, + + /// + /// SRN 6. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SRN 6.")] + SRN6 = 32400, + + /// + /// SRN 15. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SRN 15.")] + SRN15 = 32445, + + /// + /// SRN 745. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SRN 745.")] + SRN745 = 32490, + + /// + /// SRO 1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SRO 1.")] + SRO1 = 32535, + + /// + /// SRO 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SRO 2.")] + SRO2 = 32580, + + /// + /// SS C 2B Samlet MG. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SS C 2B Samlet MG.")] + SSC2BSamletMG = 32625, + + /// + /// SS N 2A B CSSC. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SS N 2A B CSSC.")] + SSN2ABCSSC = 32670, + + /// + /// SS N 2A B CSSC 2A 3A2 MH. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SS N 2A B CSSC 2A 3A2 MH.")] + SSN2ABCSSC2A3A2MH = 32715, + + /// + /// SS N 2C Seeker. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SS N 2C Seeker.")] + SSN2CSeeker = 32760, + + /// + /// SS N 2C D Styx. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SS N 2C D Styx.")] + SSN2CDStyx = 32805, + + /// + /// SS N 2C D Styx C D MH. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SS N 2C D Styx C D MH.")] + SSN2CDStyxCDMH = 32850, + + /// + /// SS N 3 SSC SS C 18 BN. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SS N 3 SSC SS C 18 BN.")] + SSN3SSCSSC18BN = 32895, + + /// + /// SS N 3B Sepal AL. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SS N 3B Sepal AL.")] + SSN3BSepalAL = 32940, + + /// + /// SS N 3B Sepal MH. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SS N 3B Sepal MH.")] + SSN3BSepalMH = 32985, + + /// + /// SS N 9 Siren. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SS N 9 Siren.")] + SSN9Siren = 33030, + + /// + /// SS N 9 Siren AL. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SS N 9 Siren AL.")] + SSN9SirenAL = 33075, + + /// + /// SS N 9 Siren MH. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SS N 9 Siren MH.")] + SSN9SirenMH = 33120, + + /// + /// SS N 12 Sandbox AL. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SS N 12 Sandbox AL.")] + SSN12SandboxAL = 33165, + + /// + /// SS N 12 Sandbox MH. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SS N 12 Sandbox MH.")] + SSN12SandboxMH = 33210, + + /// + /// SS N 19 Shipwreck. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SS N 19 Shipwreck.")] + SSN19Shipwreck = 33255, + + /// + /// SS N 19 Shipwreck AL. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SS N 19 Shipwreck AL.")] + SSN19ShipwreckAL = 33300, + + /// + /// SS N 19 Shipwreck MH. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SS N 19 Shipwreck MH.")] + SSN19ShipwreckMH = 33345, + + /// + /// SS N 21 AL. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SS N 21 AL.")] + SSN21AL = 33390, + + /// + /// SS N 22 Sunburn. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SS N 22 Sunburn.")] + SSN22Sunburn = 33435, + + /// + /// SS N 22 Sunburn MH. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SS N 22 Sunburn MH.")] + SSN22SunburnMH = 33480, + + /// + /// Stone Cake. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Stone Cake.")] + StoneCake = 33525, + + /// + /// STR 41. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("STR 41.")] + STR41 = 33570, + + /// + /// Straight Flush TA. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Straight Flush TA.")] + StraightFlushTA = 33590, + + /// + /// Straight Flush TT. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Straight Flush TT.")] + StraightFlushTT = 33595, + + /// + /// Straight Flush ILL. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Straight Flush ILL.")] + StraightFlushILL = 33600, + + /// + /// Strike Out. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Strike Out.")] + StrikeOut = 33615, + + /// + /// Strut Curve. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Strut Curve.")] + StrutCurve = 33660, + + /// + /// Strut Pair. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Strut Pair.")] + StrutPair = 33705, + + /// + /// Strut Pair 1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Strut Pair 1.")] + StrutPair1 = 33750, + + /// + /// Strut Pair 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Strut Pair 2.")] + StrutPair2 = 33795, + + /// + /// Sun Visor. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sun Visor.")] + SunVisor = 33840, + + /// + /// Superfledermaus. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Superfledermaus.")] + Superfledermaus = 33860, + + /// + /// Swift Rod 1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Swift Rod 1.")] + SwiftRod1 = 33885, + + /// + /// Swift Rod 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Swift Rod 2.")] + SwiftRod2 = 33930, + + /// + /// T1166. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("T1166.")] + T1166 = 33975, + + /// + /// T1171. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("T1171.")] + T1171 = 34020, + + /// + /// T1202. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("T1202.")] + T1202 = 34040, + + /// + /// T6004. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("T6004.")] + T6004 = 34065, + + /// + /// T6031. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("T6031.")] + T6031 = 34110, + + /// + /// T8067. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("T8067.")] + T8067 = 34155, + + /// + /// T8068. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("T8068.")] + T8068 = 34200, + + /// + /// T8124. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("T8124.")] + T8124 = 34245, + + /// + /// T8408. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("T8408.")] + T8408 = 34290, + + /// + /// T8911. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("T8911.")] + T8911 = 34335, + + /// + /// T8937. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("T8937.")] + T8937 = 34380, + + /// + /// T8944. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("T8944.")] + T8944 = 34425, + + /// + /// T8987. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("T8987.")] + T8987 = 34470, + + /// + /// Tall King. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tall King.")] + TallKing = 34515, + + /// + /// Tall Mike. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tall Mike.")] + TallMike = 34560, + + /// + /// Tall Path. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tall Path.")] + TallPath = 34605, + + /// + /// Team Work. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Team Work.")] + TeamWork = 34625, + + /// + /// THAAD GBR. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("THAAD GBR.")] + THAADGBR = 34640, + + /// + /// THD 225. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("THD 225.")] + THD225 = 34650, + + /// + /// Picador. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Picador.")] + Picador = 34670, + + /// + /// THD 5500. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("THD 5500.")] + THD5500 = 34695, + + /// + /// Thin Path. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Thin Path.")] + ThinPath = 34740, + + /// + /// Thin Skin. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Thin Skin.")] + ThinSkin = 34785, + + /// + /// Thompson CSF TA-10. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Thompson CSF TA-10.")] + ThompsonCSFTA10 = 34795, + + /// + /// Thompson CSF TH D 1040 Neptune. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Thompson CSF TH D 1040 Neptune.")] + ThompsonCSFTHD1040Neptune = 34830, + + /// + /// Thompson CSF Calypso. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Thompson CSF Calypso.")] + ThompsonCSFCalypso = 34875, + + /// + /// Thompson CSF CASTOR. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Thompson CSF CASTOR.")] + ThompsonCSFCASTOR = 34920, + + /// + /// Thompson CSF Castor II. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Thompson CSF Castor II.")] + ThompsonCSFCastorII = 34965, + + /// + /// Thompson CSF DRBC 32A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Thompson CSF DRBC 32A.")] + ThompsonCSFDRBC32A = 35010, + + /// + /// Thompson CSF DRBJ 11 D/E. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Thompson CSF DRBJ 11 D/E.")] + ThompsonCSFDRBJ11DE = 35055, + + /// + /// Thompson CSF DRBV 15A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Thompson CSF DRBV 15A.")] + ThompsonCSFDRBV15A = 35100, + + /// + /// Thompson CSF DRBV 15C. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Thompson CSF DRBV 15C.")] + ThompsonCSFDRBV15C = 35145, + + /// + /// Thompson CSF DRBV 22D. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Thompson CSF DRBV 22D.")] + ThompsonCSFDRBV22D = 35190, + + /// + /// Thompson CSF DRBV 23B. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Thompson CSF DRBV 23B.")] + ThompsonCSFDRBV23B = 35235, + + /// + /// Thompson CSF DRUA 33. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Thompson CSF DRUA 33.")] + ThompsonCSFDRUA33 = 35280, + + /// + /// Thompson CSF Mars DRBV 21A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Thompson CSF Mars DRBV 21A.")] + ThompsonCSFMarsDRBV21A = 35325, + + /// + /// Thompson CSF Sea Tiger. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Thompson CSF Sea Tiger.")] + ThompsonCSFSeaTiger = 35370, + + /// + /// Thompson CSF Triton. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Thompson CSF Triton.")] + ThompsonCSFTriton = 35415, + + /// + /// Thompson CSF Vega with DRBC 32E. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Thompson CSF Vega with DRBC 32E.")] + ThompsonCSFVegaWithDRBC32E = 35460, + + /// + /// TIGER-G. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TIGER-G.")] + TIGERG = 35480, + + /// + /// TIGER-S. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TIGER-S.")] + TIGERS = 35490, + + /// + /// Tie Rods. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tie Rods.")] + TieRods = 35505, + + /// + /// Tin Shield. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tin Shield.")] + TinShield = 35550, + + /// + /// Tin Trap. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tin Trap.")] + TinTrap = 35570, + + /// + /// TIRSPONDER. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TIRSPONDER.")] + TIRSPONDER = 35580, + + /// + /// Toad Stool 1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Toad Stool 1.")] + ToadStool1 = 35595, + + /// + /// Toad Stool 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Toad Stool 2.")] + ToadStool2 = 35640, + + /// + /// Toad Stool 3. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Toad Stool 3.")] + ToadStool3 = 35685, + + /// + /// Toad Stool 4. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Toad Stool 4.")] + ToadStool4 = 35730, + + /// + /// Toad Stool 5. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Toad Stool 5.")] + ToadStool5 = 35775, + + /// + /// Tomb Stone. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tomb Stone.")] + TombStone = 35800, + + /// + /// Top Bow. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Top Bow.")] + TopBow = 35820, + + /// + /// Top Dome. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Top Dome.")] + TopDome = 35865, + + /// + /// Top Knot. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Top Knot.")] + TopKnot = 35910, + + /// + /// Top Mesh. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Top Mesh.")] + TopMesh = 35955, + + /// + /// Top Pair. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Top Pair.")] + TopPair = 36000, + + /// + /// Top Plate. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Top Plate.")] + TopPlate = 36045, + + /// + /// Top Sail. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Top Sail.")] + TopSail = 36090, + + /// + /// Top Steer. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Top Steer.")] + TopSteer = 36135, + + /// + /// Top Trough. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Top Trough.")] + TopTrough = 36180, + + /// + /// Scrum Half TA. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Scrum Half TA.")] + ScrumHalfTA = 36220, + + /// + /// Tor. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tor.")] + Tor = 36225, + + /// + /// Scrum Half MG. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Scrum Half MG.")] + ScrumHalfMG = 36230, + + /// + /// Track Dish. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Track Dish.")] + TrackDish = 36270, + + /// + /// TORSO M. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TORSO M.")] + TORSOM = 36315, + + /// + /// Trap Door. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Trap Door.")] + TrapDoor = 36360, + + /// + /// TRISPONDE. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TRISPONDE.")] + TRISPONDE = 36380, + + /// + /// TRS 3033. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TRS 3033.")] + TRS3033 = 36405, + + /// + /// TRS 3405. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TRS 3405.")] + TRS3405 = 36420, + + /// + /// TRS 3410. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TRS 3410.")] + TRS3410 = 36425, + + /// + /// TRS 3415. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TRS 3415.")] + TRS3415 = 36430, + + /// + /// TRS-N. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TRS-N.")] + TRSN = 36450, + + /// + /// TSE 5000. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TSE 5000.")] + TSE5000 = 36495, + + /// + /// TSR 333. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TSR 333.")] + TSR333 = 36540, + + /// + /// Tube Arm. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tube Arm.")] + TubeArm = 36585, + + /// + /// Twin Eyes. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Twin Eyes.")] + TwinEyes = 36630, + + /// + /// Twin Pill. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Twin Pill.")] + TwinPill = 36675, + + /// + /// Twin Scan. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Twin Scan.")] + TwinScan = 36720, + + /// + /// Twin Scan Ro. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Twin Scan Ro.")] + TwinScanRo = 36765, + + /// + /// Two Spot. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Two Spot.")] + TwoSpot = 36810, + + /// + /// TYPE 262. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TYPE 262.")] + TYPE262 = 36855, + + /// + /// TYPE 275. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TYPE 275.")] + TYPE275 = 36900, + + /// + /// TYPE 293. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TYPE 293.")] + TYPE293 = 36945, + + /// + /// TYPE 343 SUN VISOR B. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TYPE 343 SUN VISOR B.")] + TYPE343SUNVISORB = 36990, + + /// + /// TYPE 347B. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TYPE 347B.")] + TYPE347B = 37035, + + /// + /// Type-404A(CH). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Type-404A(CH).")] + Type404ACH = 37050, + + /// + /// Type 756. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Type 756.")] + Type756 = 37080, + + /// + /// TYPE 903. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TYPE 903.")] + TYPE903 = 37125, + + /// + /// TYPE 909 TI. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TYPE 909 TI.")] + TYPE909TI = 37170, + + /// + /// TYPE 909 TT. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TYPE 909 TT.")] + TYPE909TT = 37215, + + /// + /// TYPE 910. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TYPE 910.")] + TYPE910 = 37260, + + /// + /// TYPE-931(CH). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TYPE-931(CH).")] + TYPE931CH = 37265, + + /// + /// TYPE 965. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TYPE 965.")] + TYPE965 = 37305, + + /// + /// TYPE 967. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TYPE 967.")] + TYPE967 = 37350, + + /// + /// TYPE 968. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TYPE 968.")] + TYPE968 = 37395, + + /// + /// TYPE 974. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TYPE 974.")] + TYPE974 = 37440, + + /// + /// TYPE 975. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TYPE 975.")] + TYPE975 = 37485, + + /// + /// TYPE 978. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TYPE 978.")] + TYPE978 = 37530, + + /// + /// TYPE 992. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TYPE 992.")] + TYPE992 = 37575, + + /// + /// TYPE 993. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TYPE 993.")] + TYPE993 = 37620, + + /// + /// TYPE 994. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TYPE 994.")] + TYPE994 = 37665, + + /// + /// TYPE 1006(1). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TYPE 1006(1).")] + TYPE10061 = 37710, + + /// + /// TYPE 1006(2). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TYPE 1006(2).")] + TYPE10062 = 37755, + + /// + /// TYPE 1022. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TYPE 1022.")] + TYPE1022 = 37800, + + /// + /// UK MK 10. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("UK MK 10.")] + UKMK10 = 37845, + + /// + /// UPS-220C. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("UPS-220C.")] + UPS220C = 37850, + + /// + /// UPX 1 10. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("UPX 1 10.")] + UPX110 = 37890, + + /// + /// UPX 27. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("UPX 27.")] + UPX27 = 37935, + + /// + /// URN 20. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("URN 20.")] + URN20 = 37980, + + /// + /// URN 25. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("URN 25.")] + URN25 = 38025, + + /// + /// VOLEX III/IV. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("VOLEX III/IV.")] + VOLEXIIIIV = 38045, + + /// + /// W8818. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("W8818.")] + W8818 = 38070, + + /// + /// W8838. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("W8838.")] + W8838 = 38115, + + /// + /// W8852. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("W8852.")] + W8852 = 38120, + + /// + /// WAS-74S. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("WAS-74S.")] + WAS74S = 38160, + + /// + /// Wasp Head. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Wasp Head.")] + WaspHead = 38205, + + /// + /// WATCHDOG. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("WATCHDOG.")] + WATCHDOG = 38210, + + /// + /// Watch Guard. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Watch Guard.")] + WatchGuard = 38250, + + /// + /// Watchman. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Watchman.")] + Watchman = 38260, + + /// + /// Western Electric MK 10. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Western Electric MK 10.")] + WesternElectricMK10 = 38295, + + /// + /// Westinghouse ADR-4 LRSR. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Westinghouse ADR-4 LRSR.")] + WestinghouseADR4LRSR = 38320, + + /// + /// Westinghouse Electric SPG 50. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Westinghouse Electric SPG 50.")] + WestinghouseElectricSPG50 = 38340, + + /// + /// Westinghouse Electric W 120. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Westinghouse Electric W 120.")] + WestinghouseElectricW120 = 38385, + + /// + /// Westinghouse SPS 29C. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Westinghouse SPS 29C.")] + WestinghouseSPS29C = 38430, + + /// + /// Westinghouse SPS 37. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Westinghouse SPS 37.")] + WestinghouseSPS37 = 38475, + + /// + /// Wet Eye. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Wet Eye.")] + WetEye = 38520, + + /// + /// Wet Eye Mod. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Wet Eye Mod.")] + WetEyeMod = 38565, + + /// + /// WGU-41/B. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("WGU-41/B.")] + WGU41B = 38570, + + /// + /// WGU-44/B. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("WGU-44/B.")] + WGU44B = 38572, + + /// + /// Whiff. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Whiff.")] + Whiff = 38610, + + /// + /// Whiff Brick. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Whiff Brick.")] + WhiffBrick = 38655, + + /// + /// Whiff Fire. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Whiff Fire.")] + WhiffFire = 38700, + + /// + /// WHITE HOUSE. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("WHITE HOUSE.")] + WHITEHOUSE = 38715, + + /// + /// Wild Card. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Wild Card.")] + WildCard = 38745, + + /// + /// Witch Eight. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Witch Eight.")] + WitchEight = 38790, + + /// + /// Witch Five. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Witch Five.")] + WitchFive = 38835, + + /// + /// WM2X Series. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("WM2X Series.")] + WM2XSeries = 38880, + + /// + /// WM2X Series CAS. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("WM2X Series CAS.")] + WM2XSeriesCAS = 38925, + + /// + /// WSR-74C. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("WSR-74C.")] + WSR74C = 38950, + + /// + /// WSR-74S. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("WSR-74S.")] + WSR74S = 38955, + + /// + /// Wood Gage. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Wood Gage.")] + WoodGage = 38970, + + /// + /// Yard Rake. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Yard Rake.")] + YardRake = 39015, + + /// + /// Yew Loop. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Yew Loop.")] + YewLoop = 39060, + + /// + /// Yo-Yo. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Yo-Yo.")] + YoYo = 39105 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/EmissionBeamFunction.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission/EmissionBeamFunction.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/EmissionBeamFunction.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission/EmissionBeamFunction.cs index e01015a..eb775a6 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/EmissionBeamFunction.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission/EmissionBeamFunction.cs @@ -1,209 +1,209 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission -{ - /// - /// Enumeration values for EmissionBeamFunction (der.emission.beamfunction, Beam Function, - /// section 8.1.4) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum EmissionBeamFunction : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Search. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Search.")] - Search = 1, - - /// - /// Height finder. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Height finder.")] - HeightFinder = 2, - - /// - /// Acquisition. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Acquisition.")] - Acquisition = 3, - - /// - /// Tracking. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tracking.")] - Tracking = 4, - - /// - /// Acquisition and tracking. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Acquisition and tracking.")] - AcquisitionAndTracking = 5, - - /// - /// Command guidance. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Command guidance.")] - CommandGuidance = 6, - - /// - /// Illumination. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Illumination.")] - Illumination = 7, - - /// - /// Range only radar. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Range only radar.")] - RangeOnlyRadar = 8, - - /// - /// Missile beacon. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Missile beacon.")] - MissileBeacon = 9, - - /// - /// Missile fuze. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Missile fuze.")] - MissileFuze = 10, - - /// - /// Active radar missile seeker. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Active radar missile seeker.")] - ActiveRadarMissileSeeker = 11, - - /// - /// Jammer. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Jammer.")] - Jammer = 12, - - /// - /// IFF. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("IFF.")] - IFF = 13, - - /// - /// Navigational / Weather. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Navigational / Weather.")] - NavigationalWeather = 14, - - /// - /// Meteorological. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Meteorological.")] - Meteorological = 15, - - /// - /// Data transmission. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Data transmission.")] - DataTransmission = 16, - - /// - /// Navigational directional beacon. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Navigational directional beacon.")] - NavigationalDirectionalBeacon = 17 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission +{ + /// + /// Enumeration values for EmissionBeamFunction (der.emission.beamfunction, Beam Function, + /// section 8.1.4) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum EmissionBeamFunction : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Search. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Search.")] + Search = 1, + + /// + /// Height finder. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Height finder.")] + HeightFinder = 2, + + /// + /// Acquisition. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Acquisition.")] + Acquisition = 3, + + /// + /// Tracking. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tracking.")] + Tracking = 4, + + /// + /// Acquisition and tracking. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Acquisition and tracking.")] + AcquisitionAndTracking = 5, + + /// + /// Command guidance. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Command guidance.")] + CommandGuidance = 6, + + /// + /// Illumination. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Illumination.")] + Illumination = 7, + + /// + /// Range only radar. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Range only radar.")] + RangeOnlyRadar = 8, + + /// + /// Missile beacon. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Missile beacon.")] + MissileBeacon = 9, + + /// + /// Missile fuze. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Missile fuze.")] + MissileFuze = 10, + + /// + /// Active radar missile seeker. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Active radar missile seeker.")] + ActiveRadarMissileSeeker = 11, + + /// + /// Jammer. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Jammer.")] + Jammer = 12, + + /// + /// IFF. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("IFF.")] + IFF = 13, + + /// + /// Navigational / Weather. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Navigational / Weather.")] + NavigationalWeather = 14, + + /// + /// Meteorological. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Meteorological.")] + Meteorological = 15, + + /// + /// Data transmission. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Data transmission.")] + DataTransmission = 16, + + /// + /// Navigational directional beacon. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Navigational directional beacon.")] + NavigationalDirectionalBeacon = 17 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/EmissionFunction.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission/EmissionFunction.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/EmissionFunction.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission/EmissionFunction.cs index e4587cf..23eff3c 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/EmissionFunction.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission/EmissionFunction.cs @@ -1,709 +1,709 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission -{ - /// - /// Enumeration values for EmissionFunction (der.emission.function, Function, - /// section 8.1.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum EmissionFunction : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Multi-function. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Multi-function.")] - MultiFunction = 1, - - /// - /// Early Warning/Surveillance. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Early Warning/Surveillance.")] - EarlyWarningSurveillance = 2, - - /// - /// Height Finding. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Height Finding.")] - HeightFinding = 3, - - /// - /// Fire Control. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fire Control.")] - FireControl = 4, - - /// - /// Acquisition/Detection. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Acquisition/Detection.")] - AcquisitionDetection = 5, - - /// - /// Tracking. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tracking.")] - Tracking = 6, - - /// - /// Guidance/Illumination. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Guidance/Illumination.")] - GuidanceIllumination = 7, - - /// - /// Firing point/launch point location. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Firing point/launch point location.")] - FiringPointLaunchPointLocation = 8, - - /// - /// Ranging. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ranging.")] - Ranging = 9, - - /// - /// Radar Altimeter. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Radar Altimeter.")] - RadarAltimeter = 10, - - /// - /// Imaging. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Imaging.")] - Imaging = 11, - - /// - /// Motion Detection. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Motion Detection.")] - MotionDetection = 12, - - /// - /// Navigation. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Navigation.")] - Navigation = 13, - - /// - /// Weather / Meterological. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Weather / Meterological.")] - WeatherMeterological = 14, - - /// - /// Instrumentation. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Instrumentation.")] - Instrumentation = 15, - - /// - /// Identification/Classification (including IFF). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Identification/Classification (including IFF).")] - IdentificationClassificationIncludingIFF = 16, - - /// - /// AAA (Anti-Aircraft Artillery) Fire Control. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AAA (Anti-Aircraft Artillery) Fire Control.")] - AAAAntiAircraftArtilleryFireControl = 17, - - /// - /// Air Search/Bomb. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Air Search/Bomb.")] - AirSearchBomb = 18, - - /// - /// Air Intercept. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Air Intercept.")] - AirIntercept = 19, - - /// - /// Altimeter. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Altimeter.")] - Altimeter = 20, - - /// - /// Air Mapping. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Air Mapping.")] - AirMapping = 21, - - /// - /// Air Traffic Control. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Air Traffic Control.")] - AirTrafficControl = 22, - - /// - /// Beacon. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Beacon.")] - Beacon = 23, - - /// - /// Battlefield Surveillance. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Battlefield Surveillance.")] - BattlefieldSurveillance = 24, - - /// - /// Ground Control Approach. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ground Control Approach.")] - GroundControlApproach = 25, - - /// - /// Ground Control Intercept. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ground Control Intercept.")] - GroundControlIntercept = 26, - - /// - /// Coastal Surveillance. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Coastal Surveillance.")] - CoastalSurveillance = 27, - - /// - /// Decoy/Mimic. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Decoy/Mimic.")] - DecoyMimic = 28, - - /// - /// Data Transmission. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Data Transmission.")] - DataTransmission = 29, - - /// - /// Earth Surveillance. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Earth Surveillance.")] - EarthSurveillance = 30, - - /// - /// Gun Lay Beacon. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Gun Lay Beacon.")] - GunLayBeacon = 31, - - /// - /// Ground Mapping. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ground Mapping.")] - GroundMapping = 32, - - /// - /// Harbor Surveillance. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Harbor Surveillance.")] - HarborSurveillance = 33, - - /// - /// ILS (Instrument Landing System). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ILS (Instrument Landing System).")] - ILSInstrumentLandingSystem = 35, - - /// - /// Ionospheric Sound. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ionospheric Sound.")] - IonosphericSound = 36, - - /// - /// Interrogator. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Interrogator.")] - Interrogator = 37, - - /// - /// Barrage Jamming. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Barrage Jamming.")] - BarrageJamming = 38, - - /// - /// Click Jamming. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Click Jamming.")] - ClickJamming = 39, - - /// - /// Frequency Swept Jamming. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Frequency Swept Jamming.")] - FrequencySweptJamming = 41, - - /// - /// Jamming. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Jamming.")] - Jamming = 42, - - /// - /// Pulsed Jamming. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Pulsed Jamming.")] - PulsedJamming = 44, - - /// - /// Repeater Jamming. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Repeater Jamming.")] - RepeaterJamming = 45, - - /// - /// Spot Noise Jamming. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Spot Noise Jamming.")] - SpotNoiseJamming = 46, - - /// - /// Missile Acquisition. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Missile Acquisition.")] - MissileAcquisition = 47, - - /// - /// Missile Downlink. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Missile Downlink.")] - MissileDownlink = 48, - - /// - /// Space. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Space.")] - Space = 50, - - /// - /// Surface Search. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Surface Search.")] - SurfaceSearch = 51, - - /// - /// Shell Tracking. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Shell Tracking.")] - ShellTracking = 52, - - /// - /// Television. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Television.")] - Television = 56, - - /// - /// Unknown. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Unknown.")] - Unknown = 57, - - /// - /// Video Remoting. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Video Remoting.")] - VideoRemoting = 58, - - /// - /// Experimental or Training. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Experimental or Training.")] - ExperimentalOrTraining = 59, - - /// - /// Missile Guidance. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Missile Guidance.")] - MissileGuidance = 60, - - /// - /// Missile Homing. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Missile Homing.")] - MissileHoming = 61, - - /// - /// Missile Tracking. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Missile Tracking.")] - MissileTracking = 62, - - /// - /// Jamming, noise. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Jamming, noise.")] - JammingNoise = 64, - - /// - /// Jamming, deception. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Jamming, deception.")] - JammingDeception = 65, - - /// - /// Navigation/Distance Measuring Equipment. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Navigation/Distance Measuring Equipment.")] - NavigationDistanceMeasuringEquipment = 71, - - /// - /// Terrain Following. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Terrain Following.")] - TerrainFollowing = 72, - - /// - /// Weather Avoidance. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Weather Avoidance.")] - WeatherAvoidance = 73, - - /// - /// Proximity Fuse. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Proximity Fuse.")] - ProximityFuse = 74, - - /// - /// Radiosonde. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Radiosonde.")] - Radiosonde = 76, - - /// - /// Sonobuoy. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sonobuoy.")] - Sonobuoy = 77, - - /// - /// Bathythermal Sensor. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Bathythermal Sensor.")] - BathythermalSensor = 78, - - /// - /// Towed Counter Measure. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Towed Counter Measure.")] - TowedCounterMeasure = 79, - - /// - /// Weapon, non-lethal. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Weapon, non-lethal.")] - WeaponNonLethal = 96, - - /// - /// Weapon, lethal. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Weapon, lethal.")] - WeaponLethal = 97 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission +{ + /// + /// Enumeration values for EmissionFunction (der.emission.function, Function, + /// section 8.1.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum EmissionFunction : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Multi-function. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Multi-function.")] + MultiFunction = 1, + + /// + /// Early Warning/Surveillance. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Early Warning/Surveillance.")] + EarlyWarningSurveillance = 2, + + /// + /// Height Finding. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Height Finding.")] + HeightFinding = 3, + + /// + /// Fire Control. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fire Control.")] + FireControl = 4, + + /// + /// Acquisition/Detection. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Acquisition/Detection.")] + AcquisitionDetection = 5, + + /// + /// Tracking. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tracking.")] + Tracking = 6, + + /// + /// Guidance/Illumination. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Guidance/Illumination.")] + GuidanceIllumination = 7, + + /// + /// Firing point/launch point location. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Firing point/launch point location.")] + FiringPointLaunchPointLocation = 8, + + /// + /// Ranging. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ranging.")] + Ranging = 9, + + /// + /// Radar Altimeter. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Radar Altimeter.")] + RadarAltimeter = 10, + + /// + /// Imaging. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Imaging.")] + Imaging = 11, + + /// + /// Motion Detection. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Motion Detection.")] + MotionDetection = 12, + + /// + /// Navigation. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Navigation.")] + Navigation = 13, + + /// + /// Weather / Meterological. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Weather / Meterological.")] + WeatherMeterological = 14, + + /// + /// Instrumentation. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Instrumentation.")] + Instrumentation = 15, + + /// + /// Identification/Classification (including IFF). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Identification/Classification (including IFF).")] + IdentificationClassificationIncludingIFF = 16, + + /// + /// AAA (Anti-Aircraft Artillery) Fire Control. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AAA (Anti-Aircraft Artillery) Fire Control.")] + AAAAntiAircraftArtilleryFireControl = 17, + + /// + /// Air Search/Bomb. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Air Search/Bomb.")] + AirSearchBomb = 18, + + /// + /// Air Intercept. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Air Intercept.")] + AirIntercept = 19, + + /// + /// Altimeter. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Altimeter.")] + Altimeter = 20, + + /// + /// Air Mapping. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Air Mapping.")] + AirMapping = 21, + + /// + /// Air Traffic Control. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Air Traffic Control.")] + AirTrafficControl = 22, + + /// + /// Beacon. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Beacon.")] + Beacon = 23, + + /// + /// Battlefield Surveillance. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Battlefield Surveillance.")] + BattlefieldSurveillance = 24, + + /// + /// Ground Control Approach. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ground Control Approach.")] + GroundControlApproach = 25, + + /// + /// Ground Control Intercept. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ground Control Intercept.")] + GroundControlIntercept = 26, + + /// + /// Coastal Surveillance. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Coastal Surveillance.")] + CoastalSurveillance = 27, + + /// + /// Decoy/Mimic. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Decoy/Mimic.")] + DecoyMimic = 28, + + /// + /// Data Transmission. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Data Transmission.")] + DataTransmission = 29, + + /// + /// Earth Surveillance. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Earth Surveillance.")] + EarthSurveillance = 30, + + /// + /// Gun Lay Beacon. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Gun Lay Beacon.")] + GunLayBeacon = 31, + + /// + /// Ground Mapping. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ground Mapping.")] + GroundMapping = 32, + + /// + /// Harbor Surveillance. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Harbor Surveillance.")] + HarborSurveillance = 33, + + /// + /// ILS (Instrument Landing System). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ILS (Instrument Landing System).")] + ILSInstrumentLandingSystem = 35, + + /// + /// Ionospheric Sound. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ionospheric Sound.")] + IonosphericSound = 36, + + /// + /// Interrogator. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Interrogator.")] + Interrogator = 37, + + /// + /// Barrage Jamming. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Barrage Jamming.")] + BarrageJamming = 38, + + /// + /// Click Jamming. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Click Jamming.")] + ClickJamming = 39, + + /// + /// Frequency Swept Jamming. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Frequency Swept Jamming.")] + FrequencySweptJamming = 41, + + /// + /// Jamming. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Jamming.")] + Jamming = 42, + + /// + /// Pulsed Jamming. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Pulsed Jamming.")] + PulsedJamming = 44, + + /// + /// Repeater Jamming. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Repeater Jamming.")] + RepeaterJamming = 45, + + /// + /// Spot Noise Jamming. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Spot Noise Jamming.")] + SpotNoiseJamming = 46, + + /// + /// Missile Acquisition. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Missile Acquisition.")] + MissileAcquisition = 47, + + /// + /// Missile Downlink. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Missile Downlink.")] + MissileDownlink = 48, + + /// + /// Space. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Space.")] + Space = 50, + + /// + /// Surface Search. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Surface Search.")] + SurfaceSearch = 51, + + /// + /// Shell Tracking. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Shell Tracking.")] + ShellTracking = 52, + + /// + /// Television. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Television.")] + Television = 56, + + /// + /// Unknown. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Unknown.")] + Unknown = 57, + + /// + /// Video Remoting. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Video Remoting.")] + VideoRemoting = 58, + + /// + /// Experimental or Training. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Experimental or Training.")] + ExperimentalOrTraining = 59, + + /// + /// Missile Guidance. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Missile Guidance.")] + MissileGuidance = 60, + + /// + /// Missile Homing. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Missile Homing.")] + MissileHoming = 61, + + /// + /// Missile Tracking. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Missile Tracking.")] + MissileTracking = 62, + + /// + /// Jamming, noise. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Jamming, noise.")] + JammingNoise = 64, + + /// + /// Jamming, deception. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Jamming, deception.")] + JammingDeception = 65, + + /// + /// Navigation/Distance Measuring Equipment. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Navigation/Distance Measuring Equipment.")] + NavigationDistanceMeasuringEquipment = 71, + + /// + /// Terrain Following. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Terrain Following.")] + TerrainFollowing = 72, + + /// + /// Weather Avoidance. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Weather Avoidance.")] + WeatherAvoidance = 73, + + /// + /// Proximity Fuse. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Proximity Fuse.")] + ProximityFuse = 74, + + /// + /// Radiosonde. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Radiosonde.")] + Radiosonde = 76, + + /// + /// Sonobuoy. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sonobuoy.")] + Sonobuoy = 77, + + /// + /// Bathythermal Sensor. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Bathythermal Sensor.")] + BathythermalSensor = 78, + + /// + /// Towed Counter Measure. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Towed Counter Measure.")] + TowedCounterMeasure = 79, + + /// + /// Weapon, non-lethal. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Weapon, non-lethal.")] + WeaponNonLethal = 96, + + /// + /// Weapon, lethal. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Weapon, lethal.")] + WeaponLethal = 97 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/HelicopterEnginePower.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission/HelicopterEnginePower.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/HelicopterEnginePower.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission/HelicopterEnginePower.cs index 27dec51..d484997 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/HelicopterEnginePower.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission/HelicopterEnginePower.cs @@ -1,59 +1,59 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission -{ - /// - /// Enumeration values for HelicopterEnginePower (der.sees.power.helicopters, Helicopters, - /// section 8.5.1.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum HelicopterEnginePower : int - { - /// - /// Engine Off. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Engine Off.")] - EngineOff = -100, - - /// - /// Idle Power. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Idle Power.")] - IdlePower = 0, - - /// - /// Max. Power. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Max. Power.")] - MaxPower = 100 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission +{ + /// + /// Enumeration values for HelicopterEnginePower (der.sees.power.helicopters, Helicopters, + /// section 8.5.1.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum HelicopterEnginePower : int + { + /// + /// Engine Off. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Engine Off.")] + EngineOff = -100, + + /// + /// Idle Power. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Idle Power.")] + IdlePower = 0, + + /// + /// Max. Power. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Max. Power.")] + MaxPower = 100 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/HighDensityTrackOrJam.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission/HighDensityTrackOrJam.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/HighDensityTrackOrJam.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission/HighDensityTrackOrJam.cs index 9c9ad29..b4caa22 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/HighDensityTrackOrJam.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission/HighDensityTrackOrJam.cs @@ -1,49 +1,49 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission -{ - /// - /// Enumeration values for HighDensityTrackOrJam (der.emission.hdtj, High Density Track/Jam, - /// section 8.1.5) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum HighDensityTrackOrJam : byte - { - /// - /// Not Selected. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Not Selected.")] - NotSelected = 0, - - /// - /// Selected. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Selected.")] - Selected = 1 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission +{ + /// + /// Enumeration values for HighDensityTrackOrJam (der.emission.hdtj, High Density Track/Jam, + /// section 8.1.5) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum HighDensityTrackOrJam : byte + { + /// + /// Not Selected. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Not Selected.")] + NotSelected = 0, + + /// + /// Selected. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Selected.")] + Selected = 1 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/StateUpdateIndicator.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission/StateUpdateIndicator.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/StateUpdateIndicator.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission/StateUpdateIndicator.cs index 3585856..474dabf 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/StateUpdateIndicator.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission/StateUpdateIndicator.cs @@ -1,49 +1,49 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission -{ - /// - /// Enumeration values for StateUpdateIndicator (der.emission.stateupdate, State Update Indicator, - /// section 8.1.3) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum StateUpdateIndicator : byte - { - /// - /// State Update. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("State Update.")] - StateUpdate = 0, - - /// - /// Changed Data Update. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Changed Data Update.")] - ChangedDataUpdate = 1 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission +{ + /// + /// Enumeration values for StateUpdateIndicator (der.emission.stateupdate, State Update Indicator, + /// section 8.1.3) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum StateUpdateIndicator : byte + { + /// + /// State Update. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("State Update.")] + StateUpdate = 0, + + /// + /// Changed Data Update. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Changed Data Update.")] + ChangedDataUpdate = 1 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/TankEnginePower.cs b/Libs/CsharpDis6/Enumerations/DistributedEmission/TankEnginePower.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/TankEnginePower.cs rename to Libs/CsharpDis6/Enumerations/DistributedEmission/TankEnginePower.cs index 850a954..70f8645 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/DistributedEmission/TankEnginePower.cs +++ b/Libs/CsharpDis6/Enumerations/DistributedEmission/TankEnginePower.cs @@ -1,59 +1,59 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.DistributedEmission -{ - /// - /// Enumeration values for TankEnginePower (der.sees.power.tanks, Tanks, - /// section 8.5.1.3) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum TankEnginePower : int - { - /// - /// Engine Off. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Engine Off.")] - EngineOff = -100, - - /// - /// Idle Power. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Idle Power.")] - IdlePower = 0, - - /// - /// Max. Power. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Max. Power.")] - MaxPower = 100 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.DistributedEmission +{ + /// + /// Enumeration values for TankEnginePower (der.sees.power.tanks, Tanks, + /// section 8.5.1.3) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum TankEnginePower : int + { + /// + /// Engine Off. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Engine Off.")] + EngineOff = -100, + + /// + /// Idle Power. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Idle Power.")] + IdlePower = 0, + + /// + /// Max. Power. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Max. Power.")] + MaxPower = 100 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/Appearance.cs b/Libs/CsharpDis6/Enumerations/Entity.Information.Minefield/Appearance.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/Appearance.cs rename to Libs/CsharpDis6/Enumerations/Entity.Information.Minefield/Appearance.cs index 1f01a66..a753b7f 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/Appearance.cs +++ b/Libs/CsharpDis6/Enumerations/Entity.Information.Minefield/Appearance.cs @@ -1,373 +1,373 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Entity.Information.Minefield -{ - /// - /// Enumeration values for Appearance (entity.mine.appear, Appearance Bit Map, - /// section 10.2.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public struct Appearance - { - /// - /// Identifies the type of minefield - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Identifies the type of minefield")] - public enum MinefieldTypeValue : uint - { - /// - /// Mixed anti-personnel and anti-tank minefield - /// - MixedAntiPersonnelAndAntiTankMinefield = 0, - - /// - /// Pure anti-personnel minefield - /// - PureAntiPersonnelMinefield = 1, - - /// - /// Pure anti-tank minefield - /// - PureAntiTankMinefield = 2, - - /// - /// null - /// - Unknown = 3 - } - - /// - /// Identifies the active status of the minefield - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Identifies the active status of the minefield")] - public enum ActiveStatusValue : uint - { - /// - /// Active - /// - Active = 0, - - /// - /// Inactive - /// - Inactive = 1 - } - - /// - /// Identifies whether the minefield has an active lane - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Identifies whether the minefield has an active lane")] - public enum LaneValue : uint - { - /// - /// Minefield has active lane - /// - MinefieldHasActiveLane = 0, - - /// - /// Minefield has an inactive lane - /// - MinefieldHasAnInactiveLane = 1 - } - - /// - /// Describes the state of the minefield - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the state of the minefield")] - public enum StateValue : uint - { - /// - /// Active - /// - Active = 0, - - /// - /// Deactivated - /// - Deactivated = 1 - } - - private Appearance.MinefieldTypeValue minefieldType; - private Appearance.ActiveStatusValue activeStatus; - private Appearance.LaneValue lane; - private Appearance.StateValue state; - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(Appearance left, Appearance right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator ==(Appearance left, Appearance right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - // If parameters are null return false (cast to object to prevent recursive loop!) - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The scheme instance. - /// The result of the conversion. - public static explicit operator ushort(Appearance obj) - { - return obj.ToUInt16(); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The ushort value. - /// The result of the conversion. - public static explicit operator Appearance(ushort value) - { - return Appearance.FromUInt16(value); - } - - /// - /// Creates the instance from the byte array. - /// - /// The array which holds the values for the . - /// The starting position within value. - /// The instance, represented by a byte array. - /// if the array is null. - /// if the index is lower than 0 or greater or equal than number of elements in array. - public static Appearance FromByteArray(byte[] array, int index) - { - if (array == null) - { - throw new ArgumentNullException("array"); - } - - if (index < 0 || - index > array.Length - 1 || - index + 2 > array.Length - 1) - { - throw new IndexOutOfRangeException(); - } - - return FromUInt16(BitConverter.ToUInt16(array, index)); - } - - /// - /// Creates the instance from the ushort value. - /// - /// The ushort value which represents the instance. - /// The instance, represented by the ushort value. - public static Appearance FromUInt16(ushort value) - { - Appearance ps = new Appearance(); - - uint mask0 = 0x0003; - byte shift0 = 0; - uint newValue0 = (value & mask0) >> shift0; - ps.MinefieldType = (Appearance.MinefieldTypeValue)newValue0; - - uint mask1 = 0x0004; - byte shift1 = 2; - uint newValue1 = (value & mask1) >> shift1; - ps.ActiveStatus = (Appearance.ActiveStatusValue)newValue1; - - uint mask2 = 0x0008; - byte shift2 = 3; - uint newValue2 = (value & mask2) >> shift2; - ps.Lane = (Appearance.LaneValue)newValue2; - - uint mask4 = 0x2000; - byte shift4 = 13; - uint newValue4 = (value & mask4) >> shift4; - ps.State = (Appearance.StateValue)newValue4; - - return ps; - } - - /// - /// Gets or sets the minefieldtype. - /// - /// The minefieldtype. - public Appearance.MinefieldTypeValue MinefieldType - { - get { return this.minefieldType; } - set { this.minefieldType = value; } - } - - /// - /// Gets or sets the activestatus. - /// - /// The activestatus. - public Appearance.ActiveStatusValue ActiveStatus - { - get { return this.activeStatus; } - set { this.activeStatus = value; } - } - - /// - /// Gets or sets the lane. - /// - /// The lane. - public Appearance.LaneValue Lane - { - get { return this.lane; } - set { this.lane = value; } - } - - /// - /// Gets or sets the state. - /// - /// The state. - public Appearance.StateValue State - { - get { return this.state; } - set { this.state = value; } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - if (obj == null) - { - return false; - } - - if (!(obj is Appearance)) - { - return false; - } - - return this.Equals((Appearance)obj); - } - - /// - /// Determines whether the specified instance is equal to this instance. - /// - /// The instance to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public bool Equals(Appearance other) - { - // If parameter is null return false (cast to object to prevent recursive loop!) - if ((object)other == null) - { - return false; - } - - return - this.MinefieldType == other.MinefieldType && - this.ActiveStatus == other.ActiveStatus && - this.Lane == other.Lane && - this.State == other.State; - } - - /// - /// Converts the instance of to the byte array. - /// - /// The byte array representing the current instance. - public byte[] ToByteArray() - { - return BitConverter.GetBytes(this.ToUInt16()); - } - - /// - /// Converts the instance of to the ushort value. - /// - /// The ushort value representing the current instance. - public ushort ToUInt16() - { - ushort val = 0; - - val |= (ushort)((uint)this.MinefieldType << 0); - val |= (ushort)((uint)this.ActiveStatus << 2); - val |= (ushort)((uint)this.Lane << 3); - val |= (ushort)((uint)this.State << 13); - - return val; - } - - /// - /// Returns a hash code for this instance. - /// - /// - /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - /// - public override int GetHashCode() - { - int hash = 17; - - // Overflow is fine, just wrap - unchecked - { - hash = (hash * 29) + this.MinefieldType.GetHashCode(); - hash = (hash * 29) + this.ActiveStatus.GetHashCode(); - hash = (hash * 29) + this.Lane.GetHashCode(); - hash = (hash * 29) + this.State.GetHashCode(); - } - - return hash; - } - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Entity.Information.Minefield +{ + /// + /// Enumeration values for Appearance (entity.mine.appear, Appearance Bit Map, + /// section 10.2.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public struct Appearance + { + /// + /// Identifies the type of minefield + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Identifies the type of minefield")] + public enum MinefieldTypeValue : uint + { + /// + /// Mixed anti-personnel and anti-tank minefield + /// + MixedAntiPersonnelAndAntiTankMinefield = 0, + + /// + /// Pure anti-personnel minefield + /// + PureAntiPersonnelMinefield = 1, + + /// + /// Pure anti-tank minefield + /// + PureAntiTankMinefield = 2, + + /// + /// null + /// + Unknown = 3 + } + + /// + /// Identifies the active status of the minefield + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Identifies the active status of the minefield")] + public enum ActiveStatusValue : uint + { + /// + /// Active + /// + Active = 0, + + /// + /// Inactive + /// + Inactive = 1 + } + + /// + /// Identifies whether the minefield has an active lane + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Identifies whether the minefield has an active lane")] + public enum LaneValue : uint + { + /// + /// Minefield has active lane + /// + MinefieldHasActiveLane = 0, + + /// + /// Minefield has an inactive lane + /// + MinefieldHasAnInactiveLane = 1 + } + + /// + /// Describes the state of the minefield + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the state of the minefield")] + public enum StateValue : uint + { + /// + /// Active + /// + Active = 0, + + /// + /// Deactivated + /// + Deactivated = 1 + } + + private Appearance.MinefieldTypeValue minefieldType; + private Appearance.ActiveStatusValue activeStatus; + private Appearance.LaneValue lane; + private Appearance.StateValue state; + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(Appearance left, Appearance right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator ==(Appearance left, Appearance right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + // If parameters are null return false (cast to object to prevent recursive loop!) + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The scheme instance. + /// The result of the conversion. + public static explicit operator ushort(Appearance obj) + { + return obj.ToUInt16(); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The ushort value. + /// The result of the conversion. + public static explicit operator Appearance(ushort value) + { + return Appearance.FromUInt16(value); + } + + /// + /// Creates the instance from the byte array. + /// + /// The array which holds the values for the . + /// The starting position within value. + /// The instance, represented by a byte array. + /// if the array is null. + /// if the index is lower than 0 or greater or equal than number of elements in array. + public static Appearance FromByteArray(byte[] array, int index) + { + if (array == null) + { + throw new ArgumentNullException("array"); + } + + if (index < 0 || + index > array.Length - 1 || + index + 2 > array.Length - 1) + { + throw new IndexOutOfRangeException(); + } + + return FromUInt16(BitConverter.ToUInt16(array, index)); + } + + /// + /// Creates the instance from the ushort value. + /// + /// The ushort value which represents the instance. + /// The instance, represented by the ushort value. + public static Appearance FromUInt16(ushort value) + { + Appearance ps = new Appearance(); + + uint mask0 = 0x0003; + byte shift0 = 0; + uint newValue0 = (value & mask0) >> shift0; + ps.MinefieldType = (Appearance.MinefieldTypeValue)newValue0; + + uint mask1 = 0x0004; + byte shift1 = 2; + uint newValue1 = (value & mask1) >> shift1; + ps.ActiveStatus = (Appearance.ActiveStatusValue)newValue1; + + uint mask2 = 0x0008; + byte shift2 = 3; + uint newValue2 = (value & mask2) >> shift2; + ps.Lane = (Appearance.LaneValue)newValue2; + + uint mask4 = 0x2000; + byte shift4 = 13; + uint newValue4 = (value & mask4) >> shift4; + ps.State = (Appearance.StateValue)newValue4; + + return ps; + } + + /// + /// Gets or sets the minefieldtype. + /// + /// The minefieldtype. + public Appearance.MinefieldTypeValue MinefieldType + { + get { return this.minefieldType; } + set { this.minefieldType = value; } + } + + /// + /// Gets or sets the activestatus. + /// + /// The activestatus. + public Appearance.ActiveStatusValue ActiveStatus + { + get { return this.activeStatus; } + set { this.activeStatus = value; } + } + + /// + /// Gets or sets the lane. + /// + /// The lane. + public Appearance.LaneValue Lane + { + get { return this.lane; } + set { this.lane = value; } + } + + /// + /// Gets or sets the state. + /// + /// The state. + public Appearance.StateValue State + { + get { return this.state; } + set { this.state = value; } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (!(obj is Appearance)) + { + return false; + } + + return this.Equals((Appearance)obj); + } + + /// + /// Determines whether the specified instance is equal to this instance. + /// + /// The instance to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public bool Equals(Appearance other) + { + // If parameter is null return false (cast to object to prevent recursive loop!) + if ((object)other == null) + { + return false; + } + + return + this.MinefieldType == other.MinefieldType && + this.ActiveStatus == other.ActiveStatus && + this.Lane == other.Lane && + this.State == other.State; + } + + /// + /// Converts the instance of to the byte array. + /// + /// The byte array representing the current instance. + public byte[] ToByteArray() + { + return BitConverter.GetBytes(this.ToUInt16()); + } + + /// + /// Converts the instance of to the ushort value. + /// + /// The ushort value representing the current instance. + public ushort ToUInt16() + { + ushort val = 0; + + val |= (ushort)((uint)this.MinefieldType << 0); + val |= (ushort)((uint)this.ActiveStatus << 2); + val |= (ushort)((uint)this.Lane << 3); + val |= (ushort)((uint)this.State << 13); + + return val; + } + + /// + /// Returns a hash code for this instance. + /// + /// + /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + /// + public override int GetHashCode() + { + int hash = 17; + + // Overflow is fine, just wrap + unchecked + { + hash = (hash * 29) + this.MinefieldType.GetHashCode(); + hash = (hash * 29) + this.ActiveStatus.GetHashCode(); + hash = (hash * 29) + this.Lane.GetHashCode(); + hash = (hash * 29) + this.State.GetHashCode(); + } + + return hash; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/DataFilter.cs b/Libs/CsharpDis6/Enumerations/Entity.Information.Minefield/DataFilter.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/DataFilter.cs rename to Libs/CsharpDis6/Enumerations/Entity.Information.Minefield/DataFilter.cs index befef51..5454726 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/DataFilter.cs +++ b/Libs/CsharpDis6/Enumerations/Entity.Information.Minefield/DataFilter.cs @@ -1,140 +1,140 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Entity.Information.Minefield -{ - /// - /// Enumeration values for DataFilter (entity.mine.datafilter, Data Filter, - /// section 10.2.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - [Flags] - public enum DataFilter : uint - { - /// - /// Set bit means 'Data is requested / present', reset bit means 'Data not requested / present'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Data is requested / present', reset bit means 'Data not requested / present'.")] - GroundBurialDepthOffset = 1, - - /// - /// Set bit means 'Data is requested / present', reset bit means 'Data not requested / present'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Data is requested / present', reset bit means 'Data not requested / present'.")] - WaterBurialDepthOffset = 2, - - /// - /// Set bit means 'Data is requested / present', reset bit means 'Data not requested / present'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Data is requested / present', reset bit means 'Data not requested / present'.")] - SnowBurialDepthOffset = 4, - - /// - /// Set bit means 'Data is requested / present', reset bit means 'Data not requested / present'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Data is requested / present', reset bit means 'Data not requested / present'.")] - MineOrientation = 8, - - /// - /// Set bit means 'Data is requested / present', reset bit means 'Data not requested / present'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Data is requested / present', reset bit means 'Data not requested / present'.")] - ThermalContrast = 16, - - /// - /// Set bit means 'Data is requested / present', reset bit means 'Data not requested / present'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Data is requested / present', reset bit means 'Data not requested / present'.")] - Reflectance = 32, - - /// - /// Set bit means 'Data is requested / present', reset bit means 'Data not requested / present'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Data is requested / present', reset bit means 'Data not requested / present'.")] - MineEmplacementAge = 64, - - /// - /// Set bit means 'Data is requested / present', reset bit means 'Data not requested / present'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Data is requested / present', reset bit means 'Data not requested / present'.")] - TripDetonationWire = 128, - - /// - /// Set bit means 'Data is requested / present', reset bit means 'Data not requested / present'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Data is requested / present', reset bit means 'Data not requested / present'.")] - Fusing = 256, - - /// - /// Set bit means 'Data is requested / present', reset bit means 'Data not requested / present'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Data is requested / present', reset bit means 'Data not requested / present'.")] - ScalarDetectionCoefficient = 512, - - /// - /// Set bit means 'Data is requested / present', reset bit means 'Data not requested / present'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Data is requested / present', reset bit means 'Data not requested / present'.")] - PaintScheme = 1024 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Entity.Information.Minefield +{ + /// + /// Enumeration values for DataFilter (entity.mine.datafilter, Data Filter, + /// section 10.2.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + [Flags] + public enum DataFilter : uint + { + /// + /// Set bit means 'Data is requested / present', reset bit means 'Data not requested / present'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Data is requested / present', reset bit means 'Data not requested / present'.")] + GroundBurialDepthOffset = 1, + + /// + /// Set bit means 'Data is requested / present', reset bit means 'Data not requested / present'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Data is requested / present', reset bit means 'Data not requested / present'.")] + WaterBurialDepthOffset = 2, + + /// + /// Set bit means 'Data is requested / present', reset bit means 'Data not requested / present'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Data is requested / present', reset bit means 'Data not requested / present'.")] + SnowBurialDepthOffset = 4, + + /// + /// Set bit means 'Data is requested / present', reset bit means 'Data not requested / present'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Data is requested / present', reset bit means 'Data not requested / present'.")] + MineOrientation = 8, + + /// + /// Set bit means 'Data is requested / present', reset bit means 'Data not requested / present'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Data is requested / present', reset bit means 'Data not requested / present'.")] + ThermalContrast = 16, + + /// + /// Set bit means 'Data is requested / present', reset bit means 'Data not requested / present'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Data is requested / present', reset bit means 'Data not requested / present'.")] + Reflectance = 32, + + /// + /// Set bit means 'Data is requested / present', reset bit means 'Data not requested / present'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Data is requested / present', reset bit means 'Data not requested / present'.")] + MineEmplacementAge = 64, + + /// + /// Set bit means 'Data is requested / present', reset bit means 'Data not requested / present'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Data is requested / present', reset bit means 'Data not requested / present'.")] + TripDetonationWire = 128, + + /// + /// Set bit means 'Data is requested / present', reset bit means 'Data not requested / present'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Data is requested / present', reset bit means 'Data not requested / present'.")] + Fusing = 256, + + /// + /// Set bit means 'Data is requested / present', reset bit means 'Data not requested / present'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Data is requested / present', reset bit means 'Data not requested / present'.")] + ScalarDetectionCoefficient = 512, + + /// + /// Set bit means 'Data is requested / present', reset bit means 'Data not requested / present'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Data is requested / present', reset bit means 'Data not requested / present'.")] + PaintScheme = 1024 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/FlirSensor.cs b/Libs/CsharpDis6/Enumerations/Entity.Information.Minefield/FlirSensor.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/FlirSensor.cs rename to Libs/CsharpDis6/Enumerations/Entity.Information.Minefield/FlirSensor.cs index 81ffe93..ab66640 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/FlirSensor.cs +++ b/Libs/CsharpDis6/Enumerations/Entity.Information.Minefield/FlirSensor.cs @@ -1,129 +1,129 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Entity.Information.Minefield -{ - /// - /// Enumeration values for FlirSensor (entity.mine.sensortype.2.subcat, FLIR, - /// section 10.2.4) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum FlirSensor : uint - { - /// - /// Generic 3-5. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Generic 3-5.")] - Generic35 = 0, - - /// - /// Generic 8-12. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Generic 8-12.")] - Generic812 = 1, - - /// - /// ASTAMIDS I. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ASTAMIDS I.")] - ASTAMIDSI = 2, - - /// - /// ASTAMIDS II. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ASTAMIDS II.")] - ASTAMIDSII = 3, - - /// - /// GSTAMIDS 3-5. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("GSTAMIDS 3-5.")] - GSTAMIDS35 = 4, - - /// - /// GSTAMIDS 8-12. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("GSTAMIDS 8-12.")] - GSTAMIDS812 = 5, - - /// - /// HSTAMIDS 3-5. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HSTAMIDS 3-5.")] - HSTAMIDS35 = 6, - - /// - /// HSTAMIDS 8-12. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HSTAMIDS 8-12.")] - HSTAMIDS812 = 7, - - /// - /// COBRA 3-5. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("COBRA 3-5.")] - COBRA35 = 8, - - /// - /// COBRA 8-12. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("COBRA 8-12.")] - COBRA812 = 9 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Entity.Information.Minefield +{ + /// + /// Enumeration values for FlirSensor (entity.mine.sensortype.2.subcat, FLIR, + /// section 10.2.4) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum FlirSensor : uint + { + /// + /// Generic 3-5. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Generic 3-5.")] + Generic35 = 0, + + /// + /// Generic 8-12. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Generic 8-12.")] + Generic812 = 1, + + /// + /// ASTAMIDS I. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ASTAMIDS I.")] + ASTAMIDSI = 2, + + /// + /// ASTAMIDS II. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ASTAMIDS II.")] + ASTAMIDSII = 3, + + /// + /// GSTAMIDS 3-5. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("GSTAMIDS 3-5.")] + GSTAMIDS35 = 4, + + /// + /// GSTAMIDS 8-12. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("GSTAMIDS 8-12.")] + GSTAMIDS812 = 5, + + /// + /// HSTAMIDS 3-5. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HSTAMIDS 3-5.")] + HSTAMIDS35 = 6, + + /// + /// HSTAMIDS 8-12. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HSTAMIDS 8-12.")] + HSTAMIDS812 = 7, + + /// + /// COBRA 3-5. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("COBRA 3-5.")] + COBRA35 = 8, + + /// + /// COBRA 8-12. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("COBRA 8-12.")] + COBRA812 = 9 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/Fusing.cs b/Libs/CsharpDis6/Enumerations/Entity.Information.Minefield/Fusing.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/Fusing.cs rename to Libs/CsharpDis6/Enumerations/Entity.Information.Minefield/Fusing.cs index 07d4873..89db952 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/Fusing.cs +++ b/Libs/CsharpDis6/Enumerations/Entity.Information.Minefield/Fusing.cs @@ -1,373 +1,373 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Entity.Information.Minefield -{ - /// - /// Enumeration values for Fusing (entity.mine.fusing, Fusing, - /// section 10.3.3) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public struct Fusing - { - /// - /// Identifies the type of the primary fuse - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Identifies the type of the primary fuse")] - public enum PrimaryValue : uint - { - /// - /// No Fuse - /// - NoFuse = 0, - - /// - /// Other - /// - Other = 1, - - /// - /// Pressure - /// - Pressure = 2, - - /// - /// Magnetic - /// - Magnetic = 3, - - /// - /// Tilt Rod - /// - TiltRod = 4, - - /// - /// Command - /// - Command = 5, - - /// - /// Trip Wire - /// - TripWire = 6 - } - - /// - /// Identifies the type of the secondary fuse - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Identifies the type of the secondary fuse")] - public enum SecondaryValue : uint - { - /// - /// No Fuse - /// - NoFuse = 0, - - /// - /// Other - /// - Other = 1, - - /// - /// Pressure - /// - Pressure = 2, - - /// - /// Magnetic - /// - Magnetic = 3, - - /// - /// Tilt Rod - /// - TiltRod = 4, - - /// - /// Command - /// - Command = 5, - - /// - /// Trip Wire - /// - TripWire = 6 - } - - /// - /// Describes the anti-handling device status of the mine - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the anti-handling device status of the mine")] - public enum AHDValue : uint - { - /// - /// No anti-handling device - /// - NoAntiHandlingDevice = 0, - - /// - /// Anti-handling device - /// - AntiHandlingDevice = 1 - } - - private Fusing.PrimaryValue primary; - private Fusing.SecondaryValue secondary; - private Fusing.AHDValue aHD; - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(Fusing left, Fusing right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator ==(Fusing left, Fusing right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - // If parameters are null return false (cast to object to prevent recursive loop!) - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The scheme instance. - /// The result of the conversion. - public static explicit operator ushort(Fusing obj) - { - return obj.ToUInt16(); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The ushort value. - /// The result of the conversion. - public static explicit operator Fusing(ushort value) - { - return Fusing.FromUInt16(value); - } - - /// - /// Creates the instance from the byte array. - /// - /// The array which holds the values for the . - /// The starting position within value. - /// The instance, represented by a byte array. - /// if the array is null. - /// if the index is lower than 0 or greater or equal than number of elements in array. - public static Fusing FromByteArray(byte[] array, int index) - { - if (array == null) - { - throw new ArgumentNullException("array"); - } - - if (index < 0 || - index > array.Length - 1 || - index + 2 > array.Length - 1) - { - throw new IndexOutOfRangeException(); - } - - return FromUInt16(BitConverter.ToUInt16(array, index)); - } - - /// - /// Creates the instance from the ushort value. - /// - /// The ushort value which represents the instance. - /// The instance, represented by the ushort value. - public static Fusing FromUInt16(ushort value) - { - Fusing ps = new Fusing(); - - uint mask0 = 0x007f; - byte shift0 = 0; - uint newValue0 = (value & mask0) >> shift0; - ps.Primary = (Fusing.PrimaryValue)newValue0; - - uint mask1 = 0x3f80; - byte shift1 = 7; - uint newValue1 = (value & mask1) >> shift1; - ps.Secondary = (Fusing.SecondaryValue)newValue1; - - uint mask2 = 0x0010; - byte shift2 = 4; - uint newValue2 = (value & mask2) >> shift2; - ps.AHD = (Fusing.AHDValue)newValue2; - - return ps; - } - - /// - /// Gets or sets the primary. - /// - /// The primary. - public Fusing.PrimaryValue Primary - { - get { return this.primary; } - set { this.primary = value; } - } - - /// - /// Gets or sets the secondary. - /// - /// The secondary. - public Fusing.SecondaryValue Secondary - { - get { return this.secondary; } - set { this.secondary = value; } - } - - /// - /// Gets or sets the ahd. - /// - /// The ahd. - public Fusing.AHDValue AHD - { - get { return this.aHD; } - set { this.aHD = value; } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - if (obj == null) - { - return false; - } - - if (!(obj is Fusing)) - { - return false; - } - - return this.Equals((Fusing)obj); - } - - /// - /// Determines whether the specified instance is equal to this instance. - /// - /// The instance to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public bool Equals(Fusing other) - { - // If parameter is null return false (cast to object to prevent recursive loop!) - if ((object)other == null) - { - return false; - } - - return - this.Primary == other.Primary && - this.Secondary == other.Secondary && - this.AHD == other.AHD; - } - - /// - /// Converts the instance of to the byte array. - /// - /// The byte array representing the current instance. - public byte[] ToByteArray() - { - return BitConverter.GetBytes(this.ToUInt16()); - } - - /// - /// Converts the instance of to the ushort value. - /// - /// The ushort value representing the current instance. - public ushort ToUInt16() - { - ushort val = 0; - - val |= (ushort)((uint)this.Primary << 0); - val |= (ushort)((uint)this.Secondary << 7); - val |= (ushort)((uint)this.AHD << 4); - - return val; - } - - /// - /// Returns a hash code for this instance. - /// - /// - /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - /// - public override int GetHashCode() - { - int hash = 17; - - // Overflow is fine, just wrap - unchecked - { - hash = (hash * 29) + this.Primary.GetHashCode(); - hash = (hash * 29) + this.Secondary.GetHashCode(); - hash = (hash * 29) + this.AHD.GetHashCode(); - } - - return hash; - } - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Entity.Information.Minefield +{ + /// + /// Enumeration values for Fusing (entity.mine.fusing, Fusing, + /// section 10.3.3) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public struct Fusing + { + /// + /// Identifies the type of the primary fuse + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Identifies the type of the primary fuse")] + public enum PrimaryValue : uint + { + /// + /// No Fuse + /// + NoFuse = 0, + + /// + /// Other + /// + Other = 1, + + /// + /// Pressure + /// + Pressure = 2, + + /// + /// Magnetic + /// + Magnetic = 3, + + /// + /// Tilt Rod + /// + TiltRod = 4, + + /// + /// Command + /// + Command = 5, + + /// + /// Trip Wire + /// + TripWire = 6 + } + + /// + /// Identifies the type of the secondary fuse + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Identifies the type of the secondary fuse")] + public enum SecondaryValue : uint + { + /// + /// No Fuse + /// + NoFuse = 0, + + /// + /// Other + /// + Other = 1, + + /// + /// Pressure + /// + Pressure = 2, + + /// + /// Magnetic + /// + Magnetic = 3, + + /// + /// Tilt Rod + /// + TiltRod = 4, + + /// + /// Command + /// + Command = 5, + + /// + /// Trip Wire + /// + TripWire = 6 + } + + /// + /// Describes the anti-handling device status of the mine + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the anti-handling device status of the mine")] + public enum AHDValue : uint + { + /// + /// No anti-handling device + /// + NoAntiHandlingDevice = 0, + + /// + /// Anti-handling device + /// + AntiHandlingDevice = 1 + } + + private Fusing.PrimaryValue primary; + private Fusing.SecondaryValue secondary; + private Fusing.AHDValue aHD; + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(Fusing left, Fusing right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator ==(Fusing left, Fusing right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + // If parameters are null return false (cast to object to prevent recursive loop!) + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The scheme instance. + /// The result of the conversion. + public static explicit operator ushort(Fusing obj) + { + return obj.ToUInt16(); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The ushort value. + /// The result of the conversion. + public static explicit operator Fusing(ushort value) + { + return Fusing.FromUInt16(value); + } + + /// + /// Creates the instance from the byte array. + /// + /// The array which holds the values for the . + /// The starting position within value. + /// The instance, represented by a byte array. + /// if the array is null. + /// if the index is lower than 0 or greater or equal than number of elements in array. + public static Fusing FromByteArray(byte[] array, int index) + { + if (array == null) + { + throw new ArgumentNullException("array"); + } + + if (index < 0 || + index > array.Length - 1 || + index + 2 > array.Length - 1) + { + throw new IndexOutOfRangeException(); + } + + return FromUInt16(BitConverter.ToUInt16(array, index)); + } + + /// + /// Creates the instance from the ushort value. + /// + /// The ushort value which represents the instance. + /// The instance, represented by the ushort value. + public static Fusing FromUInt16(ushort value) + { + Fusing ps = new Fusing(); + + uint mask0 = 0x007f; + byte shift0 = 0; + uint newValue0 = (value & mask0) >> shift0; + ps.Primary = (Fusing.PrimaryValue)newValue0; + + uint mask1 = 0x3f80; + byte shift1 = 7; + uint newValue1 = (value & mask1) >> shift1; + ps.Secondary = (Fusing.SecondaryValue)newValue1; + + uint mask2 = 0x0010; + byte shift2 = 4; + uint newValue2 = (value & mask2) >> shift2; + ps.AHD = (Fusing.AHDValue)newValue2; + + return ps; + } + + /// + /// Gets or sets the primary. + /// + /// The primary. + public Fusing.PrimaryValue Primary + { + get { return this.primary; } + set { this.primary = value; } + } + + /// + /// Gets or sets the secondary. + /// + /// The secondary. + public Fusing.SecondaryValue Secondary + { + get { return this.secondary; } + set { this.secondary = value; } + } + + /// + /// Gets or sets the ahd. + /// + /// The ahd. + public Fusing.AHDValue AHD + { + get { return this.aHD; } + set { this.aHD = value; } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (!(obj is Fusing)) + { + return false; + } + + return this.Equals((Fusing)obj); + } + + /// + /// Determines whether the specified instance is equal to this instance. + /// + /// The instance to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public bool Equals(Fusing other) + { + // If parameter is null return false (cast to object to prevent recursive loop!) + if ((object)other == null) + { + return false; + } + + return + this.Primary == other.Primary && + this.Secondary == other.Secondary && + this.AHD == other.AHD; + } + + /// + /// Converts the instance of to the byte array. + /// + /// The byte array representing the current instance. + public byte[] ToByteArray() + { + return BitConverter.GetBytes(this.ToUInt16()); + } + + /// + /// Converts the instance of to the ushort value. + /// + /// The ushort value representing the current instance. + public ushort ToUInt16() + { + ushort val = 0; + + val |= (ushort)((uint)this.Primary << 0); + val |= (ushort)((uint)this.Secondary << 7); + val |= (ushort)((uint)this.AHD << 4); + + return val; + } + + /// + /// Returns a hash code for this instance. + /// + /// + /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + /// + public override int GetHashCode() + { + int hash = 17; + + // Overflow is fine, just wrap + unchecked + { + hash = (hash * 29) + this.Primary.GetHashCode(); + hash = (hash * 29) + this.Secondary.GetHashCode(); + hash = (hash * 29) + this.AHD.GetHashCode(); + } + + return hash; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/LaserSensor.cs b/Libs/CsharpDis6/Enumerations/Entity.Information.Minefield/LaserSensor.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/LaserSensor.cs rename to Libs/CsharpDis6/Enumerations/Entity.Information.Minefield/LaserSensor.cs index f4a9ee7..d6feff6 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/LaserSensor.cs +++ b/Libs/CsharpDis6/Enumerations/Entity.Information.Minefield/LaserSensor.cs @@ -1,49 +1,49 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Entity.Information.Minefield -{ - /// - /// Enumeration values for LaserSensor (entity.mine.sensortype.5.subcat, Laser, - /// section 10.2.4) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum LaserSensor : uint - { - /// - /// Generic. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Generic.")] - Generic = 0, - - /// - /// ASTAMIDS. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ASTAMIDS.")] - ASTAMIDS = 1 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Entity.Information.Minefield +{ + /// + /// Enumeration values for LaserSensor (entity.mine.sensortype.5.subcat, Laser, + /// section 10.2.4) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum LaserSensor : uint + { + /// + /// Generic. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Generic.")] + Generic = 0, + + /// + /// ASTAMIDS. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ASTAMIDS.")] + ASTAMIDS = 1 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/MagneticSensor.cs b/Libs/CsharpDis6/Enumerations/Entity.Information.Minefield/MagneticSensor.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/MagneticSensor.cs rename to Libs/CsharpDis6/Enumerations/Entity.Information.Minefield/MagneticSensor.cs index 96efc5e..dc3a224 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/MagneticSensor.cs +++ b/Libs/CsharpDis6/Enumerations/Entity.Information.Minefield/MagneticSensor.cs @@ -1,69 +1,69 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Entity.Information.Minefield -{ - /// - /// Enumeration values for MagneticSensor (entity.mine.sensortype.4.subcat, Magnetic, - /// section 10.2.4) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum MagneticSensor : uint - { - /// - /// Generic. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Generic.")] - Generic = 0, - - /// - /// AN-PSS-11. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN-PSS-11.")] - ANPSS11 = 1, - - /// - /// AN-PSS-12. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN-PSS-12.")] - ANPSS12 = 2, - - /// - /// GSTAMIDS. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("GSTAMIDS.")] - GSTAMIDS = 3 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Entity.Information.Minefield +{ + /// + /// Enumeration values for MagneticSensor (entity.mine.sensortype.4.subcat, Magnetic, + /// section 10.2.4) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum MagneticSensor : uint + { + /// + /// Generic. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Generic.")] + Generic = 0, + + /// + /// AN-PSS-11. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN-PSS-11.")] + ANPSS11 = 1, + + /// + /// AN-PSS-12. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN-PSS-12.")] + ANPSS12 = 2, + + /// + /// GSTAMIDS. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("GSTAMIDS.")] + GSTAMIDS = 3 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/MultispectralSensor.cs b/Libs/CsharpDis6/Enumerations/Entity.Information.Minefield/MultispectralSensor.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/MultispectralSensor.cs rename to Libs/CsharpDis6/Enumerations/Entity.Information.Minefield/MultispectralSensor.cs index 6c5ede4..3c720a4 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/MultispectralSensor.cs +++ b/Libs/CsharpDis6/Enumerations/Entity.Information.Minefield/MultispectralSensor.cs @@ -1,39 +1,39 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Entity.Information.Minefield -{ - /// - /// Enumeration values for MultispectralSensor (entity.mine.sensortype.8.subcat, Multispectral, - /// section 10.2.4) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum MultispectralSensor : uint - { - /// - /// Generic. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Generic.")] - Generic = 0 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Entity.Information.Minefield +{ + /// + /// Enumeration values for MultispectralSensor (entity.mine.sensortype.8.subcat, Multispectral, + /// section 10.2.4) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum MultispectralSensor : uint + { + /// + /// Generic. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Generic.")] + Generic = 0 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/OpticalSensor.cs b/Libs/CsharpDis6/Enumerations/Entity.Information.Minefield/OpticalSensor.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/OpticalSensor.cs rename to Libs/CsharpDis6/Enumerations/Entity.Information.Minefield/OpticalSensor.cs index 3b153c5..be7f0db 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/OpticalSensor.cs +++ b/Libs/CsharpDis6/Enumerations/Entity.Information.Minefield/OpticalSensor.cs @@ -1,149 +1,149 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Entity.Information.Minefield -{ - /// - /// Enumeration values for OpticalSensor (entity.mine.sensortype.1.subcat, Optical, - /// section 10.2.4) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum OpticalSensor : uint - { - /// - /// Unaided Eye, Actively Searching. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Unaided Eye, Actively Searching.")] - UnaidedEyeActivelySearching = 0, - - /// - /// Unaided Eye, Not Actively Searching. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Unaided Eye, Not Actively Searching.")] - UnaidedEyeNotActivelySearching = 1, - - /// - /// Binoculars. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Binoculars.")] - Binoculars = 2, - - /// - /// Image Intensifier. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Image Intensifier.")] - ImageIntensifier = 3, - - /// - /// HMMWV occupant, Actively Searching. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HMMWV occupant, Actively Searching.")] - HMMWVOccupantActivelySearching = 4, - - /// - /// HMMWV occupant, Not Actively Searching. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HMMWV occupant, Not Actively Searching.")] - HMMWVOccupantNotActivelySearching = 5, - - /// - /// Truck occupant, Actively Searching. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Truck occupant, Actively Searching.")] - TruckOccupantActivelySearching = 6, - - /// - /// Truck occupant, Not Actively Searching. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Truck occupant, Not Actively Searching.")] - TruckOccupantNotActivelySearching = 7, - - /// - /// Tracked vehicle occupant, closed hatch, Actively Searching. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tracked vehicle occupant, closed hatch, Actively Searching.")] - TrackedVehicleOccupantClosedHatchActivelySearching = 8, - - /// - /// Tracked vehicle occupant, closed hatch, Not Actively Searching. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tracked vehicle occupant, closed hatch, Not Actively Searching.")] - TrackedVehicleOccupantClosedHatchNotActivelySearching = 9, - - /// - /// Tracked vehicle occupant, open hatch, Actively Searching. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tracked vehicle occupant, open hatch, Actively Searching.")] - TrackedVehicleOccupantOpenHatchActivelySearching = 10, - - /// - /// Tracked vehicle occupant, open hatch, Not Actively Searching. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tracked vehicle occupant, open hatch, Not Actively Searching.")] - TrackedVehicleOccupantOpenHatchNotActivelySearching = 11 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Entity.Information.Minefield +{ + /// + /// Enumeration values for OpticalSensor (entity.mine.sensortype.1.subcat, Optical, + /// section 10.2.4) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum OpticalSensor : uint + { + /// + /// Unaided Eye, Actively Searching. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Unaided Eye, Actively Searching.")] + UnaidedEyeActivelySearching = 0, + + /// + /// Unaided Eye, Not Actively Searching. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Unaided Eye, Not Actively Searching.")] + UnaidedEyeNotActivelySearching = 1, + + /// + /// Binoculars. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Binoculars.")] + Binoculars = 2, + + /// + /// Image Intensifier. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Image Intensifier.")] + ImageIntensifier = 3, + + /// + /// HMMWV occupant, Actively Searching. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HMMWV occupant, Actively Searching.")] + HMMWVOccupantActivelySearching = 4, + + /// + /// HMMWV occupant, Not Actively Searching. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HMMWV occupant, Not Actively Searching.")] + HMMWVOccupantNotActivelySearching = 5, + + /// + /// Truck occupant, Actively Searching. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Truck occupant, Actively Searching.")] + TruckOccupantActivelySearching = 6, + + /// + /// Truck occupant, Not Actively Searching. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Truck occupant, Not Actively Searching.")] + TruckOccupantNotActivelySearching = 7, + + /// + /// Tracked vehicle occupant, closed hatch, Actively Searching. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tracked vehicle occupant, closed hatch, Actively Searching.")] + TrackedVehicleOccupantClosedHatchActivelySearching = 8, + + /// + /// Tracked vehicle occupant, closed hatch, Not Actively Searching. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tracked vehicle occupant, closed hatch, Not Actively Searching.")] + TrackedVehicleOccupantClosedHatchNotActivelySearching = 9, + + /// + /// Tracked vehicle occupant, open hatch, Actively Searching. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tracked vehicle occupant, open hatch, Actively Searching.")] + TrackedVehicleOccupantOpenHatchActivelySearching = 10, + + /// + /// Tracked vehicle occupant, open hatch, Not Actively Searching. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tracked vehicle occupant, open hatch, Not Actively Searching.")] + TrackedVehicleOccupantOpenHatchNotActivelySearching = 11 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/PaintScheme.cs b/Libs/CsharpDis6/Enumerations/Entity.Information.Minefield/PaintScheme.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/PaintScheme.cs rename to Libs/CsharpDis6/Enumerations/Entity.Information.Minefield/PaintScheme.cs index 26354ac..c05e038 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/PaintScheme.cs +++ b/Libs/CsharpDis6/Enumerations/Entity.Information.Minefield/PaintScheme.cs @@ -1,378 +1,378 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Entity.Information.Minefield -{ - /// - /// Enumeration values for PaintScheme (entity.mine.paintscheme, Paint Scheme, - /// section 10.2.5) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public struct PaintScheme - { - /// - /// Identifies the algae build-up on the mine - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Identifies the algae build-up on the mine")] - public enum AlgaeValue : uint - { - /// - /// None - /// - None = 0, - - /// - /// Light - /// - Light = 1, - - /// - /// Moderate - /// - Moderate = 2, - - /// - /// Heavy - /// - Heavy = 3 - } - - /// - /// Identifies the paint scheme of the mine - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Identifies the paint scheme of the mine")] - public enum PaintSchemeValue : uint - { - /// - /// Other - /// - Other = 0, - - /// - /// Standard - /// - Standard = 1, - - /// - /// Camouflage Desert - /// - CamouflageDesert = 2, - - /// - /// Camouflage Jungle - /// - CamouflageJungle = 3, - - /// - /// Camouflage Snow - /// - CamouflageSnow = 4, - - /// - /// Camouflage Gravel - /// - CamouflageGravel = 5, - - /// - /// Camouflage Pavement - /// - CamouflagePavement = 6, - - /// - /// Camouflage Sand - /// - CamouflageSand = 7, - - /// - /// Natural Wood - /// - NaturalWood = 8, - - /// - /// Clear - /// - Clear = 9, - - /// - /// Red - /// - Red = 10, - - /// - /// Blue - /// - Blue = 11, - - /// - /// Green - /// - Green = 12, - - /// - /// Olive - /// - Olive = 13, - - /// - /// White - /// - White = 14, - - /// - /// Tan - /// - Tan = 15, - - /// - /// Black - /// - Black = 16, - - /// - /// Yellow - /// - Yellow = 17, - - /// - /// Brown - /// - Brown = 18 - } - - private PaintScheme.AlgaeValue algae; - private PaintScheme.PaintSchemeValue paintScheme; - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(PaintScheme left, PaintScheme right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator ==(PaintScheme left, PaintScheme right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - // If parameters are null return false (cast to object to prevent recursive loop!) - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The scheme instance. - /// The result of the conversion. - public static explicit operator byte(PaintScheme obj) - { - return obj.ToByte(); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The byte value. - /// The result of the conversion. - public static explicit operator PaintScheme(byte value) - { - return PaintScheme.FromByte(value); - } - - /// - /// Creates the instance from the byte array. - /// - /// The array which holds the values for the . - /// The starting position within value. - /// The instance, represented by a byte array. - /// if the array is null. - /// if the index is lower than 0 or greater or equal than number of elements in array. - public static PaintScheme FromByteArray(byte[] array, int index) - { - if (array == null) - { - throw new ArgumentNullException("array"); - } - - if (index < 0 || - index > array.Length - 1 || - index + 1 > array.Length - 1) - { - throw new IndexOutOfRangeException(); - } - - return FromByte(array[index]); - } - - /// - /// Creates the instance from the byte value. - /// - /// The byte value which represents the instance. - /// The instance, represented by the byte value. - public static PaintScheme FromByte(byte value) - { - PaintScheme ps = new PaintScheme(); - - uint mask0 = 0x0003; - byte shift0 = 0; - uint newValue0 = (value & mask0) >> shift0; - ps.Algae = (PaintScheme.AlgaeValue)newValue0; - - uint mask1 = 0x00fc; - byte shift1 = 2; - uint newValue1 = (value & mask1) >> shift1; - ps.Value = (PaintScheme.PaintSchemeValue)newValue1; - - return ps; - } - - /// - /// Gets or sets the algae. - /// - /// The algae. - public PaintScheme.AlgaeValue Algae - { - get { return this.algae; } - set { this.algae = value; } - } - - /// - /// Gets or sets the value. - /// - /// The value. - public PaintScheme.PaintSchemeValue Value - { - get { return this.paintScheme; } - set { this.paintScheme = value; } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - if (obj == null) - { - return false; - } - - if (!(obj is PaintScheme)) - { - return false; - } - - return this.Equals((PaintScheme)obj); - } - - /// - /// Determines whether the specified instance is equal to this instance. - /// - /// The instance to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public bool Equals(PaintScheme other) - { - // If parameter is null return false (cast to object to prevent recursive loop!) - if ((object)other == null) - { - return false; - } - - return - this.Algae == other.Algae && - this.Value == other.Value; - } - - /// - /// Converts the instance of to the byte array. - /// - /// The byte array representing the current instance. - public byte[] ToByteArray() - { - return BitConverter.GetBytes(this.ToByte()); - } - - /// - /// Converts the instance of to the byte value. - /// - /// The byte value representing the current instance. - public byte ToByte() - { - byte val = 0; - - val |= (byte)((uint)this.Algae << 0); - val |= (byte)((uint)this.Value << 2); - - return val; - } - - /// - /// Returns a hash code for this instance. - /// - /// - /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - /// - public override int GetHashCode() - { - int hash = 17; - - // Overflow is fine, just wrap - unchecked - { - hash = (hash * 29) + this.Algae.GetHashCode(); - hash = (hash * 29) + this.Value.GetHashCode(); - } - - return hash; - } - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Entity.Information.Minefield +{ + /// + /// Enumeration values for PaintScheme (entity.mine.paintscheme, Paint Scheme, + /// section 10.2.5) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public struct PaintScheme + { + /// + /// Identifies the algae build-up on the mine + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Identifies the algae build-up on the mine")] + public enum AlgaeValue : uint + { + /// + /// None + /// + None = 0, + + /// + /// Light + /// + Light = 1, + + /// + /// Moderate + /// + Moderate = 2, + + /// + /// Heavy + /// + Heavy = 3 + } + + /// + /// Identifies the paint scheme of the mine + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Identifies the paint scheme of the mine")] + public enum PaintSchemeValue : uint + { + /// + /// Other + /// + Other = 0, + + /// + /// Standard + /// + Standard = 1, + + /// + /// Camouflage Desert + /// + CamouflageDesert = 2, + + /// + /// Camouflage Jungle + /// + CamouflageJungle = 3, + + /// + /// Camouflage Snow + /// + CamouflageSnow = 4, + + /// + /// Camouflage Gravel + /// + CamouflageGravel = 5, + + /// + /// Camouflage Pavement + /// + CamouflagePavement = 6, + + /// + /// Camouflage Sand + /// + CamouflageSand = 7, + + /// + /// Natural Wood + /// + NaturalWood = 8, + + /// + /// Clear + /// + Clear = 9, + + /// + /// Red + /// + Red = 10, + + /// + /// Blue + /// + Blue = 11, + + /// + /// Green + /// + Green = 12, + + /// + /// Olive + /// + Olive = 13, + + /// + /// White + /// + White = 14, + + /// + /// Tan + /// + Tan = 15, + + /// + /// Black + /// + Black = 16, + + /// + /// Yellow + /// + Yellow = 17, + + /// + /// Brown + /// + Brown = 18 + } + + private PaintScheme.AlgaeValue algae; + private PaintScheme.PaintSchemeValue paintScheme; + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(PaintScheme left, PaintScheme right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator ==(PaintScheme left, PaintScheme right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + // If parameters are null return false (cast to object to prevent recursive loop!) + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The scheme instance. + /// The result of the conversion. + public static explicit operator byte(PaintScheme obj) + { + return obj.ToByte(); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The byte value. + /// The result of the conversion. + public static explicit operator PaintScheme(byte value) + { + return PaintScheme.FromByte(value); + } + + /// + /// Creates the instance from the byte array. + /// + /// The array which holds the values for the . + /// The starting position within value. + /// The instance, represented by a byte array. + /// if the array is null. + /// if the index is lower than 0 or greater or equal than number of elements in array. + public static PaintScheme FromByteArray(byte[] array, int index) + { + if (array == null) + { + throw new ArgumentNullException("array"); + } + + if (index < 0 || + index > array.Length - 1 || + index + 1 > array.Length - 1) + { + throw new IndexOutOfRangeException(); + } + + return FromByte(array[index]); + } + + /// + /// Creates the instance from the byte value. + /// + /// The byte value which represents the instance. + /// The instance, represented by the byte value. + public static PaintScheme FromByte(byte value) + { + PaintScheme ps = new PaintScheme(); + + uint mask0 = 0x0003; + byte shift0 = 0; + uint newValue0 = (value & mask0) >> shift0; + ps.Algae = (PaintScheme.AlgaeValue)newValue0; + + uint mask1 = 0x00fc; + byte shift1 = 2; + uint newValue1 = (value & mask1) >> shift1; + ps.Value = (PaintScheme.PaintSchemeValue)newValue1; + + return ps; + } + + /// + /// Gets or sets the algae. + /// + /// The algae. + public PaintScheme.AlgaeValue Algae + { + get { return this.algae; } + set { this.algae = value; } + } + + /// + /// Gets or sets the value. + /// + /// The value. + public PaintScheme.PaintSchemeValue Value + { + get { return this.paintScheme; } + set { this.paintScheme = value; } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (!(obj is PaintScheme)) + { + return false; + } + + return this.Equals((PaintScheme)obj); + } + + /// + /// Determines whether the specified instance is equal to this instance. + /// + /// The instance to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public bool Equals(PaintScheme other) + { + // If parameter is null return false (cast to object to prevent recursive loop!) + if ((object)other == null) + { + return false; + } + + return + this.Algae == other.Algae && + this.Value == other.Value; + } + + /// + /// Converts the instance of to the byte array. + /// + /// The byte array representing the current instance. + public byte[] ToByteArray() + { + return BitConverter.GetBytes(this.ToByte()); + } + + /// + /// Converts the instance of to the byte value. + /// + /// The byte value representing the current instance. + public byte ToByte() + { + byte val = 0; + + val |= (byte)((uint)this.Algae << 0); + val |= (byte)((uint)this.Value << 2); + + return val; + } + + /// + /// Returns a hash code for this instance. + /// + /// + /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + /// + public override int GetHashCode() + { + int hash = 17; + + // Overflow is fine, just wrap + unchecked + { + hash = (hash * 29) + this.Algae.GetHashCode(); + hash = (hash * 29) + this.Value.GetHashCode(); + } + + return hash; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/PhysicalSensor.cs b/Libs/CsharpDis6/Enumerations/Entity.Information.Minefield/PhysicalSensor.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/PhysicalSensor.cs rename to Libs/CsharpDis6/Enumerations/Entity.Information.Minefield/PhysicalSensor.cs index 9b1c028..dc5a9e7 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/PhysicalSensor.cs +++ b/Libs/CsharpDis6/Enumerations/Entity.Information.Minefield/PhysicalSensor.cs @@ -1,59 +1,59 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Entity.Information.Minefield -{ - /// - /// Enumeration values for PhysicalSensor (entity.mine.sensortype.7.subcat, Physical, - /// section 10.2.4) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum PhysicalSensor : uint - { - /// - /// Generic Probe. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Generic Probe.")] - GenericProbe = 0, - - /// - /// Probe, metal content. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Probe, metal content.")] - ProbeMetalContent = 1, - - /// - /// Probe, no metal content. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Probe, no metal content.")] - ProbeNoMetalContent = 2 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Entity.Information.Minefield +{ + /// + /// Enumeration values for PhysicalSensor (entity.mine.sensortype.7.subcat, Physical, + /// section 10.2.4) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum PhysicalSensor : uint + { + /// + /// Generic Probe. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Generic Probe.")] + GenericProbe = 0, + + /// + /// Probe, metal content. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Probe, metal content.")] + ProbeMetalContent = 1, + + /// + /// Probe, no metal content. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Probe, no metal content.")] + ProbeNoMetalContent = 2 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/ProtocolMode.cs b/Libs/CsharpDis6/Enumerations/Entity.Information.Minefield/ProtocolMode.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/ProtocolMode.cs rename to Libs/CsharpDis6/Enumerations/Entity.Information.Minefield/ProtocolMode.cs index 04e7802..294cfcc 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/ProtocolMode.cs +++ b/Libs/CsharpDis6/Enumerations/Entity.Information.Minefield/ProtocolMode.cs @@ -1,248 +1,248 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Entity.Information.Minefield -{ - /// - /// Enumeration values for ProtocolMode (entity.mine.protocolmode, Protocol Mode, - /// section 10.2.6) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public struct ProtocolMode - { - /// - /// Protocol Mode - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Protocol Mode")] - public enum ProtocolModeValue : uint - { - /// - /// Heartbeat mode - /// - HeartbeatMode = 0, - - /// - /// QRP mode - /// - QRPMode = 1, - - /// - /// null - /// - Unknown = 2 - } - - private ProtocolMode.ProtocolModeValue protocolMode; - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ProtocolMode left, ProtocolMode right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator ==(ProtocolMode left, ProtocolMode right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - // If parameters are null return false (cast to object to prevent recursive loop!) - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The scheme instance. - /// The result of the conversion. - public static explicit operator uint(ProtocolMode obj) - { - return obj.ToUInt32(); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The uint value. - /// The result of the conversion. - public static explicit operator ProtocolMode(uint value) - { - return ProtocolMode.FromUInt32(value); - } - - /// - /// Creates the instance from the byte array. - /// - /// The array which holds the values for the . - /// The starting position within value. - /// The instance, represented by a byte array. - /// if the array is null. - /// if the index is lower than 0 or greater or equal than number of elements in array. - public static ProtocolMode FromByteArray(byte[] array, int index) - { - if (array == null) - { - throw new ArgumentNullException("array"); - } - - if (index < 0 || - index > array.Length - 1 || - index + 4 > array.Length - 1) - { - throw new IndexOutOfRangeException(); - } - - return FromUInt32(BitConverter.ToUInt32(array, index)); - } - - /// - /// Creates the instance from the uint value. - /// - /// The uint value which represents the instance. - /// The instance, represented by the uint value. - public static ProtocolMode FromUInt32(uint value) - { - ProtocolMode ps = new ProtocolMode(); - - uint mask0 = 0x0003; - byte shift0 = 0; - uint newValue0 = (value & mask0) >> shift0; - ps.Value = (ProtocolMode.ProtocolModeValue)newValue0; - - return ps; - } - - /// - /// Gets or sets the value. - /// - /// The value. - public ProtocolMode.ProtocolModeValue Value - { - get { return this.protocolMode; } - set { this.protocolMode = value; } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - if (obj == null) - { - return false; - } - - if (!(obj is ProtocolMode)) - { - return false; - } - - return this.Equals((ProtocolMode)obj); - } - - /// - /// Determines whether the specified instance is equal to this instance. - /// - /// The instance to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public bool Equals(ProtocolMode other) - { - // If parameter is null return false (cast to object to prevent recursive loop!) - if ((object)other == null) - { - return false; - } - - return - this.Value == other.Value; - } - - /// - /// Converts the instance of to the byte array. - /// - /// The byte array representing the current instance. - public byte[] ToByteArray() - { - return BitConverter.GetBytes(this.ToUInt32()); - } - - /// - /// Converts the instance of to the uint value. - /// - /// The uint value representing the current instance. - public uint ToUInt32() - { - uint val = 0; - - val |= (uint)((uint)this.Value << 0); - - return val; - } - - /// - /// Returns a hash code for this instance. - /// - /// - /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - /// - public override int GetHashCode() - { - int hash = 17; - - // Overflow is fine, just wrap - unchecked - { - hash = (hash * 29) + this.Value.GetHashCode(); - } - - return hash; - } - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Entity.Information.Minefield +{ + /// + /// Enumeration values for ProtocolMode (entity.mine.protocolmode, Protocol Mode, + /// section 10.2.6) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public struct ProtocolMode + { + /// + /// Protocol Mode + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Protocol Mode")] + public enum ProtocolModeValue : uint + { + /// + /// Heartbeat mode + /// + HeartbeatMode = 0, + + /// + /// QRP mode + /// + QRPMode = 1, + + /// + /// null + /// + Unknown = 2 + } + + private ProtocolMode.ProtocolModeValue protocolMode; + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ProtocolMode left, ProtocolMode right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator ==(ProtocolMode left, ProtocolMode right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + // If parameters are null return false (cast to object to prevent recursive loop!) + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The scheme instance. + /// The result of the conversion. + public static explicit operator uint(ProtocolMode obj) + { + return obj.ToUInt32(); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The uint value. + /// The result of the conversion. + public static explicit operator ProtocolMode(uint value) + { + return ProtocolMode.FromUInt32(value); + } + + /// + /// Creates the instance from the byte array. + /// + /// The array which holds the values for the . + /// The starting position within value. + /// The instance, represented by a byte array. + /// if the array is null. + /// if the index is lower than 0 or greater or equal than number of elements in array. + public static ProtocolMode FromByteArray(byte[] array, int index) + { + if (array == null) + { + throw new ArgumentNullException("array"); + } + + if (index < 0 || + index > array.Length - 1 || + index + 4 > array.Length - 1) + { + throw new IndexOutOfRangeException(); + } + + return FromUInt32(BitConverter.ToUInt32(array, index)); + } + + /// + /// Creates the instance from the uint value. + /// + /// The uint value which represents the instance. + /// The instance, represented by the uint value. + public static ProtocolMode FromUInt32(uint value) + { + ProtocolMode ps = new ProtocolMode(); + + uint mask0 = 0x0003; + byte shift0 = 0; + uint newValue0 = (value & mask0) >> shift0; + ps.Value = (ProtocolMode.ProtocolModeValue)newValue0; + + return ps; + } + + /// + /// Gets or sets the value. + /// + /// The value. + public ProtocolMode.ProtocolModeValue Value + { + get { return this.protocolMode; } + set { this.protocolMode = value; } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (!(obj is ProtocolMode)) + { + return false; + } + + return this.Equals((ProtocolMode)obj); + } + + /// + /// Determines whether the specified instance is equal to this instance. + /// + /// The instance to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public bool Equals(ProtocolMode other) + { + // If parameter is null return false (cast to object to prevent recursive loop!) + if ((object)other == null) + { + return false; + } + + return + this.Value == other.Value; + } + + /// + /// Converts the instance of to the byte array. + /// + /// The byte array representing the current instance. + public byte[] ToByteArray() + { + return BitConverter.GetBytes(this.ToUInt32()); + } + + /// + /// Converts the instance of to the uint value. + /// + /// The uint value representing the current instance. + public uint ToUInt32() + { + uint val = 0; + + val |= (uint)((uint)this.Value << 0); + + return val; + } + + /// + /// Returns a hash code for this instance. + /// + /// + /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + /// + public override int GetHashCode() + { + int hash = 17; + + // Overflow is fine, just wrap + unchecked + { + hash = (hash * 29) + this.Value.GetHashCode(); + } + + return hash; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/RadarSensor.cs b/Libs/CsharpDis6/Enumerations/Entity.Information.Minefield/RadarSensor.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/RadarSensor.cs rename to Libs/CsharpDis6/Enumerations/Entity.Information.Minefield/RadarSensor.cs index e3cbc3b..9be80dd 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/RadarSensor.cs +++ b/Libs/CsharpDis6/Enumerations/Entity.Information.Minefield/RadarSensor.cs @@ -1,89 +1,89 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Entity.Information.Minefield -{ - /// - /// Enumeration values for RadarSensor (entity.mine.sensortype.3.subcat, RADAR, - /// section 10.2.4) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum RadarSensor : uint - { - /// - /// Generic. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Generic.")] - Generic = 0, - - /// - /// Generic GPR. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Generic GPR.")] - GenericGPR = 1, - - /// - /// GSTAMIDS I. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("GSTAMIDS I.")] - GSTAMIDSI = 2, - - /// - /// GSTAMIDS II. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("GSTAMIDS II.")] - GSTAMIDSII = 3, - - /// - /// HSTAMIDS I. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HSTAMIDS I.")] - HSTAMIDSI = 4, - - /// - /// HSTAMIDS II. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HSTAMIDS II.")] - HSTAMIDSII = 5 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Entity.Information.Minefield +{ + /// + /// Enumeration values for RadarSensor (entity.mine.sensortype.3.subcat, RADAR, + /// section 10.2.4) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum RadarSensor : uint + { + /// + /// Generic. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Generic.")] + Generic = 0, + + /// + /// Generic GPR. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Generic GPR.")] + GenericGPR = 1, + + /// + /// GSTAMIDS I. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("GSTAMIDS I.")] + GSTAMIDSI = 2, + + /// + /// GSTAMIDS II. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("GSTAMIDS II.")] + GSTAMIDSII = 3, + + /// + /// HSTAMIDS I. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HSTAMIDS I.")] + HSTAMIDSI = 4, + + /// + /// HSTAMIDS II. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HSTAMIDS II.")] + HSTAMIDSII = 5 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/SensorTypes.cs b/Libs/CsharpDis6/Enumerations/Entity.Information.Minefield/SensorTypes.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/SensorTypes.cs rename to Libs/CsharpDis6/Enumerations/Entity.Information.Minefield/SensorTypes.cs index f3518ed..7481949 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/SensorTypes.cs +++ b/Libs/CsharpDis6/Enumerations/Entity.Information.Minefield/SensorTypes.cs @@ -1,119 +1,119 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Entity.Information.Minefield -{ - /// - /// Enumeration values for SensorTypes (entity.mine.sensortype, Sensor Types, - /// section 10.2.4) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum SensorTypes : uint - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Optical. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Optical.")] - Optical = 1, - - /// - /// FLIR. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("FLIR.")] - FLIR = 2, - - /// - /// RADAR. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("RADAR.")] - RADAR = 3, - - /// - /// Magnetic. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Magnetic.")] - Magnetic = 4, - - /// - /// Laser. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Laser.")] - Laser = 5, - - /// - /// SONAR. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SONAR.")] - SONAR = 6, - - /// - /// Physical. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Physical.")] - Physical = 7, - - /// - /// Multispectral. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Multispectral.")] - Multispectral = 8 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Entity.Information.Minefield +{ + /// + /// Enumeration values for SensorTypes (entity.mine.sensortype, Sensor Types, + /// section 10.2.4) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum SensorTypes : uint + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Optical. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Optical.")] + Optical = 1, + + /// + /// FLIR. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("FLIR.")] + FLIR = 2, + + /// + /// RADAR. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("RADAR.")] + RADAR = 3, + + /// + /// Magnetic. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Magnetic.")] + Magnetic = 4, + + /// + /// Laser. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Laser.")] + Laser = 5, + + /// + /// SONAR. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SONAR.")] + SONAR = 6, + + /// + /// Physical. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Physical.")] + Physical = 7, + + /// + /// Multispectral. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Multispectral.")] + Multispectral = 8 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/SonarSensor.cs b/Libs/CsharpDis6/Enumerations/Entity.Information.Minefield/SonarSensor.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/SonarSensor.cs rename to Libs/CsharpDis6/Enumerations/Entity.Information.Minefield/SonarSensor.cs index ea85592..8fa3d67 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information.Minefield/SonarSensor.cs +++ b/Libs/CsharpDis6/Enumerations/Entity.Information.Minefield/SonarSensor.cs @@ -1,39 +1,39 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Entity.Information.Minefield -{ - /// - /// Enumeration values for SonarSensor (entity.mine.sensortype.6.subcat, SONAR, - /// section 10.2.4) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum SonarSensor : uint - { - /// - /// Generic. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Generic.")] - Generic = 0 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Entity.Information.Minefield +{ + /// + /// Enumeration values for SonarSensor (entity.mine.sensortype.6.subcat, SONAR, + /// section 10.2.4) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum SonarSensor : uint + { + /// + /// Generic. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Generic.")] + Generic = 0 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information/EntityCollisionType.cs b/Libs/CsharpDis6/Enumerations/Entity.Information/EntityCollisionType.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information/EntityCollisionType.cs rename to Libs/CsharpDis6/Enumerations/Entity.Information/EntityCollisionType.cs index 576d7c6..6190b89 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Information/EntityCollisionType.cs +++ b/Libs/CsharpDis6/Enumerations/Entity.Information/EntityCollisionType.cs @@ -1,49 +1,49 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Entity.Information -{ - /// - /// Enumeration values for EntityCollisionType (entity.collision.type, Collision Type, - /// section 10.1.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum EntityCollisionType : byte - { - /// - /// Inelastic. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Inelastic.")] - Inelastic = 0, - - /// - /// Elastic. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Elastic.")] - Elastic = 1 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Entity.Information +{ + /// + /// Enumeration values for EntityCollisionType (entity.collision.type, Collision Type, + /// section 10.1.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum EntityCollisionType : byte + { + /// + /// Inelastic. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Inelastic.")] + Inelastic = 0, + + /// + /// Elastic. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Elastic.")] + Elastic = 1 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/AggregateFormation.cs b/Libs/CsharpDis6/Enumerations/Entity.Management/AggregateFormation.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/AggregateFormation.cs rename to Libs/CsharpDis6/Enumerations/Entity.Management/AggregateFormation.cs index 13bcfd2..f7cd2f1 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/AggregateFormation.cs +++ b/Libs/CsharpDis6/Enumerations/Entity.Management/AggregateFormation.cs @@ -1,89 +1,89 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Entity.Management -{ - /// - /// Enumeration values for AggregateFormation (eman.aggregate.formation, Formation, - /// section 11.1.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum AggregateFormation : uint - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Assembly. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Assembly.")] - Assembly = 1, - - /// - /// Vee. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Vee.")] - Vee = 2, - - /// - /// Wedge. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Wedge.")] - Wedge = 3, - - /// - /// Line. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Line.")] - Line = 4, - - /// - /// Column. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Column.")] - Column = 5 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Entity.Management +{ + /// + /// Enumeration values for AggregateFormation (eman.aggregate.formation, Formation, + /// section 11.1.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum AggregateFormation : uint + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Assembly. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Assembly.")] + Assembly = 1, + + /// + /// Vee. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Vee.")] + Vee = 2, + + /// + /// Wedge. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Wedge.")] + Wedge = 3, + + /// + /// Line. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Line.")] + Line = 4, + + /// + /// Column. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Column.")] + Column = 5 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/AggregateKind.cs b/Libs/CsharpDis6/Enumerations/Entity.Management/AggregateKind.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/AggregateKind.cs rename to Libs/CsharpDis6/Enumerations/Entity.Management/AggregateKind.cs index b84c1e4..04a6a96 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/AggregateKind.cs +++ b/Libs/CsharpDis6/Enumerations/Entity.Management/AggregateKind.cs @@ -1,89 +1,89 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Entity.Management -{ - /// - /// Enumeration values for AggregateKind (eman.aggregate.type.kind, Aggregate Kind, - /// section 11.1.3.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum AggregateKind : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Military Hierarchy. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Military Hierarchy.")] - MilitaryHierarchy = 1, - - /// - /// Common Type. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Common Type.")] - CommonType = 2, - - /// - /// Common Mission. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Common Mission.")] - CommonMission = 3, - - /// - /// Similar Capabilities. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Similar Capabilities.")] - SimilarCapabilities = 4, - - /// - /// Common Location. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Common Location.")] - CommonLocation = 5 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Entity.Management +{ + /// + /// Enumeration values for AggregateKind (eman.aggregate.type.kind, Aggregate Kind, + /// section 11.1.3.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum AggregateKind : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Military Hierarchy. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Military Hierarchy.")] + MilitaryHierarchy = 1, + + /// + /// Common Type. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Common Type.")] + CommonType = 2, + + /// + /// Common Mission. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Common Mission.")] + CommonMission = 3, + + /// + /// Similar Capabilities. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Similar Capabilities.")] + SimilarCapabilities = 4, + + /// + /// Common Location. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Common Location.")] + CommonLocation = 5 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/AggregateSpecific.cs b/Libs/CsharpDis6/Enumerations/Entity.Management/AggregateSpecific.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/AggregateSpecific.cs rename to Libs/CsharpDis6/Enumerations/Entity.Management/AggregateSpecific.cs index 330d104..9023c19 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/AggregateSpecific.cs +++ b/Libs/CsharpDis6/Enumerations/Entity.Management/AggregateSpecific.cs @@ -1,49 +1,49 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Entity.Management -{ - /// - /// Enumeration values for AggregateSpecific (eman.aggregate.type.specific, Specific, - /// section 11.1.3.3) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum AggregateSpecific : byte - { - /// - /// No headquarters. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("No headquarters.")] - NoHeadquarters = 0, - - /// - /// Yes aggregate unit contains a headquarters. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Yes aggregate unit contains a headquarters.")] - YesAggregateUnitContainsAHeadquarters = 1 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Entity.Management +{ + /// + /// Enumeration values for AggregateSpecific (eman.aggregate.type.specific, Specific, + /// section 11.1.3.3) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum AggregateSpecific : byte + { + /// + /// No headquarters. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("No headquarters.")] + NoHeadquarters = 0, + + /// + /// Yes aggregate unit contains a headquarters. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Yes aggregate unit contains a headquarters.")] + YesAggregateUnitContainsAHeadquarters = 1 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/AggregateState.cs b/Libs/CsharpDis6/Enumerations/Entity.Management/AggregateState.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/AggregateState.cs rename to Libs/CsharpDis6/Enumerations/Entity.Management/AggregateState.cs index 22db522..eb3838b 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/AggregateState.cs +++ b/Libs/CsharpDis6/Enumerations/Entity.Management/AggregateState.cs @@ -1,89 +1,89 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Entity.Management -{ - /// - /// Enumeration values for AggregateState (eman.aggregate.state, Aggregate State, - /// section 11.1.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum AggregateState : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Aggregated. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Aggregated.")] - Aggregated = 1, - - /// - /// Disaggregated. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Disaggregated.")] - Disaggregated = 2, - - /// - /// Fully disaggregated. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fully disaggregated.")] - FullyDisaggregated = 3, - - /// - /// Pseudo-disaggregated. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Pseudo-disaggregated.")] - PseudoDisaggregated = 4, - - /// - /// Partially-disaggregated. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Partially-disaggregated.")] - PartiallyDisaggregated = 5 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Entity.Management +{ + /// + /// Enumeration values for AggregateState (eman.aggregate.state, Aggregate State, + /// section 11.1.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum AggregateState : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Aggregated. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Aggregated.")] + Aggregated = 1, + + /// + /// Disaggregated. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Disaggregated.")] + Disaggregated = 2, + + /// + /// Fully disaggregated. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fully disaggregated.")] + FullyDisaggregated = 3, + + /// + /// Pseudo-disaggregated. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Pseudo-disaggregated.")] + PseudoDisaggregated = 4, + + /// + /// Partially-disaggregated. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Partially-disaggregated.")] + PartiallyDisaggregated = 5 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/AggregateSubcategory.cs b/Libs/CsharpDis6/Enumerations/Entity.Management/AggregateSubcategory.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/AggregateSubcategory.cs rename to Libs/CsharpDis6/Enumerations/Entity.Management/AggregateSubcategory.cs index eac9bdc..f6d1380 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/AggregateSubcategory.cs +++ b/Libs/CsharpDis6/Enumerations/Entity.Management/AggregateSubcategory.cs @@ -1,259 +1,259 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Entity.Management -{ - /// - /// Enumeration values for AggregateSubcategory (eman.aggregate.type.subcategory, Subcategory, - /// section 11.1.3.3) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum AggregateSubcategory : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Cavalry Troop. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Cavalry Troop.")] - CavalryTroop = 1, - - /// - /// Armor. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Armor.")] - Armor = 2, - - /// - /// Infantry. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Infantry.")] - Infantry = 3, - - /// - /// Mechanized Infantry. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mechanized Infantry.")] - MechanizedInfantry = 4, - - /// - /// Cavalry. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Cavalry.")] - Cavalry = 5, - - /// - /// Armored Cavalry. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Armored Cavalry.")] - ArmoredCavalry = 6, - - /// - /// Artillery. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Artillery.")] - Artillery = 7, - - /// - /// Self-propelled Artillery. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Self-propelled Artillery.")] - SelfPropelledArtillery = 8, - - /// - /// Close Air Support. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Close Air Support.")] - CloseAirSupport = 9, - - /// - /// Engineer. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Engineer.")] - Engineer = 10, - - /// - /// Air Defense Artillery. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Air Defense Artillery.")] - AirDefenseArtillery = 11, - - /// - /// Anti-tank. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Anti-tank.")] - AntiTank = 12, - - /// - /// Army Aviation Fixed-wing. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Army Aviation Fixed-wing.")] - ArmyAviationFixedWing = 13, - - /// - /// Army Aviation Rotary-wing. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Army Aviation Rotary-wing.")] - ArmyAviationRotaryWing = 14, - - /// - /// Army Attack Helicopter. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Army Attack Helicopter.")] - ArmyAttackHelicopter = 15, - - /// - /// Air Cavalry. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Air Cavalry.")] - AirCavalry = 16, - - /// - /// Armor Heavy Task Force. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Armor Heavy Task Force.")] - ArmorHeavyTaskForce = 17, - - /// - /// Motorized Rifle. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Motorized Rifle.")] - MotorizedRifle = 18, - - /// - /// Mechanized Heavy Task Force. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mechanized Heavy Task Force.")] - MechanizedHeavyTaskForce = 19, - - /// - /// Command Post. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Command Post.")] - CommandPost = 20, - - /// - /// CEWI. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("CEWI.")] - CEWI = 21, - - /// - /// Tank only. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tank only.")] - TankOnly = 22 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Entity.Management +{ + /// + /// Enumeration values for AggregateSubcategory (eman.aggregate.type.subcategory, Subcategory, + /// section 11.1.3.3) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum AggregateSubcategory : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Cavalry Troop. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Cavalry Troop.")] + CavalryTroop = 1, + + /// + /// Armor. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Armor.")] + Armor = 2, + + /// + /// Infantry. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Infantry.")] + Infantry = 3, + + /// + /// Mechanized Infantry. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mechanized Infantry.")] + MechanizedInfantry = 4, + + /// + /// Cavalry. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Cavalry.")] + Cavalry = 5, + + /// + /// Armored Cavalry. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Armored Cavalry.")] + ArmoredCavalry = 6, + + /// + /// Artillery. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Artillery.")] + Artillery = 7, + + /// + /// Self-propelled Artillery. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Self-propelled Artillery.")] + SelfPropelledArtillery = 8, + + /// + /// Close Air Support. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Close Air Support.")] + CloseAirSupport = 9, + + /// + /// Engineer. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Engineer.")] + Engineer = 10, + + /// + /// Air Defense Artillery. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Air Defense Artillery.")] + AirDefenseArtillery = 11, + + /// + /// Anti-tank. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Anti-tank.")] + AntiTank = 12, + + /// + /// Army Aviation Fixed-wing. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Army Aviation Fixed-wing.")] + ArmyAviationFixedWing = 13, + + /// + /// Army Aviation Rotary-wing. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Army Aviation Rotary-wing.")] + ArmyAviationRotaryWing = 14, + + /// + /// Army Attack Helicopter. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Army Attack Helicopter.")] + ArmyAttackHelicopter = 15, + + /// + /// Air Cavalry. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Air Cavalry.")] + AirCavalry = 16, + + /// + /// Armor Heavy Task Force. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Armor Heavy Task Force.")] + ArmorHeavyTaskForce = 17, + + /// + /// Motorized Rifle. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Motorized Rifle.")] + MotorizedRifle = 18, + + /// + /// Mechanized Heavy Task Force. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mechanized Heavy Task Force.")] + MechanizedHeavyTaskForce = 19, + + /// + /// Command Post. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Command Post.")] + CommandPost = 20, + + /// + /// CEWI. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("CEWI.")] + CEWI = 21, + + /// + /// Tank only. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tank only.")] + TankOnly = 22 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/GroupOfGroupedEntityCategory.cs b/Libs/CsharpDis6/Enumerations/Entity.Management/GroupOfGroupedEntityCategory.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/GroupOfGroupedEntityCategory.cs rename to Libs/CsharpDis6/Enumerations/Entity.Management/GroupOfGroupedEntityCategory.cs index 4e5cfac..df858ad 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/GroupOfGroupedEntityCategory.cs +++ b/Libs/CsharpDis6/Enumerations/Entity.Management/GroupOfGroupedEntityCategory.cs @@ -1,129 +1,129 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Entity.Management -{ - /// - /// Enumeration values for GroupOfGroupedEntityCategory (eman.isgroupof.category, Grouped Entity Category, - /// section 11.3.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum GroupOfGroupedEntityCategory : byte - { - /// - /// Undefined. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Undefined.")] - Undefined = 0, - - /// - /// Basic Ground Combat Vehicle. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Basic Ground Combat Vehicle.")] - BasicGroundCombatVehicle = 1, - - /// - /// Enhanced Ground Combat Vehicle. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Enhanced Ground Combat Vehicle.")] - EnhancedGroundCombatVehicle = 2, - - /// - /// Basic Ground Combat Soldier. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Basic Ground Combat Soldier.")] - BasicGroundCombatSoldier = 3, - - /// - /// Enhanced Ground Combat Soldier. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Enhanced Ground Combat Soldier.")] - EnhancedGroundCombatSoldier = 4, - - /// - /// Basic Rotor Wing Aircraft. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Basic Rotor Wing Aircraft.")] - BasicRotorWingAircraft = 5, - - /// - /// Enhanced Rotor Wing Aircraft. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Enhanced Rotor Wing Aircraft.")] - EnhancedRotorWingAircraft = 6, - - /// - /// Basic Fixed Wing Aircraft. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Basic Fixed Wing Aircraft.")] - BasicFixedWingAircraft = 7, - - /// - /// Enhanced Fixed Wing Aircraft. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Enhanced Fixed Wing Aircraft.")] - EnhancedFixedWingAircraft = 8, - - /// - /// Ground Logistics Vehicle. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ground Logistics Vehicle.")] - GroundLogisticsVehicle = 9 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Entity.Management +{ + /// + /// Enumeration values for GroupOfGroupedEntityCategory (eman.isgroupof.category, Grouped Entity Category, + /// section 11.3.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum GroupOfGroupedEntityCategory : byte + { + /// + /// Undefined. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Undefined.")] + Undefined = 0, + + /// + /// Basic Ground Combat Vehicle. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Basic Ground Combat Vehicle.")] + BasicGroundCombatVehicle = 1, + + /// + /// Enhanced Ground Combat Vehicle. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Enhanced Ground Combat Vehicle.")] + EnhancedGroundCombatVehicle = 2, + + /// + /// Basic Ground Combat Soldier. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Basic Ground Combat Soldier.")] + BasicGroundCombatSoldier = 3, + + /// + /// Enhanced Ground Combat Soldier. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Enhanced Ground Combat Soldier.")] + EnhancedGroundCombatSoldier = 4, + + /// + /// Basic Rotor Wing Aircraft. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Basic Rotor Wing Aircraft.")] + BasicRotorWingAircraft = 5, + + /// + /// Enhanced Rotor Wing Aircraft. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Enhanced Rotor Wing Aircraft.")] + EnhancedRotorWingAircraft = 6, + + /// + /// Basic Fixed Wing Aircraft. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Basic Fixed Wing Aircraft.")] + BasicFixedWingAircraft = 7, + + /// + /// Enhanced Fixed Wing Aircraft. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Enhanced Fixed Wing Aircraft.")] + EnhancedFixedWingAircraft = 8, + + /// + /// Ground Logistics Vehicle. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ground Logistics Vehicle.")] + GroundLogisticsVehicle = 9 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/GroupOfRestStatus.cs b/Libs/CsharpDis6/Enumerations/Entity.Management/GroupOfRestStatus.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/GroupOfRestStatus.cs rename to Libs/CsharpDis6/Enumerations/Entity.Management/GroupOfRestStatus.cs index 969a738..426212f 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/GroupOfRestStatus.cs +++ b/Libs/CsharpDis6/Enumerations/Entity.Management/GroupOfRestStatus.cs @@ -1,119 +1,119 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Entity.Management -{ - /// - /// Enumeration values for GroupOfRestStatus (eman.isgroupof.reststatus, Rest Status, - /// section 11.3.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum GroupOfRestStatus : byte - { - /// - /// Not rested (Has not slept in the last three days). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Not rested (Has not slept in the last three days).")] - NotRestedHasNotSleptInTheLastThreeDays = 0, - - /// - /// Has slept an average of 1 hour per day in the last three days. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Has slept an average of 1 hour per day in the last three days.")] - HasSleptAnAverageOf1HourPerDayInTheLastThreeDays = 1, - - /// - /// Has slept an average of 2 hours per day in the last three days. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Has slept an average of 2 hours per day in the last three days.")] - HasSleptAnAverageOf2HoursPerDayInTheLastThreeDays = 2, - - /// - /// Has slept an average of 3 hours per day in the last three days. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Has slept an average of 3 hours per day in the last three days.")] - HasSleptAnAverageOf3HoursPerDayInTheLastThreeDays = 3, - - /// - /// Has slept an average of 4 hours per day in the last three days. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Has slept an average of 4 hours per day in the last three days.")] - HasSleptAnAverageOf4HoursPerDayInTheLastThreeDays = 4, - - /// - /// Has slept an average of 5 hours per day in the last three days. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Has slept an average of 5 hours per day in the last three days.")] - HasSleptAnAverageOf5HoursPerDayInTheLastThreeDays = 5, - - /// - /// Has slept an average of 6 hours per day in the last three days. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Has slept an average of 6 hours per day in the last three days.")] - HasSleptAnAverageOf6HoursPerDayInTheLastThreeDays = 6, - - /// - /// Has slept an average of 7 hours per day in the last three days. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Has slept an average of 7 hours per day in the last three days.")] - HasSleptAnAverageOf7HoursPerDayInTheLastThreeDays = 7, - - /// - /// Fully rested (Has slept an average of 8 hours per day in the last three days). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fully rested (Has slept an average of 8 hours per day in the last three days).")] - FullyRestedHasSleptAnAverageOf8HoursPerDayInTheLastThreeDays = 8 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Entity.Management +{ + /// + /// Enumeration values for GroupOfRestStatus (eman.isgroupof.reststatus, Rest Status, + /// section 11.3.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum GroupOfRestStatus : byte + { + /// + /// Not rested (Has not slept in the last three days). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Not rested (Has not slept in the last three days).")] + NotRestedHasNotSleptInTheLastThreeDays = 0, + + /// + /// Has slept an average of 1 hour per day in the last three days. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Has slept an average of 1 hour per day in the last three days.")] + HasSleptAnAverageOf1HourPerDayInTheLastThreeDays = 1, + + /// + /// Has slept an average of 2 hours per day in the last three days. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Has slept an average of 2 hours per day in the last three days.")] + HasSleptAnAverageOf2HoursPerDayInTheLastThreeDays = 2, + + /// + /// Has slept an average of 3 hours per day in the last three days. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Has slept an average of 3 hours per day in the last three days.")] + HasSleptAnAverageOf3HoursPerDayInTheLastThreeDays = 3, + + /// + /// Has slept an average of 4 hours per day in the last three days. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Has slept an average of 4 hours per day in the last three days.")] + HasSleptAnAverageOf4HoursPerDayInTheLastThreeDays = 4, + + /// + /// Has slept an average of 5 hours per day in the last three days. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Has slept an average of 5 hours per day in the last three days.")] + HasSleptAnAverageOf5HoursPerDayInTheLastThreeDays = 5, + + /// + /// Has slept an average of 6 hours per day in the last three days. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Has slept an average of 6 hours per day in the last three days.")] + HasSleptAnAverageOf6HoursPerDayInTheLastThreeDays = 6, + + /// + /// Has slept an average of 7 hours per day in the last three days. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Has slept an average of 7 hours per day in the last three days.")] + HasSleptAnAverageOf7HoursPerDayInTheLastThreeDays = 7, + + /// + /// Fully rested (Has slept an average of 8 hours per day in the last three days). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fully rested (Has slept an average of 8 hours per day in the last three days).")] + FullyRestedHasSleptAnAverageOf8HoursPerDayInTheLastThreeDays = 8 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/PartOfNature.cs b/Libs/CsharpDis6/Enumerations/Entity.Management/PartOfNature.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/PartOfNature.cs rename to Libs/CsharpDis6/Enumerations/Entity.Management/PartOfNature.cs index d5d709c..afd2fc3 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/PartOfNature.cs +++ b/Libs/CsharpDis6/Enumerations/Entity.Management/PartOfNature.cs @@ -1,139 +1,139 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Entity.Management -{ - /// - /// Enumeration values for PartOfNature (eman.ispartof.nature, Nature, - /// section 11.2.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum PartOfNature : ushort - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Host-fireable munition. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Host-fireable munition.")] - HostFireableMunition = 1, - - /// - /// Munition carried as cargo. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Munition carried as cargo.")] - MunitionCarriedAsCargo = 2, - - /// - /// Fuel carried as cargo. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuel carried as cargo.")] - FuelCarriedAsCargo = 3, - - /// - /// Gunmount attached to host. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Gunmount attached to host.")] - GunmountAttachedToHost = 4, - - /// - /// Computer generated forces carried as cargo. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Computer generated forces carried as cargo.")] - ComputerGeneratedForcesCarriedAsCargo = 5, - - /// - /// Vehicle carried as cargo. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Vehicle carried as cargo.")] - VehicleCarriedAsCargo = 6, - - /// - /// Emitter mounted on host. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Emitter mounted on host.")] - EmitterMountedOnHost = 7, - - /// - /// Mobile command and control entity carried aboard host. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mobile command and control entity carried aboard host.")] - MobileCommandAndControlEntityCarriedAboardHost = 8, - - /// - /// Entity stationed at position with respect to host. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Entity stationed at position with respect to host.")] - EntityStationedAtPositionWithRespectToHost = 9, - - /// - /// Team member in formation with. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Team member in formation with.")] - TeamMemberInFormationWith = 10 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Entity.Management +{ + /// + /// Enumeration values for PartOfNature (eman.ispartof.nature, Nature, + /// section 11.2.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum PartOfNature : ushort + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Host-fireable munition. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Host-fireable munition.")] + HostFireableMunition = 1, + + /// + /// Munition carried as cargo. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Munition carried as cargo.")] + MunitionCarriedAsCargo = 2, + + /// + /// Fuel carried as cargo. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuel carried as cargo.")] + FuelCarriedAsCargo = 3, + + /// + /// Gunmount attached to host. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Gunmount attached to host.")] + GunmountAttachedToHost = 4, + + /// + /// Computer generated forces carried as cargo. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Computer generated forces carried as cargo.")] + ComputerGeneratedForcesCarriedAsCargo = 5, + + /// + /// Vehicle carried as cargo. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Vehicle carried as cargo.")] + VehicleCarriedAsCargo = 6, + + /// + /// Emitter mounted on host. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Emitter mounted on host.")] + EmitterMountedOnHost = 7, + + /// + /// Mobile command and control entity carried aboard host. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mobile command and control entity carried aboard host.")] + MobileCommandAndControlEntityCarriedAboardHost = 8, + + /// + /// Entity stationed at position with respect to host. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Entity stationed at position with respect to host.")] + EntityStationedAtPositionWithRespectToHost = 9, + + /// + /// Team member in formation with. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Team member in formation with.")] + TeamMemberInFormationWith = 10 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/PartOfPosition.cs b/Libs/CsharpDis6/Enumerations/Entity.Management/PartOfPosition.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/PartOfPosition.cs rename to Libs/CsharpDis6/Enumerations/Entity.Management/PartOfPosition.cs index f76e8d5..2efa4e5 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/PartOfPosition.cs +++ b/Libs/CsharpDis6/Enumerations/Entity.Management/PartOfPosition.cs @@ -1,59 +1,59 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Entity.Management -{ - /// - /// Enumeration values for PartOfPosition (eman.ispartof.position, Position, - /// section 11.2.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum PartOfPosition : ushort - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// On top of. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("On top of.")] - OnTopOf = 1, - - /// - /// Inside of. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Inside of.")] - InsideOf = 2 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Entity.Management +{ + /// + /// Enumeration values for PartOfPosition (eman.ispartof.position, Position, + /// section 11.2.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum PartOfPosition : ushort + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// On top of. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("On top of.")] + OnTopOf = 1, + + /// + /// Inside of. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Inside of.")] + InsideOf = 2 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/PartOfStationName.cs b/Libs/CsharpDis6/Enumerations/Entity.Management/PartOfStationName.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/PartOfStationName.cs rename to Libs/CsharpDis6/Enumerations/Entity.Management/PartOfStationName.cs index 43e15a4..ab16703 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/PartOfStationName.cs +++ b/Libs/CsharpDis6/Enumerations/Entity.Management/PartOfStationName.cs @@ -1,199 +1,199 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Entity.Management -{ - /// - /// Enumeration values for PartOfStationName (eman.ispartof.stationname, Station Name, - /// section 11.2.3) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum PartOfStationName : ushort - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Aircraft wingstation. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Aircraft wingstation.")] - AircraftWingstation = 1, - - /// - /// Ship's forward gunmount (starboard). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ship's forward gunmount (starboard).")] - ShipSForwardGunmountStarboard = 2, - - /// - /// Ship's forward gunmount (port). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ship's forward gunmount (port).")] - ShipSForwardGunmountPort = 3, - - /// - /// Ship's forward gunmount (centerline). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ship's forward gunmount (centerline).")] - ShipSForwardGunmountCenterline = 4, - - /// - /// Ship's aft gunmount (starboard). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ship's aft gunmount (starboard).")] - ShipSAftGunmountStarboard = 5, - - /// - /// Ship's aft gunmount (port). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ship's aft gunmount (port).")] - ShipSAftGunmountPort = 6, - - /// - /// Ship's aft gunmount (centerline). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ship's aft gunmount (centerline).")] - ShipSAftGunmountCenterline = 7, - - /// - /// Forward torpedo tube. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Forward torpedo tube.")] - ForwardTorpedoTube = 8, - - /// - /// Aft torpedo tube. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Aft torpedo tube.")] - AftTorpedoTube = 9, - - /// - /// Bomb bay. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Bomb bay.")] - BombBay = 10, - - /// - /// Cargo bay. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Cargo bay.")] - CargoBay = 11, - - /// - /// Truck bed. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Truck bed.")] - TruckBed = 12, - - /// - /// Trailer bed. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Trailer bed.")] - TrailerBed = 13, - - /// - /// Well deck. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Well deck.")] - WellDeck = 14, - - /// - /// On station - (RNG/BRG). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("On station - (RNG/BRG).")] - OnStationRNGBRG = 15, - - /// - /// On station - (x,y,z). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("On station - (x,y,z).")] - OnStationXYZ = 16 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Entity.Management +{ + /// + /// Enumeration values for PartOfStationName (eman.ispartof.stationname, Station Name, + /// section 11.2.3) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum PartOfStationName : ushort + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Aircraft wingstation. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Aircraft wingstation.")] + AircraftWingstation = 1, + + /// + /// Ship's forward gunmount (starboard). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ship's forward gunmount (starboard).")] + ShipSForwardGunmountStarboard = 2, + + /// + /// Ship's forward gunmount (port). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ship's forward gunmount (port).")] + ShipSForwardGunmountPort = 3, + + /// + /// Ship's forward gunmount (centerline). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ship's forward gunmount (centerline).")] + ShipSForwardGunmountCenterline = 4, + + /// + /// Ship's aft gunmount (starboard). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ship's aft gunmount (starboard).")] + ShipSAftGunmountStarboard = 5, + + /// + /// Ship's aft gunmount (port). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ship's aft gunmount (port).")] + ShipSAftGunmountPort = 6, + + /// + /// Ship's aft gunmount (centerline). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ship's aft gunmount (centerline).")] + ShipSAftGunmountCenterline = 7, + + /// + /// Forward torpedo tube. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Forward torpedo tube.")] + ForwardTorpedoTube = 8, + + /// + /// Aft torpedo tube. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Aft torpedo tube.")] + AftTorpedoTube = 9, + + /// + /// Bomb bay. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Bomb bay.")] + BombBay = 10, + + /// + /// Cargo bay. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Cargo bay.")] + CargoBay = 11, + + /// + /// Truck bed. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Truck bed.")] + TruckBed = 12, + + /// + /// Trailer bed. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Trailer bed.")] + TrailerBed = 13, + + /// + /// Well deck. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Well deck.")] + WellDeck = 14, + + /// + /// On station - (RNG/BRG). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("On station - (RNG/BRG).")] + OnStationRNGBRG = 15, + + /// + /// On station - (x,y,z). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("On station - (x,y,z).")] + OnStationXYZ = 16 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/TransferType.cs b/Libs/CsharpDis6/Enumerations/Entity.Management/TransferType.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/TransferType.cs rename to Libs/CsharpDis6/Enumerations/Entity.Management/TransferType.cs index b5d3214..06c82a3 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Entity.Management/TransferType.cs +++ b/Libs/CsharpDis6/Enumerations/Entity.Management/TransferType.cs @@ -1,109 +1,109 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Entity.Management -{ - /// - /// Enumeration values for TransferType (eman.tc.transfertype, Transfer Type, - /// section 11.4.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum TransferType : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Controlling application requests transfer of an entity. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Controlling application requests transfer of an entity.")] - ControllingApplicationRequestsTransferOfAnEntity = 1, - - /// - /// Application desiring control requests transfer of an entity. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Application desiring control requests transfer of an entity.")] - ApplicationDesiringControlRequestsTransferOfAnEntity = 2, - - /// - /// Mutual exchange / swap of an entity. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mutual exchange / swap of an entity.")] - MutualExchangeSwapOfAnEntity = 3, - - /// - /// Controlling application requests transfer of an environmental process. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Controlling application requests transfer of an environmental process.")] - ControllingApplicationRequestsTransferOfAnEnvironmentalProcess = 4, - - /// - /// Application desiring controls requests transfer of an environmental process. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Application desiring controls requests transfer of an environmental process.")] - ApplicationDesiringControlsRequestsTransferOfAnEnvironmentalProcess = 5, - - /// - /// Mutual exchange / swap of an environmental. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mutual exchange / swap of an environmental.")] - MutualExchangeSwapOfAnEnvironmental = 6, - - /// - /// Cancel transfer. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Cancel transfer.")] - CancelTransfer = 7 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Entity.Management +{ + /// + /// Enumeration values for TransferType (eman.tc.transfertype, Transfer Type, + /// section 11.4.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum TransferType : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Controlling application requests transfer of an entity. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Controlling application requests transfer of an entity.")] + ControllingApplicationRequestsTransferOfAnEntity = 1, + + /// + /// Application desiring control requests transfer of an entity. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Application desiring control requests transfer of an entity.")] + ApplicationDesiringControlRequestsTransferOfAnEntity = 2, + + /// + /// Mutual exchange / swap of an entity. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mutual exchange / swap of an entity.")] + MutualExchangeSwapOfAnEntity = 3, + + /// + /// Controlling application requests transfer of an environmental process. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Controlling application requests transfer of an environmental process.")] + ControllingApplicationRequestsTransferOfAnEnvironmentalProcess = 4, + + /// + /// Application desiring controls requests transfer of an environmental process. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Application desiring controls requests transfer of an environmental process.")] + ApplicationDesiringControlsRequestsTransferOfAnEnvironmentalProcess = 5, + + /// + /// Mutual exchange / swap of an environmental. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mutual exchange / swap of an environmental.")] + MutualExchangeSwapOfAnEnvironmental = 6, + + /// + /// Cancel transfer. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Cancel transfer.")] + CancelTransfer = 7 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/AirPlatformAppearance.cs b/Libs/CsharpDis6/Enumerations/EntityState.Appearance/AirPlatformAppearance.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/AirPlatformAppearance.cs rename to Libs/CsharpDis6/Enumerations/EntityState.Appearance/AirPlatformAppearance.cs index c72b42d..476be9e 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/AirPlatformAppearance.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState.Appearance/AirPlatformAppearance.cs @@ -1,928 +1,928 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState.Appearance -{ - /// - /// Enumeration values for AirPlatformAppearance (es.appear.platform.air, Platforms of the Air Domain, - /// section 4.3.1.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public struct AirPlatformAppearance - { - /// - /// Describes the paint scheme of an entity - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the paint scheme of an entity")] - public enum PaintSchemeValue : uint - { - /// - /// Uniform color - /// - UniformColor = 0, - - /// - /// Camouflage - /// - Camouflage = 1 - } - - /// - /// Describes characteristics of Propulsion kill - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes characteristics of Propulsion kill")] - public enum PropulsionValue : uint - { - /// - /// No Propulsion kill - /// - NoPropulsionKill = 0, - - /// - /// Propulsion kill - /// - PropulsionKill = 1 - } - - /// - /// Describes the damaged appearance of an entity - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the damaged appearance of an entity")] - public enum DamageValue : uint - { - /// - /// No damage - /// - NoDamage = 0, - - /// - /// Slight damage - /// - SlightDamage = 1, - - /// - /// Moderate damage - /// - ModerateDamage = 2, - - /// - /// Destroyed - /// - Destroyed = 3 - } - - /// - /// Describes status or location of smoke emanating from an entity - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes status or location of smoke emanating from an entity")] - public enum SmokeValue : uint - { - /// - /// Not smoking - /// - NotSmoking = 0, - - /// - /// Smoke plume rising from the entity - /// - SmokePlumeRisingFromTheEntity = 1, - - /// - /// Entity is emitting engine smoke - /// - EntityIsEmittingEngineSmoke = 2, - - /// - /// Entity is emitting engine smoke, and smoke plume is rising from the entity - /// - EntityIsEmittingEngineSmokeAndSmokePlumeIsRisingFromTheEntity = 3 - } - - /// - /// Describes the size of the contrails or ionization trailing effects from an entity - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the size of the contrails or ionization trailing effects from an entity")] - public enum TrailingEffectsValue : uint - { - /// - /// None - /// - None = 0, - - /// - /// Small - /// - Small = 1, - - /// - /// Medium - /// - Medium = 2, - - /// - /// Large - /// - Large = 3 - } - - /// - /// Describes the state of the canopy - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the state of the canopy")] - public enum CanopyValue : uint - { - /// - /// Not applicable - /// - NotApplicable = 0, - - /// - /// Canopy is closed - /// - CanopyIsClosed = 1, - - /// - /// null - /// - Unknown = 2, - - /// - /// Canopy is open - /// - CanopyIsOpen = 4, - - /// - /// null - /// - Unknown2 = 5 - } - - /// - /// Describes whether Landing Lights are on or off. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes whether Landing Lights are on or off.")] - public enum LandingLightsValue : uint - { - /// - /// Off - /// - Off = 0, - - /// - /// On - /// - On = 1 - } - - /// - /// Describes whether Navigation Lights are on or off. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes whether Navigation Lights are on or off.")] - public enum NavigationLightsValue : uint - { - /// - /// Off - /// - Off = 0, - - /// - /// On - /// - On = 1 - } - - /// - /// Describes whether Anti-Collision Lights are on or off. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes whether Anti-Collision Lights are on or off.")] - public enum AntiCollisionLightsValue : uint - { - /// - /// Off - /// - Off = 0, - - /// - /// On - /// - On = 1 - } - - /// - /// Describes whether flames are trailing from an entity - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes whether flames are trailing from an entity")] - public enum FlamingValue : uint - { - /// - /// None - /// - None = 0, - - /// - /// Flames present - /// - FlamesPresent = 1 - } - - /// - /// Describes the status of an air platform's afterburner - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the status of an air platform's afterburner")] - public enum AfterburnerValue : uint - { - /// - /// Afterburner not on - /// - AfterburnerNotOn = 0, - - /// - /// Afterburner on - /// - AfterburnerOn = 1 - } - - /// - /// Describes the frozen status of a air platform - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the frozen status of a air platform")] - public enum FrozenStatusValue : uint - { - /// - /// Not frozen - /// - NotFrozen = 0, - - /// - /// Frozen (Frozen entities should not be dead-reckoned, i.e. they should be displayed as fixed at the current location even if nonzero velocity, acceleration or rotation data is received from the frozen entity) - /// - FrozenFrozenEntitiesShouldNotBeDeadReckonedIETheyShouldBeDisplayedAsFixedAtTheCurrentLocationEvenIfNonzeroVelocityAccelerationOrRotationDataIsReceivedFromTheFrozenEntity = 1 - } - - /// - /// Describes the power-plant status of platform - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the power-plant status of platform")] - public enum PowerPlantStatusValue : uint - { - /// - /// Power plant off - /// - PowerPlantOff = 0, - - /// - /// Power plant on - /// - PowerPlantOn = 1 - } - - /// - /// Describes the state of a air platform - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the state of a air platform")] - public enum StateValue : uint - { - /// - /// Active - /// - Active = 0, - - /// - /// Deactivated - /// - Deactivated = 1 - } - - /// - /// Describes whether Formation Lights are on or off. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes whether Formation Lights are on or off.")] - public enum FormationLightsValue : uint - { - /// - /// Off - /// - Off = 0, - - /// - /// On - /// - On = 1 - } - - /// - /// Describes whether Spot Lights are on or off. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes whether Spot Lights are on or off.")] - public enum SpotLightsValue : uint - { - /// - /// Off - /// - Off = 0, - - /// - /// On - /// - On = 1 - } - - /// - /// Describes whether Interior Lights are on or off. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes whether Interior Lights are on or off.")] - public enum InteriorLightsValue : uint - { - /// - /// Off - /// - Off = 0, - - /// - /// On - /// - On = 1 - } - - private AirPlatformAppearance.PaintSchemeValue paintScheme; - private AirPlatformAppearance.PropulsionValue propulsion; - private AirPlatformAppearance.DamageValue damage; - private AirPlatformAppearance.SmokeValue smoke; - private AirPlatformAppearance.TrailingEffectsValue trailingEffects; - private AirPlatformAppearance.CanopyValue canopy; - private AirPlatformAppearance.LandingLightsValue landingLights; - private AirPlatformAppearance.NavigationLightsValue navigationLights; - private AirPlatformAppearance.AntiCollisionLightsValue antiCollisionLights; - private AirPlatformAppearance.FlamingValue flaming; - private AirPlatformAppearance.AfterburnerValue afterburner; - private AirPlatformAppearance.FrozenStatusValue frozenStatus; - private AirPlatformAppearance.PowerPlantStatusValue powerPlantStatus; - private AirPlatformAppearance.StateValue state; - private AirPlatformAppearance.FormationLightsValue formationLights; - private AirPlatformAppearance.SpotLightsValue spotLights; - private AirPlatformAppearance.InteriorLightsValue interiorLights; - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(AirPlatformAppearance left, AirPlatformAppearance right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator ==(AirPlatformAppearance left, AirPlatformAppearance right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - // If parameters are null return false (cast to object to prevent recursive loop!) - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The scheme instance. - /// The result of the conversion. - public static explicit operator uint(AirPlatformAppearance obj) - { - return obj.ToUInt32(); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The uint value. - /// The result of the conversion. - public static explicit operator AirPlatformAppearance(uint value) - { - return AirPlatformAppearance.FromUInt32(value); - } - - /// - /// Creates the instance from the byte array. - /// - /// The array which holds the values for the . - /// The starting position within value. - /// The instance, represented by a byte array. - /// if the array is null. - /// if the index is lower than 0 or greater or equal than number of elements in array. - public static AirPlatformAppearance FromByteArray(byte[] array, int index) - { - if (array == null) - { - throw new ArgumentNullException("array"); - } - - if (index < 0 || - index > array.Length - 1 || - index + 4 > array.Length - 1) - { - throw new IndexOutOfRangeException(); - } - - return FromUInt32(BitConverter.ToUInt32(array, index)); - } - - /// - /// Creates the instance from the uint value. - /// - /// The uint value which represents the instance. - /// The instance, represented by the uint value. - public static AirPlatformAppearance FromUInt32(uint value) - { - AirPlatformAppearance ps = new AirPlatformAppearance(); - - uint mask0 = 0x0001; - byte shift0 = 0; - uint newValue0 = (value & mask0) >> shift0; - ps.PaintScheme = (AirPlatformAppearance.PaintSchemeValue)newValue0; - - uint mask1 = 0x0002; - byte shift1 = 1; - uint newValue1 = (value & mask1) >> shift1; - ps.Propulsion = (AirPlatformAppearance.PropulsionValue)newValue1; - - uint mask3 = 0x0018; - byte shift3 = 3; - uint newValue3 = (value & mask3) >> shift3; - ps.Damage = (AirPlatformAppearance.DamageValue)newValue3; - - uint mask4 = 0x0060; - byte shift4 = 5; - uint newValue4 = (value & mask4) >> shift4; - ps.Smoke = (AirPlatformAppearance.SmokeValue)newValue4; - - uint mask5 = 0x0180; - byte shift5 = 7; - uint newValue5 = (value & mask5) >> shift5; - ps.TrailingEffects = (AirPlatformAppearance.TrailingEffectsValue)newValue5; - - uint mask6 = 0x0e00; - byte shift6 = 9; - uint newValue6 = (value & mask6) >> shift6; - ps.Canopy = (AirPlatformAppearance.CanopyValue)newValue6; - - uint mask7 = 0x1000; - byte shift7 = 12; - uint newValue7 = (value & mask7) >> shift7; - ps.LandingLights = (AirPlatformAppearance.LandingLightsValue)newValue7; - - uint mask8 = 0x2000; - byte shift8 = 13; - uint newValue8 = (value & mask8) >> shift8; - ps.NavigationLights = (AirPlatformAppearance.NavigationLightsValue)newValue8; - - uint mask9 = 0x4000; - byte shift9 = 14; - uint newValue9 = (value & mask9) >> shift9; - ps.AntiCollisionLights = (AirPlatformAppearance.AntiCollisionLightsValue)newValue9; - - uint mask10 = 0x8000; - byte shift10 = 15; - uint newValue10 = (value & mask10) >> shift10; - ps.Flaming = (AirPlatformAppearance.FlamingValue)newValue10; - - uint mask11 = 0x10000; - byte shift11 = 16; - uint newValue11 = (value & mask11) >> shift11; - ps.Afterburner = (AirPlatformAppearance.AfterburnerValue)newValue11; - - uint mask13 = 0x200000; - byte shift13 = 21; - uint newValue13 = (value & mask13) >> shift13; - ps.FrozenStatus = (AirPlatformAppearance.FrozenStatusValue)newValue13; - - uint mask14 = 0x400000; - byte shift14 = 22; - uint newValue14 = (value & mask14) >> shift14; - ps.PowerPlantStatus = (AirPlatformAppearance.PowerPlantStatusValue)newValue14; - - uint mask15 = 0x800000; - byte shift15 = 23; - uint newValue15 = (value & mask15) >> shift15; - ps.State = (AirPlatformAppearance.StateValue)newValue15; - - uint mask16 = 0x1000000; - byte shift16 = 24; - uint newValue16 = (value & mask16) >> shift16; - ps.FormationLights = (AirPlatformAppearance.FormationLightsValue)newValue16; - - uint mask18 = 0x10000000; - byte shift18 = 28; - uint newValue18 = (value & mask18) >> shift18; - ps.SpotLights = (AirPlatformAppearance.SpotLightsValue)newValue18; - - uint mask19 = 0x20000000; - byte shift19 = 29; - uint newValue19 = (value & mask19) >> shift19; - ps.InteriorLights = (AirPlatformAppearance.InteriorLightsValue)newValue19; - - return ps; - } - - /// - /// Gets or sets the paintscheme. - /// - /// The paintscheme. - public AirPlatformAppearance.PaintSchemeValue PaintScheme - { - get { return this.paintScheme; } - set { this.paintScheme = value; } - } - - /// - /// Gets or sets the propulsion. - /// - /// The propulsion. - public AirPlatformAppearance.PropulsionValue Propulsion - { - get { return this.propulsion; } - set { this.propulsion = value; } - } - - /// - /// Gets or sets the damage. - /// - /// The damage. - public AirPlatformAppearance.DamageValue Damage - { - get { return this.damage; } - set { this.damage = value; } - } - - /// - /// Gets or sets the smoke. - /// - /// The smoke. - public AirPlatformAppearance.SmokeValue Smoke - { - get { return this.smoke; } - set { this.smoke = value; } - } - - /// - /// Gets or sets the trailingeffects. - /// - /// The trailingeffects. - public AirPlatformAppearance.TrailingEffectsValue TrailingEffects - { - get { return this.trailingEffects; } - set { this.trailingEffects = value; } - } - - /// - /// Gets or sets the canopy. - /// - /// The canopy. - public AirPlatformAppearance.CanopyValue Canopy - { - get { return this.canopy; } - set { this.canopy = value; } - } - - /// - /// Gets or sets the landinglights. - /// - /// The landinglights. - public AirPlatformAppearance.LandingLightsValue LandingLights - { - get { return this.landingLights; } - set { this.landingLights = value; } - } - - /// - /// Gets or sets the navigationlights. - /// - /// The navigationlights. - public AirPlatformAppearance.NavigationLightsValue NavigationLights - { - get { return this.navigationLights; } - set { this.navigationLights = value; } - } - - /// - /// Gets or sets the anticollisionlights. - /// - /// The anticollisionlights. - public AirPlatformAppearance.AntiCollisionLightsValue AntiCollisionLights - { - get { return this.antiCollisionLights; } - set { this.antiCollisionLights = value; } - } - - /// - /// Gets or sets the flaming. - /// - /// The flaming. - public AirPlatformAppearance.FlamingValue Flaming - { - get { return this.flaming; } - set { this.flaming = value; } - } - - /// - /// Gets or sets the afterburner. - /// - /// The afterburner. - public AirPlatformAppearance.AfterburnerValue Afterburner - { - get { return this.afterburner; } - set { this.afterburner = value; } - } - - /// - /// Gets or sets the frozenstatus. - /// - /// The frozenstatus. - public AirPlatformAppearance.FrozenStatusValue FrozenStatus - { - get { return this.frozenStatus; } - set { this.frozenStatus = value; } - } - - /// - /// Gets or sets the powerplantstatus. - /// - /// The powerplantstatus. - public AirPlatformAppearance.PowerPlantStatusValue PowerPlantStatus - { - get { return this.powerPlantStatus; } - set { this.powerPlantStatus = value; } - } - - /// - /// Gets or sets the state. - /// - /// The state. - public AirPlatformAppearance.StateValue State - { - get { return this.state; } - set { this.state = value; } - } - - /// - /// Gets or sets the formationlights. - /// - /// The formationlights. - public AirPlatformAppearance.FormationLightsValue FormationLights - { - get { return this.formationLights; } - set { this.formationLights = value; } - } - - /// - /// Gets or sets the spotlights. - /// - /// The spotlights. - public AirPlatformAppearance.SpotLightsValue SpotLights - { - get { return this.spotLights; } - set { this.spotLights = value; } - } - - /// - /// Gets or sets the interiorlights. - /// - /// The interiorlights. - public AirPlatformAppearance.InteriorLightsValue InteriorLights - { - get { return this.interiorLights; } - set { this.interiorLights = value; } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - if (obj == null) - { - return false; - } - - if (!(obj is AirPlatformAppearance)) - { - return false; - } - - return this.Equals((AirPlatformAppearance)obj); - } - - /// - /// Determines whether the specified instance is equal to this instance. - /// - /// The instance to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public bool Equals(AirPlatformAppearance other) - { - // If parameter is null return false (cast to object to prevent recursive loop!) - if ((object)other == null) - { - return false; - } - - return - this.PaintScheme == other.PaintScheme && - this.Propulsion == other.Propulsion && - this.Damage == other.Damage && - this.Smoke == other.Smoke && - this.TrailingEffects == other.TrailingEffects && - this.Canopy == other.Canopy && - this.LandingLights == other.LandingLights && - this.NavigationLights == other.NavigationLights && - this.AntiCollisionLights == other.AntiCollisionLights && - this.Flaming == other.Flaming && - this.Afterburner == other.Afterburner && - this.FrozenStatus == other.FrozenStatus && - this.PowerPlantStatus == other.PowerPlantStatus && - this.State == other.State && - this.FormationLights == other.FormationLights && - this.SpotLights == other.SpotLights && - this.InteriorLights == other.InteriorLights; - } - - /// - /// Converts the instance of to the byte array. - /// - /// The byte array representing the current instance. - public byte[] ToByteArray() - { - return BitConverter.GetBytes(this.ToUInt32()); - } - - /// - /// Converts the instance of to the uint value. - /// - /// The uint value representing the current instance. - public uint ToUInt32() - { - uint val = 0; - - val |= (uint)((uint)this.PaintScheme << 0); - val |= (uint)((uint)this.Propulsion << 1); - val |= (uint)((uint)this.Damage << 3); - val |= (uint)((uint)this.Smoke << 5); - val |= (uint)((uint)this.TrailingEffects << 7); - val |= (uint)((uint)this.Canopy << 9); - val |= (uint)((uint)this.LandingLights << 12); - val |= (uint)((uint)this.NavigationLights << 13); - val |= (uint)((uint)this.AntiCollisionLights << 14); - val |= (uint)((uint)this.Flaming << 15); - val |= (uint)((uint)this.Afterburner << 16); - val |= (uint)((uint)this.FrozenStatus << 21); - val |= (uint)((uint)this.PowerPlantStatus << 22); - val |= (uint)((uint)this.State << 23); - val |= (uint)((uint)this.FormationLights << 24); - val |= (uint)((uint)this.SpotLights << 28); - val |= (uint)((uint)this.InteriorLights << 29); - - return val; - } - - /// - /// Returns a hash code for this instance. - /// - /// - /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - /// - public override int GetHashCode() - { - int hash = 17; - - // Overflow is fine, just wrap - unchecked - { - hash = (hash * 29) + this.PaintScheme.GetHashCode(); - hash = (hash * 29) + this.Propulsion.GetHashCode(); - hash = (hash * 29) + this.Damage.GetHashCode(); - hash = (hash * 29) + this.Smoke.GetHashCode(); - hash = (hash * 29) + this.TrailingEffects.GetHashCode(); - hash = (hash * 29) + this.Canopy.GetHashCode(); - hash = (hash * 29) + this.LandingLights.GetHashCode(); - hash = (hash * 29) + this.NavigationLights.GetHashCode(); - hash = (hash * 29) + this.AntiCollisionLights.GetHashCode(); - hash = (hash * 29) + this.Flaming.GetHashCode(); - hash = (hash * 29) + this.Afterburner.GetHashCode(); - hash = (hash * 29) + this.FrozenStatus.GetHashCode(); - hash = (hash * 29) + this.PowerPlantStatus.GetHashCode(); - hash = (hash * 29) + this.State.GetHashCode(); - hash = (hash * 29) + this.FormationLights.GetHashCode(); - hash = (hash * 29) + this.SpotLights.GetHashCode(); - hash = (hash * 29) + this.InteriorLights.GetHashCode(); - } - - return hash; - } - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState.Appearance +{ + /// + /// Enumeration values for AirPlatformAppearance (es.appear.platform.air, Platforms of the Air Domain, + /// section 4.3.1.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public struct AirPlatformAppearance + { + /// + /// Describes the paint scheme of an entity + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the paint scheme of an entity")] + public enum PaintSchemeValue : uint + { + /// + /// Uniform color + /// + UniformColor = 0, + + /// + /// Camouflage + /// + Camouflage = 1 + } + + /// + /// Describes characteristics of Propulsion kill + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes characteristics of Propulsion kill")] + public enum PropulsionValue : uint + { + /// + /// No Propulsion kill + /// + NoPropulsionKill = 0, + + /// + /// Propulsion kill + /// + PropulsionKill = 1 + } + + /// + /// Describes the damaged appearance of an entity + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the damaged appearance of an entity")] + public enum DamageValue : uint + { + /// + /// No damage + /// + NoDamage = 0, + + /// + /// Slight damage + /// + SlightDamage = 1, + + /// + /// Moderate damage + /// + ModerateDamage = 2, + + /// + /// Destroyed + /// + Destroyed = 3 + } + + /// + /// Describes status or location of smoke emanating from an entity + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes status or location of smoke emanating from an entity")] + public enum SmokeValue : uint + { + /// + /// Not smoking + /// + NotSmoking = 0, + + /// + /// Smoke plume rising from the entity + /// + SmokePlumeRisingFromTheEntity = 1, + + /// + /// Entity is emitting engine smoke + /// + EntityIsEmittingEngineSmoke = 2, + + /// + /// Entity is emitting engine smoke, and smoke plume is rising from the entity + /// + EntityIsEmittingEngineSmokeAndSmokePlumeIsRisingFromTheEntity = 3 + } + + /// + /// Describes the size of the contrails or ionization trailing effects from an entity + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the size of the contrails or ionization trailing effects from an entity")] + public enum TrailingEffectsValue : uint + { + /// + /// None + /// + None = 0, + + /// + /// Small + /// + Small = 1, + + /// + /// Medium + /// + Medium = 2, + + /// + /// Large + /// + Large = 3 + } + + /// + /// Describes the state of the canopy + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the state of the canopy")] + public enum CanopyValue : uint + { + /// + /// Not applicable + /// + NotApplicable = 0, + + /// + /// Canopy is closed + /// + CanopyIsClosed = 1, + + /// + /// null + /// + Unknown = 2, + + /// + /// Canopy is open + /// + CanopyIsOpen = 4, + + /// + /// null + /// + Unknown2 = 5 + } + + /// + /// Describes whether Landing Lights are on or off. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes whether Landing Lights are on or off.")] + public enum LandingLightsValue : uint + { + /// + /// Off + /// + Off = 0, + + /// + /// On + /// + On = 1 + } + + /// + /// Describes whether Navigation Lights are on or off. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes whether Navigation Lights are on or off.")] + public enum NavigationLightsValue : uint + { + /// + /// Off + /// + Off = 0, + + /// + /// On + /// + On = 1 + } + + /// + /// Describes whether Anti-Collision Lights are on or off. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes whether Anti-Collision Lights are on or off.")] + public enum AntiCollisionLightsValue : uint + { + /// + /// Off + /// + Off = 0, + + /// + /// On + /// + On = 1 + } + + /// + /// Describes whether flames are trailing from an entity + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes whether flames are trailing from an entity")] + public enum FlamingValue : uint + { + /// + /// None + /// + None = 0, + + /// + /// Flames present + /// + FlamesPresent = 1 + } + + /// + /// Describes the status of an air platform's afterburner + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the status of an air platform's afterburner")] + public enum AfterburnerValue : uint + { + /// + /// Afterburner not on + /// + AfterburnerNotOn = 0, + + /// + /// Afterburner on + /// + AfterburnerOn = 1 + } + + /// + /// Describes the frozen status of a air platform + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the frozen status of a air platform")] + public enum FrozenStatusValue : uint + { + /// + /// Not frozen + /// + NotFrozen = 0, + + /// + /// Frozen (Frozen entities should not be dead-reckoned, i.e. they should be displayed as fixed at the current location even if nonzero velocity, acceleration or rotation data is received from the frozen entity) + /// + FrozenFrozenEntitiesShouldNotBeDeadReckonedIETheyShouldBeDisplayedAsFixedAtTheCurrentLocationEvenIfNonzeroVelocityAccelerationOrRotationDataIsReceivedFromTheFrozenEntity = 1 + } + + /// + /// Describes the power-plant status of platform + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the power-plant status of platform")] + public enum PowerPlantStatusValue : uint + { + /// + /// Power plant off + /// + PowerPlantOff = 0, + + /// + /// Power plant on + /// + PowerPlantOn = 1 + } + + /// + /// Describes the state of a air platform + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the state of a air platform")] + public enum StateValue : uint + { + /// + /// Active + /// + Active = 0, + + /// + /// Deactivated + /// + Deactivated = 1 + } + + /// + /// Describes whether Formation Lights are on or off. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes whether Formation Lights are on or off.")] + public enum FormationLightsValue : uint + { + /// + /// Off + /// + Off = 0, + + /// + /// On + /// + On = 1 + } + + /// + /// Describes whether Spot Lights are on or off. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes whether Spot Lights are on or off.")] + public enum SpotLightsValue : uint + { + /// + /// Off + /// + Off = 0, + + /// + /// On + /// + On = 1 + } + + /// + /// Describes whether Interior Lights are on or off. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes whether Interior Lights are on or off.")] + public enum InteriorLightsValue : uint + { + /// + /// Off + /// + Off = 0, + + /// + /// On + /// + On = 1 + } + + private AirPlatformAppearance.PaintSchemeValue paintScheme; + private AirPlatformAppearance.PropulsionValue propulsion; + private AirPlatformAppearance.DamageValue damage; + private AirPlatformAppearance.SmokeValue smoke; + private AirPlatformAppearance.TrailingEffectsValue trailingEffects; + private AirPlatformAppearance.CanopyValue canopy; + private AirPlatformAppearance.LandingLightsValue landingLights; + private AirPlatformAppearance.NavigationLightsValue navigationLights; + private AirPlatformAppearance.AntiCollisionLightsValue antiCollisionLights; + private AirPlatformAppearance.FlamingValue flaming; + private AirPlatformAppearance.AfterburnerValue afterburner; + private AirPlatformAppearance.FrozenStatusValue frozenStatus; + private AirPlatformAppearance.PowerPlantStatusValue powerPlantStatus; + private AirPlatformAppearance.StateValue state; + private AirPlatformAppearance.FormationLightsValue formationLights; + private AirPlatformAppearance.SpotLightsValue spotLights; + private AirPlatformAppearance.InteriorLightsValue interiorLights; + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(AirPlatformAppearance left, AirPlatformAppearance right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator ==(AirPlatformAppearance left, AirPlatformAppearance right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + // If parameters are null return false (cast to object to prevent recursive loop!) + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The scheme instance. + /// The result of the conversion. + public static explicit operator uint(AirPlatformAppearance obj) + { + return obj.ToUInt32(); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The uint value. + /// The result of the conversion. + public static explicit operator AirPlatformAppearance(uint value) + { + return AirPlatformAppearance.FromUInt32(value); + } + + /// + /// Creates the instance from the byte array. + /// + /// The array which holds the values for the . + /// The starting position within value. + /// The instance, represented by a byte array. + /// if the array is null. + /// if the index is lower than 0 or greater or equal than number of elements in array. + public static AirPlatformAppearance FromByteArray(byte[] array, int index) + { + if (array == null) + { + throw new ArgumentNullException("array"); + } + + if (index < 0 || + index > array.Length - 1 || + index + 4 > array.Length - 1) + { + throw new IndexOutOfRangeException(); + } + + return FromUInt32(BitConverter.ToUInt32(array, index)); + } + + /// + /// Creates the instance from the uint value. + /// + /// The uint value which represents the instance. + /// The instance, represented by the uint value. + public static AirPlatformAppearance FromUInt32(uint value) + { + AirPlatformAppearance ps = new AirPlatformAppearance(); + + uint mask0 = 0x0001; + byte shift0 = 0; + uint newValue0 = (value & mask0) >> shift0; + ps.PaintScheme = (AirPlatformAppearance.PaintSchemeValue)newValue0; + + uint mask1 = 0x0002; + byte shift1 = 1; + uint newValue1 = (value & mask1) >> shift1; + ps.Propulsion = (AirPlatformAppearance.PropulsionValue)newValue1; + + uint mask3 = 0x0018; + byte shift3 = 3; + uint newValue3 = (value & mask3) >> shift3; + ps.Damage = (AirPlatformAppearance.DamageValue)newValue3; + + uint mask4 = 0x0060; + byte shift4 = 5; + uint newValue4 = (value & mask4) >> shift4; + ps.Smoke = (AirPlatformAppearance.SmokeValue)newValue4; + + uint mask5 = 0x0180; + byte shift5 = 7; + uint newValue5 = (value & mask5) >> shift5; + ps.TrailingEffects = (AirPlatformAppearance.TrailingEffectsValue)newValue5; + + uint mask6 = 0x0e00; + byte shift6 = 9; + uint newValue6 = (value & mask6) >> shift6; + ps.Canopy = (AirPlatformAppearance.CanopyValue)newValue6; + + uint mask7 = 0x1000; + byte shift7 = 12; + uint newValue7 = (value & mask7) >> shift7; + ps.LandingLights = (AirPlatformAppearance.LandingLightsValue)newValue7; + + uint mask8 = 0x2000; + byte shift8 = 13; + uint newValue8 = (value & mask8) >> shift8; + ps.NavigationLights = (AirPlatformAppearance.NavigationLightsValue)newValue8; + + uint mask9 = 0x4000; + byte shift9 = 14; + uint newValue9 = (value & mask9) >> shift9; + ps.AntiCollisionLights = (AirPlatformAppearance.AntiCollisionLightsValue)newValue9; + + uint mask10 = 0x8000; + byte shift10 = 15; + uint newValue10 = (value & mask10) >> shift10; + ps.Flaming = (AirPlatformAppearance.FlamingValue)newValue10; + + uint mask11 = 0x10000; + byte shift11 = 16; + uint newValue11 = (value & mask11) >> shift11; + ps.Afterburner = (AirPlatformAppearance.AfterburnerValue)newValue11; + + uint mask13 = 0x200000; + byte shift13 = 21; + uint newValue13 = (value & mask13) >> shift13; + ps.FrozenStatus = (AirPlatformAppearance.FrozenStatusValue)newValue13; + + uint mask14 = 0x400000; + byte shift14 = 22; + uint newValue14 = (value & mask14) >> shift14; + ps.PowerPlantStatus = (AirPlatformAppearance.PowerPlantStatusValue)newValue14; + + uint mask15 = 0x800000; + byte shift15 = 23; + uint newValue15 = (value & mask15) >> shift15; + ps.State = (AirPlatformAppearance.StateValue)newValue15; + + uint mask16 = 0x1000000; + byte shift16 = 24; + uint newValue16 = (value & mask16) >> shift16; + ps.FormationLights = (AirPlatformAppearance.FormationLightsValue)newValue16; + + uint mask18 = 0x10000000; + byte shift18 = 28; + uint newValue18 = (value & mask18) >> shift18; + ps.SpotLights = (AirPlatformAppearance.SpotLightsValue)newValue18; + + uint mask19 = 0x20000000; + byte shift19 = 29; + uint newValue19 = (value & mask19) >> shift19; + ps.InteriorLights = (AirPlatformAppearance.InteriorLightsValue)newValue19; + + return ps; + } + + /// + /// Gets or sets the paintscheme. + /// + /// The paintscheme. + public AirPlatformAppearance.PaintSchemeValue PaintScheme + { + get { return this.paintScheme; } + set { this.paintScheme = value; } + } + + /// + /// Gets or sets the propulsion. + /// + /// The propulsion. + public AirPlatformAppearance.PropulsionValue Propulsion + { + get { return this.propulsion; } + set { this.propulsion = value; } + } + + /// + /// Gets or sets the damage. + /// + /// The damage. + public AirPlatformAppearance.DamageValue Damage + { + get { return this.damage; } + set { this.damage = value; } + } + + /// + /// Gets or sets the smoke. + /// + /// The smoke. + public AirPlatformAppearance.SmokeValue Smoke + { + get { return this.smoke; } + set { this.smoke = value; } + } + + /// + /// Gets or sets the trailingeffects. + /// + /// The trailingeffects. + public AirPlatformAppearance.TrailingEffectsValue TrailingEffects + { + get { return this.trailingEffects; } + set { this.trailingEffects = value; } + } + + /// + /// Gets or sets the canopy. + /// + /// The canopy. + public AirPlatformAppearance.CanopyValue Canopy + { + get { return this.canopy; } + set { this.canopy = value; } + } + + /// + /// Gets or sets the landinglights. + /// + /// The landinglights. + public AirPlatformAppearance.LandingLightsValue LandingLights + { + get { return this.landingLights; } + set { this.landingLights = value; } + } + + /// + /// Gets or sets the navigationlights. + /// + /// The navigationlights. + public AirPlatformAppearance.NavigationLightsValue NavigationLights + { + get { return this.navigationLights; } + set { this.navigationLights = value; } + } + + /// + /// Gets or sets the anticollisionlights. + /// + /// The anticollisionlights. + public AirPlatformAppearance.AntiCollisionLightsValue AntiCollisionLights + { + get { return this.antiCollisionLights; } + set { this.antiCollisionLights = value; } + } + + /// + /// Gets or sets the flaming. + /// + /// The flaming. + public AirPlatformAppearance.FlamingValue Flaming + { + get { return this.flaming; } + set { this.flaming = value; } + } + + /// + /// Gets or sets the afterburner. + /// + /// The afterburner. + public AirPlatformAppearance.AfterburnerValue Afterburner + { + get { return this.afterburner; } + set { this.afterburner = value; } + } + + /// + /// Gets or sets the frozenstatus. + /// + /// The frozenstatus. + public AirPlatformAppearance.FrozenStatusValue FrozenStatus + { + get { return this.frozenStatus; } + set { this.frozenStatus = value; } + } + + /// + /// Gets or sets the powerplantstatus. + /// + /// The powerplantstatus. + public AirPlatformAppearance.PowerPlantStatusValue PowerPlantStatus + { + get { return this.powerPlantStatus; } + set { this.powerPlantStatus = value; } + } + + /// + /// Gets or sets the state. + /// + /// The state. + public AirPlatformAppearance.StateValue State + { + get { return this.state; } + set { this.state = value; } + } + + /// + /// Gets or sets the formationlights. + /// + /// The formationlights. + public AirPlatformAppearance.FormationLightsValue FormationLights + { + get { return this.formationLights; } + set { this.formationLights = value; } + } + + /// + /// Gets or sets the spotlights. + /// + /// The spotlights. + public AirPlatformAppearance.SpotLightsValue SpotLights + { + get { return this.spotLights; } + set { this.spotLights = value; } + } + + /// + /// Gets or sets the interiorlights. + /// + /// The interiorlights. + public AirPlatformAppearance.InteriorLightsValue InteriorLights + { + get { return this.interiorLights; } + set { this.interiorLights = value; } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (!(obj is AirPlatformAppearance)) + { + return false; + } + + return this.Equals((AirPlatformAppearance)obj); + } + + /// + /// Determines whether the specified instance is equal to this instance. + /// + /// The instance to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public bool Equals(AirPlatformAppearance other) + { + // If parameter is null return false (cast to object to prevent recursive loop!) + if ((object)other == null) + { + return false; + } + + return + this.PaintScheme == other.PaintScheme && + this.Propulsion == other.Propulsion && + this.Damage == other.Damage && + this.Smoke == other.Smoke && + this.TrailingEffects == other.TrailingEffects && + this.Canopy == other.Canopy && + this.LandingLights == other.LandingLights && + this.NavigationLights == other.NavigationLights && + this.AntiCollisionLights == other.AntiCollisionLights && + this.Flaming == other.Flaming && + this.Afterburner == other.Afterburner && + this.FrozenStatus == other.FrozenStatus && + this.PowerPlantStatus == other.PowerPlantStatus && + this.State == other.State && + this.FormationLights == other.FormationLights && + this.SpotLights == other.SpotLights && + this.InteriorLights == other.InteriorLights; + } + + /// + /// Converts the instance of to the byte array. + /// + /// The byte array representing the current instance. + public byte[] ToByteArray() + { + return BitConverter.GetBytes(this.ToUInt32()); + } + + /// + /// Converts the instance of to the uint value. + /// + /// The uint value representing the current instance. + public uint ToUInt32() + { + uint val = 0; + + val |= (uint)((uint)this.PaintScheme << 0); + val |= (uint)((uint)this.Propulsion << 1); + val |= (uint)((uint)this.Damage << 3); + val |= (uint)((uint)this.Smoke << 5); + val |= (uint)((uint)this.TrailingEffects << 7); + val |= (uint)((uint)this.Canopy << 9); + val |= (uint)((uint)this.LandingLights << 12); + val |= (uint)((uint)this.NavigationLights << 13); + val |= (uint)((uint)this.AntiCollisionLights << 14); + val |= (uint)((uint)this.Flaming << 15); + val |= (uint)((uint)this.Afterburner << 16); + val |= (uint)((uint)this.FrozenStatus << 21); + val |= (uint)((uint)this.PowerPlantStatus << 22); + val |= (uint)((uint)this.State << 23); + val |= (uint)((uint)this.FormationLights << 24); + val |= (uint)((uint)this.SpotLights << 28); + val |= (uint)((uint)this.InteriorLights << 29); + + return val; + } + + /// + /// Returns a hash code for this instance. + /// + /// + /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + /// + public override int GetHashCode() + { + int hash = 17; + + // Overflow is fine, just wrap + unchecked + { + hash = (hash * 29) + this.PaintScheme.GetHashCode(); + hash = (hash * 29) + this.Propulsion.GetHashCode(); + hash = (hash * 29) + this.Damage.GetHashCode(); + hash = (hash * 29) + this.Smoke.GetHashCode(); + hash = (hash * 29) + this.TrailingEffects.GetHashCode(); + hash = (hash * 29) + this.Canopy.GetHashCode(); + hash = (hash * 29) + this.LandingLights.GetHashCode(); + hash = (hash * 29) + this.NavigationLights.GetHashCode(); + hash = (hash * 29) + this.AntiCollisionLights.GetHashCode(); + hash = (hash * 29) + this.Flaming.GetHashCode(); + hash = (hash * 29) + this.Afterburner.GetHashCode(); + hash = (hash * 29) + this.FrozenStatus.GetHashCode(); + hash = (hash * 29) + this.PowerPlantStatus.GetHashCode(); + hash = (hash * 29) + this.State.GetHashCode(); + hash = (hash * 29) + this.FormationLights.GetHashCode(); + hash = (hash * 29) + this.SpotLights.GetHashCode(); + hash = (hash * 29) + this.InteriorLights.GetHashCode(); + } + + return hash; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/CulturalAppearance.cs b/Libs/CsharpDis6/Enumerations/EntityState.Appearance/CulturalAppearance.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/CulturalAppearance.cs rename to Libs/CsharpDis6/Enumerations/EntityState.Appearance/CulturalAppearance.cs index e766517..a4e6ab2 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/CulturalAppearance.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState.Appearance/CulturalAppearance.cs @@ -1,578 +1,578 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState.Appearance -{ - /// - /// Enumeration values for CulturalAppearance (es.appear.cultural, Cultural Features Kind, - /// section 4.3.5) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public struct CulturalAppearance - { - /// - /// Describes the damaged appearance of an entity - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the damaged appearance of an entity")] - public enum DamageValue : uint - { - /// - /// No damage - /// - NoDamage = 0, - - /// - /// Slight damage - /// - SlightDamage = 1, - - /// - /// Moderate damage - /// - ModerateDamage = 2, - - /// - /// Destroyed - /// - Destroyed = 3 - } - - /// - /// Describes status of smoke emanating from a Cultural Features object - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes status of smoke emanating from a Cultural Features object")] - public enum SmokeValue : uint - { - /// - /// Not smoking - /// - NotSmoking = 0, - - /// - /// Smoke plume rising from the entity - /// - SmokePlumeRisingFromTheEntity = 1, - - /// - /// null - /// - Unknown = 2 - } - - /// - /// Describes whether flames are rising from a Cultural Features object - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes whether flames are rising from a Cultural Features object")] - public enum FlamingValue : uint - { - /// - /// None - /// - None = 0, - - /// - /// Flames present - /// - FlamesPresent = 1 - } - - /// - /// Describes the frozen status of a Cultural Features object - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the frozen status of a Cultural Features object")] - public enum FrozenStatusValue : uint - { - /// - /// Not frozen - /// - NotFrozen = 0, - - /// - /// Frozen (Frozen entities should not be dead-reckoned, i.e. should be displayed as fixed at the current location even if non-zero velocity, acceleration or rotation data received from the frozen entity) - /// - FrozenFrozenEntitiesShouldNotBeDeadReckonedIEShouldBeDisplayedAsFixedAtTheCurrentLocationEvenIfNonZeroVelocityAccelerationOrRotationDataReceivedFromTheFrozenEntity = 1 - } - - /// - /// Describes the Internal-Heat status - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the Internal-Heat status")] - public enum InternalHeatStatusValue : uint - { - /// - /// Internal-Heat off - /// - InternalHeatOff = 0, - - /// - /// Internal-Heat on - /// - InternalHeatOn = 1 - } - - /// - /// Describes the state of a Cultural object - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the state of a Cultural object")] - public enum StateValue : uint - { - /// - /// Active - /// - Active = 0, - - /// - /// Deactivated - /// - Deactivated = 1 - } - - /// - /// Describes whether Exterior Lights are on or off. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes whether Exterior Lights are on or off.")] - public enum ExteriorLightsValue : uint - { - /// - /// Off - /// - Off = 0, - - /// - /// On - /// - On = 1 - } - - /// - /// Describes whether Interior Lights are on or off. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes whether Interior Lights are on or off.")] - public enum InteriorLightsValue : uint - { - /// - /// Off - /// - Off = 0, - - /// - /// On - /// - On = 1 - } - - /// - /// Describes if the entity is Masked / Cloaked or Not - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes if the entity is Masked / Cloaked or Not")] - public enum MaskedCloakedValue : uint - { - /// - /// Not Masked / Not Cloaked - /// - NotMaskedNotCloaked = 0, - - /// - /// Masked / Cloaked - /// - MaskedCloaked = 1 - } - - private CulturalAppearance.DamageValue damage; - private CulturalAppearance.SmokeValue smoke; - private CulturalAppearance.FlamingValue flaming; - private CulturalAppearance.FrozenStatusValue frozenStatus; - private CulturalAppearance.InternalHeatStatusValue internalHeatStatus; - private CulturalAppearance.StateValue state; - private CulturalAppearance.ExteriorLightsValue exteriorLights; - private CulturalAppearance.InteriorLightsValue interiorLights; - private CulturalAppearance.MaskedCloakedValue maskedCloaked; - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(CulturalAppearance left, CulturalAppearance right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator ==(CulturalAppearance left, CulturalAppearance right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - // If parameters are null return false (cast to object to prevent recursive loop!) - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The scheme instance. - /// The result of the conversion. - public static explicit operator uint(CulturalAppearance obj) - { - return obj.ToUInt32(); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The uint value. - /// The result of the conversion. - public static explicit operator CulturalAppearance(uint value) - { - return CulturalAppearance.FromUInt32(value); - } - - /// - /// Creates the instance from the byte array. - /// - /// The array which holds the values for the . - /// The starting position within value. - /// The instance, represented by a byte array. - /// if the array is null. - /// if the index is lower than 0 or greater or equal than number of elements in array. - public static CulturalAppearance FromByteArray(byte[] array, int index) - { - if (array == null) - { - throw new ArgumentNullException("array"); - } - - if (index < 0 || - index > array.Length - 1 || - index + 4 > array.Length - 1) - { - throw new IndexOutOfRangeException(); - } - - return FromUInt32(BitConverter.ToUInt32(array, index)); - } - - /// - /// Creates the instance from the uint value. - /// - /// The uint value which represents the instance. - /// The instance, represented by the uint value. - public static CulturalAppearance FromUInt32(uint value) - { - CulturalAppearance ps = new CulturalAppearance(); - - uint mask1 = 0x0018; - byte shift1 = 3; - uint newValue1 = (value & mask1) >> shift1; - ps.Damage = (CulturalAppearance.DamageValue)newValue1; - - uint mask2 = 0x0060; - byte shift2 = 5; - uint newValue2 = (value & mask2) >> shift2; - ps.Smoke = (CulturalAppearance.SmokeValue)newValue2; - - uint mask4 = 0x8000; - byte shift4 = 15; - uint newValue4 = (value & mask4) >> shift4; - ps.Flaming = (CulturalAppearance.FlamingValue)newValue4; - - uint mask6 = 0x200000; - byte shift6 = 21; - uint newValue6 = (value & mask6) >> shift6; - ps.FrozenStatus = (CulturalAppearance.FrozenStatusValue)newValue6; - - uint mask7 = 0x400000; - byte shift7 = 22; - uint newValue7 = (value & mask7) >> shift7; - ps.InternalHeatStatus = (CulturalAppearance.InternalHeatStatusValue)newValue7; - - uint mask8 = 0x800000; - byte shift8 = 23; - uint newValue8 = (value & mask8) >> shift8; - ps.State = (CulturalAppearance.StateValue)newValue8; - - uint mask10 = 0x10000000; - byte shift10 = 28; - uint newValue10 = (value & mask10) >> shift10; - ps.ExteriorLights = (CulturalAppearance.ExteriorLightsValue)newValue10; - - uint mask11 = 0x20000000; - byte shift11 = 29; - uint newValue11 = (value & mask11) >> shift11; - ps.InteriorLights = (CulturalAppearance.InteriorLightsValue)newValue11; - - uint mask13 = 0x80000000; - byte shift13 = 31; - uint newValue13 = (value & mask13) >> shift13; - ps.MaskedCloaked = (CulturalAppearance.MaskedCloakedValue)newValue13; - - return ps; - } - - /// - /// Gets or sets the damage. - /// - /// The damage. - public CulturalAppearance.DamageValue Damage - { - get { return this.damage; } - set { this.damage = value; } - } - - /// - /// Gets or sets the smoke. - /// - /// The smoke. - public CulturalAppearance.SmokeValue Smoke - { - get { return this.smoke; } - set { this.smoke = value; } - } - - /// - /// Gets or sets the flaming. - /// - /// The flaming. - public CulturalAppearance.FlamingValue Flaming - { - get { return this.flaming; } - set { this.flaming = value; } - } - - /// - /// Gets or sets the frozenstatus. - /// - /// The frozenstatus. - public CulturalAppearance.FrozenStatusValue FrozenStatus - { - get { return this.frozenStatus; } - set { this.frozenStatus = value; } - } - - /// - /// Gets or sets the internalheatstatus. - /// - /// The internalheatstatus. - public CulturalAppearance.InternalHeatStatusValue InternalHeatStatus - { - get { return this.internalHeatStatus; } - set { this.internalHeatStatus = value; } - } - - /// - /// Gets or sets the state. - /// - /// The state. - public CulturalAppearance.StateValue State - { - get { return this.state; } - set { this.state = value; } - } - - /// - /// Gets or sets the exteriorlights. - /// - /// The exteriorlights. - public CulturalAppearance.ExteriorLightsValue ExteriorLights - { - get { return this.exteriorLights; } - set { this.exteriorLights = value; } - } - - /// - /// Gets or sets the interiorlights. - /// - /// The interiorlights. - public CulturalAppearance.InteriorLightsValue InteriorLights - { - get { return this.interiorLights; } - set { this.interiorLights = value; } - } - - /// - /// Gets or sets the maskedcloaked. - /// - /// The maskedcloaked. - public CulturalAppearance.MaskedCloakedValue MaskedCloaked - { - get { return this.maskedCloaked; } - set { this.maskedCloaked = value; } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - if (obj == null) - { - return false; - } - - if (!(obj is CulturalAppearance)) - { - return false; - } - - return this.Equals((CulturalAppearance)obj); - } - - /// - /// Determines whether the specified instance is equal to this instance. - /// - /// The instance to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public bool Equals(CulturalAppearance other) - { - // If parameter is null return false (cast to object to prevent recursive loop!) - if ((object)other == null) - { - return false; - } - - return - this.Damage == other.Damage && - this.Smoke == other.Smoke && - this.Flaming == other.Flaming && - this.FrozenStatus == other.FrozenStatus && - this.InternalHeatStatus == other.InternalHeatStatus && - this.State == other.State && - this.ExteriorLights == other.ExteriorLights && - this.InteriorLights == other.InteriorLights && - this.MaskedCloaked == other.MaskedCloaked; - } - - /// - /// Converts the instance of to the byte array. - /// - /// The byte array representing the current instance. - public byte[] ToByteArray() - { - return BitConverter.GetBytes(this.ToUInt32()); - } - - /// - /// Converts the instance of to the uint value. - /// - /// The uint value representing the current instance. - public uint ToUInt32() - { - uint val = 0; - - val |= (uint)((uint)this.Damage << 3); - val |= (uint)((uint)this.Smoke << 5); - val |= (uint)((uint)this.Flaming << 15); - val |= (uint)((uint)this.FrozenStatus << 21); - val |= (uint)((uint)this.InternalHeatStatus << 22); - val |= (uint)((uint)this.State << 23); - val |= (uint)((uint)this.ExteriorLights << 28); - val |= (uint)((uint)this.InteriorLights << 29); - val |= (uint)((uint)this.MaskedCloaked << 31); - - return val; - } - - /// - /// Returns a hash code for this instance. - /// - /// - /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - /// - public override int GetHashCode() - { - int hash = 17; - - // Overflow is fine, just wrap - unchecked - { - hash = (hash * 29) + this.Damage.GetHashCode(); - hash = (hash * 29) + this.Smoke.GetHashCode(); - hash = (hash * 29) + this.Flaming.GetHashCode(); - hash = (hash * 29) + this.FrozenStatus.GetHashCode(); - hash = (hash * 29) + this.InternalHeatStatus.GetHashCode(); - hash = (hash * 29) + this.State.GetHashCode(); - hash = (hash * 29) + this.ExteriorLights.GetHashCode(); - hash = (hash * 29) + this.InteriorLights.GetHashCode(); - hash = (hash * 29) + this.MaskedCloaked.GetHashCode(); - } - - return hash; - } - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState.Appearance +{ + /// + /// Enumeration values for CulturalAppearance (es.appear.cultural, Cultural Features Kind, + /// section 4.3.5) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public struct CulturalAppearance + { + /// + /// Describes the damaged appearance of an entity + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the damaged appearance of an entity")] + public enum DamageValue : uint + { + /// + /// No damage + /// + NoDamage = 0, + + /// + /// Slight damage + /// + SlightDamage = 1, + + /// + /// Moderate damage + /// + ModerateDamage = 2, + + /// + /// Destroyed + /// + Destroyed = 3 + } + + /// + /// Describes status of smoke emanating from a Cultural Features object + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes status of smoke emanating from a Cultural Features object")] + public enum SmokeValue : uint + { + /// + /// Not smoking + /// + NotSmoking = 0, + + /// + /// Smoke plume rising from the entity + /// + SmokePlumeRisingFromTheEntity = 1, + + /// + /// null + /// + Unknown = 2 + } + + /// + /// Describes whether flames are rising from a Cultural Features object + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes whether flames are rising from a Cultural Features object")] + public enum FlamingValue : uint + { + /// + /// None + /// + None = 0, + + /// + /// Flames present + /// + FlamesPresent = 1 + } + + /// + /// Describes the frozen status of a Cultural Features object + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the frozen status of a Cultural Features object")] + public enum FrozenStatusValue : uint + { + /// + /// Not frozen + /// + NotFrozen = 0, + + /// + /// Frozen (Frozen entities should not be dead-reckoned, i.e. should be displayed as fixed at the current location even if non-zero velocity, acceleration or rotation data received from the frozen entity) + /// + FrozenFrozenEntitiesShouldNotBeDeadReckonedIEShouldBeDisplayedAsFixedAtTheCurrentLocationEvenIfNonZeroVelocityAccelerationOrRotationDataReceivedFromTheFrozenEntity = 1 + } + + /// + /// Describes the Internal-Heat status + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the Internal-Heat status")] + public enum InternalHeatStatusValue : uint + { + /// + /// Internal-Heat off + /// + InternalHeatOff = 0, + + /// + /// Internal-Heat on + /// + InternalHeatOn = 1 + } + + /// + /// Describes the state of a Cultural object + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the state of a Cultural object")] + public enum StateValue : uint + { + /// + /// Active + /// + Active = 0, + + /// + /// Deactivated + /// + Deactivated = 1 + } + + /// + /// Describes whether Exterior Lights are on or off. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes whether Exterior Lights are on or off.")] + public enum ExteriorLightsValue : uint + { + /// + /// Off + /// + Off = 0, + + /// + /// On + /// + On = 1 + } + + /// + /// Describes whether Interior Lights are on or off. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes whether Interior Lights are on or off.")] + public enum InteriorLightsValue : uint + { + /// + /// Off + /// + Off = 0, + + /// + /// On + /// + On = 1 + } + + /// + /// Describes if the entity is Masked / Cloaked or Not + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes if the entity is Masked / Cloaked or Not")] + public enum MaskedCloakedValue : uint + { + /// + /// Not Masked / Not Cloaked + /// + NotMaskedNotCloaked = 0, + + /// + /// Masked / Cloaked + /// + MaskedCloaked = 1 + } + + private CulturalAppearance.DamageValue damage; + private CulturalAppearance.SmokeValue smoke; + private CulturalAppearance.FlamingValue flaming; + private CulturalAppearance.FrozenStatusValue frozenStatus; + private CulturalAppearance.InternalHeatStatusValue internalHeatStatus; + private CulturalAppearance.StateValue state; + private CulturalAppearance.ExteriorLightsValue exteriorLights; + private CulturalAppearance.InteriorLightsValue interiorLights; + private CulturalAppearance.MaskedCloakedValue maskedCloaked; + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(CulturalAppearance left, CulturalAppearance right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator ==(CulturalAppearance left, CulturalAppearance right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + // If parameters are null return false (cast to object to prevent recursive loop!) + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The scheme instance. + /// The result of the conversion. + public static explicit operator uint(CulturalAppearance obj) + { + return obj.ToUInt32(); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The uint value. + /// The result of the conversion. + public static explicit operator CulturalAppearance(uint value) + { + return CulturalAppearance.FromUInt32(value); + } + + /// + /// Creates the instance from the byte array. + /// + /// The array which holds the values for the . + /// The starting position within value. + /// The instance, represented by a byte array. + /// if the array is null. + /// if the index is lower than 0 or greater or equal than number of elements in array. + public static CulturalAppearance FromByteArray(byte[] array, int index) + { + if (array == null) + { + throw new ArgumentNullException("array"); + } + + if (index < 0 || + index > array.Length - 1 || + index + 4 > array.Length - 1) + { + throw new IndexOutOfRangeException(); + } + + return FromUInt32(BitConverter.ToUInt32(array, index)); + } + + /// + /// Creates the instance from the uint value. + /// + /// The uint value which represents the instance. + /// The instance, represented by the uint value. + public static CulturalAppearance FromUInt32(uint value) + { + CulturalAppearance ps = new CulturalAppearance(); + + uint mask1 = 0x0018; + byte shift1 = 3; + uint newValue1 = (value & mask1) >> shift1; + ps.Damage = (CulturalAppearance.DamageValue)newValue1; + + uint mask2 = 0x0060; + byte shift2 = 5; + uint newValue2 = (value & mask2) >> shift2; + ps.Smoke = (CulturalAppearance.SmokeValue)newValue2; + + uint mask4 = 0x8000; + byte shift4 = 15; + uint newValue4 = (value & mask4) >> shift4; + ps.Flaming = (CulturalAppearance.FlamingValue)newValue4; + + uint mask6 = 0x200000; + byte shift6 = 21; + uint newValue6 = (value & mask6) >> shift6; + ps.FrozenStatus = (CulturalAppearance.FrozenStatusValue)newValue6; + + uint mask7 = 0x400000; + byte shift7 = 22; + uint newValue7 = (value & mask7) >> shift7; + ps.InternalHeatStatus = (CulturalAppearance.InternalHeatStatusValue)newValue7; + + uint mask8 = 0x800000; + byte shift8 = 23; + uint newValue8 = (value & mask8) >> shift8; + ps.State = (CulturalAppearance.StateValue)newValue8; + + uint mask10 = 0x10000000; + byte shift10 = 28; + uint newValue10 = (value & mask10) >> shift10; + ps.ExteriorLights = (CulturalAppearance.ExteriorLightsValue)newValue10; + + uint mask11 = 0x20000000; + byte shift11 = 29; + uint newValue11 = (value & mask11) >> shift11; + ps.InteriorLights = (CulturalAppearance.InteriorLightsValue)newValue11; + + uint mask13 = 0x80000000; + byte shift13 = 31; + uint newValue13 = (value & mask13) >> shift13; + ps.MaskedCloaked = (CulturalAppearance.MaskedCloakedValue)newValue13; + + return ps; + } + + /// + /// Gets or sets the damage. + /// + /// The damage. + public CulturalAppearance.DamageValue Damage + { + get { return this.damage; } + set { this.damage = value; } + } + + /// + /// Gets or sets the smoke. + /// + /// The smoke. + public CulturalAppearance.SmokeValue Smoke + { + get { return this.smoke; } + set { this.smoke = value; } + } + + /// + /// Gets or sets the flaming. + /// + /// The flaming. + public CulturalAppearance.FlamingValue Flaming + { + get { return this.flaming; } + set { this.flaming = value; } + } + + /// + /// Gets or sets the frozenstatus. + /// + /// The frozenstatus. + public CulturalAppearance.FrozenStatusValue FrozenStatus + { + get { return this.frozenStatus; } + set { this.frozenStatus = value; } + } + + /// + /// Gets or sets the internalheatstatus. + /// + /// The internalheatstatus. + public CulturalAppearance.InternalHeatStatusValue InternalHeatStatus + { + get { return this.internalHeatStatus; } + set { this.internalHeatStatus = value; } + } + + /// + /// Gets or sets the state. + /// + /// The state. + public CulturalAppearance.StateValue State + { + get { return this.state; } + set { this.state = value; } + } + + /// + /// Gets or sets the exteriorlights. + /// + /// The exteriorlights. + public CulturalAppearance.ExteriorLightsValue ExteriorLights + { + get { return this.exteriorLights; } + set { this.exteriorLights = value; } + } + + /// + /// Gets or sets the interiorlights. + /// + /// The interiorlights. + public CulturalAppearance.InteriorLightsValue InteriorLights + { + get { return this.interiorLights; } + set { this.interiorLights = value; } + } + + /// + /// Gets or sets the maskedcloaked. + /// + /// The maskedcloaked. + public CulturalAppearance.MaskedCloakedValue MaskedCloaked + { + get { return this.maskedCloaked; } + set { this.maskedCloaked = value; } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (!(obj is CulturalAppearance)) + { + return false; + } + + return this.Equals((CulturalAppearance)obj); + } + + /// + /// Determines whether the specified instance is equal to this instance. + /// + /// The instance to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public bool Equals(CulturalAppearance other) + { + // If parameter is null return false (cast to object to prevent recursive loop!) + if ((object)other == null) + { + return false; + } + + return + this.Damage == other.Damage && + this.Smoke == other.Smoke && + this.Flaming == other.Flaming && + this.FrozenStatus == other.FrozenStatus && + this.InternalHeatStatus == other.InternalHeatStatus && + this.State == other.State && + this.ExteriorLights == other.ExteriorLights && + this.InteriorLights == other.InteriorLights && + this.MaskedCloaked == other.MaskedCloaked; + } + + /// + /// Converts the instance of to the byte array. + /// + /// The byte array representing the current instance. + public byte[] ToByteArray() + { + return BitConverter.GetBytes(this.ToUInt32()); + } + + /// + /// Converts the instance of to the uint value. + /// + /// The uint value representing the current instance. + public uint ToUInt32() + { + uint val = 0; + + val |= (uint)((uint)this.Damage << 3); + val |= (uint)((uint)this.Smoke << 5); + val |= (uint)((uint)this.Flaming << 15); + val |= (uint)((uint)this.FrozenStatus << 21); + val |= (uint)((uint)this.InternalHeatStatus << 22); + val |= (uint)((uint)this.State << 23); + val |= (uint)((uint)this.ExteriorLights << 28); + val |= (uint)((uint)this.InteriorLights << 29); + val |= (uint)((uint)this.MaskedCloaked << 31); + + return val; + } + + /// + /// Returns a hash code for this instance. + /// + /// + /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + /// + public override int GetHashCode() + { + int hash = 17; + + // Overflow is fine, just wrap + unchecked + { + hash = (hash * 29) + this.Damage.GetHashCode(); + hash = (hash * 29) + this.Smoke.GetHashCode(); + hash = (hash * 29) + this.Flaming.GetHashCode(); + hash = (hash * 29) + this.FrozenStatus.GetHashCode(); + hash = (hash * 29) + this.InternalHeatStatus.GetHashCode(); + hash = (hash * 29) + this.State.GetHashCode(); + hash = (hash * 29) + this.ExteriorLights.GetHashCode(); + hash = (hash * 29) + this.InteriorLights.GetHashCode(); + hash = (hash * 29) + this.MaskedCloaked.GetHashCode(); + } + + return hash; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/EnvironmentalAppearance.cs b/Libs/CsharpDis6/Enumerations/EntityState.Appearance/EnvironmentalAppearance.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/EnvironmentalAppearance.cs rename to Libs/CsharpDis6/Enumerations/EntityState.Appearance/EnvironmentalAppearance.cs index 6a1317e..6b7502f 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/EnvironmentalAppearance.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState.Appearance/EnvironmentalAppearance.cs @@ -1,383 +1,383 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState.Appearance -{ - /// - /// Enumeration values for EnvironmentalAppearance (es.appear.environmental, Environmentals Kind, - /// section 4.3.4) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public struct EnvironmentalAppearance - { - /// - /// Describes the density of the environmentals - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the density of the environmentals")] - public enum DensityValue : uint - { - /// - /// Clear - /// - Clear = 0, - - /// - /// Hazy - /// - Hazy = 1, - - /// - /// Dense - /// - Dense = 2, - - /// - /// Very dense - /// - VeryDense = 3, - - /// - /// Opaque - /// - Opaque = 4, - - /// - /// null - /// - Unknown = 5 - } - - /// - /// Describes the frozen status of a environmental object - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the frozen status of a environmental object")] - public enum FrozenStatusValue : uint - { - /// - /// Not frozen - /// - NotFrozen = 0, - - /// - /// Frozen (Frozen entities should not be dead-reckoned, i.e. they should be displayed as fixed at the current location even if nonzero velocity, acceleration or rotation data is received from the frozen entity) - /// - FrozenFrozenEntitiesShouldNotBeDeadReckonedIETheyShouldBeDisplayedAsFixedAtTheCurrentLocationEvenIfNonzeroVelocityAccelerationOrRotationDataIsReceivedFromTheFrozenEntity = 1 - } - - /// - /// Describes the state of a environmental object - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the state of a environmental object")] - public enum StateValue : uint - { - /// - /// Active - /// - Active = 0, - - /// - /// Deactivated - /// - Deactivated = 1 - } - - /// - /// Describes if the entity is Masked / Cloaked or Not - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes if the entity is Masked / Cloaked or Not")] - public enum MaskedCloakedValue : uint - { - /// - /// Not Masked / Not Cloaked - /// - NotMaskedNotCloaked = 0, - - /// - /// Masked / Cloaked - /// - MaskedCloaked = 1 - } - - private EnvironmentalAppearance.DensityValue density; - private EnvironmentalAppearance.FrozenStatusValue frozenStatus; - private EnvironmentalAppearance.StateValue state; - private EnvironmentalAppearance.MaskedCloakedValue maskedCloaked; - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(EnvironmentalAppearance left, EnvironmentalAppearance right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator ==(EnvironmentalAppearance left, EnvironmentalAppearance right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - // If parameters are null return false (cast to object to prevent recursive loop!) - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The scheme instance. - /// The result of the conversion. - public static explicit operator uint(EnvironmentalAppearance obj) - { - return obj.ToUInt32(); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The uint value. - /// The result of the conversion. - public static explicit operator EnvironmentalAppearance(uint value) - { - return EnvironmentalAppearance.FromUInt32(value); - } - - /// - /// Creates the instance from the byte array. - /// - /// The array which holds the values for the . - /// The starting position within value. - /// The instance, represented by a byte array. - /// if the array is null. - /// if the index is lower than 0 or greater or equal than number of elements in array. - public static EnvironmentalAppearance FromByteArray(byte[] array, int index) - { - if (array == null) - { - throw new ArgumentNullException("array"); - } - - if (index < 0 || - index > array.Length - 1 || - index + 4 > array.Length - 1) - { - throw new IndexOutOfRangeException(); - } - - return FromUInt32(BitConverter.ToUInt32(array, index)); - } - - /// - /// Creates the instance from the uint value. - /// - /// The uint value which represents the instance. - /// The instance, represented by the uint value. - public static EnvironmentalAppearance FromUInt32(uint value) - { - EnvironmentalAppearance ps = new EnvironmentalAppearance(); - - uint mask1 = 0xf0000; - byte shift1 = 16; - uint newValue1 = (value & mask1) >> shift1; - ps.Density = (EnvironmentalAppearance.DensityValue)newValue1; - - uint mask3 = 0x200000; - byte shift3 = 21; - uint newValue3 = (value & mask3) >> shift3; - ps.FrozenStatus = (EnvironmentalAppearance.FrozenStatusValue)newValue3; - - uint mask5 = 0x800000; - byte shift5 = 23; - uint newValue5 = (value & mask5) >> shift5; - ps.State = (EnvironmentalAppearance.StateValue)newValue5; - - uint mask7 = 0x80000000; - byte shift7 = 31; - uint newValue7 = (value & mask7) >> shift7; - ps.MaskedCloaked = (EnvironmentalAppearance.MaskedCloakedValue)newValue7; - - return ps; - } - - /// - /// Gets or sets the density. - /// - /// The density. - public EnvironmentalAppearance.DensityValue Density - { - get { return this.density; } - set { this.density = value; } - } - - /// - /// Gets or sets the frozenstatus. - /// - /// The frozenstatus. - public EnvironmentalAppearance.FrozenStatusValue FrozenStatus - { - get { return this.frozenStatus; } - set { this.frozenStatus = value; } - } - - /// - /// Gets or sets the state. - /// - /// The state. - public EnvironmentalAppearance.StateValue State - { - get { return this.state; } - set { this.state = value; } - } - - /// - /// Gets or sets the maskedcloaked. - /// - /// The maskedcloaked. - public EnvironmentalAppearance.MaskedCloakedValue MaskedCloaked - { - get { return this.maskedCloaked; } - set { this.maskedCloaked = value; } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - if (obj == null) - { - return false; - } - - if (!(obj is EnvironmentalAppearance)) - { - return false; - } - - return this.Equals((EnvironmentalAppearance)obj); - } - - /// - /// Determines whether the specified instance is equal to this instance. - /// - /// The instance to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public bool Equals(EnvironmentalAppearance other) - { - // If parameter is null return false (cast to object to prevent recursive loop!) - if ((object)other == null) - { - return false; - } - - return - this.Density == other.Density && - this.FrozenStatus == other.FrozenStatus && - this.State == other.State && - this.MaskedCloaked == other.MaskedCloaked; - } - - /// - /// Converts the instance of to the byte array. - /// - /// The byte array representing the current instance. - public byte[] ToByteArray() - { - return BitConverter.GetBytes(this.ToUInt32()); - } - - /// - /// Converts the instance of to the uint value. - /// - /// The uint value representing the current instance. - public uint ToUInt32() - { - uint val = 0; - - val |= (uint)((uint)this.Density << 16); - val |= (uint)((uint)this.FrozenStatus << 21); - val |= (uint)((uint)this.State << 23); - val |= (uint)((uint)this.MaskedCloaked << 31); - - return val; - } - - /// - /// Returns a hash code for this instance. - /// - /// - /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - /// - public override int GetHashCode() - { - int hash = 17; - - // Overflow is fine, just wrap - unchecked - { - hash = (hash * 29) + this.Density.GetHashCode(); - hash = (hash * 29) + this.FrozenStatus.GetHashCode(); - hash = (hash * 29) + this.State.GetHashCode(); - hash = (hash * 29) + this.MaskedCloaked.GetHashCode(); - } - - return hash; - } - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState.Appearance +{ + /// + /// Enumeration values for EnvironmentalAppearance (es.appear.environmental, Environmentals Kind, + /// section 4.3.4) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public struct EnvironmentalAppearance + { + /// + /// Describes the density of the environmentals + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the density of the environmentals")] + public enum DensityValue : uint + { + /// + /// Clear + /// + Clear = 0, + + /// + /// Hazy + /// + Hazy = 1, + + /// + /// Dense + /// + Dense = 2, + + /// + /// Very dense + /// + VeryDense = 3, + + /// + /// Opaque + /// + Opaque = 4, + + /// + /// null + /// + Unknown = 5 + } + + /// + /// Describes the frozen status of a environmental object + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the frozen status of a environmental object")] + public enum FrozenStatusValue : uint + { + /// + /// Not frozen + /// + NotFrozen = 0, + + /// + /// Frozen (Frozen entities should not be dead-reckoned, i.e. they should be displayed as fixed at the current location even if nonzero velocity, acceleration or rotation data is received from the frozen entity) + /// + FrozenFrozenEntitiesShouldNotBeDeadReckonedIETheyShouldBeDisplayedAsFixedAtTheCurrentLocationEvenIfNonzeroVelocityAccelerationOrRotationDataIsReceivedFromTheFrozenEntity = 1 + } + + /// + /// Describes the state of a environmental object + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the state of a environmental object")] + public enum StateValue : uint + { + /// + /// Active + /// + Active = 0, + + /// + /// Deactivated + /// + Deactivated = 1 + } + + /// + /// Describes if the entity is Masked / Cloaked or Not + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes if the entity is Masked / Cloaked or Not")] + public enum MaskedCloakedValue : uint + { + /// + /// Not Masked / Not Cloaked + /// + NotMaskedNotCloaked = 0, + + /// + /// Masked / Cloaked + /// + MaskedCloaked = 1 + } + + private EnvironmentalAppearance.DensityValue density; + private EnvironmentalAppearance.FrozenStatusValue frozenStatus; + private EnvironmentalAppearance.StateValue state; + private EnvironmentalAppearance.MaskedCloakedValue maskedCloaked; + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(EnvironmentalAppearance left, EnvironmentalAppearance right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator ==(EnvironmentalAppearance left, EnvironmentalAppearance right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + // If parameters are null return false (cast to object to prevent recursive loop!) + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The scheme instance. + /// The result of the conversion. + public static explicit operator uint(EnvironmentalAppearance obj) + { + return obj.ToUInt32(); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The uint value. + /// The result of the conversion. + public static explicit operator EnvironmentalAppearance(uint value) + { + return EnvironmentalAppearance.FromUInt32(value); + } + + /// + /// Creates the instance from the byte array. + /// + /// The array which holds the values for the . + /// The starting position within value. + /// The instance, represented by a byte array. + /// if the array is null. + /// if the index is lower than 0 or greater or equal than number of elements in array. + public static EnvironmentalAppearance FromByteArray(byte[] array, int index) + { + if (array == null) + { + throw new ArgumentNullException("array"); + } + + if (index < 0 || + index > array.Length - 1 || + index + 4 > array.Length - 1) + { + throw new IndexOutOfRangeException(); + } + + return FromUInt32(BitConverter.ToUInt32(array, index)); + } + + /// + /// Creates the instance from the uint value. + /// + /// The uint value which represents the instance. + /// The instance, represented by the uint value. + public static EnvironmentalAppearance FromUInt32(uint value) + { + EnvironmentalAppearance ps = new EnvironmentalAppearance(); + + uint mask1 = 0xf0000; + byte shift1 = 16; + uint newValue1 = (value & mask1) >> shift1; + ps.Density = (EnvironmentalAppearance.DensityValue)newValue1; + + uint mask3 = 0x200000; + byte shift3 = 21; + uint newValue3 = (value & mask3) >> shift3; + ps.FrozenStatus = (EnvironmentalAppearance.FrozenStatusValue)newValue3; + + uint mask5 = 0x800000; + byte shift5 = 23; + uint newValue5 = (value & mask5) >> shift5; + ps.State = (EnvironmentalAppearance.StateValue)newValue5; + + uint mask7 = 0x80000000; + byte shift7 = 31; + uint newValue7 = (value & mask7) >> shift7; + ps.MaskedCloaked = (EnvironmentalAppearance.MaskedCloakedValue)newValue7; + + return ps; + } + + /// + /// Gets or sets the density. + /// + /// The density. + public EnvironmentalAppearance.DensityValue Density + { + get { return this.density; } + set { this.density = value; } + } + + /// + /// Gets or sets the frozenstatus. + /// + /// The frozenstatus. + public EnvironmentalAppearance.FrozenStatusValue FrozenStatus + { + get { return this.frozenStatus; } + set { this.frozenStatus = value; } + } + + /// + /// Gets or sets the state. + /// + /// The state. + public EnvironmentalAppearance.StateValue State + { + get { return this.state; } + set { this.state = value; } + } + + /// + /// Gets or sets the maskedcloaked. + /// + /// The maskedcloaked. + public EnvironmentalAppearance.MaskedCloakedValue MaskedCloaked + { + get { return this.maskedCloaked; } + set { this.maskedCloaked = value; } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (!(obj is EnvironmentalAppearance)) + { + return false; + } + + return this.Equals((EnvironmentalAppearance)obj); + } + + /// + /// Determines whether the specified instance is equal to this instance. + /// + /// The instance to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public bool Equals(EnvironmentalAppearance other) + { + // If parameter is null return false (cast to object to prevent recursive loop!) + if ((object)other == null) + { + return false; + } + + return + this.Density == other.Density && + this.FrozenStatus == other.FrozenStatus && + this.State == other.State && + this.MaskedCloaked == other.MaskedCloaked; + } + + /// + /// Converts the instance of to the byte array. + /// + /// The byte array representing the current instance. + public byte[] ToByteArray() + { + return BitConverter.GetBytes(this.ToUInt32()); + } + + /// + /// Converts the instance of to the uint value. + /// + /// The uint value representing the current instance. + public uint ToUInt32() + { + uint val = 0; + + val |= (uint)((uint)this.Density << 16); + val |= (uint)((uint)this.FrozenStatus << 21); + val |= (uint)((uint)this.State << 23); + val |= (uint)((uint)this.MaskedCloaked << 31); + + return val; + } + + /// + /// Returns a hash code for this instance. + /// + /// + /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + /// + public override int GetHashCode() + { + int hash = 17; + + // Overflow is fine, just wrap + unchecked + { + hash = (hash * 29) + this.Density.GetHashCode(); + hash = (hash * 29) + this.FrozenStatus.GetHashCode(); + hash = (hash * 29) + this.State.GetHashCode(); + hash = (hash * 29) + this.MaskedCloaked.GetHashCode(); + } + + return hash; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/LandPlatformAppearance.cs b/Libs/CsharpDis6/Enumerations/EntityState.Appearance/LandPlatformAppearance.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/LandPlatformAppearance.cs rename to Libs/CsharpDis6/Enumerations/EntityState.Appearance/LandPlatformAppearance.cs index d937c14..38e0eef 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/LandPlatformAppearance.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState.Appearance/LandPlatformAppearance.cs @@ -1,1268 +1,1268 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState.Appearance -{ - /// - /// Enumeration values for LandPlatformAppearance (es.appear.platform.land, Platforms of the Land Domain, - /// section 4.3.1.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public struct LandPlatformAppearance - { - /// - /// Describes the paint scheme of an entity - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the paint scheme of an entity")] - public enum PaintSchemeValue : uint - { - /// - /// Uniform color - /// - UniformColor = 0, - - /// - /// Camouflage - /// - Camouflage = 1 - } - - /// - /// Describes characteristics of mobility kills - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes characteristics of mobility kills")] - public enum MobilityValue : uint - { - /// - /// No mobility kill - /// - NoMobilityKill = 0, - - /// - /// Mobility kill - /// - MobilityKill = 1 - } - - /// - /// Describes characteristics of fire-power kill - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes characteristics of fire-power kill")] - public enum FirePowerValue : uint - { - /// - /// No fire-power kill - /// - NoFirePowerKill = 0, - - /// - /// Fire-power kill - /// - FirePowerKill = 1 - } - - /// - /// Describes the damaged appearance of an entity - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the damaged appearance of an entity")] - public enum DamageValue : uint - { - /// - /// No damage - /// - NoDamage = 0, - - /// - /// Slight damage - /// - SlightDamage = 1, - - /// - /// Moderate damage - /// - ModerateDamage = 2, - - /// - /// Destroyed - /// - Destroyed = 3 - } - - /// - /// Describes status or location of smoke emanating from an entity - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes status or location of smoke emanating from an entity")] - public enum SmokeValue : uint - { - /// - /// Not smoking - /// - NotSmoking = 0, - - /// - /// Smoke plume rising from the entity - /// - SmokePlumeRisingFromTheEntity = 1, - - /// - /// Entity is emitting engine smoke - /// - EntityIsEmittingEngineSmoke = 2, - - /// - /// Entity is emitting engine smoke, and smoke plume is rising from the entity - /// - EntityIsEmittingEngineSmokeAndSmokePlumeIsRisingFromTheEntity = 3 - } - - /// - /// Describes the size of the dust cloud trailing effect for the Effects entity - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the size of the dust cloud trailing effect for the Effects entity")] - public enum TrailingEffectsValue : uint - { - /// - /// None - /// - None = 0, - - /// - /// Small - /// - Small = 1, - - /// - /// Medium - /// - Medium = 2, - - /// - /// Large - /// - Large = 3 - } - - /// - /// Describes the state of the primary hatch - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the state of the primary hatch")] - public enum HatchValue : uint - { - /// - /// Not applicable - /// - NotApplicable = 0, - - /// - /// Primary hatch is closed - /// - PrimaryHatchIsClosed = 1, - - /// - /// Primary hatch is popped - /// - PrimaryHatchIsPopped = 2, - - /// - /// Primary hatch is popped and a person is visible under hatch - /// - PrimaryHatchIsPoppedAndAPersonIsVisibleUnderHatch = 3, - - /// - /// Primary hatch is open - /// - PrimaryHatchIsOpen = 4, - - /// - /// Primary hatch is open and person is visible - /// - PrimaryHatchIsOpenAndPersonIsVisible = 5, - - /// - /// null - /// - Unknown = 6 - } - - /// - /// Describes whether Head Lights are on or off. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes whether Head Lights are on or off.")] - public enum HeadLightsValue : uint - { - /// - /// Off - /// - Off = 0, - - /// - /// On - /// - On = 1 - } - - /// - /// Describes whether Tail Lights are on or off. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes whether Tail Lights are on or off.")] - public enum TailLightsValue : uint - { - /// - /// Off - /// - Off = 0, - - /// - /// On - /// - On = 1 - } - - /// - /// Describes whether Brake Lights are on or off. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes whether Brake Lights are on or off.")] - public enum BrakeLightsValue : uint - { - /// - /// Off - /// - Off = 0, - - /// - /// On - /// - On = 1 - } - - /// - /// Describes whether flames are rising from an entity - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes whether flames are rising from an entity")] - public enum FlamingValue : uint - { - /// - /// Off - /// - Off = 0, - - /// - /// On - /// - On = 1 - } - - /// - /// Describes the elevated status of the platform's primary launcher - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the elevated status of the platform's primary launcher")] - public enum LauncherValue : uint - { - /// - /// Off - /// - Off = 0, - - /// - /// On - /// - On = 1 - } - - /// - /// Describes the type of camouflage - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the type of camouflage")] - public enum CamouflageTypeValue : uint - { - /// - /// Desert camouflage - /// - DesertCamouflage = 0, - - /// - /// Winter camouflage - /// - WinterCamouflage = 1, - - /// - /// Forest camouflage - /// - ForestCamouflage = 2, - - /// - /// null - /// - Unknown = 3 - } - - /// - /// Describes the type of concealment - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the type of concealment")] - public enum ConcealedValue : uint - { - /// - /// Not concealed - /// - NotConcealed = 0, - - /// - /// Entity in a prepared concealed position (with netting, etc.) - /// - EntityInAPreparedConcealedPositionWithNettingEtc = 1 - } - - /// - /// Describes the frozen status of a Land Entity - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the frozen status of a Land Entity")] - public enum FrozenStatusValue : uint - { - /// - /// Not frozen - /// - NotFrozen = 0, - - /// - /// Frozen (Frozen entities should not be dead-reckoned, i.e. should be displayed as fixed at the current location even if non-zero velocity, acceleration or rotation data received from the frozen entity) - /// - FrozenFrozenEntitiesShouldNotBeDeadReckonedIEShouldBeDisplayedAsFixedAtTheCurrentLocationEvenIfNonZeroVelocityAccelerationOrRotationDataReceivedFromTheFrozenEntity = 1 - } - - /// - /// Describes the power-plant status of platform - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the power-plant status of platform")] - public enum PowerPlantStatusValue : uint - { - /// - /// Power plant off - /// - PowerPlantOff = 0, - - /// - /// Power plant on - /// - PowerPlantOn = 1 - } - - /// - /// Describes the state of a Land Entity - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the state of a Land Entity")] - public enum StateValue : uint - { - /// - /// Active - /// - Active = 0, - - /// - /// Deactivated - /// - Deactivated = 1 - } - - /// - /// Describes the status of a tent extension - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the status of a tent extension")] - public enum TentValue : uint - { - /// - /// Not extended - /// - NotExtended = 0, - - /// - /// Extended - /// - Extended = 1 - } - - /// - /// Describes the status of a ramp - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the status of a ramp")] - public enum RampValue : uint - { - /// - /// Up - /// - Up = 0, - - /// - /// Down - /// - Down = 1 - } - - /// - /// Describes whether Blackout Lights are on or off. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes whether Blackout Lights are on or off.")] - public enum BlackoutLightsValue : uint - { - /// - /// Off - /// - Off = 0, - - /// - /// On - /// - On = 1 - } - - /// - /// Describes whether Blackout Brake Lights are on or off. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes whether Blackout Brake Lights are on or off.")] - public enum BlackoutBrakeLightsValue : uint - { - /// - /// Off - /// - Off = 0, - - /// - /// On - /// - On = 1 - } - - /// - /// Describes whether Spot Lights are on or off. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes whether Spot Lights are on or off.")] - public enum SpotLightsValue : uint - { - /// - /// Off - /// - Off = 0, - - /// - /// On - /// - On = 1 - } - - /// - /// Describes whether Interior Lights are on or off. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes whether Interior Lights are on or off.")] - public enum InteriorLightsValue : uint - { - /// - /// Off - /// - Off = 0, - - /// - /// On - /// - On = 1 - } - - /// - /// Describes the surrender state of the vehicle occupants - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the surrender state of the vehicle occupants")] - public enum SurrenderStateValue : uint - { - /// - /// Not surrendered - /// - NotSurrendered = 0, - - /// - /// Surrender - /// - Surrender = 1 - } - - /// - /// Describes if the entity is Masked / Cloaked or Not - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes if the entity is Masked / Cloaked or Not")] - public enum MaskedCloakedValue : uint - { - /// - /// Not Masked / Not Cloaked - /// - NotMaskedNotCloaked = 0, - - /// - /// Masked / Cloaked - /// - MaskedCloaked = 1 - } - - private LandPlatformAppearance.PaintSchemeValue paintScheme; - private LandPlatformAppearance.MobilityValue mobility; - private LandPlatformAppearance.FirePowerValue firePower; - private LandPlatformAppearance.DamageValue damage; - private LandPlatformAppearance.SmokeValue smoke; - private LandPlatformAppearance.TrailingEffectsValue trailingEffects; - private LandPlatformAppearance.HatchValue hatch; - private LandPlatformAppearance.HeadLightsValue headLights; - private LandPlatformAppearance.TailLightsValue tailLights; - private LandPlatformAppearance.BrakeLightsValue brakeLights; - private LandPlatformAppearance.FlamingValue flaming; - private LandPlatformAppearance.LauncherValue launcher; - private LandPlatformAppearance.CamouflageTypeValue camouflageType; - private LandPlatformAppearance.ConcealedValue concealed; - private LandPlatformAppearance.FrozenStatusValue frozenStatus; - private LandPlatformAppearance.PowerPlantStatusValue powerPlantStatus; - private LandPlatformAppearance.StateValue state; - private LandPlatformAppearance.TentValue tent; - private LandPlatformAppearance.RampValue ramp; - private LandPlatformAppearance.BlackoutLightsValue blackoutLights; - private LandPlatformAppearance.BlackoutBrakeLightsValue blackoutBrakeLights; - private LandPlatformAppearance.SpotLightsValue spotLights; - private LandPlatformAppearance.InteriorLightsValue interiorLights; - private LandPlatformAppearance.SurrenderStateValue surrenderState; - private LandPlatformAppearance.MaskedCloakedValue maskedCloaked; - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(LandPlatformAppearance left, LandPlatformAppearance right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator ==(LandPlatformAppearance left, LandPlatformAppearance right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - // If parameters are null return false (cast to object to prevent recursive loop!) - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The scheme instance. - /// The result of the conversion. - public static explicit operator uint(LandPlatformAppearance obj) - { - return obj.ToUInt32(); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The uint value. - /// The result of the conversion. - public static explicit operator LandPlatformAppearance(uint value) - { - return LandPlatformAppearance.FromUInt32(value); - } - - /// - /// Creates the instance from the byte array. - /// - /// The array which holds the values for the . - /// The starting position within value. - /// The instance, represented by a byte array. - /// if the array is null. - /// if the index is lower than 0 or greater or equal than number of elements in array. - public static LandPlatformAppearance FromByteArray(byte[] array, int index) - { - if (array == null) - { - throw new ArgumentNullException("array"); - } - - if (index < 0 || - index > array.Length - 1 || - index + 4 > array.Length - 1) - { - throw new IndexOutOfRangeException(); - } - - return FromUInt32(BitConverter.ToUInt32(array, index)); - } - - /// - /// Creates the instance from the uint value. - /// - /// The uint value which represents the instance. - /// The instance, represented by the uint value. - public static LandPlatformAppearance FromUInt32(uint value) - { - LandPlatformAppearance ps = new LandPlatformAppearance(); - - uint mask0 = 0x0001; - byte shift0 = 0; - uint newValue0 = (value & mask0) >> shift0; - ps.PaintScheme = (LandPlatformAppearance.PaintSchemeValue)newValue0; - - uint mask1 = 0x0002; - byte shift1 = 1; - uint newValue1 = (value & mask1) >> shift1; - ps.Mobility = (LandPlatformAppearance.MobilityValue)newValue1; - - uint mask2 = 0x0004; - byte shift2 = 2; - uint newValue2 = (value & mask2) >> shift2; - ps.FirePower = (LandPlatformAppearance.FirePowerValue)newValue2; - - uint mask3 = 0x0018; - byte shift3 = 3; - uint newValue3 = (value & mask3) >> shift3; - ps.Damage = (LandPlatformAppearance.DamageValue)newValue3; - - uint mask4 = 0x0060; - byte shift4 = 5; - uint newValue4 = (value & mask4) >> shift4; - ps.Smoke = (LandPlatformAppearance.SmokeValue)newValue4; - - uint mask5 = 0x0180; - byte shift5 = 7; - uint newValue5 = (value & mask5) >> shift5; - ps.TrailingEffects = (LandPlatformAppearance.TrailingEffectsValue)newValue5; - - uint mask6 = 0x0e00; - byte shift6 = 9; - uint newValue6 = (value & mask6) >> shift6; - ps.Hatch = (LandPlatformAppearance.HatchValue)newValue6; - - uint mask7 = 0x1000; - byte shift7 = 12; - uint newValue7 = (value & mask7) >> shift7; - ps.HeadLights = (LandPlatformAppearance.HeadLightsValue)newValue7; - - uint mask8 = 0x2000; - byte shift8 = 13; - uint newValue8 = (value & mask8) >> shift8; - ps.TailLights = (LandPlatformAppearance.TailLightsValue)newValue8; - - uint mask9 = 0x4000; - byte shift9 = 14; - uint newValue9 = (value & mask9) >> shift9; - ps.BrakeLights = (LandPlatformAppearance.BrakeLightsValue)newValue9; - - uint mask10 = 0x8000; - byte shift10 = 15; - uint newValue10 = (value & mask10) >> shift10; - ps.Flaming = (LandPlatformAppearance.FlamingValue)newValue10; - - uint mask11 = 0x10000; - byte shift11 = 16; - uint newValue11 = (value & mask11) >> shift11; - ps.Launcher = (LandPlatformAppearance.LauncherValue)newValue11; - - uint mask12 = 0x60000; - byte shift12 = 17; - uint newValue12 = (value & mask12) >> shift12; - ps.CamouflageType = (LandPlatformAppearance.CamouflageTypeValue)newValue12; - - uint mask13 = 0x80000; - byte shift13 = 19; - uint newValue13 = (value & mask13) >> shift13; - ps.Concealed = (LandPlatformAppearance.ConcealedValue)newValue13; - - uint mask15 = 0x200000; - byte shift15 = 21; - uint newValue15 = (value & mask15) >> shift15; - ps.FrozenStatus = (LandPlatformAppearance.FrozenStatusValue)newValue15; - - uint mask16 = 0x400000; - byte shift16 = 22; - uint newValue16 = (value & mask16) >> shift16; - ps.PowerPlantStatus = (LandPlatformAppearance.PowerPlantStatusValue)newValue16; - - uint mask17 = 0x800000; - byte shift17 = 23; - uint newValue17 = (value & mask17) >> shift17; - ps.State = (LandPlatformAppearance.StateValue)newValue17; - - uint mask18 = 0x1000000; - byte shift18 = 24; - uint newValue18 = (value & mask18) >> shift18; - ps.Tent = (LandPlatformAppearance.TentValue)newValue18; - - uint mask19 = 0x2000000; - byte shift19 = 25; - uint newValue19 = (value & mask19) >> shift19; - ps.Ramp = (LandPlatformAppearance.RampValue)newValue19; - - uint mask20 = 0x4000000; - byte shift20 = 26; - uint newValue20 = (value & mask20) >> shift20; - ps.BlackoutLights = (LandPlatformAppearance.BlackoutLightsValue)newValue20; - - uint mask21 = 0x8000000; - byte shift21 = 27; - uint newValue21 = (value & mask21) >> shift21; - ps.BlackoutBrakeLights = (LandPlatformAppearance.BlackoutBrakeLightsValue)newValue21; - - uint mask22 = 0x10000000; - byte shift22 = 28; - uint newValue22 = (value & mask22) >> shift22; - ps.SpotLights = (LandPlatformAppearance.SpotLightsValue)newValue22; - - uint mask23 = 0x20000000; - byte shift23 = 29; - uint newValue23 = (value & mask23) >> shift23; - ps.InteriorLights = (LandPlatformAppearance.InteriorLightsValue)newValue23; - - uint mask24 = 0x40000000; - byte shift24 = 30; - uint newValue24 = (value & mask24) >> shift24; - ps.SurrenderState = (LandPlatformAppearance.SurrenderStateValue)newValue24; - - uint mask25 = 0x80000000; - byte shift25 = 31; - uint newValue25 = (value & mask25) >> shift25; - ps.MaskedCloaked = (LandPlatformAppearance.MaskedCloakedValue)newValue25; - - return ps; - } - - /// - /// Gets or sets the paintscheme. - /// - /// The paintscheme. - public LandPlatformAppearance.PaintSchemeValue PaintScheme - { - get { return this.paintScheme; } - set { this.paintScheme = value; } - } - - /// - /// Gets or sets the mobility. - /// - /// The mobility. - public LandPlatformAppearance.MobilityValue Mobility - { - get { return this.mobility; } - set { this.mobility = value; } - } - - /// - /// Gets or sets the firepower. - /// - /// The firepower. - public LandPlatformAppearance.FirePowerValue FirePower - { - get { return this.firePower; } - set { this.firePower = value; } - } - - /// - /// Gets or sets the damage. - /// - /// The damage. - public LandPlatformAppearance.DamageValue Damage - { - get { return this.damage; } - set { this.damage = value; } - } - - /// - /// Gets or sets the smoke. - /// - /// The smoke. - public LandPlatformAppearance.SmokeValue Smoke - { - get { return this.smoke; } - set { this.smoke = value; } - } - - /// - /// Gets or sets the trailingeffects. - /// - /// The trailingeffects. - public LandPlatformAppearance.TrailingEffectsValue TrailingEffects - { - get { return this.trailingEffects; } - set { this.trailingEffects = value; } - } - - /// - /// Gets or sets the hatch. - /// - /// The hatch. - public LandPlatformAppearance.HatchValue Hatch - { - get { return this.hatch; } - set { this.hatch = value; } - } - - /// - /// Gets or sets the headlights. - /// - /// The headlights. - public LandPlatformAppearance.HeadLightsValue HeadLights - { - get { return this.headLights; } - set { this.headLights = value; } - } - - /// - /// Gets or sets the taillights. - /// - /// The taillights. - public LandPlatformAppearance.TailLightsValue TailLights - { - get { return this.tailLights; } - set { this.tailLights = value; } - } - - /// - /// Gets or sets the brakelights. - /// - /// The brakelights. - public LandPlatformAppearance.BrakeLightsValue BrakeLights - { - get { return this.brakeLights; } - set { this.brakeLights = value; } - } - - /// - /// Gets or sets the flaming. - /// - /// The flaming. - public LandPlatformAppearance.FlamingValue Flaming - { - get { return this.flaming; } - set { this.flaming = value; } - } - - /// - /// Gets or sets the launcher. - /// - /// The launcher. - public LandPlatformAppearance.LauncherValue Launcher - { - get { return this.launcher; } - set { this.launcher = value; } - } - - /// - /// Gets or sets the camouflagetype. - /// - /// The camouflagetype. - public LandPlatformAppearance.CamouflageTypeValue CamouflageType - { - get { return this.camouflageType; } - set { this.camouflageType = value; } - } - - /// - /// Gets or sets the concealed. - /// - /// The concealed. - public LandPlatformAppearance.ConcealedValue Concealed - { - get { return this.concealed; } - set { this.concealed = value; } - } - - /// - /// Gets or sets the frozenstatus. - /// - /// The frozenstatus. - public LandPlatformAppearance.FrozenStatusValue FrozenStatus - { - get { return this.frozenStatus; } - set { this.frozenStatus = value; } - } - - /// - /// Gets or sets the powerplantstatus. - /// - /// The powerplantstatus. - public LandPlatformAppearance.PowerPlantStatusValue PowerPlantStatus - { - get { return this.powerPlantStatus; } - set { this.powerPlantStatus = value; } - } - - /// - /// Gets or sets the state. - /// - /// The state. - public LandPlatformAppearance.StateValue State - { - get { return this.state; } - set { this.state = value; } - } - - /// - /// Gets or sets the tent. - /// - /// The tent. - public LandPlatformAppearance.TentValue Tent - { - get { return this.tent; } - set { this.tent = value; } - } - - /// - /// Gets or sets the ramp. - /// - /// The ramp. - public LandPlatformAppearance.RampValue Ramp - { - get { return this.ramp; } - set { this.ramp = value; } - } - - /// - /// Gets or sets the blackoutlights. - /// - /// The blackoutlights. - public LandPlatformAppearance.BlackoutLightsValue BlackoutLights - { - get { return this.blackoutLights; } - set { this.blackoutLights = value; } - } - - /// - /// Gets or sets the blackoutbrakelights. - /// - /// The blackoutbrakelights. - public LandPlatformAppearance.BlackoutBrakeLightsValue BlackoutBrakeLights - { - get { return this.blackoutBrakeLights; } - set { this.blackoutBrakeLights = value; } - } - - /// - /// Gets or sets the spotlights. - /// - /// The spotlights. - public LandPlatformAppearance.SpotLightsValue SpotLights - { - get { return this.spotLights; } - set { this.spotLights = value; } - } - - /// - /// Gets or sets the interiorlights. - /// - /// The interiorlights. - public LandPlatformAppearance.InteriorLightsValue InteriorLights - { - get { return this.interiorLights; } - set { this.interiorLights = value; } - } - - /// - /// Gets or sets the surrenderstate. - /// - /// The surrenderstate. - public LandPlatformAppearance.SurrenderStateValue SurrenderState - { - get { return this.surrenderState; } - set { this.surrenderState = value; } - } - - /// - /// Gets or sets the maskedcloaked. - /// - /// The maskedcloaked. - public LandPlatformAppearance.MaskedCloakedValue MaskedCloaked - { - get { return this.maskedCloaked; } - set { this.maskedCloaked = value; } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - if (obj == null) - { - return false; - } - - if (!(obj is LandPlatformAppearance)) - { - return false; - } - - return this.Equals((LandPlatformAppearance)obj); - } - - /// - /// Determines whether the specified instance is equal to this instance. - /// - /// The instance to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public bool Equals(LandPlatformAppearance other) - { - // If parameter is null return false (cast to object to prevent recursive loop!) - if ((object)other == null) - { - return false; - } - - return - this.PaintScheme == other.PaintScheme && - this.Mobility == other.Mobility && - this.FirePower == other.FirePower && - this.Damage == other.Damage && - this.Smoke == other.Smoke && - this.TrailingEffects == other.TrailingEffects && - this.Hatch == other.Hatch && - this.HeadLights == other.HeadLights && - this.TailLights == other.TailLights && - this.BrakeLights == other.BrakeLights && - this.Flaming == other.Flaming && - this.Launcher == other.Launcher && - this.CamouflageType == other.CamouflageType && - this.Concealed == other.Concealed && - this.FrozenStatus == other.FrozenStatus && - this.PowerPlantStatus == other.PowerPlantStatus && - this.State == other.State && - this.Tent == other.Tent && - this.Ramp == other.Ramp && - this.BlackoutLights == other.BlackoutLights && - this.BlackoutBrakeLights == other.BlackoutBrakeLights && - this.SpotLights == other.SpotLights && - this.InteriorLights == other.InteriorLights && - this.SurrenderState == other.SurrenderState && - this.MaskedCloaked == other.MaskedCloaked; - } - - /// - /// Converts the instance of to the byte array. - /// - /// The byte array representing the current instance. - public byte[] ToByteArray() - { - return BitConverter.GetBytes(this.ToUInt32()); - } - - /// - /// Converts the instance of to the uint value. - /// - /// The uint value representing the current instance. - public uint ToUInt32() - { - uint val = 0; - - val |= (uint)((uint)this.PaintScheme << 0); - val |= (uint)((uint)this.Mobility << 1); - val |= (uint)((uint)this.FirePower << 2); - val |= (uint)((uint)this.Damage << 3); - val |= (uint)((uint)this.Smoke << 5); - val |= (uint)((uint)this.TrailingEffects << 7); - val |= (uint)((uint)this.Hatch << 9); - val |= (uint)((uint)this.HeadLights << 12); - val |= (uint)((uint)this.TailLights << 13); - val |= (uint)((uint)this.BrakeLights << 14); - val |= (uint)((uint)this.Flaming << 15); - val |= (uint)((uint)this.Launcher << 16); - val |= (uint)((uint)this.CamouflageType << 17); - val |= (uint)((uint)this.Concealed << 19); - val |= (uint)((uint)this.FrozenStatus << 21); - val |= (uint)((uint)this.PowerPlantStatus << 22); - val |= (uint)((uint)this.State << 23); - val |= (uint)((uint)this.Tent << 24); - val |= (uint)((uint)this.Ramp << 25); - val |= (uint)((uint)this.BlackoutLights << 26); - val |= (uint)((uint)this.BlackoutBrakeLights << 27); - val |= (uint)((uint)this.SpotLights << 28); - val |= (uint)((uint)this.InteriorLights << 29); - val |= (uint)((uint)this.SurrenderState << 30); - val |= (uint)((uint)this.MaskedCloaked << 31); - - return val; - } - - /// - /// Returns a hash code for this instance. - /// - /// - /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - /// - public override int GetHashCode() - { - int hash = 17; - - // Overflow is fine, just wrap - unchecked - { - hash = (hash * 29) + this.PaintScheme.GetHashCode(); - hash = (hash * 29) + this.Mobility.GetHashCode(); - hash = (hash * 29) + this.FirePower.GetHashCode(); - hash = (hash * 29) + this.Damage.GetHashCode(); - hash = (hash * 29) + this.Smoke.GetHashCode(); - hash = (hash * 29) + this.TrailingEffects.GetHashCode(); - hash = (hash * 29) + this.Hatch.GetHashCode(); - hash = (hash * 29) + this.HeadLights.GetHashCode(); - hash = (hash * 29) + this.TailLights.GetHashCode(); - hash = (hash * 29) + this.BrakeLights.GetHashCode(); - hash = (hash * 29) + this.Flaming.GetHashCode(); - hash = (hash * 29) + this.Launcher.GetHashCode(); - hash = (hash * 29) + this.CamouflageType.GetHashCode(); - hash = (hash * 29) + this.Concealed.GetHashCode(); - hash = (hash * 29) + this.FrozenStatus.GetHashCode(); - hash = (hash * 29) + this.PowerPlantStatus.GetHashCode(); - hash = (hash * 29) + this.State.GetHashCode(); - hash = (hash * 29) + this.Tent.GetHashCode(); - hash = (hash * 29) + this.Ramp.GetHashCode(); - hash = (hash * 29) + this.BlackoutLights.GetHashCode(); - hash = (hash * 29) + this.BlackoutBrakeLights.GetHashCode(); - hash = (hash * 29) + this.SpotLights.GetHashCode(); - hash = (hash * 29) + this.InteriorLights.GetHashCode(); - hash = (hash * 29) + this.SurrenderState.GetHashCode(); - hash = (hash * 29) + this.MaskedCloaked.GetHashCode(); - } - - return hash; - } - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState.Appearance +{ + /// + /// Enumeration values for LandPlatformAppearance (es.appear.platform.land, Platforms of the Land Domain, + /// section 4.3.1.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public struct LandPlatformAppearance + { + /// + /// Describes the paint scheme of an entity + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the paint scheme of an entity")] + public enum PaintSchemeValue : uint + { + /// + /// Uniform color + /// + UniformColor = 0, + + /// + /// Camouflage + /// + Camouflage = 1 + } + + /// + /// Describes characteristics of mobility kills + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes characteristics of mobility kills")] + public enum MobilityValue : uint + { + /// + /// No mobility kill + /// + NoMobilityKill = 0, + + /// + /// Mobility kill + /// + MobilityKill = 1 + } + + /// + /// Describes characteristics of fire-power kill + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes characteristics of fire-power kill")] + public enum FirePowerValue : uint + { + /// + /// No fire-power kill + /// + NoFirePowerKill = 0, + + /// + /// Fire-power kill + /// + FirePowerKill = 1 + } + + /// + /// Describes the damaged appearance of an entity + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the damaged appearance of an entity")] + public enum DamageValue : uint + { + /// + /// No damage + /// + NoDamage = 0, + + /// + /// Slight damage + /// + SlightDamage = 1, + + /// + /// Moderate damage + /// + ModerateDamage = 2, + + /// + /// Destroyed + /// + Destroyed = 3 + } + + /// + /// Describes status or location of smoke emanating from an entity + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes status or location of smoke emanating from an entity")] + public enum SmokeValue : uint + { + /// + /// Not smoking + /// + NotSmoking = 0, + + /// + /// Smoke plume rising from the entity + /// + SmokePlumeRisingFromTheEntity = 1, + + /// + /// Entity is emitting engine smoke + /// + EntityIsEmittingEngineSmoke = 2, + + /// + /// Entity is emitting engine smoke, and smoke plume is rising from the entity + /// + EntityIsEmittingEngineSmokeAndSmokePlumeIsRisingFromTheEntity = 3 + } + + /// + /// Describes the size of the dust cloud trailing effect for the Effects entity + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the size of the dust cloud trailing effect for the Effects entity")] + public enum TrailingEffectsValue : uint + { + /// + /// None + /// + None = 0, + + /// + /// Small + /// + Small = 1, + + /// + /// Medium + /// + Medium = 2, + + /// + /// Large + /// + Large = 3 + } + + /// + /// Describes the state of the primary hatch + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the state of the primary hatch")] + public enum HatchValue : uint + { + /// + /// Not applicable + /// + NotApplicable = 0, + + /// + /// Primary hatch is closed + /// + PrimaryHatchIsClosed = 1, + + /// + /// Primary hatch is popped + /// + PrimaryHatchIsPopped = 2, + + /// + /// Primary hatch is popped and a person is visible under hatch + /// + PrimaryHatchIsPoppedAndAPersonIsVisibleUnderHatch = 3, + + /// + /// Primary hatch is open + /// + PrimaryHatchIsOpen = 4, + + /// + /// Primary hatch is open and person is visible + /// + PrimaryHatchIsOpenAndPersonIsVisible = 5, + + /// + /// null + /// + Unknown = 6 + } + + /// + /// Describes whether Head Lights are on or off. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes whether Head Lights are on or off.")] + public enum HeadLightsValue : uint + { + /// + /// Off + /// + Off = 0, + + /// + /// On + /// + On = 1 + } + + /// + /// Describes whether Tail Lights are on or off. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes whether Tail Lights are on or off.")] + public enum TailLightsValue : uint + { + /// + /// Off + /// + Off = 0, + + /// + /// On + /// + On = 1 + } + + /// + /// Describes whether Brake Lights are on or off. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes whether Brake Lights are on or off.")] + public enum BrakeLightsValue : uint + { + /// + /// Off + /// + Off = 0, + + /// + /// On + /// + On = 1 + } + + /// + /// Describes whether flames are rising from an entity + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes whether flames are rising from an entity")] + public enum FlamingValue : uint + { + /// + /// Off + /// + Off = 0, + + /// + /// On + /// + On = 1 + } + + /// + /// Describes the elevated status of the platform's primary launcher + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the elevated status of the platform's primary launcher")] + public enum LauncherValue : uint + { + /// + /// Off + /// + Off = 0, + + /// + /// On + /// + On = 1 + } + + /// + /// Describes the type of camouflage + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the type of camouflage")] + public enum CamouflageTypeValue : uint + { + /// + /// Desert camouflage + /// + DesertCamouflage = 0, + + /// + /// Winter camouflage + /// + WinterCamouflage = 1, + + /// + /// Forest camouflage + /// + ForestCamouflage = 2, + + /// + /// null + /// + Unknown = 3 + } + + /// + /// Describes the type of concealment + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the type of concealment")] + public enum ConcealedValue : uint + { + /// + /// Not concealed + /// + NotConcealed = 0, + + /// + /// Entity in a prepared concealed position (with netting, etc.) + /// + EntityInAPreparedConcealedPositionWithNettingEtc = 1 + } + + /// + /// Describes the frozen status of a Land Entity + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the frozen status of a Land Entity")] + public enum FrozenStatusValue : uint + { + /// + /// Not frozen + /// + NotFrozen = 0, + + /// + /// Frozen (Frozen entities should not be dead-reckoned, i.e. should be displayed as fixed at the current location even if non-zero velocity, acceleration or rotation data received from the frozen entity) + /// + FrozenFrozenEntitiesShouldNotBeDeadReckonedIEShouldBeDisplayedAsFixedAtTheCurrentLocationEvenIfNonZeroVelocityAccelerationOrRotationDataReceivedFromTheFrozenEntity = 1 + } + + /// + /// Describes the power-plant status of platform + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the power-plant status of platform")] + public enum PowerPlantStatusValue : uint + { + /// + /// Power plant off + /// + PowerPlantOff = 0, + + /// + /// Power plant on + /// + PowerPlantOn = 1 + } + + /// + /// Describes the state of a Land Entity + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the state of a Land Entity")] + public enum StateValue : uint + { + /// + /// Active + /// + Active = 0, + + /// + /// Deactivated + /// + Deactivated = 1 + } + + /// + /// Describes the status of a tent extension + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the status of a tent extension")] + public enum TentValue : uint + { + /// + /// Not extended + /// + NotExtended = 0, + + /// + /// Extended + /// + Extended = 1 + } + + /// + /// Describes the status of a ramp + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the status of a ramp")] + public enum RampValue : uint + { + /// + /// Up + /// + Up = 0, + + /// + /// Down + /// + Down = 1 + } + + /// + /// Describes whether Blackout Lights are on or off. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes whether Blackout Lights are on or off.")] + public enum BlackoutLightsValue : uint + { + /// + /// Off + /// + Off = 0, + + /// + /// On + /// + On = 1 + } + + /// + /// Describes whether Blackout Brake Lights are on or off. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes whether Blackout Brake Lights are on or off.")] + public enum BlackoutBrakeLightsValue : uint + { + /// + /// Off + /// + Off = 0, + + /// + /// On + /// + On = 1 + } + + /// + /// Describes whether Spot Lights are on or off. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes whether Spot Lights are on or off.")] + public enum SpotLightsValue : uint + { + /// + /// Off + /// + Off = 0, + + /// + /// On + /// + On = 1 + } + + /// + /// Describes whether Interior Lights are on or off. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes whether Interior Lights are on or off.")] + public enum InteriorLightsValue : uint + { + /// + /// Off + /// + Off = 0, + + /// + /// On + /// + On = 1 + } + + /// + /// Describes the surrender state of the vehicle occupants + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the surrender state of the vehicle occupants")] + public enum SurrenderStateValue : uint + { + /// + /// Not surrendered + /// + NotSurrendered = 0, + + /// + /// Surrender + /// + Surrender = 1 + } + + /// + /// Describes if the entity is Masked / Cloaked or Not + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes if the entity is Masked / Cloaked or Not")] + public enum MaskedCloakedValue : uint + { + /// + /// Not Masked / Not Cloaked + /// + NotMaskedNotCloaked = 0, + + /// + /// Masked / Cloaked + /// + MaskedCloaked = 1 + } + + private LandPlatformAppearance.PaintSchemeValue paintScheme; + private LandPlatformAppearance.MobilityValue mobility; + private LandPlatformAppearance.FirePowerValue firePower; + private LandPlatformAppearance.DamageValue damage; + private LandPlatformAppearance.SmokeValue smoke; + private LandPlatformAppearance.TrailingEffectsValue trailingEffects; + private LandPlatformAppearance.HatchValue hatch; + private LandPlatformAppearance.HeadLightsValue headLights; + private LandPlatformAppearance.TailLightsValue tailLights; + private LandPlatformAppearance.BrakeLightsValue brakeLights; + private LandPlatformAppearance.FlamingValue flaming; + private LandPlatformAppearance.LauncherValue launcher; + private LandPlatformAppearance.CamouflageTypeValue camouflageType; + private LandPlatformAppearance.ConcealedValue concealed; + private LandPlatformAppearance.FrozenStatusValue frozenStatus; + private LandPlatformAppearance.PowerPlantStatusValue powerPlantStatus; + private LandPlatformAppearance.StateValue state; + private LandPlatformAppearance.TentValue tent; + private LandPlatformAppearance.RampValue ramp; + private LandPlatformAppearance.BlackoutLightsValue blackoutLights; + private LandPlatformAppearance.BlackoutBrakeLightsValue blackoutBrakeLights; + private LandPlatformAppearance.SpotLightsValue spotLights; + private LandPlatformAppearance.InteriorLightsValue interiorLights; + private LandPlatformAppearance.SurrenderStateValue surrenderState; + private LandPlatformAppearance.MaskedCloakedValue maskedCloaked; + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(LandPlatformAppearance left, LandPlatformAppearance right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator ==(LandPlatformAppearance left, LandPlatformAppearance right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + // If parameters are null return false (cast to object to prevent recursive loop!) + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The scheme instance. + /// The result of the conversion. + public static explicit operator uint(LandPlatformAppearance obj) + { + return obj.ToUInt32(); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The uint value. + /// The result of the conversion. + public static explicit operator LandPlatformAppearance(uint value) + { + return LandPlatformAppearance.FromUInt32(value); + } + + /// + /// Creates the instance from the byte array. + /// + /// The array which holds the values for the . + /// The starting position within value. + /// The instance, represented by a byte array. + /// if the array is null. + /// if the index is lower than 0 or greater or equal than number of elements in array. + public static LandPlatformAppearance FromByteArray(byte[] array, int index) + { + if (array == null) + { + throw new ArgumentNullException("array"); + } + + if (index < 0 || + index > array.Length - 1 || + index + 4 > array.Length - 1) + { + throw new IndexOutOfRangeException(); + } + + return FromUInt32(BitConverter.ToUInt32(array, index)); + } + + /// + /// Creates the instance from the uint value. + /// + /// The uint value which represents the instance. + /// The instance, represented by the uint value. + public static LandPlatformAppearance FromUInt32(uint value) + { + LandPlatformAppearance ps = new LandPlatformAppearance(); + + uint mask0 = 0x0001; + byte shift0 = 0; + uint newValue0 = (value & mask0) >> shift0; + ps.PaintScheme = (LandPlatformAppearance.PaintSchemeValue)newValue0; + + uint mask1 = 0x0002; + byte shift1 = 1; + uint newValue1 = (value & mask1) >> shift1; + ps.Mobility = (LandPlatformAppearance.MobilityValue)newValue1; + + uint mask2 = 0x0004; + byte shift2 = 2; + uint newValue2 = (value & mask2) >> shift2; + ps.FirePower = (LandPlatformAppearance.FirePowerValue)newValue2; + + uint mask3 = 0x0018; + byte shift3 = 3; + uint newValue3 = (value & mask3) >> shift3; + ps.Damage = (LandPlatformAppearance.DamageValue)newValue3; + + uint mask4 = 0x0060; + byte shift4 = 5; + uint newValue4 = (value & mask4) >> shift4; + ps.Smoke = (LandPlatformAppearance.SmokeValue)newValue4; + + uint mask5 = 0x0180; + byte shift5 = 7; + uint newValue5 = (value & mask5) >> shift5; + ps.TrailingEffects = (LandPlatformAppearance.TrailingEffectsValue)newValue5; + + uint mask6 = 0x0e00; + byte shift6 = 9; + uint newValue6 = (value & mask6) >> shift6; + ps.Hatch = (LandPlatformAppearance.HatchValue)newValue6; + + uint mask7 = 0x1000; + byte shift7 = 12; + uint newValue7 = (value & mask7) >> shift7; + ps.HeadLights = (LandPlatformAppearance.HeadLightsValue)newValue7; + + uint mask8 = 0x2000; + byte shift8 = 13; + uint newValue8 = (value & mask8) >> shift8; + ps.TailLights = (LandPlatformAppearance.TailLightsValue)newValue8; + + uint mask9 = 0x4000; + byte shift9 = 14; + uint newValue9 = (value & mask9) >> shift9; + ps.BrakeLights = (LandPlatformAppearance.BrakeLightsValue)newValue9; + + uint mask10 = 0x8000; + byte shift10 = 15; + uint newValue10 = (value & mask10) >> shift10; + ps.Flaming = (LandPlatformAppearance.FlamingValue)newValue10; + + uint mask11 = 0x10000; + byte shift11 = 16; + uint newValue11 = (value & mask11) >> shift11; + ps.Launcher = (LandPlatformAppearance.LauncherValue)newValue11; + + uint mask12 = 0x60000; + byte shift12 = 17; + uint newValue12 = (value & mask12) >> shift12; + ps.CamouflageType = (LandPlatformAppearance.CamouflageTypeValue)newValue12; + + uint mask13 = 0x80000; + byte shift13 = 19; + uint newValue13 = (value & mask13) >> shift13; + ps.Concealed = (LandPlatformAppearance.ConcealedValue)newValue13; + + uint mask15 = 0x200000; + byte shift15 = 21; + uint newValue15 = (value & mask15) >> shift15; + ps.FrozenStatus = (LandPlatformAppearance.FrozenStatusValue)newValue15; + + uint mask16 = 0x400000; + byte shift16 = 22; + uint newValue16 = (value & mask16) >> shift16; + ps.PowerPlantStatus = (LandPlatformAppearance.PowerPlantStatusValue)newValue16; + + uint mask17 = 0x800000; + byte shift17 = 23; + uint newValue17 = (value & mask17) >> shift17; + ps.State = (LandPlatformAppearance.StateValue)newValue17; + + uint mask18 = 0x1000000; + byte shift18 = 24; + uint newValue18 = (value & mask18) >> shift18; + ps.Tent = (LandPlatformAppearance.TentValue)newValue18; + + uint mask19 = 0x2000000; + byte shift19 = 25; + uint newValue19 = (value & mask19) >> shift19; + ps.Ramp = (LandPlatformAppearance.RampValue)newValue19; + + uint mask20 = 0x4000000; + byte shift20 = 26; + uint newValue20 = (value & mask20) >> shift20; + ps.BlackoutLights = (LandPlatformAppearance.BlackoutLightsValue)newValue20; + + uint mask21 = 0x8000000; + byte shift21 = 27; + uint newValue21 = (value & mask21) >> shift21; + ps.BlackoutBrakeLights = (LandPlatformAppearance.BlackoutBrakeLightsValue)newValue21; + + uint mask22 = 0x10000000; + byte shift22 = 28; + uint newValue22 = (value & mask22) >> shift22; + ps.SpotLights = (LandPlatformAppearance.SpotLightsValue)newValue22; + + uint mask23 = 0x20000000; + byte shift23 = 29; + uint newValue23 = (value & mask23) >> shift23; + ps.InteriorLights = (LandPlatformAppearance.InteriorLightsValue)newValue23; + + uint mask24 = 0x40000000; + byte shift24 = 30; + uint newValue24 = (value & mask24) >> shift24; + ps.SurrenderState = (LandPlatformAppearance.SurrenderStateValue)newValue24; + + uint mask25 = 0x80000000; + byte shift25 = 31; + uint newValue25 = (value & mask25) >> shift25; + ps.MaskedCloaked = (LandPlatformAppearance.MaskedCloakedValue)newValue25; + + return ps; + } + + /// + /// Gets or sets the paintscheme. + /// + /// The paintscheme. + public LandPlatformAppearance.PaintSchemeValue PaintScheme + { + get { return this.paintScheme; } + set { this.paintScheme = value; } + } + + /// + /// Gets or sets the mobility. + /// + /// The mobility. + public LandPlatformAppearance.MobilityValue Mobility + { + get { return this.mobility; } + set { this.mobility = value; } + } + + /// + /// Gets or sets the firepower. + /// + /// The firepower. + public LandPlatformAppearance.FirePowerValue FirePower + { + get { return this.firePower; } + set { this.firePower = value; } + } + + /// + /// Gets or sets the damage. + /// + /// The damage. + public LandPlatformAppearance.DamageValue Damage + { + get { return this.damage; } + set { this.damage = value; } + } + + /// + /// Gets or sets the smoke. + /// + /// The smoke. + public LandPlatformAppearance.SmokeValue Smoke + { + get { return this.smoke; } + set { this.smoke = value; } + } + + /// + /// Gets or sets the trailingeffects. + /// + /// The trailingeffects. + public LandPlatformAppearance.TrailingEffectsValue TrailingEffects + { + get { return this.trailingEffects; } + set { this.trailingEffects = value; } + } + + /// + /// Gets or sets the hatch. + /// + /// The hatch. + public LandPlatformAppearance.HatchValue Hatch + { + get { return this.hatch; } + set { this.hatch = value; } + } + + /// + /// Gets or sets the headlights. + /// + /// The headlights. + public LandPlatformAppearance.HeadLightsValue HeadLights + { + get { return this.headLights; } + set { this.headLights = value; } + } + + /// + /// Gets or sets the taillights. + /// + /// The taillights. + public LandPlatformAppearance.TailLightsValue TailLights + { + get { return this.tailLights; } + set { this.tailLights = value; } + } + + /// + /// Gets or sets the brakelights. + /// + /// The brakelights. + public LandPlatformAppearance.BrakeLightsValue BrakeLights + { + get { return this.brakeLights; } + set { this.brakeLights = value; } + } + + /// + /// Gets or sets the flaming. + /// + /// The flaming. + public LandPlatformAppearance.FlamingValue Flaming + { + get { return this.flaming; } + set { this.flaming = value; } + } + + /// + /// Gets or sets the launcher. + /// + /// The launcher. + public LandPlatformAppearance.LauncherValue Launcher + { + get { return this.launcher; } + set { this.launcher = value; } + } + + /// + /// Gets or sets the camouflagetype. + /// + /// The camouflagetype. + public LandPlatformAppearance.CamouflageTypeValue CamouflageType + { + get { return this.camouflageType; } + set { this.camouflageType = value; } + } + + /// + /// Gets or sets the concealed. + /// + /// The concealed. + public LandPlatformAppearance.ConcealedValue Concealed + { + get { return this.concealed; } + set { this.concealed = value; } + } + + /// + /// Gets or sets the frozenstatus. + /// + /// The frozenstatus. + public LandPlatformAppearance.FrozenStatusValue FrozenStatus + { + get { return this.frozenStatus; } + set { this.frozenStatus = value; } + } + + /// + /// Gets or sets the powerplantstatus. + /// + /// The powerplantstatus. + public LandPlatformAppearance.PowerPlantStatusValue PowerPlantStatus + { + get { return this.powerPlantStatus; } + set { this.powerPlantStatus = value; } + } + + /// + /// Gets or sets the state. + /// + /// The state. + public LandPlatformAppearance.StateValue State + { + get { return this.state; } + set { this.state = value; } + } + + /// + /// Gets or sets the tent. + /// + /// The tent. + public LandPlatformAppearance.TentValue Tent + { + get { return this.tent; } + set { this.tent = value; } + } + + /// + /// Gets or sets the ramp. + /// + /// The ramp. + public LandPlatformAppearance.RampValue Ramp + { + get { return this.ramp; } + set { this.ramp = value; } + } + + /// + /// Gets or sets the blackoutlights. + /// + /// The blackoutlights. + public LandPlatformAppearance.BlackoutLightsValue BlackoutLights + { + get { return this.blackoutLights; } + set { this.blackoutLights = value; } + } + + /// + /// Gets or sets the blackoutbrakelights. + /// + /// The blackoutbrakelights. + public LandPlatformAppearance.BlackoutBrakeLightsValue BlackoutBrakeLights + { + get { return this.blackoutBrakeLights; } + set { this.blackoutBrakeLights = value; } + } + + /// + /// Gets or sets the spotlights. + /// + /// The spotlights. + public LandPlatformAppearance.SpotLightsValue SpotLights + { + get { return this.spotLights; } + set { this.spotLights = value; } + } + + /// + /// Gets or sets the interiorlights. + /// + /// The interiorlights. + public LandPlatformAppearance.InteriorLightsValue InteriorLights + { + get { return this.interiorLights; } + set { this.interiorLights = value; } + } + + /// + /// Gets or sets the surrenderstate. + /// + /// The surrenderstate. + public LandPlatformAppearance.SurrenderStateValue SurrenderState + { + get { return this.surrenderState; } + set { this.surrenderState = value; } + } + + /// + /// Gets or sets the maskedcloaked. + /// + /// The maskedcloaked. + public LandPlatformAppearance.MaskedCloakedValue MaskedCloaked + { + get { return this.maskedCloaked; } + set { this.maskedCloaked = value; } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (!(obj is LandPlatformAppearance)) + { + return false; + } + + return this.Equals((LandPlatformAppearance)obj); + } + + /// + /// Determines whether the specified instance is equal to this instance. + /// + /// The instance to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public bool Equals(LandPlatformAppearance other) + { + // If parameter is null return false (cast to object to prevent recursive loop!) + if ((object)other == null) + { + return false; + } + + return + this.PaintScheme == other.PaintScheme && + this.Mobility == other.Mobility && + this.FirePower == other.FirePower && + this.Damage == other.Damage && + this.Smoke == other.Smoke && + this.TrailingEffects == other.TrailingEffects && + this.Hatch == other.Hatch && + this.HeadLights == other.HeadLights && + this.TailLights == other.TailLights && + this.BrakeLights == other.BrakeLights && + this.Flaming == other.Flaming && + this.Launcher == other.Launcher && + this.CamouflageType == other.CamouflageType && + this.Concealed == other.Concealed && + this.FrozenStatus == other.FrozenStatus && + this.PowerPlantStatus == other.PowerPlantStatus && + this.State == other.State && + this.Tent == other.Tent && + this.Ramp == other.Ramp && + this.BlackoutLights == other.BlackoutLights && + this.BlackoutBrakeLights == other.BlackoutBrakeLights && + this.SpotLights == other.SpotLights && + this.InteriorLights == other.InteriorLights && + this.SurrenderState == other.SurrenderState && + this.MaskedCloaked == other.MaskedCloaked; + } + + /// + /// Converts the instance of to the byte array. + /// + /// The byte array representing the current instance. + public byte[] ToByteArray() + { + return BitConverter.GetBytes(this.ToUInt32()); + } + + /// + /// Converts the instance of to the uint value. + /// + /// The uint value representing the current instance. + public uint ToUInt32() + { + uint val = 0; + + val |= (uint)((uint)this.PaintScheme << 0); + val |= (uint)((uint)this.Mobility << 1); + val |= (uint)((uint)this.FirePower << 2); + val |= (uint)((uint)this.Damage << 3); + val |= (uint)((uint)this.Smoke << 5); + val |= (uint)((uint)this.TrailingEffects << 7); + val |= (uint)((uint)this.Hatch << 9); + val |= (uint)((uint)this.HeadLights << 12); + val |= (uint)((uint)this.TailLights << 13); + val |= (uint)((uint)this.BrakeLights << 14); + val |= (uint)((uint)this.Flaming << 15); + val |= (uint)((uint)this.Launcher << 16); + val |= (uint)((uint)this.CamouflageType << 17); + val |= (uint)((uint)this.Concealed << 19); + val |= (uint)((uint)this.FrozenStatus << 21); + val |= (uint)((uint)this.PowerPlantStatus << 22); + val |= (uint)((uint)this.State << 23); + val |= (uint)((uint)this.Tent << 24); + val |= (uint)((uint)this.Ramp << 25); + val |= (uint)((uint)this.BlackoutLights << 26); + val |= (uint)((uint)this.BlackoutBrakeLights << 27); + val |= (uint)((uint)this.SpotLights << 28); + val |= (uint)((uint)this.InteriorLights << 29); + val |= (uint)((uint)this.SurrenderState << 30); + val |= (uint)((uint)this.MaskedCloaked << 31); + + return val; + } + + /// + /// Returns a hash code for this instance. + /// + /// + /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + /// + public override int GetHashCode() + { + int hash = 17; + + // Overflow is fine, just wrap + unchecked + { + hash = (hash * 29) + this.PaintScheme.GetHashCode(); + hash = (hash * 29) + this.Mobility.GetHashCode(); + hash = (hash * 29) + this.FirePower.GetHashCode(); + hash = (hash * 29) + this.Damage.GetHashCode(); + hash = (hash * 29) + this.Smoke.GetHashCode(); + hash = (hash * 29) + this.TrailingEffects.GetHashCode(); + hash = (hash * 29) + this.Hatch.GetHashCode(); + hash = (hash * 29) + this.HeadLights.GetHashCode(); + hash = (hash * 29) + this.TailLights.GetHashCode(); + hash = (hash * 29) + this.BrakeLights.GetHashCode(); + hash = (hash * 29) + this.Flaming.GetHashCode(); + hash = (hash * 29) + this.Launcher.GetHashCode(); + hash = (hash * 29) + this.CamouflageType.GetHashCode(); + hash = (hash * 29) + this.Concealed.GetHashCode(); + hash = (hash * 29) + this.FrozenStatus.GetHashCode(); + hash = (hash * 29) + this.PowerPlantStatus.GetHashCode(); + hash = (hash * 29) + this.State.GetHashCode(); + hash = (hash * 29) + this.Tent.GetHashCode(); + hash = (hash * 29) + this.Ramp.GetHashCode(); + hash = (hash * 29) + this.BlackoutLights.GetHashCode(); + hash = (hash * 29) + this.BlackoutBrakeLights.GetHashCode(); + hash = (hash * 29) + this.SpotLights.GetHashCode(); + hash = (hash * 29) + this.InteriorLights.GetHashCode(); + hash = (hash * 29) + this.SurrenderState.GetHashCode(); + hash = (hash * 29) + this.MaskedCloaked.GetHashCode(); + } + + return hash; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/LifeFormAppearance.cs b/Libs/CsharpDis6/Enumerations/EntityState.Appearance/LifeFormAppearance.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/LifeFormAppearance.cs rename to Libs/CsharpDis6/Enumerations/EntityState.Appearance/LifeFormAppearance.cs index 9f9fb13..e664027 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/LifeFormAppearance.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState.Appearance/LifeFormAppearance.cs @@ -1,863 +1,863 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState.Appearance -{ - /// - /// Enumeration values for LifeFormAppearance (es.appear.lifeform, Life Forms Kind, - /// section 4.3.3) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public struct LifeFormAppearance - { - /// - /// Describes the paint scheme of an entity - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the paint scheme of an entity")] - public enum PaintSchemeValue : uint - { - /// - /// Uniform color - /// - UniformColor = 0, - - /// - /// Camouflage - /// - Camouflage = 1 - } - - /// - /// Describes the damaged visual appearance of an entity - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the damaged visual appearance of an entity")] - public enum HealthValue : uint - { - /// - /// No injury - /// - NoInjury = 0, - - /// - /// Slight injury - /// - SlightInjury = 1, - - /// - /// Moderate injury - /// - ModerateInjury = 2, - - /// - /// Fatal injury - /// - FatalInjury = 3 - } - - /// - /// Describes compliance of life form - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes compliance of life form")] - public enum ComplianceValue : uint - { - /// - /// null - /// - Unknown = 0, - - /// - /// Detained - /// - Detained = 1, - - /// - /// Surrender - /// - Surrender = 2, - - /// - /// Using fists - /// - UsingFists = 3, - - /// - /// Verbal abuse level 1 - /// - VerbalAbuseLevel1 = 4, - - /// - /// Verbal abuse level 2 - /// - VerbalAbuseLevel2 = 5, - - /// - /// Verbal abuse level 3 - /// - VerbalAbuseLevel3 = 6, - - /// - /// Passive resistance level 1 - /// - PassiveResistanceLevel1 = 7, - - /// - /// Passive resistance level 2 - /// - PassiveResistanceLevel2 = 8, - - /// - /// Passive resistance level 3 - /// - PassiveResistanceLevel3 = 9, - - /// - /// Using non-lethal weapon 1 - /// - UsingNonLethalWeapon1 = 10, - - /// - /// Using non-lethal weapon 2 - /// - UsingNonLethalWeapon2 = 11, - - /// - /// Using non-lethal weapon 3 - /// - UsingNonLethalWeapon3 = 12, - - /// - /// Using non-lethal weapon 4 - /// - UsingNonLethalWeapon4 = 13, - - /// - /// Using non-lethal weapon 5 - /// - UsingNonLethalWeapon5 = 14, - - /// - /// Using non-lethal weapon 6 - /// - UsingNonLethalWeapon6 = 15 - } - - /// - /// Describes whether Flash Lights are on or off. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes whether Flash Lights are on or off.")] - public enum FlashLightsValue : uint - { - /// - /// Off - /// - Off = 0, - - /// - /// On - /// - On = 1 - } - - /// - /// Describes the state of the life form - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the state of the life form")] - public enum LifeFormStateValue : uint - { - /// - /// null - /// - Unknown = 0, - - /// - /// Upright, standing still - /// - UprightStandingStill = 1, - - /// - /// Upright, walking - /// - UprightWalking = 2, - - /// - /// Upright, running - /// - UprightRunning = 3, - - /// - /// Kneeling - /// - Kneeling = 4, - - /// - /// Prone - /// - Prone = 5, - - /// - /// Crawling - /// - Crawling = 6, - - /// - /// Swimming - /// - Swimming = 7, - - /// - /// Parachuting - /// - Parachuting = 8, - - /// - /// Jumping - /// - Jumping = 9, - - /// - /// Sitting - /// - Sitting = 10, - - /// - /// Squatting - /// - Squatting = 11, - - /// - /// Crouching - /// - Crouching = 12, - - /// - /// Wading - /// - Wading = 13, - - /// - /// Surrender - /// - Surrender = 14, - - /// - /// Detained - /// - Detained = 15 - } - - /// - /// Describes the frozen status of a life form - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the frozen status of a life form")] - public enum FrozenStatusValue : uint - { - /// - /// Not frozen - /// - NotFrozen = 0, - - /// - /// Frozen (Frozen entities should not be dead-reckoned, i.e. they should be displayed as fixed at the current location even if nonzero velocity, acceleration or rotation data is received from the frozen entity) - /// - FrozenFrozenEntitiesShouldNotBeDeadReckonedIETheyShouldBeDisplayedAsFixedAtTheCurrentLocationEvenIfNonzeroVelocityAccelerationOrRotationDataIsReceivedFromTheFrozenEntity = 1 - } - - /// - /// Describes the state of a life form - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the state of a life form")] - public enum StateValue : uint - { - /// - /// Active - /// - Active = 0, - - /// - /// Deactivated - /// - Deactivated = 1 - } - - /// - /// Describes the position of the life form's primary weapon - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the position of the life form's primary weapon")] - public enum Weapon1Value : uint - { - /// - /// No primary weapon present - /// - NoPrimaryWeaponPresent = 0, - - /// - /// Primary weapon is stowed - /// - PrimaryWeaponIsStowed = 1, - - /// - /// Primary weapon is deployed - /// - PrimaryWeaponIsDeployed = 2, - - /// - /// Primary weapon is in firing position - /// - PrimaryWeaponIsInFiringPosition = 3 - } - - /// - /// Describes the position of the life form's secondary weapon - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the position of the life form's secondary weapon")] - public enum Weapon2Value : uint - { - /// - /// No secondary weapon present - /// - NoSecondaryWeaponPresent = 0, - - /// - /// Secondary weapon is stowed - /// - SecondaryWeaponIsStowed = 1, - - /// - /// Secondary weapon is deployed - /// - SecondaryWeaponIsDeployed = 2, - - /// - /// Secondary weapon is in firing position - /// - SecondaryWeaponIsInFiringPosition = 3 - } - - /// - /// Describes the type of camouflage - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the type of camouflage")] - public enum CamouflageTypeValue : uint - { - /// - /// Desert camouflage - /// - DesertCamouflage = 0, - - /// - /// Winter camouflage - /// - WinterCamouflage = 1, - - /// - /// Forest camouflage - /// - ForestCamouflage = 2, - - /// - /// null - /// - Unknown = 3 - } - - /// - /// Describes the type of stationary concealment - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the type of stationary concealment")] - public enum ConcealedStationaryValue : uint - { - /// - /// Not concealed - /// - NotConcealed = 0, - - /// - /// Entity in a prepared concealed position - /// - EntityInAPreparedConcealedPosition = 1 - } - - /// - /// Describes the type of concealed movement - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the type of concealed movement")] - public enum ConcealedMovementValue : uint - { - /// - /// Open movement - /// - OpenMovement = 0, - - /// - /// Rushes between covered positions - /// - RushesBetweenCoveredPositions = 1 - } - - private LifeFormAppearance.PaintSchemeValue paintScheme; - private LifeFormAppearance.HealthValue health; - private LifeFormAppearance.ComplianceValue compliance; - private LifeFormAppearance.FlashLightsValue flashLights; - private LifeFormAppearance.LifeFormStateValue lifeFormState; - private LifeFormAppearance.FrozenStatusValue frozenStatus; - private LifeFormAppearance.StateValue state; - private LifeFormAppearance.Weapon1Value weapon1; - private LifeFormAppearance.Weapon2Value weapon2; - private LifeFormAppearance.CamouflageTypeValue camouflageType; - private LifeFormAppearance.ConcealedStationaryValue concealedStationary; - private LifeFormAppearance.ConcealedMovementValue concealedMovement; - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(LifeFormAppearance left, LifeFormAppearance right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator ==(LifeFormAppearance left, LifeFormAppearance right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - // If parameters are null return false (cast to object to prevent recursive loop!) - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The scheme instance. - /// The result of the conversion. - public static explicit operator uint(LifeFormAppearance obj) - { - return obj.ToUInt32(); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The uint value. - /// The result of the conversion. - public static explicit operator LifeFormAppearance(uint value) - { - return LifeFormAppearance.FromUInt32(value); - } - - /// - /// Creates the instance from the byte array. - /// - /// The array which holds the values for the . - /// The starting position within value. - /// The instance, represented by a byte array. - /// if the array is null. - /// if the index is lower than 0 or greater or equal than number of elements in array. - public static LifeFormAppearance FromByteArray(byte[] array, int index) - { - if (array == null) - { - throw new ArgumentNullException("array"); - } - - if (index < 0 || - index > array.Length - 1 || - index + 4 > array.Length - 1) - { - throw new IndexOutOfRangeException(); - } - - return FromUInt32(BitConverter.ToUInt32(array, index)); - } - - /// - /// Creates the instance from the uint value. - /// - /// The uint value which represents the instance. - /// The instance, represented by the uint value. - public static LifeFormAppearance FromUInt32(uint value) - { - LifeFormAppearance ps = new LifeFormAppearance(); - - uint mask0 = 0x0001; - byte shift0 = 0; - uint newValue0 = (value & mask0) >> shift0; - ps.PaintScheme = (LifeFormAppearance.PaintSchemeValue)newValue0; - - uint mask2 = 0x0018; - byte shift2 = 3; - uint newValue2 = (value & mask2) >> shift2; - ps.Health = (LifeFormAppearance.HealthValue)newValue2; - - uint mask3 = 0x01e0; - byte shift3 = 5; - uint newValue3 = (value & mask3) >> shift3; - ps.Compliance = (LifeFormAppearance.ComplianceValue)newValue3; - - uint mask5 = 0x1000; - byte shift5 = 12; - uint newValue5 = (value & mask5) >> shift5; - ps.FlashLights = (LifeFormAppearance.FlashLightsValue)newValue5; - - uint mask7 = 0xf0000; - byte shift7 = 16; - uint newValue7 = (value & mask7) >> shift7; - ps.LifeFormState = (LifeFormAppearance.LifeFormStateValue)newValue7; - - uint mask9 = 0x200000; - byte shift9 = 21; - uint newValue9 = (value & mask9) >> shift9; - ps.FrozenStatus = (LifeFormAppearance.FrozenStatusValue)newValue9; - - uint mask11 = 0x800000; - byte shift11 = 23; - uint newValue11 = (value & mask11) >> shift11; - ps.State = (LifeFormAppearance.StateValue)newValue11; - - uint mask12 = 0x3000000; - byte shift12 = 24; - uint newValue12 = (value & mask12) >> shift12; - ps.Weapon1 = (LifeFormAppearance.Weapon1Value)newValue12; - - uint mask13 = 0xc000000; - byte shift13 = 26; - uint newValue13 = (value & mask13) >> shift13; - ps.Weapon2 = (LifeFormAppearance.Weapon2Value)newValue13; - - uint mask14 = 0x30000000; - byte shift14 = 28; - uint newValue14 = (value & mask14) >> shift14; - ps.CamouflageType = (LifeFormAppearance.CamouflageTypeValue)newValue14; - - uint mask15 = 0x40000000; - byte shift15 = 30; - uint newValue15 = (value & mask15) >> shift15; - ps.ConcealedStationary = (LifeFormAppearance.ConcealedStationaryValue)newValue15; - - uint mask16 = 0x80000000; - byte shift16 = 31; - uint newValue16 = (value & mask16) >> shift16; - ps.ConcealedMovement = (LifeFormAppearance.ConcealedMovementValue)newValue16; - - return ps; - } - - /// - /// Gets or sets the paintscheme. - /// - /// The paintscheme. - public LifeFormAppearance.PaintSchemeValue PaintScheme - { - get { return this.paintScheme; } - set { this.paintScheme = value; } - } - - /// - /// Gets or sets the health. - /// - /// The health. - public LifeFormAppearance.HealthValue Health - { - get { return this.health; } - set { this.health = value; } - } - - /// - /// Gets or sets the compliance. - /// - /// The compliance. - public LifeFormAppearance.ComplianceValue Compliance - { - get { return this.compliance; } - set { this.compliance = value; } - } - - /// - /// Gets or sets the flashlights. - /// - /// The flashlights. - public LifeFormAppearance.FlashLightsValue FlashLights - { - get { return this.flashLights; } - set { this.flashLights = value; } - } - - /// - /// Gets or sets the lifeformstate. - /// - /// The lifeformstate. - public LifeFormAppearance.LifeFormStateValue LifeFormState - { - get { return this.lifeFormState; } - set { this.lifeFormState = value; } - } - - /// - /// Gets or sets the frozenstatus. - /// - /// The frozenstatus. - public LifeFormAppearance.FrozenStatusValue FrozenStatus - { - get { return this.frozenStatus; } - set { this.frozenStatus = value; } - } - - /// - /// Gets or sets the state. - /// - /// The state. - public LifeFormAppearance.StateValue State - { - get { return this.state; } - set { this.state = value; } - } - - /// - /// Gets or sets the weapon1. - /// - /// The weapon1. - public LifeFormAppearance.Weapon1Value Weapon1 - { - get { return this.weapon1; } - set { this.weapon1 = value; } - } - - /// - /// Gets or sets the weapon2. - /// - /// The weapon2. - public LifeFormAppearance.Weapon2Value Weapon2 - { - get { return this.weapon2; } - set { this.weapon2 = value; } - } - - /// - /// Gets or sets the camouflagetype. - /// - /// The camouflagetype. - public LifeFormAppearance.CamouflageTypeValue CamouflageType - { - get { return this.camouflageType; } - set { this.camouflageType = value; } - } - - /// - /// Gets or sets the concealedstationary. - /// - /// The concealedstationary. - public LifeFormAppearance.ConcealedStationaryValue ConcealedStationary - { - get { return this.concealedStationary; } - set { this.concealedStationary = value; } - } - - /// - /// Gets or sets the concealedmovement. - /// - /// The concealedmovement. - public LifeFormAppearance.ConcealedMovementValue ConcealedMovement - { - get { return this.concealedMovement; } - set { this.concealedMovement = value; } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - if (obj == null) - { - return false; - } - - if (!(obj is LifeFormAppearance)) - { - return false; - } - - return this.Equals((LifeFormAppearance)obj); - } - - /// - /// Determines whether the specified instance is equal to this instance. - /// - /// The instance to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public bool Equals(LifeFormAppearance other) - { - // If parameter is null return false (cast to object to prevent recursive loop!) - if ((object)other == null) - { - return false; - } - - return - this.PaintScheme == other.PaintScheme && - this.Health == other.Health && - this.Compliance == other.Compliance && - this.FlashLights == other.FlashLights && - this.LifeFormState == other.LifeFormState && - this.FrozenStatus == other.FrozenStatus && - this.State == other.State && - this.Weapon1 == other.Weapon1 && - this.Weapon2 == other.Weapon2 && - this.CamouflageType == other.CamouflageType && - this.ConcealedStationary == other.ConcealedStationary && - this.ConcealedMovement == other.ConcealedMovement; - } - - /// - /// Converts the instance of to the byte array. - /// - /// The byte array representing the current instance. - public byte[] ToByteArray() - { - return BitConverter.GetBytes(this.ToUInt32()); - } - - /// - /// Converts the instance of to the uint value. - /// - /// The uint value representing the current instance. - public uint ToUInt32() - { - uint val = 0; - - val |= (uint)((uint)this.PaintScheme << 0); - val |= (uint)((uint)this.Health << 3); - val |= (uint)((uint)this.Compliance << 5); - val |= (uint)((uint)this.FlashLights << 12); - val |= (uint)((uint)this.LifeFormState << 16); - val |= (uint)((uint)this.FrozenStatus << 21); - val |= (uint)((uint)this.State << 23); - val |= (uint)((uint)this.Weapon1 << 24); - val |= (uint)((uint)this.Weapon2 << 26); - val |= (uint)((uint)this.CamouflageType << 28); - val |= (uint)((uint)this.ConcealedStationary << 30); - val |= (uint)((uint)this.ConcealedMovement << 31); - - return val; - } - - /// - /// Returns a hash code for this instance. - /// - /// - /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - /// - public override int GetHashCode() - { - int hash = 17; - - // Overflow is fine, just wrap - unchecked - { - hash = (hash * 29) + this.PaintScheme.GetHashCode(); - hash = (hash * 29) + this.Health.GetHashCode(); - hash = (hash * 29) + this.Compliance.GetHashCode(); - hash = (hash * 29) + this.FlashLights.GetHashCode(); - hash = (hash * 29) + this.LifeFormState.GetHashCode(); - hash = (hash * 29) + this.FrozenStatus.GetHashCode(); - hash = (hash * 29) + this.State.GetHashCode(); - hash = (hash * 29) + this.Weapon1.GetHashCode(); - hash = (hash * 29) + this.Weapon2.GetHashCode(); - hash = (hash * 29) + this.CamouflageType.GetHashCode(); - hash = (hash * 29) + this.ConcealedStationary.GetHashCode(); - hash = (hash * 29) + this.ConcealedMovement.GetHashCode(); - } - - return hash; - } - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState.Appearance +{ + /// + /// Enumeration values for LifeFormAppearance (es.appear.lifeform, Life Forms Kind, + /// section 4.3.3) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public struct LifeFormAppearance + { + /// + /// Describes the paint scheme of an entity + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the paint scheme of an entity")] + public enum PaintSchemeValue : uint + { + /// + /// Uniform color + /// + UniformColor = 0, + + /// + /// Camouflage + /// + Camouflage = 1 + } + + /// + /// Describes the damaged visual appearance of an entity + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the damaged visual appearance of an entity")] + public enum HealthValue : uint + { + /// + /// No injury + /// + NoInjury = 0, + + /// + /// Slight injury + /// + SlightInjury = 1, + + /// + /// Moderate injury + /// + ModerateInjury = 2, + + /// + /// Fatal injury + /// + FatalInjury = 3 + } + + /// + /// Describes compliance of life form + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes compliance of life form")] + public enum ComplianceValue : uint + { + /// + /// null + /// + Unknown = 0, + + /// + /// Detained + /// + Detained = 1, + + /// + /// Surrender + /// + Surrender = 2, + + /// + /// Using fists + /// + UsingFists = 3, + + /// + /// Verbal abuse level 1 + /// + VerbalAbuseLevel1 = 4, + + /// + /// Verbal abuse level 2 + /// + VerbalAbuseLevel2 = 5, + + /// + /// Verbal abuse level 3 + /// + VerbalAbuseLevel3 = 6, + + /// + /// Passive resistance level 1 + /// + PassiveResistanceLevel1 = 7, + + /// + /// Passive resistance level 2 + /// + PassiveResistanceLevel2 = 8, + + /// + /// Passive resistance level 3 + /// + PassiveResistanceLevel3 = 9, + + /// + /// Using non-lethal weapon 1 + /// + UsingNonLethalWeapon1 = 10, + + /// + /// Using non-lethal weapon 2 + /// + UsingNonLethalWeapon2 = 11, + + /// + /// Using non-lethal weapon 3 + /// + UsingNonLethalWeapon3 = 12, + + /// + /// Using non-lethal weapon 4 + /// + UsingNonLethalWeapon4 = 13, + + /// + /// Using non-lethal weapon 5 + /// + UsingNonLethalWeapon5 = 14, + + /// + /// Using non-lethal weapon 6 + /// + UsingNonLethalWeapon6 = 15 + } + + /// + /// Describes whether Flash Lights are on or off. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes whether Flash Lights are on or off.")] + public enum FlashLightsValue : uint + { + /// + /// Off + /// + Off = 0, + + /// + /// On + /// + On = 1 + } + + /// + /// Describes the state of the life form + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the state of the life form")] + public enum LifeFormStateValue : uint + { + /// + /// null + /// + Unknown = 0, + + /// + /// Upright, standing still + /// + UprightStandingStill = 1, + + /// + /// Upright, walking + /// + UprightWalking = 2, + + /// + /// Upright, running + /// + UprightRunning = 3, + + /// + /// Kneeling + /// + Kneeling = 4, + + /// + /// Prone + /// + Prone = 5, + + /// + /// Crawling + /// + Crawling = 6, + + /// + /// Swimming + /// + Swimming = 7, + + /// + /// Parachuting + /// + Parachuting = 8, + + /// + /// Jumping + /// + Jumping = 9, + + /// + /// Sitting + /// + Sitting = 10, + + /// + /// Squatting + /// + Squatting = 11, + + /// + /// Crouching + /// + Crouching = 12, + + /// + /// Wading + /// + Wading = 13, + + /// + /// Surrender + /// + Surrender = 14, + + /// + /// Detained + /// + Detained = 15 + } + + /// + /// Describes the frozen status of a life form + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the frozen status of a life form")] + public enum FrozenStatusValue : uint + { + /// + /// Not frozen + /// + NotFrozen = 0, + + /// + /// Frozen (Frozen entities should not be dead-reckoned, i.e. they should be displayed as fixed at the current location even if nonzero velocity, acceleration or rotation data is received from the frozen entity) + /// + FrozenFrozenEntitiesShouldNotBeDeadReckonedIETheyShouldBeDisplayedAsFixedAtTheCurrentLocationEvenIfNonzeroVelocityAccelerationOrRotationDataIsReceivedFromTheFrozenEntity = 1 + } + + /// + /// Describes the state of a life form + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the state of a life form")] + public enum StateValue : uint + { + /// + /// Active + /// + Active = 0, + + /// + /// Deactivated + /// + Deactivated = 1 + } + + /// + /// Describes the position of the life form's primary weapon + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the position of the life form's primary weapon")] + public enum Weapon1Value : uint + { + /// + /// No primary weapon present + /// + NoPrimaryWeaponPresent = 0, + + /// + /// Primary weapon is stowed + /// + PrimaryWeaponIsStowed = 1, + + /// + /// Primary weapon is deployed + /// + PrimaryWeaponIsDeployed = 2, + + /// + /// Primary weapon is in firing position + /// + PrimaryWeaponIsInFiringPosition = 3 + } + + /// + /// Describes the position of the life form's secondary weapon + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the position of the life form's secondary weapon")] + public enum Weapon2Value : uint + { + /// + /// No secondary weapon present + /// + NoSecondaryWeaponPresent = 0, + + /// + /// Secondary weapon is stowed + /// + SecondaryWeaponIsStowed = 1, + + /// + /// Secondary weapon is deployed + /// + SecondaryWeaponIsDeployed = 2, + + /// + /// Secondary weapon is in firing position + /// + SecondaryWeaponIsInFiringPosition = 3 + } + + /// + /// Describes the type of camouflage + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the type of camouflage")] + public enum CamouflageTypeValue : uint + { + /// + /// Desert camouflage + /// + DesertCamouflage = 0, + + /// + /// Winter camouflage + /// + WinterCamouflage = 1, + + /// + /// Forest camouflage + /// + ForestCamouflage = 2, + + /// + /// null + /// + Unknown = 3 + } + + /// + /// Describes the type of stationary concealment + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the type of stationary concealment")] + public enum ConcealedStationaryValue : uint + { + /// + /// Not concealed + /// + NotConcealed = 0, + + /// + /// Entity in a prepared concealed position + /// + EntityInAPreparedConcealedPosition = 1 + } + + /// + /// Describes the type of concealed movement + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the type of concealed movement")] + public enum ConcealedMovementValue : uint + { + /// + /// Open movement + /// + OpenMovement = 0, + + /// + /// Rushes between covered positions + /// + RushesBetweenCoveredPositions = 1 + } + + private LifeFormAppearance.PaintSchemeValue paintScheme; + private LifeFormAppearance.HealthValue health; + private LifeFormAppearance.ComplianceValue compliance; + private LifeFormAppearance.FlashLightsValue flashLights; + private LifeFormAppearance.LifeFormStateValue lifeFormState; + private LifeFormAppearance.FrozenStatusValue frozenStatus; + private LifeFormAppearance.StateValue state; + private LifeFormAppearance.Weapon1Value weapon1; + private LifeFormAppearance.Weapon2Value weapon2; + private LifeFormAppearance.CamouflageTypeValue camouflageType; + private LifeFormAppearance.ConcealedStationaryValue concealedStationary; + private LifeFormAppearance.ConcealedMovementValue concealedMovement; + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(LifeFormAppearance left, LifeFormAppearance right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator ==(LifeFormAppearance left, LifeFormAppearance right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + // If parameters are null return false (cast to object to prevent recursive loop!) + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The scheme instance. + /// The result of the conversion. + public static explicit operator uint(LifeFormAppearance obj) + { + return obj.ToUInt32(); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The uint value. + /// The result of the conversion. + public static explicit operator LifeFormAppearance(uint value) + { + return LifeFormAppearance.FromUInt32(value); + } + + /// + /// Creates the instance from the byte array. + /// + /// The array which holds the values for the . + /// The starting position within value. + /// The instance, represented by a byte array. + /// if the array is null. + /// if the index is lower than 0 or greater or equal than number of elements in array. + public static LifeFormAppearance FromByteArray(byte[] array, int index) + { + if (array == null) + { + throw new ArgumentNullException("array"); + } + + if (index < 0 || + index > array.Length - 1 || + index + 4 > array.Length - 1) + { + throw new IndexOutOfRangeException(); + } + + return FromUInt32(BitConverter.ToUInt32(array, index)); + } + + /// + /// Creates the instance from the uint value. + /// + /// The uint value which represents the instance. + /// The instance, represented by the uint value. + public static LifeFormAppearance FromUInt32(uint value) + { + LifeFormAppearance ps = new LifeFormAppearance(); + + uint mask0 = 0x0001; + byte shift0 = 0; + uint newValue0 = (value & mask0) >> shift0; + ps.PaintScheme = (LifeFormAppearance.PaintSchemeValue)newValue0; + + uint mask2 = 0x0018; + byte shift2 = 3; + uint newValue2 = (value & mask2) >> shift2; + ps.Health = (LifeFormAppearance.HealthValue)newValue2; + + uint mask3 = 0x01e0; + byte shift3 = 5; + uint newValue3 = (value & mask3) >> shift3; + ps.Compliance = (LifeFormAppearance.ComplianceValue)newValue3; + + uint mask5 = 0x1000; + byte shift5 = 12; + uint newValue5 = (value & mask5) >> shift5; + ps.FlashLights = (LifeFormAppearance.FlashLightsValue)newValue5; + + uint mask7 = 0xf0000; + byte shift7 = 16; + uint newValue7 = (value & mask7) >> shift7; + ps.LifeFormState = (LifeFormAppearance.LifeFormStateValue)newValue7; + + uint mask9 = 0x200000; + byte shift9 = 21; + uint newValue9 = (value & mask9) >> shift9; + ps.FrozenStatus = (LifeFormAppearance.FrozenStatusValue)newValue9; + + uint mask11 = 0x800000; + byte shift11 = 23; + uint newValue11 = (value & mask11) >> shift11; + ps.State = (LifeFormAppearance.StateValue)newValue11; + + uint mask12 = 0x3000000; + byte shift12 = 24; + uint newValue12 = (value & mask12) >> shift12; + ps.Weapon1 = (LifeFormAppearance.Weapon1Value)newValue12; + + uint mask13 = 0xc000000; + byte shift13 = 26; + uint newValue13 = (value & mask13) >> shift13; + ps.Weapon2 = (LifeFormAppearance.Weapon2Value)newValue13; + + uint mask14 = 0x30000000; + byte shift14 = 28; + uint newValue14 = (value & mask14) >> shift14; + ps.CamouflageType = (LifeFormAppearance.CamouflageTypeValue)newValue14; + + uint mask15 = 0x40000000; + byte shift15 = 30; + uint newValue15 = (value & mask15) >> shift15; + ps.ConcealedStationary = (LifeFormAppearance.ConcealedStationaryValue)newValue15; + + uint mask16 = 0x80000000; + byte shift16 = 31; + uint newValue16 = (value & mask16) >> shift16; + ps.ConcealedMovement = (LifeFormAppearance.ConcealedMovementValue)newValue16; + + return ps; + } + + /// + /// Gets or sets the paintscheme. + /// + /// The paintscheme. + public LifeFormAppearance.PaintSchemeValue PaintScheme + { + get { return this.paintScheme; } + set { this.paintScheme = value; } + } + + /// + /// Gets or sets the health. + /// + /// The health. + public LifeFormAppearance.HealthValue Health + { + get { return this.health; } + set { this.health = value; } + } + + /// + /// Gets or sets the compliance. + /// + /// The compliance. + public LifeFormAppearance.ComplianceValue Compliance + { + get { return this.compliance; } + set { this.compliance = value; } + } + + /// + /// Gets or sets the flashlights. + /// + /// The flashlights. + public LifeFormAppearance.FlashLightsValue FlashLights + { + get { return this.flashLights; } + set { this.flashLights = value; } + } + + /// + /// Gets or sets the lifeformstate. + /// + /// The lifeformstate. + public LifeFormAppearance.LifeFormStateValue LifeFormState + { + get { return this.lifeFormState; } + set { this.lifeFormState = value; } + } + + /// + /// Gets or sets the frozenstatus. + /// + /// The frozenstatus. + public LifeFormAppearance.FrozenStatusValue FrozenStatus + { + get { return this.frozenStatus; } + set { this.frozenStatus = value; } + } + + /// + /// Gets or sets the state. + /// + /// The state. + public LifeFormAppearance.StateValue State + { + get { return this.state; } + set { this.state = value; } + } + + /// + /// Gets or sets the weapon1. + /// + /// The weapon1. + public LifeFormAppearance.Weapon1Value Weapon1 + { + get { return this.weapon1; } + set { this.weapon1 = value; } + } + + /// + /// Gets or sets the weapon2. + /// + /// The weapon2. + public LifeFormAppearance.Weapon2Value Weapon2 + { + get { return this.weapon2; } + set { this.weapon2 = value; } + } + + /// + /// Gets or sets the camouflagetype. + /// + /// The camouflagetype. + public LifeFormAppearance.CamouflageTypeValue CamouflageType + { + get { return this.camouflageType; } + set { this.camouflageType = value; } + } + + /// + /// Gets or sets the concealedstationary. + /// + /// The concealedstationary. + public LifeFormAppearance.ConcealedStationaryValue ConcealedStationary + { + get { return this.concealedStationary; } + set { this.concealedStationary = value; } + } + + /// + /// Gets or sets the concealedmovement. + /// + /// The concealedmovement. + public LifeFormAppearance.ConcealedMovementValue ConcealedMovement + { + get { return this.concealedMovement; } + set { this.concealedMovement = value; } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (!(obj is LifeFormAppearance)) + { + return false; + } + + return this.Equals((LifeFormAppearance)obj); + } + + /// + /// Determines whether the specified instance is equal to this instance. + /// + /// The instance to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public bool Equals(LifeFormAppearance other) + { + // If parameter is null return false (cast to object to prevent recursive loop!) + if ((object)other == null) + { + return false; + } + + return + this.PaintScheme == other.PaintScheme && + this.Health == other.Health && + this.Compliance == other.Compliance && + this.FlashLights == other.FlashLights && + this.LifeFormState == other.LifeFormState && + this.FrozenStatus == other.FrozenStatus && + this.State == other.State && + this.Weapon1 == other.Weapon1 && + this.Weapon2 == other.Weapon2 && + this.CamouflageType == other.CamouflageType && + this.ConcealedStationary == other.ConcealedStationary && + this.ConcealedMovement == other.ConcealedMovement; + } + + /// + /// Converts the instance of to the byte array. + /// + /// The byte array representing the current instance. + public byte[] ToByteArray() + { + return BitConverter.GetBytes(this.ToUInt32()); + } + + /// + /// Converts the instance of to the uint value. + /// + /// The uint value representing the current instance. + public uint ToUInt32() + { + uint val = 0; + + val |= (uint)((uint)this.PaintScheme << 0); + val |= (uint)((uint)this.Health << 3); + val |= (uint)((uint)this.Compliance << 5); + val |= (uint)((uint)this.FlashLights << 12); + val |= (uint)((uint)this.LifeFormState << 16); + val |= (uint)((uint)this.FrozenStatus << 21); + val |= (uint)((uint)this.State << 23); + val |= (uint)((uint)this.Weapon1 << 24); + val |= (uint)((uint)this.Weapon2 << 26); + val |= (uint)((uint)this.CamouflageType << 28); + val |= (uint)((uint)this.ConcealedStationary << 30); + val |= (uint)((uint)this.ConcealedMovement << 31); + + return val; + } + + /// + /// Returns a hash code for this instance. + /// + /// + /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + /// + public override int GetHashCode() + { + int hash = 17; + + // Overflow is fine, just wrap + unchecked + { + hash = (hash * 29) + this.PaintScheme.GetHashCode(); + hash = (hash * 29) + this.Health.GetHashCode(); + hash = (hash * 29) + this.Compliance.GetHashCode(); + hash = (hash * 29) + this.FlashLights.GetHashCode(); + hash = (hash * 29) + this.LifeFormState.GetHashCode(); + hash = (hash * 29) + this.FrozenStatus.GetHashCode(); + hash = (hash * 29) + this.State.GetHashCode(); + hash = (hash * 29) + this.Weapon1.GetHashCode(); + hash = (hash * 29) + this.Weapon2.GetHashCode(); + hash = (hash * 29) + this.CamouflageType.GetHashCode(); + hash = (hash * 29) + this.ConcealedStationary.GetHashCode(); + hash = (hash * 29) + this.ConcealedMovement.GetHashCode(); + } + + return hash; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/MunitionAppearance.cs b/Libs/CsharpDis6/Enumerations/EntityState.Appearance/MunitionAppearance.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/MunitionAppearance.cs rename to Libs/CsharpDis6/Enumerations/EntityState.Appearance/MunitionAppearance.cs index e49974e..cb8989d 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/MunitionAppearance.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState.Appearance/MunitionAppearance.cs @@ -1,593 +1,593 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState.Appearance -{ - /// - /// Enumeration values for MunitionAppearance (es.appear.munition, Munition Kind, - /// section 4.3.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public struct MunitionAppearance - { - /// - /// Describes the damaged appearance of an entity - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the damaged appearance of an entity")] - public enum DamageValue : uint - { - /// - /// No damage - /// - NoDamage = 0, - - /// - /// Slight damage - /// - SlightDamage = 1, - - /// - /// Moderate damage - /// - ModerateDamage = 2, - - /// - /// Destroyed - /// - Destroyed = 3 - } - - /// - /// Describes status or location of smoke and vapor emanating from an entity - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes status or location of smoke and vapor emanating from an entity")] - public enum SmokeValue : uint - { - /// - /// Not smoking - /// - NotSmoking = 0, - - /// - /// Smoke or vapor is emanating from the entity - /// - SmokeOrVaporIsEmanatingFromTheEntity = 1, - - /// - /// Entity is emitting motor smoke - /// - EntityIsEmittingMotorSmoke = 2, - - /// - /// Entity is emitting motor smoke, and smoke or vapor is emanating from the entity - /// - EntityIsEmittingMotorSmokeAndSmokeOrVaporIsEmanatingFromTheEntity = 3 - } - - /// - /// Describes the size of the vapor trail trailing effect for the effectsentity - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the size of the vapor trail trailing effect for the effectsentity")] - public enum TrailingEffectsValue : uint - { - /// - /// None - /// - None = 0, - - /// - /// Small - /// - Small = 1, - - /// - /// Medium - /// - Medium = 2, - - /// - /// Large - /// - Large = 3 - } - - /// - /// Describes whether flames are rising from an entity - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes whether flames are rising from an entity")] - public enum FlamingValue : uint - { - /// - /// None - /// - None = 0, - - /// - /// Flames present - /// - FlamesPresent = 1 - } - - /// - /// Describes the presence of a guided munition's launch flash - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the presence of a guided munition's launch flash")] - public enum LaunchFlashValue : uint - { - /// - /// No launch flash present - /// - NoLaunchFlashPresent = 0, - - /// - /// Launch flash present - /// - LaunchFlashPresent = 1 - } - - /// - /// Describes the frozen status of a guided munition - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the frozen status of a guided munition")] - public enum FrozenStatusValue : uint - { - /// - /// Not frozen - /// - NotFrozen = 0, - - /// - /// Frozen (Frozen entities should not be dead-reckoned, i.e. they should be displayed as fixed at the current location even if nonzero velocity, acceleration or rotation data is received from the frozen entity) - /// - FrozenFrozenEntitiesShouldNotBeDeadReckonedIETheyShouldBeDisplayedAsFixedAtTheCurrentLocationEvenIfNonzeroVelocityAccelerationOrRotationDataIsReceivedFromTheFrozenEntity = 1 - } - - /// - /// Describes the power-plant status of a guided munition - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the power-plant status of a guided munition")] - public enum PowerPlantStatusValue : uint - { - /// - /// Power plant off - /// - PowerPlantOff = 0, - - /// - /// Power plant on - /// - PowerPlantOn = 1 - } - - /// - /// Describes the state of a guided munition - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the state of a guided munition")] - public enum StateValue : uint - { - /// - /// Active - /// - Active = 0, - - /// - /// Deactivated - /// - Deactivated = 1 - } - - /// - /// Describes if the entity is Masked / Cloaked or Not - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes if the entity is Masked / Cloaked or Not")] - public enum MaskedCloakedValue : uint - { - /// - /// Not Masked / Not Cloaked - /// - NotMaskedNotCloaked = 0, - - /// - /// Masked / Cloaked - /// - MaskedCloaked = 1 - } - - private MunitionAppearance.DamageValue damage; - private MunitionAppearance.SmokeValue smoke; - private MunitionAppearance.TrailingEffectsValue trailingEffects; - private MunitionAppearance.FlamingValue flaming; - private MunitionAppearance.LaunchFlashValue launchFlash; - private MunitionAppearance.FrozenStatusValue frozenStatus; - private MunitionAppearance.PowerPlantStatusValue powerPlantStatus; - private MunitionAppearance.StateValue state; - private MunitionAppearance.MaskedCloakedValue maskedCloaked; - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(MunitionAppearance left, MunitionAppearance right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator ==(MunitionAppearance left, MunitionAppearance right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - // If parameters are null return false (cast to object to prevent recursive loop!) - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The scheme instance. - /// The result of the conversion. - public static explicit operator uint(MunitionAppearance obj) - { - return obj.ToUInt32(); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The uint value. - /// The result of the conversion. - public static explicit operator MunitionAppearance(uint value) - { - return MunitionAppearance.FromUInt32(value); - } - - /// - /// Creates the instance from the byte array. - /// - /// The array which holds the values for the . - /// The starting position within value. - /// The instance, represented by a byte array. - /// if the array is null. - /// if the index is lower than 0 or greater or equal than number of elements in array. - public static MunitionAppearance FromByteArray(byte[] array, int index) - { - if (array == null) - { - throw new ArgumentNullException("array"); - } - - if (index < 0 || - index > array.Length - 1 || - index + 4 > array.Length - 1) - { - throw new IndexOutOfRangeException(); - } - - return FromUInt32(BitConverter.ToUInt32(array, index)); - } - - /// - /// Creates the instance from the uint value. - /// - /// The uint value which represents the instance. - /// The instance, represented by the uint value. - public static MunitionAppearance FromUInt32(uint value) - { - MunitionAppearance ps = new MunitionAppearance(); - - uint mask1 = 0x0018; - byte shift1 = 3; - uint newValue1 = (value & mask1) >> shift1; - ps.Damage = (MunitionAppearance.DamageValue)newValue1; - - uint mask2 = 0x0060; - byte shift2 = 5; - uint newValue2 = (value & mask2) >> shift2; - ps.Smoke = (MunitionAppearance.SmokeValue)newValue2; - - uint mask3 = 0x0180; - byte shift3 = 7; - uint newValue3 = (value & mask3) >> shift3; - ps.TrailingEffects = (MunitionAppearance.TrailingEffectsValue)newValue3; - - uint mask5 = 0x8000; - byte shift5 = 15; - uint newValue5 = (value & mask5) >> shift5; - ps.Flaming = (MunitionAppearance.FlamingValue)newValue5; - - uint mask6 = 0x10000; - byte shift6 = 16; - uint newValue6 = (value & mask6) >> shift6; - ps.LaunchFlash = (MunitionAppearance.LaunchFlashValue)newValue6; - - uint mask8 = 0x200000; - byte shift8 = 21; - uint newValue8 = (value & mask8) >> shift8; - ps.FrozenStatus = (MunitionAppearance.FrozenStatusValue)newValue8; - - uint mask9 = 0x400000; - byte shift9 = 22; - uint newValue9 = (value & mask9) >> shift9; - ps.PowerPlantStatus = (MunitionAppearance.PowerPlantStatusValue)newValue9; - - uint mask10 = 0x800000; - byte shift10 = 23; - uint newValue10 = (value & mask10) >> shift10; - ps.State = (MunitionAppearance.StateValue)newValue10; - - uint mask12 = 0x80000000; - byte shift12 = 31; - uint newValue12 = (value & mask12) >> shift12; - ps.MaskedCloaked = (MunitionAppearance.MaskedCloakedValue)newValue12; - - return ps; - } - - /// - /// Gets or sets the damage. - /// - /// The damage. - public MunitionAppearance.DamageValue Damage - { - get { return this.damage; } - set { this.damage = value; } - } - - /// - /// Gets or sets the smoke. - /// - /// The smoke. - public MunitionAppearance.SmokeValue Smoke - { - get { return this.smoke; } - set { this.smoke = value; } - } - - /// - /// Gets or sets the trailingeffects. - /// - /// The trailingeffects. - public MunitionAppearance.TrailingEffectsValue TrailingEffects - { - get { return this.trailingEffects; } - set { this.trailingEffects = value; } - } - - /// - /// Gets or sets the flaming. - /// - /// The flaming. - public MunitionAppearance.FlamingValue Flaming - { - get { return this.flaming; } - set { this.flaming = value; } - } - - /// - /// Gets or sets the launchflash. - /// - /// The launchflash. - public MunitionAppearance.LaunchFlashValue LaunchFlash - { - get { return this.launchFlash; } - set { this.launchFlash = value; } - } - - /// - /// Gets or sets the frozenstatus. - /// - /// The frozenstatus. - public MunitionAppearance.FrozenStatusValue FrozenStatus - { - get { return this.frozenStatus; } - set { this.frozenStatus = value; } - } - - /// - /// Gets or sets the powerplantstatus. - /// - /// The powerplantstatus. - public MunitionAppearance.PowerPlantStatusValue PowerPlantStatus - { - get { return this.powerPlantStatus; } - set { this.powerPlantStatus = value; } - } - - /// - /// Gets or sets the state. - /// - /// The state. - public MunitionAppearance.StateValue State - { - get { return this.state; } - set { this.state = value; } - } - - /// - /// Gets or sets the maskedcloaked. - /// - /// The maskedcloaked. - public MunitionAppearance.MaskedCloakedValue MaskedCloaked - { - get { return this.maskedCloaked; } - set { this.maskedCloaked = value; } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - if (obj == null) - { - return false; - } - - if (!(obj is MunitionAppearance)) - { - return false; - } - - return this.Equals((MunitionAppearance)obj); - } - - /// - /// Determines whether the specified instance is equal to this instance. - /// - /// The instance to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public bool Equals(MunitionAppearance other) - { - // If parameter is null return false (cast to object to prevent recursive loop!) - if ((object)other == null) - { - return false; - } - - return - this.Damage == other.Damage && - this.Smoke == other.Smoke && - this.TrailingEffects == other.TrailingEffects && - this.Flaming == other.Flaming && - this.LaunchFlash == other.LaunchFlash && - this.FrozenStatus == other.FrozenStatus && - this.PowerPlantStatus == other.PowerPlantStatus && - this.State == other.State && - this.MaskedCloaked == other.MaskedCloaked; - } - - /// - /// Converts the instance of to the byte array. - /// - /// The byte array representing the current instance. - public byte[] ToByteArray() - { - return BitConverter.GetBytes(this.ToUInt32()); - } - - /// - /// Converts the instance of to the uint value. - /// - /// The uint value representing the current instance. - public uint ToUInt32() - { - uint val = 0; - - val |= (uint)((uint)this.Damage << 3); - val |= (uint)((uint)this.Smoke << 5); - val |= (uint)((uint)this.TrailingEffects << 7); - val |= (uint)((uint)this.Flaming << 15); - val |= (uint)((uint)this.LaunchFlash << 16); - val |= (uint)((uint)this.FrozenStatus << 21); - val |= (uint)((uint)this.PowerPlantStatus << 22); - val |= (uint)((uint)this.State << 23); - val |= (uint)((uint)this.MaskedCloaked << 31); - - return val; - } - - /// - /// Returns a hash code for this instance. - /// - /// - /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - /// - public override int GetHashCode() - { - int hash = 17; - - // Overflow is fine, just wrap - unchecked - { - hash = (hash * 29) + this.Damage.GetHashCode(); - hash = (hash * 29) + this.Smoke.GetHashCode(); - hash = (hash * 29) + this.TrailingEffects.GetHashCode(); - hash = (hash * 29) + this.Flaming.GetHashCode(); - hash = (hash * 29) + this.LaunchFlash.GetHashCode(); - hash = (hash * 29) + this.FrozenStatus.GetHashCode(); - hash = (hash * 29) + this.PowerPlantStatus.GetHashCode(); - hash = (hash * 29) + this.State.GetHashCode(); - hash = (hash * 29) + this.MaskedCloaked.GetHashCode(); - } - - return hash; - } - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState.Appearance +{ + /// + /// Enumeration values for MunitionAppearance (es.appear.munition, Munition Kind, + /// section 4.3.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public struct MunitionAppearance + { + /// + /// Describes the damaged appearance of an entity + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the damaged appearance of an entity")] + public enum DamageValue : uint + { + /// + /// No damage + /// + NoDamage = 0, + + /// + /// Slight damage + /// + SlightDamage = 1, + + /// + /// Moderate damage + /// + ModerateDamage = 2, + + /// + /// Destroyed + /// + Destroyed = 3 + } + + /// + /// Describes status or location of smoke and vapor emanating from an entity + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes status or location of smoke and vapor emanating from an entity")] + public enum SmokeValue : uint + { + /// + /// Not smoking + /// + NotSmoking = 0, + + /// + /// Smoke or vapor is emanating from the entity + /// + SmokeOrVaporIsEmanatingFromTheEntity = 1, + + /// + /// Entity is emitting motor smoke + /// + EntityIsEmittingMotorSmoke = 2, + + /// + /// Entity is emitting motor smoke, and smoke or vapor is emanating from the entity + /// + EntityIsEmittingMotorSmokeAndSmokeOrVaporIsEmanatingFromTheEntity = 3 + } + + /// + /// Describes the size of the vapor trail trailing effect for the effectsentity + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the size of the vapor trail trailing effect for the effectsentity")] + public enum TrailingEffectsValue : uint + { + /// + /// None + /// + None = 0, + + /// + /// Small + /// + Small = 1, + + /// + /// Medium + /// + Medium = 2, + + /// + /// Large + /// + Large = 3 + } + + /// + /// Describes whether flames are rising from an entity + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes whether flames are rising from an entity")] + public enum FlamingValue : uint + { + /// + /// None + /// + None = 0, + + /// + /// Flames present + /// + FlamesPresent = 1 + } + + /// + /// Describes the presence of a guided munition's launch flash + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the presence of a guided munition's launch flash")] + public enum LaunchFlashValue : uint + { + /// + /// No launch flash present + /// + NoLaunchFlashPresent = 0, + + /// + /// Launch flash present + /// + LaunchFlashPresent = 1 + } + + /// + /// Describes the frozen status of a guided munition + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the frozen status of a guided munition")] + public enum FrozenStatusValue : uint + { + /// + /// Not frozen + /// + NotFrozen = 0, + + /// + /// Frozen (Frozen entities should not be dead-reckoned, i.e. they should be displayed as fixed at the current location even if nonzero velocity, acceleration or rotation data is received from the frozen entity) + /// + FrozenFrozenEntitiesShouldNotBeDeadReckonedIETheyShouldBeDisplayedAsFixedAtTheCurrentLocationEvenIfNonzeroVelocityAccelerationOrRotationDataIsReceivedFromTheFrozenEntity = 1 + } + + /// + /// Describes the power-plant status of a guided munition + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the power-plant status of a guided munition")] + public enum PowerPlantStatusValue : uint + { + /// + /// Power plant off + /// + PowerPlantOff = 0, + + /// + /// Power plant on + /// + PowerPlantOn = 1 + } + + /// + /// Describes the state of a guided munition + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the state of a guided munition")] + public enum StateValue : uint + { + /// + /// Active + /// + Active = 0, + + /// + /// Deactivated + /// + Deactivated = 1 + } + + /// + /// Describes if the entity is Masked / Cloaked or Not + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes if the entity is Masked / Cloaked or Not")] + public enum MaskedCloakedValue : uint + { + /// + /// Not Masked / Not Cloaked + /// + NotMaskedNotCloaked = 0, + + /// + /// Masked / Cloaked + /// + MaskedCloaked = 1 + } + + private MunitionAppearance.DamageValue damage; + private MunitionAppearance.SmokeValue smoke; + private MunitionAppearance.TrailingEffectsValue trailingEffects; + private MunitionAppearance.FlamingValue flaming; + private MunitionAppearance.LaunchFlashValue launchFlash; + private MunitionAppearance.FrozenStatusValue frozenStatus; + private MunitionAppearance.PowerPlantStatusValue powerPlantStatus; + private MunitionAppearance.StateValue state; + private MunitionAppearance.MaskedCloakedValue maskedCloaked; + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(MunitionAppearance left, MunitionAppearance right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator ==(MunitionAppearance left, MunitionAppearance right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + // If parameters are null return false (cast to object to prevent recursive loop!) + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The scheme instance. + /// The result of the conversion. + public static explicit operator uint(MunitionAppearance obj) + { + return obj.ToUInt32(); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The uint value. + /// The result of the conversion. + public static explicit operator MunitionAppearance(uint value) + { + return MunitionAppearance.FromUInt32(value); + } + + /// + /// Creates the instance from the byte array. + /// + /// The array which holds the values for the . + /// The starting position within value. + /// The instance, represented by a byte array. + /// if the array is null. + /// if the index is lower than 0 or greater or equal than number of elements in array. + public static MunitionAppearance FromByteArray(byte[] array, int index) + { + if (array == null) + { + throw new ArgumentNullException("array"); + } + + if (index < 0 || + index > array.Length - 1 || + index + 4 > array.Length - 1) + { + throw new IndexOutOfRangeException(); + } + + return FromUInt32(BitConverter.ToUInt32(array, index)); + } + + /// + /// Creates the instance from the uint value. + /// + /// The uint value which represents the instance. + /// The instance, represented by the uint value. + public static MunitionAppearance FromUInt32(uint value) + { + MunitionAppearance ps = new MunitionAppearance(); + + uint mask1 = 0x0018; + byte shift1 = 3; + uint newValue1 = (value & mask1) >> shift1; + ps.Damage = (MunitionAppearance.DamageValue)newValue1; + + uint mask2 = 0x0060; + byte shift2 = 5; + uint newValue2 = (value & mask2) >> shift2; + ps.Smoke = (MunitionAppearance.SmokeValue)newValue2; + + uint mask3 = 0x0180; + byte shift3 = 7; + uint newValue3 = (value & mask3) >> shift3; + ps.TrailingEffects = (MunitionAppearance.TrailingEffectsValue)newValue3; + + uint mask5 = 0x8000; + byte shift5 = 15; + uint newValue5 = (value & mask5) >> shift5; + ps.Flaming = (MunitionAppearance.FlamingValue)newValue5; + + uint mask6 = 0x10000; + byte shift6 = 16; + uint newValue6 = (value & mask6) >> shift6; + ps.LaunchFlash = (MunitionAppearance.LaunchFlashValue)newValue6; + + uint mask8 = 0x200000; + byte shift8 = 21; + uint newValue8 = (value & mask8) >> shift8; + ps.FrozenStatus = (MunitionAppearance.FrozenStatusValue)newValue8; + + uint mask9 = 0x400000; + byte shift9 = 22; + uint newValue9 = (value & mask9) >> shift9; + ps.PowerPlantStatus = (MunitionAppearance.PowerPlantStatusValue)newValue9; + + uint mask10 = 0x800000; + byte shift10 = 23; + uint newValue10 = (value & mask10) >> shift10; + ps.State = (MunitionAppearance.StateValue)newValue10; + + uint mask12 = 0x80000000; + byte shift12 = 31; + uint newValue12 = (value & mask12) >> shift12; + ps.MaskedCloaked = (MunitionAppearance.MaskedCloakedValue)newValue12; + + return ps; + } + + /// + /// Gets or sets the damage. + /// + /// The damage. + public MunitionAppearance.DamageValue Damage + { + get { return this.damage; } + set { this.damage = value; } + } + + /// + /// Gets or sets the smoke. + /// + /// The smoke. + public MunitionAppearance.SmokeValue Smoke + { + get { return this.smoke; } + set { this.smoke = value; } + } + + /// + /// Gets or sets the trailingeffects. + /// + /// The trailingeffects. + public MunitionAppearance.TrailingEffectsValue TrailingEffects + { + get { return this.trailingEffects; } + set { this.trailingEffects = value; } + } + + /// + /// Gets or sets the flaming. + /// + /// The flaming. + public MunitionAppearance.FlamingValue Flaming + { + get { return this.flaming; } + set { this.flaming = value; } + } + + /// + /// Gets or sets the launchflash. + /// + /// The launchflash. + public MunitionAppearance.LaunchFlashValue LaunchFlash + { + get { return this.launchFlash; } + set { this.launchFlash = value; } + } + + /// + /// Gets or sets the frozenstatus. + /// + /// The frozenstatus. + public MunitionAppearance.FrozenStatusValue FrozenStatus + { + get { return this.frozenStatus; } + set { this.frozenStatus = value; } + } + + /// + /// Gets or sets the powerplantstatus. + /// + /// The powerplantstatus. + public MunitionAppearance.PowerPlantStatusValue PowerPlantStatus + { + get { return this.powerPlantStatus; } + set { this.powerPlantStatus = value; } + } + + /// + /// Gets or sets the state. + /// + /// The state. + public MunitionAppearance.StateValue State + { + get { return this.state; } + set { this.state = value; } + } + + /// + /// Gets or sets the maskedcloaked. + /// + /// The maskedcloaked. + public MunitionAppearance.MaskedCloakedValue MaskedCloaked + { + get { return this.maskedCloaked; } + set { this.maskedCloaked = value; } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (!(obj is MunitionAppearance)) + { + return false; + } + + return this.Equals((MunitionAppearance)obj); + } + + /// + /// Determines whether the specified instance is equal to this instance. + /// + /// The instance to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public bool Equals(MunitionAppearance other) + { + // If parameter is null return false (cast to object to prevent recursive loop!) + if ((object)other == null) + { + return false; + } + + return + this.Damage == other.Damage && + this.Smoke == other.Smoke && + this.TrailingEffects == other.TrailingEffects && + this.Flaming == other.Flaming && + this.LaunchFlash == other.LaunchFlash && + this.FrozenStatus == other.FrozenStatus && + this.PowerPlantStatus == other.PowerPlantStatus && + this.State == other.State && + this.MaskedCloaked == other.MaskedCloaked; + } + + /// + /// Converts the instance of to the byte array. + /// + /// The byte array representing the current instance. + public byte[] ToByteArray() + { + return BitConverter.GetBytes(this.ToUInt32()); + } + + /// + /// Converts the instance of to the uint value. + /// + /// The uint value representing the current instance. + public uint ToUInt32() + { + uint val = 0; + + val |= (uint)((uint)this.Damage << 3); + val |= (uint)((uint)this.Smoke << 5); + val |= (uint)((uint)this.TrailingEffects << 7); + val |= (uint)((uint)this.Flaming << 15); + val |= (uint)((uint)this.LaunchFlash << 16); + val |= (uint)((uint)this.FrozenStatus << 21); + val |= (uint)((uint)this.PowerPlantStatus << 22); + val |= (uint)((uint)this.State << 23); + val |= (uint)((uint)this.MaskedCloaked << 31); + + return val; + } + + /// + /// Returns a hash code for this instance. + /// + /// + /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + /// + public override int GetHashCode() + { + int hash = 17; + + // Overflow is fine, just wrap + unchecked + { + hash = (hash * 29) + this.Damage.GetHashCode(); + hash = (hash * 29) + this.Smoke.GetHashCode(); + hash = (hash * 29) + this.TrailingEffects.GetHashCode(); + hash = (hash * 29) + this.Flaming.GetHashCode(); + hash = (hash * 29) + this.LaunchFlash.GetHashCode(); + hash = (hash * 29) + this.FrozenStatus.GetHashCode(); + hash = (hash * 29) + this.PowerPlantStatus.GetHashCode(); + hash = (hash * 29) + this.State.GetHashCode(); + hash = (hash * 29) + this.MaskedCloaked.GetHashCode(); + } + + return hash; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/SensorEmitterAppearance.cs b/Libs/CsharpDis6/Enumerations/EntityState.Appearance/SensorEmitterAppearance.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/SensorEmitterAppearance.cs rename to Libs/CsharpDis6/Enumerations/EntityState.Appearance/SensorEmitterAppearance.cs index 8080e3b..2a86c5e 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/SensorEmitterAppearance.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState.Appearance/SensorEmitterAppearance.cs @@ -1,923 +1,923 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState.Appearance -{ - /// - /// Enumeration values for SensorEmitterAppearance (es.appear.sensoremitter, Sensor/Emitter Kind, - /// section 4.3.9) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public struct SensorEmitterAppearance - { - /// - /// Describes the paint scheme of an entity - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the paint scheme of an entity")] - public enum PaintSchemeValue : uint - { - /// - /// Uniform color - /// - UniformColor = 0, - - /// - /// Camouflage - /// - Camouflage = 1 - } - - /// - /// Describes characteristics of mobility kill - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes characteristics of mobility kill")] - public enum MobilityValue : uint - { - /// - /// No mobility kill - /// - NoMobilityKill = 0, - - /// - /// Mobility kill - /// - MobilityKill = 1 - } - - /// - /// Describes characteristics of mission kill (e.g. damaged antenna) - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes characteristics of mission kill (e.g. damaged antenna)")] - public enum MissionValue : uint - { - /// - /// No mission kill - /// - NoMissionKill = 0, - - /// - /// Mission kill - /// - MissionKill = 1 - } - - /// - /// Describes the damaged appearance of an entity - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the damaged appearance of an entity")] - public enum DamageValue : uint - { - /// - /// No damage - /// - NoDamage = 0, - - /// - /// Slight damage - /// - SlightDamage = 1, - - /// - /// Moderate damage - /// - ModerateDamage = 2, - - /// - /// Destroyed - /// - Destroyed = 3 - } - - /// - /// Describes status or location of smoke emanating from an entity - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes status or location of smoke emanating from an entity")] - public enum SmokeValue : uint - { - /// - /// Not smoking - /// - NotSmoking = 0, - - /// - /// Smoke plume rising from the entity - /// - SmokePlumeRisingFromTheEntity = 1, - - /// - /// Entity is emitting engine smoke - /// - EntityIsEmittingEngineSmoke = 2, - - /// - /// Entity is emitting engine smoke, and smoke plume is rising from the entity - /// - EntityIsEmittingEngineSmokeAndSmokePlumeIsRisingFromTheEntity = 3 - } - - /// - /// Describes the size of the dust cloud trailing effect for the Sensor/Emitter entity - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the size of the dust cloud trailing effect for the Sensor/Emitter entity")] - public enum TrailingEffectsValue : uint - { - /// - /// None - /// - None = 0, - - /// - /// Small - /// - Small = 1, - - /// - /// Medium - /// - Medium = 2, - - /// - /// Large - /// - Large = 3 - } - - /// - /// Describes the status of lights on the sensor - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the status of lights on the sensor")] - public enum LightsValue : uint - { - /// - /// Off - /// - Off = 0, - - /// - /// On - /// - On = 1 - } - - /// - /// Describes whether flames are rising from the entity - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes whether flames are rising from the entity")] - public enum FlamingValue : uint - { - /// - /// None - /// - None = 0, - - /// - /// Flames present - /// - FlamesPresent = 1 - } - - /// - /// Describes the elevated status of the sensor's antenna - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the elevated status of the sensor's antenna")] - public enum AntennaValue : uint - { - /// - /// Not raised - /// - NotRaised = 0, - - /// - /// Raised - /// - Raised = 1 - } - - /// - /// Describes the type of camouflage - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the type of camouflage")] - public enum CamouflageTypeValue : uint - { - /// - /// Desert camouflage - /// - DesertCamouflage = 0, - - /// - /// Winter camouflage - /// - WinterCamouflage = 1, - - /// - /// Forest camouflage - /// - ForestCamouflage = 2, - - /// - /// null - /// - Unknown = 3 - } - - /// - /// Describes the type of concealment - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the type of concealment")] - public enum ConcealedValue : uint - { - /// - /// Not concealed - /// - NotConcealed = 0, - - /// - /// Entity in a prepared concealed position (with netting, etc.) - /// - EntityInAPreparedConcealedPositionWithNettingEtc = 1 - } - - /// - /// Describes the frozen status of an entity - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the frozen status of an entity")] - public enum FrozenStatusValue : uint - { - /// - /// Not frozen - /// - NotFrozen = 0, - - /// - /// Frozen (Frozen entities should not be dead-reckoned, i.e. they should be displayed as fixed at the current location even if nonzero velocity, acceleration or rotation data is received from the frozen entity) - /// - FrozenFrozenEntitiesShouldNotBeDeadReckonedIETheyShouldBeDisplayedAsFixedAtTheCurrentLocationEvenIfNonzeroVelocityAccelerationOrRotationDataIsReceivedFromTheFrozenEntity = 1 - } - - /// - /// Describes the power-plant status of the sensor - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the power-plant status of the sensor")] - public enum PowerPlantStatusValue : uint - { - /// - /// Power plant off - /// - PowerPlantOff = 0, - - /// - /// Power plant on - /// - PowerPlantOn = 1 - } - - /// - /// Describes the state of an entity - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the state of an entity")] - public enum StateValue : uint - { - /// - /// Active - /// - Active = 0, - - /// - /// Deactivated - /// - Deactivated = 1 - } - - /// - /// Describes the status of a tent extension - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the status of a tent extension")] - public enum TentValue : uint - { - /// - /// Not extended - /// - NotExtended = 0, - - /// - /// Extended - /// - Extended = 1 - } - - /// - /// Describes whether Blackout Lights are on or off. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes whether Blackout Lights are on or off.")] - public enum BlackoutLightsValue : uint - { - /// - /// Off - /// - Off = 0, - - /// - /// On - /// - On = 1 - } - - /// - /// Describes whether Interior Lights are on or off. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes whether Interior Lights are on or off.")] - public enum InteriorLightsValue : uint - { - /// - /// Off - /// - Off = 0, - - /// - /// On - /// - On = 1 - } - - private SensorEmitterAppearance.PaintSchemeValue paintScheme; - private SensorEmitterAppearance.MobilityValue mobility; - private SensorEmitterAppearance.MissionValue mission; - private SensorEmitterAppearance.DamageValue damage; - private SensorEmitterAppearance.SmokeValue smoke; - private SensorEmitterAppearance.TrailingEffectsValue trailingEffects; - private SensorEmitterAppearance.LightsValue lights; - private SensorEmitterAppearance.FlamingValue flaming; - private SensorEmitterAppearance.AntennaValue antenna; - private SensorEmitterAppearance.CamouflageTypeValue camouflageType; - private SensorEmitterAppearance.ConcealedValue concealed; - private SensorEmitterAppearance.FrozenStatusValue frozenStatus; - private SensorEmitterAppearance.PowerPlantStatusValue powerPlantStatus; - private SensorEmitterAppearance.StateValue state; - private SensorEmitterAppearance.TentValue tent; - private SensorEmitterAppearance.BlackoutLightsValue blackoutLights; - private SensorEmitterAppearance.InteriorLightsValue interiorLights; - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(SensorEmitterAppearance left, SensorEmitterAppearance right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator ==(SensorEmitterAppearance left, SensorEmitterAppearance right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - // If parameters are null return false (cast to object to prevent recursive loop!) - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The scheme instance. - /// The result of the conversion. - public static explicit operator uint(SensorEmitterAppearance obj) - { - return obj.ToUInt32(); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The uint value. - /// The result of the conversion. - public static explicit operator SensorEmitterAppearance(uint value) - { - return SensorEmitterAppearance.FromUInt32(value); - } - - /// - /// Creates the instance from the byte array. - /// - /// The array which holds the values for the . - /// The starting position within value. - /// The instance, represented by a byte array. - /// if the array is null. - /// if the index is lower than 0 or greater or equal than number of elements in array. - public static SensorEmitterAppearance FromByteArray(byte[] array, int index) - { - if (array == null) - { - throw new ArgumentNullException("array"); - } - - if (index < 0 || - index > array.Length - 1 || - index + 4 > array.Length - 1) - { - throw new IndexOutOfRangeException(); - } - - return FromUInt32(BitConverter.ToUInt32(array, index)); - } - - /// - /// Creates the instance from the uint value. - /// - /// The uint value which represents the instance. - /// The instance, represented by the uint value. - public static SensorEmitterAppearance FromUInt32(uint value) - { - SensorEmitterAppearance ps = new SensorEmitterAppearance(); - - uint mask0 = 0x0001; - byte shift0 = 0; - uint newValue0 = (value & mask0) >> shift0; - ps.PaintScheme = (SensorEmitterAppearance.PaintSchemeValue)newValue0; - - uint mask1 = 0x0002; - byte shift1 = 1; - uint newValue1 = (value & mask1) >> shift1; - ps.Mobility = (SensorEmitterAppearance.MobilityValue)newValue1; - - uint mask2 = 0x0004; - byte shift2 = 2; - uint newValue2 = (value & mask2) >> shift2; - ps.Mission = (SensorEmitterAppearance.MissionValue)newValue2; - - uint mask3 = 0x0018; - byte shift3 = 3; - uint newValue3 = (value & mask3) >> shift3; - ps.Damage = (SensorEmitterAppearance.DamageValue)newValue3; - - uint mask4 = 0x0060; - byte shift4 = 5; - uint newValue4 = (value & mask4) >> shift4; - ps.Smoke = (SensorEmitterAppearance.SmokeValue)newValue4; - - uint mask5 = 0x0180; - byte shift5 = 7; - uint newValue5 = (value & mask5) >> shift5; - ps.TrailingEffects = (SensorEmitterAppearance.TrailingEffectsValue)newValue5; - - uint mask7 = 0x1000; - byte shift7 = 12; - uint newValue7 = (value & mask7) >> shift7; - ps.Lights = (SensorEmitterAppearance.LightsValue)newValue7; - - uint mask9 = 0x8000; - byte shift9 = 15; - uint newValue9 = (value & mask9) >> shift9; - ps.Flaming = (SensorEmitterAppearance.FlamingValue)newValue9; - - uint mask10 = 0x10000; - byte shift10 = 16; - uint newValue10 = (value & mask10) >> shift10; - ps.Antenna = (SensorEmitterAppearance.AntennaValue)newValue10; - - uint mask11 = 0x60000; - byte shift11 = 17; - uint newValue11 = (value & mask11) >> shift11; - ps.CamouflageType = (SensorEmitterAppearance.CamouflageTypeValue)newValue11; - - uint mask12 = 0x80000; - byte shift12 = 19; - uint newValue12 = (value & mask12) >> shift12; - ps.Concealed = (SensorEmitterAppearance.ConcealedValue)newValue12; - - uint mask14 = 0x200000; - byte shift14 = 21; - uint newValue14 = (value & mask14) >> shift14; - ps.FrozenStatus = (SensorEmitterAppearance.FrozenStatusValue)newValue14; - - uint mask15 = 0x400000; - byte shift15 = 22; - uint newValue15 = (value & mask15) >> shift15; - ps.PowerPlantStatus = (SensorEmitterAppearance.PowerPlantStatusValue)newValue15; - - uint mask16 = 0x800000; - byte shift16 = 23; - uint newValue16 = (value & mask16) >> shift16; - ps.State = (SensorEmitterAppearance.StateValue)newValue16; - - uint mask17 = 0x1000000; - byte shift17 = 24; - uint newValue17 = (value & mask17) >> shift17; - ps.Tent = (SensorEmitterAppearance.TentValue)newValue17; - - uint mask19 = 0x4000000; - byte shift19 = 26; - uint newValue19 = (value & mask19) >> shift19; - ps.BlackoutLights = (SensorEmitterAppearance.BlackoutLightsValue)newValue19; - - uint mask21 = 0x20000000; - byte shift21 = 29; - uint newValue21 = (value & mask21) >> shift21; - ps.InteriorLights = (SensorEmitterAppearance.InteriorLightsValue)newValue21; - - return ps; - } - - /// - /// Gets or sets the paintscheme. - /// - /// The paintscheme. - public SensorEmitterAppearance.PaintSchemeValue PaintScheme - { - get { return this.paintScheme; } - set { this.paintScheme = value; } - } - - /// - /// Gets or sets the mobility. - /// - /// The mobility. - public SensorEmitterAppearance.MobilityValue Mobility - { - get { return this.mobility; } - set { this.mobility = value; } - } - - /// - /// Gets or sets the mission. - /// - /// The mission. - public SensorEmitterAppearance.MissionValue Mission - { - get { return this.mission; } - set { this.mission = value; } - } - - /// - /// Gets or sets the damage. - /// - /// The damage. - public SensorEmitterAppearance.DamageValue Damage - { - get { return this.damage; } - set { this.damage = value; } - } - - /// - /// Gets or sets the smoke. - /// - /// The smoke. - public SensorEmitterAppearance.SmokeValue Smoke - { - get { return this.smoke; } - set { this.smoke = value; } - } - - /// - /// Gets or sets the trailingeffects. - /// - /// The trailingeffects. - public SensorEmitterAppearance.TrailingEffectsValue TrailingEffects - { - get { return this.trailingEffects; } - set { this.trailingEffects = value; } - } - - /// - /// Gets or sets the lights. - /// - /// The lights. - public SensorEmitterAppearance.LightsValue Lights - { - get { return this.lights; } - set { this.lights = value; } - } - - /// - /// Gets or sets the flaming. - /// - /// The flaming. - public SensorEmitterAppearance.FlamingValue Flaming - { - get { return this.flaming; } - set { this.flaming = value; } - } - - /// - /// Gets or sets the antenna. - /// - /// The antenna. - public SensorEmitterAppearance.AntennaValue Antenna - { - get { return this.antenna; } - set { this.antenna = value; } - } - - /// - /// Gets or sets the camouflagetype. - /// - /// The camouflagetype. - public SensorEmitterAppearance.CamouflageTypeValue CamouflageType - { - get { return this.camouflageType; } - set { this.camouflageType = value; } - } - - /// - /// Gets or sets the concealed. - /// - /// The concealed. - public SensorEmitterAppearance.ConcealedValue Concealed - { - get { return this.concealed; } - set { this.concealed = value; } - } - - /// - /// Gets or sets the frozenstatus. - /// - /// The frozenstatus. - public SensorEmitterAppearance.FrozenStatusValue FrozenStatus - { - get { return this.frozenStatus; } - set { this.frozenStatus = value; } - } - - /// - /// Gets or sets the powerplantstatus. - /// - /// The powerplantstatus. - public SensorEmitterAppearance.PowerPlantStatusValue PowerPlantStatus - { - get { return this.powerPlantStatus; } - set { this.powerPlantStatus = value; } - } - - /// - /// Gets or sets the state. - /// - /// The state. - public SensorEmitterAppearance.StateValue State - { - get { return this.state; } - set { this.state = value; } - } - - /// - /// Gets or sets the tent. - /// - /// The tent. - public SensorEmitterAppearance.TentValue Tent - { - get { return this.tent; } - set { this.tent = value; } - } - - /// - /// Gets or sets the blackoutlights. - /// - /// The blackoutlights. - public SensorEmitterAppearance.BlackoutLightsValue BlackoutLights - { - get { return this.blackoutLights; } - set { this.blackoutLights = value; } - } - - /// - /// Gets or sets the interiorlights. - /// - /// The interiorlights. - public SensorEmitterAppearance.InteriorLightsValue InteriorLights - { - get { return this.interiorLights; } - set { this.interiorLights = value; } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - if (obj == null) - { - return false; - } - - if (!(obj is SensorEmitterAppearance)) - { - return false; - } - - return this.Equals((SensorEmitterAppearance)obj); - } - - /// - /// Determines whether the specified instance is equal to this instance. - /// - /// The instance to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public bool Equals(SensorEmitterAppearance other) - { - // If parameter is null return false (cast to object to prevent recursive loop!) - if ((object)other == null) - { - return false; - } - - return - this.PaintScheme == other.PaintScheme && - this.Mobility == other.Mobility && - this.Mission == other.Mission && - this.Damage == other.Damage && - this.Smoke == other.Smoke && - this.TrailingEffects == other.TrailingEffects && - this.Lights == other.Lights && - this.Flaming == other.Flaming && - this.Antenna == other.Antenna && - this.CamouflageType == other.CamouflageType && - this.Concealed == other.Concealed && - this.FrozenStatus == other.FrozenStatus && - this.PowerPlantStatus == other.PowerPlantStatus && - this.State == other.State && - this.Tent == other.Tent && - this.BlackoutLights == other.BlackoutLights && - this.InteriorLights == other.InteriorLights; - } - - /// - /// Converts the instance of to the byte array. - /// - /// The byte array representing the current instance. - public byte[] ToByteArray() - { - return BitConverter.GetBytes(this.ToUInt32()); - } - - /// - /// Converts the instance of to the uint value. - /// - /// The uint value representing the current instance. - public uint ToUInt32() - { - uint val = 0; - - val |= (uint)((uint)this.PaintScheme << 0); - val |= (uint)((uint)this.Mobility << 1); - val |= (uint)((uint)this.Mission << 2); - val |= (uint)((uint)this.Damage << 3); - val |= (uint)((uint)this.Smoke << 5); - val |= (uint)((uint)this.TrailingEffects << 7); - val |= (uint)((uint)this.Lights << 12); - val |= (uint)((uint)this.Flaming << 15); - val |= (uint)((uint)this.Antenna << 16); - val |= (uint)((uint)this.CamouflageType << 17); - val |= (uint)((uint)this.Concealed << 19); - val |= (uint)((uint)this.FrozenStatus << 21); - val |= (uint)((uint)this.PowerPlantStatus << 22); - val |= (uint)((uint)this.State << 23); - val |= (uint)((uint)this.Tent << 24); - val |= (uint)((uint)this.BlackoutLights << 26); - val |= (uint)((uint)this.InteriorLights << 29); - - return val; - } - - /// - /// Returns a hash code for this instance. - /// - /// - /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - /// - public override int GetHashCode() - { - int hash = 17; - - // Overflow is fine, just wrap - unchecked - { - hash = (hash * 29) + this.PaintScheme.GetHashCode(); - hash = (hash * 29) + this.Mobility.GetHashCode(); - hash = (hash * 29) + this.Mission.GetHashCode(); - hash = (hash * 29) + this.Damage.GetHashCode(); - hash = (hash * 29) + this.Smoke.GetHashCode(); - hash = (hash * 29) + this.TrailingEffects.GetHashCode(); - hash = (hash * 29) + this.Lights.GetHashCode(); - hash = (hash * 29) + this.Flaming.GetHashCode(); - hash = (hash * 29) + this.Antenna.GetHashCode(); - hash = (hash * 29) + this.CamouflageType.GetHashCode(); - hash = (hash * 29) + this.Concealed.GetHashCode(); - hash = (hash * 29) + this.FrozenStatus.GetHashCode(); - hash = (hash * 29) + this.PowerPlantStatus.GetHashCode(); - hash = (hash * 29) + this.State.GetHashCode(); - hash = (hash * 29) + this.Tent.GetHashCode(); - hash = (hash * 29) + this.BlackoutLights.GetHashCode(); - hash = (hash * 29) + this.InteriorLights.GetHashCode(); - } - - return hash; - } - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState.Appearance +{ + /// + /// Enumeration values for SensorEmitterAppearance (es.appear.sensoremitter, Sensor/Emitter Kind, + /// section 4.3.9) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public struct SensorEmitterAppearance + { + /// + /// Describes the paint scheme of an entity + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the paint scheme of an entity")] + public enum PaintSchemeValue : uint + { + /// + /// Uniform color + /// + UniformColor = 0, + + /// + /// Camouflage + /// + Camouflage = 1 + } + + /// + /// Describes characteristics of mobility kill + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes characteristics of mobility kill")] + public enum MobilityValue : uint + { + /// + /// No mobility kill + /// + NoMobilityKill = 0, + + /// + /// Mobility kill + /// + MobilityKill = 1 + } + + /// + /// Describes characteristics of mission kill (e.g. damaged antenna) + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes characteristics of mission kill (e.g. damaged antenna)")] + public enum MissionValue : uint + { + /// + /// No mission kill + /// + NoMissionKill = 0, + + /// + /// Mission kill + /// + MissionKill = 1 + } + + /// + /// Describes the damaged appearance of an entity + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the damaged appearance of an entity")] + public enum DamageValue : uint + { + /// + /// No damage + /// + NoDamage = 0, + + /// + /// Slight damage + /// + SlightDamage = 1, + + /// + /// Moderate damage + /// + ModerateDamage = 2, + + /// + /// Destroyed + /// + Destroyed = 3 + } + + /// + /// Describes status or location of smoke emanating from an entity + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes status or location of smoke emanating from an entity")] + public enum SmokeValue : uint + { + /// + /// Not smoking + /// + NotSmoking = 0, + + /// + /// Smoke plume rising from the entity + /// + SmokePlumeRisingFromTheEntity = 1, + + /// + /// Entity is emitting engine smoke + /// + EntityIsEmittingEngineSmoke = 2, + + /// + /// Entity is emitting engine smoke, and smoke plume is rising from the entity + /// + EntityIsEmittingEngineSmokeAndSmokePlumeIsRisingFromTheEntity = 3 + } + + /// + /// Describes the size of the dust cloud trailing effect for the Sensor/Emitter entity + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the size of the dust cloud trailing effect for the Sensor/Emitter entity")] + public enum TrailingEffectsValue : uint + { + /// + /// None + /// + None = 0, + + /// + /// Small + /// + Small = 1, + + /// + /// Medium + /// + Medium = 2, + + /// + /// Large + /// + Large = 3 + } + + /// + /// Describes the status of lights on the sensor + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the status of lights on the sensor")] + public enum LightsValue : uint + { + /// + /// Off + /// + Off = 0, + + /// + /// On + /// + On = 1 + } + + /// + /// Describes whether flames are rising from the entity + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes whether flames are rising from the entity")] + public enum FlamingValue : uint + { + /// + /// None + /// + None = 0, + + /// + /// Flames present + /// + FlamesPresent = 1 + } + + /// + /// Describes the elevated status of the sensor's antenna + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the elevated status of the sensor's antenna")] + public enum AntennaValue : uint + { + /// + /// Not raised + /// + NotRaised = 0, + + /// + /// Raised + /// + Raised = 1 + } + + /// + /// Describes the type of camouflage + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the type of camouflage")] + public enum CamouflageTypeValue : uint + { + /// + /// Desert camouflage + /// + DesertCamouflage = 0, + + /// + /// Winter camouflage + /// + WinterCamouflage = 1, + + /// + /// Forest camouflage + /// + ForestCamouflage = 2, + + /// + /// null + /// + Unknown = 3 + } + + /// + /// Describes the type of concealment + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the type of concealment")] + public enum ConcealedValue : uint + { + /// + /// Not concealed + /// + NotConcealed = 0, + + /// + /// Entity in a prepared concealed position (with netting, etc.) + /// + EntityInAPreparedConcealedPositionWithNettingEtc = 1 + } + + /// + /// Describes the frozen status of an entity + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the frozen status of an entity")] + public enum FrozenStatusValue : uint + { + /// + /// Not frozen + /// + NotFrozen = 0, + + /// + /// Frozen (Frozen entities should not be dead-reckoned, i.e. they should be displayed as fixed at the current location even if nonzero velocity, acceleration or rotation data is received from the frozen entity) + /// + FrozenFrozenEntitiesShouldNotBeDeadReckonedIETheyShouldBeDisplayedAsFixedAtTheCurrentLocationEvenIfNonzeroVelocityAccelerationOrRotationDataIsReceivedFromTheFrozenEntity = 1 + } + + /// + /// Describes the power-plant status of the sensor + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the power-plant status of the sensor")] + public enum PowerPlantStatusValue : uint + { + /// + /// Power plant off + /// + PowerPlantOff = 0, + + /// + /// Power plant on + /// + PowerPlantOn = 1 + } + + /// + /// Describes the state of an entity + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the state of an entity")] + public enum StateValue : uint + { + /// + /// Active + /// + Active = 0, + + /// + /// Deactivated + /// + Deactivated = 1 + } + + /// + /// Describes the status of a tent extension + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the status of a tent extension")] + public enum TentValue : uint + { + /// + /// Not extended + /// + NotExtended = 0, + + /// + /// Extended + /// + Extended = 1 + } + + /// + /// Describes whether Blackout Lights are on or off. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes whether Blackout Lights are on or off.")] + public enum BlackoutLightsValue : uint + { + /// + /// Off + /// + Off = 0, + + /// + /// On + /// + On = 1 + } + + /// + /// Describes whether Interior Lights are on or off. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes whether Interior Lights are on or off.")] + public enum InteriorLightsValue : uint + { + /// + /// Off + /// + Off = 0, + + /// + /// On + /// + On = 1 + } + + private SensorEmitterAppearance.PaintSchemeValue paintScheme; + private SensorEmitterAppearance.MobilityValue mobility; + private SensorEmitterAppearance.MissionValue mission; + private SensorEmitterAppearance.DamageValue damage; + private SensorEmitterAppearance.SmokeValue smoke; + private SensorEmitterAppearance.TrailingEffectsValue trailingEffects; + private SensorEmitterAppearance.LightsValue lights; + private SensorEmitterAppearance.FlamingValue flaming; + private SensorEmitterAppearance.AntennaValue antenna; + private SensorEmitterAppearance.CamouflageTypeValue camouflageType; + private SensorEmitterAppearance.ConcealedValue concealed; + private SensorEmitterAppearance.FrozenStatusValue frozenStatus; + private SensorEmitterAppearance.PowerPlantStatusValue powerPlantStatus; + private SensorEmitterAppearance.StateValue state; + private SensorEmitterAppearance.TentValue tent; + private SensorEmitterAppearance.BlackoutLightsValue blackoutLights; + private SensorEmitterAppearance.InteriorLightsValue interiorLights; + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(SensorEmitterAppearance left, SensorEmitterAppearance right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator ==(SensorEmitterAppearance left, SensorEmitterAppearance right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + // If parameters are null return false (cast to object to prevent recursive loop!) + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The scheme instance. + /// The result of the conversion. + public static explicit operator uint(SensorEmitterAppearance obj) + { + return obj.ToUInt32(); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The uint value. + /// The result of the conversion. + public static explicit operator SensorEmitterAppearance(uint value) + { + return SensorEmitterAppearance.FromUInt32(value); + } + + /// + /// Creates the instance from the byte array. + /// + /// The array which holds the values for the . + /// The starting position within value. + /// The instance, represented by a byte array. + /// if the array is null. + /// if the index is lower than 0 or greater or equal than number of elements in array. + public static SensorEmitterAppearance FromByteArray(byte[] array, int index) + { + if (array == null) + { + throw new ArgumentNullException("array"); + } + + if (index < 0 || + index > array.Length - 1 || + index + 4 > array.Length - 1) + { + throw new IndexOutOfRangeException(); + } + + return FromUInt32(BitConverter.ToUInt32(array, index)); + } + + /// + /// Creates the instance from the uint value. + /// + /// The uint value which represents the instance. + /// The instance, represented by the uint value. + public static SensorEmitterAppearance FromUInt32(uint value) + { + SensorEmitterAppearance ps = new SensorEmitterAppearance(); + + uint mask0 = 0x0001; + byte shift0 = 0; + uint newValue0 = (value & mask0) >> shift0; + ps.PaintScheme = (SensorEmitterAppearance.PaintSchemeValue)newValue0; + + uint mask1 = 0x0002; + byte shift1 = 1; + uint newValue1 = (value & mask1) >> shift1; + ps.Mobility = (SensorEmitterAppearance.MobilityValue)newValue1; + + uint mask2 = 0x0004; + byte shift2 = 2; + uint newValue2 = (value & mask2) >> shift2; + ps.Mission = (SensorEmitterAppearance.MissionValue)newValue2; + + uint mask3 = 0x0018; + byte shift3 = 3; + uint newValue3 = (value & mask3) >> shift3; + ps.Damage = (SensorEmitterAppearance.DamageValue)newValue3; + + uint mask4 = 0x0060; + byte shift4 = 5; + uint newValue4 = (value & mask4) >> shift4; + ps.Smoke = (SensorEmitterAppearance.SmokeValue)newValue4; + + uint mask5 = 0x0180; + byte shift5 = 7; + uint newValue5 = (value & mask5) >> shift5; + ps.TrailingEffects = (SensorEmitterAppearance.TrailingEffectsValue)newValue5; + + uint mask7 = 0x1000; + byte shift7 = 12; + uint newValue7 = (value & mask7) >> shift7; + ps.Lights = (SensorEmitterAppearance.LightsValue)newValue7; + + uint mask9 = 0x8000; + byte shift9 = 15; + uint newValue9 = (value & mask9) >> shift9; + ps.Flaming = (SensorEmitterAppearance.FlamingValue)newValue9; + + uint mask10 = 0x10000; + byte shift10 = 16; + uint newValue10 = (value & mask10) >> shift10; + ps.Antenna = (SensorEmitterAppearance.AntennaValue)newValue10; + + uint mask11 = 0x60000; + byte shift11 = 17; + uint newValue11 = (value & mask11) >> shift11; + ps.CamouflageType = (SensorEmitterAppearance.CamouflageTypeValue)newValue11; + + uint mask12 = 0x80000; + byte shift12 = 19; + uint newValue12 = (value & mask12) >> shift12; + ps.Concealed = (SensorEmitterAppearance.ConcealedValue)newValue12; + + uint mask14 = 0x200000; + byte shift14 = 21; + uint newValue14 = (value & mask14) >> shift14; + ps.FrozenStatus = (SensorEmitterAppearance.FrozenStatusValue)newValue14; + + uint mask15 = 0x400000; + byte shift15 = 22; + uint newValue15 = (value & mask15) >> shift15; + ps.PowerPlantStatus = (SensorEmitterAppearance.PowerPlantStatusValue)newValue15; + + uint mask16 = 0x800000; + byte shift16 = 23; + uint newValue16 = (value & mask16) >> shift16; + ps.State = (SensorEmitterAppearance.StateValue)newValue16; + + uint mask17 = 0x1000000; + byte shift17 = 24; + uint newValue17 = (value & mask17) >> shift17; + ps.Tent = (SensorEmitterAppearance.TentValue)newValue17; + + uint mask19 = 0x4000000; + byte shift19 = 26; + uint newValue19 = (value & mask19) >> shift19; + ps.BlackoutLights = (SensorEmitterAppearance.BlackoutLightsValue)newValue19; + + uint mask21 = 0x20000000; + byte shift21 = 29; + uint newValue21 = (value & mask21) >> shift21; + ps.InteriorLights = (SensorEmitterAppearance.InteriorLightsValue)newValue21; + + return ps; + } + + /// + /// Gets or sets the paintscheme. + /// + /// The paintscheme. + public SensorEmitterAppearance.PaintSchemeValue PaintScheme + { + get { return this.paintScheme; } + set { this.paintScheme = value; } + } + + /// + /// Gets or sets the mobility. + /// + /// The mobility. + public SensorEmitterAppearance.MobilityValue Mobility + { + get { return this.mobility; } + set { this.mobility = value; } + } + + /// + /// Gets or sets the mission. + /// + /// The mission. + public SensorEmitterAppearance.MissionValue Mission + { + get { return this.mission; } + set { this.mission = value; } + } + + /// + /// Gets or sets the damage. + /// + /// The damage. + public SensorEmitterAppearance.DamageValue Damage + { + get { return this.damage; } + set { this.damage = value; } + } + + /// + /// Gets or sets the smoke. + /// + /// The smoke. + public SensorEmitterAppearance.SmokeValue Smoke + { + get { return this.smoke; } + set { this.smoke = value; } + } + + /// + /// Gets or sets the trailingeffects. + /// + /// The trailingeffects. + public SensorEmitterAppearance.TrailingEffectsValue TrailingEffects + { + get { return this.trailingEffects; } + set { this.trailingEffects = value; } + } + + /// + /// Gets or sets the lights. + /// + /// The lights. + public SensorEmitterAppearance.LightsValue Lights + { + get { return this.lights; } + set { this.lights = value; } + } + + /// + /// Gets or sets the flaming. + /// + /// The flaming. + public SensorEmitterAppearance.FlamingValue Flaming + { + get { return this.flaming; } + set { this.flaming = value; } + } + + /// + /// Gets or sets the antenna. + /// + /// The antenna. + public SensorEmitterAppearance.AntennaValue Antenna + { + get { return this.antenna; } + set { this.antenna = value; } + } + + /// + /// Gets or sets the camouflagetype. + /// + /// The camouflagetype. + public SensorEmitterAppearance.CamouflageTypeValue CamouflageType + { + get { return this.camouflageType; } + set { this.camouflageType = value; } + } + + /// + /// Gets or sets the concealed. + /// + /// The concealed. + public SensorEmitterAppearance.ConcealedValue Concealed + { + get { return this.concealed; } + set { this.concealed = value; } + } + + /// + /// Gets or sets the frozenstatus. + /// + /// The frozenstatus. + public SensorEmitterAppearance.FrozenStatusValue FrozenStatus + { + get { return this.frozenStatus; } + set { this.frozenStatus = value; } + } + + /// + /// Gets or sets the powerplantstatus. + /// + /// The powerplantstatus. + public SensorEmitterAppearance.PowerPlantStatusValue PowerPlantStatus + { + get { return this.powerPlantStatus; } + set { this.powerPlantStatus = value; } + } + + /// + /// Gets or sets the state. + /// + /// The state. + public SensorEmitterAppearance.StateValue State + { + get { return this.state; } + set { this.state = value; } + } + + /// + /// Gets or sets the tent. + /// + /// The tent. + public SensorEmitterAppearance.TentValue Tent + { + get { return this.tent; } + set { this.tent = value; } + } + + /// + /// Gets or sets the blackoutlights. + /// + /// The blackoutlights. + public SensorEmitterAppearance.BlackoutLightsValue BlackoutLights + { + get { return this.blackoutLights; } + set { this.blackoutLights = value; } + } + + /// + /// Gets or sets the interiorlights. + /// + /// The interiorlights. + public SensorEmitterAppearance.InteriorLightsValue InteriorLights + { + get { return this.interiorLights; } + set { this.interiorLights = value; } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (!(obj is SensorEmitterAppearance)) + { + return false; + } + + return this.Equals((SensorEmitterAppearance)obj); + } + + /// + /// Determines whether the specified instance is equal to this instance. + /// + /// The instance to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public bool Equals(SensorEmitterAppearance other) + { + // If parameter is null return false (cast to object to prevent recursive loop!) + if ((object)other == null) + { + return false; + } + + return + this.PaintScheme == other.PaintScheme && + this.Mobility == other.Mobility && + this.Mission == other.Mission && + this.Damage == other.Damage && + this.Smoke == other.Smoke && + this.TrailingEffects == other.TrailingEffects && + this.Lights == other.Lights && + this.Flaming == other.Flaming && + this.Antenna == other.Antenna && + this.CamouflageType == other.CamouflageType && + this.Concealed == other.Concealed && + this.FrozenStatus == other.FrozenStatus && + this.PowerPlantStatus == other.PowerPlantStatus && + this.State == other.State && + this.Tent == other.Tent && + this.BlackoutLights == other.BlackoutLights && + this.InteriorLights == other.InteriorLights; + } + + /// + /// Converts the instance of to the byte array. + /// + /// The byte array representing the current instance. + public byte[] ToByteArray() + { + return BitConverter.GetBytes(this.ToUInt32()); + } + + /// + /// Converts the instance of to the uint value. + /// + /// The uint value representing the current instance. + public uint ToUInt32() + { + uint val = 0; + + val |= (uint)((uint)this.PaintScheme << 0); + val |= (uint)((uint)this.Mobility << 1); + val |= (uint)((uint)this.Mission << 2); + val |= (uint)((uint)this.Damage << 3); + val |= (uint)((uint)this.Smoke << 5); + val |= (uint)((uint)this.TrailingEffects << 7); + val |= (uint)((uint)this.Lights << 12); + val |= (uint)((uint)this.Flaming << 15); + val |= (uint)((uint)this.Antenna << 16); + val |= (uint)((uint)this.CamouflageType << 17); + val |= (uint)((uint)this.Concealed << 19); + val |= (uint)((uint)this.FrozenStatus << 21); + val |= (uint)((uint)this.PowerPlantStatus << 22); + val |= (uint)((uint)this.State << 23); + val |= (uint)((uint)this.Tent << 24); + val |= (uint)((uint)this.BlackoutLights << 26); + val |= (uint)((uint)this.InteriorLights << 29); + + return val; + } + + /// + /// Returns a hash code for this instance. + /// + /// + /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + /// + public override int GetHashCode() + { + int hash = 17; + + // Overflow is fine, just wrap + unchecked + { + hash = (hash * 29) + this.PaintScheme.GetHashCode(); + hash = (hash * 29) + this.Mobility.GetHashCode(); + hash = (hash * 29) + this.Mission.GetHashCode(); + hash = (hash * 29) + this.Damage.GetHashCode(); + hash = (hash * 29) + this.Smoke.GetHashCode(); + hash = (hash * 29) + this.TrailingEffects.GetHashCode(); + hash = (hash * 29) + this.Lights.GetHashCode(); + hash = (hash * 29) + this.Flaming.GetHashCode(); + hash = (hash * 29) + this.Antenna.GetHashCode(); + hash = (hash * 29) + this.CamouflageType.GetHashCode(); + hash = (hash * 29) + this.Concealed.GetHashCode(); + hash = (hash * 29) + this.FrozenStatus.GetHashCode(); + hash = (hash * 29) + this.PowerPlantStatus.GetHashCode(); + hash = (hash * 29) + this.State.GetHashCode(); + hash = (hash * 29) + this.Tent.GetHashCode(); + hash = (hash * 29) + this.BlackoutLights.GetHashCode(); + hash = (hash * 29) + this.InteriorLights.GetHashCode(); + } + + return hash; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/SpacePlatformAppearance.cs b/Libs/CsharpDis6/Enumerations/EntityState.Appearance/SpacePlatformAppearance.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/SpacePlatformAppearance.cs rename to Libs/CsharpDis6/Enumerations/EntityState.Appearance/SpacePlatformAppearance.cs index 1684f72..78fd4b0 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/SpacePlatformAppearance.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState.Appearance/SpacePlatformAppearance.cs @@ -1,538 +1,538 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState.Appearance -{ - /// - /// Enumeration values for SpacePlatformAppearance (es.appear.platform.space, Platforms of the Space Domain, - /// section 4.3.1.5) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public struct SpacePlatformAppearance - { - /// - /// Describes the paint scheme of an entity - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the paint scheme of an entity")] - public enum PaintSchemeValue : uint - { - /// - /// Uniform color - /// - UniformColor = 0, - - /// - /// Camouflage - /// - Camouflage = 1 - } - - /// - /// Describes characteristics of mobility kills - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes characteristics of mobility kills")] - public enum MobilityValue : uint - { - /// - /// No mobility kill - /// - NoMobilityKill = 0, - - /// - /// Mobility kill - /// - MobilityKill = 1 - } - - /// - /// Describes the damaged appearance of an entity - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the damaged appearance of an entity")] - public enum DamageValue : uint - { - /// - /// No damage - /// - NoDamage = 0, - - /// - /// Slight damage - /// - SlightDamage = 1, - - /// - /// Moderate damage - /// - ModerateDamage = 2, - - /// - /// Destroyed - /// - Destroyed = 3 - } - - /// - /// Describes status or location of smoke emanating from an entity - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes status or location of smoke emanating from an entity")] - public enum SmokeValue : uint - { - /// - /// Not smoking - /// - NotSmoking = 0, - - /// - /// Smoke plume rising from the entity - /// - SmokePlumeRisingFromTheEntity = 1, - - /// - /// null - /// - Unknown = 2 - } - - /// - /// Describes whether flames are rising from an entity - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes whether flames are rising from an entity")] - public enum FlamingValue : uint - { - /// - /// None - /// - None = 0, - - /// - /// Flames present - /// - FlamesPresent = 1 - } - - /// - /// Describes the frozen status of a space platform - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the frozen status of a space platform")] - public enum FrozenStatusValue : uint - { - /// - /// Not frozen - /// - NotFrozen = 0, - - /// - /// Frozen (Frozen entities should not be dead-reckoned, i.e. they should be displayed as fixed at the current location even if nonzero velocity, acceleration or rotation data is received from the frozen entity) - /// - FrozenFrozenEntitiesShouldNotBeDeadReckonedIETheyShouldBeDisplayedAsFixedAtTheCurrentLocationEvenIfNonzeroVelocityAccelerationOrRotationDataIsReceivedFromTheFrozenEntity = 1 - } - - /// - /// Describes the power-plant status of a space platform - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the power-plant status of a space platform")] - public enum PowerPlantStatusValue : uint - { - /// - /// Power plant off - /// - PowerPlantOff = 0, - - /// - /// Power plant on - /// - PowerPlantOn = 1 - } - - /// - /// Describes the state of a space platform - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the state of a space platform")] - public enum StateValue : uint - { - /// - /// Active - /// - Active = 0, - - /// - /// Deactivated - /// - Deactivated = 1 - } - - private SpacePlatformAppearance.PaintSchemeValue paintScheme; - private SpacePlatformAppearance.MobilityValue mobility; - private SpacePlatformAppearance.DamageValue damage; - private SpacePlatformAppearance.SmokeValue smoke; - private SpacePlatformAppearance.FlamingValue flaming; - private SpacePlatformAppearance.FrozenStatusValue frozenStatus; - private SpacePlatformAppearance.PowerPlantStatusValue powerPlantStatus; - private SpacePlatformAppearance.StateValue state; - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(SpacePlatformAppearance left, SpacePlatformAppearance right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator ==(SpacePlatformAppearance left, SpacePlatformAppearance right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - // If parameters are null return false (cast to object to prevent recursive loop!) - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The scheme instance. - /// The result of the conversion. - public static explicit operator uint(SpacePlatformAppearance obj) - { - return obj.ToUInt32(); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The uint value. - /// The result of the conversion. - public static explicit operator SpacePlatformAppearance(uint value) - { - return SpacePlatformAppearance.FromUInt32(value); - } - - /// - /// Creates the instance from the byte array. - /// - /// The array which holds the values for the . - /// The starting position within value. - /// The instance, represented by a byte array. - /// if the array is null. - /// if the index is lower than 0 or greater or equal than number of elements in array. - public static SpacePlatformAppearance FromByteArray(byte[] array, int index) - { - if (array == null) - { - throw new ArgumentNullException("array"); - } - - if (index < 0 || - index > array.Length - 1 || - index + 4 > array.Length - 1) - { - throw new IndexOutOfRangeException(); - } - - return FromUInt32(BitConverter.ToUInt32(array, index)); - } - - /// - /// Creates the instance from the uint value. - /// - /// The uint value which represents the instance. - /// The instance, represented by the uint value. - public static SpacePlatformAppearance FromUInt32(uint value) - { - SpacePlatformAppearance ps = new SpacePlatformAppearance(); - - uint mask0 = 0x0001; - byte shift0 = 0; - uint newValue0 = (value & mask0) >> shift0; - ps.PaintScheme = (SpacePlatformAppearance.PaintSchemeValue)newValue0; - - uint mask1 = 0x0002; - byte shift1 = 1; - uint newValue1 = (value & mask1) >> shift1; - ps.Mobility = (SpacePlatformAppearance.MobilityValue)newValue1; - - uint mask3 = 0x0018; - byte shift3 = 3; - uint newValue3 = (value & mask3) >> shift3; - ps.Damage = (SpacePlatformAppearance.DamageValue)newValue3; - - uint mask4 = 0x0060; - byte shift4 = 5; - uint newValue4 = (value & mask4) >> shift4; - ps.Smoke = (SpacePlatformAppearance.SmokeValue)newValue4; - - uint mask6 = 0x8000; - byte shift6 = 15; - uint newValue6 = (value & mask6) >> shift6; - ps.Flaming = (SpacePlatformAppearance.FlamingValue)newValue6; - - uint mask8 = 0x200000; - byte shift8 = 21; - uint newValue8 = (value & mask8) >> shift8; - ps.FrozenStatus = (SpacePlatformAppearance.FrozenStatusValue)newValue8; - - uint mask9 = 0x400000; - byte shift9 = 22; - uint newValue9 = (value & mask9) >> shift9; - ps.PowerPlantStatus = (SpacePlatformAppearance.PowerPlantStatusValue)newValue9; - - uint mask10 = 0x800000; - byte shift10 = 23; - uint newValue10 = (value & mask10) >> shift10; - ps.State = (SpacePlatformAppearance.StateValue)newValue10; - - return ps; - } - - /// - /// Gets or sets the paintscheme. - /// - /// The paintscheme. - public SpacePlatformAppearance.PaintSchemeValue PaintScheme - { - get { return this.paintScheme; } - set { this.paintScheme = value; } - } - - /// - /// Gets or sets the mobility. - /// - /// The mobility. - public SpacePlatformAppearance.MobilityValue Mobility - { - get { return this.mobility; } - set { this.mobility = value; } - } - - /// - /// Gets or sets the damage. - /// - /// The damage. - public SpacePlatformAppearance.DamageValue Damage - { - get { return this.damage; } - set { this.damage = value; } - } - - /// - /// Gets or sets the smoke. - /// - /// The smoke. - public SpacePlatformAppearance.SmokeValue Smoke - { - get { return this.smoke; } - set { this.smoke = value; } - } - - /// - /// Gets or sets the flaming. - /// - /// The flaming. - public SpacePlatformAppearance.FlamingValue Flaming - { - get { return this.flaming; } - set { this.flaming = value; } - } - - /// - /// Gets or sets the frozenstatus. - /// - /// The frozenstatus. - public SpacePlatformAppearance.FrozenStatusValue FrozenStatus - { - get { return this.frozenStatus; } - set { this.frozenStatus = value; } - } - - /// - /// Gets or sets the powerplantstatus. - /// - /// The powerplantstatus. - public SpacePlatformAppearance.PowerPlantStatusValue PowerPlantStatus - { - get { return this.powerPlantStatus; } - set { this.powerPlantStatus = value; } - } - - /// - /// Gets or sets the state. - /// - /// The state. - public SpacePlatformAppearance.StateValue State - { - get { return this.state; } - set { this.state = value; } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - if (obj == null) - { - return false; - } - - if (!(obj is SpacePlatformAppearance)) - { - return false; - } - - return this.Equals((SpacePlatformAppearance)obj); - } - - /// - /// Determines whether the specified instance is equal to this instance. - /// - /// The instance to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public bool Equals(SpacePlatformAppearance other) - { - // If parameter is null return false (cast to object to prevent recursive loop!) - if ((object)other == null) - { - return false; - } - - return - this.PaintScheme == other.PaintScheme && - this.Mobility == other.Mobility && - this.Damage == other.Damage && - this.Smoke == other.Smoke && - this.Flaming == other.Flaming && - this.FrozenStatus == other.FrozenStatus && - this.PowerPlantStatus == other.PowerPlantStatus && - this.State == other.State; - } - - /// - /// Converts the instance of to the byte array. - /// - /// The byte array representing the current instance. - public byte[] ToByteArray() - { - return BitConverter.GetBytes(this.ToUInt32()); - } - - /// - /// Converts the instance of to the uint value. - /// - /// The uint value representing the current instance. - public uint ToUInt32() - { - uint val = 0; - - val |= (uint)((uint)this.PaintScheme << 0); - val |= (uint)((uint)this.Mobility << 1); - val |= (uint)((uint)this.Damage << 3); - val |= (uint)((uint)this.Smoke << 5); - val |= (uint)((uint)this.Flaming << 15); - val |= (uint)((uint)this.FrozenStatus << 21); - val |= (uint)((uint)this.PowerPlantStatus << 22); - val |= (uint)((uint)this.State << 23); - - return val; - } - - /// - /// Returns a hash code for this instance. - /// - /// - /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - /// - public override int GetHashCode() - { - int hash = 17; - - // Overflow is fine, just wrap - unchecked - { - hash = (hash * 29) + this.PaintScheme.GetHashCode(); - hash = (hash * 29) + this.Mobility.GetHashCode(); - hash = (hash * 29) + this.Damage.GetHashCode(); - hash = (hash * 29) + this.Smoke.GetHashCode(); - hash = (hash * 29) + this.Flaming.GetHashCode(); - hash = (hash * 29) + this.FrozenStatus.GetHashCode(); - hash = (hash * 29) + this.PowerPlantStatus.GetHashCode(); - hash = (hash * 29) + this.State.GetHashCode(); - } - - return hash; - } - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState.Appearance +{ + /// + /// Enumeration values for SpacePlatformAppearance (es.appear.platform.space, Platforms of the Space Domain, + /// section 4.3.1.5) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public struct SpacePlatformAppearance + { + /// + /// Describes the paint scheme of an entity + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the paint scheme of an entity")] + public enum PaintSchemeValue : uint + { + /// + /// Uniform color + /// + UniformColor = 0, + + /// + /// Camouflage + /// + Camouflage = 1 + } + + /// + /// Describes characteristics of mobility kills + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes characteristics of mobility kills")] + public enum MobilityValue : uint + { + /// + /// No mobility kill + /// + NoMobilityKill = 0, + + /// + /// Mobility kill + /// + MobilityKill = 1 + } + + /// + /// Describes the damaged appearance of an entity + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the damaged appearance of an entity")] + public enum DamageValue : uint + { + /// + /// No damage + /// + NoDamage = 0, + + /// + /// Slight damage + /// + SlightDamage = 1, + + /// + /// Moderate damage + /// + ModerateDamage = 2, + + /// + /// Destroyed + /// + Destroyed = 3 + } + + /// + /// Describes status or location of smoke emanating from an entity + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes status or location of smoke emanating from an entity")] + public enum SmokeValue : uint + { + /// + /// Not smoking + /// + NotSmoking = 0, + + /// + /// Smoke plume rising from the entity + /// + SmokePlumeRisingFromTheEntity = 1, + + /// + /// null + /// + Unknown = 2 + } + + /// + /// Describes whether flames are rising from an entity + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes whether flames are rising from an entity")] + public enum FlamingValue : uint + { + /// + /// None + /// + None = 0, + + /// + /// Flames present + /// + FlamesPresent = 1 + } + + /// + /// Describes the frozen status of a space platform + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the frozen status of a space platform")] + public enum FrozenStatusValue : uint + { + /// + /// Not frozen + /// + NotFrozen = 0, + + /// + /// Frozen (Frozen entities should not be dead-reckoned, i.e. they should be displayed as fixed at the current location even if nonzero velocity, acceleration or rotation data is received from the frozen entity) + /// + FrozenFrozenEntitiesShouldNotBeDeadReckonedIETheyShouldBeDisplayedAsFixedAtTheCurrentLocationEvenIfNonzeroVelocityAccelerationOrRotationDataIsReceivedFromTheFrozenEntity = 1 + } + + /// + /// Describes the power-plant status of a space platform + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the power-plant status of a space platform")] + public enum PowerPlantStatusValue : uint + { + /// + /// Power plant off + /// + PowerPlantOff = 0, + + /// + /// Power plant on + /// + PowerPlantOn = 1 + } + + /// + /// Describes the state of a space platform + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the state of a space platform")] + public enum StateValue : uint + { + /// + /// Active + /// + Active = 0, + + /// + /// Deactivated + /// + Deactivated = 1 + } + + private SpacePlatformAppearance.PaintSchemeValue paintScheme; + private SpacePlatformAppearance.MobilityValue mobility; + private SpacePlatformAppearance.DamageValue damage; + private SpacePlatformAppearance.SmokeValue smoke; + private SpacePlatformAppearance.FlamingValue flaming; + private SpacePlatformAppearance.FrozenStatusValue frozenStatus; + private SpacePlatformAppearance.PowerPlantStatusValue powerPlantStatus; + private SpacePlatformAppearance.StateValue state; + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(SpacePlatformAppearance left, SpacePlatformAppearance right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator ==(SpacePlatformAppearance left, SpacePlatformAppearance right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + // If parameters are null return false (cast to object to prevent recursive loop!) + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The scheme instance. + /// The result of the conversion. + public static explicit operator uint(SpacePlatformAppearance obj) + { + return obj.ToUInt32(); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The uint value. + /// The result of the conversion. + public static explicit operator SpacePlatformAppearance(uint value) + { + return SpacePlatformAppearance.FromUInt32(value); + } + + /// + /// Creates the instance from the byte array. + /// + /// The array which holds the values for the . + /// The starting position within value. + /// The instance, represented by a byte array. + /// if the array is null. + /// if the index is lower than 0 or greater or equal than number of elements in array. + public static SpacePlatformAppearance FromByteArray(byte[] array, int index) + { + if (array == null) + { + throw new ArgumentNullException("array"); + } + + if (index < 0 || + index > array.Length - 1 || + index + 4 > array.Length - 1) + { + throw new IndexOutOfRangeException(); + } + + return FromUInt32(BitConverter.ToUInt32(array, index)); + } + + /// + /// Creates the instance from the uint value. + /// + /// The uint value which represents the instance. + /// The instance, represented by the uint value. + public static SpacePlatformAppearance FromUInt32(uint value) + { + SpacePlatformAppearance ps = new SpacePlatformAppearance(); + + uint mask0 = 0x0001; + byte shift0 = 0; + uint newValue0 = (value & mask0) >> shift0; + ps.PaintScheme = (SpacePlatformAppearance.PaintSchemeValue)newValue0; + + uint mask1 = 0x0002; + byte shift1 = 1; + uint newValue1 = (value & mask1) >> shift1; + ps.Mobility = (SpacePlatformAppearance.MobilityValue)newValue1; + + uint mask3 = 0x0018; + byte shift3 = 3; + uint newValue3 = (value & mask3) >> shift3; + ps.Damage = (SpacePlatformAppearance.DamageValue)newValue3; + + uint mask4 = 0x0060; + byte shift4 = 5; + uint newValue4 = (value & mask4) >> shift4; + ps.Smoke = (SpacePlatformAppearance.SmokeValue)newValue4; + + uint mask6 = 0x8000; + byte shift6 = 15; + uint newValue6 = (value & mask6) >> shift6; + ps.Flaming = (SpacePlatformAppearance.FlamingValue)newValue6; + + uint mask8 = 0x200000; + byte shift8 = 21; + uint newValue8 = (value & mask8) >> shift8; + ps.FrozenStatus = (SpacePlatformAppearance.FrozenStatusValue)newValue8; + + uint mask9 = 0x400000; + byte shift9 = 22; + uint newValue9 = (value & mask9) >> shift9; + ps.PowerPlantStatus = (SpacePlatformAppearance.PowerPlantStatusValue)newValue9; + + uint mask10 = 0x800000; + byte shift10 = 23; + uint newValue10 = (value & mask10) >> shift10; + ps.State = (SpacePlatformAppearance.StateValue)newValue10; + + return ps; + } + + /// + /// Gets or sets the paintscheme. + /// + /// The paintscheme. + public SpacePlatformAppearance.PaintSchemeValue PaintScheme + { + get { return this.paintScheme; } + set { this.paintScheme = value; } + } + + /// + /// Gets or sets the mobility. + /// + /// The mobility. + public SpacePlatformAppearance.MobilityValue Mobility + { + get { return this.mobility; } + set { this.mobility = value; } + } + + /// + /// Gets or sets the damage. + /// + /// The damage. + public SpacePlatformAppearance.DamageValue Damage + { + get { return this.damage; } + set { this.damage = value; } + } + + /// + /// Gets or sets the smoke. + /// + /// The smoke. + public SpacePlatformAppearance.SmokeValue Smoke + { + get { return this.smoke; } + set { this.smoke = value; } + } + + /// + /// Gets or sets the flaming. + /// + /// The flaming. + public SpacePlatformAppearance.FlamingValue Flaming + { + get { return this.flaming; } + set { this.flaming = value; } + } + + /// + /// Gets or sets the frozenstatus. + /// + /// The frozenstatus. + public SpacePlatformAppearance.FrozenStatusValue FrozenStatus + { + get { return this.frozenStatus; } + set { this.frozenStatus = value; } + } + + /// + /// Gets or sets the powerplantstatus. + /// + /// The powerplantstatus. + public SpacePlatformAppearance.PowerPlantStatusValue PowerPlantStatus + { + get { return this.powerPlantStatus; } + set { this.powerPlantStatus = value; } + } + + /// + /// Gets or sets the state. + /// + /// The state. + public SpacePlatformAppearance.StateValue State + { + get { return this.state; } + set { this.state = value; } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (!(obj is SpacePlatformAppearance)) + { + return false; + } + + return this.Equals((SpacePlatformAppearance)obj); + } + + /// + /// Determines whether the specified instance is equal to this instance. + /// + /// The instance to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public bool Equals(SpacePlatformAppearance other) + { + // If parameter is null return false (cast to object to prevent recursive loop!) + if ((object)other == null) + { + return false; + } + + return + this.PaintScheme == other.PaintScheme && + this.Mobility == other.Mobility && + this.Damage == other.Damage && + this.Smoke == other.Smoke && + this.Flaming == other.Flaming && + this.FrozenStatus == other.FrozenStatus && + this.PowerPlantStatus == other.PowerPlantStatus && + this.State == other.State; + } + + /// + /// Converts the instance of to the byte array. + /// + /// The byte array representing the current instance. + public byte[] ToByteArray() + { + return BitConverter.GetBytes(this.ToUInt32()); + } + + /// + /// Converts the instance of to the uint value. + /// + /// The uint value representing the current instance. + public uint ToUInt32() + { + uint val = 0; + + val |= (uint)((uint)this.PaintScheme << 0); + val |= (uint)((uint)this.Mobility << 1); + val |= (uint)((uint)this.Damage << 3); + val |= (uint)((uint)this.Smoke << 5); + val |= (uint)((uint)this.Flaming << 15); + val |= (uint)((uint)this.FrozenStatus << 21); + val |= (uint)((uint)this.PowerPlantStatus << 22); + val |= (uint)((uint)this.State << 23); + + return val; + } + + /// + /// Returns a hash code for this instance. + /// + /// + /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + /// + public override int GetHashCode() + { + int hash = 17; + + // Overflow is fine, just wrap + unchecked + { + hash = (hash * 29) + this.PaintScheme.GetHashCode(); + hash = (hash * 29) + this.Mobility.GetHashCode(); + hash = (hash * 29) + this.Damage.GetHashCode(); + hash = (hash * 29) + this.Smoke.GetHashCode(); + hash = (hash * 29) + this.Flaming.GetHashCode(); + hash = (hash * 29) + this.FrozenStatus.GetHashCode(); + hash = (hash * 29) + this.PowerPlantStatus.GetHashCode(); + hash = (hash * 29) + this.State.GetHashCode(); + } + + return hash; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/SubsurfacePlatformAppearance.cs b/Libs/CsharpDis6/Enumerations/EntityState.Appearance/SubsurfacePlatformAppearance.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/SubsurfacePlatformAppearance.cs rename to Libs/CsharpDis6/Enumerations/EntityState.Appearance/SubsurfacePlatformAppearance.cs index c7e76f7..1f1474a 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/SubsurfacePlatformAppearance.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState.Appearance/SubsurfacePlatformAppearance.cs @@ -1,633 +1,633 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState.Appearance -{ - /// - /// Enumeration values for SubsurfacePlatformAppearance (es.appear.platform.subsurface, Platforms of the Subsurface Domain, - /// section 4.3.1.4) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public struct SubsurfacePlatformAppearance - { - /// - /// Describes the paint scheme of an entity - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the paint scheme of an entity")] - public enum PaintSchemeValue : uint - { - /// - /// Uniform color - /// - UniformColor = 0, - - /// - /// Camouflage - /// - Camouflage = 1 - } - - /// - /// Describes characteristics of mobility kills - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes characteristics of mobility kills")] - public enum MobilityValue : uint - { - /// - /// No mobility kill - /// - NoMobilityKill = 0, - - /// - /// Mobility kill - /// - MobilityKill = 1 - } - - /// - /// Describes the damaged appearance of an entity - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the damaged appearance of an entity")] - public enum DamageValue : uint - { - /// - /// No damage - /// - NoDamage = 0, - - /// - /// Slight damage - /// - SlightDamage = 1, - - /// - /// Moderate damage - /// - ModerateDamage = 2, - - /// - /// Destroyed - /// - Destroyed = 3 - } - - /// - /// Describes status or location of smoke emanating from an entity - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes status or location of smoke emanating from an entity")] - public enum SmokeValue : uint - { - /// - /// Not smoking - /// - NotSmoking = 0, - - /// - /// Smoke plume rising from the entity - /// - SmokePlumeRisingFromTheEntity = 1, - - /// - /// null - /// - Unknown = 2 - } - - /// - /// Describes the state of the hatch - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the state of the hatch")] - public enum HatchValue : uint - { - /// - /// Not applicable - /// - NotApplicable = 0, - - /// - /// Hatch is closed - /// - HatchIsClosed = 1, - - /// - /// null - /// - Unknown = 2, - - /// - /// Hatch is open - /// - HatchIsOpen = 4, - - /// - /// null - /// - Unknown2 = 5 - } - - /// - /// Describes whether Running Lights are on or off. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes whether Running Lights are on or off.")] - public enum RunningLightsValue : uint - { - /// - /// Off - /// - Off = 0, - - /// - /// On - /// - On = 1 - } - - /// - /// Describes whether flames are rising from an entity - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes whether flames are rising from an entity")] - public enum FlamingValue : uint - { - /// - /// None - /// - None = 0, - - /// - /// Flames present - /// - FlamesPresent = 1 - } - - /// - /// Describes the frozen status of a subsurface platform - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the frozen status of a subsurface platform")] - public enum FrozenStatusValue : uint - { - /// - /// Not frozen - /// - NotFrozen = 0, - - /// - /// Frozen (Frozen entities should not be dead-reckoned, i.e. they should be displayed as fixed at the current location even if nonzero velocity, acceleration or rotation data is received from the frozen entity) - /// - FrozenFrozenEntitiesShouldNotBeDeadReckonedIETheyShouldBeDisplayedAsFixedAtTheCurrentLocationEvenIfNonzeroVelocityAccelerationOrRotationDataIsReceivedFromTheFrozenEntity = 1 - } - - /// - /// Describes the power-plant status of a subsurface platform - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the power-plant status of a subsurface platform")] - public enum PowerPlantStatusValue : uint - { - /// - /// Power plant off - /// - PowerPlantOff = 0, - - /// - /// Power plant on - /// - PowerPlantOn = 1 - } - - /// - /// Describes the state of a subsurface platform - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the state of a subsurface platform")] - public enum StateValue : uint - { - /// - /// Active - /// - Active = 0, - - /// - /// Deactivated - /// - Deactivated = 1 - } - - private SubsurfacePlatformAppearance.PaintSchemeValue paintScheme; - private SubsurfacePlatformAppearance.MobilityValue mobility; - private SubsurfacePlatformAppearance.DamageValue damage; - private SubsurfacePlatformAppearance.SmokeValue smoke; - private SubsurfacePlatformAppearance.HatchValue hatch; - private SubsurfacePlatformAppearance.RunningLightsValue runningLights; - private SubsurfacePlatformAppearance.FlamingValue flaming; - private SubsurfacePlatformAppearance.FrozenStatusValue frozenStatus; - private SubsurfacePlatformAppearance.PowerPlantStatusValue powerPlantStatus; - private SubsurfacePlatformAppearance.StateValue state; - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(SubsurfacePlatformAppearance left, SubsurfacePlatformAppearance right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator ==(SubsurfacePlatformAppearance left, SubsurfacePlatformAppearance right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - // If parameters are null return false (cast to object to prevent recursive loop!) - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The scheme instance. - /// The result of the conversion. - public static explicit operator uint(SubsurfacePlatformAppearance obj) - { - return obj.ToUInt32(); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The uint value. - /// The result of the conversion. - public static explicit operator SubsurfacePlatformAppearance(uint value) - { - return SubsurfacePlatformAppearance.FromUInt32(value); - } - - /// - /// Creates the instance from the byte array. - /// - /// The array which holds the values for the . - /// The starting position within value. - /// The instance, represented by a byte array. - /// if the array is null. - /// if the index is lower than 0 or greater or equal than number of elements in array. - public static SubsurfacePlatformAppearance FromByteArray(byte[] array, int index) - { - if (array == null) - { - throw new ArgumentNullException("array"); - } - - if (index < 0 || - index > array.Length - 1 || - index + 4 > array.Length - 1) - { - throw new IndexOutOfRangeException(); - } - - return FromUInt32(BitConverter.ToUInt32(array, index)); - } - - /// - /// Creates the instance from the uint value. - /// - /// The uint value which represents the instance. - /// The instance, represented by the uint value. - public static SubsurfacePlatformAppearance FromUInt32(uint value) - { - SubsurfacePlatformAppearance ps = new SubsurfacePlatformAppearance(); - - uint mask0 = 0x0001; - byte shift0 = 0; - uint newValue0 = (value & mask0) >> shift0; - ps.PaintScheme = (SubsurfacePlatformAppearance.PaintSchemeValue)newValue0; - - uint mask1 = 0x0002; - byte shift1 = 1; - uint newValue1 = (value & mask1) >> shift1; - ps.Mobility = (SubsurfacePlatformAppearance.MobilityValue)newValue1; - - uint mask3 = 0x0018; - byte shift3 = 3; - uint newValue3 = (value & mask3) >> shift3; - ps.Damage = (SubsurfacePlatformAppearance.DamageValue)newValue3; - - uint mask4 = 0x0060; - byte shift4 = 5; - uint newValue4 = (value & mask4) >> shift4; - ps.Smoke = (SubsurfacePlatformAppearance.SmokeValue)newValue4; - - uint mask6 = 0x0e00; - byte shift6 = 9; - uint newValue6 = (value & mask6) >> shift6; - ps.Hatch = (SubsurfacePlatformAppearance.HatchValue)newValue6; - - uint mask7 = 0x1000; - byte shift7 = 12; - uint newValue7 = (value & mask7) >> shift7; - ps.RunningLights = (SubsurfacePlatformAppearance.RunningLightsValue)newValue7; - - uint mask9 = 0x8000; - byte shift9 = 15; - uint newValue9 = (value & mask9) >> shift9; - ps.Flaming = (SubsurfacePlatformAppearance.FlamingValue)newValue9; - - uint mask11 = 0x200000; - byte shift11 = 21; - uint newValue11 = (value & mask11) >> shift11; - ps.FrozenStatus = (SubsurfacePlatformAppearance.FrozenStatusValue)newValue11; - - uint mask12 = 0x400000; - byte shift12 = 22; - uint newValue12 = (value & mask12) >> shift12; - ps.PowerPlantStatus = (SubsurfacePlatformAppearance.PowerPlantStatusValue)newValue12; - - uint mask13 = 0x800000; - byte shift13 = 23; - uint newValue13 = (value & mask13) >> shift13; - ps.State = (SubsurfacePlatformAppearance.StateValue)newValue13; - - return ps; - } - - /// - /// Gets or sets the paintscheme. - /// - /// The paintscheme. - public SubsurfacePlatformAppearance.PaintSchemeValue PaintScheme - { - get { return this.paintScheme; } - set { this.paintScheme = value; } - } - - /// - /// Gets or sets the mobility. - /// - /// The mobility. - public SubsurfacePlatformAppearance.MobilityValue Mobility - { - get { return this.mobility; } - set { this.mobility = value; } - } - - /// - /// Gets or sets the damage. - /// - /// The damage. - public SubsurfacePlatformAppearance.DamageValue Damage - { - get { return this.damage; } - set { this.damage = value; } - } - - /// - /// Gets or sets the smoke. - /// - /// The smoke. - public SubsurfacePlatformAppearance.SmokeValue Smoke - { - get { return this.smoke; } - set { this.smoke = value; } - } - - /// - /// Gets or sets the hatch. - /// - /// The hatch. - public SubsurfacePlatformAppearance.HatchValue Hatch - { - get { return this.hatch; } - set { this.hatch = value; } - } - - /// - /// Gets or sets the runninglights. - /// - /// The runninglights. - public SubsurfacePlatformAppearance.RunningLightsValue RunningLights - { - get { return this.runningLights; } - set { this.runningLights = value; } - } - - /// - /// Gets or sets the flaming. - /// - /// The flaming. - public SubsurfacePlatformAppearance.FlamingValue Flaming - { - get { return this.flaming; } - set { this.flaming = value; } - } - - /// - /// Gets or sets the frozenstatus. - /// - /// The frozenstatus. - public SubsurfacePlatformAppearance.FrozenStatusValue FrozenStatus - { - get { return this.frozenStatus; } - set { this.frozenStatus = value; } - } - - /// - /// Gets or sets the powerplantstatus. - /// - /// The powerplantstatus. - public SubsurfacePlatformAppearance.PowerPlantStatusValue PowerPlantStatus - { - get { return this.powerPlantStatus; } - set { this.powerPlantStatus = value; } - } - - /// - /// Gets or sets the state. - /// - /// The state. - public SubsurfacePlatformAppearance.StateValue State - { - get { return this.state; } - set { this.state = value; } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - if (obj == null) - { - return false; - } - - if (!(obj is SubsurfacePlatformAppearance)) - { - return false; - } - - return this.Equals((SubsurfacePlatformAppearance)obj); - } - - /// - /// Determines whether the specified instance is equal to this instance. - /// - /// The instance to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public bool Equals(SubsurfacePlatformAppearance other) - { - // If parameter is null return false (cast to object to prevent recursive loop!) - if ((object)other == null) - { - return false; - } - - return - this.PaintScheme == other.PaintScheme && - this.Mobility == other.Mobility && - this.Damage == other.Damage && - this.Smoke == other.Smoke && - this.Hatch == other.Hatch && - this.RunningLights == other.RunningLights && - this.Flaming == other.Flaming && - this.FrozenStatus == other.FrozenStatus && - this.PowerPlantStatus == other.PowerPlantStatus && - this.State == other.State; - } - - /// - /// Converts the instance of to the byte array. - /// - /// The byte array representing the current instance. - public byte[] ToByteArray() - { - return BitConverter.GetBytes(this.ToUInt32()); - } - - /// - /// Converts the instance of to the uint value. - /// - /// The uint value representing the current instance. - public uint ToUInt32() - { - uint val = 0; - - val |= (uint)((uint)this.PaintScheme << 0); - val |= (uint)((uint)this.Mobility << 1); - val |= (uint)((uint)this.Damage << 3); - val |= (uint)((uint)this.Smoke << 5); - val |= (uint)((uint)this.Hatch << 9); - val |= (uint)((uint)this.RunningLights << 12); - val |= (uint)((uint)this.Flaming << 15); - val |= (uint)((uint)this.FrozenStatus << 21); - val |= (uint)((uint)this.PowerPlantStatus << 22); - val |= (uint)((uint)this.State << 23); - - return val; - } - - /// - /// Returns a hash code for this instance. - /// - /// - /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - /// - public override int GetHashCode() - { - int hash = 17; - - // Overflow is fine, just wrap - unchecked - { - hash = (hash * 29) + this.PaintScheme.GetHashCode(); - hash = (hash * 29) + this.Mobility.GetHashCode(); - hash = (hash * 29) + this.Damage.GetHashCode(); - hash = (hash * 29) + this.Smoke.GetHashCode(); - hash = (hash * 29) + this.Hatch.GetHashCode(); - hash = (hash * 29) + this.RunningLights.GetHashCode(); - hash = (hash * 29) + this.Flaming.GetHashCode(); - hash = (hash * 29) + this.FrozenStatus.GetHashCode(); - hash = (hash * 29) + this.PowerPlantStatus.GetHashCode(); - hash = (hash * 29) + this.State.GetHashCode(); - } - - return hash; - } - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState.Appearance +{ + /// + /// Enumeration values for SubsurfacePlatformAppearance (es.appear.platform.subsurface, Platforms of the Subsurface Domain, + /// section 4.3.1.4) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public struct SubsurfacePlatformAppearance + { + /// + /// Describes the paint scheme of an entity + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the paint scheme of an entity")] + public enum PaintSchemeValue : uint + { + /// + /// Uniform color + /// + UniformColor = 0, + + /// + /// Camouflage + /// + Camouflage = 1 + } + + /// + /// Describes characteristics of mobility kills + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes characteristics of mobility kills")] + public enum MobilityValue : uint + { + /// + /// No mobility kill + /// + NoMobilityKill = 0, + + /// + /// Mobility kill + /// + MobilityKill = 1 + } + + /// + /// Describes the damaged appearance of an entity + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the damaged appearance of an entity")] + public enum DamageValue : uint + { + /// + /// No damage + /// + NoDamage = 0, + + /// + /// Slight damage + /// + SlightDamage = 1, + + /// + /// Moderate damage + /// + ModerateDamage = 2, + + /// + /// Destroyed + /// + Destroyed = 3 + } + + /// + /// Describes status or location of smoke emanating from an entity + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes status or location of smoke emanating from an entity")] + public enum SmokeValue : uint + { + /// + /// Not smoking + /// + NotSmoking = 0, + + /// + /// Smoke plume rising from the entity + /// + SmokePlumeRisingFromTheEntity = 1, + + /// + /// null + /// + Unknown = 2 + } + + /// + /// Describes the state of the hatch + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the state of the hatch")] + public enum HatchValue : uint + { + /// + /// Not applicable + /// + NotApplicable = 0, + + /// + /// Hatch is closed + /// + HatchIsClosed = 1, + + /// + /// null + /// + Unknown = 2, + + /// + /// Hatch is open + /// + HatchIsOpen = 4, + + /// + /// null + /// + Unknown2 = 5 + } + + /// + /// Describes whether Running Lights are on or off. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes whether Running Lights are on or off.")] + public enum RunningLightsValue : uint + { + /// + /// Off + /// + Off = 0, + + /// + /// On + /// + On = 1 + } + + /// + /// Describes whether flames are rising from an entity + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes whether flames are rising from an entity")] + public enum FlamingValue : uint + { + /// + /// None + /// + None = 0, + + /// + /// Flames present + /// + FlamesPresent = 1 + } + + /// + /// Describes the frozen status of a subsurface platform + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the frozen status of a subsurface platform")] + public enum FrozenStatusValue : uint + { + /// + /// Not frozen + /// + NotFrozen = 0, + + /// + /// Frozen (Frozen entities should not be dead-reckoned, i.e. they should be displayed as fixed at the current location even if nonzero velocity, acceleration or rotation data is received from the frozen entity) + /// + FrozenFrozenEntitiesShouldNotBeDeadReckonedIETheyShouldBeDisplayedAsFixedAtTheCurrentLocationEvenIfNonzeroVelocityAccelerationOrRotationDataIsReceivedFromTheFrozenEntity = 1 + } + + /// + /// Describes the power-plant status of a subsurface platform + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the power-plant status of a subsurface platform")] + public enum PowerPlantStatusValue : uint + { + /// + /// Power plant off + /// + PowerPlantOff = 0, + + /// + /// Power plant on + /// + PowerPlantOn = 1 + } + + /// + /// Describes the state of a subsurface platform + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the state of a subsurface platform")] + public enum StateValue : uint + { + /// + /// Active + /// + Active = 0, + + /// + /// Deactivated + /// + Deactivated = 1 + } + + private SubsurfacePlatformAppearance.PaintSchemeValue paintScheme; + private SubsurfacePlatformAppearance.MobilityValue mobility; + private SubsurfacePlatformAppearance.DamageValue damage; + private SubsurfacePlatformAppearance.SmokeValue smoke; + private SubsurfacePlatformAppearance.HatchValue hatch; + private SubsurfacePlatformAppearance.RunningLightsValue runningLights; + private SubsurfacePlatformAppearance.FlamingValue flaming; + private SubsurfacePlatformAppearance.FrozenStatusValue frozenStatus; + private SubsurfacePlatformAppearance.PowerPlantStatusValue powerPlantStatus; + private SubsurfacePlatformAppearance.StateValue state; + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(SubsurfacePlatformAppearance left, SubsurfacePlatformAppearance right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator ==(SubsurfacePlatformAppearance left, SubsurfacePlatformAppearance right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + // If parameters are null return false (cast to object to prevent recursive loop!) + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The scheme instance. + /// The result of the conversion. + public static explicit operator uint(SubsurfacePlatformAppearance obj) + { + return obj.ToUInt32(); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The uint value. + /// The result of the conversion. + public static explicit operator SubsurfacePlatformAppearance(uint value) + { + return SubsurfacePlatformAppearance.FromUInt32(value); + } + + /// + /// Creates the instance from the byte array. + /// + /// The array which holds the values for the . + /// The starting position within value. + /// The instance, represented by a byte array. + /// if the array is null. + /// if the index is lower than 0 or greater or equal than number of elements in array. + public static SubsurfacePlatformAppearance FromByteArray(byte[] array, int index) + { + if (array == null) + { + throw new ArgumentNullException("array"); + } + + if (index < 0 || + index > array.Length - 1 || + index + 4 > array.Length - 1) + { + throw new IndexOutOfRangeException(); + } + + return FromUInt32(BitConverter.ToUInt32(array, index)); + } + + /// + /// Creates the instance from the uint value. + /// + /// The uint value which represents the instance. + /// The instance, represented by the uint value. + public static SubsurfacePlatformAppearance FromUInt32(uint value) + { + SubsurfacePlatformAppearance ps = new SubsurfacePlatformAppearance(); + + uint mask0 = 0x0001; + byte shift0 = 0; + uint newValue0 = (value & mask0) >> shift0; + ps.PaintScheme = (SubsurfacePlatformAppearance.PaintSchemeValue)newValue0; + + uint mask1 = 0x0002; + byte shift1 = 1; + uint newValue1 = (value & mask1) >> shift1; + ps.Mobility = (SubsurfacePlatformAppearance.MobilityValue)newValue1; + + uint mask3 = 0x0018; + byte shift3 = 3; + uint newValue3 = (value & mask3) >> shift3; + ps.Damage = (SubsurfacePlatformAppearance.DamageValue)newValue3; + + uint mask4 = 0x0060; + byte shift4 = 5; + uint newValue4 = (value & mask4) >> shift4; + ps.Smoke = (SubsurfacePlatformAppearance.SmokeValue)newValue4; + + uint mask6 = 0x0e00; + byte shift6 = 9; + uint newValue6 = (value & mask6) >> shift6; + ps.Hatch = (SubsurfacePlatformAppearance.HatchValue)newValue6; + + uint mask7 = 0x1000; + byte shift7 = 12; + uint newValue7 = (value & mask7) >> shift7; + ps.RunningLights = (SubsurfacePlatformAppearance.RunningLightsValue)newValue7; + + uint mask9 = 0x8000; + byte shift9 = 15; + uint newValue9 = (value & mask9) >> shift9; + ps.Flaming = (SubsurfacePlatformAppearance.FlamingValue)newValue9; + + uint mask11 = 0x200000; + byte shift11 = 21; + uint newValue11 = (value & mask11) >> shift11; + ps.FrozenStatus = (SubsurfacePlatformAppearance.FrozenStatusValue)newValue11; + + uint mask12 = 0x400000; + byte shift12 = 22; + uint newValue12 = (value & mask12) >> shift12; + ps.PowerPlantStatus = (SubsurfacePlatformAppearance.PowerPlantStatusValue)newValue12; + + uint mask13 = 0x800000; + byte shift13 = 23; + uint newValue13 = (value & mask13) >> shift13; + ps.State = (SubsurfacePlatformAppearance.StateValue)newValue13; + + return ps; + } + + /// + /// Gets or sets the paintscheme. + /// + /// The paintscheme. + public SubsurfacePlatformAppearance.PaintSchemeValue PaintScheme + { + get { return this.paintScheme; } + set { this.paintScheme = value; } + } + + /// + /// Gets or sets the mobility. + /// + /// The mobility. + public SubsurfacePlatformAppearance.MobilityValue Mobility + { + get { return this.mobility; } + set { this.mobility = value; } + } + + /// + /// Gets or sets the damage. + /// + /// The damage. + public SubsurfacePlatformAppearance.DamageValue Damage + { + get { return this.damage; } + set { this.damage = value; } + } + + /// + /// Gets or sets the smoke. + /// + /// The smoke. + public SubsurfacePlatformAppearance.SmokeValue Smoke + { + get { return this.smoke; } + set { this.smoke = value; } + } + + /// + /// Gets or sets the hatch. + /// + /// The hatch. + public SubsurfacePlatformAppearance.HatchValue Hatch + { + get { return this.hatch; } + set { this.hatch = value; } + } + + /// + /// Gets or sets the runninglights. + /// + /// The runninglights. + public SubsurfacePlatformAppearance.RunningLightsValue RunningLights + { + get { return this.runningLights; } + set { this.runningLights = value; } + } + + /// + /// Gets or sets the flaming. + /// + /// The flaming. + public SubsurfacePlatformAppearance.FlamingValue Flaming + { + get { return this.flaming; } + set { this.flaming = value; } + } + + /// + /// Gets or sets the frozenstatus. + /// + /// The frozenstatus. + public SubsurfacePlatformAppearance.FrozenStatusValue FrozenStatus + { + get { return this.frozenStatus; } + set { this.frozenStatus = value; } + } + + /// + /// Gets or sets the powerplantstatus. + /// + /// The powerplantstatus. + public SubsurfacePlatformAppearance.PowerPlantStatusValue PowerPlantStatus + { + get { return this.powerPlantStatus; } + set { this.powerPlantStatus = value; } + } + + /// + /// Gets or sets the state. + /// + /// The state. + public SubsurfacePlatformAppearance.StateValue State + { + get { return this.state; } + set { this.state = value; } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (!(obj is SubsurfacePlatformAppearance)) + { + return false; + } + + return this.Equals((SubsurfacePlatformAppearance)obj); + } + + /// + /// Determines whether the specified instance is equal to this instance. + /// + /// The instance to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public bool Equals(SubsurfacePlatformAppearance other) + { + // If parameter is null return false (cast to object to prevent recursive loop!) + if ((object)other == null) + { + return false; + } + + return + this.PaintScheme == other.PaintScheme && + this.Mobility == other.Mobility && + this.Damage == other.Damage && + this.Smoke == other.Smoke && + this.Hatch == other.Hatch && + this.RunningLights == other.RunningLights && + this.Flaming == other.Flaming && + this.FrozenStatus == other.FrozenStatus && + this.PowerPlantStatus == other.PowerPlantStatus && + this.State == other.State; + } + + /// + /// Converts the instance of to the byte array. + /// + /// The byte array representing the current instance. + public byte[] ToByteArray() + { + return BitConverter.GetBytes(this.ToUInt32()); + } + + /// + /// Converts the instance of to the uint value. + /// + /// The uint value representing the current instance. + public uint ToUInt32() + { + uint val = 0; + + val |= (uint)((uint)this.PaintScheme << 0); + val |= (uint)((uint)this.Mobility << 1); + val |= (uint)((uint)this.Damage << 3); + val |= (uint)((uint)this.Smoke << 5); + val |= (uint)((uint)this.Hatch << 9); + val |= (uint)((uint)this.RunningLights << 12); + val |= (uint)((uint)this.Flaming << 15); + val |= (uint)((uint)this.FrozenStatus << 21); + val |= (uint)((uint)this.PowerPlantStatus << 22); + val |= (uint)((uint)this.State << 23); + + return val; + } + + /// + /// Returns a hash code for this instance. + /// + /// + /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + /// + public override int GetHashCode() + { + int hash = 17; + + // Overflow is fine, just wrap + unchecked + { + hash = (hash * 29) + this.PaintScheme.GetHashCode(); + hash = (hash * 29) + this.Mobility.GetHashCode(); + hash = (hash * 29) + this.Damage.GetHashCode(); + hash = (hash * 29) + this.Smoke.GetHashCode(); + hash = (hash * 29) + this.Hatch.GetHashCode(); + hash = (hash * 29) + this.RunningLights.GetHashCode(); + hash = (hash * 29) + this.Flaming.GetHashCode(); + hash = (hash * 29) + this.FrozenStatus.GetHashCode(); + hash = (hash * 29) + this.PowerPlantStatus.GetHashCode(); + hash = (hash * 29) + this.State.GetHashCode(); + } + + return hash; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/SurfacePlatformAppearance.cs b/Libs/CsharpDis6/Enumerations/EntityState.Appearance/SurfacePlatformAppearance.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/SurfacePlatformAppearance.cs rename to Libs/CsharpDis6/Enumerations/EntityState.Appearance/SurfacePlatformAppearance.cs index 7895988..64561d1 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Appearance/SurfacePlatformAppearance.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState.Appearance/SurfacePlatformAppearance.cs @@ -1,713 +1,713 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState.Appearance -{ - /// - /// Enumeration values for SurfacePlatformAppearance (es.appear.platform.surface, Platforms of the Surface Domain, - /// section 4.3.1.3) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public struct SurfacePlatformAppearance - { - /// - /// Describes the paint scheme of an entity - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the paint scheme of an entity")] - public enum PaintSchemeValue : uint - { - /// - /// Uniform color - /// - UniformColor = 0, - - /// - /// Camouflage - /// - Camouflage = 1 - } - - /// - /// Describes characteristics of mobility kills - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes characteristics of mobility kills")] - public enum MobilityValue : uint - { - /// - /// No mobility kill - /// - NoMobilityKill = 0, - - /// - /// Mobility kill - /// - MobilityKill = 1 - } - - /// - /// Describes the damaged appearance of an entity - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the damaged appearance of an entity")] - public enum DamageValue : uint - { - /// - /// No damage - /// - NoDamage = 0, - - /// - /// Slight damage - /// - SlightDamage = 1, - - /// - /// Moderate damage - /// - ModerateDamage = 2, - - /// - /// Destroyed - /// - Destroyed = 3 - } - - /// - /// Describes status or location of smoke emanating from an entity - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes status or location of smoke emanating from an entity")] - public enum SmokeValue : uint - { - /// - /// Not smoking - /// - NotSmoking = 0, - - /// - /// Smoke plume rising from the entity - /// - SmokePlumeRisingFromTheEntity = 1, - - /// - /// Entity is emitting engine smoke - /// - EntityIsEmittingEngineSmoke = 2, - - /// - /// Entity is emitting engine smoke, and smoke plume is rising from the entity - /// - EntityIsEmittingEngineSmokeAndSmokePlumeIsRisingFromTheEntity = 3 - } - - /// - /// Describes the size of the wake trailing effect for the entity. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the size of the wake trailing effect for the entity.")] - public enum TrailingEffectsValue : uint - { - /// - /// None - /// - None = 0, - - /// - /// Small - /// - Small = 1, - - /// - /// Medium - /// - Medium = 2, - - /// - /// Large - /// - Large = 3 - } - - /// - /// Describes whether Running Lights are on or off. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes whether Running Lights are on or off.")] - public enum RunningLightsValue : uint - { - /// - /// Off - /// - Off = 0, - - /// - /// On - /// - On = 1 - } - - /// - /// Describes whether flames are rising from an entity - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes whether flames are rising from an entity")] - public enum FlamingValue : uint - { - /// - /// None - /// - None = 0, - - /// - /// Flames present - /// - FlamesPresent = 1 - } - - /// - /// Describes the frozen status of a Surface platform - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the frozen status of a Surface platform")] - public enum FrozenStatusValue : uint - { - /// - /// Not frozen - /// - NotFrozen = 0, - - /// - /// Frozen (Frozen entities should not be dead-reckoned, i.e. they should be displayed as fixed at the current location even if nonzero velocity, acceleration or rotation data is received from the frozen entity) - /// - FrozenFrozenEntitiesShouldNotBeDeadReckonedIETheyShouldBeDisplayedAsFixedAtTheCurrentLocationEvenIfNonzeroVelocityAccelerationOrRotationDataIsReceivedFromTheFrozenEntity = 1 - } - - /// - /// Describes the power-plant status of platform - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the power-plant status of platform")] - public enum PowerPlantStatusValue : uint - { - /// - /// Power plant off - /// - PowerPlantOff = 0, - - /// - /// Power plant on - /// - PowerPlantOn = 1 - } - - /// - /// Describes the state of a Surface platform - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the state of a Surface platform")] - public enum StateValue : uint - { - /// - /// Active - /// - Active = 0, - - /// - /// Deactivated - /// - Deactivated = 1 - } - - /// - /// Describes whether Spot Lights are on or off. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes whether Spot Lights are on or off.")] - public enum SpotLightsValue : uint - { - /// - /// Off - /// - Off = 0, - - /// - /// On - /// - On = 1 - } - - /// - /// Describes whether Interior Lights are on or off. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes whether Interior Lights are on or off.")] - public enum InteriorLightsValue : uint - { - /// - /// Off - /// - Off = 0, - - /// - /// On - /// - On = 1 - } - - private SurfacePlatformAppearance.PaintSchemeValue paintScheme; - private SurfacePlatformAppearance.MobilityValue mobility; - private SurfacePlatformAppearance.DamageValue damage; - private SurfacePlatformAppearance.SmokeValue smoke; - private SurfacePlatformAppearance.TrailingEffectsValue trailingEffects; - private SurfacePlatformAppearance.RunningLightsValue runningLights; - private SurfacePlatformAppearance.FlamingValue flaming; - private SurfacePlatformAppearance.FrozenStatusValue frozenStatus; - private SurfacePlatformAppearance.PowerPlantStatusValue powerPlantStatus; - private SurfacePlatformAppearance.StateValue state; - private SurfacePlatformAppearance.SpotLightsValue spotLights; - private SurfacePlatformAppearance.InteriorLightsValue interiorLights; - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(SurfacePlatformAppearance left, SurfacePlatformAppearance right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator ==(SurfacePlatformAppearance left, SurfacePlatformAppearance right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - // If parameters are null return false (cast to object to prevent recursive loop!) - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The scheme instance. - /// The result of the conversion. - public static explicit operator uint(SurfacePlatformAppearance obj) - { - return obj.ToUInt32(); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The uint value. - /// The result of the conversion. - public static explicit operator SurfacePlatformAppearance(uint value) - { - return SurfacePlatformAppearance.FromUInt32(value); - } - - /// - /// Creates the instance from the byte array. - /// - /// The array which holds the values for the . - /// The starting position within value. - /// The instance, represented by a byte array. - /// if the array is null. - /// if the index is lower than 0 or greater or equal than number of elements in array. - public static SurfacePlatformAppearance FromByteArray(byte[] array, int index) - { - if (array == null) - { - throw new ArgumentNullException("array"); - } - - if (index < 0 || - index > array.Length - 1 || - index + 4 > array.Length - 1) - { - throw new IndexOutOfRangeException(); - } - - return FromUInt32(BitConverter.ToUInt32(array, index)); - } - - /// - /// Creates the instance from the uint value. - /// - /// The uint value which represents the instance. - /// The instance, represented by the uint value. - public static SurfacePlatformAppearance FromUInt32(uint value) - { - SurfacePlatformAppearance ps = new SurfacePlatformAppearance(); - - uint mask0 = 0x0001; - byte shift0 = 0; - uint newValue0 = (value & mask0) >> shift0; - ps.PaintScheme = (SurfacePlatformAppearance.PaintSchemeValue)newValue0; - - uint mask1 = 0x0002; - byte shift1 = 1; - uint newValue1 = (value & mask1) >> shift1; - ps.Mobility = (SurfacePlatformAppearance.MobilityValue)newValue1; - - uint mask3 = 0x0018; - byte shift3 = 3; - uint newValue3 = (value & mask3) >> shift3; - ps.Damage = (SurfacePlatformAppearance.DamageValue)newValue3; - - uint mask4 = 0x0060; - byte shift4 = 5; - uint newValue4 = (value & mask4) >> shift4; - ps.Smoke = (SurfacePlatformAppearance.SmokeValue)newValue4; - - uint mask5 = 0x0180; - byte shift5 = 7; - uint newValue5 = (value & mask5) >> shift5; - ps.TrailingEffects = (SurfacePlatformAppearance.TrailingEffectsValue)newValue5; - - uint mask7 = 0x1000; - byte shift7 = 12; - uint newValue7 = (value & mask7) >> shift7; - ps.RunningLights = (SurfacePlatformAppearance.RunningLightsValue)newValue7; - - uint mask9 = 0x8000; - byte shift9 = 15; - uint newValue9 = (value & mask9) >> shift9; - ps.Flaming = (SurfacePlatformAppearance.FlamingValue)newValue9; - - uint mask11 = 0x200000; - byte shift11 = 21; - uint newValue11 = (value & mask11) >> shift11; - ps.FrozenStatus = (SurfacePlatformAppearance.FrozenStatusValue)newValue11; - - uint mask12 = 0x400000; - byte shift12 = 22; - uint newValue12 = (value & mask12) >> shift12; - ps.PowerPlantStatus = (SurfacePlatformAppearance.PowerPlantStatusValue)newValue12; - - uint mask13 = 0x800000; - byte shift13 = 23; - uint newValue13 = (value & mask13) >> shift13; - ps.State = (SurfacePlatformAppearance.StateValue)newValue13; - - uint mask15 = 0x10000000; - byte shift15 = 28; - uint newValue15 = (value & mask15) >> shift15; - ps.SpotLights = (SurfacePlatformAppearance.SpotLightsValue)newValue15; - - uint mask16 = 0x20000000; - byte shift16 = 29; - uint newValue16 = (value & mask16) >> shift16; - ps.InteriorLights = (SurfacePlatformAppearance.InteriorLightsValue)newValue16; - - return ps; - } - - /// - /// Gets or sets the paintscheme. - /// - /// The paintscheme. - public SurfacePlatformAppearance.PaintSchemeValue PaintScheme - { - get { return this.paintScheme; } - set { this.paintScheme = value; } - } - - /// - /// Gets or sets the mobility. - /// - /// The mobility. - public SurfacePlatformAppearance.MobilityValue Mobility - { - get { return this.mobility; } - set { this.mobility = value; } - } - - /// - /// Gets or sets the damage. - /// - /// The damage. - public SurfacePlatformAppearance.DamageValue Damage - { - get { return this.damage; } - set { this.damage = value; } - } - - /// - /// Gets or sets the smoke. - /// - /// The smoke. - public SurfacePlatformAppearance.SmokeValue Smoke - { - get { return this.smoke; } - set { this.smoke = value; } - } - - /// - /// Gets or sets the trailingeffects. - /// - /// The trailingeffects. - public SurfacePlatformAppearance.TrailingEffectsValue TrailingEffects - { - get { return this.trailingEffects; } - set { this.trailingEffects = value; } - } - - /// - /// Gets or sets the runninglights. - /// - /// The runninglights. - public SurfacePlatformAppearance.RunningLightsValue RunningLights - { - get { return this.runningLights; } - set { this.runningLights = value; } - } - - /// - /// Gets or sets the flaming. - /// - /// The flaming. - public SurfacePlatformAppearance.FlamingValue Flaming - { - get { return this.flaming; } - set { this.flaming = value; } - } - - /// - /// Gets or sets the frozenstatus. - /// - /// The frozenstatus. - public SurfacePlatformAppearance.FrozenStatusValue FrozenStatus - { - get { return this.frozenStatus; } - set { this.frozenStatus = value; } - } - - /// - /// Gets or sets the powerplantstatus. - /// - /// The powerplantstatus. - public SurfacePlatformAppearance.PowerPlantStatusValue PowerPlantStatus - { - get { return this.powerPlantStatus; } - set { this.powerPlantStatus = value; } - } - - /// - /// Gets or sets the state. - /// - /// The state. - public SurfacePlatformAppearance.StateValue State - { - get { return this.state; } - set { this.state = value; } - } - - /// - /// Gets or sets the spotlights. - /// - /// The spotlights. - public SurfacePlatformAppearance.SpotLightsValue SpotLights - { - get { return this.spotLights; } - set { this.spotLights = value; } - } - - /// - /// Gets or sets the interiorlights. - /// - /// The interiorlights. - public SurfacePlatformAppearance.InteriorLightsValue InteriorLights - { - get { return this.interiorLights; } - set { this.interiorLights = value; } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - if (obj == null) - { - return false; - } - - if (!(obj is SurfacePlatformAppearance)) - { - return false; - } - - return this.Equals((SurfacePlatformAppearance)obj); - } - - /// - /// Determines whether the specified instance is equal to this instance. - /// - /// The instance to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public bool Equals(SurfacePlatformAppearance other) - { - // If parameter is null return false (cast to object to prevent recursive loop!) - if ((object)other == null) - { - return false; - } - - return - this.PaintScheme == other.PaintScheme && - this.Mobility == other.Mobility && - this.Damage == other.Damage && - this.Smoke == other.Smoke && - this.TrailingEffects == other.TrailingEffects && - this.RunningLights == other.RunningLights && - this.Flaming == other.Flaming && - this.FrozenStatus == other.FrozenStatus && - this.PowerPlantStatus == other.PowerPlantStatus && - this.State == other.State && - this.SpotLights == other.SpotLights && - this.InteriorLights == other.InteriorLights; - } - - /// - /// Converts the instance of to the byte array. - /// - /// The byte array representing the current instance. - public byte[] ToByteArray() - { - return BitConverter.GetBytes(this.ToUInt32()); - } - - /// - /// Converts the instance of to the uint value. - /// - /// The uint value representing the current instance. - public uint ToUInt32() - { - uint val = 0; - - val |= (uint)((uint)this.PaintScheme << 0); - val |= (uint)((uint)this.Mobility << 1); - val |= (uint)((uint)this.Damage << 3); - val |= (uint)((uint)this.Smoke << 5); - val |= (uint)((uint)this.TrailingEffects << 7); - val |= (uint)((uint)this.RunningLights << 12); - val |= (uint)((uint)this.Flaming << 15); - val |= (uint)((uint)this.FrozenStatus << 21); - val |= (uint)((uint)this.PowerPlantStatus << 22); - val |= (uint)((uint)this.State << 23); - val |= (uint)((uint)this.SpotLights << 28); - val |= (uint)((uint)this.InteriorLights << 29); - - return val; - } - - /// - /// Returns a hash code for this instance. - /// - /// - /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - /// - public override int GetHashCode() - { - int hash = 17; - - // Overflow is fine, just wrap - unchecked - { - hash = (hash * 29) + this.PaintScheme.GetHashCode(); - hash = (hash * 29) + this.Mobility.GetHashCode(); - hash = (hash * 29) + this.Damage.GetHashCode(); - hash = (hash * 29) + this.Smoke.GetHashCode(); - hash = (hash * 29) + this.TrailingEffects.GetHashCode(); - hash = (hash * 29) + this.RunningLights.GetHashCode(); - hash = (hash * 29) + this.Flaming.GetHashCode(); - hash = (hash * 29) + this.FrozenStatus.GetHashCode(); - hash = (hash * 29) + this.PowerPlantStatus.GetHashCode(); - hash = (hash * 29) + this.State.GetHashCode(); - hash = (hash * 29) + this.SpotLights.GetHashCode(); - hash = (hash * 29) + this.InteriorLights.GetHashCode(); - } - - return hash; - } - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState.Appearance +{ + /// + /// Enumeration values for SurfacePlatformAppearance (es.appear.platform.surface, Platforms of the Surface Domain, + /// section 4.3.1.3) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public struct SurfacePlatformAppearance + { + /// + /// Describes the paint scheme of an entity + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the paint scheme of an entity")] + public enum PaintSchemeValue : uint + { + /// + /// Uniform color + /// + UniformColor = 0, + + /// + /// Camouflage + /// + Camouflage = 1 + } + + /// + /// Describes characteristics of mobility kills + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes characteristics of mobility kills")] + public enum MobilityValue : uint + { + /// + /// No mobility kill + /// + NoMobilityKill = 0, + + /// + /// Mobility kill + /// + MobilityKill = 1 + } + + /// + /// Describes the damaged appearance of an entity + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the damaged appearance of an entity")] + public enum DamageValue : uint + { + /// + /// No damage + /// + NoDamage = 0, + + /// + /// Slight damage + /// + SlightDamage = 1, + + /// + /// Moderate damage + /// + ModerateDamage = 2, + + /// + /// Destroyed + /// + Destroyed = 3 + } + + /// + /// Describes status or location of smoke emanating from an entity + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes status or location of smoke emanating from an entity")] + public enum SmokeValue : uint + { + /// + /// Not smoking + /// + NotSmoking = 0, + + /// + /// Smoke plume rising from the entity + /// + SmokePlumeRisingFromTheEntity = 1, + + /// + /// Entity is emitting engine smoke + /// + EntityIsEmittingEngineSmoke = 2, + + /// + /// Entity is emitting engine smoke, and smoke plume is rising from the entity + /// + EntityIsEmittingEngineSmokeAndSmokePlumeIsRisingFromTheEntity = 3 + } + + /// + /// Describes the size of the wake trailing effect for the entity. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the size of the wake trailing effect for the entity.")] + public enum TrailingEffectsValue : uint + { + /// + /// None + /// + None = 0, + + /// + /// Small + /// + Small = 1, + + /// + /// Medium + /// + Medium = 2, + + /// + /// Large + /// + Large = 3 + } + + /// + /// Describes whether Running Lights are on or off. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes whether Running Lights are on or off.")] + public enum RunningLightsValue : uint + { + /// + /// Off + /// + Off = 0, + + /// + /// On + /// + On = 1 + } + + /// + /// Describes whether flames are rising from an entity + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes whether flames are rising from an entity")] + public enum FlamingValue : uint + { + /// + /// None + /// + None = 0, + + /// + /// Flames present + /// + FlamesPresent = 1 + } + + /// + /// Describes the frozen status of a Surface platform + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the frozen status of a Surface platform")] + public enum FrozenStatusValue : uint + { + /// + /// Not frozen + /// + NotFrozen = 0, + + /// + /// Frozen (Frozen entities should not be dead-reckoned, i.e. they should be displayed as fixed at the current location even if nonzero velocity, acceleration or rotation data is received from the frozen entity) + /// + FrozenFrozenEntitiesShouldNotBeDeadReckonedIETheyShouldBeDisplayedAsFixedAtTheCurrentLocationEvenIfNonzeroVelocityAccelerationOrRotationDataIsReceivedFromTheFrozenEntity = 1 + } + + /// + /// Describes the power-plant status of platform + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the power-plant status of platform")] + public enum PowerPlantStatusValue : uint + { + /// + /// Power plant off + /// + PowerPlantOff = 0, + + /// + /// Power plant on + /// + PowerPlantOn = 1 + } + + /// + /// Describes the state of a Surface platform + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the state of a Surface platform")] + public enum StateValue : uint + { + /// + /// Active + /// + Active = 0, + + /// + /// Deactivated + /// + Deactivated = 1 + } + + /// + /// Describes whether Spot Lights are on or off. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes whether Spot Lights are on or off.")] + public enum SpotLightsValue : uint + { + /// + /// Off + /// + Off = 0, + + /// + /// On + /// + On = 1 + } + + /// + /// Describes whether Interior Lights are on or off. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes whether Interior Lights are on or off.")] + public enum InteriorLightsValue : uint + { + /// + /// Off + /// + Off = 0, + + /// + /// On + /// + On = 1 + } + + private SurfacePlatformAppearance.PaintSchemeValue paintScheme; + private SurfacePlatformAppearance.MobilityValue mobility; + private SurfacePlatformAppearance.DamageValue damage; + private SurfacePlatformAppearance.SmokeValue smoke; + private SurfacePlatformAppearance.TrailingEffectsValue trailingEffects; + private SurfacePlatformAppearance.RunningLightsValue runningLights; + private SurfacePlatformAppearance.FlamingValue flaming; + private SurfacePlatformAppearance.FrozenStatusValue frozenStatus; + private SurfacePlatformAppearance.PowerPlantStatusValue powerPlantStatus; + private SurfacePlatformAppearance.StateValue state; + private SurfacePlatformAppearance.SpotLightsValue spotLights; + private SurfacePlatformAppearance.InteriorLightsValue interiorLights; + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(SurfacePlatformAppearance left, SurfacePlatformAppearance right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator ==(SurfacePlatformAppearance left, SurfacePlatformAppearance right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + // If parameters are null return false (cast to object to prevent recursive loop!) + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The scheme instance. + /// The result of the conversion. + public static explicit operator uint(SurfacePlatformAppearance obj) + { + return obj.ToUInt32(); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The uint value. + /// The result of the conversion. + public static explicit operator SurfacePlatformAppearance(uint value) + { + return SurfacePlatformAppearance.FromUInt32(value); + } + + /// + /// Creates the instance from the byte array. + /// + /// The array which holds the values for the . + /// The starting position within value. + /// The instance, represented by a byte array. + /// if the array is null. + /// if the index is lower than 0 or greater or equal than number of elements in array. + public static SurfacePlatformAppearance FromByteArray(byte[] array, int index) + { + if (array == null) + { + throw new ArgumentNullException("array"); + } + + if (index < 0 || + index > array.Length - 1 || + index + 4 > array.Length - 1) + { + throw new IndexOutOfRangeException(); + } + + return FromUInt32(BitConverter.ToUInt32(array, index)); + } + + /// + /// Creates the instance from the uint value. + /// + /// The uint value which represents the instance. + /// The instance, represented by the uint value. + public static SurfacePlatformAppearance FromUInt32(uint value) + { + SurfacePlatformAppearance ps = new SurfacePlatformAppearance(); + + uint mask0 = 0x0001; + byte shift0 = 0; + uint newValue0 = (value & mask0) >> shift0; + ps.PaintScheme = (SurfacePlatformAppearance.PaintSchemeValue)newValue0; + + uint mask1 = 0x0002; + byte shift1 = 1; + uint newValue1 = (value & mask1) >> shift1; + ps.Mobility = (SurfacePlatformAppearance.MobilityValue)newValue1; + + uint mask3 = 0x0018; + byte shift3 = 3; + uint newValue3 = (value & mask3) >> shift3; + ps.Damage = (SurfacePlatformAppearance.DamageValue)newValue3; + + uint mask4 = 0x0060; + byte shift4 = 5; + uint newValue4 = (value & mask4) >> shift4; + ps.Smoke = (SurfacePlatformAppearance.SmokeValue)newValue4; + + uint mask5 = 0x0180; + byte shift5 = 7; + uint newValue5 = (value & mask5) >> shift5; + ps.TrailingEffects = (SurfacePlatformAppearance.TrailingEffectsValue)newValue5; + + uint mask7 = 0x1000; + byte shift7 = 12; + uint newValue7 = (value & mask7) >> shift7; + ps.RunningLights = (SurfacePlatformAppearance.RunningLightsValue)newValue7; + + uint mask9 = 0x8000; + byte shift9 = 15; + uint newValue9 = (value & mask9) >> shift9; + ps.Flaming = (SurfacePlatformAppearance.FlamingValue)newValue9; + + uint mask11 = 0x200000; + byte shift11 = 21; + uint newValue11 = (value & mask11) >> shift11; + ps.FrozenStatus = (SurfacePlatformAppearance.FrozenStatusValue)newValue11; + + uint mask12 = 0x400000; + byte shift12 = 22; + uint newValue12 = (value & mask12) >> shift12; + ps.PowerPlantStatus = (SurfacePlatformAppearance.PowerPlantStatusValue)newValue12; + + uint mask13 = 0x800000; + byte shift13 = 23; + uint newValue13 = (value & mask13) >> shift13; + ps.State = (SurfacePlatformAppearance.StateValue)newValue13; + + uint mask15 = 0x10000000; + byte shift15 = 28; + uint newValue15 = (value & mask15) >> shift15; + ps.SpotLights = (SurfacePlatformAppearance.SpotLightsValue)newValue15; + + uint mask16 = 0x20000000; + byte shift16 = 29; + uint newValue16 = (value & mask16) >> shift16; + ps.InteriorLights = (SurfacePlatformAppearance.InteriorLightsValue)newValue16; + + return ps; + } + + /// + /// Gets or sets the paintscheme. + /// + /// The paintscheme. + public SurfacePlatformAppearance.PaintSchemeValue PaintScheme + { + get { return this.paintScheme; } + set { this.paintScheme = value; } + } + + /// + /// Gets or sets the mobility. + /// + /// The mobility. + public SurfacePlatformAppearance.MobilityValue Mobility + { + get { return this.mobility; } + set { this.mobility = value; } + } + + /// + /// Gets or sets the damage. + /// + /// The damage. + public SurfacePlatformAppearance.DamageValue Damage + { + get { return this.damage; } + set { this.damage = value; } + } + + /// + /// Gets or sets the smoke. + /// + /// The smoke. + public SurfacePlatformAppearance.SmokeValue Smoke + { + get { return this.smoke; } + set { this.smoke = value; } + } + + /// + /// Gets or sets the trailingeffects. + /// + /// The trailingeffects. + public SurfacePlatformAppearance.TrailingEffectsValue TrailingEffects + { + get { return this.trailingEffects; } + set { this.trailingEffects = value; } + } + + /// + /// Gets or sets the runninglights. + /// + /// The runninglights. + public SurfacePlatformAppearance.RunningLightsValue RunningLights + { + get { return this.runningLights; } + set { this.runningLights = value; } + } + + /// + /// Gets or sets the flaming. + /// + /// The flaming. + public SurfacePlatformAppearance.FlamingValue Flaming + { + get { return this.flaming; } + set { this.flaming = value; } + } + + /// + /// Gets or sets the frozenstatus. + /// + /// The frozenstatus. + public SurfacePlatformAppearance.FrozenStatusValue FrozenStatus + { + get { return this.frozenStatus; } + set { this.frozenStatus = value; } + } + + /// + /// Gets or sets the powerplantstatus. + /// + /// The powerplantstatus. + public SurfacePlatformAppearance.PowerPlantStatusValue PowerPlantStatus + { + get { return this.powerPlantStatus; } + set { this.powerPlantStatus = value; } + } + + /// + /// Gets or sets the state. + /// + /// The state. + public SurfacePlatformAppearance.StateValue State + { + get { return this.state; } + set { this.state = value; } + } + + /// + /// Gets or sets the spotlights. + /// + /// The spotlights. + public SurfacePlatformAppearance.SpotLightsValue SpotLights + { + get { return this.spotLights; } + set { this.spotLights = value; } + } + + /// + /// Gets or sets the interiorlights. + /// + /// The interiorlights. + public SurfacePlatformAppearance.InteriorLightsValue InteriorLights + { + get { return this.interiorLights; } + set { this.interiorLights = value; } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (!(obj is SurfacePlatformAppearance)) + { + return false; + } + + return this.Equals((SurfacePlatformAppearance)obj); + } + + /// + /// Determines whether the specified instance is equal to this instance. + /// + /// The instance to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public bool Equals(SurfacePlatformAppearance other) + { + // If parameter is null return false (cast to object to prevent recursive loop!) + if ((object)other == null) + { + return false; + } + + return + this.PaintScheme == other.PaintScheme && + this.Mobility == other.Mobility && + this.Damage == other.Damage && + this.Smoke == other.Smoke && + this.TrailingEffects == other.TrailingEffects && + this.RunningLights == other.RunningLights && + this.Flaming == other.Flaming && + this.FrozenStatus == other.FrozenStatus && + this.PowerPlantStatus == other.PowerPlantStatus && + this.State == other.State && + this.SpotLights == other.SpotLights && + this.InteriorLights == other.InteriorLights; + } + + /// + /// Converts the instance of to the byte array. + /// + /// The byte array representing the current instance. + public byte[] ToByteArray() + { + return BitConverter.GetBytes(this.ToUInt32()); + } + + /// + /// Converts the instance of to the uint value. + /// + /// The uint value representing the current instance. + public uint ToUInt32() + { + uint val = 0; + + val |= (uint)((uint)this.PaintScheme << 0); + val |= (uint)((uint)this.Mobility << 1); + val |= (uint)((uint)this.Damage << 3); + val |= (uint)((uint)this.Smoke << 5); + val |= (uint)((uint)this.TrailingEffects << 7); + val |= (uint)((uint)this.RunningLights << 12); + val |= (uint)((uint)this.Flaming << 15); + val |= (uint)((uint)this.FrozenStatus << 21); + val |= (uint)((uint)this.PowerPlantStatus << 22); + val |= (uint)((uint)this.State << 23); + val |= (uint)((uint)this.SpotLights << 28); + val |= (uint)((uint)this.InteriorLights << 29); + + return val; + } + + /// + /// Returns a hash code for this instance. + /// + /// + /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + /// + public override int GetHashCode() + { + int hash = 17; + + // Overflow is fine, just wrap + unchecked + { + hash = (hash * 29) + this.PaintScheme.GetHashCode(); + hash = (hash * 29) + this.Mobility.GetHashCode(); + hash = (hash * 29) + this.Damage.GetHashCode(); + hash = (hash * 29) + this.Smoke.GetHashCode(); + hash = (hash * 29) + this.TrailingEffects.GetHashCode(); + hash = (hash * 29) + this.RunningLights.GetHashCode(); + hash = (hash * 29) + this.Flaming.GetHashCode(); + hash = (hash * 29) + this.FrozenStatus.GetHashCode(); + hash = (hash * 29) + this.PowerPlantStatus.GetHashCode(); + hash = (hash * 29) + this.State.GetHashCode(); + hash = (hash * 29) + this.SpotLights.GetHashCode(); + hash = (hash * 29) + this.InteriorLights.GetHashCode(); + } + + return hash; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingCompany.cs b/Libs/CsharpDis6/Enumerations/EntityState.Marking/ArmyMarkingCompany.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingCompany.cs rename to Libs/CsharpDis6/Enumerations/EntityState.Marking/ArmyMarkingCompany.cs index c3d21a5..46b6059 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingCompany.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState.Marking/ArmyMarkingCompany.cs @@ -1,199 +1,199 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState.Marking -{ - /// - /// Enumeration values for ArmyMarkingCompany (es.markingtext.cctt.company, Byte 4 - Company, Battery, Troop, - /// section 4.5.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum ArmyMarkingCompany : byte - { - /// - /// Value A - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value A")] - A = 66, - - /// - /// Value B - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value B")] - B = 67, - - /// - /// Value C - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value C")] - C = 68, - - /// - /// Value D - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value D")] - D = 69, - - /// - /// Value E - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value E")] - E = 70, - - /// - /// Value F - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value F")] - F = 71, - - /// - /// Value G - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value G")] - G = 72, - - /// - /// Value H - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value H")] - H = 73, - - /// - /// Value I - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value I")] - I = 74, - - /// - /// Value J - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value J")] - J = 75, - - /// - /// Value K - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value K")] - K = 76, - - /// - /// Value L - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value L")] - L = 77, - - /// - /// HQ. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HQ.")] - HQ = 113, - - /// - /// HHB. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HHB.")] - HHB = 98, - - /// - /// HHC. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HHC.")] - HHC = 99, - - /// - /// HHD. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HHD.")] - HHD = 100, - - /// - /// HHT. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HHT.")] - HHT = 116 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState.Marking +{ + /// + /// Enumeration values for ArmyMarkingCompany (es.markingtext.cctt.company, Byte 4 - Company, Battery, Troop, + /// section 4.5.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum ArmyMarkingCompany : byte + { + /// + /// Value A + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value A")] + A = 66, + + /// + /// Value B + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value B")] + B = 67, + + /// + /// Value C + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value C")] + C = 68, + + /// + /// Value D + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value D")] + D = 69, + + /// + /// Value E + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value E")] + E = 70, + + /// + /// Value F + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value F")] + F = 71, + + /// + /// Value G + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value G")] + G = 72, + + /// + /// Value H + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value H")] + H = 73, + + /// + /// Value I + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value I")] + I = 74, + + /// + /// Value J + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value J")] + J = 75, + + /// + /// Value K + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value K")] + K = 76, + + /// + /// Value L + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value L")] + L = 77, + + /// + /// HQ. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HQ.")] + HQ = 113, + + /// + /// HHB. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HHB.")] + HHB = 98, + + /// + /// HHC. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HHC.")] + HHC = 99, + + /// + /// HHD. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HHD.")] + HHD = 100, + + /// + /// HHT. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HHT.")] + HHT = 116 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingDivisionCorpsDesignation.cs b/Libs/CsharpDis6/Enumerations/EntityState.Marking/ArmyMarkingDivisionCorpsDesignation.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingDivisionCorpsDesignation.cs rename to Libs/CsharpDis6/Enumerations/EntityState.Marking/ArmyMarkingDivisionCorpsDesignation.cs index 003faf8..95cc3f0 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingDivisionCorpsDesignation.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState.Marking/ArmyMarkingDivisionCorpsDesignation.cs @@ -1,69 +1,69 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState.Marking -{ - /// - /// Enumeration values for ArmyMarkingDivisionCorpsDesignation (es.markingtext.cctt.div, Byte 2 - Division /Corps designation, - /// section 4.5.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum ArmyMarkingDivisionCorpsDesignation : byte - { - /// - /// NA case. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("NA case.")] - NACase = 0, - - /// - /// 1st Cavalry. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("1st Cavalry.")] - _1stCavalry = 1, - - /// - /// 1st Infantry. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("1st Infantry.")] - _1stInfantry = 2, - - /// - /// Corps Assets. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Corps Assets.")] - CorpsAssets = 3 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState.Marking +{ + /// + /// Enumeration values for ArmyMarkingDivisionCorpsDesignation (es.markingtext.cctt.div, Byte 2 - Division /Corps designation, + /// section 4.5.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum ArmyMarkingDivisionCorpsDesignation : byte + { + /// + /// NA case. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("NA case.")] + NACase = 0, + + /// + /// 1st Cavalry. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("1st Cavalry.")] + _1stCavalry = 1, + + /// + /// 1st Infantry. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("1st Infantry.")] + _1stInfantry = 2, + + /// + /// Corps Assets. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Corps Assets.")] + CorpsAssets = 3 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingHighLevelUnitFor1stCavalry.cs b/Libs/CsharpDis6/Enumerations/EntityState.Marking/ArmyMarkingHighLevelUnitFor1stCavalry.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingHighLevelUnitFor1stCavalry.cs rename to Libs/CsharpDis6/Enumerations/EntityState.Marking/ArmyMarkingHighLevelUnitFor1stCavalry.cs index 719db5c..f3f8952 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingHighLevelUnitFor1stCavalry.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState.Marking/ArmyMarkingHighLevelUnitFor1stCavalry.cs @@ -1,419 +1,419 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState.Marking -{ - /// - /// Enumeration values for ArmyMarkingHighLevelUnitFor1stCavalry (es.markingtext.cctt.1cavunit, Byte 3 - High Level Unit (Byte 2 = 1 - 1st Cavalry), - /// section 4.5.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum ArmyMarkingHighLevelUnitFor1stCavalry : byte - { - /// - /// 1-7CAV. unit: 1-7 Cavalry. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("1-7CAV. unit: 1-7 Cavalry.")] - _17CAVUnit17Cavalry = 1, - - /// - /// 2-5CAV. unit: 2-5 Cavalry. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("2-5CAV. unit: 2-5 Cavalry.")] - _25CAVUnit25Cavalry = 2, - - /// - /// 2-8CAV. unit: 2-8 Cavalry. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("2-8CAV. unit: 2-8 Cavalry.")] - _28CAVUnit28Cavalry = 3, - - /// - /// 3-32AR. unit: 3-32 Armor Reg. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("3-32AR. unit: 3-32 Armor Reg.")] - _332ARUnit332ArmorReg = 4, - - /// - /// 1-5CAV. unit: 1-5 Cavalry. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("1-5CAV. unit: 1-5 Cavalry.")] - _15CAVUnit15Cavalry = 5, - - /// - /// 1-8CAV. unit: 1-8 Cavalry. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("1-8CAV. unit: 1-8 Cavalry.")] - _18CAVUnit18Cavalry = 6, - - /// - /// 1-32AR. unit: 1-32 Armor Reg. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("1-32AR. unit: 1-32 Armor Reg.")] - _132ARUnit132ArmorReg = 7, - - /// - /// 1-67AR. unit: 1-67 Armor Reg. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("1-67AR. unit: 1-67 Armor Reg.")] - _167ARUnit167ArmorReg = 8, - - /// - /// 3-67AR. unit: 3-67 Armor Reg. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("3-67AR. unit: 3-67 Armor Reg.")] - _367ARUnit367ArmorReg = 9, - - /// - /// 3-41INF. unit: 3-41 Infantry. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("3-41INF. unit: 3-41 Infantry.")] - _341INFUnit341Infantry = 10, - - /// - /// 1-82F. unit: 1-82 Field Art. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("1-82F. unit: 1-82 Field Art.")] - _182FUnit182FieldArt = 20, - - /// - /// 3-82F. unit: 3-82 Field Art. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("3-82F. unit: 3-82 Field Art.")] - _382FUnit382FieldArt = 21, - - /// - /// 1-3F. unit: 1-3 Field Art. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("1-3F. unit: 1-3 Field Art.")] - _13FUnit13FieldArt = 22, - - /// - /// 21F. unit: 21 Field Art. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("21F. unit: 21 Field Art.")] - _21FUnit21FieldArt = 23, - - /// - /// 92F. unit: 92 Field Art. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("92F. unit: 92 Field Art.")] - _92FUnit92FieldArt = 24, - - /// - /// 8E. unit: 8 Engineer. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("8E. unit: 8 Engineer.")] - _8EUnit8Engineer = 30, - - /// - /// 20E. unit: 20 Engineer. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("20E. unit: 20 Engineer.")] - _20EUnit20Engineer = 31, - - /// - /// 91E. unit: 91 Engineer. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("91E. unit: 91 Engineer.")] - _91EUnit91Engineer = 32, - - /// - /// 1-227AVN. unit: 1-227 Aviation. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("1-227AVN. unit: 1-227 Aviation.")] - _1227AVNUnit1227Aviation = 34, - - /// - /// 4-227AVN. unit: 4-227 Aviation. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("4-227AVN. unit: 4-227 Aviation.")] - _4227AVNUnit4227Aviation = 35, - - /// - /// F-227AVN. unit: F-227 Aviation. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("F-227AVN. unit: F-227 Aviation.")] - F227AVNUnitF227Aviation = 36, - - /// - /// 4-5ADA. unit: 4-5 Air Def Art. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("4-5ADA. unit: 4-5 Air Def Art.")] - _45ADAUnit45AirDefArt = 37, - - /// - /// 15MSB. unit: 15 Main Supp. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("15MSB. unit: 15 Main Supp.")] - _15MSBUnit15MainSupp = 40, - - /// - /// 27FSB. unit: 27 Forward Supp. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("27FSB. unit: 27 Forward Supp.")] - _27FSBUnit27ForwardSupp = 41, - - /// - /// 115FSB. unit: 115 Forward Supp. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("115FSB. unit: 115 Forward Supp.")] - _115FSBUnit115ForwardSupp = 42, - - /// - /// 215FSB. unit: 215 Forward Supp. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("215FSB. unit: 215 Forward Supp.")] - _215FSBUnit215ForwardSupp = 43, - - /// - /// 312MI. unit: 312 Mil Intell.. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("312MI. unit: 312 Mil Intell..")] - _312MIUnit312MilIntell = 45, - - /// - /// 13S. unit: 13 Signal. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("13S. unit: 13 Signal.")] - _13SUnit13Signal = 46, - - /// - /// 545MP. unit: 545 Mil Police. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("545MP. unit: 545 Mil Police.")] - _545MPUnit545MilPolice = 47, - - /// - /// 68CML. unit: 68 Chemical. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("68CML. unit: 68 Chemical.")] - _68CMLUnit68Chemical = 48, - - /// - /// 1CAV. unit: HHC 1st Cavalry. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("1CAV. unit: HHC 1st Cavalry.")] - _1CAVUnitHHC1stCavalry = 50, - - /// - /// HHC 1 BDE - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HHC 1 BDE")] - HHC_1_BDE = 51, - - /// - /// HHC 2 BDE - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HHC 2 BDE")] - HHC_2_BDE = 52, - - /// - /// HHC 3 BDE - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HHC 3 BDE")] - HHC_3_BDE = 53, - - /// - /// HHC 4 BDE - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HHC 4 BDE")] - HHC_4_BDE = 54, - - /// - /// AVNBDE. unit: HHC AVN BDE. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AVNBDE. unit: HHC AVN BDE.")] - AVNBDEUnitHHCAVNBDE = 55, - - /// - /// E. unit: HHD EN BDE. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("E. unit: HHD EN BDE.")] - EUnitHHDENBDE = 56, - - /// - /// F. unit: HHB DIVARTY. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("F. unit: HHB DIVARTY.")] - FUnitHHBDIVARTY = 57, - - /// - /// DSC. unit: DISCOM. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DSC. unit: DISCOM.")] - DSCUnitDISCOM = 58 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState.Marking +{ + /// + /// Enumeration values for ArmyMarkingHighLevelUnitFor1stCavalry (es.markingtext.cctt.1cavunit, Byte 3 - High Level Unit (Byte 2 = 1 - 1st Cavalry), + /// section 4.5.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum ArmyMarkingHighLevelUnitFor1stCavalry : byte + { + /// + /// 1-7CAV. unit: 1-7 Cavalry. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("1-7CAV. unit: 1-7 Cavalry.")] + _17CAVUnit17Cavalry = 1, + + /// + /// 2-5CAV. unit: 2-5 Cavalry. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("2-5CAV. unit: 2-5 Cavalry.")] + _25CAVUnit25Cavalry = 2, + + /// + /// 2-8CAV. unit: 2-8 Cavalry. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("2-8CAV. unit: 2-8 Cavalry.")] + _28CAVUnit28Cavalry = 3, + + /// + /// 3-32AR. unit: 3-32 Armor Reg. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("3-32AR. unit: 3-32 Armor Reg.")] + _332ARUnit332ArmorReg = 4, + + /// + /// 1-5CAV. unit: 1-5 Cavalry. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("1-5CAV. unit: 1-5 Cavalry.")] + _15CAVUnit15Cavalry = 5, + + /// + /// 1-8CAV. unit: 1-8 Cavalry. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("1-8CAV. unit: 1-8 Cavalry.")] + _18CAVUnit18Cavalry = 6, + + /// + /// 1-32AR. unit: 1-32 Armor Reg. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("1-32AR. unit: 1-32 Armor Reg.")] + _132ARUnit132ArmorReg = 7, + + /// + /// 1-67AR. unit: 1-67 Armor Reg. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("1-67AR. unit: 1-67 Armor Reg.")] + _167ARUnit167ArmorReg = 8, + + /// + /// 3-67AR. unit: 3-67 Armor Reg. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("3-67AR. unit: 3-67 Armor Reg.")] + _367ARUnit367ArmorReg = 9, + + /// + /// 3-41INF. unit: 3-41 Infantry. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("3-41INF. unit: 3-41 Infantry.")] + _341INFUnit341Infantry = 10, + + /// + /// 1-82F. unit: 1-82 Field Art. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("1-82F. unit: 1-82 Field Art.")] + _182FUnit182FieldArt = 20, + + /// + /// 3-82F. unit: 3-82 Field Art. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("3-82F. unit: 3-82 Field Art.")] + _382FUnit382FieldArt = 21, + + /// + /// 1-3F. unit: 1-3 Field Art. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("1-3F. unit: 1-3 Field Art.")] + _13FUnit13FieldArt = 22, + + /// + /// 21F. unit: 21 Field Art. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("21F. unit: 21 Field Art.")] + _21FUnit21FieldArt = 23, + + /// + /// 92F. unit: 92 Field Art. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("92F. unit: 92 Field Art.")] + _92FUnit92FieldArt = 24, + + /// + /// 8E. unit: 8 Engineer. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("8E. unit: 8 Engineer.")] + _8EUnit8Engineer = 30, + + /// + /// 20E. unit: 20 Engineer. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("20E. unit: 20 Engineer.")] + _20EUnit20Engineer = 31, + + /// + /// 91E. unit: 91 Engineer. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("91E. unit: 91 Engineer.")] + _91EUnit91Engineer = 32, + + /// + /// 1-227AVN. unit: 1-227 Aviation. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("1-227AVN. unit: 1-227 Aviation.")] + _1227AVNUnit1227Aviation = 34, + + /// + /// 4-227AVN. unit: 4-227 Aviation. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("4-227AVN. unit: 4-227 Aviation.")] + _4227AVNUnit4227Aviation = 35, + + /// + /// F-227AVN. unit: F-227 Aviation. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("F-227AVN. unit: F-227 Aviation.")] + F227AVNUnitF227Aviation = 36, + + /// + /// 4-5ADA. unit: 4-5 Air Def Art. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("4-5ADA. unit: 4-5 Air Def Art.")] + _45ADAUnit45AirDefArt = 37, + + /// + /// 15MSB. unit: 15 Main Supp. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("15MSB. unit: 15 Main Supp.")] + _15MSBUnit15MainSupp = 40, + + /// + /// 27FSB. unit: 27 Forward Supp. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("27FSB. unit: 27 Forward Supp.")] + _27FSBUnit27ForwardSupp = 41, + + /// + /// 115FSB. unit: 115 Forward Supp. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("115FSB. unit: 115 Forward Supp.")] + _115FSBUnit115ForwardSupp = 42, + + /// + /// 215FSB. unit: 215 Forward Supp. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("215FSB. unit: 215 Forward Supp.")] + _215FSBUnit215ForwardSupp = 43, + + /// + /// 312MI. unit: 312 Mil Intell.. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("312MI. unit: 312 Mil Intell..")] + _312MIUnit312MilIntell = 45, + + /// + /// 13S. unit: 13 Signal. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("13S. unit: 13 Signal.")] + _13SUnit13Signal = 46, + + /// + /// 545MP. unit: 545 Mil Police. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("545MP. unit: 545 Mil Police.")] + _545MPUnit545MilPolice = 47, + + /// + /// 68CML. unit: 68 Chemical. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("68CML. unit: 68 Chemical.")] + _68CMLUnit68Chemical = 48, + + /// + /// 1CAV. unit: HHC 1st Cavalry. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("1CAV. unit: HHC 1st Cavalry.")] + _1CAVUnitHHC1stCavalry = 50, + + /// + /// HHC 1 BDE + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HHC 1 BDE")] + HHC_1_BDE = 51, + + /// + /// HHC 2 BDE + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HHC 2 BDE")] + HHC_2_BDE = 52, + + /// + /// HHC 3 BDE + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HHC 3 BDE")] + HHC_3_BDE = 53, + + /// + /// HHC 4 BDE + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HHC 4 BDE")] + HHC_4_BDE = 54, + + /// + /// AVNBDE. unit: HHC AVN BDE. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AVNBDE. unit: HHC AVN BDE.")] + AVNBDEUnitHHCAVNBDE = 55, + + /// + /// E. unit: HHD EN BDE. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("E. unit: HHD EN BDE.")] + EUnitHHDENBDE = 56, + + /// + /// F. unit: HHB DIVARTY. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("F. unit: HHB DIVARTY.")] + FUnitHHBDIVARTY = 57, + + /// + /// DSC. unit: DISCOM. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DSC. unit: DISCOM.")] + DSCUnitDISCOM = 58 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingHighLevelUnitFor1stInfantry.cs b/Libs/CsharpDis6/Enumerations/EntityState.Marking/ArmyMarkingHighLevelUnitFor1stInfantry.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingHighLevelUnitFor1stInfantry.cs rename to Libs/CsharpDis6/Enumerations/EntityState.Marking/ArmyMarkingHighLevelUnitFor1stInfantry.cs index f92b69d..712fee5 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingHighLevelUnitFor1stInfantry.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState.Marking/ArmyMarkingHighLevelUnitFor1stInfantry.cs @@ -1,409 +1,409 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState.Marking -{ - /// - /// Enumeration values for ArmyMarkingHighLevelUnitFor1stInfantry (es.markingtext.cctt.1infunit, Byte 3 - High Level Unit (Byte 2 = 2 - 1st Infantry), - /// section 4.5.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum ArmyMarkingHighLevelUnitFor1stInfantry : byte - { - /// - /// 1-16INF. unit: 1-16 Infantry. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("1-16INF. unit: 1-16 Infantry.")] - _116INFUnit116Infantry = 1, - - /// - /// 2-16INF. unit: 2-16 Infantry. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("2-16INF. unit: 2-16 Infantry.")] - _216INFUnit216Infantry = 2, - - /// - /// 1-34AR. unit: 1-34 Armor. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("1-34AR. unit: 1-34 Armor.")] - _134ARUnit134Armor = 3, - - /// - /// 2-34AR. unit: 2-34 Armor. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("2-34AR. unit: 2-34 Armor.")] - _234ARUnit234Armor = 4, - - /// - /// 3-37AR. unit: 3-37 Armor. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("3-37AR. unit: 3-37 Armor.")] - _337ARUnit337Armor = 5, - - /// - /// 4-37AR. unit: 4-37 Armor. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("4-37AR. unit: 4-37 Armor.")] - _437ARUnit437Armor = 6, - - /// - /// 1-118INF. unit: 1-118 Infantry. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("1-118INF. unit: 1-118 Infantry.")] - _1118INFUnit1118Infantry = 7, - - /// - /// 4-118INF. unit: 4-118 Infantry. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("4-118INF. unit: 4-118 Infantry.")] - _4118INFUnit4118Infantry = 8, - - /// - /// 2-265AR. unit: 2-263 Armor. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("2-265AR. unit: 2-263 Armor.")] - _2265ARUnit2263Armor = 9, - - /// - /// 2-136IF. unit: 2-136 Infantry. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("2-136IF. unit: 2-136 Infantry.")] - _2136IFUnit2136Infantry = 10, - - /// - /// 1-5F. unit: 1-5 Field Art. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("1-5F. unit: 1-5 Field Art.")] - _15FUnit15FieldArt = 20, - - /// - /// 4-5F. unit: 4-5 Field Art. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("4-5F. unit: 4-5 Field Art.")] - _45FUnit45FieldArt = 21, - - /// - /// 1-178F. unit: 1-178 Field Art. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("1-178F. unit: 1-178 Field Art.")] - _1178FUnit1178FieldArt = 22, - - /// - /// 6F. unit: B/6 Field Art. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("6F. unit: B/6 Field Art.")] - _6FUnitB6FieldArt = 23, - - /// - /// 25F. unit: D/25 Field Art. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("25F. unit: D/25 Field Art.")] - _25FUnitD25FieldArt = 24, - - /// - /// 1E. unit: 1 Engineer. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("1E. unit: 1 Engineer.")] - _1EUnit1Engineer = 30, - - /// - /// 70E. unit: 70 Engineer. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("70E. unit: 70 Engineer.")] - _70EUnit70Engineer = 31, - - /// - /// 4-1AVN. unit: 4-1 Aviation. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("4-1AVN. unit: 4-1 Aviation.")] - _41AVNUnit41Aviation = 32, - - /// - /// 1-1AVN. unit: 1-1 Aviation. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("1-1AVN. unit: 1-1 Aviation.")] - _11AVNUnit11Aviation = 33, - - /// - /// 2-3ADA. unit: 2-3 Air Def Art. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("2-3ADA. unit: 2-3 Air Def Art.")] - _23ADAUnit23AirDefArt = 34, - - /// - /// 1-4CAV. unit: 1-4 Cavalry. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("1-4CAV. unit: 1-4 Cavalry.")] - _14CAVUnit14Cavalry = 35, - - /// - /// 701MSB. unit: 701 Main Supp. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("701MSB. unit: 701 Main Supp.")] - _701MSBUnit701MainSupp = 40, - - /// - /// 101FSB. unit: 101 Forward Supp. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("101FSB. unit: 101 Forward Supp.")] - _101FSBUnit101ForwardSupp = 41, - - /// - /// 201FSB. unit: 201 Forward Supp. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("201FSB. unit: 201 Forward Supp.")] - _201FSBUnit201ForwardSupp = 42, - - /// - /// 163FSB. unit: 163 Forward Supp. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("163FSB. unit: 163 Forward Supp.")] - _163FSBUnit163ForwardSupp = 43, - - /// - /// 101MI. unit: 101 Mil Intell. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("101MI. unit: 101 Mil Intell.")] - _101MIUnit101MilIntell = 45, - - /// - /// 121S. unit: 121 Signal. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("121S. unit: 121 Signal.")] - _121SUnit121Signal = 46, - - /// - /// 1MP. unit: 1st Mil Police. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("1MP. unit: 1st Mil Police.")] - _1MPUnit1stMilPolice = 47, - - /// - /// 12CML. unit: 12 Chemical. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("12CML. unit: 12 Chemical.")] - _12CMLUnit12Chemical = 48, - - /// - /// 1INF. unit: HHC 1st Infantry. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("1INF. unit: HHC 1st Infantry.")] - _1INFUnitHHC1stInfantry = 50, - - /// - /// HHC 1 BDE - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HHC 1 BDE")] - HHC_1_BDE = 51, - - /// - /// HHC 2 BDE - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HHC 2 BDE")] - HHC_2_BDE = 52, - - /// - /// HHC 3 BDE - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HHC 3 BDE")] - HHC_3_BDE = 53, - - /// - /// HHC 4 BDE - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HHC 4 BDE")] - HHC_4_BDE = 54, - - /// - /// AVNBDE. unit: HHC AVN BDE. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AVNBDE. unit: HHC AVN BDE.")] - AVNBDEUnitHHCAVNBDE = 55, - - /// - /// E. unit: HHD EN BDE. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("E. unit: HHD EN BDE.")] - EUnitHHDENBDE = 56, - - /// - /// F. unit: HHB DIVARTY. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("F. unit: HHB DIVARTY.")] - FUnitHHBDIVARTY = 57, - - /// - /// DSC. unit: DISCOM. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DSC. unit: DISCOM.")] - DSCUnitDISCOM = 58 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState.Marking +{ + /// + /// Enumeration values for ArmyMarkingHighLevelUnitFor1stInfantry (es.markingtext.cctt.1infunit, Byte 3 - High Level Unit (Byte 2 = 2 - 1st Infantry), + /// section 4.5.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum ArmyMarkingHighLevelUnitFor1stInfantry : byte + { + /// + /// 1-16INF. unit: 1-16 Infantry. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("1-16INF. unit: 1-16 Infantry.")] + _116INFUnit116Infantry = 1, + + /// + /// 2-16INF. unit: 2-16 Infantry. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("2-16INF. unit: 2-16 Infantry.")] + _216INFUnit216Infantry = 2, + + /// + /// 1-34AR. unit: 1-34 Armor. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("1-34AR. unit: 1-34 Armor.")] + _134ARUnit134Armor = 3, + + /// + /// 2-34AR. unit: 2-34 Armor. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("2-34AR. unit: 2-34 Armor.")] + _234ARUnit234Armor = 4, + + /// + /// 3-37AR. unit: 3-37 Armor. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("3-37AR. unit: 3-37 Armor.")] + _337ARUnit337Armor = 5, + + /// + /// 4-37AR. unit: 4-37 Armor. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("4-37AR. unit: 4-37 Armor.")] + _437ARUnit437Armor = 6, + + /// + /// 1-118INF. unit: 1-118 Infantry. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("1-118INF. unit: 1-118 Infantry.")] + _1118INFUnit1118Infantry = 7, + + /// + /// 4-118INF. unit: 4-118 Infantry. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("4-118INF. unit: 4-118 Infantry.")] + _4118INFUnit4118Infantry = 8, + + /// + /// 2-265AR. unit: 2-263 Armor. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("2-265AR. unit: 2-263 Armor.")] + _2265ARUnit2263Armor = 9, + + /// + /// 2-136IF. unit: 2-136 Infantry. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("2-136IF. unit: 2-136 Infantry.")] + _2136IFUnit2136Infantry = 10, + + /// + /// 1-5F. unit: 1-5 Field Art. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("1-5F. unit: 1-5 Field Art.")] + _15FUnit15FieldArt = 20, + + /// + /// 4-5F. unit: 4-5 Field Art. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("4-5F. unit: 4-5 Field Art.")] + _45FUnit45FieldArt = 21, + + /// + /// 1-178F. unit: 1-178 Field Art. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("1-178F. unit: 1-178 Field Art.")] + _1178FUnit1178FieldArt = 22, + + /// + /// 6F. unit: B/6 Field Art. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("6F. unit: B/6 Field Art.")] + _6FUnitB6FieldArt = 23, + + /// + /// 25F. unit: D/25 Field Art. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("25F. unit: D/25 Field Art.")] + _25FUnitD25FieldArt = 24, + + /// + /// 1E. unit: 1 Engineer. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("1E. unit: 1 Engineer.")] + _1EUnit1Engineer = 30, + + /// + /// 70E. unit: 70 Engineer. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("70E. unit: 70 Engineer.")] + _70EUnit70Engineer = 31, + + /// + /// 4-1AVN. unit: 4-1 Aviation. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("4-1AVN. unit: 4-1 Aviation.")] + _41AVNUnit41Aviation = 32, + + /// + /// 1-1AVN. unit: 1-1 Aviation. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("1-1AVN. unit: 1-1 Aviation.")] + _11AVNUnit11Aviation = 33, + + /// + /// 2-3ADA. unit: 2-3 Air Def Art. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("2-3ADA. unit: 2-3 Air Def Art.")] + _23ADAUnit23AirDefArt = 34, + + /// + /// 1-4CAV. unit: 1-4 Cavalry. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("1-4CAV. unit: 1-4 Cavalry.")] + _14CAVUnit14Cavalry = 35, + + /// + /// 701MSB. unit: 701 Main Supp. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("701MSB. unit: 701 Main Supp.")] + _701MSBUnit701MainSupp = 40, + + /// + /// 101FSB. unit: 101 Forward Supp. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("101FSB. unit: 101 Forward Supp.")] + _101FSBUnit101ForwardSupp = 41, + + /// + /// 201FSB. unit: 201 Forward Supp. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("201FSB. unit: 201 Forward Supp.")] + _201FSBUnit201ForwardSupp = 42, + + /// + /// 163FSB. unit: 163 Forward Supp. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("163FSB. unit: 163 Forward Supp.")] + _163FSBUnit163ForwardSupp = 43, + + /// + /// 101MI. unit: 101 Mil Intell. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("101MI. unit: 101 Mil Intell.")] + _101MIUnit101MilIntell = 45, + + /// + /// 121S. unit: 121 Signal. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("121S. unit: 121 Signal.")] + _121SUnit121Signal = 46, + + /// + /// 1MP. unit: 1st Mil Police. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("1MP. unit: 1st Mil Police.")] + _1MPUnit1stMilPolice = 47, + + /// + /// 12CML. unit: 12 Chemical. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("12CML. unit: 12 Chemical.")] + _12CMLUnit12Chemical = 48, + + /// + /// 1INF. unit: HHC 1st Infantry. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("1INF. unit: HHC 1st Infantry.")] + _1INFUnitHHC1stInfantry = 50, + + /// + /// HHC 1 BDE + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HHC 1 BDE")] + HHC_1_BDE = 51, + + /// + /// HHC 2 BDE + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HHC 2 BDE")] + HHC_2_BDE = 52, + + /// + /// HHC 3 BDE + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HHC 3 BDE")] + HHC_3_BDE = 53, + + /// + /// HHC 4 BDE + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HHC 4 BDE")] + HHC_4_BDE = 54, + + /// + /// AVNBDE. unit: HHC AVN BDE. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AVNBDE. unit: HHC AVN BDE.")] + AVNBDEUnitHHCAVNBDE = 55, + + /// + /// E. unit: HHD EN BDE. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("E. unit: HHD EN BDE.")] + EUnitHHDENBDE = 56, + + /// + /// F. unit: HHB DIVARTY. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("F. unit: HHB DIVARTY.")] + FUnitHHBDIVARTY = 57, + + /// + /// DSC. unit: DISCOM. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DSC. unit: DISCOM.")] + DSCUnitDISCOM = 58 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingMarkingCodes.cs b/Libs/CsharpDis6/Enumerations/EntityState.Marking/ArmyMarkingMarkingCodes.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingMarkingCodes.cs rename to Libs/CsharpDis6/Enumerations/EntityState.Marking/ArmyMarkingMarkingCodes.cs index a4099f2..7ba0e58 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingMarkingCodes.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState.Marking/ArmyMarkingMarkingCodes.cs @@ -1,299 +1,299 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState.Marking -{ - /// - /// Enumeration values for ArmyMarkingMarkingCodes (es.markingtext.cctt.symbol1, Bytes 8, 9, 10 and 12, - /// section 4.5.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum ArmyMarkingMarkingCodes : byte - { - /// - /// Value 0 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 0")] - Value_0 = 0, - - /// - /// Value 1 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 1")] - Value_1 = 1, - - /// - /// Value 2 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 2")] - Value_2 = 2, - - /// - /// Value 3 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 3")] - Value_3 = 3, - - /// - /// Value 4 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 4")] - Value_4 = 4, - - /// - /// Value 5 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 5")] - Value_5 = 5, - - /// - /// Value 6 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 6")] - Value_6 = 6, - - /// - /// Value 7 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 7")] - Value_7 = 7, - - /// - /// Value 8 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 8")] - Value_8 = 8, - - /// - /// Value 9 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 9")] - Value_9 = 9, - - /// - /// Value 0 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 0")] - Value_0_ = 10, - - /// - /// Value 1 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 1")] - Value_1_ = 11, - - /// - /// Value 2 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 2")] - Value_2_ = 12, - - /// - /// Value 3 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 3")] - Value_3_ = 13, - - /// - /// Value 4 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 4")] - Value_4_ = 14, - - /// - /// Value 5 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 5")] - Value_5_ = 15, - - /// - /// Value 6 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 6")] - Value_6_ = 16, - - /// - /// Value 7 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 7")] - Value_7_ = 17, - - /// - /// Value 8 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 8")] - Value_8_ = 18, - - /// - /// Value 9 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 9")] - Value_9_ = 19, - - /// - /// E. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("E.")] - E = 69, - - /// - /// Underscore E. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Underscore E.")] - UnderscoreE = 101, - - /// - /// S. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("S.")] - S = 83, - - /// - /// Underscore S. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Underscore S.")] - UnderscoreS = 115, - - /// - /// X. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("X.")] - X = 88, - - /// - /// Underscore X. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Underscore X.")] - UnderscoreX = 120, - - /// - /// Blank. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Blank.")] - Blank = 32 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState.Marking +{ + /// + /// Enumeration values for ArmyMarkingMarkingCodes (es.markingtext.cctt.symbol1, Bytes 8, 9, 10 and 12, + /// section 4.5.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum ArmyMarkingMarkingCodes : byte + { + /// + /// Value 0 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 0")] + Value_0 = 0, + + /// + /// Value 1 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 1")] + Value_1 = 1, + + /// + /// Value 2 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 2")] + Value_2 = 2, + + /// + /// Value 3 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 3")] + Value_3 = 3, + + /// + /// Value 4 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 4")] + Value_4 = 4, + + /// + /// Value 5 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 5")] + Value_5 = 5, + + /// + /// Value 6 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 6")] + Value_6 = 6, + + /// + /// Value 7 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 7")] + Value_7 = 7, + + /// + /// Value 8 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 8")] + Value_8 = 8, + + /// + /// Value 9 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 9")] + Value_9 = 9, + + /// + /// Value 0 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 0")] + Value_0_ = 10, + + /// + /// Value 1 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 1")] + Value_1_ = 11, + + /// + /// Value 2 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 2")] + Value_2_ = 12, + + /// + /// Value 3 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 3")] + Value_3_ = 13, + + /// + /// Value 4 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 4")] + Value_4_ = 14, + + /// + /// Value 5 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 5")] + Value_5_ = 15, + + /// + /// Value 6 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 6")] + Value_6_ = 16, + + /// + /// Value 7 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 7")] + Value_7_ = 17, + + /// + /// Value 8 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 8")] + Value_8_ = 18, + + /// + /// Value 9 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 9")] + Value_9_ = 19, + + /// + /// E. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("E.")] + E = 69, + + /// + /// Underscore E. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Underscore E.")] + UnderscoreE = 101, + + /// + /// S. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("S.")] + S = 83, + + /// + /// Underscore S. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Underscore S.")] + UnderscoreS = 115, + + /// + /// X. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("X.")] + X = 88, + + /// + /// Underscore X. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Underscore X.")] + UnderscoreX = 120, + + /// + /// Blank. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Blank.")] + Blank = 32 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingPlatoon.cs b/Libs/CsharpDis6/Enumerations/EntityState.Marking/ArmyMarkingPlatoon.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingPlatoon.cs rename to Libs/CsharpDis6/Enumerations/EntityState.Marking/ArmyMarkingPlatoon.cs index d6d2252..2bf3ccc 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingPlatoon.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState.Marking/ArmyMarkingPlatoon.cs @@ -1,129 +1,129 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState.Marking -{ - /// - /// Enumeration values for ArmyMarkingPlatoon (es.markingtext.cctt.platoon, Byte 5 - Platoon, Section, - /// section 4.5.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum ArmyMarkingPlatoon : byte - { - /// - /// Value 0 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 0")] - Value_0 = 0, - - /// - /// Value 1 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 1")] - Value_1 = 1, - - /// - /// Value 2 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 2")] - Value_2 = 2, - - /// - /// Value 3 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 3")] - Value_3 = 3, - - /// - /// Value 4 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 4")] - Value_4 = 4, - - /// - /// Value 5 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 5")] - Value_5 = 5, - - /// - /// Value 6 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 6")] - Value_6 = 6, - - /// - /// Value 7 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 7")] - Value_7 = 7, - - /// - /// Value 8 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 8")] - Value_8 = 8, - - /// - /// Value 9 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 9")] - Value_9 = 9 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState.Marking +{ + /// + /// Enumeration values for ArmyMarkingPlatoon (es.markingtext.cctt.platoon, Byte 5 - Platoon, Section, + /// section 4.5.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum ArmyMarkingPlatoon : byte + { + /// + /// Value 0 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 0")] + Value_0 = 0, + + /// + /// Value 1 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 1")] + Value_1 = 1, + + /// + /// Value 2 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 2")] + Value_2 = 2, + + /// + /// Value 3 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 3")] + Value_3 = 3, + + /// + /// Value 4 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 4")] + Value_4 = 4, + + /// + /// Value 5 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 5")] + Value_5 = 5, + + /// + /// Value 6 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 6")] + Value_6 = 6, + + /// + /// Value 7 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 7")] + Value_7 = 7, + + /// + /// Value 8 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 8")] + Value_8 = 8, + + /// + /// Value 9 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 9")] + Value_9 = 9 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingPlatoonCodes.cs b/Libs/CsharpDis6/Enumerations/EntityState.Marking/ArmyMarkingPlatoonCodes.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingPlatoonCodes.cs rename to Libs/CsharpDis6/Enumerations/EntityState.Marking/ArmyMarkingPlatoonCodes.cs index d98bb20..79e626f 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingPlatoonCodes.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState.Marking/ArmyMarkingPlatoonCodes.cs @@ -1,89 +1,89 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState.Marking -{ - /// - /// Enumeration values for ArmyMarkingPlatoonCodes (es.markingtext.cctt.symbol2, Byte 11, - /// section 4.5.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum ArmyMarkingPlatoonCodes : byte - { - /// - /// Caret. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Caret.")] - Caret = 94, - - /// - /// Greater than. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Greater than.")] - GreaterThan = 62, - - /// - /// inverted carrot. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("inverted carrot.")] - InvertedCarrot = 86, - - /// - /// Lower than. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Lower than.")] - LowerThan = 60, - - /// - /// Caret and inverted carrot. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Caret and inverted carrot.")] - CaretAndInvertedCarrot = 126, - - /// - /// Lower or greater than. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Lower or greater than.")] - LowerThanGreaterThan = 61 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState.Marking +{ + /// + /// Enumeration values for ArmyMarkingPlatoonCodes (es.markingtext.cctt.symbol2, Byte 11, + /// section 4.5.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum ArmyMarkingPlatoonCodes : byte + { + /// + /// Caret. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Caret.")] + Caret = 94, + + /// + /// Greater than. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Greater than.")] + GreaterThan = 62, + + /// + /// inverted carrot. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("inverted carrot.")] + InvertedCarrot = 86, + + /// + /// Lower than. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Lower than.")] + LowerThan = 60, + + /// + /// Caret and inverted carrot. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Caret and inverted carrot.")] + CaretAndInvertedCarrot = 126, + + /// + /// Lower or greater than. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Lower or greater than.")] + LowerThanGreaterThan = 61 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingVehicle.cs b/Libs/CsharpDis6/Enumerations/EntityState.Marking/ArmyMarkingVehicle.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingVehicle.cs rename to Libs/CsharpDis6/Enumerations/EntityState.Marking/ArmyMarkingVehicle.cs index 2c236b5..25e0de1 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/ArmyMarkingVehicle.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState.Marking/ArmyMarkingVehicle.cs @@ -1,139 +1,139 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState.Marking -{ - /// - /// Enumeration values for ArmyMarkingVehicle (es.markingtext.cctt.vehicle, Byte 6 and 7 - Vehicle, - /// section 4.5.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum ArmyMarkingVehicle : byte - { - /// - /// Value 0 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 0")] - Value_0 = 0, - - /// - /// Value 1 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 1")] - Value_1 = 1, - - /// - /// Value 2 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 2")] - Value_2 = 2, - - /// - /// Value 3 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 3")] - Value_3 = 3, - - /// - /// Value 4 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 4")] - Value_4 = 4, - - /// - /// Value 5 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 5")] - Value_5 = 5, - - /// - /// Value 6 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 6")] - Value_6 = 6, - - /// - /// Value 7 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 7")] - Value_7 = 7, - - /// - /// Value 8 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 8")] - Value_8 = 8, - - /// - /// Value 9 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 9")] - Value_9 = 9, - - /// - /// Blank. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Blank.")] - Blank = 32 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState.Marking +{ + /// + /// Enumeration values for ArmyMarkingVehicle (es.markingtext.cctt.vehicle, Byte 6 and 7 - Vehicle, + /// section 4.5.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum ArmyMarkingVehicle : byte + { + /// + /// Value 0 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 0")] + Value_0 = 0, + + /// + /// Value 1 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 1")] + Value_1 = 1, + + /// + /// Value 2 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 2")] + Value_2 = 2, + + /// + /// Value 3 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 3")] + Value_3 = 3, + + /// + /// Value 4 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 4")] + Value_4 = 4, + + /// + /// Value 5 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 5")] + Value_5 = 5, + + /// + /// Value 6 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 6")] + Value_6 = 6, + + /// + /// Value 7 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 7")] + Value_7 = 7, + + /// + /// Value 8 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 8")] + Value_8 = 8, + + /// + /// Value 9 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 9")] + Value_9 = 9, + + /// + /// Blank. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Blank.")] + Blank = 32 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/DigitChevronMarkingCodes.cs b/Libs/CsharpDis6/Enumerations/EntityState.Marking/DigitChevronMarkingCodes.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/DigitChevronMarkingCodes.cs rename to Libs/CsharpDis6/Enumerations/EntityState.Marking/DigitChevronMarkingCodes.cs index c095674..e1ec4f8 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/DigitChevronMarkingCodes.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState.Marking/DigitChevronMarkingCodes.cs @@ -1,359 +1,359 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState.Marking -{ - /// - /// Enumeration values for DigitChevronMarkingCodes (es.markingtext.chevron.symbol, Digit / Chevron Codes, - /// section 4.5.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum DigitChevronMarkingCodes : byte - { - /// - /// Value 0 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 0")] - Value_0 = 0, - - /// - /// Value 1 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 1")] - Value_1 = 1, - - /// - /// Value 2 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 2")] - Value_2 = 2, - - /// - /// Value 3 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 3")] - Value_3 = 3, - - /// - /// Value 4 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 4")] - Value_4 = 4, - - /// - /// Value 5 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 5")] - Value_5 = 5, - - /// - /// Value 6 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 6")] - Value_6 = 6, - - /// - /// Value 7 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 7")] - Value_7 = 7, - - /// - /// Value 8 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 8")] - Value_8 = 8, - - /// - /// Value 9 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Value 9")] - Value_9 = 9, - - /// - /// Underscore 0 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Underscore 0")] - Underscore_0 = 10, - - /// - /// Underscore 1 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Underscore 1")] - Underscore_1 = 11, - - /// - /// Underscore 2 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Underscore 2")] - Underscore_2 = 12, - - /// - /// Underscore 3 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Underscore 3")] - Underscore_3 = 13, - - /// - /// Underscore 4 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Underscore 4")] - Underscore_4 = 14, - - /// - /// Underscore 5 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Underscore 5")] - Underscore_5 = 15, - - /// - /// Underscore 6 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Underscore 6")] - Underscore_6 = 16, - - /// - /// Underscore 7 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Underscore 7")] - Underscore_7 = 17, - - /// - /// Underscore 8 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Underscore 8")] - Underscore_8 = 18, - - /// - /// Underscore 9 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Underscore 9")] - Underscore_9 = 19, - - /// - /// E. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("E.")] - E = 69, - - /// - /// Underscore E. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Underscore E.")] - UnderscoreE = 101, - - /// - /// S. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("S.")] - S = 83, - - /// - /// Underscore S. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Underscore S.")] - UnderscoreS = 115, - - /// - /// X. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("X.")] - X = 88, - - /// - /// Underscore X. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Underscore X.")] - UnderscoreX = 120, - - /// - /// Blank. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Blank.")] - Blank = 32, - - /// - /// Caret. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Caret.")] - Caret = 94, - - /// - /// Greater than. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Greater than.")] - GreaterThan = 62, - - /// - /// inverted carrot. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("inverted carrot.")] - InvertedCarrot = 86, - - /// - /// Lower than. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Lower than.")] - LowerThan = 60, - - /// - /// Caret and inverted carrot. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Caret and inverted carrot.")] - CaretAndInvertedCarrot = 126, - - /// - /// Lower or greater than. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Lower or greater than.")] - LowerThanGreaterThan = 61 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState.Marking +{ + /// + /// Enumeration values for DigitChevronMarkingCodes (es.markingtext.chevron.symbol, Digit / Chevron Codes, + /// section 4.5.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum DigitChevronMarkingCodes : byte + { + /// + /// Value 0 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 0")] + Value_0 = 0, + + /// + /// Value 1 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 1")] + Value_1 = 1, + + /// + /// Value 2 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 2")] + Value_2 = 2, + + /// + /// Value 3 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 3")] + Value_3 = 3, + + /// + /// Value 4 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 4")] + Value_4 = 4, + + /// + /// Value 5 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 5")] + Value_5 = 5, + + /// + /// Value 6 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 6")] + Value_6 = 6, + + /// + /// Value 7 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 7")] + Value_7 = 7, + + /// + /// Value 8 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 8")] + Value_8 = 8, + + /// + /// Value 9 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Value 9")] + Value_9 = 9, + + /// + /// Underscore 0 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Underscore 0")] + Underscore_0 = 10, + + /// + /// Underscore 1 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Underscore 1")] + Underscore_1 = 11, + + /// + /// Underscore 2 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Underscore 2")] + Underscore_2 = 12, + + /// + /// Underscore 3 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Underscore 3")] + Underscore_3 = 13, + + /// + /// Underscore 4 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Underscore 4")] + Underscore_4 = 14, + + /// + /// Underscore 5 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Underscore 5")] + Underscore_5 = 15, + + /// + /// Underscore 6 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Underscore 6")] + Underscore_6 = 16, + + /// + /// Underscore 7 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Underscore 7")] + Underscore_7 = 17, + + /// + /// Underscore 8 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Underscore 8")] + Underscore_8 = 18, + + /// + /// Underscore 9 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Underscore 9")] + Underscore_9 = 19, + + /// + /// E. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("E.")] + E = 69, + + /// + /// Underscore E. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Underscore E.")] + UnderscoreE = 101, + + /// + /// S. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("S.")] + S = 83, + + /// + /// Underscore S. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Underscore S.")] + UnderscoreS = 115, + + /// + /// X. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("X.")] + X = 88, + + /// + /// Underscore X. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Underscore X.")] + UnderscoreX = 120, + + /// + /// Blank. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Blank.")] + Blank = 32, + + /// + /// Caret. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Caret.")] + Caret = 94, + + /// + /// Greater than. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Greater than.")] + GreaterThan = 62, + + /// + /// inverted carrot. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("inverted carrot.")] + InvertedCarrot = 86, + + /// + /// Lower than. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Lower than.")] + LowerThan = 60, + + /// + /// Caret and inverted carrot. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Caret and inverted carrot.")] + CaretAndInvertedCarrot = 126, + + /// + /// Lower or greater than. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Lower or greater than.")] + LowerThanGreaterThan = 61 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/EntityMarkingText.cs b/Libs/CsharpDis6/Enumerations/EntityState.Marking/EntityMarkingText.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/EntityMarkingText.cs rename to Libs/CsharpDis6/Enumerations/EntityState.Marking/EntityMarkingText.cs index 5e89afc..2f3cd9b 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Marking/EntityMarkingText.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState.Marking/EntityMarkingText.cs @@ -1,59 +1,59 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState.Marking -{ - /// - /// Enumeration values for EntityMarkingText (es.markingtext, Entity Marking, - /// section 4.5) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum EntityMarkingText : byte - { - /// - /// ASCII. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ASCII.")] - ASCII = 1, - - /// - /// Army Marking (CCTT). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Army Marking (CCTT).")] - ArmyMarkingCCTT = 2, - - /// - /// Digit Chevron. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Digit Chevron.")] - DigitChevron = 3 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState.Marking +{ + /// + /// Enumeration values for EntityMarkingText (es.markingtext, Entity Marking, + /// section 4.5) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum EntityMarkingText : byte + { + /// + /// ASCII. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ASCII.")] + ASCII = 1, + + /// + /// Army Marking (CCTT). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Army Marking (CCTT).")] + ArmyMarkingCCTT = 2, + + /// + /// Digit Chevron. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Digit Chevron.")] + DigitChevron = 3 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/AirPlatform.cs b/Libs/CsharpDis6/Enumerations/EntityState.Type/AirPlatform.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/AirPlatform.cs rename to Libs/CsharpDis6/Enumerations/EntityState.Type/AirPlatform.cs index 657c091..61b9414 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/AirPlatform.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState.Type/AirPlatform.cs @@ -1,209 +1,209 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState.Type -{ - /// - /// Enumeration values for AirPlatform (es.type.kind.1.domain.2.cat, Platform-Air Category, - /// section 4.2.1.1.3.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum AirPlatform : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Fighter/Air Defense. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fighter/Air Defense.")] - FighterAirDefense = 1, - - /// - /// Attack/Strike. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Attack/Strike.")] - AttackStrike = 2, - - /// - /// Bomber. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Bomber.")] - Bomber = 3, - - /// - /// Cargo/Tanker. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Cargo/Tanker.")] - CargoTanker = 4, - - /// - /// ASW/Patrol/Observation. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ASW/Patrol/Observation.")] - ASWPatrolObservation = 5, - - /// - /// Electronic Warfare (EW). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Electronic Warfare (EW).")] - ElectronicWarfare = 6, - - /// - /// Reconnaissance. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Reconnaissance.")] - Reconnaissance = 7, - - /// - /// Surveillance/C2 (Airborne Early Warning). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Surveillance/C2 (Airborne Early Warning).")] - SurveillanceC2AirborneEarlyWarning = 8, - - /// - /// Attack Helicopter. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Attack Helicopter.")] - AttackHelicopter = 20, - - /// - /// Utility Helicopter. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Utility Helicopter.")] - UtilityHelicopter = 21, - - /// - /// Antisubmarine Warfare/Patrol Helicopter. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Antisubmarine Warfare/Patrol Helicopter.")] - AntisubmarineWarfarePatrolHelicopter = 22, - - /// - /// Cargo Helicopter. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Cargo Helicopter.")] - CargoHelicopter = 23, - - /// - /// Observation Helicopter. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Observation Helicopter.")] - ObservationHelicopter = 24, - - /// - /// Special Operations Helicopter. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Special Operations Helicopter.")] - SpecialOperationsHelicopter = 25, - - /// - /// Trainer. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Trainer.")] - Trainer = 40, - - /// - /// Unmanned. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Unmanned.")] - Unmanned = 50, - - /// - /// Non-Combatant Commercial Aircraft. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Non-Combatant Commercial Aircraft.")] - NonCombatantCommercialAircraft = 57 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState.Type +{ + /// + /// Enumeration values for AirPlatform (es.type.kind.1.domain.2.cat, Platform-Air Category, + /// section 4.2.1.1.3.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum AirPlatform : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Fighter/Air Defense. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fighter/Air Defense.")] + FighterAirDefense = 1, + + /// + /// Attack/Strike. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Attack/Strike.")] + AttackStrike = 2, + + /// + /// Bomber. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Bomber.")] + Bomber = 3, + + /// + /// Cargo/Tanker. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Cargo/Tanker.")] + CargoTanker = 4, + + /// + /// ASW/Patrol/Observation. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ASW/Patrol/Observation.")] + ASWPatrolObservation = 5, + + /// + /// Electronic Warfare (EW). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Electronic Warfare (EW).")] + ElectronicWarfare = 6, + + /// + /// Reconnaissance. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Reconnaissance.")] + Reconnaissance = 7, + + /// + /// Surveillance/C2 (Airborne Early Warning). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Surveillance/C2 (Airborne Early Warning).")] + SurveillanceC2AirborneEarlyWarning = 8, + + /// + /// Attack Helicopter. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Attack Helicopter.")] + AttackHelicopter = 20, + + /// + /// Utility Helicopter. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Utility Helicopter.")] + UtilityHelicopter = 21, + + /// + /// Antisubmarine Warfare/Patrol Helicopter. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Antisubmarine Warfare/Patrol Helicopter.")] + AntisubmarineWarfarePatrolHelicopter = 22, + + /// + /// Cargo Helicopter. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Cargo Helicopter.")] + CargoHelicopter = 23, + + /// + /// Observation Helicopter. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Observation Helicopter.")] + ObservationHelicopter = 24, + + /// + /// Special Operations Helicopter. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Special Operations Helicopter.")] + SpecialOperationsHelicopter = 25, + + /// + /// Trainer. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Trainer.")] + Trainer = 40, + + /// + /// Unmanned. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Unmanned.")] + Unmanned = 50, + + /// + /// Non-Combatant Commercial Aircraft. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Non-Combatant Commercial Aircraft.")] + NonCombatantCommercialAircraft = 57 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/CISWeaponsForLifeFormsSubcategory.cs b/Libs/CsharpDis6/Enumerations/EntityState.Type/CISWeaponsForLifeFormsSubcategory.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/CISWeaponsForLifeFormsSubcategory.cs rename to Libs/CsharpDis6/Enumerations/EntityState.Type/CISWeaponsForLifeFormsSubcategory.cs index e4e1584..5aef6c3 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/CISWeaponsForLifeFormsSubcategory.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState.Type/CISWeaponsForLifeFormsSubcategory.cs @@ -1,499 +1,499 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState.Type -{ - /// - /// Enumeration values for CISWeaponsForLifeFormsSubcategory (es.type.222.kind.3.subcat, C.I.S. Weapons for Life Forms Subcategory, - /// section 4.2.3.3.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum CISWeaponsForLifeFormsSubcategory : byte - { - /// - /// Automatic (APS) 9-mm, Stechkin. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Automatic (APS) 9-mm, Stechkin.")] - AutomaticAPS9MmStechkin = 201, - - /// - /// PSM 5.45-mm. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("PSM 5.45-mm.")] - PSM545Mm = 202, - - /// - /// Self-loading (PM) 9-mm, Makarov. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Self-loading (PM) 9-mm, Makarov.")] - SelfLoadingPM9MmMakarov = 203, - - /// - /// TT-33 7.62-mm, Tokarev. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TT-33 7.62-mm, Tokarev.")] - TT33762MmTokarev = 204, - - /// - /// Assault rifle AK and AKM, 7.62-mm. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Assault rifle AK and AKM, 7.62-mm.")] - AssaultRifleAKAndAKM762Mm = 205, - - /// - /// Assault rifle AK-74 and AKS-74, 5.45-mm. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Assault rifle AK-74 and AKS-74, 5.45-mm.")] - AssaultRifleAK74AndAKS74545Mm = 206, - - /// - /// Self-loading rifle (SKS), 7.62-mm, Simonov. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Self-loading rifle (SKS), 7.62-mm, Simonov.")] - SelfLoadingRifleSKS762MmSimonov = 207, - - /// - /// Sniper rifle SVD 7.62-mm, Dragunov. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sniper rifle SVD 7.62-mm, Dragunov.")] - SniperRifleSVD762MmDragunov = 208, - - /// - /// AKSU-74 5.45-mm. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AKSU-74 5.45-mm.")] - AKSU74545Mm = 209, - - /// - /// PPS-43 7.62-mm. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("PPS-43 7.62-mm.")] - PPS43762Mm = 210, - - /// - /// PPSh-41 7.62-mm. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("PPSh-41 7.62-mm.")] - PPSh41762Mm = 211, - - /// - /// General purpose PK 7.62-mm. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("General purpose PK 7.62-mm.")] - GeneralPurposePK762Mm = 212, - - /// - /// Heavy DShK-38 and Model 38/46 12.7-mm, Degtyarev. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Heavy DShK-38 and Model 38/46 12.7-mm, Degtyarev.")] - HeavyDShK38AndModel3846127MmDegtyarev = 213, - - /// - /// Heavy NSV 12.7-mm. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Heavy NSV 12.7-mm.")] - HeavyNSV127Mm = 214, - - /// - /// Light RPD 7.62-mm. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Light RPD 7.62-mm.")] - LightRPD762Mm = 215, - - /// - /// Light RPK 7.62-mm. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Light RPK 7.62-mm.")] - LightRPK762Mm = 216, - - /// - /// Light RPK-74 5.45-mm. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Light RPK-74 5.45-mm.")] - LightRPK74545Mm = 217, - - /// - /// Hand grenade M75. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Hand grenade M75.")] - HandGrenadeM75 = 218, - - /// - /// Hand grenade RGD-5. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Hand grenade RGD-5.")] - HandGrenadeRGD5 = 219, - - /// - /// AP hand grenade F1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AP hand grenade F1.")] - APHandGrenadeF1 = 220, - - /// - /// AT hand grenade RKG-3. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AT hand grenade RKG-3.")] - ATHandGrenadeRKG3 = 221, - - /// - /// AT hand grenade RKG-3M. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AT hand grenade RKG-3M.")] - ATHandGrenadeRKG3M = 222, - - /// - /// AT hand grenade RKG-3T. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AT hand grenade RKG-3T.")] - ATHandGrenadeRKG3T = 223, - - /// - /// Fragmentation hand grenade RGN. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fragmentation hand grenade RGN.")] - FragmentationHandGrenadeRGN = 224, - - /// - /// Fragmentation hand grenade RGO. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fragmentation hand grenade RGO.")] - FragmentationHandGrenadeRGO = 225, - - /// - /// Smoke hand grenade RDG-1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Smoke hand grenade RDG-1.")] - SmokeHandGrenadeRDG1 = 226, - - /// - /// Plamya launcher, 30-mm AGS-17. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Plamya launcher, 30-mm AGS-17.")] - PlamyaLauncher30MmAGS17 = 227, - - /// - /// Rifle-mounted launcher, BG-15 40-mm. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Rifle-mounted launcher, BG-15 40-mm.")] - RifleMountedLauncherBG1540Mm = 228, - - /// - /// LPO-50. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("LPO-50.")] - LPO50 = 229, - - /// - /// ROKS-3. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ROKS-3.")] - ROKS3 = 230, - - /// - /// Cart-mounted TPO-50. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Cart-mounted TPO-50.")] - CartMountedTPO50 = 231, - - /// - /// Gimlet SA-16. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Gimlet SA-16.")] - GimletSA16 = 232, - - /// - /// Grail SA-7. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Grail SA-7.")] - GrailSA7 = 233, - - /// - /// Gremlin SA-14. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Gremlin SA-14.")] - GremlinSA14 = 234, - - /// - /// Sagger AT-3 (MCLOS). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sagger AT-3 (MCLOS).")] - SaggerAT3MCLOS = 235, - - /// - /// Saxhorn AT-7. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Saxhorn AT-7.")] - SaxhornAT7 = 236, - - /// - /// Spigot A/B AT-14. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Spigot A/B AT-14.")] - SpigotABAT14 = 237, - - /// - /// SA-18. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SA-18.")] - SA18 = 238, - - /// - /// SA-19. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SA-19.")] - SA19 = 239, - - /// - /// Grad-1P manportable tripod rocket launcher, 122-mm (for Spesnatz and other specialists; aka 9P132). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Grad-1P manportable tripod rocket launcher, 122-mm (for Spesnatz and other specialists; aka 9P132).")] - Grad1PManportableTripodRocketLauncher122MmForSpesnatzAndOtherSpecialistsAka9P132 = 240, - - /// - /// Light anti-armor weapon RPG-18. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Light anti-armor weapon RPG-18.")] - LightAntiArmorWeaponRPG18 = 241, - - /// - /// Light antitank weapon RPG-22. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Light antitank weapon RPG-22.")] - LightAntitankWeaponRPG22 = 242, - - /// - /// MG & RPG. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("MG & RPG.")] - MGRPG = 243, - - /// - /// Portable rocket launcher RPG-16. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Portable rocket launcher RPG-16.")] - PortableRocketLauncherRPG16 = 244, - - /// - /// Recoilless gun 73-mm SPG-9. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Recoilless gun 73-mm SPG-9.")] - RecoillessGun73MmSPG9 = 245, - - /// - /// VAT rocket launcher RPG-7. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("VAT rocket launcher RPG-7.")] - VATRocketLauncherRPG7 = 246, - - /// - /// Mon-50 antipersonnel mine. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mon-50 antipersonnel mine.")] - Mon50AntipersonnelMine = 248 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState.Type +{ + /// + /// Enumeration values for CISWeaponsForLifeFormsSubcategory (es.type.222.kind.3.subcat, C.I.S. Weapons for Life Forms Subcategory, + /// section 4.2.3.3.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum CISWeaponsForLifeFormsSubcategory : byte + { + /// + /// Automatic (APS) 9-mm, Stechkin. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Automatic (APS) 9-mm, Stechkin.")] + AutomaticAPS9MmStechkin = 201, + + /// + /// PSM 5.45-mm. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("PSM 5.45-mm.")] + PSM545Mm = 202, + + /// + /// Self-loading (PM) 9-mm, Makarov. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Self-loading (PM) 9-mm, Makarov.")] + SelfLoadingPM9MmMakarov = 203, + + /// + /// TT-33 7.62-mm, Tokarev. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TT-33 7.62-mm, Tokarev.")] + TT33762MmTokarev = 204, + + /// + /// Assault rifle AK and AKM, 7.62-mm. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Assault rifle AK and AKM, 7.62-mm.")] + AssaultRifleAKAndAKM762Mm = 205, + + /// + /// Assault rifle AK-74 and AKS-74, 5.45-mm. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Assault rifle AK-74 and AKS-74, 5.45-mm.")] + AssaultRifleAK74AndAKS74545Mm = 206, + + /// + /// Self-loading rifle (SKS), 7.62-mm, Simonov. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Self-loading rifle (SKS), 7.62-mm, Simonov.")] + SelfLoadingRifleSKS762MmSimonov = 207, + + /// + /// Sniper rifle SVD 7.62-mm, Dragunov. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sniper rifle SVD 7.62-mm, Dragunov.")] + SniperRifleSVD762MmDragunov = 208, + + /// + /// AKSU-74 5.45-mm. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AKSU-74 5.45-mm.")] + AKSU74545Mm = 209, + + /// + /// PPS-43 7.62-mm. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("PPS-43 7.62-mm.")] + PPS43762Mm = 210, + + /// + /// PPSh-41 7.62-mm. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("PPSh-41 7.62-mm.")] + PPSh41762Mm = 211, + + /// + /// General purpose PK 7.62-mm. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("General purpose PK 7.62-mm.")] + GeneralPurposePK762Mm = 212, + + /// + /// Heavy DShK-38 and Model 38/46 12.7-mm, Degtyarev. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Heavy DShK-38 and Model 38/46 12.7-mm, Degtyarev.")] + HeavyDShK38AndModel3846127MmDegtyarev = 213, + + /// + /// Heavy NSV 12.7-mm. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Heavy NSV 12.7-mm.")] + HeavyNSV127Mm = 214, + + /// + /// Light RPD 7.62-mm. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Light RPD 7.62-mm.")] + LightRPD762Mm = 215, + + /// + /// Light RPK 7.62-mm. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Light RPK 7.62-mm.")] + LightRPK762Mm = 216, + + /// + /// Light RPK-74 5.45-mm. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Light RPK-74 5.45-mm.")] + LightRPK74545Mm = 217, + + /// + /// Hand grenade M75. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Hand grenade M75.")] + HandGrenadeM75 = 218, + + /// + /// Hand grenade RGD-5. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Hand grenade RGD-5.")] + HandGrenadeRGD5 = 219, + + /// + /// AP hand grenade F1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AP hand grenade F1.")] + APHandGrenadeF1 = 220, + + /// + /// AT hand grenade RKG-3. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AT hand grenade RKG-3.")] + ATHandGrenadeRKG3 = 221, + + /// + /// AT hand grenade RKG-3M. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AT hand grenade RKG-3M.")] + ATHandGrenadeRKG3M = 222, + + /// + /// AT hand grenade RKG-3T. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AT hand grenade RKG-3T.")] + ATHandGrenadeRKG3T = 223, + + /// + /// Fragmentation hand grenade RGN. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fragmentation hand grenade RGN.")] + FragmentationHandGrenadeRGN = 224, + + /// + /// Fragmentation hand grenade RGO. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fragmentation hand grenade RGO.")] + FragmentationHandGrenadeRGO = 225, + + /// + /// Smoke hand grenade RDG-1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Smoke hand grenade RDG-1.")] + SmokeHandGrenadeRDG1 = 226, + + /// + /// Plamya launcher, 30-mm AGS-17. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Plamya launcher, 30-mm AGS-17.")] + PlamyaLauncher30MmAGS17 = 227, + + /// + /// Rifle-mounted launcher, BG-15 40-mm. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Rifle-mounted launcher, BG-15 40-mm.")] + RifleMountedLauncherBG1540Mm = 228, + + /// + /// LPO-50. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("LPO-50.")] + LPO50 = 229, + + /// + /// ROKS-3. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ROKS-3.")] + ROKS3 = 230, + + /// + /// Cart-mounted TPO-50. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Cart-mounted TPO-50.")] + CartMountedTPO50 = 231, + + /// + /// Gimlet SA-16. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Gimlet SA-16.")] + GimletSA16 = 232, + + /// + /// Grail SA-7. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Grail SA-7.")] + GrailSA7 = 233, + + /// + /// Gremlin SA-14. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Gremlin SA-14.")] + GremlinSA14 = 234, + + /// + /// Sagger AT-3 (MCLOS). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sagger AT-3 (MCLOS).")] + SaggerAT3MCLOS = 235, + + /// + /// Saxhorn AT-7. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Saxhorn AT-7.")] + SaxhornAT7 = 236, + + /// + /// Spigot A/B AT-14. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Spigot A/B AT-14.")] + SpigotABAT14 = 237, + + /// + /// SA-18. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SA-18.")] + SA18 = 238, + + /// + /// SA-19. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SA-19.")] + SA19 = 239, + + /// + /// Grad-1P manportable tripod rocket launcher, 122-mm (for Spesnatz and other specialists; aka 9P132). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Grad-1P manportable tripod rocket launcher, 122-mm (for Spesnatz and other specialists; aka 9P132).")] + Grad1PManportableTripodRocketLauncher122MmForSpesnatzAndOtherSpecialistsAka9P132 = 240, + + /// + /// Light anti-armor weapon RPG-18. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Light anti-armor weapon RPG-18.")] + LightAntiArmorWeaponRPG18 = 241, + + /// + /// Light antitank weapon RPG-22. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Light antitank weapon RPG-22.")] + LightAntitankWeaponRPG22 = 242, + + /// + /// MG & RPG. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("MG & RPG.")] + MGRPG = 243, + + /// + /// Portable rocket launcher RPG-16. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Portable rocket launcher RPG-16.")] + PortableRocketLauncherRPG16 = 244, + + /// + /// Recoilless gun 73-mm SPG-9. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Recoilless gun 73-mm SPG-9.")] + RecoillessGun73MmSPG9 = 245, + + /// + /// VAT rocket launcher RPG-7. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("VAT rocket launcher RPG-7.")] + VATRocketLauncherRPG7 = 246, + + /// + /// Mon-50 antipersonnel mine. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mon-50 antipersonnel mine.")] + Mon50AntipersonnelMine = 248 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/EntityKind.cs b/Libs/CsharpDis6/Enumerations/EntityState.Type/EntityKind.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/EntityKind.cs rename to Libs/CsharpDis6/Enumerations/EntityState.Type/EntityKind.cs index f5bebbd..a022b74 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/EntityKind.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState.Type/EntityKind.cs @@ -1,129 +1,129 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState.Type -{ - /// - /// Enumeration values for EntityKind (es.type.kind, Entity Kind, - /// section 4.2.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum EntityKind : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Platform. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Platform.")] - Platform = 1, - - /// - /// Munition. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Munition.")] - Munition = 2, - - /// - /// Life form. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Life form.")] - LifeForm = 3, - - /// - /// Environmental. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Environmental.")] - Environmental = 4, - - /// - /// Cultural feature. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Cultural feature.")] - CulturalFeature = 5, - - /// - /// Supply. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Supply.")] - Supply = 6, - - /// - /// Radio. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Radio.")] - Radio = 7, - - /// - /// Expendable. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Expendable.")] - Expendable = 8, - - /// - /// Sensor/Emitter. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sensor/Emitter.")] - SensorEmitter = 9 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState.Type +{ + /// + /// Enumeration values for EntityKind (es.type.kind, Entity Kind, + /// section 4.2.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum EntityKind : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Platform. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Platform.")] + Platform = 1, + + /// + /// Munition. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Munition.")] + Munition = 2, + + /// + /// Life form. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Life form.")] + LifeForm = 3, + + /// + /// Environmental. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Environmental.")] + Environmental = 4, + + /// + /// Cultural feature. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Cultural feature.")] + CulturalFeature = 5, + + /// + /// Supply. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Supply.")] + Supply = 6, + + /// + /// Radio. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Radio.")] + Radio = 7, + + /// + /// Expendable. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Expendable.")] + Expendable = 8, + + /// + /// Sensor/Emitter. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sensor/Emitter.")] + SensorEmitter = 9 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/EnvironmentalSubcategory.cs b/Libs/CsharpDis6/Enumerations/EntityState.Type/EnvironmentalSubcategory.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/EnvironmentalSubcategory.cs rename to Libs/CsharpDis6/Enumerations/EntityState.Type/EnvironmentalSubcategory.cs index b4b353a..2f309aa 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/EnvironmentalSubcategory.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState.Type/EnvironmentalSubcategory.cs @@ -1,89 +1,89 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState.Type -{ - /// - /// Enumeration values for EnvironmentalSubcategory (es.type.kind.4.subcat, Environmental Kind, - /// section 4.2.3.4) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum EnvironmentalSubcategory : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Very Small. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Very Small.")] - VerySmall = 20, - - /// - /// Small. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Small.")] - Small = 40, - - /// - /// Medium. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Medium.")] - Medium = 60, - - /// - /// Large. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Large.")] - Large = 80, - - /// - /// Very Large. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Very Large.")] - VeryLarge = 100 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState.Type +{ + /// + /// Enumeration values for EnvironmentalSubcategory (es.type.kind.4.subcat, Environmental Kind, + /// section 4.2.3.4) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum EnvironmentalSubcategory : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Very Small. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Very Small.")] + VerySmall = 20, + + /// + /// Small. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Small.")] + Small = 40, + + /// + /// Medium. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Medium.")] + Medium = 60, + + /// + /// Large. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Large.")] + Large = 80, + + /// + /// Very Large. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Very Large.")] + VeryLarge = 100 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/ExpendableAirCategory.cs b/Libs/CsharpDis6/Enumerations/EntityState.Type/ExpendableAirCategory.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/ExpendableAirCategory.cs rename to Libs/CsharpDis6/Enumerations/EntityState.Type/ExpendableAirCategory.cs index 3016a7d..f5cba3a 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/ExpendableAirCategory.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState.Type/ExpendableAirCategory.cs @@ -1,99 +1,99 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState.Type -{ - /// - /// Enumeration values for ExpendableAirCategory (es.type.kind.8.domain.2.cat, Expendable-Air Category, - /// section 4.2.1.8.3.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum ExpendableAirCategory : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Chaff. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Chaff.")] - Chaff = 1, - - /// - /// Flare. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Flare.")] - Flare = 2, - - /// - /// Combined chaff and flare. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Combined chaff and flare.")] - CombinedChaffAndFlare = 3, - - /// - /// Active emitter. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Active emitter.")] - ActiveEmitter = 4, - - /// - /// Passive decoy. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Passive decoy.")] - PassiveDecoy = 5, - - /// - /// Winged decoy. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Winged decoy.")] - WingedDecoy = 6 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState.Type +{ + /// + /// Enumeration values for ExpendableAirCategory (es.type.kind.8.domain.2.cat, Expendable-Air Category, + /// section 4.2.1.8.3.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum ExpendableAirCategory : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Chaff. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Chaff.")] + Chaff = 1, + + /// + /// Flare. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Flare.")] + Flare = 2, + + /// + /// Combined chaff and flare. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Combined chaff and flare.")] + CombinedChaffAndFlare = 3, + + /// + /// Active emitter. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Active emitter.")] + ActiveEmitter = 4, + + /// + /// Passive decoy. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Passive decoy.")] + PassiveDecoy = 5, + + /// + /// Winged decoy. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Winged decoy.")] + WingedDecoy = 6 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/ExpendableSubsurfaceCategory.cs b/Libs/CsharpDis6/Enumerations/EntityState.Type/ExpendableSubsurfaceCategory.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/ExpendableSubsurfaceCategory.cs rename to Libs/CsharpDis6/Enumerations/EntityState.Type/ExpendableSubsurfaceCategory.cs index 5a41df0..4cefadc 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/ExpendableSubsurfaceCategory.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState.Type/ExpendableSubsurfaceCategory.cs @@ -1,59 +1,59 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState.Type -{ - /// - /// Enumeration values for ExpendableSubsurfaceCategory (es.type.kind.8.domain.4.cat, Expendable-Subsurface Category, - /// section 4.2.1.8.3.3) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum ExpendableSubsurfaceCategory : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Active emitter. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Active emitter.")] - ActiveEmitter = 4, - - /// - /// Passive decoy. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Passive decoy.")] - PassiveDecoy = 5 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState.Type +{ + /// + /// Enumeration values for ExpendableSubsurfaceCategory (es.type.kind.8.domain.4.cat, Expendable-Subsurface Category, + /// section 4.2.1.8.3.3) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum ExpendableSubsurfaceCategory : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Active emitter. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Active emitter.")] + ActiveEmitter = 4, + + /// + /// Passive decoy. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Passive decoy.")] + PassiveDecoy = 5 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/ExpendableSurfaceCategory.cs b/Libs/CsharpDis6/Enumerations/EntityState.Type/ExpendableSurfaceCategory.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/ExpendableSurfaceCategory.cs rename to Libs/CsharpDis6/Enumerations/EntityState.Type/ExpendableSurfaceCategory.cs index fefe6a8..6ae61bc 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/ExpendableSurfaceCategory.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState.Type/ExpendableSurfaceCategory.cs @@ -1,69 +1,69 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState.Type -{ - /// - /// Enumeration values for ExpendableSurfaceCategory (es.type.kind.8.domain.3.cat, Expendable-Surface Category, - /// section 4.2.1.8.3.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum ExpendableSurfaceCategory : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Flare. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Flare.")] - Flare = 2, - - /// - /// Active emitter. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Active emitter.")] - ActiveEmitter = 4, - - /// - /// Passive decoy. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Passive decoy.")] - PassiveDecoy = 5 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState.Type +{ + /// + /// Enumeration values for ExpendableSurfaceCategory (es.type.kind.8.domain.3.cat, Expendable-Surface Category, + /// section 4.2.1.8.3.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum ExpendableSurfaceCategory : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Flare. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Flare.")] + Flare = 2, + + /// + /// Active emitter. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Active emitter.")] + ActiveEmitter = 4, + + /// + /// Passive decoy. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Passive decoy.")] + PassiveDecoy = 5 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/FrenchWeaponsForLifeForms.cs b/Libs/CsharpDis6/Enumerations/EntityState.Type/FrenchWeaponsForLifeForms.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/FrenchWeaponsForLifeForms.cs rename to Libs/CsharpDis6/Enumerations/EntityState.Type/FrenchWeaponsForLifeForms.cs index 3cc080a..bf9bb8c 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/FrenchWeaponsForLifeForms.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState.Type/FrenchWeaponsForLifeForms.cs @@ -1,109 +1,109 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState.Type -{ - /// - /// Enumeration values for FrenchWeaponsForLifeForms (es.type.71.kind.3.subcat, French Weapons for Life Forms Subcategory, - /// section 4.2.3.3.4) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum FrenchWeaponsForLifeForms : byte - { - /// - /// ACL-STRIM. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ACL-STRIM.")] - ACLSTRIM = 1, - - /// - /// Mistral missile. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mistral missile.")] - MistralMissile = 2, - - /// - /// Milan AT missile. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Milan AT missile.")] - MilanATMissile = 3, - - /// - /// LRAC F1 89-mm AT rocket launcher. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("LRAC F1 89-mm AT rocket launcher.")] - LRACF189MmATRocketLauncher = 4, - - /// - /// FA-MAS rifle. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("FA-MAS rifle.")] - FAMASRifle = 5, - - /// - /// AA-52 machine gun. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AA-52 machine gun.")] - AA52MachineGun = 6, - - /// - /// 58-mm rifle grenade. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("58-mm rifle grenade.")] - _58MmRifleGrenade = 7, - - /// - /// FR-F1 sniper rifle. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("FR-F1 sniper rifle.")] - FRF1SniperRifle = 8 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState.Type +{ + /// + /// Enumeration values for FrenchWeaponsForLifeForms (es.type.71.kind.3.subcat, French Weapons for Life Forms Subcategory, + /// section 4.2.3.3.4) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum FrenchWeaponsForLifeForms : byte + { + /// + /// ACL-STRIM. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ACL-STRIM.")] + ACLSTRIM = 1, + + /// + /// Mistral missile. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mistral missile.")] + MistralMissile = 2, + + /// + /// Milan AT missile. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Milan AT missile.")] + MilanATMissile = 3, + + /// + /// LRAC F1 89-mm AT rocket launcher. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("LRAC F1 89-mm AT rocket launcher.")] + LRACF189MmATRocketLauncher = 4, + + /// + /// FA-MAS rifle. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("FA-MAS rifle.")] + FAMASRifle = 5, + + /// + /// AA-52 machine gun. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AA-52 machine gun.")] + AA52MachineGun = 6, + + /// + /// 58-mm rifle grenade. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("58-mm rifle grenade.")] + _58MmRifleGrenade = 7, + + /// + /// FR-F1 sniper rifle. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("FR-F1 sniper rifle.")] + FRF1SniperRifle = 8 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/GermanWeaponsForLifeForms.cs b/Libs/CsharpDis6/Enumerations/EntityState.Type/GermanWeaponsForLifeForms.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/GermanWeaponsForLifeForms.cs rename to Libs/CsharpDis6/Enumerations/EntityState.Type/GermanWeaponsForLifeForms.cs index 9114fe8..858a5ee 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/GermanWeaponsForLifeForms.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState.Type/GermanWeaponsForLifeForms.cs @@ -1,119 +1,119 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState.Type -{ - /// - /// Enumeration values for GermanWeaponsForLifeForms (es.type.78.kind.3.subcat, German Weapons for Life Forms Subcategory, - /// section 4.2.3.3.5) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum GermanWeaponsForLifeForms : byte - { - /// - /// G3 rifle. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("G3 rifle.")] - G3Rifle = 1, - - /// - /// G11 rifle. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("G11 rifle.")] - G11Rifle = 2, - - /// - /// P1 pistol. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("P1 pistol.")] - P1Pistol = 3, - - /// - /// MG3 machine gun. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("MG3 machine gun.")] - MG3MachineGun = 4, - - /// - /// Milan missile. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Milan missile.")] - MilanMissile = 5, - - /// - /// MP1 Uzi submachine gun. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("MP1 Uzi submachine gun.")] - MP1UziSubmachineGun = 6, - - /// - /// Panzerfaust 3 Light Anti-Tank Weapon. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Panzerfaust 3 Light Anti-Tank Weapon.")] - Panzerfaust3LightAntiTankWeapon = 7, - - /// - /// DM19 hand grenade. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DM19 hand grenade.")] - DM19HandGrenade = 8, - - /// - /// DM29 hand grenade. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DM29 hand grenade.")] - DM29HandGrenade = 9 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState.Type +{ + /// + /// Enumeration values for GermanWeaponsForLifeForms (es.type.78.kind.3.subcat, German Weapons for Life Forms Subcategory, + /// section 4.2.3.3.5) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum GermanWeaponsForLifeForms : byte + { + /// + /// G3 rifle. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("G3 rifle.")] + G3Rifle = 1, + + /// + /// G11 rifle. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("G11 rifle.")] + G11Rifle = 2, + + /// + /// P1 pistol. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("P1 pistol.")] + P1Pistol = 3, + + /// + /// MG3 machine gun. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("MG3 machine gun.")] + MG3MachineGun = 4, + + /// + /// Milan missile. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Milan missile.")] + MilanMissile = 5, + + /// + /// MP1 Uzi submachine gun. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("MP1 Uzi submachine gun.")] + MP1UziSubmachineGun = 6, + + /// + /// Panzerfaust 3 Light Anti-Tank Weapon. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Panzerfaust 3 Light Anti-Tank Weapon.")] + Panzerfaust3LightAntiTankWeapon = 7, + + /// + /// DM19 hand grenade. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DM19 hand grenade.")] + DM19HandGrenade = 8, + + /// + /// DM29 hand grenade. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DM29 hand grenade.")] + DM29HandGrenade = 9 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/LandPlatform.cs b/Libs/CsharpDis6/Enumerations/EntityState.Type/LandPlatform.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/LandPlatform.cs rename to Libs/CsharpDis6/Enumerations/EntityState.Type/LandPlatform.cs index 1d3d72c..02c785a 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/LandPlatform.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState.Type/LandPlatform.cs @@ -1,439 +1,439 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState.Type -{ - /// - /// Enumeration values for LandPlatform (es.type.kind.1.domain.1.cat, Platform-Land Category, - /// section 4.2.1.1.3.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum LandPlatform : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Tank. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tank.")] - Tank = 1, - - /// - /// Armored Fighting Vehicle - (IFV, APC, SP mortars, armored cars, chemical reconnaissance, anti-tank guided missile launchers, etc.). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Armored Fighting Vehicle - (IFV, APC, SP mortars, armored cars, chemical reconnaissance, anti-tank guided missile launchers, etc.).")] - ArmoredFightingVehicle = 2, - - /// - /// Armored Utility Vehicle - (Engineering vehicle, tracked load carriers, towing vehicles, recovery vehicles, AVLB, etc.). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Armored Utility Vehicle - (Engineering vehicle, tracked load carriers, towing vehicles, recovery vehicles, AVLB, etc.).")] - ArmoredUtilityVehicle = 3, - - /// - /// Self-propelled Artillery - (guns and howitzers). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Self-propelled Artillery - (guns and howitzers).")] - SelfPropelledArtillery = 4, - - /// - /// Towed Artillery - (anti-tank guns, guns and howitzers). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Towed Artillery - (anti-tank guns, guns and howitzers).")] - TowedArtillery = 5, - - /// - /// Small Wheeled Utility Vehicle - (0-1.25 tons). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Small Wheeled Utility Vehicle - (0-1.25 tons).")] - SmallWheeledUtilityVehicle = 6, - - /// - /// Large Wheeled Utility Vehicle - (greater than 1.25 tons). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Large Wheeled Utility Vehicle - (greater than 1.25 tons).")] - LargeWheeledUtilityVehicle = 7, - - /// - /// Small Tracked Utility Vehicle - (0-4999 kg weight load). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Small Tracked Utility Vehicle - (0-4999 kg weight load).")] - SmallTrackedUtilityVehicle = 8, - - /// - /// Large Tracked Utility Vehicle - (greater than 4999 kg weight load). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Large Tracked Utility Vehicle - (greater than 4999 kg weight load).")] - LargeTrackedUtilityVehicle = 9, - - /// - /// Mortar. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mortar.")] - Mortar = 10, - - /// - /// Mine plow. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mine plow.")] - MinePlow = 11, - - /// - /// Mine rake. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mine rake.")] - MineRake = 12, - - /// - /// Mine roller. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mine roller.")] - MineRoller = 13, - - /// - /// Cargo trailer. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Cargo trailer.")] - CargoTrailer = 14, - - /// - /// Fuel trailer. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuel trailer.")] - FuelTrailer = 15, - - /// - /// Generator trailer. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Generator trailer.")] - GeneratorTrailer = 16, - - /// - /// Water trailer. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Water trailer.")] - WaterTrailer = 17, - - /// - /// Engineer equipment. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Engineer equipment.")] - EngineerEquipment = 18, - - /// - /// Heavy equipment transport trailer. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Heavy equipment transport trailer.")] - HeavyEquipmentTransportTrailer = 19, - - /// - /// Maintenance equipment trailer. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Maintenance equipment trailer.")] - MaintenanceEquipmentTrailer = 20, - - /// - /// Limber. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Limber.")] - Limber = 21, - - /// - /// Chemical decontamination trailer. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Chemical decontamination trailer.")] - ChemicalDecontaminationTrailer = 22, - - /// - /// Warning System. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Warning System.")] - WarningSystem = 23, - - /// - /// Train - Engine. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Train - Engine.")] - TrainEngine = 24, - - /// - /// Train - Car. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Train - Car.")] - TrainCar = 25, - - /// - /// Train - Caboose. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Train - Caboose.")] - TrainCaboose = 26, - - /// - /// Civilian Vehicle. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Civilian Vehicle.")] - CivilianVehicle = 27, - - /// - /// Air Defense / Missile Defense Unit Equipment. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Air Defense / Missile Defense Unit Equipment.")] - AirDefenseMissileDefenseUnitEquipment = 28, - - /// - /// Command, Control, Communications, and Intelligence (C3I) System. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Command, Control, Communications, and Intelligence (C3I) System.")] - CommandControlCommunicationsAndIntelligenceC3ISystem = 29, - - /// - /// Operations Facility. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Operations Facility.")] - OperationsFacility = 30, - - /// - /// Intelligence Facility. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Intelligence Facility.")] - IntelligenceFacility = 31, - - /// - /// Surveillance Facility. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Surveillance Facility.")] - SurveillanceFacility = 32, - - /// - /// Communications Facility. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Communications Facility.")] - CommunicationsFacility = 33, - - /// - /// Command Facility. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Command Facility.")] - CommandFacility = 34, - - /// - /// C4I Facility. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("C4I Facility.")] - C4IFacility = 35, - - /// - /// Control Facility. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Control Facility.")] - ControlFacility = 36, - - /// - /// Fire Control Facility. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fire Control Facility.")] - FireControlFacility = 37, - - /// - /// Missile Defense Facility. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Missile Defense Facility.")] - MissileDefenseFacility = 38, - - /// - /// Field Command Post. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Field Command Post.")] - FieldCommandPost = 39, - - /// - /// Observation Post. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Observation Post.")] - ObservationPost = 40 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState.Type +{ + /// + /// Enumeration values for LandPlatform (es.type.kind.1.domain.1.cat, Platform-Land Category, + /// section 4.2.1.1.3.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum LandPlatform : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Tank. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tank.")] + Tank = 1, + + /// + /// Armored Fighting Vehicle - (IFV, APC, SP mortars, armored cars, chemical reconnaissance, anti-tank guided missile launchers, etc.). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Armored Fighting Vehicle - (IFV, APC, SP mortars, armored cars, chemical reconnaissance, anti-tank guided missile launchers, etc.).")] + ArmoredFightingVehicle = 2, + + /// + /// Armored Utility Vehicle - (Engineering vehicle, tracked load carriers, towing vehicles, recovery vehicles, AVLB, etc.). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Armored Utility Vehicle - (Engineering vehicle, tracked load carriers, towing vehicles, recovery vehicles, AVLB, etc.).")] + ArmoredUtilityVehicle = 3, + + /// + /// Self-propelled Artillery - (guns and howitzers). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Self-propelled Artillery - (guns and howitzers).")] + SelfPropelledArtillery = 4, + + /// + /// Towed Artillery - (anti-tank guns, guns and howitzers). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Towed Artillery - (anti-tank guns, guns and howitzers).")] + TowedArtillery = 5, + + /// + /// Small Wheeled Utility Vehicle - (0-1.25 tons). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Small Wheeled Utility Vehicle - (0-1.25 tons).")] + SmallWheeledUtilityVehicle = 6, + + /// + /// Large Wheeled Utility Vehicle - (greater than 1.25 tons). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Large Wheeled Utility Vehicle - (greater than 1.25 tons).")] + LargeWheeledUtilityVehicle = 7, + + /// + /// Small Tracked Utility Vehicle - (0-4999 kg weight load). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Small Tracked Utility Vehicle - (0-4999 kg weight load).")] + SmallTrackedUtilityVehicle = 8, + + /// + /// Large Tracked Utility Vehicle - (greater than 4999 kg weight load). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Large Tracked Utility Vehicle - (greater than 4999 kg weight load).")] + LargeTrackedUtilityVehicle = 9, + + /// + /// Mortar. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mortar.")] + Mortar = 10, + + /// + /// Mine plow. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mine plow.")] + MinePlow = 11, + + /// + /// Mine rake. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mine rake.")] + MineRake = 12, + + /// + /// Mine roller. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mine roller.")] + MineRoller = 13, + + /// + /// Cargo trailer. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Cargo trailer.")] + CargoTrailer = 14, + + /// + /// Fuel trailer. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuel trailer.")] + FuelTrailer = 15, + + /// + /// Generator trailer. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Generator trailer.")] + GeneratorTrailer = 16, + + /// + /// Water trailer. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Water trailer.")] + WaterTrailer = 17, + + /// + /// Engineer equipment. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Engineer equipment.")] + EngineerEquipment = 18, + + /// + /// Heavy equipment transport trailer. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Heavy equipment transport trailer.")] + HeavyEquipmentTransportTrailer = 19, + + /// + /// Maintenance equipment trailer. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Maintenance equipment trailer.")] + MaintenanceEquipmentTrailer = 20, + + /// + /// Limber. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Limber.")] + Limber = 21, + + /// + /// Chemical decontamination trailer. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Chemical decontamination trailer.")] + ChemicalDecontaminationTrailer = 22, + + /// + /// Warning System. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Warning System.")] + WarningSystem = 23, + + /// + /// Train - Engine. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Train - Engine.")] + TrainEngine = 24, + + /// + /// Train - Car. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Train - Car.")] + TrainCar = 25, + + /// + /// Train - Caboose. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Train - Caboose.")] + TrainCaboose = 26, + + /// + /// Civilian Vehicle. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Civilian Vehicle.")] + CivilianVehicle = 27, + + /// + /// Air Defense / Missile Defense Unit Equipment. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Air Defense / Missile Defense Unit Equipment.")] + AirDefenseMissileDefenseUnitEquipment = 28, + + /// + /// Command, Control, Communications, and Intelligence (C3I) System. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Command, Control, Communications, and Intelligence (C3I) System.")] + CommandControlCommunicationsAndIntelligenceC3ISystem = 29, + + /// + /// Operations Facility. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Operations Facility.")] + OperationsFacility = 30, + + /// + /// Intelligence Facility. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Intelligence Facility.")] + IntelligenceFacility = 31, + + /// + /// Surveillance Facility. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Surveillance Facility.")] + SurveillanceFacility = 32, + + /// + /// Communications Facility. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Communications Facility.")] + CommunicationsFacility = 33, + + /// + /// Command Facility. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Command Facility.")] + CommandFacility = 34, + + /// + /// C4I Facility. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("C4I Facility.")] + C4IFacility = 35, + + /// + /// Control Facility. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Control Facility.")] + ControlFacility = 36, + + /// + /// Fire Control Facility. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fire Control Facility.")] + FireControlFacility = 37, + + /// + /// Missile Defense Facility. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Missile Defense Facility.")] + MissileDefenseFacility = 38, + + /// + /// Field Command Post. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Field Command Post.")] + FieldCommandPost = 39, + + /// + /// Observation Post. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Observation Post.")] + ObservationPost = 40 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/Munition.cs b/Libs/CsharpDis6/Enumerations/EntityState.Type/Munition.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/Munition.cs rename to Libs/CsharpDis6/Enumerations/EntityState.Type/Munition.cs index 7673506..f2b834e 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/Munition.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState.Type/Munition.cs @@ -1,159 +1,159 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState.Type -{ - /// - /// Enumeration values for Munition (es.type.kind.2.domain, Munition Domain, - /// section 4.2.1.2.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum Munition : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Anti-Air. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Anti-Air.")] - AntiAir = 1, - - /// - /// Anti-Armor. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Anti-Armor.")] - AntiArmor = 2, - - /// - /// Anti-Guided Weapon. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Anti-Guided Weapon.")] - AntiGuidedWeapon = 3, - - /// - /// Antiradar. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Antiradar.")] - Antiradar = 4, - - /// - /// Antisatellite. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Antisatellite.")] - Antisatellite = 5, - - /// - /// Antiship. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Antiship.")] - Antiship = 6, - - /// - /// Antisubmarine. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Antisubmarine.")] - Antisubmarine = 7, - - /// - /// Antipersonnel. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Antipersonnel.")] - Antipersonnel = 8, - - /// - /// Battlefield Support. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Battlefield Support.")] - BattlefieldSupport = 9, - - /// - /// Strategic. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Strategic.")] - Strategic = 10, - - /// - /// Tactical. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tactical.")] - Tactical = 11, - - /// - /// Directed Energy (DE) Weapon. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Directed Energy (DE) Weapon.")] - DirectedEnergyDEWeapon = 12 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState.Type +{ + /// + /// Enumeration values for Munition (es.type.kind.2.domain, Munition Domain, + /// section 4.2.1.2.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum Munition : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Anti-Air. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Anti-Air.")] + AntiAir = 1, + + /// + /// Anti-Armor. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Anti-Armor.")] + AntiArmor = 2, + + /// + /// Anti-Guided Weapon. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Anti-Guided Weapon.")] + AntiGuidedWeapon = 3, + + /// + /// Antiradar. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Antiradar.")] + Antiradar = 4, + + /// + /// Antisatellite. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Antisatellite.")] + Antisatellite = 5, + + /// + /// Antiship. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Antiship.")] + Antiship = 6, + + /// + /// Antisubmarine. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Antisubmarine.")] + Antisubmarine = 7, + + /// + /// Antipersonnel. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Antipersonnel.")] + Antipersonnel = 8, + + /// + /// Battlefield Support. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Battlefield Support.")] + BattlefieldSupport = 9, + + /// + /// Strategic. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Strategic.")] + Strategic = 10, + + /// + /// Tactical. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tactical.")] + Tactical = 11, + + /// + /// Directed Energy (DE) Weapon. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Directed Energy (DE) Weapon.")] + DirectedEnergyDEWeapon = 12 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/MunitionCategory.cs b/Libs/CsharpDis6/Enumerations/EntityState.Type/MunitionCategory.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/MunitionCategory.cs rename to Libs/CsharpDis6/Enumerations/EntityState.Type/MunitionCategory.cs index 72d523f..a17fa53 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/MunitionCategory.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState.Type/MunitionCategory.cs @@ -1,69 +1,69 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState.Type -{ - /// - /// Enumeration values for MunitionCategory (es.type.kind.2.cat, Munition Category, - /// section 4.2.1.2.3) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum MunitionCategory : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Guided. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Guided.")] - Guided = 1, - - /// - /// Ballistic. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ballistic.")] - Ballistic = 2, - - /// - /// Fixed. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fixed.")] - Fixed = 3 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState.Type +{ + /// + /// Enumeration values for MunitionCategory (es.type.kind.2.cat, Munition Category, + /// section 4.2.1.2.3) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum MunitionCategory : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Guided. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Guided.")] + Guided = 1, + + /// + /// Ballistic. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ballistic.")] + Ballistic = 2, + + /// + /// Fixed. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fixed.")] + Fixed = 3 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/Platform.cs b/Libs/CsharpDis6/Enumerations/EntityState.Type/Platform.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/Platform.cs rename to Libs/CsharpDis6/Enumerations/EntityState.Type/Platform.cs index dfb1d9e..e4035aa 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/Platform.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState.Type/Platform.cs @@ -1,89 +1,89 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState.Type -{ - /// - /// Enumeration values for Platform (es.type.kind.1.domain, Platform Domain, - /// section 4.2.1.1.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum Platform : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Land. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Land.")] - Land = 1, - - /// - /// Air. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Air.")] - Air = 2, - - /// - /// Surface. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Surface.")] - Surface = 3, - - /// - /// Subsurface. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Subsurface.")] - Subsurface = 4, - - /// - /// Space. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Space.")] - Space = 5 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState.Type +{ + /// + /// Enumeration values for Platform (es.type.kind.1.domain, Platform Domain, + /// section 4.2.1.1.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum Platform : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Land. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Land.")] + Land = 1, + + /// + /// Air. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Air.")] + Air = 2, + + /// + /// Surface. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Surface.")] + Surface = 3, + + /// + /// Subsurface. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Subsurface.")] + Subsurface = 4, + + /// + /// Space. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Space.")] + Space = 5 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/RadioCategory.cs b/Libs/CsharpDis6/Enumerations/EntityState.Type/RadioCategory.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/RadioCategory.cs rename to Libs/CsharpDis6/Enumerations/EntityState.Type/RadioCategory.cs index 33db707..60e3a87 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/RadioCategory.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState.Type/RadioCategory.cs @@ -1,239 +1,239 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState.Type -{ - /// - /// Enumeration values for RadioCategory (es.type.kind.7.cat, Radio Category, - /// section 4.2.1.7.3) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum RadioCategory : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Voice Transmission/Reception. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Voice Transmission/Reception.")] - VoiceTransmissionReception = 1, - - /// - /// Data Link Transmission/Reception. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Data Link Transmission/Reception.")] - DataLinkTransmissionReception = 2, - - /// - /// Voice and Data Link Transmission/Reception. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Voice and Data Link Transmission/Reception.")] - VoiceAndDataLinkTransmissionReception = 3, - - /// - /// Instrumented Landing System (ILS) Glideslope Transmitter. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Instrumented Landing System (ILS) Glideslope Transmitter.")] - InstrumentedLandingSystemILSGlideslopeTransmitter = 4, - - /// - /// Instrumented Landing System (ILS) Localizer Transmitter. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Instrumented Landing System (ILS) Localizer Transmitter.")] - InstrumentedLandingSystemILSLocalizerTransmitter = 5, - - /// - /// Instrumented Landing System (ILS) Outer Marker Beacon. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Instrumented Landing System (ILS) Outer Marker Beacon.")] - InstrumentedLandingSystemILSOuterMarkerBeacon = 6, - - /// - /// Instrumented Landing System (ILS) Middle Marker Beacon. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Instrumented Landing System (ILS) Middle Marker Beacon.")] - InstrumentedLandingSystemILSMiddleMarkerBeacon = 7, - - /// - /// Instrumented Landing System (ILS) Inner Marker Beacon. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Instrumented Landing System (ILS) Inner Marker Beacon.")] - InstrumentedLandingSystemILSInnerMarkerBeacon = 8, - - /// - /// Instrumented Landing System (ILS) Receiver (Platform Radio). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Instrumented Landing System (ILS) Receiver (Platform Radio).")] - InstrumentedLandingSystemILSReceiverPlatformRadio = 9, - - /// - /// Tactical Air Navigation (TACAN) Transmitter (Ground Fixed Equipment). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tactical Air Navigation (TACAN) Transmitter (Ground Fixed Equipment).")] - TacticalAirNavigationTACANTransmitterGroundFixedEquipment = 10, - - /// - /// Tactical Air Navigation (TACAN) Receiver (Moving Platform Equipment). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tactical Air Navigation (TACAN) Receiver (Moving Platform Equipment).")] - TacticalAirNavigationTACANReceiverMovingPlatformEquipment = 11, - - /// - /// Tactical Air Navigation (TACAN) Transmitter/Receiver (Moving Platform Equipment). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tactical Air Navigation (TACAN) Transmitter/Receiver (Moving Platform Equipment).")] - TacticalAirNavigationTACANTransmitterReceiverMovingPlatformEquipment = 12, - - /// - /// Variable Omni-Ranging (VOR) Transmitter (Ground Fixed Equipment). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Variable Omni-Ranging (VOR) Transmitter (Ground Fixed Equipment).")] - VariableOmniRangingVORTransmitterGroundFixedEquipment = 13, - - /// - /// Variable Omni-Ranging (VOR) with Distance Measuring Equipment (DME) Transmitter (Ground Fixed Equipment). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Variable Omni-Ranging (VOR) with Distance Measuring Equipment (DME) Transmitter (Ground Fixed Equipment).")] - VariableOmniRangingVORWithDistanceMeasuringEquipmentDMETransmitterGroundFixedEquipment = 14, - - /// - /// Combined VOR/ILS Receiver (Moving Platform Equipment). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Combined VOR/ILS Receiver (Moving Platform Equipment).")] - CombinedVORILSReceiverMovingPlatformEquipment = 15, - - /// - /// Combined VOR & TACAN (VORTAC) Transmitter. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Combined VOR & TACAN (VORTAC) Transmitter.")] - CombinedVORTACANVORTACTransmitter = 16, - - /// - /// Non-Directional Beacon (NDB) Transmitter. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Non-Directional Beacon (NDB) Transmitter.")] - NonDirectionalBeaconNDBTransmitter = 17, - - /// - /// Non-Directional Beacon (NDB) Receiver. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Non-Directional Beacon (NDB) Receiver.")] - NonDirectionalBeaconNDBReceiver = 18, - - /// - /// Non-Directional Beacon (NDB) with Distance Measuring Equipment (DME) Transmitter. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Non-Directional Beacon (NDB) with Distance Measuring Equipment (DME) Transmitter.")] - NonDirectionalBeaconNDBWithDistanceMeasuringEquipmentDMETransmitter = 19, - - /// - /// Distance Measuring Equipment (DME). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Distance Measuring Equipment (DME).")] - DistanceMeasuringEquipmentDME = 20 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState.Type +{ + /// + /// Enumeration values for RadioCategory (es.type.kind.7.cat, Radio Category, + /// section 4.2.1.7.3) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum RadioCategory : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Voice Transmission/Reception. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Voice Transmission/Reception.")] + VoiceTransmissionReception = 1, + + /// + /// Data Link Transmission/Reception. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Data Link Transmission/Reception.")] + DataLinkTransmissionReception = 2, + + /// + /// Voice and Data Link Transmission/Reception. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Voice and Data Link Transmission/Reception.")] + VoiceAndDataLinkTransmissionReception = 3, + + /// + /// Instrumented Landing System (ILS) Glideslope Transmitter. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Instrumented Landing System (ILS) Glideslope Transmitter.")] + InstrumentedLandingSystemILSGlideslopeTransmitter = 4, + + /// + /// Instrumented Landing System (ILS) Localizer Transmitter. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Instrumented Landing System (ILS) Localizer Transmitter.")] + InstrumentedLandingSystemILSLocalizerTransmitter = 5, + + /// + /// Instrumented Landing System (ILS) Outer Marker Beacon. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Instrumented Landing System (ILS) Outer Marker Beacon.")] + InstrumentedLandingSystemILSOuterMarkerBeacon = 6, + + /// + /// Instrumented Landing System (ILS) Middle Marker Beacon. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Instrumented Landing System (ILS) Middle Marker Beacon.")] + InstrumentedLandingSystemILSMiddleMarkerBeacon = 7, + + /// + /// Instrumented Landing System (ILS) Inner Marker Beacon. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Instrumented Landing System (ILS) Inner Marker Beacon.")] + InstrumentedLandingSystemILSInnerMarkerBeacon = 8, + + /// + /// Instrumented Landing System (ILS) Receiver (Platform Radio). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Instrumented Landing System (ILS) Receiver (Platform Radio).")] + InstrumentedLandingSystemILSReceiverPlatformRadio = 9, + + /// + /// Tactical Air Navigation (TACAN) Transmitter (Ground Fixed Equipment). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tactical Air Navigation (TACAN) Transmitter (Ground Fixed Equipment).")] + TacticalAirNavigationTACANTransmitterGroundFixedEquipment = 10, + + /// + /// Tactical Air Navigation (TACAN) Receiver (Moving Platform Equipment). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tactical Air Navigation (TACAN) Receiver (Moving Platform Equipment).")] + TacticalAirNavigationTACANReceiverMovingPlatformEquipment = 11, + + /// + /// Tactical Air Navigation (TACAN) Transmitter/Receiver (Moving Platform Equipment). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tactical Air Navigation (TACAN) Transmitter/Receiver (Moving Platform Equipment).")] + TacticalAirNavigationTACANTransmitterReceiverMovingPlatformEquipment = 12, + + /// + /// Variable Omni-Ranging (VOR) Transmitter (Ground Fixed Equipment). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Variable Omni-Ranging (VOR) Transmitter (Ground Fixed Equipment).")] + VariableOmniRangingVORTransmitterGroundFixedEquipment = 13, + + /// + /// Variable Omni-Ranging (VOR) with Distance Measuring Equipment (DME) Transmitter (Ground Fixed Equipment). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Variable Omni-Ranging (VOR) with Distance Measuring Equipment (DME) Transmitter (Ground Fixed Equipment).")] + VariableOmniRangingVORWithDistanceMeasuringEquipmentDMETransmitterGroundFixedEquipment = 14, + + /// + /// Combined VOR/ILS Receiver (Moving Platform Equipment). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Combined VOR/ILS Receiver (Moving Platform Equipment).")] + CombinedVORILSReceiverMovingPlatformEquipment = 15, + + /// + /// Combined VOR & TACAN (VORTAC) Transmitter. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Combined VOR & TACAN (VORTAC) Transmitter.")] + CombinedVORTACANVORTACTransmitter = 16, + + /// + /// Non-Directional Beacon (NDB) Transmitter. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Non-Directional Beacon (NDB) Transmitter.")] + NonDirectionalBeaconNDBTransmitter = 17, + + /// + /// Non-Directional Beacon (NDB) Receiver. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Non-Directional Beacon (NDB) Receiver.")] + NonDirectionalBeaconNDBReceiver = 18, + + /// + /// Non-Directional Beacon (NDB) with Distance Measuring Equipment (DME) Transmitter. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Non-Directional Beacon (NDB) with Distance Measuring Equipment (DME) Transmitter.")] + NonDirectionalBeaconNDBWithDistanceMeasuringEquipmentDMETransmitter = 19, + + /// + /// Distance Measuring Equipment (DME). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Distance Measuring Equipment (DME).")] + DistanceMeasuringEquipmentDME = 20 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/RadioNomenclature.cs b/Libs/CsharpDis6/Enumerations/EntityState.Type/RadioNomenclature.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/RadioNomenclature.cs rename to Libs/CsharpDis6/Enumerations/EntityState.Type/RadioNomenclature.cs index 3ad2869..3dacde2 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/RadioNomenclature.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState.Type/RadioNomenclature.cs @@ -1,79 +1,79 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState.Type -{ - /// - /// Enumeration values for RadioNomenclature (es.type.kind.7.nomenclature, Radio Nomenclature, - /// section 4.2.1.7.5) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum RadioNomenclature : ushort - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// AN/ARN-118. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/ARN-118.")] - ANARN118 = 1, - - /// - /// AN/ARN-139. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AN/ARN-139.")] - ANARN139 = 2, - - /// - /// Generic Ground Fixed Transmitter. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Generic Ground Fixed Transmitter.")] - GenericGroundFixedTransmitter = 3, - - /// - /// Generic Ground Mobile Transmitter. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Generic Ground Mobile Transmitter.")] - GenericGroundMobileTransmitter = 4 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState.Type +{ + /// + /// Enumeration values for RadioNomenclature (es.type.kind.7.nomenclature, Radio Nomenclature, + /// section 4.2.1.7.5) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum RadioNomenclature : ushort + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// AN/ARN-118. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/ARN-118.")] + ANARN118 = 1, + + /// + /// AN/ARN-139. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AN/ARN-139.")] + ANARN139 = 2, + + /// + /// Generic Ground Fixed Transmitter. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Generic Ground Fixed Transmitter.")] + GenericGroundFixedTransmitter = 3, + + /// + /// Generic Ground Mobile Transmitter. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Generic Ground Mobile Transmitter.")] + GenericGroundMobileTransmitter = 4 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/RadioNomenclatureVersion.cs b/Libs/CsharpDis6/Enumerations/EntityState.Type/RadioNomenclatureVersion.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/RadioNomenclatureVersion.cs rename to Libs/CsharpDis6/Enumerations/EntityState.Type/RadioNomenclatureVersion.cs index 9955b48..d6e92e7 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/RadioNomenclatureVersion.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState.Type/RadioNomenclatureVersion.cs @@ -1,69 +1,69 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState.Type -{ - /// - /// Enumeration values for RadioNomenclatureVersion (es.type.kind.7.version, Radio-Nomenclature Version, - /// section 4.2.1.7.4) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum RadioNomenclatureVersion : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Joint Electronics Type Designation System (JETDS) Nomenclature (AN/ per Mil-STD-196). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Joint Electronics Type Designation System (JETDS) Nomenclature (AN/ per Mil-STD-196).")] - JointElectronicsTypeDesignationSystemJETDSNomenclatureANPerMilSTD196 = 1, - - /// - /// Manufacturer Designation. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Manufacturer Designation.")] - ManufacturerDesignation = 2, - - /// - /// National Designation. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("National Designation.")] - NationalDesignation = 3 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState.Type +{ + /// + /// Enumeration values for RadioNomenclatureVersion (es.type.kind.7.version, Radio-Nomenclature Version, + /// section 4.2.1.7.4) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum RadioNomenclatureVersion : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Joint Electronics Type Designation System (JETDS) Nomenclature (AN/ per Mil-STD-196). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Joint Electronics Type Designation System (JETDS) Nomenclature (AN/ per Mil-STD-196).")] + JointElectronicsTypeDesignationSystemJETDSNomenclatureANPerMilSTD196 = 1, + + /// + /// Manufacturer Designation. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Manufacturer Designation.")] + ManufacturerDesignation = 2, + + /// + /// National Designation. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("National Designation.")] + NationalDesignation = 3 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/SensorEmitterCategory.cs b/Libs/CsharpDis6/Enumerations/EntityState.Type/SensorEmitterCategory.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/SensorEmitterCategory.cs rename to Libs/CsharpDis6/Enumerations/EntityState.Type/SensorEmitterCategory.cs index be8967c..46e486b 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/SensorEmitterCategory.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState.Type/SensorEmitterCategory.cs @@ -1,199 +1,199 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState.Type -{ - /// - /// Enumeration values for SensorEmitterCategory (es.type.kind.9.cat, Sensor/Emitter Category, - /// section 4.2.1.9.3) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum SensorEmitterCategory : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Multi-spectral. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Multi-spectral.")] - MultiSpectral = 1, - - /// - /// RF Active. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("RF Active.")] - RFActive = 2, - - /// - /// RF Passive (intercept and DF). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("RF Passive (intercept and DF).")] - RFPassiveInterceptAndDF = 3, - - /// - /// Optical (direct viewing with or without optics). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Optical (direct viewing with or without optics).")] - OpticalDirectViewingWithOrWithoutOptics = 4, - - /// - /// Electro-Optical. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Electro-Optical.")] - ElectroOptical = 5, - - /// - /// Seismic. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Seismic.")] - Seismic = 6, - - /// - /// Chemical, point detector. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Chemical, point detector.")] - ChemicalPointDetector = 7, - - /// - /// Chemical, standoff. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Chemical, standoff.")] - ChemicalStandoff = 8, - - /// - /// Thermal (temperature sensing). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Thermal (temperature sensing).")] - ThermalTemperatureSensing = 9, - - /// - /// Acoustic, Active. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Acoustic, Active.")] - AcousticActive = 10, - - /// - /// Acoustic, Passive. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Acoustic, Passive.")] - AcousticPassive = 11, - - /// - /// Contact/Pressure (physical, hydrostatic, barometric). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Contact/Pressure (physical, hydrostatic, barometric).")] - ContactPressurePhysicalHydrostaticBarometric = 12, - - /// - /// Electro-Magnetic Radiation (gamma radiation). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Electro-Magnetic Radiation (gamma radiation).")] - ElectroMagneticRadiationGammaRadiation = 13, - - /// - /// Particle Radiation (Neutrons, alpha, beta particles). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Particle Radiation (Neutrons, alpha, beta particles).")] - ParticleRadiationNeutronsAlphaBetaParticles = 14, - - /// - /// Magnetic. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Magnetic.")] - Magnetic = 15, - - /// - /// Gravitational. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Gravitational.")] - Gravitational = 16 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState.Type +{ + /// + /// Enumeration values for SensorEmitterCategory (es.type.kind.9.cat, Sensor/Emitter Category, + /// section 4.2.1.9.3) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum SensorEmitterCategory : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Multi-spectral. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Multi-spectral.")] + MultiSpectral = 1, + + /// + /// RF Active. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("RF Active.")] + RFActive = 2, + + /// + /// RF Passive (intercept and DF). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("RF Passive (intercept and DF).")] + RFPassiveInterceptAndDF = 3, + + /// + /// Optical (direct viewing with or without optics). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Optical (direct viewing with or without optics).")] + OpticalDirectViewingWithOrWithoutOptics = 4, + + /// + /// Electro-Optical. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Electro-Optical.")] + ElectroOptical = 5, + + /// + /// Seismic. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Seismic.")] + Seismic = 6, + + /// + /// Chemical, point detector. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Chemical, point detector.")] + ChemicalPointDetector = 7, + + /// + /// Chemical, standoff. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Chemical, standoff.")] + ChemicalStandoff = 8, + + /// + /// Thermal (temperature sensing). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Thermal (temperature sensing).")] + ThermalTemperatureSensing = 9, + + /// + /// Acoustic, Active. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Acoustic, Active.")] + AcousticActive = 10, + + /// + /// Acoustic, Passive. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Acoustic, Passive.")] + AcousticPassive = 11, + + /// + /// Contact/Pressure (physical, hydrostatic, barometric). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Contact/Pressure (physical, hydrostatic, barometric).")] + ContactPressurePhysicalHydrostaticBarometric = 12, + + /// + /// Electro-Magnetic Radiation (gamma radiation). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Electro-Magnetic Radiation (gamma radiation).")] + ElectroMagneticRadiationGammaRadiation = 13, + + /// + /// Particle Radiation (Neutrons, alpha, beta particles). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Particle Radiation (Neutrons, alpha, beta particles).")] + ParticleRadiationNeutronsAlphaBetaParticles = 14, + + /// + /// Magnetic. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Magnetic.")] + Magnetic = 15, + + /// + /// Gravitational. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Gravitational.")] + Gravitational = 16 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/SpacePlatform.cs b/Libs/CsharpDis6/Enumerations/EntityState.Type/SpacePlatform.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/SpacePlatform.cs rename to Libs/CsharpDis6/Enumerations/EntityState.Type/SpacePlatform.cs index 6541138..156be3b 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/SpacePlatform.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState.Type/SpacePlatform.cs @@ -1,69 +1,69 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState.Type -{ - /// - /// Enumeration values for SpacePlatform (es.type.kind.1.domain.5.cat, Platform-Space Category, - /// section 4.2.1.1.3.5) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum SpacePlatform : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Manned. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Manned.")] - Manned = 1, - - /// - /// Unmanned. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Unmanned.")] - Unmanned = 2, - - /// - /// Booster. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Booster.")] - Booster = 3 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState.Type +{ + /// + /// Enumeration values for SpacePlatform (es.type.kind.1.domain.5.cat, Platform-Space Category, + /// section 4.2.1.1.3.5) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum SpacePlatform : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Manned. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Manned.")] + Manned = 1, + + /// + /// Unmanned. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Unmanned.")] + Unmanned = 2, + + /// + /// Booster. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Booster.")] + Booster = 3 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/SubsufracePlatform.cs b/Libs/CsharpDis6/Enumerations/EntityState.Type/SubsufracePlatform.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/SubsufracePlatform.cs rename to Libs/CsharpDis6/Enumerations/EntityState.Type/SubsufracePlatform.cs index cee487a..e106e6c 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/SubsufracePlatform.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState.Type/SubsufracePlatform.cs @@ -1,109 +1,109 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState.Type -{ - /// - /// Enumeration values for SubsufracePlatform (es.type.kind.1.domain.4.cat, Platform-Subsurface Category, - /// section 4.2.1.1.3.4) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum SubsufracePlatform : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// SSBN (Nuclear Ballistic Missile). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SSBN (Nuclear Ballistic Missile).")] - NuclearBallisticMissile = 1, - - /// - /// SSGN (Nuclear Guided Missile). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SSGN (Nuclear Guided Missile).")] - NuclearGuidedMissile = 2, - - /// - /// SSN (Nuclear Attack - Torpedo). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SSN (Nuclear Attack - Torpedo).")] - NuclearAttackTorpedo = 3, - - /// - /// SSG (Conventional Guided Missile). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SSG (Conventional Guided Missile).")] - ConventionalGuidedMissile = 4, - - /// - /// SS (Conventional Attack - Torpedo, Patrol). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SS (Conventional Attack - Torpedo, Patrol).")] - ConventionalAttackTorpedoPatrol = 5, - - /// - /// SSAN (Nuclear Auxiliary). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SSAN (Nuclear Auxiliary).")] - NuclearAuxiliary = 6, - - /// - /// SSA (Conventional Auxiliary). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SSA (Conventional Auxiliary).")] - ConventionalAuxiliary = 7 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState.Type +{ + /// + /// Enumeration values for SubsufracePlatform (es.type.kind.1.domain.4.cat, Platform-Subsurface Category, + /// section 4.2.1.1.3.4) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum SubsufracePlatform : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// SSBN (Nuclear Ballistic Missile). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SSBN (Nuclear Ballistic Missile).")] + NuclearBallisticMissile = 1, + + /// + /// SSGN (Nuclear Guided Missile). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SSGN (Nuclear Guided Missile).")] + NuclearGuidedMissile = 2, + + /// + /// SSN (Nuclear Attack - Torpedo). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SSN (Nuclear Attack - Torpedo).")] + NuclearAttackTorpedo = 3, + + /// + /// SSG (Conventional Guided Missile). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SSG (Conventional Guided Missile).")] + ConventionalGuidedMissile = 4, + + /// + /// SS (Conventional Attack - Torpedo, Patrol). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SS (Conventional Attack - Torpedo, Patrol).")] + ConventionalAttackTorpedoPatrol = 5, + + /// + /// SSAN (Nuclear Auxiliary). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SSAN (Nuclear Auxiliary).")] + NuclearAuxiliary = 6, + + /// + /// SSA (Conventional Auxiliary). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SSA (Conventional Auxiliary).")] + ConventionalAuxiliary = 7 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/SurfacePlatform.cs b/Libs/CsharpDis6/Enumerations/EntityState.Type/SurfacePlatform.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/SurfacePlatform.cs rename to Libs/CsharpDis6/Enumerations/EntityState.Type/SurfacePlatform.cs index 7498a95..dc3a766 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/SurfacePlatform.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState.Type/SurfacePlatform.cs @@ -1,359 +1,359 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState.Type -{ - /// - /// Enumeration values for SurfacePlatform (es.type.kind.1.domain.3.cat, Platform-Surface Category, - /// section 4.2.1.1.3.3) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum SurfacePlatform : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Carrier. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Carrier.")] - Carrier = 1, - - /// - /// Command Ship/Cruiser. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Command Ship/Cruiser.")] - CommandShipCruiser = 2, - - /// - /// Guided Missile Cruiser. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Guided Missile Cruiser.")] - GuidedMissileCruiser = 3, - - /// - /// Guided Missile Destroyer (DDG). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Guided Missile Destroyer (DDG).")] - GuidedMissileDestroyerDDG = 4, - - /// - /// Destroyer (DD). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Destroyer (DD).")] - DestroyerDD = 5, - - /// - /// Guided Missile Frigate (FFG). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Guided Missile Frigate (FFG).")] - GuidedMissileFrigateFFG = 6, - - /// - /// Light/Patrol Craft. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Light/Patrol Craft.")] - LightPatrolCraft = 7, - - /// - /// Mine Countermeasure Ship/Craft. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mine Countermeasure Ship/Craft.")] - MineCountermeasureShipCraft = 8, - - /// - /// Dock Landing Ship. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Dock Landing Ship.")] - DockLandingShip = 9, - - /// - /// Tank Landing Ship. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tank Landing Ship.")] - TankLandingShip = 10, - - /// - /// Landing Craft. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Landing Craft.")] - LandingCraft = 11, - - /// - /// Light Carrier. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Light Carrier.")] - LightCarrier = 12, - - /// - /// Cruiser/Helicopter Carrier. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Cruiser/Helicopter Carrier.")] - CruiserHelicopterCarrier = 13, - - /// - /// Hydrofoil. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Hydrofoil.")] - Hydrofoil = 14, - - /// - /// Air Cushion/Surface Effect. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Air Cushion/Surface Effect.")] - AirCushionSurfaceEffect = 15, - - /// - /// Auxiliary. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Auxiliary.")] - Auxiliary = 16, - - /// - /// Auxiliary, Merchant Marine. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Auxiliary, Merchant Marine.")] - AuxiliaryMerchantMarine = 17, - - /// - /// Utility. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Utility.")] - Utility = 18, - - /// - /// Frigate (including Corvette). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Frigate (including Corvette).")] - FrigateIncludingCorvette = 50, - - /// - /// Battleship. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Battleship.")] - Battleship = 51, - - /// - /// Heavy Cruiser. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Heavy Cruiser.")] - HeavyCruiser = 52, - - /// - /// Destroyer Tender. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Destroyer Tender.")] - DestroyerTender = 53, - - /// - /// Amphibious Assault Ship. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Amphibious Assault Ship.")] - AmphibiousAssaultShip = 54, - - /// - /// Amphibious Cargo Ship. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Amphibious Cargo Ship.")] - AmphibiousCargoShip = 55, - - /// - /// Amphibious Transport Dock. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Amphibious Transport Dock.")] - AmphibiousTransportDock = 56, - - /// - /// Ammunition Ship. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ammunition Ship.")] - AmmunitionShip = 57, - - /// - /// Combat Stores Ship. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Combat Stores Ship.")] - CombatStoresShip = 58, - - /// - /// Surveillance Towed Array Sonar System (SURTASS). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Surveillance Towed Array Sonar System (SURTASS).")] - SurveillanceTowedArraySonarSystemSURTASS = 59, - - /// - /// Fast Combat Support Ship. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fast Combat Support Ship.")] - FastCombatSupportShip = 60, - - /// - /// Non-Combatant Ship. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Non-Combatant Ship.")] - NonCombatantShip = 61, - - /// - /// Coast Guard Cutters. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Coast Guard Cutters.")] - CoastGuardCutters = 62, - - /// - /// Coast Guard Boats. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Coast Guard Boats.")] - CoastGuardBoats = 63 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState.Type +{ + /// + /// Enumeration values for SurfacePlatform (es.type.kind.1.domain.3.cat, Platform-Surface Category, + /// section 4.2.1.1.3.3) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum SurfacePlatform : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Carrier. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Carrier.")] + Carrier = 1, + + /// + /// Command Ship/Cruiser. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Command Ship/Cruiser.")] + CommandShipCruiser = 2, + + /// + /// Guided Missile Cruiser. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Guided Missile Cruiser.")] + GuidedMissileCruiser = 3, + + /// + /// Guided Missile Destroyer (DDG). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Guided Missile Destroyer (DDG).")] + GuidedMissileDestroyerDDG = 4, + + /// + /// Destroyer (DD). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Destroyer (DD).")] + DestroyerDD = 5, + + /// + /// Guided Missile Frigate (FFG). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Guided Missile Frigate (FFG).")] + GuidedMissileFrigateFFG = 6, + + /// + /// Light/Patrol Craft. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Light/Patrol Craft.")] + LightPatrolCraft = 7, + + /// + /// Mine Countermeasure Ship/Craft. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mine Countermeasure Ship/Craft.")] + MineCountermeasureShipCraft = 8, + + /// + /// Dock Landing Ship. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Dock Landing Ship.")] + DockLandingShip = 9, + + /// + /// Tank Landing Ship. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tank Landing Ship.")] + TankLandingShip = 10, + + /// + /// Landing Craft. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Landing Craft.")] + LandingCraft = 11, + + /// + /// Light Carrier. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Light Carrier.")] + LightCarrier = 12, + + /// + /// Cruiser/Helicopter Carrier. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Cruiser/Helicopter Carrier.")] + CruiserHelicopterCarrier = 13, + + /// + /// Hydrofoil. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Hydrofoil.")] + Hydrofoil = 14, + + /// + /// Air Cushion/Surface Effect. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Air Cushion/Surface Effect.")] + AirCushionSurfaceEffect = 15, + + /// + /// Auxiliary. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Auxiliary.")] + Auxiliary = 16, + + /// + /// Auxiliary, Merchant Marine. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Auxiliary, Merchant Marine.")] + AuxiliaryMerchantMarine = 17, + + /// + /// Utility. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Utility.")] + Utility = 18, + + /// + /// Frigate (including Corvette). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Frigate (including Corvette).")] + FrigateIncludingCorvette = 50, + + /// + /// Battleship. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Battleship.")] + Battleship = 51, + + /// + /// Heavy Cruiser. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Heavy Cruiser.")] + HeavyCruiser = 52, + + /// + /// Destroyer Tender. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Destroyer Tender.")] + DestroyerTender = 53, + + /// + /// Amphibious Assault Ship. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Amphibious Assault Ship.")] + AmphibiousAssaultShip = 54, + + /// + /// Amphibious Cargo Ship. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Amphibious Cargo Ship.")] + AmphibiousCargoShip = 55, + + /// + /// Amphibious Transport Dock. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Amphibious Transport Dock.")] + AmphibiousTransportDock = 56, + + /// + /// Ammunition Ship. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ammunition Ship.")] + AmmunitionShip = 57, + + /// + /// Combat Stores Ship. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Combat Stores Ship.")] + CombatStoresShip = 58, + + /// + /// Surveillance Towed Array Sonar System (SURTASS). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Surveillance Towed Array Sonar System (SURTASS).")] + SurveillanceTowedArraySonarSystemSURTASS = 59, + + /// + /// Fast Combat Support Ship. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fast Combat Support Ship.")] + FastCombatSupportShip = 60, + + /// + /// Non-Combatant Ship. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Non-Combatant Ship.")] + NonCombatantShip = 61, + + /// + /// Coast Guard Cutters. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Coast Guard Cutters.")] + CoastGuardCutters = 62, + + /// + /// Coast Guard Boats. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Coast Guard Boats.")] + CoastGuardBoats = 63 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/UKWeaponsForLifeForms.cs b/Libs/CsharpDis6/Enumerations/EntityState.Type/UKWeaponsForLifeForms.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/UKWeaponsForLifeForms.cs rename to Libs/CsharpDis6/Enumerations/EntityState.Type/UKWeaponsForLifeForms.cs index 1f01266..19c70d3 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/UKWeaponsForLifeForms.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState.Type/UKWeaponsForLifeForms.cs @@ -1,149 +1,149 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState.Type -{ - /// - /// Enumeration values for UKWeaponsForLifeForms (es.type.224.kind.3.subcat, U.K. Weapons for Life Forms Subcategory, - /// section 4.2.3.3.3) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum UKWeaponsForLifeForms : byte - { - /// - /// LAW 80. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("LAW 80.")] - LAW80 = 1, - - /// - /// Blowpipe. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Blowpipe.")] - Blowpipe = 2, - - /// - /// Javelin. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Javelin.")] - Javelin = 3, - - /// - /// 51-mm mortar. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("51-mm mortar.")] - _51MmMortar = 4, - - /// - /// SLR 7.62-mm rifle. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SLR 7.62-mm rifle.")] - SLR762MmRifle = 5, - - /// - /// Sterling 9-mm submachine gun. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sterling 9-mm submachine gun.")] - Sterling9MmSubmachineGun = 6, - - /// - /// L7A2 general purpose MG. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("L7A2 general purpose MG.")] - L7A2GeneralPurposeMG = 7, - - /// - /// L6 Wombat Recoilless rifle,. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("L6 Wombat Recoilless rifle,.")] - L6WombatRecoillessRifle = 8, - - /// - /// Carl Gustav 89-mm recoilless rifle. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Carl Gustav 89-mm recoilless rifle.")] - CarlGustav89MmRecoillessRifle = 9, - - /// - /// SA80 Individual/light support weapon. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SA80 Individual/light support weapon.")] - SA80IndividualLightSupportWeapon = 10, - - /// - /// Trigat. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Trigat.")] - Trigat = 11, - - /// - /// Milan AT missile. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Milan AT missile.")] - MilanATMissile = 12 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState.Type +{ + /// + /// Enumeration values for UKWeaponsForLifeForms (es.type.224.kind.3.subcat, U.K. Weapons for Life Forms Subcategory, + /// section 4.2.3.3.3) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum UKWeaponsForLifeForms : byte + { + /// + /// LAW 80. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("LAW 80.")] + LAW80 = 1, + + /// + /// Blowpipe. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Blowpipe.")] + Blowpipe = 2, + + /// + /// Javelin. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Javelin.")] + Javelin = 3, + + /// + /// 51-mm mortar. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("51-mm mortar.")] + _51MmMortar = 4, + + /// + /// SLR 7.62-mm rifle. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SLR 7.62-mm rifle.")] + SLR762MmRifle = 5, + + /// + /// Sterling 9-mm submachine gun. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sterling 9-mm submachine gun.")] + Sterling9MmSubmachineGun = 6, + + /// + /// L7A2 general purpose MG. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("L7A2 general purpose MG.")] + L7A2GeneralPurposeMG = 7, + + /// + /// L6 Wombat Recoilless rifle,. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("L6 Wombat Recoilless rifle,.")] + L6WombatRecoillessRifle = 8, + + /// + /// Carl Gustav 89-mm recoilless rifle. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Carl Gustav 89-mm recoilless rifle.")] + CarlGustav89MmRecoillessRifle = 9, + + /// + /// SA80 Individual/light support weapon. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SA80 Individual/light support weapon.")] + SA80IndividualLightSupportWeapon = 10, + + /// + /// Trigat. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Trigat.")] + Trigat = 11, + + /// + /// Milan AT missile. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Milan AT missile.")] + MilanATMissile = 12 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/USWeaponsForLifeForms.cs b/Libs/CsharpDis6/Enumerations/EntityState.Type/USWeaponsForLifeForms.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/USWeaponsForLifeForms.cs rename to Libs/CsharpDis6/Enumerations/EntityState.Type/USWeaponsForLifeForms.cs index 1ae7d3e..e720bc8 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState.Type/USWeaponsForLifeForms.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState.Type/USWeaponsForLifeForms.cs @@ -1,1249 +1,1249 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState.Type -{ - /// - /// Enumeration values for USWeaponsForLifeForms (es.type.225.kind.3.subcat, U.S. Weapons for Life Forms Subcategory, - /// section 4.2.3.3.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum USWeaponsForLifeForms : byte - { - /// - /// Assault machine pistol, KF-AMP. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Assault machine pistol, KF-AMP.")] - AssaultMachinePistolKFAMP = 1, - - /// - /// Automatic model 1911A1 .45. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Automatic model 1911A1 .45.")] - AutomaticModel1911A145 = 2, - - /// - /// Combat Master Mark VI .45, Detronics. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Combat Master Mark VI .45, Detronics.")] - CombatMasterMarkVI45Detronics = 3, - - /// - /// De-cocker KP90DC .45. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("De-cocker KP90DC .45.")] - DeCockerKP90DC45 = 4, - - /// - /// De-cocker KP91DC .40. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("De-cocker KP91DC .40.")] - DeCockerKP91DC40 = 5, - - /// - /// General officer's Model 15 .45. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("General officer's Model 15 .45.")] - GeneralOfficerSModel1545 = 6, - - /// - /// Nova 9-mm, LaFrance. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Nova 9-mm, LaFrance.")] - Nova9MmLaFrance = 7, - - /// - /// Personal Defense Weapon MP5K-PDW 9-mm. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Personal Defense Weapon MP5K-PDW 9-mm.")] - PersonalDefenseWeaponMP5KPDW9Mm = 8, - - /// - /// Silenced Colt .45, LaFrance. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Silenced Colt .45, LaFrance.")] - SilencedColt45LaFrance = 9, - - /// - /// 5900-series 9-mm, Smith & Wesson (S&W). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("5900-series 9-mm, Smith & Wesson (S&W).")] - _5900Series9MmSmithWessonSW = 10, - - /// - /// M9. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("M9.")] - M9 = 11, - - /// - /// Model 1911A1, Springfield Armory. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Model 1911A1, Springfield Armory.")] - Model1911A1SpringfieldArmory = 12, - - /// - /// Model 2000 9-mm. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Model 2000 9-mm.")] - Model20009Mm = 13, - - /// - /// P-9 9-mm, Springfield Armory. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("P-9 9-mm, Springfield Armory.")] - P99MmSpringfieldArmory = 14, - - /// - /// P-12 9-mm. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("P-12 9-mm.")] - P129Mm = 15, - - /// - /// P-85 Mark II 9-mm, Ruger. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("P-85 Mark II 9-mm, Ruger.")] - P85MarkII9MmRuger = 16, - - /// - /// Advanced Combat Rifle 5.56-mm, AAI. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Advanced Combat Rifle 5.56-mm, AAI.")] - AdvancedCombatRifle556MmAAI = 17, - - /// - /// Commando assault rifle, Model 733 5.56-mm, Colt. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Commando assault rifle, Model 733 5.56-mm, Colt.")] - CommandoAssaultRifleModel733556MmColt = 18, - - /// - /// Infantry rifle, Mini-14/20 GB 5.56-mm, Ruger. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Infantry rifle, Mini-14/20 GB 5.56-mm, Ruger.")] - InfantryRifleMini1420GB556MmRuger = 19, - - /// - /// Mini-14 5.56-mm, Ruger. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mini-14 5.56-mm, Ruger.")] - Mini14556MmRuger = 20, - - /// - /// Mini Thirty 7.62-mm, Ruger. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mini Thirty 7.62-mm, Ruger.")] - MiniThirty762MmRuger = 21, - - /// - /// Semi-automatic model 82A2 .50, Barrett. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Semi-automatic model 82A2 .50, Barrett.")] - SemiAutomaticModel82A250Barrett = 22, - - /// - /// Sniper Weapon System M24 7.62-mm. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sniper Weapon System M24 7.62-mm.")] - SniperWeaponSystemM24762Mm = 23, - - /// - /// Sniping rifle M21, Springfield Armory. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sniping rifle M21, Springfield Armory.")] - SnipingRifleM21SpringfieldArmory = 24, - - /// - /// Sniping rifle M40A1 7.62-mm. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sniping rifle M40A1 7.62-mm.")] - SnipingRifleM40A1762Mm = 25, - - /// - /// Sniping rifle M600 7.62-mm. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sniping rifle M600 7.62-mm.")] - SnipingRifleM600762Mm = 26, - - /// - /// AR-15 (M16) 5.56-mm. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AR-15 (M16) 5.56-mm.")] - AR15M16556Mm = 27, - - /// - /// M1 .30. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("M1 .30.")] - M130 = 28, - - /// - /// M14 7.62-mm, NATO. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("M14 7.62-mm, NATO.")] - M14762MmNATO = 29, - - /// - /// M14 (M1A, M1A1-A1), Springfield Armory. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("M14 (M1A, M1A1-A1), Springfield Armory.")] - M14M1AM1A1A1SpringfieldArmory = 30, - - /// - /// M14K assault rifle, LaFrance. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("M14K assault rifle, LaFrance.")] - M14KAssaultRifleLaFrance = 31, - - /// - /// M16A2 assault rifle 5.56-mm, Colt. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("M16A2 assault rifle 5.56-mm, Colt.")] - M16A2AssaultRifle556MmColt = 32, - - /// - /// M21 7.62-mm, U.S. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("M21 7.62-mm, U.S.")] - M21762MmUS = 33, - - /// - /// M77 Mark II 5.56-mm, Ruger. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("M77 Mark II 5.56-mm, Ruger.")] - M77MarkII556MmRuger = 34, - - /// - /// M77V 7.62-mm, Ruger. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("M77V 7.62-mm, Ruger.")] - M77V762MmRuger = 35, - - /// - /// S-16 7.62 x 36-mm, Grendel. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("S-16 7.62 x 36-mm, Grendel.")] - S16762X36MmGrendel = 36, - - /// - /// SAR-8 7.62-mm. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SAR-8 7.62-mm.")] - SAR8762Mm = 37, - - /// - /// SAR-4800 7.62-mm. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SAR-4800 7.62-mm.")] - SAR4800762Mm = 38, - - /// - /// Assault carbine M16K, LaFrance. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Assault carbine M16K, LaFrance.")] - AssaultCarbineM16KLaFrance = 39, - - /// - /// M1 .30. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("M1 .30.")] - M130_40 = 40, - - /// - /// M4 (Model 720) 5.56-mm, Colt. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("M4 (Model 720) 5.56-mm, Colt.")] - M4Model720556MmColt = 41, - - /// - /// M-900 9-mm, Calico. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("M-900 9-mm, Calico.")] - M9009MmCalico = 42, - - /// - /// AC-556F 5.56-mm, Ruger. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AC-556F 5.56-mm, Ruger.")] - AC556F556MmRuger = 43, - - /// - /// M3 .45. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("M3 .45.")] - M345 = 44, - - /// - /// M11, Cobray. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("M11, Cobray.")] - M11Cobray = 45, - - /// - /// M951 9-mm, Calico. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("M951 9-mm, Calico.")] - M9519MmCalico = 46, - - /// - /// MP5/10 10-mm. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("MP5/10 10-mm.")] - MP51010Mm = 47, - - /// - /// 9-mm, Colt. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("9-mm, Colt.")] - _9MmColt = 48, - - /// - /// Ingram. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ingram.")] - Ingram = 49, - - /// - /// Externally powered (EPG) 7.62-mm, Ares. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Externally powered (EPG) 7.62-mm, Ares.")] - ExternallyPoweredEPG762MmAres = 50, - - /// - /// GECAL 50. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("GECAL 50.")] - GECAL50 = 51, - - /// - /// General purpose M60 7.62-mm. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("General purpose M60 7.62-mm.")] - GeneralPurposeM60762Mm = 52, - - /// - /// Heavy M2HB-QCB .50, RAMO. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Heavy M2HB-QCB .50, RAMO.")] - HeavyM2HBQCB50RAMO = 53, - - /// - /// Light assault M60E3 (Enhanced) 7.62-mm. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Light assault M60E3 (Enhanced) 7.62-mm.")] - LightAssaultM60E3Enhanced762Mm = 54, - - /// - /// Light M16A2 5.56-mm, Colt. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Light M16A2 5.56-mm, Colt.")] - LightM16A2556MmColt = 55, - - /// - /// Light 5.56-mm, Ares. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Light 5.56-mm, Ares.")] - Light556MmAres = 56, - - /// - /// Lightweight M2 .50, RAMO. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Lightweight M2 .50, RAMO.")] - LightweightM250RAMO = 57, - - /// - /// Lightweight assault M60E3 7.62-mm. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Lightweight assault M60E3 7.62-mm.")] - LightweightAssaultM60E3762Mm = 58, - - /// - /// Minigun M134 7.62-mm, General Electric. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Minigun M134 7.62-mm, General Electric.")] - MinigunM134762MmGeneralElectric = 59, - - /// - /// MG system MK19 Mod 3, 40-mm. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("MG system MK19 Mod 3, 40-mm.")] - MGSystemMK19Mod340Mm = 60, - - /// - /// MG system (or kit) M2HB QCB .50, Saco Defense. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("MG system (or kit) M2HB QCB .50, Saco Defense.")] - MGSystemOrKitM2HBQCB50SacoDefense = 61, - - /// - /// M1919A4 .30-cal, Browning. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("M1919A4 .30-cal, Browning.")] - M1919A430CalBrowning = 62, - - /// - /// .50-cal, Browning. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description(".50-cal, Browning.")] - _50CalBrowning = 63, - - /// - /// Colored-smoke hand grenade M18. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Colored-smoke hand grenade M18.")] - ColoredSmokeHandGrenadeM18 = 64, - - /// - /// Colored-smoke grenades, Federal Laboratories. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Colored-smoke grenades, Federal Laboratories.")] - ColoredSmokeGrenadesFederalLaboratories = 65, - - /// - /// Infrared smoke grenade M76. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Infrared smoke grenade M76.")] - InfraredSmokeGrenadeM76 = 66, - - /// - /// Smoke hand grenade AN-M8 HC. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Smoke hand grenade AN-M8 HC.")] - SmokeHandGrenadeANM8HC = 67, - - /// - /// Delay fragmentation hand grenade M61. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Delay fragmentation hand grenade M61.")] - DelayFragmentationHandGrenadeM61 = 68, - - /// - /// Delay fragmentation hand grenade M67. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Delay fragmentation hand grenade M67.")] - DelayFragmentationHandGrenadeM67 = 69, - - /// - /// Impact fragmentation hand grenade M57. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Impact fragmentation hand grenade M57.")] - ImpactFragmentationHandGrenadeM57 = 70, - - /// - /// Impact fragmentation hand grenade M68. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Impact fragmentation hand grenade M68.")] - ImpactFragmentationHandGrenadeM68 = 71, - - /// - /// Incendiary hand grenade AN-M14 TH3. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Incendiary hand grenade AN-M14 TH3.")] - IncendiaryHandGrenadeANM14TH3 = 72, - - /// - /// Launcher I-M203 40-mm. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Launcher I-M203 40-mm.")] - LauncherIM20340Mm = 73, - - /// - /// Launcher M79 40-mm. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Launcher M79 40-mm.")] - LauncherM7940Mm = 74, - - /// - /// Multiple grenade launcher MM-1 40-mm. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Multiple grenade launcher MM-1 40-mm.")] - MultipleGrenadeLauncherMM140Mm = 75, - - /// - /// Multi-shot portable flame weapon M202A2 66-mm. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Multi-shot portable flame weapon M202A2 66-mm.")] - MultiShotPortableFlameWeaponM202A266Mm = 76, - - /// - /// Portable ABC-M9-7. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Portable ABC-M9-7.")] - PortableABCM97 = 77, - - /// - /// Portable M2A1-7. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Portable M2A1-7.")] - PortableM2A17 = 78, - - /// - /// Portable M9E1-7. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Portable M9E1-7.")] - PortableM9E17 = 79, - - /// - /// Dragon medium anti-armor missile, M47, FGM-77A. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Dragon medium anti-armor missile, M47, FGM-77A.")] - DragonMediumAntiArmorMissileM47FGM77A = 80, - - /// - /// Javelin AAWS-M. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Javelin AAWS-M.")] - JavelinAAWSM = 81, - - /// - /// Light Antitank Weapon M72 (LAW II). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Light Antitank Weapon M72 (LAW II).")] - LightAntitankWeaponM72LAWII = 82, - - /// - /// Redeye, FIM-43, General Dynamics. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Redeye, FIM-43, General Dynamics.")] - RedeyeFIM43GeneralDynamics = 83, - - /// - /// Saber dual-purpose missile system. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Saber dual-purpose missile system.")] - SaberDualPurposeMissileSystem = 84, - - /// - /// Stinger, FIM-92, General Dynamics. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Stinger, FIM-92, General Dynamics.")] - StingerFIM92GeneralDynamics = 85, - - /// - /// TOW heavy antitank weapon. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TOW heavy antitank weapon.")] - TOWHeavyAntitankWeapon = 86, - - /// - /// Bear Trap AP device, Pancor. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Bear Trap AP device, Pancor.")] - BearTrapAPDevicePancor = 87, - - /// - /// Chain Gun automatic weapon EX-34 7.62-mm. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Chain Gun automatic weapon EX-34 7.62-mm.")] - ChainGunAutomaticWeaponEX34762Mm = 88, - - /// - /// Close Assault Weapon System (CAWS), AAI. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Close Assault Weapon System (CAWS), AAI.")] - CloseAssaultWeaponSystemCAWSAAI = 89, - - /// - /// CAWS, Olin/Heckler and Koch. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("CAWS, Olin/Heckler and Koch.")] - CAWSOlinHecklerAndKoch = 90, - - /// - /// Crossfire SAM Model 88. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Crossfire SAM Model 88.")] - CrossfireSAMModel88 = 91, - - /// - /// Dragon and M16. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Dragon and M16.")] - DragonAndM16 = 92, - - /// - /// Firing port weapon M231, 5.56-mm, Colt. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Firing port weapon M231, 5.56-mm, Colt.")] - FiringPortWeaponM231556MmColt = 93, - - /// - /// Foxhole Digger Explosive Kit (EXFODA). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Foxhole Digger Explosive Kit (EXFODA).")] - FoxholeDiggerExplosiveKitEXFODA = 94, - - /// - /// Infantry Support Weapon ASP-30 {RM} 30-mm. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Infantry Support Weapon ASP-30 {RM} 30-mm.")] - InfantrySupportWeaponASP30RM30Mm = 95, - - /// - /// Jackhammer Mk 3-A2, Pancor. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Jackhammer Mk 3-A2, Pancor.")] - JackhammerMk3A2Pancor = 96, - - /// - /// Light anti-armor weapon M136 (AT4). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Light anti-armor weapon M136 (AT4).")] - LightAntiArmorWeaponM136AT4 = 97, - - /// - /// M26A2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("M26A2.")] - M26A2 = 98, - - /// - /// Master Key S. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Master Key S.")] - MasterKeyS = 99, - - /// - /// Minigun 5.56-mm. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Minigun 5.56-mm.")] - Minigun556Mm = 100, - - /// - /// Multipurpose Individual Munition (MPIM), Marquardt. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Multipurpose Individual Munition (MPIM), Marquardt.")] - MultipurposeIndividualMunitionMPIMMarquardt = 101, - - /// - /// Multipurpose weapon AT8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Multipurpose weapon AT8.")] - MultipurposeWeaponAT8 = 102, - - /// - /// Recoilless rifle M40, M40A2, and M40A4; 106-mm. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Recoilless rifle M40, M40A2, and M40A4; 106-mm.")] - RecoillessRifleM40M40A2AndM40A4106Mm = 103, - - /// - /// Recoilless rifle M67, 90-mm. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Recoilless rifle M67, 90-mm.")] - RecoillessRifleM6790Mm = 104, - - /// - /// Revolver, SP 101. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Revolver, SP 101.")] - RevolverSP101 = 105, - - /// - /// Revolver, Super Redhawk .44 magnum, Ruger. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Revolver, Super Redhawk .44 magnum, Ruger.")] - RevolverSuperRedhawk44MagnumRuger = 106, - - /// - /// RAW rocket, 140-mm, Brunswick. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("RAW rocket, 140-mm, Brunswick.")] - RAWRocket140MmBrunswick = 107, - - /// - /// Rifle-launcher Anti-Armor Munition (RAAM), Olin. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Rifle-launcher Anti-Armor Munition (RAAM), Olin.")] - RifleLauncherAntiArmorMunitionRAAMOlin = 108, - - /// - /// Rocket launcher M-20 3.5-in. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Rocket launcher M-20 3.5-in.")] - RocketLauncherM2035In = 109, - - /// - /// Rocket launcher, Enhanced M72 E series HEAT, 66-mm. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Rocket launcher, Enhanced M72 E series HEAT, 66-mm.")] - RocketLauncherEnhancedM72ESeriesHEAT66Mm = 110, - - /// - /// Selective fire weapon AC-556 5.56-mm, Ruger. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Selective fire weapon AC-556 5.56-mm, Ruger.")] - SelectiveFireWeaponAC556556MmRuger = 111, - - /// - /// Selective fire weapon AC-556F 5.56-mm, Ruger. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Selective fire weapon AC-556F 5.56-mm, Ruger.")] - SelectiveFireWeaponAC556F556MmRuger = 112, - - /// - /// Shotgun M870 Mk 1 (U.S. Marine Corps), Remington. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Shotgun M870 Mk 1 (U.S. Marine Corps), Remington.")] - ShotgunM870Mk1USMarineCorpsRemington = 113, - - /// - /// SMAW Mk 193, 83-mm, McDonnell-Douglas. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SMAW Mk 193, 83-mm, McDonnell-Douglas.")] - SMAWMk19383MmMcDonnellDouglas = 114, - - /// - /// SMAW-D: Disposable SMAW. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SMAW-D: Disposable SMAW.")] - SMAWDDisposableSMAW = 115, - - /// - /// Squad Automatic Weapon (SAW) M249 5.56-mm. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Squad Automatic Weapon (SAW) M249 5.56-mm.")] - SquadAutomaticWeaponSAWM249556Mm = 116, - - /// - /// Tactical Support Weapon 50/12, .50-cal, Peregrine. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tactical Support Weapon 50/12, .50-cal, Peregrine.")] - TacticalSupportWeapon501250CalPeregrine = 117, - - /// - /// Telescoped Ammunition Revolver Gun (TARG) .50-cal, Ares. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Telescoped Ammunition Revolver Gun (TARG) .50-cal, Ares.")] - TelescopedAmmunitionRevolverGunTARG50CalAres = 118, - - /// - /// Ultimate over-under combination, Ciener. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ultimate over-under combination, Ciener.")] - UltimateOverUnderCombinationCiener = 119, - - /// - /// M18A1 Claymore mine. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("M18A1 Claymore mine.")] - M18A1ClaymoreMine = 120, - - /// - /// Mortar 81-mm. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mortar 81-mm.")] - Mortar81Mm = 121, - - /// - /// Machinegun M240 7.62mm. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Machinegun M240 7.62mm.")] - MachinegunM240762mm = 134 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState.Type +{ + /// + /// Enumeration values for USWeaponsForLifeForms (es.type.225.kind.3.subcat, U.S. Weapons for Life Forms Subcategory, + /// section 4.2.3.3.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum USWeaponsForLifeForms : byte + { + /// + /// Assault machine pistol, KF-AMP. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Assault machine pistol, KF-AMP.")] + AssaultMachinePistolKFAMP = 1, + + /// + /// Automatic model 1911A1 .45. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Automatic model 1911A1 .45.")] + AutomaticModel1911A145 = 2, + + /// + /// Combat Master Mark VI .45, Detronics. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Combat Master Mark VI .45, Detronics.")] + CombatMasterMarkVI45Detronics = 3, + + /// + /// De-cocker KP90DC .45. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("De-cocker KP90DC .45.")] + DeCockerKP90DC45 = 4, + + /// + /// De-cocker KP91DC .40. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("De-cocker KP91DC .40.")] + DeCockerKP91DC40 = 5, + + /// + /// General officer's Model 15 .45. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("General officer's Model 15 .45.")] + GeneralOfficerSModel1545 = 6, + + /// + /// Nova 9-mm, LaFrance. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Nova 9-mm, LaFrance.")] + Nova9MmLaFrance = 7, + + /// + /// Personal Defense Weapon MP5K-PDW 9-mm. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Personal Defense Weapon MP5K-PDW 9-mm.")] + PersonalDefenseWeaponMP5KPDW9Mm = 8, + + /// + /// Silenced Colt .45, LaFrance. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Silenced Colt .45, LaFrance.")] + SilencedColt45LaFrance = 9, + + /// + /// 5900-series 9-mm, Smith & Wesson (S&W). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("5900-series 9-mm, Smith & Wesson (S&W).")] + _5900Series9MmSmithWessonSW = 10, + + /// + /// M9. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("M9.")] + M9 = 11, + + /// + /// Model 1911A1, Springfield Armory. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Model 1911A1, Springfield Armory.")] + Model1911A1SpringfieldArmory = 12, + + /// + /// Model 2000 9-mm. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Model 2000 9-mm.")] + Model20009Mm = 13, + + /// + /// P-9 9-mm, Springfield Armory. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("P-9 9-mm, Springfield Armory.")] + P99MmSpringfieldArmory = 14, + + /// + /// P-12 9-mm. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("P-12 9-mm.")] + P129Mm = 15, + + /// + /// P-85 Mark II 9-mm, Ruger. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("P-85 Mark II 9-mm, Ruger.")] + P85MarkII9MmRuger = 16, + + /// + /// Advanced Combat Rifle 5.56-mm, AAI. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Advanced Combat Rifle 5.56-mm, AAI.")] + AdvancedCombatRifle556MmAAI = 17, + + /// + /// Commando assault rifle, Model 733 5.56-mm, Colt. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Commando assault rifle, Model 733 5.56-mm, Colt.")] + CommandoAssaultRifleModel733556MmColt = 18, + + /// + /// Infantry rifle, Mini-14/20 GB 5.56-mm, Ruger. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Infantry rifle, Mini-14/20 GB 5.56-mm, Ruger.")] + InfantryRifleMini1420GB556MmRuger = 19, + + /// + /// Mini-14 5.56-mm, Ruger. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mini-14 5.56-mm, Ruger.")] + Mini14556MmRuger = 20, + + /// + /// Mini Thirty 7.62-mm, Ruger. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mini Thirty 7.62-mm, Ruger.")] + MiniThirty762MmRuger = 21, + + /// + /// Semi-automatic model 82A2 .50, Barrett. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Semi-automatic model 82A2 .50, Barrett.")] + SemiAutomaticModel82A250Barrett = 22, + + /// + /// Sniper Weapon System M24 7.62-mm. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sniper Weapon System M24 7.62-mm.")] + SniperWeaponSystemM24762Mm = 23, + + /// + /// Sniping rifle M21, Springfield Armory. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sniping rifle M21, Springfield Armory.")] + SnipingRifleM21SpringfieldArmory = 24, + + /// + /// Sniping rifle M40A1 7.62-mm. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sniping rifle M40A1 7.62-mm.")] + SnipingRifleM40A1762Mm = 25, + + /// + /// Sniping rifle M600 7.62-mm. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sniping rifle M600 7.62-mm.")] + SnipingRifleM600762Mm = 26, + + /// + /// AR-15 (M16) 5.56-mm. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AR-15 (M16) 5.56-mm.")] + AR15M16556Mm = 27, + + /// + /// M1 .30. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("M1 .30.")] + M130 = 28, + + /// + /// M14 7.62-mm, NATO. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("M14 7.62-mm, NATO.")] + M14762MmNATO = 29, + + /// + /// M14 (M1A, M1A1-A1), Springfield Armory. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("M14 (M1A, M1A1-A1), Springfield Armory.")] + M14M1AM1A1A1SpringfieldArmory = 30, + + /// + /// M14K assault rifle, LaFrance. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("M14K assault rifle, LaFrance.")] + M14KAssaultRifleLaFrance = 31, + + /// + /// M16A2 assault rifle 5.56-mm, Colt. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("M16A2 assault rifle 5.56-mm, Colt.")] + M16A2AssaultRifle556MmColt = 32, + + /// + /// M21 7.62-mm, U.S. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("M21 7.62-mm, U.S.")] + M21762MmUS = 33, + + /// + /// M77 Mark II 5.56-mm, Ruger. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("M77 Mark II 5.56-mm, Ruger.")] + M77MarkII556MmRuger = 34, + + /// + /// M77V 7.62-mm, Ruger. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("M77V 7.62-mm, Ruger.")] + M77V762MmRuger = 35, + + /// + /// S-16 7.62 x 36-mm, Grendel. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("S-16 7.62 x 36-mm, Grendel.")] + S16762X36MmGrendel = 36, + + /// + /// SAR-8 7.62-mm. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SAR-8 7.62-mm.")] + SAR8762Mm = 37, + + /// + /// SAR-4800 7.62-mm. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SAR-4800 7.62-mm.")] + SAR4800762Mm = 38, + + /// + /// Assault carbine M16K, LaFrance. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Assault carbine M16K, LaFrance.")] + AssaultCarbineM16KLaFrance = 39, + + /// + /// M1 .30. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("M1 .30.")] + M130_40 = 40, + + /// + /// M4 (Model 720) 5.56-mm, Colt. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("M4 (Model 720) 5.56-mm, Colt.")] + M4Model720556MmColt = 41, + + /// + /// M-900 9-mm, Calico. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("M-900 9-mm, Calico.")] + M9009MmCalico = 42, + + /// + /// AC-556F 5.56-mm, Ruger. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AC-556F 5.56-mm, Ruger.")] + AC556F556MmRuger = 43, + + /// + /// M3 .45. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("M3 .45.")] + M345 = 44, + + /// + /// M11, Cobray. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("M11, Cobray.")] + M11Cobray = 45, + + /// + /// M951 9-mm, Calico. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("M951 9-mm, Calico.")] + M9519MmCalico = 46, + + /// + /// MP5/10 10-mm. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("MP5/10 10-mm.")] + MP51010Mm = 47, + + /// + /// 9-mm, Colt. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("9-mm, Colt.")] + _9MmColt = 48, + + /// + /// Ingram. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ingram.")] + Ingram = 49, + + /// + /// Externally powered (EPG) 7.62-mm, Ares. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Externally powered (EPG) 7.62-mm, Ares.")] + ExternallyPoweredEPG762MmAres = 50, + + /// + /// GECAL 50. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("GECAL 50.")] + GECAL50 = 51, + + /// + /// General purpose M60 7.62-mm. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("General purpose M60 7.62-mm.")] + GeneralPurposeM60762Mm = 52, + + /// + /// Heavy M2HB-QCB .50, RAMO. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Heavy M2HB-QCB .50, RAMO.")] + HeavyM2HBQCB50RAMO = 53, + + /// + /// Light assault M60E3 (Enhanced) 7.62-mm. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Light assault M60E3 (Enhanced) 7.62-mm.")] + LightAssaultM60E3Enhanced762Mm = 54, + + /// + /// Light M16A2 5.56-mm, Colt. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Light M16A2 5.56-mm, Colt.")] + LightM16A2556MmColt = 55, + + /// + /// Light 5.56-mm, Ares. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Light 5.56-mm, Ares.")] + Light556MmAres = 56, + + /// + /// Lightweight M2 .50, RAMO. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Lightweight M2 .50, RAMO.")] + LightweightM250RAMO = 57, + + /// + /// Lightweight assault M60E3 7.62-mm. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Lightweight assault M60E3 7.62-mm.")] + LightweightAssaultM60E3762Mm = 58, + + /// + /// Minigun M134 7.62-mm, General Electric. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Minigun M134 7.62-mm, General Electric.")] + MinigunM134762MmGeneralElectric = 59, + + /// + /// MG system MK19 Mod 3, 40-mm. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("MG system MK19 Mod 3, 40-mm.")] + MGSystemMK19Mod340Mm = 60, + + /// + /// MG system (or kit) M2HB QCB .50, Saco Defense. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("MG system (or kit) M2HB QCB .50, Saco Defense.")] + MGSystemOrKitM2HBQCB50SacoDefense = 61, + + /// + /// M1919A4 .30-cal, Browning. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("M1919A4 .30-cal, Browning.")] + M1919A430CalBrowning = 62, + + /// + /// .50-cal, Browning. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description(".50-cal, Browning.")] + _50CalBrowning = 63, + + /// + /// Colored-smoke hand grenade M18. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Colored-smoke hand grenade M18.")] + ColoredSmokeHandGrenadeM18 = 64, + + /// + /// Colored-smoke grenades, Federal Laboratories. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Colored-smoke grenades, Federal Laboratories.")] + ColoredSmokeGrenadesFederalLaboratories = 65, + + /// + /// Infrared smoke grenade M76. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Infrared smoke grenade M76.")] + InfraredSmokeGrenadeM76 = 66, + + /// + /// Smoke hand grenade AN-M8 HC. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Smoke hand grenade AN-M8 HC.")] + SmokeHandGrenadeANM8HC = 67, + + /// + /// Delay fragmentation hand grenade M61. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Delay fragmentation hand grenade M61.")] + DelayFragmentationHandGrenadeM61 = 68, + + /// + /// Delay fragmentation hand grenade M67. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Delay fragmentation hand grenade M67.")] + DelayFragmentationHandGrenadeM67 = 69, + + /// + /// Impact fragmentation hand grenade M57. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Impact fragmentation hand grenade M57.")] + ImpactFragmentationHandGrenadeM57 = 70, + + /// + /// Impact fragmentation hand grenade M68. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Impact fragmentation hand grenade M68.")] + ImpactFragmentationHandGrenadeM68 = 71, + + /// + /// Incendiary hand grenade AN-M14 TH3. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Incendiary hand grenade AN-M14 TH3.")] + IncendiaryHandGrenadeANM14TH3 = 72, + + /// + /// Launcher I-M203 40-mm. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Launcher I-M203 40-mm.")] + LauncherIM20340Mm = 73, + + /// + /// Launcher M79 40-mm. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Launcher M79 40-mm.")] + LauncherM7940Mm = 74, + + /// + /// Multiple grenade launcher MM-1 40-mm. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Multiple grenade launcher MM-1 40-mm.")] + MultipleGrenadeLauncherMM140Mm = 75, + + /// + /// Multi-shot portable flame weapon M202A2 66-mm. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Multi-shot portable flame weapon M202A2 66-mm.")] + MultiShotPortableFlameWeaponM202A266Mm = 76, + + /// + /// Portable ABC-M9-7. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Portable ABC-M9-7.")] + PortableABCM97 = 77, + + /// + /// Portable M2A1-7. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Portable M2A1-7.")] + PortableM2A17 = 78, + + /// + /// Portable M9E1-7. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Portable M9E1-7.")] + PortableM9E17 = 79, + + /// + /// Dragon medium anti-armor missile, M47, FGM-77A. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Dragon medium anti-armor missile, M47, FGM-77A.")] + DragonMediumAntiArmorMissileM47FGM77A = 80, + + /// + /// Javelin AAWS-M. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Javelin AAWS-M.")] + JavelinAAWSM = 81, + + /// + /// Light Antitank Weapon M72 (LAW II). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Light Antitank Weapon M72 (LAW II).")] + LightAntitankWeaponM72LAWII = 82, + + /// + /// Redeye, FIM-43, General Dynamics. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Redeye, FIM-43, General Dynamics.")] + RedeyeFIM43GeneralDynamics = 83, + + /// + /// Saber dual-purpose missile system. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Saber dual-purpose missile system.")] + SaberDualPurposeMissileSystem = 84, + + /// + /// Stinger, FIM-92, General Dynamics. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Stinger, FIM-92, General Dynamics.")] + StingerFIM92GeneralDynamics = 85, + + /// + /// TOW heavy antitank weapon. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TOW heavy antitank weapon.")] + TOWHeavyAntitankWeapon = 86, + + /// + /// Bear Trap AP device, Pancor. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Bear Trap AP device, Pancor.")] + BearTrapAPDevicePancor = 87, + + /// + /// Chain Gun automatic weapon EX-34 7.62-mm. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Chain Gun automatic weapon EX-34 7.62-mm.")] + ChainGunAutomaticWeaponEX34762Mm = 88, + + /// + /// Close Assault Weapon System (CAWS), AAI. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Close Assault Weapon System (CAWS), AAI.")] + CloseAssaultWeaponSystemCAWSAAI = 89, + + /// + /// CAWS, Olin/Heckler and Koch. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("CAWS, Olin/Heckler and Koch.")] + CAWSOlinHecklerAndKoch = 90, + + /// + /// Crossfire SAM Model 88. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Crossfire SAM Model 88.")] + CrossfireSAMModel88 = 91, + + /// + /// Dragon and M16. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Dragon and M16.")] + DragonAndM16 = 92, + + /// + /// Firing port weapon M231, 5.56-mm, Colt. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Firing port weapon M231, 5.56-mm, Colt.")] + FiringPortWeaponM231556MmColt = 93, + + /// + /// Foxhole Digger Explosive Kit (EXFODA). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Foxhole Digger Explosive Kit (EXFODA).")] + FoxholeDiggerExplosiveKitEXFODA = 94, + + /// + /// Infantry Support Weapon ASP-30 {RM} 30-mm. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Infantry Support Weapon ASP-30 {RM} 30-mm.")] + InfantrySupportWeaponASP30RM30Mm = 95, + + /// + /// Jackhammer Mk 3-A2, Pancor. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Jackhammer Mk 3-A2, Pancor.")] + JackhammerMk3A2Pancor = 96, + + /// + /// Light anti-armor weapon M136 (AT4). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Light anti-armor weapon M136 (AT4).")] + LightAntiArmorWeaponM136AT4 = 97, + + /// + /// M26A2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("M26A2.")] + M26A2 = 98, + + /// + /// Master Key S. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Master Key S.")] + MasterKeyS = 99, + + /// + /// Minigun 5.56-mm. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Minigun 5.56-mm.")] + Minigun556Mm = 100, + + /// + /// Multipurpose Individual Munition (MPIM), Marquardt. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Multipurpose Individual Munition (MPIM), Marquardt.")] + MultipurposeIndividualMunitionMPIMMarquardt = 101, + + /// + /// Multipurpose weapon AT8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Multipurpose weapon AT8.")] + MultipurposeWeaponAT8 = 102, + + /// + /// Recoilless rifle M40, M40A2, and M40A4; 106-mm. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Recoilless rifle M40, M40A2, and M40A4; 106-mm.")] + RecoillessRifleM40M40A2AndM40A4106Mm = 103, + + /// + /// Recoilless rifle M67, 90-mm. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Recoilless rifle M67, 90-mm.")] + RecoillessRifleM6790Mm = 104, + + /// + /// Revolver, SP 101. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Revolver, SP 101.")] + RevolverSP101 = 105, + + /// + /// Revolver, Super Redhawk .44 magnum, Ruger. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Revolver, Super Redhawk .44 magnum, Ruger.")] + RevolverSuperRedhawk44MagnumRuger = 106, + + /// + /// RAW rocket, 140-mm, Brunswick. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("RAW rocket, 140-mm, Brunswick.")] + RAWRocket140MmBrunswick = 107, + + /// + /// Rifle-launcher Anti-Armor Munition (RAAM), Olin. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Rifle-launcher Anti-Armor Munition (RAAM), Olin.")] + RifleLauncherAntiArmorMunitionRAAMOlin = 108, + + /// + /// Rocket launcher M-20 3.5-in. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Rocket launcher M-20 3.5-in.")] + RocketLauncherM2035In = 109, + + /// + /// Rocket launcher, Enhanced M72 E series HEAT, 66-mm. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Rocket launcher, Enhanced M72 E series HEAT, 66-mm.")] + RocketLauncherEnhancedM72ESeriesHEAT66Mm = 110, + + /// + /// Selective fire weapon AC-556 5.56-mm, Ruger. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Selective fire weapon AC-556 5.56-mm, Ruger.")] + SelectiveFireWeaponAC556556MmRuger = 111, + + /// + /// Selective fire weapon AC-556F 5.56-mm, Ruger. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Selective fire weapon AC-556F 5.56-mm, Ruger.")] + SelectiveFireWeaponAC556F556MmRuger = 112, + + /// + /// Shotgun M870 Mk 1 (U.S. Marine Corps), Remington. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Shotgun M870 Mk 1 (U.S. Marine Corps), Remington.")] + ShotgunM870Mk1USMarineCorpsRemington = 113, + + /// + /// SMAW Mk 193, 83-mm, McDonnell-Douglas. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SMAW Mk 193, 83-mm, McDonnell-Douglas.")] + SMAWMk19383MmMcDonnellDouglas = 114, + + /// + /// SMAW-D: Disposable SMAW. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SMAW-D: Disposable SMAW.")] + SMAWDDisposableSMAW = 115, + + /// + /// Squad Automatic Weapon (SAW) M249 5.56-mm. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Squad Automatic Weapon (SAW) M249 5.56-mm.")] + SquadAutomaticWeaponSAWM249556Mm = 116, + + /// + /// Tactical Support Weapon 50/12, .50-cal, Peregrine. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tactical Support Weapon 50/12, .50-cal, Peregrine.")] + TacticalSupportWeapon501250CalPeregrine = 117, + + /// + /// Telescoped Ammunition Revolver Gun (TARG) .50-cal, Ares. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Telescoped Ammunition Revolver Gun (TARG) .50-cal, Ares.")] + TelescopedAmmunitionRevolverGunTARG50CalAres = 118, + + /// + /// Ultimate over-under combination, Ciener. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ultimate over-under combination, Ciener.")] + UltimateOverUnderCombinationCiener = 119, + + /// + /// M18A1 Claymore mine. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("M18A1 Claymore mine.")] + M18A1ClaymoreMine = 120, + + /// + /// Mortar 81-mm. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mortar 81-mm.")] + Mortar81Mm = 121, + + /// + /// Machinegun M240 7.62mm. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Machinegun M240 7.62mm.")] + MachinegunM240762mm = 134 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState/ArticulatedPartIndex.cs b/Libs/CsharpDis6/Enumerations/EntityState/ArticulatedPartIndex.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState/ArticulatedPartIndex.cs rename to Libs/CsharpDis6/Enumerations/EntityState/ArticulatedPartIndex.cs index a372f9f..2dbd909 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState/ArticulatedPartIndex.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState/ArticulatedPartIndex.cs @@ -1,1419 +1,1419 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState -{ - /// - /// Enumeration values for ArticulatedPartIndex (es.vp.type.0.articulated.index, Articulated parts index number, - /// section 4.7.3) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum ArticulatedPartIndex : uint - { - /// - /// rudder. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("rudder.")] - Rudder = 1024, - - /// - /// left flap. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("left flap.")] - LeftFlap = 1056, - - /// - /// right flap. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("right flap.")] - RightFlap = 1088, - - /// - /// left aileron. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("left aileron.")] - LeftAileron = 1120, - - /// - /// right aileron. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("right aileron.")] - RightAileron = 1152, - - /// - /// helicopter - main rotor. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("helicopter - main rotor.")] - HelicopterMainRotor = 1184, - - /// - /// helicopter - tail rotor. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("helicopter - tail rotor.")] - HelicopterTailRotor = 1216, - - /// - /// other Aircraft Control Surfaces defined as needed. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("other Aircraft Control Surfaces defined as needed.")] - OtherAircraftControlSurfacesDefinedAsNeeded = 1248, - - /// - /// periscope. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("periscope.")] - Periscope = 2048, - - /// - /// generic antenna. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("generic antenna.")] - GenericAntenna = 2080, - - /// - /// snorkel. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("snorkel.")] - Snorkel = 2112, - - /// - /// other extendible parts defined as needed. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("other extendible parts defined as needed.")] - OtherExtendiblePartsDefinedAsNeeded = 2144, - - /// - /// landing gear. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("landing gear.")] - LandingGear = 3072, - - /// - /// tail hook. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("tail hook.")] - TailHook = 3104, - - /// - /// speed brake. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("speed brake.")] - SpeedBrake = 3136, - - /// - /// left weapon bay door. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("left weapon bay door.")] - LeftWeaponBayDoor = 3168, - - /// - /// right weapon bay doors. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("right weapon bay doors.")] - RightWeaponBayDoors = 3200, - - /// - /// tank or APC hatch. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("tank or APC hatch.")] - TankOrAPCHatch = 3232, - - /// - /// wingsweep. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("wingsweep.")] - Wingsweep = 3264, - - /// - /// Bridge launcher. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Bridge launcher.")] - BridgeLauncher = 3296, - - /// - /// Bridge section 1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Bridge section 1.")] - BridgeSection1 = 3328, - - /// - /// Bridge section 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Bridge section 2.")] - BridgeSection2 = 3360, - - /// - /// Bridge section 3. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Bridge section 3.")] - BridgeSection3 = 3392, - - /// - /// Primary blade 1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary blade 1.")] - PrimaryBlade1 = 3424, - - /// - /// Primary blade 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary blade 2.")] - PrimaryBlade2 = 3456, - - /// - /// Primary boom. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary boom.")] - PrimaryBoom = 3488, - - /// - /// Primary launcher arm. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary launcher arm.")] - PrimaryLauncherArm = 3520, - - /// - /// other fixed position parts defined as needed. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("other fixed position parts defined as needed.")] - OtherFixedPositionPartsDefinedAsNeeded = 3552, - - /// - /// Primary turret number 1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary turret number 1.")] - PrimaryTurretNumber1 = 4096, - - /// - /// Primary turret number 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary turret number 2.")] - PrimaryTurretNumber2 = 4128, - - /// - /// Primary turret number 3. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary turret number 3.")] - PrimaryTurretNumber3 = 4160, - - /// - /// Primary turret number 4. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary turret number 4.")] - PrimaryTurretNumber4 = 4192, - - /// - /// Primary turret number 5. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary turret number 5.")] - PrimaryTurretNumber5 = 4224, - - /// - /// Primary turret number 6. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary turret number 6.")] - PrimaryTurretNumber6 = 4256, - - /// - /// Primary turret number 7. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary turret number 7.")] - PrimaryTurretNumber7 = 4288, - - /// - /// Primary turret number 8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary turret number 8.")] - PrimaryTurretNumber8 = 4320, - - /// - /// Primary turret number 9. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary turret number 9.")] - PrimaryTurretNumber9 = 4352, - - /// - /// Primary turret number 10. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary turret number 10.")] - PrimaryTurretNumber10 = 4384, - - /// - /// Primary gun number 1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary gun number 1.")] - PrimaryGunNumber1 = 4416, - - /// - /// Primary gun number 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary gun number 2.")] - PrimaryGunNumber2 = 4448, - - /// - /// Primary gun number 3. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary gun number 3.")] - PrimaryGunNumber3 = 4480, - - /// - /// Primary gun number 4. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary gun number 4.")] - PrimaryGunNumber4 = 4512, - - /// - /// Primary gun number 5. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary gun number 5.")] - PrimaryGunNumber5 = 4544, - - /// - /// Primary gun number 6. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary gun number 6.")] - PrimaryGunNumber6 = 4576, - - /// - /// Primary gun number 7. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary gun number 7.")] - PrimaryGunNumber7 = 4608, - - /// - /// Primary gun number 8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary gun number 8.")] - PrimaryGunNumber8 = 4640, - - /// - /// Primary gun number 9. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary gun number 9.")] - PrimaryGunNumber9 = 4672, - - /// - /// Primary gun number 10. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary gun number 10.")] - PrimaryGunNumber10 = 4704, - - /// - /// Primary launcher 1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary launcher 1.")] - PrimaryLauncher1 = 4736, - - /// - /// Primary launcher 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary launcher 2.")] - PrimaryLauncher2 = 4768, - - /// - /// Primary launcher 3. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary launcher 3.")] - PrimaryLauncher3 = 4800, - - /// - /// Primary launcher 4. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary launcher 4.")] - PrimaryLauncher4 = 4832, - - /// - /// Primary launcher 5. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary launcher 5.")] - PrimaryLauncher5 = 4864, - - /// - /// Primary launcher 6. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary launcher 6.")] - PrimaryLauncher6 = 4896, - - /// - /// Primary launcher 7. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary launcher 7.")] - PrimaryLauncher7 = 4928, - - /// - /// Primary launcher 8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary launcher 8.")] - PrimaryLauncher8 = 4960, - - /// - /// Primary launcher 9. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary launcher 9.")] - PrimaryLauncher9 = 4992, - - /// - /// Primary launcher 10. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary launcher 10.")] - PrimaryLauncher10 = 5024, - - /// - /// Primary defense systems 1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary defense systems 1.")] - PrimaryDefenseSystems1 = 5056, - - /// - /// Primary defense systems 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary defense systems 2.")] - PrimaryDefenseSystems2 = 5088, - - /// - /// Primary defense systems 3. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary defense systems 3.")] - PrimaryDefenseSystems3 = 5120, - - /// - /// Primary defense systems 4. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary defense systems 4.")] - PrimaryDefenseSystems4 = 5152, - - /// - /// Primary defense systems 5. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary defense systems 5.")] - PrimaryDefenseSystems5 = 5184, - - /// - /// Primary defense systems 6. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary defense systems 6.")] - PrimaryDefenseSystems6 = 5216, - - /// - /// Primary defense systems 7. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary defense systems 7.")] - PrimaryDefenseSystems7 = 5248, - - /// - /// Primary defense systems 8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary defense systems 8.")] - PrimaryDefenseSystems8 = 5280, - - /// - /// Primary defense systems 9. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary defense systems 9.")] - PrimaryDefenseSystems9 = 5312, - - /// - /// Primary defense systems 10. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary defense systems 10.")] - PrimaryDefenseSystems10 = 5344, - - /// - /// Primary radar 1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary radar 1.")] - PrimaryRadar1 = 5376, - - /// - /// Primary radar 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary radar 2.")] - PrimaryRadar2 = 5408, - - /// - /// Primary radar 3. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary radar 3.")] - PrimaryRadar3 = 5440, - - /// - /// Primary radar 4. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary radar 4.")] - PrimaryRadar4 = 5472, - - /// - /// Primary radar 5. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary radar 5.")] - PrimaryRadar5 = 5504, - - /// - /// Primary radar 6. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary radar 6.")] - PrimaryRadar6 = 5536, - - /// - /// Primary radar 7. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary radar 7.")] - PrimaryRadar7 = 5568, - - /// - /// Primary radar 8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary radar 8.")] - PrimaryRadar8 = 5600, - - /// - /// Primary radar 9. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary radar 9.")] - PrimaryRadar9 = 5632, - - /// - /// Primary radar 10. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary radar 10.")] - PrimaryRadar10 = 5664, - - /// - /// Secondary turret number 1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary turret number 1.")] - SecondaryTurretNumber1 = 5696, - - /// - /// Secondary turret number 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary turret number 2.")] - SecondaryTurretNumber2 = 5728, - - /// - /// Secondary turret number 3. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary turret number 3.")] - SecondaryTurretNumber3 = 5760, - - /// - /// Secondary turret number 4. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary turret number 4.")] - SecondaryTurretNumber4 = 5792, - - /// - /// Secondary turret number 5. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary turret number 5.")] - SecondaryTurretNumber5 = 5824, - - /// - /// Secondary turret number 6. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary turret number 6.")] - SecondaryTurretNumber6 = 5856, - - /// - /// Secondary turret number 7. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary turret number 7.")] - SecondaryTurretNumber7 = 5888, - - /// - /// Secondary turret number 8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary turret number 8.")] - SecondaryTurretNumber8 = 5920, - - /// - /// Secondary turret number 9. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary turret number 9.")] - SecondaryTurretNumber9 = 5952, - - /// - /// Secondary turret number 10. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary turret number 10.")] - SecondaryTurretNumber10 = 5984, - - /// - /// Secondary gun number 1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary gun number 1.")] - SecondaryGunNumber1 = 6016, - - /// - /// Secondary gun number 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary gun number 2.")] - SecondaryGunNumber2 = 6048, - - /// - /// Secondary gun number 3. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary gun number 3.")] - SecondaryGunNumber3 = 6080, - - /// - /// Secondary gun number 4. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary gun number 4.")] - SecondaryGunNumber4 = 6112, - - /// - /// Secondary gun number 5. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary gun number 5.")] - SecondaryGunNumber5 = 6144, - - /// - /// Secondary gun number 6. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary gun number 6.")] - SecondaryGunNumber6 = 6176, - - /// - /// Secondary gun number 7. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary gun number 7.")] - SecondaryGunNumber7 = 6208, - - /// - /// Secondary gun number 8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary gun number 8.")] - SecondaryGunNumber8 = 6240, - - /// - /// Secondary gun number 9. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary gun number 9.")] - SecondaryGunNumber9 = 6272, - - /// - /// Secondary gun number 10. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary gun number 10.")] - SecondaryGunNumber10 = 6304, - - /// - /// Secondary launcher 1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary launcher 1.")] - SecondaryLauncher1 = 6336, - - /// - /// Secondary launcher 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary launcher 2.")] - SecondaryLauncher2 = 6368, - - /// - /// Secondary launcher 3. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary launcher 3.")] - SecondaryLauncher3 = 6400, - - /// - /// Secondary launcher 4. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary launcher 4.")] - SecondaryLauncher4 = 6432, - - /// - /// Secondary launcher 5. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary launcher 5.")] - SecondaryLauncher5 = 6464, - - /// - /// Secondary launcher 6. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary launcher 6.")] - SecondaryLauncher6 = 6496, - - /// - /// Secondary launcher 7. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary launcher 7.")] - SecondaryLauncher7 = 6528, - - /// - /// Secondary launcher 8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary launcher 8.")] - SecondaryLauncher8 = 6560, - - /// - /// Secondary launcher 9. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary launcher 9.")] - SecondaryLauncher9 = 6592, - - /// - /// Secondary launcher 10. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary launcher 10.")] - SecondaryLauncher10 = 6624, - - /// - /// Secondary defense systems 1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary defense systems 1.")] - SecondaryDefenseSystems1 = 6656, - - /// - /// Secondary defense systems 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary defense systems 2.")] - SecondaryDefenseSystems2 = 6688, - - /// - /// Secondary defense systems 3. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary defense systems 3.")] - SecondaryDefenseSystems3 = 6720, - - /// - /// Secondary defense systems 4. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary defense systems 4.")] - SecondaryDefenseSystems4 = 6752, - - /// - /// Secondary defense systems 5. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary defense systems 5.")] - SecondaryDefenseSystems5 = 6784, - - /// - /// Secondary defense systems 6. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary defense systems 6.")] - SecondaryDefenseSystems6 = 6816, - - /// - /// Secondary defense systems 7. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary defense systems 7.")] - SecondaryDefenseSystems7 = 6848, - - /// - /// Secondary defense systems 8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary defense systems 8.")] - SecondaryDefenseSystems8 = 6880, - - /// - /// Secondary defense systems 9. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary defense systems 9.")] - SecondaryDefenseSystems9 = 6912, - - /// - /// Secondary defense systems 10. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary defense systems 10.")] - SecondaryDefenseSystems10 = 6944, - - /// - /// Secondary radar 1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary radar 1.")] - SecondaryRadar1 = 6976, - - /// - /// Secondary radar 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary radar 2.")] - SecondaryRadar2 = 7008, - - /// - /// Secondary radar 3. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary radar 3.")] - SecondaryRadar3 = 7040, - - /// - /// Secondary radar 4. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary radar 4.")] - SecondaryRadar4 = 7072, - - /// - /// Secondary radar 5. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary radar 5.")] - SecondaryRadar5 = 7104, - - /// - /// Secondary radar 6. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary radar 6.")] - SecondaryRadar6 = 7136, - - /// - /// Secondary radar 7. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary radar 7.")] - SecondaryRadar7 = 7168, - - /// - /// Secondary radar 8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary radar 8.")] - SecondaryRadar8 = 7200, - - /// - /// Secondary radar 9. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary radar 9.")] - SecondaryRadar9 = 7232, - - /// - /// Secondary radar 10. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary radar 10.")] - SecondaryRadar10 = 7264, - - /// - /// Deck Elevator #1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Deck Elevator #1.")] - DeckElevator1 = 7296, - - /// - /// Deck Elevator #2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Deck Elevator #2.")] - DeckElevator2 = 7328, - - /// - /// Catapult #1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Catapult #1.")] - Catapult1 = 7360, - - /// - /// Catapult #2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Catapult #2.")] - Catapult2 = 7392, - - /// - /// Jet Blast Deflector #1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Jet Blast Deflector #1.")] - JetBlastDeflector1 = 7424, - - /// - /// Jet Blast Deflector #2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Jet Blast Deflector #2.")] - JetBlastDeflector2 = 7456, - - /// - /// Arrestor Wires #1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Arrestor Wires #1.")] - ArrestorWires1 = 7488, - - /// - /// Arrestor Wires #2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Arrestor Wires #2.")] - ArrestorWires2 = 7520, - - /// - /// Arrestor Wires #3. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Arrestor Wires #3.")] - ArrestorWires3 = 7552, - - /// - /// Wing (or rotor) fold. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Wing (or rotor) fold.")] - WingOrRotorFold = 7584, - - /// - /// Fuselage fold. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage fold.")] - FuselageFold = 7616 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState +{ + /// + /// Enumeration values for ArticulatedPartIndex (es.vp.type.0.articulated.index, Articulated parts index number, + /// section 4.7.3) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum ArticulatedPartIndex : uint + { + /// + /// rudder. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("rudder.")] + Rudder = 1024, + + /// + /// left flap. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("left flap.")] + LeftFlap = 1056, + + /// + /// right flap. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("right flap.")] + RightFlap = 1088, + + /// + /// left aileron. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("left aileron.")] + LeftAileron = 1120, + + /// + /// right aileron. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("right aileron.")] + RightAileron = 1152, + + /// + /// helicopter - main rotor. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("helicopter - main rotor.")] + HelicopterMainRotor = 1184, + + /// + /// helicopter - tail rotor. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("helicopter - tail rotor.")] + HelicopterTailRotor = 1216, + + /// + /// other Aircraft Control Surfaces defined as needed. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("other Aircraft Control Surfaces defined as needed.")] + OtherAircraftControlSurfacesDefinedAsNeeded = 1248, + + /// + /// periscope. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("periscope.")] + Periscope = 2048, + + /// + /// generic antenna. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("generic antenna.")] + GenericAntenna = 2080, + + /// + /// snorkel. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("snorkel.")] + Snorkel = 2112, + + /// + /// other extendible parts defined as needed. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("other extendible parts defined as needed.")] + OtherExtendiblePartsDefinedAsNeeded = 2144, + + /// + /// landing gear. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("landing gear.")] + LandingGear = 3072, + + /// + /// tail hook. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("tail hook.")] + TailHook = 3104, + + /// + /// speed brake. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("speed brake.")] + SpeedBrake = 3136, + + /// + /// left weapon bay door. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("left weapon bay door.")] + LeftWeaponBayDoor = 3168, + + /// + /// right weapon bay doors. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("right weapon bay doors.")] + RightWeaponBayDoors = 3200, + + /// + /// tank or APC hatch. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("tank or APC hatch.")] + TankOrAPCHatch = 3232, + + /// + /// wingsweep. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("wingsweep.")] + Wingsweep = 3264, + + /// + /// Bridge launcher. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Bridge launcher.")] + BridgeLauncher = 3296, + + /// + /// Bridge section 1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Bridge section 1.")] + BridgeSection1 = 3328, + + /// + /// Bridge section 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Bridge section 2.")] + BridgeSection2 = 3360, + + /// + /// Bridge section 3. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Bridge section 3.")] + BridgeSection3 = 3392, + + /// + /// Primary blade 1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary blade 1.")] + PrimaryBlade1 = 3424, + + /// + /// Primary blade 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary blade 2.")] + PrimaryBlade2 = 3456, + + /// + /// Primary boom. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary boom.")] + PrimaryBoom = 3488, + + /// + /// Primary launcher arm. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary launcher arm.")] + PrimaryLauncherArm = 3520, + + /// + /// other fixed position parts defined as needed. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("other fixed position parts defined as needed.")] + OtherFixedPositionPartsDefinedAsNeeded = 3552, + + /// + /// Primary turret number 1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary turret number 1.")] + PrimaryTurretNumber1 = 4096, + + /// + /// Primary turret number 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary turret number 2.")] + PrimaryTurretNumber2 = 4128, + + /// + /// Primary turret number 3. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary turret number 3.")] + PrimaryTurretNumber3 = 4160, + + /// + /// Primary turret number 4. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary turret number 4.")] + PrimaryTurretNumber4 = 4192, + + /// + /// Primary turret number 5. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary turret number 5.")] + PrimaryTurretNumber5 = 4224, + + /// + /// Primary turret number 6. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary turret number 6.")] + PrimaryTurretNumber6 = 4256, + + /// + /// Primary turret number 7. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary turret number 7.")] + PrimaryTurretNumber7 = 4288, + + /// + /// Primary turret number 8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary turret number 8.")] + PrimaryTurretNumber8 = 4320, + + /// + /// Primary turret number 9. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary turret number 9.")] + PrimaryTurretNumber9 = 4352, + + /// + /// Primary turret number 10. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary turret number 10.")] + PrimaryTurretNumber10 = 4384, + + /// + /// Primary gun number 1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary gun number 1.")] + PrimaryGunNumber1 = 4416, + + /// + /// Primary gun number 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary gun number 2.")] + PrimaryGunNumber2 = 4448, + + /// + /// Primary gun number 3. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary gun number 3.")] + PrimaryGunNumber3 = 4480, + + /// + /// Primary gun number 4. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary gun number 4.")] + PrimaryGunNumber4 = 4512, + + /// + /// Primary gun number 5. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary gun number 5.")] + PrimaryGunNumber5 = 4544, + + /// + /// Primary gun number 6. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary gun number 6.")] + PrimaryGunNumber6 = 4576, + + /// + /// Primary gun number 7. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary gun number 7.")] + PrimaryGunNumber7 = 4608, + + /// + /// Primary gun number 8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary gun number 8.")] + PrimaryGunNumber8 = 4640, + + /// + /// Primary gun number 9. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary gun number 9.")] + PrimaryGunNumber9 = 4672, + + /// + /// Primary gun number 10. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary gun number 10.")] + PrimaryGunNumber10 = 4704, + + /// + /// Primary launcher 1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary launcher 1.")] + PrimaryLauncher1 = 4736, + + /// + /// Primary launcher 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary launcher 2.")] + PrimaryLauncher2 = 4768, + + /// + /// Primary launcher 3. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary launcher 3.")] + PrimaryLauncher3 = 4800, + + /// + /// Primary launcher 4. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary launcher 4.")] + PrimaryLauncher4 = 4832, + + /// + /// Primary launcher 5. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary launcher 5.")] + PrimaryLauncher5 = 4864, + + /// + /// Primary launcher 6. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary launcher 6.")] + PrimaryLauncher6 = 4896, + + /// + /// Primary launcher 7. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary launcher 7.")] + PrimaryLauncher7 = 4928, + + /// + /// Primary launcher 8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary launcher 8.")] + PrimaryLauncher8 = 4960, + + /// + /// Primary launcher 9. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary launcher 9.")] + PrimaryLauncher9 = 4992, + + /// + /// Primary launcher 10. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary launcher 10.")] + PrimaryLauncher10 = 5024, + + /// + /// Primary defense systems 1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary defense systems 1.")] + PrimaryDefenseSystems1 = 5056, + + /// + /// Primary defense systems 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary defense systems 2.")] + PrimaryDefenseSystems2 = 5088, + + /// + /// Primary defense systems 3. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary defense systems 3.")] + PrimaryDefenseSystems3 = 5120, + + /// + /// Primary defense systems 4. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary defense systems 4.")] + PrimaryDefenseSystems4 = 5152, + + /// + /// Primary defense systems 5. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary defense systems 5.")] + PrimaryDefenseSystems5 = 5184, + + /// + /// Primary defense systems 6. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary defense systems 6.")] + PrimaryDefenseSystems6 = 5216, + + /// + /// Primary defense systems 7. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary defense systems 7.")] + PrimaryDefenseSystems7 = 5248, + + /// + /// Primary defense systems 8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary defense systems 8.")] + PrimaryDefenseSystems8 = 5280, + + /// + /// Primary defense systems 9. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary defense systems 9.")] + PrimaryDefenseSystems9 = 5312, + + /// + /// Primary defense systems 10. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary defense systems 10.")] + PrimaryDefenseSystems10 = 5344, + + /// + /// Primary radar 1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary radar 1.")] + PrimaryRadar1 = 5376, + + /// + /// Primary radar 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary radar 2.")] + PrimaryRadar2 = 5408, + + /// + /// Primary radar 3. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary radar 3.")] + PrimaryRadar3 = 5440, + + /// + /// Primary radar 4. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary radar 4.")] + PrimaryRadar4 = 5472, + + /// + /// Primary radar 5. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary radar 5.")] + PrimaryRadar5 = 5504, + + /// + /// Primary radar 6. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary radar 6.")] + PrimaryRadar6 = 5536, + + /// + /// Primary radar 7. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary radar 7.")] + PrimaryRadar7 = 5568, + + /// + /// Primary radar 8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary radar 8.")] + PrimaryRadar8 = 5600, + + /// + /// Primary radar 9. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary radar 9.")] + PrimaryRadar9 = 5632, + + /// + /// Primary radar 10. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary radar 10.")] + PrimaryRadar10 = 5664, + + /// + /// Secondary turret number 1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary turret number 1.")] + SecondaryTurretNumber1 = 5696, + + /// + /// Secondary turret number 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary turret number 2.")] + SecondaryTurretNumber2 = 5728, + + /// + /// Secondary turret number 3. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary turret number 3.")] + SecondaryTurretNumber3 = 5760, + + /// + /// Secondary turret number 4. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary turret number 4.")] + SecondaryTurretNumber4 = 5792, + + /// + /// Secondary turret number 5. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary turret number 5.")] + SecondaryTurretNumber5 = 5824, + + /// + /// Secondary turret number 6. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary turret number 6.")] + SecondaryTurretNumber6 = 5856, + + /// + /// Secondary turret number 7. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary turret number 7.")] + SecondaryTurretNumber7 = 5888, + + /// + /// Secondary turret number 8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary turret number 8.")] + SecondaryTurretNumber8 = 5920, + + /// + /// Secondary turret number 9. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary turret number 9.")] + SecondaryTurretNumber9 = 5952, + + /// + /// Secondary turret number 10. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary turret number 10.")] + SecondaryTurretNumber10 = 5984, + + /// + /// Secondary gun number 1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary gun number 1.")] + SecondaryGunNumber1 = 6016, + + /// + /// Secondary gun number 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary gun number 2.")] + SecondaryGunNumber2 = 6048, + + /// + /// Secondary gun number 3. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary gun number 3.")] + SecondaryGunNumber3 = 6080, + + /// + /// Secondary gun number 4. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary gun number 4.")] + SecondaryGunNumber4 = 6112, + + /// + /// Secondary gun number 5. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary gun number 5.")] + SecondaryGunNumber5 = 6144, + + /// + /// Secondary gun number 6. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary gun number 6.")] + SecondaryGunNumber6 = 6176, + + /// + /// Secondary gun number 7. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary gun number 7.")] + SecondaryGunNumber7 = 6208, + + /// + /// Secondary gun number 8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary gun number 8.")] + SecondaryGunNumber8 = 6240, + + /// + /// Secondary gun number 9. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary gun number 9.")] + SecondaryGunNumber9 = 6272, + + /// + /// Secondary gun number 10. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary gun number 10.")] + SecondaryGunNumber10 = 6304, + + /// + /// Secondary launcher 1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary launcher 1.")] + SecondaryLauncher1 = 6336, + + /// + /// Secondary launcher 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary launcher 2.")] + SecondaryLauncher2 = 6368, + + /// + /// Secondary launcher 3. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary launcher 3.")] + SecondaryLauncher3 = 6400, + + /// + /// Secondary launcher 4. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary launcher 4.")] + SecondaryLauncher4 = 6432, + + /// + /// Secondary launcher 5. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary launcher 5.")] + SecondaryLauncher5 = 6464, + + /// + /// Secondary launcher 6. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary launcher 6.")] + SecondaryLauncher6 = 6496, + + /// + /// Secondary launcher 7. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary launcher 7.")] + SecondaryLauncher7 = 6528, + + /// + /// Secondary launcher 8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary launcher 8.")] + SecondaryLauncher8 = 6560, + + /// + /// Secondary launcher 9. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary launcher 9.")] + SecondaryLauncher9 = 6592, + + /// + /// Secondary launcher 10. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary launcher 10.")] + SecondaryLauncher10 = 6624, + + /// + /// Secondary defense systems 1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary defense systems 1.")] + SecondaryDefenseSystems1 = 6656, + + /// + /// Secondary defense systems 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary defense systems 2.")] + SecondaryDefenseSystems2 = 6688, + + /// + /// Secondary defense systems 3. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary defense systems 3.")] + SecondaryDefenseSystems3 = 6720, + + /// + /// Secondary defense systems 4. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary defense systems 4.")] + SecondaryDefenseSystems4 = 6752, + + /// + /// Secondary defense systems 5. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary defense systems 5.")] + SecondaryDefenseSystems5 = 6784, + + /// + /// Secondary defense systems 6. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary defense systems 6.")] + SecondaryDefenseSystems6 = 6816, + + /// + /// Secondary defense systems 7. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary defense systems 7.")] + SecondaryDefenseSystems7 = 6848, + + /// + /// Secondary defense systems 8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary defense systems 8.")] + SecondaryDefenseSystems8 = 6880, + + /// + /// Secondary defense systems 9. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary defense systems 9.")] + SecondaryDefenseSystems9 = 6912, + + /// + /// Secondary defense systems 10. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary defense systems 10.")] + SecondaryDefenseSystems10 = 6944, + + /// + /// Secondary radar 1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary radar 1.")] + SecondaryRadar1 = 6976, + + /// + /// Secondary radar 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary radar 2.")] + SecondaryRadar2 = 7008, + + /// + /// Secondary radar 3. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary radar 3.")] + SecondaryRadar3 = 7040, + + /// + /// Secondary radar 4. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary radar 4.")] + SecondaryRadar4 = 7072, + + /// + /// Secondary radar 5. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary radar 5.")] + SecondaryRadar5 = 7104, + + /// + /// Secondary radar 6. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary radar 6.")] + SecondaryRadar6 = 7136, + + /// + /// Secondary radar 7. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary radar 7.")] + SecondaryRadar7 = 7168, + + /// + /// Secondary radar 8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary radar 8.")] + SecondaryRadar8 = 7200, + + /// + /// Secondary radar 9. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary radar 9.")] + SecondaryRadar9 = 7232, + + /// + /// Secondary radar 10. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary radar 10.")] + SecondaryRadar10 = 7264, + + /// + /// Deck Elevator #1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Deck Elevator #1.")] + DeckElevator1 = 7296, + + /// + /// Deck Elevator #2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Deck Elevator #2.")] + DeckElevator2 = 7328, + + /// + /// Catapult #1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Catapult #1.")] + Catapult1 = 7360, + + /// + /// Catapult #2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Catapult #2.")] + Catapult2 = 7392, + + /// + /// Jet Blast Deflector #1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Jet Blast Deflector #1.")] + JetBlastDeflector1 = 7424, + + /// + /// Jet Blast Deflector #2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Jet Blast Deflector #2.")] + JetBlastDeflector2 = 7456, + + /// + /// Arrestor Wires #1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Arrestor Wires #1.")] + ArrestorWires1 = 7488, + + /// + /// Arrestor Wires #2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Arrestor Wires #2.")] + ArrestorWires2 = 7520, + + /// + /// Arrestor Wires #3. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Arrestor Wires #3.")] + ArrestorWires3 = 7552, + + /// + /// Wing (or rotor) fold. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Wing (or rotor) fold.")] + WingOrRotorFold = 7584, + + /// + /// Fuselage fold. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage fold.")] + FuselageFold = 7616 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState/ArticulatedPartOffset.cs b/Libs/CsharpDis6/Enumerations/EntityState/ArticulatedPartOffset.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState/ArticulatedPartOffset.cs rename to Libs/CsharpDis6/Enumerations/EntityState/ArticulatedPartOffset.cs index c2fe734..549238f 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState/ArticulatedPartOffset.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState/ArticulatedPartOffset.cs @@ -1,189 +1,189 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState -{ - /// - /// Enumeration values for ArticulatedPartOffset (es.vp.type.0.articulated.offset, Articulated parts offset number, - /// section 4.7.3) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum ArticulatedPartOffset : uint - { - /// - /// Position. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Position.")] - Position = 1, - - /// - /// Position Rate. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Position Rate.")] - PositionRate = 2, - - /// - /// Extension. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Extension.")] - Extension = 3, - - /// - /// Extension Rate. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Extension Rate.")] - ExtensionRate = 4, - - /// - /// X. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("X.")] - X = 5, - - /// - /// X Rate. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("X Rate.")] - XRate = 6, - - /// - /// Y. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Y.")] - Y = 7, - - /// - /// Y Rate. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Y Rate.")] - YRate = 8, - - /// - /// Z. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Z.")] - Z = 9, - - /// - /// Z Rate. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Z Rate.")] - ZRate = 10, - - /// - /// Azimuth. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Azimuth.")] - Azimuth = 11, - - /// - /// Azimuth Rate. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Azimuth Rate.")] - AzimuthRate = 12, - - /// - /// Elevation. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Elevation.")] - Elevation = 13, - - /// - /// Elevation Rate. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Elevation Rate.")] - ElevationRate = 14, - - /// - /// Rotation. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Rotation.")] - Rotation = 15, - - /// - /// Rotation Rate. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Rotation Rate.")] - RotationRate = 16 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState +{ + /// + /// Enumeration values for ArticulatedPartOffset (es.vp.type.0.articulated.offset, Articulated parts offset number, + /// section 4.7.3) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum ArticulatedPartOffset : uint + { + /// + /// Position. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Position.")] + Position = 1, + + /// + /// Position Rate. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Position Rate.")] + PositionRate = 2, + + /// + /// Extension. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Extension.")] + Extension = 3, + + /// + /// Extension Rate. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Extension Rate.")] + ExtensionRate = 4, + + /// + /// X. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("X.")] + X = 5, + + /// + /// X Rate. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("X Rate.")] + XRate = 6, + + /// + /// Y. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Y.")] + Y = 7, + + /// + /// Y Rate. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Y Rate.")] + YRate = 8, + + /// + /// Z. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Z.")] + Z = 9, + + /// + /// Z Rate. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Z Rate.")] + ZRate = 10, + + /// + /// Azimuth. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Azimuth.")] + Azimuth = 11, + + /// + /// Azimuth Rate. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Azimuth Rate.")] + AzimuthRate = 12, + + /// + /// Elevation. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Elevation.")] + Elevation = 13, + + /// + /// Elevation Rate. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Elevation Rate.")] + ElevationRate = 14, + + /// + /// Rotation. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Rotation.")] + Rotation = 15, + + /// + /// Rotation Rate. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Rotation Rate.")] + RotationRate = 16 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState/AttachedParts.cs b/Libs/CsharpDis6/Enumerations/EntityState/AttachedParts.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState/AttachedParts.cs rename to Libs/CsharpDis6/Enumerations/EntityState/AttachedParts.cs index e944864..b700062 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState/AttachedParts.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState/AttachedParts.cs @@ -1,10269 +1,10269 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState -{ - /// - /// Enumeration values for AttachedParts (es.vp.type.1.attached, Attached parts, - /// section 4.7.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum AttachedParts : uint - { - /// - /// Nothing, Empty. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Nothing, Empty.")] - NothingEmpty = 0, - - /// - /// Sequential IDs for model-specific stations (with id 1). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 1).")] - SequentialIDsForModelSpecificStations_1 = 1, - - /// - /// Sequential IDs for model-specific stations (with id 2). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 2).")] - SequentialIDsForModelSpecificStations_2 = 2, - - /// - /// Sequential IDs for model-specific stations (with id 3). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 3).")] - SequentialIDsForModelSpecificStations_3 = 3, - - /// - /// Sequential IDs for model-specific stations (with id 4). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 4).")] - SequentialIDsForModelSpecificStations_4 = 4, - - /// - /// Sequential IDs for model-specific stations (with id 5). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 5).")] - SequentialIDsForModelSpecificStations_5 = 5, - - /// - /// Sequential IDs for model-specific stations (with id 6). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 6).")] - SequentialIDsForModelSpecificStations_6 = 6, - - /// - /// Sequential IDs for model-specific stations (with id 7). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 7).")] - SequentialIDsForModelSpecificStations_7 = 7, - - /// - /// Sequential IDs for model-specific stations (with id 8). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 8).")] - SequentialIDsForModelSpecificStations_8 = 8, - - /// - /// Sequential IDs for model-specific stations (with id 9). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 9).")] - SequentialIDsForModelSpecificStations_9 = 9, - - /// - /// Sequential IDs for model-specific stations (with id 10). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 10).")] - SequentialIDsForModelSpecificStations_10 = 10, - - /// - /// Sequential IDs for model-specific stations (with id 11). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 11).")] - SequentialIDsForModelSpecificStations_11 = 11, - - /// - /// Sequential IDs for model-specific stations (with id 12). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 12).")] - SequentialIDsForModelSpecificStations_12 = 12, - - /// - /// Sequential IDs for model-specific stations (with id 13). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 13).")] - SequentialIDsForModelSpecificStations_13 = 13, - - /// - /// Sequential IDs for model-specific stations (with id 14). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 14).")] - SequentialIDsForModelSpecificStations_14 = 14, - - /// - /// Sequential IDs for model-specific stations (with id 15). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 15).")] - SequentialIDsForModelSpecificStations_15 = 15, - - /// - /// Sequential IDs for model-specific stations (with id 16). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 16).")] - SequentialIDsForModelSpecificStations_16 = 16, - - /// - /// Sequential IDs for model-specific stations (with id 17). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 17).")] - SequentialIDsForModelSpecificStations_17 = 17, - - /// - /// Sequential IDs for model-specific stations (with id 18). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 18).")] - SequentialIDsForModelSpecificStations_18 = 18, - - /// - /// Sequential IDs for model-specific stations (with id 19). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 19).")] - SequentialIDsForModelSpecificStations_19 = 19, - - /// - /// Sequential IDs for model-specific stations (with id 20). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 20).")] - SequentialIDsForModelSpecificStations_20 = 20, - - /// - /// Sequential IDs for model-specific stations (with id 21). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 21).")] - SequentialIDsForModelSpecificStations_21 = 21, - - /// - /// Sequential IDs for model-specific stations (with id 22). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 22).")] - SequentialIDsForModelSpecificStations_22 = 22, - - /// - /// Sequential IDs for model-specific stations (with id 23). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 23).")] - SequentialIDsForModelSpecificStations_23 = 23, - - /// - /// Sequential IDs for model-specific stations (with id 24). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 24).")] - SequentialIDsForModelSpecificStations_24 = 24, - - /// - /// Sequential IDs for model-specific stations (with id 25). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 25).")] - SequentialIDsForModelSpecificStations_25 = 25, - - /// - /// Sequential IDs for model-specific stations (with id 26). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 26).")] - SequentialIDsForModelSpecificStations_26 = 26, - - /// - /// Sequential IDs for model-specific stations (with id 27). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 27).")] - SequentialIDsForModelSpecificStations_27 = 27, - - /// - /// Sequential IDs for model-specific stations (with id 28). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 28).")] - SequentialIDsForModelSpecificStations_28 = 28, - - /// - /// Sequential IDs for model-specific stations (with id 29). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 29).")] - SequentialIDsForModelSpecificStations_29 = 29, - - /// - /// Sequential IDs for model-specific stations (with id 30). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 30).")] - SequentialIDsForModelSpecificStations_30 = 30, - - /// - /// Sequential IDs for model-specific stations (with id 31). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 31).")] - SequentialIDsForModelSpecificStations_31 = 31, - - /// - /// Sequential IDs for model-specific stations (with id 32). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 32).")] - SequentialIDsForModelSpecificStations_32 = 32, - - /// - /// Sequential IDs for model-specific stations (with id 33). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 33).")] - SequentialIDsForModelSpecificStations_33 = 33, - - /// - /// Sequential IDs for model-specific stations (with id 34). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 34).")] - SequentialIDsForModelSpecificStations_34 = 34, - - /// - /// Sequential IDs for model-specific stations (with id 35). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 35).")] - SequentialIDsForModelSpecificStations_35 = 35, - - /// - /// Sequential IDs for model-specific stations (with id 36). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 36).")] - SequentialIDsForModelSpecificStations_36 = 36, - - /// - /// Sequential IDs for model-specific stations (with id 37). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 37).")] - SequentialIDsForModelSpecificStations_37 = 37, - - /// - /// Sequential IDs for model-specific stations (with id 38). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 38).")] - SequentialIDsForModelSpecificStations_38 = 38, - - /// - /// Sequential IDs for model-specific stations (with id 39). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 39).")] - SequentialIDsForModelSpecificStations_39 = 39, - - /// - /// Sequential IDs for model-specific stations (with id 40). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 40).")] - SequentialIDsForModelSpecificStations_40 = 40, - - /// - /// Sequential IDs for model-specific stations (with id 41). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 41).")] - SequentialIDsForModelSpecificStations_41 = 41, - - /// - /// Sequential IDs for model-specific stations (with id 42). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 42).")] - SequentialIDsForModelSpecificStations_42 = 42, - - /// - /// Sequential IDs for model-specific stations (with id 43). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 43).")] - SequentialIDsForModelSpecificStations_43 = 43, - - /// - /// Sequential IDs for model-specific stations (with id 44). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 44).")] - SequentialIDsForModelSpecificStations_44 = 44, - - /// - /// Sequential IDs for model-specific stations (with id 45). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 45).")] - SequentialIDsForModelSpecificStations_45 = 45, - - /// - /// Sequential IDs for model-specific stations (with id 46). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 46).")] - SequentialIDsForModelSpecificStations_46 = 46, - - /// - /// Sequential IDs for model-specific stations (with id 47). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 47).")] - SequentialIDsForModelSpecificStations_47 = 47, - - /// - /// Sequential IDs for model-specific stations (with id 48). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 48).")] - SequentialIDsForModelSpecificStations_48 = 48, - - /// - /// Sequential IDs for model-specific stations (with id 49). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 49).")] - SequentialIDsForModelSpecificStations_49 = 49, - - /// - /// Sequential IDs for model-specific stations (with id 50). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 50).")] - SequentialIDsForModelSpecificStations_50 = 50, - - /// - /// Sequential IDs for model-specific stations (with id 51). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 51).")] - SequentialIDsForModelSpecificStations_51 = 51, - - /// - /// Sequential IDs for model-specific stations (with id 52). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 52).")] - SequentialIDsForModelSpecificStations_52 = 52, - - /// - /// Sequential IDs for model-specific stations (with id 53). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 53).")] - SequentialIDsForModelSpecificStations_53 = 53, - - /// - /// Sequential IDs for model-specific stations (with id 54). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 54).")] - SequentialIDsForModelSpecificStations_54 = 54, - - /// - /// Sequential IDs for model-specific stations (with id 55). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 55).")] - SequentialIDsForModelSpecificStations_55 = 55, - - /// - /// Sequential IDs for model-specific stations (with id 56). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 56).")] - SequentialIDsForModelSpecificStations_56 = 56, - - /// - /// Sequential IDs for model-specific stations (with id 57). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 57).")] - SequentialIDsForModelSpecificStations_57 = 57, - - /// - /// Sequential IDs for model-specific stations (with id 58). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 58).")] - SequentialIDsForModelSpecificStations_58 = 58, - - /// - /// Sequential IDs for model-specific stations (with id 59). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 59).")] - SequentialIDsForModelSpecificStations_59 = 59, - - /// - /// Sequential IDs for model-specific stations (with id 60). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 60).")] - SequentialIDsForModelSpecificStations_60 = 60, - - /// - /// Sequential IDs for model-specific stations (with id 61). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 61).")] - SequentialIDsForModelSpecificStations_61 = 61, - - /// - /// Sequential IDs for model-specific stations (with id 62). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 62).")] - SequentialIDsForModelSpecificStations_62 = 62, - - /// - /// Sequential IDs for model-specific stations (with id 63). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 63).")] - SequentialIDsForModelSpecificStations_63 = 63, - - /// - /// Sequential IDs for model-specific stations (with id 64). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 64).")] - SequentialIDsForModelSpecificStations_64 = 64, - - /// - /// Sequential IDs for model-specific stations (with id 65). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 65).")] - SequentialIDsForModelSpecificStations_65 = 65, - - /// - /// Sequential IDs for model-specific stations (with id 66). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 66).")] - SequentialIDsForModelSpecificStations_66 = 66, - - /// - /// Sequential IDs for model-specific stations (with id 67). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 67).")] - SequentialIDsForModelSpecificStations_67 = 67, - - /// - /// Sequential IDs for model-specific stations (with id 68). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 68).")] - SequentialIDsForModelSpecificStations_68 = 68, - - /// - /// Sequential IDs for model-specific stations (with id 69). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 69).")] - SequentialIDsForModelSpecificStations_69 = 69, - - /// - /// Sequential IDs for model-specific stations (with id 70). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 70).")] - SequentialIDsForModelSpecificStations_70 = 70, - - /// - /// Sequential IDs for model-specific stations (with id 71). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 71).")] - SequentialIDsForModelSpecificStations_71 = 71, - - /// - /// Sequential IDs for model-specific stations (with id 72). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 72).")] - SequentialIDsForModelSpecificStations_72 = 72, - - /// - /// Sequential IDs for model-specific stations (with id 73). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 73).")] - SequentialIDsForModelSpecificStations_73 = 73, - - /// - /// Sequential IDs for model-specific stations (with id 74). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 74).")] - SequentialIDsForModelSpecificStations_74 = 74, - - /// - /// Sequential IDs for model-specific stations (with id 75). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 75).")] - SequentialIDsForModelSpecificStations_75 = 75, - - /// - /// Sequential IDs for model-specific stations (with id 76). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 76).")] - SequentialIDsForModelSpecificStations_76 = 76, - - /// - /// Sequential IDs for model-specific stations (with id 77). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 77).")] - SequentialIDsForModelSpecificStations_77 = 77, - - /// - /// Sequential IDs for model-specific stations (with id 78). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 78).")] - SequentialIDsForModelSpecificStations_78 = 78, - - /// - /// Sequential IDs for model-specific stations (with id 79). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 79).")] - SequentialIDsForModelSpecificStations_79 = 79, - - /// - /// Sequential IDs for model-specific stations (with id 80). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 80).")] - SequentialIDsForModelSpecificStations_80 = 80, - - /// - /// Sequential IDs for model-specific stations (with id 81). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 81).")] - SequentialIDsForModelSpecificStations_81 = 81, - - /// - /// Sequential IDs for model-specific stations (with id 82). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 82).")] - SequentialIDsForModelSpecificStations_82 = 82, - - /// - /// Sequential IDs for model-specific stations (with id 83). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 83).")] - SequentialIDsForModelSpecificStations_83 = 83, - - /// - /// Sequential IDs for model-specific stations (with id 84). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 84).")] - SequentialIDsForModelSpecificStations_84 = 84, - - /// - /// Sequential IDs for model-specific stations (with id 85). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 85).")] - SequentialIDsForModelSpecificStations_85 = 85, - - /// - /// Sequential IDs for model-specific stations (with id 86). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 86).")] - SequentialIDsForModelSpecificStations_86 = 86, - - /// - /// Sequential IDs for model-specific stations (with id 87). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 87).")] - SequentialIDsForModelSpecificStations_87 = 87, - - /// - /// Sequential IDs for model-specific stations (with id 88). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 88).")] - SequentialIDsForModelSpecificStations_88 = 88, - - /// - /// Sequential IDs for model-specific stations (with id 89). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 89).")] - SequentialIDsForModelSpecificStations_89 = 89, - - /// - /// Sequential IDs for model-specific stations (with id 90). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 90).")] - SequentialIDsForModelSpecificStations_90 = 90, - - /// - /// Sequential IDs for model-specific stations (with id 91). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 91).")] - SequentialIDsForModelSpecificStations_91 = 91, - - /// - /// Sequential IDs for model-specific stations (with id 92). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 92).")] - SequentialIDsForModelSpecificStations_92 = 92, - - /// - /// Sequential IDs for model-specific stations (with id 93). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 93).")] - SequentialIDsForModelSpecificStations_93 = 93, - - /// - /// Sequential IDs for model-specific stations (with id 94). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 94).")] - SequentialIDsForModelSpecificStations_94 = 94, - - /// - /// Sequential IDs for model-specific stations (with id 95). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 95).")] - SequentialIDsForModelSpecificStations_95 = 95, - - /// - /// Sequential IDs for model-specific stations (with id 96). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 96).")] - SequentialIDsForModelSpecificStations_96 = 96, - - /// - /// Sequential IDs for model-specific stations (with id 97). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 97).")] - SequentialIDsForModelSpecificStations_97 = 97, - - /// - /// Sequential IDs for model-specific stations (with id 98). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 98).")] - SequentialIDsForModelSpecificStations_98 = 98, - - /// - /// Sequential IDs for model-specific stations (with id 99). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 99).")] - SequentialIDsForModelSpecificStations_99 = 99, - - /// - /// Sequential IDs for model-specific stations (with id 100). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 100).")] - SequentialIDsForModelSpecificStations_100 = 100, - - /// - /// Sequential IDs for model-specific stations (with id 101). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 101).")] - SequentialIDsForModelSpecificStations_101 = 101, - - /// - /// Sequential IDs for model-specific stations (with id 102). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 102).")] - SequentialIDsForModelSpecificStations_102 = 102, - - /// - /// Sequential IDs for model-specific stations (with id 103). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 103).")] - SequentialIDsForModelSpecificStations_103 = 103, - - /// - /// Sequential IDs for model-specific stations (with id 104). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 104).")] - SequentialIDsForModelSpecificStations_104 = 104, - - /// - /// Sequential IDs for model-specific stations (with id 105). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 105).")] - SequentialIDsForModelSpecificStations_105 = 105, - - /// - /// Sequential IDs for model-specific stations (with id 106). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 106).")] - SequentialIDsForModelSpecificStations_106 = 106, - - /// - /// Sequential IDs for model-specific stations (with id 107). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 107).")] - SequentialIDsForModelSpecificStations_107 = 107, - - /// - /// Sequential IDs for model-specific stations (with id 108). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 108).")] - SequentialIDsForModelSpecificStations_108 = 108, - - /// - /// Sequential IDs for model-specific stations (with id 109). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 109).")] - SequentialIDsForModelSpecificStations_109 = 109, - - /// - /// Sequential IDs for model-specific stations (with id 110). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 110).")] - SequentialIDsForModelSpecificStations_110 = 110, - - /// - /// Sequential IDs for model-specific stations (with id 111). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 111).")] - SequentialIDsForModelSpecificStations_111 = 111, - - /// - /// Sequential IDs for model-specific stations (with id 112). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 112).")] - SequentialIDsForModelSpecificStations_112 = 112, - - /// - /// Sequential IDs for model-specific stations (with id 113). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 113).")] - SequentialIDsForModelSpecificStations_113 = 113, - - /// - /// Sequential IDs for model-specific stations (with id 114). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 114).")] - SequentialIDsForModelSpecificStations_114 = 114, - - /// - /// Sequential IDs for model-specific stations (with id 115). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 115).")] - SequentialIDsForModelSpecificStations_115 = 115, - - /// - /// Sequential IDs for model-specific stations (with id 116). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 116).")] - SequentialIDsForModelSpecificStations_116 = 116, - - /// - /// Sequential IDs for model-specific stations (with id 117). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 117).")] - SequentialIDsForModelSpecificStations_117 = 117, - - /// - /// Sequential IDs for model-specific stations (with id 118). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 118).")] - SequentialIDsForModelSpecificStations_118 = 118, - - /// - /// Sequential IDs for model-specific stations (with id 119). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 119).")] - SequentialIDsForModelSpecificStations_119 = 119, - - /// - /// Sequential IDs for model-specific stations (with id 120). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 120).")] - SequentialIDsForModelSpecificStations_120 = 120, - - /// - /// Sequential IDs for model-specific stations (with id 121). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 121).")] - SequentialIDsForModelSpecificStations_121 = 121, - - /// - /// Sequential IDs for model-specific stations (with id 122). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 122).")] - SequentialIDsForModelSpecificStations_122 = 122, - - /// - /// Sequential IDs for model-specific stations (with id 123). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 123).")] - SequentialIDsForModelSpecificStations_123 = 123, - - /// - /// Sequential IDs for model-specific stations (with id 124). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 124).")] - SequentialIDsForModelSpecificStations_124 = 124, - - /// - /// Sequential IDs for model-specific stations (with id 125). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 125).")] - SequentialIDsForModelSpecificStations_125 = 125, - - /// - /// Sequential IDs for model-specific stations (with id 126). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 126).")] - SequentialIDsForModelSpecificStations_126 = 126, - - /// - /// Sequential IDs for model-specific stations (with id 127). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 127).")] - SequentialIDsForModelSpecificStations_127 = 127, - - /// - /// Sequential IDs for model-specific stations (with id 128). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 128).")] - SequentialIDsForModelSpecificStations_128 = 128, - - /// - /// Sequential IDs for model-specific stations (with id 129). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 129).")] - SequentialIDsForModelSpecificStations_129 = 129, - - /// - /// Sequential IDs for model-specific stations (with id 130). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 130).")] - SequentialIDsForModelSpecificStations_130 = 130, - - /// - /// Sequential IDs for model-specific stations (with id 131). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 131).")] - SequentialIDsForModelSpecificStations_131 = 131, - - /// - /// Sequential IDs for model-specific stations (with id 132). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 132).")] - SequentialIDsForModelSpecificStations_132 = 132, - - /// - /// Sequential IDs for model-specific stations (with id 133). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 133).")] - SequentialIDsForModelSpecificStations_133 = 133, - - /// - /// Sequential IDs for model-specific stations (with id 134). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 134).")] - SequentialIDsForModelSpecificStations_134 = 134, - - /// - /// Sequential IDs for model-specific stations (with id 135). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 135).")] - SequentialIDsForModelSpecificStations_135 = 135, - - /// - /// Sequential IDs for model-specific stations (with id 136). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 136).")] - SequentialIDsForModelSpecificStations_136 = 136, - - /// - /// Sequential IDs for model-specific stations (with id 137). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 137).")] - SequentialIDsForModelSpecificStations_137 = 137, - - /// - /// Sequential IDs for model-specific stations (with id 138). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 138).")] - SequentialIDsForModelSpecificStations_138 = 138, - - /// - /// Sequential IDs for model-specific stations (with id 139). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 139).")] - SequentialIDsForModelSpecificStations_139 = 139, - - /// - /// Sequential IDs for model-specific stations (with id 140). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 140).")] - SequentialIDsForModelSpecificStations_140 = 140, - - /// - /// Sequential IDs for model-specific stations (with id 141). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 141).")] - SequentialIDsForModelSpecificStations_141 = 141, - - /// - /// Sequential IDs for model-specific stations (with id 142). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 142).")] - SequentialIDsForModelSpecificStations_142 = 142, - - /// - /// Sequential IDs for model-specific stations (with id 143). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 143).")] - SequentialIDsForModelSpecificStations_143 = 143, - - /// - /// Sequential IDs for model-specific stations (with id 144). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 144).")] - SequentialIDsForModelSpecificStations_144 = 144, - - /// - /// Sequential IDs for model-specific stations (with id 145). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 145).")] - SequentialIDsForModelSpecificStations_145 = 145, - - /// - /// Sequential IDs for model-specific stations (with id 146). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 146).")] - SequentialIDsForModelSpecificStations_146 = 146, - - /// - /// Sequential IDs for model-specific stations (with id 147). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 147).")] - SequentialIDsForModelSpecificStations_147 = 147, - - /// - /// Sequential IDs for model-specific stations (with id 148). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 148).")] - SequentialIDsForModelSpecificStations_148 = 148, - - /// - /// Sequential IDs for model-specific stations (with id 149). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 149).")] - SequentialIDsForModelSpecificStations_149 = 149, - - /// - /// Sequential IDs for model-specific stations (with id 150). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 150).")] - SequentialIDsForModelSpecificStations_150 = 150, - - /// - /// Sequential IDs for model-specific stations (with id 151). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 151).")] - SequentialIDsForModelSpecificStations_151 = 151, - - /// - /// Sequential IDs for model-specific stations (with id 152). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 152).")] - SequentialIDsForModelSpecificStations_152 = 152, - - /// - /// Sequential IDs for model-specific stations (with id 153). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 153).")] - SequentialIDsForModelSpecificStations_153 = 153, - - /// - /// Sequential IDs for model-specific stations (with id 154). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 154).")] - SequentialIDsForModelSpecificStations_154 = 154, - - /// - /// Sequential IDs for model-specific stations (with id 155). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 155).")] - SequentialIDsForModelSpecificStations_155 = 155, - - /// - /// Sequential IDs for model-specific stations (with id 156). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 156).")] - SequentialIDsForModelSpecificStations_156 = 156, - - /// - /// Sequential IDs for model-specific stations (with id 157). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 157).")] - SequentialIDsForModelSpecificStations_157 = 157, - - /// - /// Sequential IDs for model-specific stations (with id 158). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 158).")] - SequentialIDsForModelSpecificStations_158 = 158, - - /// - /// Sequential IDs for model-specific stations (with id 159). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 159).")] - SequentialIDsForModelSpecificStations_159 = 159, - - /// - /// Sequential IDs for model-specific stations (with id 160). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 160).")] - SequentialIDsForModelSpecificStations_160 = 160, - - /// - /// Sequential IDs for model-specific stations (with id 161). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 161).")] - SequentialIDsForModelSpecificStations_161 = 161, - - /// - /// Sequential IDs for model-specific stations (with id 162). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 162).")] - SequentialIDsForModelSpecificStations_162 = 162, - - /// - /// Sequential IDs for model-specific stations (with id 163). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 163).")] - SequentialIDsForModelSpecificStations_163 = 163, - - /// - /// Sequential IDs for model-specific stations (with id 164). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 164).")] - SequentialIDsForModelSpecificStations_164 = 164, - - /// - /// Sequential IDs for model-specific stations (with id 165). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 165).")] - SequentialIDsForModelSpecificStations_165 = 165, - - /// - /// Sequential IDs for model-specific stations (with id 166). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 166).")] - SequentialIDsForModelSpecificStations_166 = 166, - - /// - /// Sequential IDs for model-specific stations (with id 167). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 167).")] - SequentialIDsForModelSpecificStations_167 = 167, - - /// - /// Sequential IDs for model-specific stations (with id 168). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 168).")] - SequentialIDsForModelSpecificStations_168 = 168, - - /// - /// Sequential IDs for model-specific stations (with id 169). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 169).")] - SequentialIDsForModelSpecificStations_169 = 169, - - /// - /// Sequential IDs for model-specific stations (with id 170). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 170).")] - SequentialIDsForModelSpecificStations_170 = 170, - - /// - /// Sequential IDs for model-specific stations (with id 171). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 171).")] - SequentialIDsForModelSpecificStations_171 = 171, - - /// - /// Sequential IDs for model-specific stations (with id 172). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 172).")] - SequentialIDsForModelSpecificStations_172 = 172, - - /// - /// Sequential IDs for model-specific stations (with id 173). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 173).")] - SequentialIDsForModelSpecificStations_173 = 173, - - /// - /// Sequential IDs for model-specific stations (with id 174). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 174).")] - SequentialIDsForModelSpecificStations_174 = 174, - - /// - /// Sequential IDs for model-specific stations (with id 175). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 175).")] - SequentialIDsForModelSpecificStations_175 = 175, - - /// - /// Sequential IDs for model-specific stations (with id 176). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 176).")] - SequentialIDsForModelSpecificStations_176 = 176, - - /// - /// Sequential IDs for model-specific stations (with id 177). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 177).")] - SequentialIDsForModelSpecificStations_177 = 177, - - /// - /// Sequential IDs for model-specific stations (with id 178). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 178).")] - SequentialIDsForModelSpecificStations_178 = 178, - - /// - /// Sequential IDs for model-specific stations (with id 179). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 179).")] - SequentialIDsForModelSpecificStations_179 = 179, - - /// - /// Sequential IDs for model-specific stations (with id 180). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 180).")] - SequentialIDsForModelSpecificStations_180 = 180, - - /// - /// Sequential IDs for model-specific stations (with id 181). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 181).")] - SequentialIDsForModelSpecificStations_181 = 181, - - /// - /// Sequential IDs for model-specific stations (with id 182). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 182).")] - SequentialIDsForModelSpecificStations_182 = 182, - - /// - /// Sequential IDs for model-specific stations (with id 183). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 183).")] - SequentialIDsForModelSpecificStations_183 = 183, - - /// - /// Sequential IDs for model-specific stations (with id 184). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 184).")] - SequentialIDsForModelSpecificStations_184 = 184, - - /// - /// Sequential IDs for model-specific stations (with id 185). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 185).")] - SequentialIDsForModelSpecificStations_185 = 185, - - /// - /// Sequential IDs for model-specific stations (with id 186). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 186).")] - SequentialIDsForModelSpecificStations_186 = 186, - - /// - /// Sequential IDs for model-specific stations (with id 187). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 187).")] - SequentialIDsForModelSpecificStations_187 = 187, - - /// - /// Sequential IDs for model-specific stations (with id 188). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 188).")] - SequentialIDsForModelSpecificStations_188 = 188, - - /// - /// Sequential IDs for model-specific stations (with id 189). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 189).")] - SequentialIDsForModelSpecificStations_189 = 189, - - /// - /// Sequential IDs for model-specific stations (with id 190). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 190).")] - SequentialIDsForModelSpecificStations_190 = 190, - - /// - /// Sequential IDs for model-specific stations (with id 191). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 191).")] - SequentialIDsForModelSpecificStations_191 = 191, - - /// - /// Sequential IDs for model-specific stations (with id 192). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 192).")] - SequentialIDsForModelSpecificStations_192 = 192, - - /// - /// Sequential IDs for model-specific stations (with id 193). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 193).")] - SequentialIDsForModelSpecificStations_193 = 193, - - /// - /// Sequential IDs for model-specific stations (with id 194). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 194).")] - SequentialIDsForModelSpecificStations_194 = 194, - - /// - /// Sequential IDs for model-specific stations (with id 195). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 195).")] - SequentialIDsForModelSpecificStations_195 = 195, - - /// - /// Sequential IDs for model-specific stations (with id 196). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 196).")] - SequentialIDsForModelSpecificStations_196 = 196, - - /// - /// Sequential IDs for model-specific stations (with id 197). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 197).")] - SequentialIDsForModelSpecificStations_197 = 197, - - /// - /// Sequential IDs for model-specific stations (with id 198). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 198).")] - SequentialIDsForModelSpecificStations_198 = 198, - - /// - /// Sequential IDs for model-specific stations (with id 199). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 199).")] - SequentialIDsForModelSpecificStations_199 = 199, - - /// - /// Sequential IDs for model-specific stations (with id 200). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 200).")] - SequentialIDsForModelSpecificStations_200 = 200, - - /// - /// Sequential IDs for model-specific stations (with id 201). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 201).")] - SequentialIDsForModelSpecificStations_201 = 201, - - /// - /// Sequential IDs for model-specific stations (with id 202). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 202).")] - SequentialIDsForModelSpecificStations_202 = 202, - - /// - /// Sequential IDs for model-specific stations (with id 203). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 203).")] - SequentialIDsForModelSpecificStations_203 = 203, - - /// - /// Sequential IDs for model-specific stations (with id 204). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 204).")] - SequentialIDsForModelSpecificStations_204 = 204, - - /// - /// Sequential IDs for model-specific stations (with id 205). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 205).")] - SequentialIDsForModelSpecificStations_205 = 205, - - /// - /// Sequential IDs for model-specific stations (with id 206). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 206).")] - SequentialIDsForModelSpecificStations_206 = 206, - - /// - /// Sequential IDs for model-specific stations (with id 207). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 207).")] - SequentialIDsForModelSpecificStations_207 = 207, - - /// - /// Sequential IDs for model-specific stations (with id 208). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 208).")] - SequentialIDsForModelSpecificStations_208 = 208, - - /// - /// Sequential IDs for model-specific stations (with id 209). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 209).")] - SequentialIDsForModelSpecificStations_209 = 209, - - /// - /// Sequential IDs for model-specific stations (with id 210). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 210).")] - SequentialIDsForModelSpecificStations_210 = 210, - - /// - /// Sequential IDs for model-specific stations (with id 211). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 211).")] - SequentialIDsForModelSpecificStations_211 = 211, - - /// - /// Sequential IDs for model-specific stations (with id 212). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 212).")] - SequentialIDsForModelSpecificStations_212 = 212, - - /// - /// Sequential IDs for model-specific stations (with id 213). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 213).")] - SequentialIDsForModelSpecificStations_213 = 213, - - /// - /// Sequential IDs for model-specific stations (with id 214). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 214).")] - SequentialIDsForModelSpecificStations_214 = 214, - - /// - /// Sequential IDs for model-specific stations (with id 215). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 215).")] - SequentialIDsForModelSpecificStations_215 = 215, - - /// - /// Sequential IDs for model-specific stations (with id 216). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 216).")] - SequentialIDsForModelSpecificStations_216 = 216, - - /// - /// Sequential IDs for model-specific stations (with id 217). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 217).")] - SequentialIDsForModelSpecificStations_217 = 217, - - /// - /// Sequential IDs for model-specific stations (with id 218). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 218).")] - SequentialIDsForModelSpecificStations_218 = 218, - - /// - /// Sequential IDs for model-specific stations (with id 219). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 219).")] - SequentialIDsForModelSpecificStations_219 = 219, - - /// - /// Sequential IDs for model-specific stations (with id 220). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 220).")] - SequentialIDsForModelSpecificStations_220 = 220, - - /// - /// Sequential IDs for model-specific stations (with id 221). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 221).")] - SequentialIDsForModelSpecificStations_221 = 221, - - /// - /// Sequential IDs for model-specific stations (with id 222). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 222).")] - SequentialIDsForModelSpecificStations_222 = 222, - - /// - /// Sequential IDs for model-specific stations (with id 223). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 223).")] - SequentialIDsForModelSpecificStations_223 = 223, - - /// - /// Sequential IDs for model-specific stations (with id 224). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 224).")] - SequentialIDsForModelSpecificStations_224 = 224, - - /// - /// Sequential IDs for model-specific stations (with id 225). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 225).")] - SequentialIDsForModelSpecificStations_225 = 225, - - /// - /// Sequential IDs for model-specific stations (with id 226). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 226).")] - SequentialIDsForModelSpecificStations_226 = 226, - - /// - /// Sequential IDs for model-specific stations (with id 227). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 227).")] - SequentialIDsForModelSpecificStations_227 = 227, - - /// - /// Sequential IDs for model-specific stations (with id 228). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 228).")] - SequentialIDsForModelSpecificStations_228 = 228, - - /// - /// Sequential IDs for model-specific stations (with id 229). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 229).")] - SequentialIDsForModelSpecificStations_229 = 229, - - /// - /// Sequential IDs for model-specific stations (with id 230). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 230).")] - SequentialIDsForModelSpecificStations_230 = 230, - - /// - /// Sequential IDs for model-specific stations (with id 231). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 231).")] - SequentialIDsForModelSpecificStations_231 = 231, - - /// - /// Sequential IDs for model-specific stations (with id 232). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 232).")] - SequentialIDsForModelSpecificStations_232 = 232, - - /// - /// Sequential IDs for model-specific stations (with id 233). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 233).")] - SequentialIDsForModelSpecificStations_233 = 233, - - /// - /// Sequential IDs for model-specific stations (with id 234). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 234).")] - SequentialIDsForModelSpecificStations_234 = 234, - - /// - /// Sequential IDs for model-specific stations (with id 235). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 235).")] - SequentialIDsForModelSpecificStations_235 = 235, - - /// - /// Sequential IDs for model-specific stations (with id 236). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 236).")] - SequentialIDsForModelSpecificStations_236 = 236, - - /// - /// Sequential IDs for model-specific stations (with id 237). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 237).")] - SequentialIDsForModelSpecificStations_237 = 237, - - /// - /// Sequential IDs for model-specific stations (with id 238). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 238).")] - SequentialIDsForModelSpecificStations_238 = 238, - - /// - /// Sequential IDs for model-specific stations (with id 239). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 239).")] - SequentialIDsForModelSpecificStations_239 = 239, - - /// - /// Sequential IDs for model-specific stations (with id 240). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 240).")] - SequentialIDsForModelSpecificStations_240 = 240, - - /// - /// Sequential IDs for model-specific stations (with id 241). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 241).")] - SequentialIDsForModelSpecificStations_241 = 241, - - /// - /// Sequential IDs for model-specific stations (with id 242). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 242).")] - SequentialIDsForModelSpecificStations_242 = 242, - - /// - /// Sequential IDs for model-specific stations (with id 243). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 243).")] - SequentialIDsForModelSpecificStations_243 = 243, - - /// - /// Sequential IDs for model-specific stations (with id 244). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 244).")] - SequentialIDsForModelSpecificStations_244 = 244, - - /// - /// Sequential IDs for model-specific stations (with id 245). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 245).")] - SequentialIDsForModelSpecificStations_245 = 245, - - /// - /// Sequential IDs for model-specific stations (with id 246). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 246).")] - SequentialIDsForModelSpecificStations_246 = 246, - - /// - /// Sequential IDs for model-specific stations (with id 247). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 247).")] - SequentialIDsForModelSpecificStations_247 = 247, - - /// - /// Sequential IDs for model-specific stations (with id 248). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 248).")] - SequentialIDsForModelSpecificStations_248 = 248, - - /// - /// Sequential IDs for model-specific stations (with id 249). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 249).")] - SequentialIDsForModelSpecificStations_249 = 249, - - /// - /// Sequential IDs for model-specific stations (with id 250). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 250).")] - SequentialIDsForModelSpecificStations_250 = 250, - - /// - /// Sequential IDs for model-specific stations (with id 251). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 251).")] - SequentialIDsForModelSpecificStations_251 = 251, - - /// - /// Sequential IDs for model-specific stations (with id 252). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 252).")] - SequentialIDsForModelSpecificStations_252 = 252, - - /// - /// Sequential IDs for model-specific stations (with id 253). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 253).")] - SequentialIDsForModelSpecificStations_253 = 253, - - /// - /// Sequential IDs for model-specific stations (with id 254). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 254).")] - SequentialIDsForModelSpecificStations_254 = 254, - - /// - /// Sequential IDs for model-specific stations (with id 255). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 255).")] - SequentialIDsForModelSpecificStations_255 = 255, - - /// - /// Sequential IDs for model-specific stations (with id 256). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 256).")] - SequentialIDsForModelSpecificStations_256 = 256, - - /// - /// Sequential IDs for model-specific stations (with id 257). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 257).")] - SequentialIDsForModelSpecificStations_257 = 257, - - /// - /// Sequential IDs for model-specific stations (with id 258). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 258).")] - SequentialIDsForModelSpecificStations_258 = 258, - - /// - /// Sequential IDs for model-specific stations (with id 259). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 259).")] - SequentialIDsForModelSpecificStations_259 = 259, - - /// - /// Sequential IDs for model-specific stations (with id 260). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 260).")] - SequentialIDsForModelSpecificStations_260 = 260, - - /// - /// Sequential IDs for model-specific stations (with id 261). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 261).")] - SequentialIDsForModelSpecificStations_261 = 261, - - /// - /// Sequential IDs for model-specific stations (with id 262). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 262).")] - SequentialIDsForModelSpecificStations_262 = 262, - - /// - /// Sequential IDs for model-specific stations (with id 263). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 263).")] - SequentialIDsForModelSpecificStations_263 = 263, - - /// - /// Sequential IDs for model-specific stations (with id 264). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 264).")] - SequentialIDsForModelSpecificStations_264 = 264, - - /// - /// Sequential IDs for model-specific stations (with id 265). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 265).")] - SequentialIDsForModelSpecificStations_265 = 265, - - /// - /// Sequential IDs for model-specific stations (with id 266). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 266).")] - SequentialIDsForModelSpecificStations_266 = 266, - - /// - /// Sequential IDs for model-specific stations (with id 267). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 267).")] - SequentialIDsForModelSpecificStations_267 = 267, - - /// - /// Sequential IDs for model-specific stations (with id 268). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 268).")] - SequentialIDsForModelSpecificStations_268 = 268, - - /// - /// Sequential IDs for model-specific stations (with id 269). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 269).")] - SequentialIDsForModelSpecificStations_269 = 269, - - /// - /// Sequential IDs for model-specific stations (with id 270). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 270).")] - SequentialIDsForModelSpecificStations_270 = 270, - - /// - /// Sequential IDs for model-specific stations (with id 271). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 271).")] - SequentialIDsForModelSpecificStations_271 = 271, - - /// - /// Sequential IDs for model-specific stations (with id 272). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 272).")] - SequentialIDsForModelSpecificStations_272 = 272, - - /// - /// Sequential IDs for model-specific stations (with id 273). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 273).")] - SequentialIDsForModelSpecificStations_273 = 273, - - /// - /// Sequential IDs for model-specific stations (with id 274). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 274).")] - SequentialIDsForModelSpecificStations_274 = 274, - - /// - /// Sequential IDs for model-specific stations (with id 275). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 275).")] - SequentialIDsForModelSpecificStations_275 = 275, - - /// - /// Sequential IDs for model-specific stations (with id 276). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 276).")] - SequentialIDsForModelSpecificStations_276 = 276, - - /// - /// Sequential IDs for model-specific stations (with id 277). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 277).")] - SequentialIDsForModelSpecificStations_277 = 277, - - /// - /// Sequential IDs for model-specific stations (with id 278). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 278).")] - SequentialIDsForModelSpecificStations_278 = 278, - - /// - /// Sequential IDs for model-specific stations (with id 279). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 279).")] - SequentialIDsForModelSpecificStations_279 = 279, - - /// - /// Sequential IDs for model-specific stations (with id 280). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 280).")] - SequentialIDsForModelSpecificStations_280 = 280, - - /// - /// Sequential IDs for model-specific stations (with id 281). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 281).")] - SequentialIDsForModelSpecificStations_281 = 281, - - /// - /// Sequential IDs for model-specific stations (with id 282). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 282).")] - SequentialIDsForModelSpecificStations_282 = 282, - - /// - /// Sequential IDs for model-specific stations (with id 283). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 283).")] - SequentialIDsForModelSpecificStations_283 = 283, - - /// - /// Sequential IDs for model-specific stations (with id 284). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 284).")] - SequentialIDsForModelSpecificStations_284 = 284, - - /// - /// Sequential IDs for model-specific stations (with id 285). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 285).")] - SequentialIDsForModelSpecificStations_285 = 285, - - /// - /// Sequential IDs for model-specific stations (with id 286). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 286).")] - SequentialIDsForModelSpecificStations_286 = 286, - - /// - /// Sequential IDs for model-specific stations (with id 287). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 287).")] - SequentialIDsForModelSpecificStations_287 = 287, - - /// - /// Sequential IDs for model-specific stations (with id 288). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 288).")] - SequentialIDsForModelSpecificStations_288 = 288, - - /// - /// Sequential IDs for model-specific stations (with id 289). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 289).")] - SequentialIDsForModelSpecificStations_289 = 289, - - /// - /// Sequential IDs for model-specific stations (with id 290). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 290).")] - SequentialIDsForModelSpecificStations_290 = 290, - - /// - /// Sequential IDs for model-specific stations (with id 291). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 291).")] - SequentialIDsForModelSpecificStations_291 = 291, - - /// - /// Sequential IDs for model-specific stations (with id 292). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 292).")] - SequentialIDsForModelSpecificStations_292 = 292, - - /// - /// Sequential IDs for model-specific stations (with id 293). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 293).")] - SequentialIDsForModelSpecificStations_293 = 293, - - /// - /// Sequential IDs for model-specific stations (with id 294). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 294).")] - SequentialIDsForModelSpecificStations_294 = 294, - - /// - /// Sequential IDs for model-specific stations (with id 295). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 295).")] - SequentialIDsForModelSpecificStations_295 = 295, - - /// - /// Sequential IDs for model-specific stations (with id 296). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 296).")] - SequentialIDsForModelSpecificStations_296 = 296, - - /// - /// Sequential IDs for model-specific stations (with id 297). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 297).")] - SequentialIDsForModelSpecificStations_297 = 297, - - /// - /// Sequential IDs for model-specific stations (with id 298). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 298).")] - SequentialIDsForModelSpecificStations_298 = 298, - - /// - /// Sequential IDs for model-specific stations (with id 299). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 299).")] - SequentialIDsForModelSpecificStations_299 = 299, - - /// - /// Sequential IDs for model-specific stations (with id 300). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 300).")] - SequentialIDsForModelSpecificStations_300 = 300, - - /// - /// Sequential IDs for model-specific stations (with id 301). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 301).")] - SequentialIDsForModelSpecificStations_301 = 301, - - /// - /// Sequential IDs for model-specific stations (with id 302). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 302).")] - SequentialIDsForModelSpecificStations_302 = 302, - - /// - /// Sequential IDs for model-specific stations (with id 303). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 303).")] - SequentialIDsForModelSpecificStations_303 = 303, - - /// - /// Sequential IDs for model-specific stations (with id 304). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 304).")] - SequentialIDsForModelSpecificStations_304 = 304, - - /// - /// Sequential IDs for model-specific stations (with id 305). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 305).")] - SequentialIDsForModelSpecificStations_305 = 305, - - /// - /// Sequential IDs for model-specific stations (with id 306). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 306).")] - SequentialIDsForModelSpecificStations_306 = 306, - - /// - /// Sequential IDs for model-specific stations (with id 307). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 307).")] - SequentialIDsForModelSpecificStations_307 = 307, - - /// - /// Sequential IDs for model-specific stations (with id 308). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 308).")] - SequentialIDsForModelSpecificStations_308 = 308, - - /// - /// Sequential IDs for model-specific stations (with id 309). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 309).")] - SequentialIDsForModelSpecificStations_309 = 309, - - /// - /// Sequential IDs for model-specific stations (with id 310). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 310).")] - SequentialIDsForModelSpecificStations_310 = 310, - - /// - /// Sequential IDs for model-specific stations (with id 311). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 311).")] - SequentialIDsForModelSpecificStations_311 = 311, - - /// - /// Sequential IDs for model-specific stations (with id 312). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 312).")] - SequentialIDsForModelSpecificStations_312 = 312, - - /// - /// Sequential IDs for model-specific stations (with id 313). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 313).")] - SequentialIDsForModelSpecificStations_313 = 313, - - /// - /// Sequential IDs for model-specific stations (with id 314). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 314).")] - SequentialIDsForModelSpecificStations_314 = 314, - - /// - /// Sequential IDs for model-specific stations (with id 315). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 315).")] - SequentialIDsForModelSpecificStations_315 = 315, - - /// - /// Sequential IDs for model-specific stations (with id 316). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 316).")] - SequentialIDsForModelSpecificStations_316 = 316, - - /// - /// Sequential IDs for model-specific stations (with id 317). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 317).")] - SequentialIDsForModelSpecificStations_317 = 317, - - /// - /// Sequential IDs for model-specific stations (with id 318). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 318).")] - SequentialIDsForModelSpecificStations_318 = 318, - - /// - /// Sequential IDs for model-specific stations (with id 319). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 319).")] - SequentialIDsForModelSpecificStations_319 = 319, - - /// - /// Sequential IDs for model-specific stations (with id 320). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 320).")] - SequentialIDsForModelSpecificStations_320 = 320, - - /// - /// Sequential IDs for model-specific stations (with id 321). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 321).")] - SequentialIDsForModelSpecificStations_321 = 321, - - /// - /// Sequential IDs for model-specific stations (with id 322). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 322).")] - SequentialIDsForModelSpecificStations_322 = 322, - - /// - /// Sequential IDs for model-specific stations (with id 323). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 323).")] - SequentialIDsForModelSpecificStations_323 = 323, - - /// - /// Sequential IDs for model-specific stations (with id 324). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 324).")] - SequentialIDsForModelSpecificStations_324 = 324, - - /// - /// Sequential IDs for model-specific stations (with id 325). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 325).")] - SequentialIDsForModelSpecificStations_325 = 325, - - /// - /// Sequential IDs for model-specific stations (with id 326). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 326).")] - SequentialIDsForModelSpecificStations_326 = 326, - - /// - /// Sequential IDs for model-specific stations (with id 327). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 327).")] - SequentialIDsForModelSpecificStations_327 = 327, - - /// - /// Sequential IDs for model-specific stations (with id 328). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 328).")] - SequentialIDsForModelSpecificStations_328 = 328, - - /// - /// Sequential IDs for model-specific stations (with id 329). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 329).")] - SequentialIDsForModelSpecificStations_329 = 329, - - /// - /// Sequential IDs for model-specific stations (with id 330). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 330).")] - SequentialIDsForModelSpecificStations_330 = 330, - - /// - /// Sequential IDs for model-specific stations (with id 331). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 331).")] - SequentialIDsForModelSpecificStations_331 = 331, - - /// - /// Sequential IDs for model-specific stations (with id 332). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 332).")] - SequentialIDsForModelSpecificStations_332 = 332, - - /// - /// Sequential IDs for model-specific stations (with id 333). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 333).")] - SequentialIDsForModelSpecificStations_333 = 333, - - /// - /// Sequential IDs for model-specific stations (with id 334). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 334).")] - SequentialIDsForModelSpecificStations_334 = 334, - - /// - /// Sequential IDs for model-specific stations (with id 335). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 335).")] - SequentialIDsForModelSpecificStations_335 = 335, - - /// - /// Sequential IDs for model-specific stations (with id 336). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 336).")] - SequentialIDsForModelSpecificStations_336 = 336, - - /// - /// Sequential IDs for model-specific stations (with id 337). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 337).")] - SequentialIDsForModelSpecificStations_337 = 337, - - /// - /// Sequential IDs for model-specific stations (with id 338). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 338).")] - SequentialIDsForModelSpecificStations_338 = 338, - - /// - /// Sequential IDs for model-specific stations (with id 339). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 339).")] - SequentialIDsForModelSpecificStations_339 = 339, - - /// - /// Sequential IDs for model-specific stations (with id 340). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 340).")] - SequentialIDsForModelSpecificStations_340 = 340, - - /// - /// Sequential IDs for model-specific stations (with id 341). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 341).")] - SequentialIDsForModelSpecificStations_341 = 341, - - /// - /// Sequential IDs for model-specific stations (with id 342). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 342).")] - SequentialIDsForModelSpecificStations_342 = 342, - - /// - /// Sequential IDs for model-specific stations (with id 343). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 343).")] - SequentialIDsForModelSpecificStations_343 = 343, - - /// - /// Sequential IDs for model-specific stations (with id 344). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 344).")] - SequentialIDsForModelSpecificStations_344 = 344, - - /// - /// Sequential IDs for model-specific stations (with id 345). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 345).")] - SequentialIDsForModelSpecificStations_345 = 345, - - /// - /// Sequential IDs for model-specific stations (with id 346). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 346).")] - SequentialIDsForModelSpecificStations_346 = 346, - - /// - /// Sequential IDs for model-specific stations (with id 347). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 347).")] - SequentialIDsForModelSpecificStations_347 = 347, - - /// - /// Sequential IDs for model-specific stations (with id 348). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 348).")] - SequentialIDsForModelSpecificStations_348 = 348, - - /// - /// Sequential IDs for model-specific stations (with id 349). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 349).")] - SequentialIDsForModelSpecificStations_349 = 349, - - /// - /// Sequential IDs for model-specific stations (with id 350). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 350).")] - SequentialIDsForModelSpecificStations_350 = 350, - - /// - /// Sequential IDs for model-specific stations (with id 351). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 351).")] - SequentialIDsForModelSpecificStations_351 = 351, - - /// - /// Sequential IDs for model-specific stations (with id 352). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 352).")] - SequentialIDsForModelSpecificStations_352 = 352, - - /// - /// Sequential IDs for model-specific stations (with id 353). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 353).")] - SequentialIDsForModelSpecificStations_353 = 353, - - /// - /// Sequential IDs for model-specific stations (with id 354). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 354).")] - SequentialIDsForModelSpecificStations_354 = 354, - - /// - /// Sequential IDs for model-specific stations (with id 355). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 355).")] - SequentialIDsForModelSpecificStations_355 = 355, - - /// - /// Sequential IDs for model-specific stations (with id 356). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 356).")] - SequentialIDsForModelSpecificStations_356 = 356, - - /// - /// Sequential IDs for model-specific stations (with id 357). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 357).")] - SequentialIDsForModelSpecificStations_357 = 357, - - /// - /// Sequential IDs for model-specific stations (with id 358). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 358).")] - SequentialIDsForModelSpecificStations_358 = 358, - - /// - /// Sequential IDs for model-specific stations (with id 359). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 359).")] - SequentialIDsForModelSpecificStations_359 = 359, - - /// - /// Sequential IDs for model-specific stations (with id 360). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 360).")] - SequentialIDsForModelSpecificStations_360 = 360, - - /// - /// Sequential IDs for model-specific stations (with id 361). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 361).")] - SequentialIDsForModelSpecificStations_361 = 361, - - /// - /// Sequential IDs for model-specific stations (with id 362). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 362).")] - SequentialIDsForModelSpecificStations_362 = 362, - - /// - /// Sequential IDs for model-specific stations (with id 363). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 363).")] - SequentialIDsForModelSpecificStations_363 = 363, - - /// - /// Sequential IDs for model-specific stations (with id 364). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 364).")] - SequentialIDsForModelSpecificStations_364 = 364, - - /// - /// Sequential IDs for model-specific stations (with id 365). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 365).")] - SequentialIDsForModelSpecificStations_365 = 365, - - /// - /// Sequential IDs for model-specific stations (with id 366). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 366).")] - SequentialIDsForModelSpecificStations_366 = 366, - - /// - /// Sequential IDs for model-specific stations (with id 367). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 367).")] - SequentialIDsForModelSpecificStations_367 = 367, - - /// - /// Sequential IDs for model-specific stations (with id 368). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 368).")] - SequentialIDsForModelSpecificStations_368 = 368, - - /// - /// Sequential IDs for model-specific stations (with id 369). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 369).")] - SequentialIDsForModelSpecificStations_369 = 369, - - /// - /// Sequential IDs for model-specific stations (with id 370). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 370).")] - SequentialIDsForModelSpecificStations_370 = 370, - - /// - /// Sequential IDs for model-specific stations (with id 371). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 371).")] - SequentialIDsForModelSpecificStations_371 = 371, - - /// - /// Sequential IDs for model-specific stations (with id 372). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 372).")] - SequentialIDsForModelSpecificStations_372 = 372, - - /// - /// Sequential IDs for model-specific stations (with id 373). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 373).")] - SequentialIDsForModelSpecificStations_373 = 373, - - /// - /// Sequential IDs for model-specific stations (with id 374). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 374).")] - SequentialIDsForModelSpecificStations_374 = 374, - - /// - /// Sequential IDs for model-specific stations (with id 375). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 375).")] - SequentialIDsForModelSpecificStations_375 = 375, - - /// - /// Sequential IDs for model-specific stations (with id 376). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 376).")] - SequentialIDsForModelSpecificStations_376 = 376, - - /// - /// Sequential IDs for model-specific stations (with id 377). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 377).")] - SequentialIDsForModelSpecificStations_377 = 377, - - /// - /// Sequential IDs for model-specific stations (with id 378). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 378).")] - SequentialIDsForModelSpecificStations_378 = 378, - - /// - /// Sequential IDs for model-specific stations (with id 379). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 379).")] - SequentialIDsForModelSpecificStations_379 = 379, - - /// - /// Sequential IDs for model-specific stations (with id 380). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 380).")] - SequentialIDsForModelSpecificStations_380 = 380, - - /// - /// Sequential IDs for model-specific stations (with id 381). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 381).")] - SequentialIDsForModelSpecificStations_381 = 381, - - /// - /// Sequential IDs for model-specific stations (with id 382). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 382).")] - SequentialIDsForModelSpecificStations_382 = 382, - - /// - /// Sequential IDs for model-specific stations (with id 383). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 383).")] - SequentialIDsForModelSpecificStations_383 = 383, - - /// - /// Sequential IDs for model-specific stations (with id 384). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 384).")] - SequentialIDsForModelSpecificStations_384 = 384, - - /// - /// Sequential IDs for model-specific stations (with id 385). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 385).")] - SequentialIDsForModelSpecificStations_385 = 385, - - /// - /// Sequential IDs for model-specific stations (with id 386). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 386).")] - SequentialIDsForModelSpecificStations_386 = 386, - - /// - /// Sequential IDs for model-specific stations (with id 387). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 387).")] - SequentialIDsForModelSpecificStations_387 = 387, - - /// - /// Sequential IDs for model-specific stations (with id 388). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 388).")] - SequentialIDsForModelSpecificStations_388 = 388, - - /// - /// Sequential IDs for model-specific stations (with id 389). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 389).")] - SequentialIDsForModelSpecificStations_389 = 389, - - /// - /// Sequential IDs for model-specific stations (with id 390). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 390).")] - SequentialIDsForModelSpecificStations_390 = 390, - - /// - /// Sequential IDs for model-specific stations (with id 391). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 391).")] - SequentialIDsForModelSpecificStations_391 = 391, - - /// - /// Sequential IDs for model-specific stations (with id 392). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 392).")] - SequentialIDsForModelSpecificStations_392 = 392, - - /// - /// Sequential IDs for model-specific stations (with id 393). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 393).")] - SequentialIDsForModelSpecificStations_393 = 393, - - /// - /// Sequential IDs for model-specific stations (with id 394). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 394).")] - SequentialIDsForModelSpecificStations_394 = 394, - - /// - /// Sequential IDs for model-specific stations (with id 395). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 395).")] - SequentialIDsForModelSpecificStations_395 = 395, - - /// - /// Sequential IDs for model-specific stations (with id 396). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 396).")] - SequentialIDsForModelSpecificStations_396 = 396, - - /// - /// Sequential IDs for model-specific stations (with id 397). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 397).")] - SequentialIDsForModelSpecificStations_397 = 397, - - /// - /// Sequential IDs for model-specific stations (with id 398). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 398).")] - SequentialIDsForModelSpecificStations_398 = 398, - - /// - /// Sequential IDs for model-specific stations (with id 399). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 399).")] - SequentialIDsForModelSpecificStations_399 = 399, - - /// - /// Sequential IDs for model-specific stations (with id 400). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 400).")] - SequentialIDsForModelSpecificStations_400 = 400, - - /// - /// Sequential IDs for model-specific stations (with id 401). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 401).")] - SequentialIDsForModelSpecificStations_401 = 401, - - /// - /// Sequential IDs for model-specific stations (with id 402). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 402).")] - SequentialIDsForModelSpecificStations_402 = 402, - - /// - /// Sequential IDs for model-specific stations (with id 403). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 403).")] - SequentialIDsForModelSpecificStations_403 = 403, - - /// - /// Sequential IDs for model-specific stations (with id 404). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 404).")] - SequentialIDsForModelSpecificStations_404 = 404, - - /// - /// Sequential IDs for model-specific stations (with id 405). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 405).")] - SequentialIDsForModelSpecificStations_405 = 405, - - /// - /// Sequential IDs for model-specific stations (with id 406). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 406).")] - SequentialIDsForModelSpecificStations_406 = 406, - - /// - /// Sequential IDs for model-specific stations (with id 407). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 407).")] - SequentialIDsForModelSpecificStations_407 = 407, - - /// - /// Sequential IDs for model-specific stations (with id 408). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 408).")] - SequentialIDsForModelSpecificStations_408 = 408, - - /// - /// Sequential IDs for model-specific stations (with id 409). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 409).")] - SequentialIDsForModelSpecificStations_409 = 409, - - /// - /// Sequential IDs for model-specific stations (with id 410). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 410).")] - SequentialIDsForModelSpecificStations_410 = 410, - - /// - /// Sequential IDs for model-specific stations (with id 411). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 411).")] - SequentialIDsForModelSpecificStations_411 = 411, - - /// - /// Sequential IDs for model-specific stations (with id 412). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 412).")] - SequentialIDsForModelSpecificStations_412 = 412, - - /// - /// Sequential IDs for model-specific stations (with id 413). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 413).")] - SequentialIDsForModelSpecificStations_413 = 413, - - /// - /// Sequential IDs for model-specific stations (with id 414). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 414).")] - SequentialIDsForModelSpecificStations_414 = 414, - - /// - /// Sequential IDs for model-specific stations (with id 415). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 415).")] - SequentialIDsForModelSpecificStations_415 = 415, - - /// - /// Sequential IDs for model-specific stations (with id 416). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 416).")] - SequentialIDsForModelSpecificStations_416 = 416, - - /// - /// Sequential IDs for model-specific stations (with id 417). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 417).")] - SequentialIDsForModelSpecificStations_417 = 417, - - /// - /// Sequential IDs for model-specific stations (with id 418). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 418).")] - SequentialIDsForModelSpecificStations_418 = 418, - - /// - /// Sequential IDs for model-specific stations (with id 419). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 419).")] - SequentialIDsForModelSpecificStations_419 = 419, - - /// - /// Sequential IDs for model-specific stations (with id 420). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 420).")] - SequentialIDsForModelSpecificStations_420 = 420, - - /// - /// Sequential IDs for model-specific stations (with id 421). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 421).")] - SequentialIDsForModelSpecificStations_421 = 421, - - /// - /// Sequential IDs for model-specific stations (with id 422). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 422).")] - SequentialIDsForModelSpecificStations_422 = 422, - - /// - /// Sequential IDs for model-specific stations (with id 423). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 423).")] - SequentialIDsForModelSpecificStations_423 = 423, - - /// - /// Sequential IDs for model-specific stations (with id 424). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 424).")] - SequentialIDsForModelSpecificStations_424 = 424, - - /// - /// Sequential IDs for model-specific stations (with id 425). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 425).")] - SequentialIDsForModelSpecificStations_425 = 425, - - /// - /// Sequential IDs for model-specific stations (with id 426). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 426).")] - SequentialIDsForModelSpecificStations_426 = 426, - - /// - /// Sequential IDs for model-specific stations (with id 427). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 427).")] - SequentialIDsForModelSpecificStations_427 = 427, - - /// - /// Sequential IDs for model-specific stations (with id 428). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 428).")] - SequentialIDsForModelSpecificStations_428 = 428, - - /// - /// Sequential IDs for model-specific stations (with id 429). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 429).")] - SequentialIDsForModelSpecificStations_429 = 429, - - /// - /// Sequential IDs for model-specific stations (with id 430). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 430).")] - SequentialIDsForModelSpecificStations_430 = 430, - - /// - /// Sequential IDs for model-specific stations (with id 431). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 431).")] - SequentialIDsForModelSpecificStations_431 = 431, - - /// - /// Sequential IDs for model-specific stations (with id 432). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 432).")] - SequentialIDsForModelSpecificStations_432 = 432, - - /// - /// Sequential IDs for model-specific stations (with id 433). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 433).")] - SequentialIDsForModelSpecificStations_433 = 433, - - /// - /// Sequential IDs for model-specific stations (with id 434). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 434).")] - SequentialIDsForModelSpecificStations_434 = 434, - - /// - /// Sequential IDs for model-specific stations (with id 435). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 435).")] - SequentialIDsForModelSpecificStations_435 = 435, - - /// - /// Sequential IDs for model-specific stations (with id 436). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 436).")] - SequentialIDsForModelSpecificStations_436 = 436, - - /// - /// Sequential IDs for model-specific stations (with id 437). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 437).")] - SequentialIDsForModelSpecificStations_437 = 437, - - /// - /// Sequential IDs for model-specific stations (with id 438). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 438).")] - SequentialIDsForModelSpecificStations_438 = 438, - - /// - /// Sequential IDs for model-specific stations (with id 439). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 439).")] - SequentialIDsForModelSpecificStations_439 = 439, - - /// - /// Sequential IDs for model-specific stations (with id 440). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 440).")] - SequentialIDsForModelSpecificStations_440 = 440, - - /// - /// Sequential IDs for model-specific stations (with id 441). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 441).")] - SequentialIDsForModelSpecificStations_441 = 441, - - /// - /// Sequential IDs for model-specific stations (with id 442). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 442).")] - SequentialIDsForModelSpecificStations_442 = 442, - - /// - /// Sequential IDs for model-specific stations (with id 443). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 443).")] - SequentialIDsForModelSpecificStations_443 = 443, - - /// - /// Sequential IDs for model-specific stations (with id 444). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 444).")] - SequentialIDsForModelSpecificStations_444 = 444, - - /// - /// Sequential IDs for model-specific stations (with id 445). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 445).")] - SequentialIDsForModelSpecificStations_445 = 445, - - /// - /// Sequential IDs for model-specific stations (with id 446). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 446).")] - SequentialIDsForModelSpecificStations_446 = 446, - - /// - /// Sequential IDs for model-specific stations (with id 447). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 447).")] - SequentialIDsForModelSpecificStations_447 = 447, - - /// - /// Sequential IDs for model-specific stations (with id 448). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 448).")] - SequentialIDsForModelSpecificStations_448 = 448, - - /// - /// Sequential IDs for model-specific stations (with id 449). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 449).")] - SequentialIDsForModelSpecificStations_449 = 449, - - /// - /// Sequential IDs for model-specific stations (with id 450). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 450).")] - SequentialIDsForModelSpecificStations_450 = 450, - - /// - /// Sequential IDs for model-specific stations (with id 451). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 451).")] - SequentialIDsForModelSpecificStations_451 = 451, - - /// - /// Sequential IDs for model-specific stations (with id 452). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 452).")] - SequentialIDsForModelSpecificStations_452 = 452, - - /// - /// Sequential IDs for model-specific stations (with id 453). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 453).")] - SequentialIDsForModelSpecificStations_453 = 453, - - /// - /// Sequential IDs for model-specific stations (with id 454). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 454).")] - SequentialIDsForModelSpecificStations_454 = 454, - - /// - /// Sequential IDs for model-specific stations (with id 455). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 455).")] - SequentialIDsForModelSpecificStations_455 = 455, - - /// - /// Sequential IDs for model-specific stations (with id 456). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 456).")] - SequentialIDsForModelSpecificStations_456 = 456, - - /// - /// Sequential IDs for model-specific stations (with id 457). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 457).")] - SequentialIDsForModelSpecificStations_457 = 457, - - /// - /// Sequential IDs for model-specific stations (with id 458). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 458).")] - SequentialIDsForModelSpecificStations_458 = 458, - - /// - /// Sequential IDs for model-specific stations (with id 459). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 459).")] - SequentialIDsForModelSpecificStations_459 = 459, - - /// - /// Sequential IDs for model-specific stations (with id 460). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 460).")] - SequentialIDsForModelSpecificStations_460 = 460, - - /// - /// Sequential IDs for model-specific stations (with id 461). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 461).")] - SequentialIDsForModelSpecificStations_461 = 461, - - /// - /// Sequential IDs for model-specific stations (with id 462). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 462).")] - SequentialIDsForModelSpecificStations_462 = 462, - - /// - /// Sequential IDs for model-specific stations (with id 463). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 463).")] - SequentialIDsForModelSpecificStations_463 = 463, - - /// - /// Sequential IDs for model-specific stations (with id 464). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 464).")] - SequentialIDsForModelSpecificStations_464 = 464, - - /// - /// Sequential IDs for model-specific stations (with id 465). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 465).")] - SequentialIDsForModelSpecificStations_465 = 465, - - /// - /// Sequential IDs for model-specific stations (with id 466). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 466).")] - SequentialIDsForModelSpecificStations_466 = 466, - - /// - /// Sequential IDs for model-specific stations (with id 467). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 467).")] - SequentialIDsForModelSpecificStations_467 = 467, - - /// - /// Sequential IDs for model-specific stations (with id 468). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 468).")] - SequentialIDsForModelSpecificStations_468 = 468, - - /// - /// Sequential IDs for model-specific stations (with id 469). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 469).")] - SequentialIDsForModelSpecificStations_469 = 469, - - /// - /// Sequential IDs for model-specific stations (with id 470). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 470).")] - SequentialIDsForModelSpecificStations_470 = 470, - - /// - /// Sequential IDs for model-specific stations (with id 471). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 471).")] - SequentialIDsForModelSpecificStations_471 = 471, - - /// - /// Sequential IDs for model-specific stations (with id 472). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 472).")] - SequentialIDsForModelSpecificStations_472 = 472, - - /// - /// Sequential IDs for model-specific stations (with id 473). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 473).")] - SequentialIDsForModelSpecificStations_473 = 473, - - /// - /// Sequential IDs for model-specific stations (with id 474). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 474).")] - SequentialIDsForModelSpecificStations_474 = 474, - - /// - /// Sequential IDs for model-specific stations (with id 475). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 475).")] - SequentialIDsForModelSpecificStations_475 = 475, - - /// - /// Sequential IDs for model-specific stations (with id 476). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 476).")] - SequentialIDsForModelSpecificStations_476 = 476, - - /// - /// Sequential IDs for model-specific stations (with id 477). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 477).")] - SequentialIDsForModelSpecificStations_477 = 477, - - /// - /// Sequential IDs for model-specific stations (with id 478). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 478).")] - SequentialIDsForModelSpecificStations_478 = 478, - - /// - /// Sequential IDs for model-specific stations (with id 479). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 479).")] - SequentialIDsForModelSpecificStations_479 = 479, - - /// - /// Sequential IDs for model-specific stations (with id 480). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 480).")] - SequentialIDsForModelSpecificStations_480 = 480, - - /// - /// Sequential IDs for model-specific stations (with id 481). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 481).")] - SequentialIDsForModelSpecificStations_481 = 481, - - /// - /// Sequential IDs for model-specific stations (with id 482). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 482).")] - SequentialIDsForModelSpecificStations_482 = 482, - - /// - /// Sequential IDs for model-specific stations (with id 483). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 483).")] - SequentialIDsForModelSpecificStations_483 = 483, - - /// - /// Sequential IDs for model-specific stations (with id 484). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 484).")] - SequentialIDsForModelSpecificStations_484 = 484, - - /// - /// Sequential IDs for model-specific stations (with id 485). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 485).")] - SequentialIDsForModelSpecificStations_485 = 485, - - /// - /// Sequential IDs for model-specific stations (with id 486). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 486).")] - SequentialIDsForModelSpecificStations_486 = 486, - - /// - /// Sequential IDs for model-specific stations (with id 487). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 487).")] - SequentialIDsForModelSpecificStations_487 = 487, - - /// - /// Sequential IDs for model-specific stations (with id 488). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 488).")] - SequentialIDsForModelSpecificStations_488 = 488, - - /// - /// Sequential IDs for model-specific stations (with id 489). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 489).")] - SequentialIDsForModelSpecificStations_489 = 489, - - /// - /// Sequential IDs for model-specific stations (with id 490). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 490).")] - SequentialIDsForModelSpecificStations_490 = 490, - - /// - /// Sequential IDs for model-specific stations (with id 491). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 491).")] - SequentialIDsForModelSpecificStations_491 = 491, - - /// - /// Sequential IDs for model-specific stations (with id 492). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 492).")] - SequentialIDsForModelSpecificStations_492 = 492, - - /// - /// Sequential IDs for model-specific stations (with id 493). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 493).")] - SequentialIDsForModelSpecificStations_493 = 493, - - /// - /// Sequential IDs for model-specific stations (with id 494). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 494).")] - SequentialIDsForModelSpecificStations_494 = 494, - - /// - /// Sequential IDs for model-specific stations (with id 495). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 495).")] - SequentialIDsForModelSpecificStations_495 = 495, - - /// - /// Sequential IDs for model-specific stations (with id 496). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 496).")] - SequentialIDsForModelSpecificStations_496 = 496, - - /// - /// Sequential IDs for model-specific stations (with id 497). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 497).")] - SequentialIDsForModelSpecificStations_497 = 497, - - /// - /// Sequential IDs for model-specific stations (with id 498). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 498).")] - SequentialIDsForModelSpecificStations_498 = 498, - - /// - /// Sequential IDs for model-specific stations (with id 499). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 499).")] - SequentialIDsForModelSpecificStations_499 = 499, - - /// - /// Sequential IDs for model-specific stations (with id 500). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 500).")] - SequentialIDsForModelSpecificStations_500 = 500, - - /// - /// Sequential IDs for model-specific stations (with id 501). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 501).")] - SequentialIDsForModelSpecificStations_501 = 501, - - /// - /// Sequential IDs for model-specific stations (with id 502). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 502).")] - SequentialIDsForModelSpecificStations_502 = 502, - - /// - /// Sequential IDs for model-specific stations (with id 503). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 503).")] - SequentialIDsForModelSpecificStations_503 = 503, - - /// - /// Sequential IDs for model-specific stations (with id 504). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 504).")] - SequentialIDsForModelSpecificStations_504 = 504, - - /// - /// Sequential IDs for model-specific stations (with id 505). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 505).")] - SequentialIDsForModelSpecificStations_505 = 505, - - /// - /// Sequential IDs for model-specific stations (with id 506). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 506).")] - SequentialIDsForModelSpecificStations_506 = 506, - - /// - /// Sequential IDs for model-specific stations (with id 507). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 507).")] - SequentialIDsForModelSpecificStations_507 = 507, - - /// - /// Sequential IDs for model-specific stations (with id 508). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 508).")] - SequentialIDsForModelSpecificStations_508 = 508, - - /// - /// Sequential IDs for model-specific stations (with id 509). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 509).")] - SequentialIDsForModelSpecificStations_509 = 509, - - /// - /// Sequential IDs for model-specific stations (with id 510). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 510).")] - SequentialIDsForModelSpecificStations_510 = 510, - - /// - /// Sequential IDs for model-specific stations (with id 511). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sequential IDs for model-specific stations (with id 511).")] - SequentialIDsForModelSpecificStations_511 = 511, - - /// - /// Fuselage Stations (with id 512). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 512).")] - FuselageStations_512 = 512, - - /// - /// Fuselage Stations (with id 513). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 513).")] - FuselageStations_513 = 513, - - /// - /// Fuselage Stations (with id 514). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 514).")] - FuselageStations_514 = 514, - - /// - /// Fuselage Stations (with id 515). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 515).")] - FuselageStations_515 = 515, - - /// - /// Fuselage Stations (with id 516). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 516).")] - FuselageStations_516 = 516, - - /// - /// Fuselage Stations (with id 517). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 517).")] - FuselageStations_517 = 517, - - /// - /// Fuselage Stations (with id 518). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 518).")] - FuselageStations_518 = 518, - - /// - /// Fuselage Stations (with id 519). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 519).")] - FuselageStations_519 = 519, - - /// - /// Fuselage Stations (with id 520). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 520).")] - FuselageStations_520 = 520, - - /// - /// Fuselage Stations (with id 521). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 521).")] - FuselageStations_521 = 521, - - /// - /// Fuselage Stations (with id 522). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 522).")] - FuselageStations_522 = 522, - - /// - /// Fuselage Stations (with id 523). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 523).")] - FuselageStations_523 = 523, - - /// - /// Fuselage Stations (with id 524). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 524).")] - FuselageStations_524 = 524, - - /// - /// Fuselage Stations (with id 525). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 525).")] - FuselageStations_525 = 525, - - /// - /// Fuselage Stations (with id 526). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 526).")] - FuselageStations_526 = 526, - - /// - /// Fuselage Stations (with id 527). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 527).")] - FuselageStations_527 = 527, - - /// - /// Fuselage Stations (with id 528). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 528).")] - FuselageStations_528 = 528, - - /// - /// Fuselage Stations (with id 529). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 529).")] - FuselageStations_529 = 529, - - /// - /// Fuselage Stations (with id 530). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 530).")] - FuselageStations_530 = 530, - - /// - /// Fuselage Stations (with id 531). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 531).")] - FuselageStations_531 = 531, - - /// - /// Fuselage Stations (with id 532). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 532).")] - FuselageStations_532 = 532, - - /// - /// Fuselage Stations (with id 533). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 533).")] - FuselageStations_533 = 533, - - /// - /// Fuselage Stations (with id 534). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 534).")] - FuselageStations_534 = 534, - - /// - /// Fuselage Stations (with id 535). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 535).")] - FuselageStations_535 = 535, - - /// - /// Fuselage Stations (with id 536). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 536).")] - FuselageStations_536 = 536, - - /// - /// Fuselage Stations (with id 537). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 537).")] - FuselageStations_537 = 537, - - /// - /// Fuselage Stations (with id 538). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 538).")] - FuselageStations_538 = 538, - - /// - /// Fuselage Stations (with id 539). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 539).")] - FuselageStations_539 = 539, - - /// - /// Fuselage Stations (with id 540). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 540).")] - FuselageStations_540 = 540, - - /// - /// Fuselage Stations (with id 541). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 541).")] - FuselageStations_541 = 541, - - /// - /// Fuselage Stations (with id 542). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 542).")] - FuselageStations_542 = 542, - - /// - /// Fuselage Stations (with id 543). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 543).")] - FuselageStations_543 = 543, - - /// - /// Fuselage Stations (with id 544). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 544).")] - FuselageStations_544 = 544, - - /// - /// Fuselage Stations (with id 545). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 545).")] - FuselageStations_545 = 545, - - /// - /// Fuselage Stations (with id 546). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 546).")] - FuselageStations_546 = 546, - - /// - /// Fuselage Stations (with id 547). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 547).")] - FuselageStations_547 = 547, - - /// - /// Fuselage Stations (with id 548). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 548).")] - FuselageStations_548 = 548, - - /// - /// Fuselage Stations (with id 549). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 549).")] - FuselageStations_549 = 549, - - /// - /// Fuselage Stations (with id 550). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 550).")] - FuselageStations_550 = 550, - - /// - /// Fuselage Stations (with id 551). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 551).")] - FuselageStations_551 = 551, - - /// - /// Fuselage Stations (with id 552). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 552).")] - FuselageStations_552 = 552, - - /// - /// Fuselage Stations (with id 553). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 553).")] - FuselageStations_553 = 553, - - /// - /// Fuselage Stations (with id 554). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 554).")] - FuselageStations_554 = 554, - - /// - /// Fuselage Stations (with id 555). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 555).")] - FuselageStations_555 = 555, - - /// - /// Fuselage Stations (with id 556). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 556).")] - FuselageStations_556 = 556, - - /// - /// Fuselage Stations (with id 557). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 557).")] - FuselageStations_557 = 557, - - /// - /// Fuselage Stations (with id 558). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 558).")] - FuselageStations_558 = 558, - - /// - /// Fuselage Stations (with id 559). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 559).")] - FuselageStations_559 = 559, - - /// - /// Fuselage Stations (with id 560). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 560).")] - FuselageStations_560 = 560, - - /// - /// Fuselage Stations (with id 561). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 561).")] - FuselageStations_561 = 561, - - /// - /// Fuselage Stations (with id 562). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 562).")] - FuselageStations_562 = 562, - - /// - /// Fuselage Stations (with id 563). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 563).")] - FuselageStations_563 = 563, - - /// - /// Fuselage Stations (with id 564). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 564).")] - FuselageStations_564 = 564, - - /// - /// Fuselage Stations (with id 565). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 565).")] - FuselageStations_565 = 565, - - /// - /// Fuselage Stations (with id 566). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 566).")] - FuselageStations_566 = 566, - - /// - /// Fuselage Stations (with id 567). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 567).")] - FuselageStations_567 = 567, - - /// - /// Fuselage Stations (with id 568). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 568).")] - FuselageStations_568 = 568, - - /// - /// Fuselage Stations (with id 569). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 569).")] - FuselageStations_569 = 569, - - /// - /// Fuselage Stations (with id 570). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 570).")] - FuselageStations_570 = 570, - - /// - /// Fuselage Stations (with id 571). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 571).")] - FuselageStations_571 = 571, - - /// - /// Fuselage Stations (with id 572). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 572).")] - FuselageStations_572 = 572, - - /// - /// Fuselage Stations (with id 573). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 573).")] - FuselageStations_573 = 573, - - /// - /// Fuselage Stations (with id 574). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 574).")] - FuselageStations_574 = 574, - - /// - /// Fuselage Stations (with id 575). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 575).")] - FuselageStations_575 = 575, - - /// - /// Fuselage Stations (with id 576). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 576).")] - FuselageStations_576 = 576, - - /// - /// Fuselage Stations (with id 577). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 577).")] - FuselageStations_577 = 577, - - /// - /// Fuselage Stations (with id 578). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 578).")] - FuselageStations_578 = 578, - - /// - /// Fuselage Stations (with id 579). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 579).")] - FuselageStations_579 = 579, - - /// - /// Fuselage Stations (with id 580). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 580).")] - FuselageStations_580 = 580, - - /// - /// Fuselage Stations (with id 581). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 581).")] - FuselageStations_581 = 581, - - /// - /// Fuselage Stations (with id 582). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 582).")] - FuselageStations_582 = 582, - - /// - /// Fuselage Stations (with id 583). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 583).")] - FuselageStations_583 = 583, - - /// - /// Fuselage Stations (with id 584). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 584).")] - FuselageStations_584 = 584, - - /// - /// Fuselage Stations (with id 585). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 585).")] - FuselageStations_585 = 585, - - /// - /// Fuselage Stations (with id 586). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 586).")] - FuselageStations_586 = 586, - - /// - /// Fuselage Stations (with id 587). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 587).")] - FuselageStations_587 = 587, - - /// - /// Fuselage Stations (with id 588). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 588).")] - FuselageStations_588 = 588, - - /// - /// Fuselage Stations (with id 589). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 589).")] - FuselageStations_589 = 589, - - /// - /// Fuselage Stations (with id 590). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 590).")] - FuselageStations_590 = 590, - - /// - /// Fuselage Stations (with id 591). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 591).")] - FuselageStations_591 = 591, - - /// - /// Fuselage Stations (with id 592). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 592).")] - FuselageStations_592 = 592, - - /// - /// Fuselage Stations (with id 593). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 593).")] - FuselageStations_593 = 593, - - /// - /// Fuselage Stations (with id 594). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 594).")] - FuselageStations_594 = 594, - - /// - /// Fuselage Stations (with id 595). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 595).")] - FuselageStations_595 = 595, - - /// - /// Fuselage Stations (with id 596). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 596).")] - FuselageStations_596 = 596, - - /// - /// Fuselage Stations (with id 597). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 597).")] - FuselageStations_597 = 597, - - /// - /// Fuselage Stations (with id 598). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 598).")] - FuselageStations_598 = 598, - - /// - /// Fuselage Stations (with id 599). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 599).")] - FuselageStations_599 = 599, - - /// - /// Fuselage Stations (with id 600). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 600).")] - FuselageStations_600 = 600, - - /// - /// Fuselage Stations (with id 601). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 601).")] - FuselageStations_601 = 601, - - /// - /// Fuselage Stations (with id 602). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 602).")] - FuselageStations_602 = 602, - - /// - /// Fuselage Stations (with id 603). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 603).")] - FuselageStations_603 = 603, - - /// - /// Fuselage Stations (with id 604). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 604).")] - FuselageStations_604 = 604, - - /// - /// Fuselage Stations (with id 605). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 605).")] - FuselageStations_605 = 605, - - /// - /// Fuselage Stations (with id 606). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 606).")] - FuselageStations_606 = 606, - - /// - /// Fuselage Stations (with id 607). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 607).")] - FuselageStations_607 = 607, - - /// - /// Fuselage Stations (with id 608). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 608).")] - FuselageStations_608 = 608, - - /// - /// Fuselage Stations (with id 609). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 609).")] - FuselageStations_609 = 609, - - /// - /// Fuselage Stations (with id 610). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 610).")] - FuselageStations_610 = 610, - - /// - /// Fuselage Stations (with id 611). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 611).")] - FuselageStations_611 = 611, - - /// - /// Fuselage Stations (with id 612). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 612).")] - FuselageStations_612 = 612, - - /// - /// Fuselage Stations (with id 613). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 613).")] - FuselageStations_613 = 613, - - /// - /// Fuselage Stations (with id 614). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 614).")] - FuselageStations_614 = 614, - - /// - /// Fuselage Stations (with id 615). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 615).")] - FuselageStations_615 = 615, - - /// - /// Fuselage Stations (with id 616). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 616).")] - FuselageStations_616 = 616, - - /// - /// Fuselage Stations (with id 617). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 617).")] - FuselageStations_617 = 617, - - /// - /// Fuselage Stations (with id 618). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 618).")] - FuselageStations_618 = 618, - - /// - /// Fuselage Stations (with id 619). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 619).")] - FuselageStations_619 = 619, - - /// - /// Fuselage Stations (with id 620). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 620).")] - FuselageStations_620 = 620, - - /// - /// Fuselage Stations (with id 621). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 621).")] - FuselageStations_621 = 621, - - /// - /// Fuselage Stations (with id 622). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 622).")] - FuselageStations_622 = 622, - - /// - /// Fuselage Stations (with id 623). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 623).")] - FuselageStations_623 = 623, - - /// - /// Fuselage Stations (with id 624). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 624).")] - FuselageStations_624 = 624, - - /// - /// Fuselage Stations (with id 625). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 625).")] - FuselageStations_625 = 625, - - /// - /// Fuselage Stations (with id 626). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 626).")] - FuselageStations_626 = 626, - - /// - /// Fuselage Stations (with id 627). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 627).")] - FuselageStations_627 = 627, - - /// - /// Fuselage Stations (with id 628). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 628).")] - FuselageStations_628 = 628, - - /// - /// Fuselage Stations (with id 629). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 629).")] - FuselageStations_629 = 629, - - /// - /// Fuselage Stations (with id 630). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 630).")] - FuselageStations_630 = 630, - - /// - /// Fuselage Stations (with id 631). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 631).")] - FuselageStations_631 = 631, - - /// - /// Fuselage Stations (with id 632). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 632).")] - FuselageStations_632 = 632, - - /// - /// Fuselage Stations (with id 633). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 633).")] - FuselageStations_633 = 633, - - /// - /// Fuselage Stations (with id 634). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 634).")] - FuselageStations_634 = 634, - - /// - /// Fuselage Stations (with id 635). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 635).")] - FuselageStations_635 = 635, - - /// - /// Fuselage Stations (with id 636). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 636).")] - FuselageStations_636 = 636, - - /// - /// Fuselage Stations (with id 637). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 637).")] - FuselageStations_637 = 637, - - /// - /// Fuselage Stations (with id 638). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 638).")] - FuselageStations_638 = 638, - - /// - /// Fuselage Stations (with id 639). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuselage Stations (with id 639).")] - FuselageStations_639 = 639, - - /// - /// Left-wing Stations (with id 640). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 640).")] - LeftWingStations_640 = 640, - - /// - /// Left-wing Stations (with id 641). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 641).")] - LeftWingStations_641 = 641, - - /// - /// Left-wing Stations (with id 642). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 642).")] - LeftWingStations_642 = 642, - - /// - /// Left-wing Stations (with id 643). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 643).")] - LeftWingStations_643 = 643, - - /// - /// Left-wing Stations (with id 644). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 644).")] - LeftWingStations_644 = 644, - - /// - /// Left-wing Stations (with id 645). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 645).")] - LeftWingStations_645 = 645, - - /// - /// Left-wing Stations (with id 646). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 646).")] - LeftWingStations_646 = 646, - - /// - /// Left-wing Stations (with id 647). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 647).")] - LeftWingStations_647 = 647, - - /// - /// Left-wing Stations (with id 648). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 648).")] - LeftWingStations_648 = 648, - - /// - /// Left-wing Stations (with id 649). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 649).")] - LeftWingStations_649 = 649, - - /// - /// Left-wing Stations (with id 650). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 650).")] - LeftWingStations_650 = 650, - - /// - /// Left-wing Stations (with id 651). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 651).")] - LeftWingStations_651 = 651, - - /// - /// Left-wing Stations (with id 652). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 652).")] - LeftWingStations_652 = 652, - - /// - /// Left-wing Stations (with id 653). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 653).")] - LeftWingStations_653 = 653, - - /// - /// Left-wing Stations (with id 654). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 654).")] - LeftWingStations_654 = 654, - - /// - /// Left-wing Stations (with id 655). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 655).")] - LeftWingStations_655 = 655, - - /// - /// Left-wing Stations (with id 656). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 656).")] - LeftWingStations_656 = 656, - - /// - /// Left-wing Stations (with id 657). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 657).")] - LeftWingStations_657 = 657, - - /// - /// Left-wing Stations (with id 658). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 658).")] - LeftWingStations_658 = 658, - - /// - /// Left-wing Stations (with id 659). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 659).")] - LeftWingStations_659 = 659, - - /// - /// Left-wing Stations (with id 660). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 660).")] - LeftWingStations_660 = 660, - - /// - /// Left-wing Stations (with id 661). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 661).")] - LeftWingStations_661 = 661, - - /// - /// Left-wing Stations (with id 662). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 662).")] - LeftWingStations_662 = 662, - - /// - /// Left-wing Stations (with id 663). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 663).")] - LeftWingStations_663 = 663, - - /// - /// Left-wing Stations (with id 664). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 664).")] - LeftWingStations_664 = 664, - - /// - /// Left-wing Stations (with id 665). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 665).")] - LeftWingStations_665 = 665, - - /// - /// Left-wing Stations (with id 666). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 666).")] - LeftWingStations_666 = 666, - - /// - /// Left-wing Stations (with id 667). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 667).")] - LeftWingStations_667 = 667, - - /// - /// Left-wing Stations (with id 668). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 668).")] - LeftWingStations_668 = 668, - - /// - /// Left-wing Stations (with id 669). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 669).")] - LeftWingStations_669 = 669, - - /// - /// Left-wing Stations (with id 670). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 670).")] - LeftWingStations_670 = 670, - - /// - /// Left-wing Stations (with id 671). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 671).")] - LeftWingStations_671 = 671, - - /// - /// Left-wing Stations (with id 672). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 672).")] - LeftWingStations_672 = 672, - - /// - /// Left-wing Stations (with id 673). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 673).")] - LeftWingStations_673 = 673, - - /// - /// Left-wing Stations (with id 674). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 674).")] - LeftWingStations_674 = 674, - - /// - /// Left-wing Stations (with id 675). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 675).")] - LeftWingStations_675 = 675, - - /// - /// Left-wing Stations (with id 676). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 676).")] - LeftWingStations_676 = 676, - - /// - /// Left-wing Stations (with id 677). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 677).")] - LeftWingStations_677 = 677, - - /// - /// Left-wing Stations (with id 678). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 678).")] - LeftWingStations_678 = 678, - - /// - /// Left-wing Stations (with id 679). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 679).")] - LeftWingStations_679 = 679, - - /// - /// Left-wing Stations (with id 680). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 680).")] - LeftWingStations_680 = 680, - - /// - /// Left-wing Stations (with id 681). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 681).")] - LeftWingStations_681 = 681, - - /// - /// Left-wing Stations (with id 682). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 682).")] - LeftWingStations_682 = 682, - - /// - /// Left-wing Stations (with id 683). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 683).")] - LeftWingStations_683 = 683, - - /// - /// Left-wing Stations (with id 684). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 684).")] - LeftWingStations_684 = 684, - - /// - /// Left-wing Stations (with id 685). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 685).")] - LeftWingStations_685 = 685, - - /// - /// Left-wing Stations (with id 686). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 686).")] - LeftWingStations_686 = 686, - - /// - /// Left-wing Stations (with id 687). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 687).")] - LeftWingStations_687 = 687, - - /// - /// Left-wing Stations (with id 688). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 688).")] - LeftWingStations_688 = 688, - - /// - /// Left-wing Stations (with id 689). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 689).")] - LeftWingStations_689 = 689, - - /// - /// Left-wing Stations (with id 690). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 690).")] - LeftWingStations_690 = 690, - - /// - /// Left-wing Stations (with id 691). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 691).")] - LeftWingStations_691 = 691, - - /// - /// Left-wing Stations (with id 692). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 692).")] - LeftWingStations_692 = 692, - - /// - /// Left-wing Stations (with id 693). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 693).")] - LeftWingStations_693 = 693, - - /// - /// Left-wing Stations (with id 694). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 694).")] - LeftWingStations_694 = 694, - - /// - /// Left-wing Stations (with id 695). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 695).")] - LeftWingStations_695 = 695, - - /// - /// Left-wing Stations (with id 696). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 696).")] - LeftWingStations_696 = 696, - - /// - /// Left-wing Stations (with id 697). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 697).")] - LeftWingStations_697 = 697, - - /// - /// Left-wing Stations (with id 698). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 698).")] - LeftWingStations_698 = 698, - - /// - /// Left-wing Stations (with id 699). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 699).")] - LeftWingStations_699 = 699, - - /// - /// Left-wing Stations (with id 700). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 700).")] - LeftWingStations_700 = 700, - - /// - /// Left-wing Stations (with id 701). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 701).")] - LeftWingStations_701 = 701, - - /// - /// Left-wing Stations (with id 702). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 702).")] - LeftWingStations_702 = 702, - - /// - /// Left-wing Stations (with id 703). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 703).")] - LeftWingStations_703 = 703, - - /// - /// Left-wing Stations (with id 704). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 704).")] - LeftWingStations_704 = 704, - - /// - /// Left-wing Stations (with id 705). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 705).")] - LeftWingStations_705 = 705, - - /// - /// Left-wing Stations (with id 706). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 706).")] - LeftWingStations_706 = 706, - - /// - /// Left-wing Stations (with id 707). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 707).")] - LeftWingStations_707 = 707, - - /// - /// Left-wing Stations (with id 708). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 708).")] - LeftWingStations_708 = 708, - - /// - /// Left-wing Stations (with id 709). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 709).")] - LeftWingStations_709 = 709, - - /// - /// Left-wing Stations (with id 710). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 710).")] - LeftWingStations_710 = 710, - - /// - /// Left-wing Stations (with id 711). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 711).")] - LeftWingStations_711 = 711, - - /// - /// Left-wing Stations (with id 712). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 712).")] - LeftWingStations_712 = 712, - - /// - /// Left-wing Stations (with id 713). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 713).")] - LeftWingStations_713 = 713, - - /// - /// Left-wing Stations (with id 714). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 714).")] - LeftWingStations_714 = 714, - - /// - /// Left-wing Stations (with id 715). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 715).")] - LeftWingStations_715 = 715, - - /// - /// Left-wing Stations (with id 716). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 716).")] - LeftWingStations_716 = 716, - - /// - /// Left-wing Stations (with id 717). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 717).")] - LeftWingStations_717 = 717, - - /// - /// Left-wing Stations (with id 718). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 718).")] - LeftWingStations_718 = 718, - - /// - /// Left-wing Stations (with id 719). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 719).")] - LeftWingStations_719 = 719, - - /// - /// Left-wing Stations (with id 720). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 720).")] - LeftWingStations_720 = 720, - - /// - /// Left-wing Stations (with id 721). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 721).")] - LeftWingStations_721 = 721, - - /// - /// Left-wing Stations (with id 722). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 722).")] - LeftWingStations_722 = 722, - - /// - /// Left-wing Stations (with id 723). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 723).")] - LeftWingStations_723 = 723, - - /// - /// Left-wing Stations (with id 724). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 724).")] - LeftWingStations_724 = 724, - - /// - /// Left-wing Stations (with id 725). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 725).")] - LeftWingStations_725 = 725, - - /// - /// Left-wing Stations (with id 726). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 726).")] - LeftWingStations_726 = 726, - - /// - /// Left-wing Stations (with id 727). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 727).")] - LeftWingStations_727 = 727, - - /// - /// Left-wing Stations (with id 728). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 728).")] - LeftWingStations_728 = 728, - - /// - /// Left-wing Stations (with id 729). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 729).")] - LeftWingStations_729 = 729, - - /// - /// Left-wing Stations (with id 730). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 730).")] - LeftWingStations_730 = 730, - - /// - /// Left-wing Stations (with id 731). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 731).")] - LeftWingStations_731 = 731, - - /// - /// Left-wing Stations (with id 732). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 732).")] - LeftWingStations_732 = 732, - - /// - /// Left-wing Stations (with id 733). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 733).")] - LeftWingStations_733 = 733, - - /// - /// Left-wing Stations (with id 734). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 734).")] - LeftWingStations_734 = 734, - - /// - /// Left-wing Stations (with id 735). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 735).")] - LeftWingStations_735 = 735, - - /// - /// Left-wing Stations (with id 736). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 736).")] - LeftWingStations_736 = 736, - - /// - /// Left-wing Stations (with id 737). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 737).")] - LeftWingStations_737 = 737, - - /// - /// Left-wing Stations (with id 738). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 738).")] - LeftWingStations_738 = 738, - - /// - /// Left-wing Stations (with id 739). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 739).")] - LeftWingStations_739 = 739, - - /// - /// Left-wing Stations (with id 740). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 740).")] - LeftWingStations_740 = 740, - - /// - /// Left-wing Stations (with id 741). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 741).")] - LeftWingStations_741 = 741, - - /// - /// Left-wing Stations (with id 742). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 742).")] - LeftWingStations_742 = 742, - - /// - /// Left-wing Stations (with id 743). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 743).")] - LeftWingStations_743 = 743, - - /// - /// Left-wing Stations (with id 744). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 744).")] - LeftWingStations_744 = 744, - - /// - /// Left-wing Stations (with id 745). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 745).")] - LeftWingStations_745 = 745, - - /// - /// Left-wing Stations (with id 746). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 746).")] - LeftWingStations_746 = 746, - - /// - /// Left-wing Stations (with id 747). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 747).")] - LeftWingStations_747 = 747, - - /// - /// Left-wing Stations (with id 748). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 748).")] - LeftWingStations_748 = 748, - - /// - /// Left-wing Stations (with id 749). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 749).")] - LeftWingStations_749 = 749, - - /// - /// Left-wing Stations (with id 750). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 750).")] - LeftWingStations_750 = 750, - - /// - /// Left-wing Stations (with id 751). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 751).")] - LeftWingStations_751 = 751, - - /// - /// Left-wing Stations (with id 752). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 752).")] - LeftWingStations_752 = 752, - - /// - /// Left-wing Stations (with id 753). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 753).")] - LeftWingStations_753 = 753, - - /// - /// Left-wing Stations (with id 754). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 754).")] - LeftWingStations_754 = 754, - - /// - /// Left-wing Stations (with id 755). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 755).")] - LeftWingStations_755 = 755, - - /// - /// Left-wing Stations (with id 756). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 756).")] - LeftWingStations_756 = 756, - - /// - /// Left-wing Stations (with id 757). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 757).")] - LeftWingStations_757 = 757, - - /// - /// Left-wing Stations (with id 758). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 758).")] - LeftWingStations_758 = 758, - - /// - /// Left-wing Stations (with id 759). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 759).")] - LeftWingStations_759 = 759, - - /// - /// Left-wing Stations (with id 760). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 760).")] - LeftWingStations_760 = 760, - - /// - /// Left-wing Stations (with id 761). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 761).")] - LeftWingStations_761 = 761, - - /// - /// Left-wing Stations (with id 762). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 762).")] - LeftWingStations_762 = 762, - - /// - /// Left-wing Stations (with id 763). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 763).")] - LeftWingStations_763 = 763, - - /// - /// Left-wing Stations (with id 764). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 764).")] - LeftWingStations_764 = 764, - - /// - /// Left-wing Stations (with id 765). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 765).")] - LeftWingStations_765 = 765, - - /// - /// Left-wing Stations (with id 766). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 766).")] - LeftWingStations_766 = 766, - - /// - /// Left-wing Stations (with id 767). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left-wing Stations (with id 767).")] - LeftWingStations_767 = 767, - - /// - /// Right-wing Stations (with id 768). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 768).")] - RightWingStations_768 = 768, - - /// - /// Right-wing Stations (with id 769). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 769).")] - RightWingStations_769 = 769, - - /// - /// Right-wing Stations (with id 770). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 770).")] - RightWingStations_770 = 770, - - /// - /// Right-wing Stations (with id 771). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 771).")] - RightWingStations_771 = 771, - - /// - /// Right-wing Stations (with id 772). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 772).")] - RightWingStations_772 = 772, - - /// - /// Right-wing Stations (with id 773). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 773).")] - RightWingStations_773 = 773, - - /// - /// Right-wing Stations (with id 774). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 774).")] - RightWingStations_774 = 774, - - /// - /// Right-wing Stations (with id 775). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 775).")] - RightWingStations_775 = 775, - - /// - /// Right-wing Stations (with id 776). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 776).")] - RightWingStations_776 = 776, - - /// - /// Right-wing Stations (with id 777). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 777).")] - RightWingStations_777 = 777, - - /// - /// Right-wing Stations (with id 778). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 778).")] - RightWingStations_778 = 778, - - /// - /// Right-wing Stations (with id 779). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 779).")] - RightWingStations_779 = 779, - - /// - /// Right-wing Stations (with id 780). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 780).")] - RightWingStations_780 = 780, - - /// - /// Right-wing Stations (with id 781). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 781).")] - RightWingStations_781 = 781, - - /// - /// Right-wing Stations (with id 782). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 782).")] - RightWingStations_782 = 782, - - /// - /// Right-wing Stations (with id 783). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 783).")] - RightWingStations_783 = 783, - - /// - /// Right-wing Stations (with id 784). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 784).")] - RightWingStations_784 = 784, - - /// - /// Right-wing Stations (with id 785). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 785).")] - RightWingStations_785 = 785, - - /// - /// Right-wing Stations (with id 786). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 786).")] - RightWingStations_786 = 786, - - /// - /// Right-wing Stations (with id 787). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 787).")] - RightWingStations_787 = 787, - - /// - /// Right-wing Stations (with id 788). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 788).")] - RightWingStations_788 = 788, - - /// - /// Right-wing Stations (with id 789). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 789).")] - RightWingStations_789 = 789, - - /// - /// Right-wing Stations (with id 790). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 790).")] - RightWingStations_790 = 790, - - /// - /// Right-wing Stations (with id 791). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 791).")] - RightWingStations_791 = 791, - - /// - /// Right-wing Stations (with id 792). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 792).")] - RightWingStations_792 = 792, - - /// - /// Right-wing Stations (with id 793). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 793).")] - RightWingStations_793 = 793, - - /// - /// Right-wing Stations (with id 794). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 794).")] - RightWingStations_794 = 794, - - /// - /// Right-wing Stations (with id 795). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 795).")] - RightWingStations_795 = 795, - - /// - /// Right-wing Stations (with id 796). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 796).")] - RightWingStations_796 = 796, - - /// - /// Right-wing Stations (with id 797). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 797).")] - RightWingStations_797 = 797, - - /// - /// Right-wing Stations (with id 798). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 798).")] - RightWingStations_798 = 798, - - /// - /// Right-wing Stations (with id 799). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 799).")] - RightWingStations_799 = 799, - - /// - /// Right-wing Stations (with id 800). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 800).")] - RightWingStations_800 = 800, - - /// - /// Right-wing Stations (with id 801). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 801).")] - RightWingStations_801 = 801, - - /// - /// Right-wing Stations (with id 802). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 802).")] - RightWingStations_802 = 802, - - /// - /// Right-wing Stations (with id 803). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 803).")] - RightWingStations_803 = 803, - - /// - /// Right-wing Stations (with id 804). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 804).")] - RightWingStations_804 = 804, - - /// - /// Right-wing Stations (with id 805). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 805).")] - RightWingStations_805 = 805, - - /// - /// Right-wing Stations (with id 806). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 806).")] - RightWingStations_806 = 806, - - /// - /// Right-wing Stations (with id 807). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 807).")] - RightWingStations_807 = 807, - - /// - /// Right-wing Stations (with id 808). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 808).")] - RightWingStations_808 = 808, - - /// - /// Right-wing Stations (with id 809). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 809).")] - RightWingStations_809 = 809, - - /// - /// Right-wing Stations (with id 810). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 810).")] - RightWingStations_810 = 810, - - /// - /// Right-wing Stations (with id 811). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 811).")] - RightWingStations_811 = 811, - - /// - /// Right-wing Stations (with id 812). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 812).")] - RightWingStations_812 = 812, - - /// - /// Right-wing Stations (with id 813). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 813).")] - RightWingStations_813 = 813, - - /// - /// Right-wing Stations (with id 814). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 814).")] - RightWingStations_814 = 814, - - /// - /// Right-wing Stations (with id 815). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 815).")] - RightWingStations_815 = 815, - - /// - /// Right-wing Stations (with id 816). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 816).")] - RightWingStations_816 = 816, - - /// - /// Right-wing Stations (with id 817). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 817).")] - RightWingStations_817 = 817, - - /// - /// Right-wing Stations (with id 818). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 818).")] - RightWingStations_818 = 818, - - /// - /// Right-wing Stations (with id 819). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 819).")] - RightWingStations_819 = 819, - - /// - /// Right-wing Stations (with id 820). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 820).")] - RightWingStations_820 = 820, - - /// - /// Right-wing Stations (with id 821). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 821).")] - RightWingStations_821 = 821, - - /// - /// Right-wing Stations (with id 822). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 822).")] - RightWingStations_822 = 822, - - /// - /// Right-wing Stations (with id 823). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 823).")] - RightWingStations_823 = 823, - - /// - /// Right-wing Stations (with id 824). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 824).")] - RightWingStations_824 = 824, - - /// - /// Right-wing Stations (with id 825). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 825).")] - RightWingStations_825 = 825, - - /// - /// Right-wing Stations (with id 826). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 826).")] - RightWingStations_826 = 826, - - /// - /// Right-wing Stations (with id 827). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 827).")] - RightWingStations_827 = 827, - - /// - /// Right-wing Stations (with id 828). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 828).")] - RightWingStations_828 = 828, - - /// - /// Right-wing Stations (with id 829). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 829).")] - RightWingStations_829 = 829, - - /// - /// Right-wing Stations (with id 830). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 830).")] - RightWingStations_830 = 830, - - /// - /// Right-wing Stations (with id 831). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 831).")] - RightWingStations_831 = 831, - - /// - /// Right-wing Stations (with id 832). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 832).")] - RightWingStations_832 = 832, - - /// - /// Right-wing Stations (with id 833). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 833).")] - RightWingStations_833 = 833, - - /// - /// Right-wing Stations (with id 834). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 834).")] - RightWingStations_834 = 834, - - /// - /// Right-wing Stations (with id 835). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 835).")] - RightWingStations_835 = 835, - - /// - /// Right-wing Stations (with id 836). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 836).")] - RightWingStations_836 = 836, - - /// - /// Right-wing Stations (with id 837). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 837).")] - RightWingStations_837 = 837, - - /// - /// Right-wing Stations (with id 838). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 838).")] - RightWingStations_838 = 838, - - /// - /// Right-wing Stations (with id 839). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 839).")] - RightWingStations_839 = 839, - - /// - /// Right-wing Stations (with id 840). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 840).")] - RightWingStations_840 = 840, - - /// - /// Right-wing Stations (with id 841). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 841).")] - RightWingStations_841 = 841, - - /// - /// Right-wing Stations (with id 842). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 842).")] - RightWingStations_842 = 842, - - /// - /// Right-wing Stations (with id 843). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 843).")] - RightWingStations_843 = 843, - - /// - /// Right-wing Stations (with id 844). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 844).")] - RightWingStations_844 = 844, - - /// - /// Right-wing Stations (with id 845). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 845).")] - RightWingStations_845 = 845, - - /// - /// Right-wing Stations (with id 846). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 846).")] - RightWingStations_846 = 846, - - /// - /// Right-wing Stations (with id 847). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 847).")] - RightWingStations_847 = 847, - - /// - /// Right-wing Stations (with id 848). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 848).")] - RightWingStations_848 = 848, - - /// - /// Right-wing Stations (with id 849). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 849).")] - RightWingStations_849 = 849, - - /// - /// Right-wing Stations (with id 850). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 850).")] - RightWingStations_850 = 850, - - /// - /// Right-wing Stations (with id 851). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 851).")] - RightWingStations_851 = 851, - - /// - /// Right-wing Stations (with id 852). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 852).")] - RightWingStations_852 = 852, - - /// - /// Right-wing Stations (with id 853). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 853).")] - RightWingStations_853 = 853, - - /// - /// Right-wing Stations (with id 854). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 854).")] - RightWingStations_854 = 854, - - /// - /// Right-wing Stations (with id 855). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 855).")] - RightWingStations_855 = 855, - - /// - /// Right-wing Stations (with id 856). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 856).")] - RightWingStations_856 = 856, - - /// - /// Right-wing Stations (with id 857). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 857).")] - RightWingStations_857 = 857, - - /// - /// Right-wing Stations (with id 858). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 858).")] - RightWingStations_858 = 858, - - /// - /// Right-wing Stations (with id 859). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 859).")] - RightWingStations_859 = 859, - - /// - /// Right-wing Stations (with id 860). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 860).")] - RightWingStations_860 = 860, - - /// - /// Right-wing Stations (with id 861). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 861).")] - RightWingStations_861 = 861, - - /// - /// Right-wing Stations (with id 862). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 862).")] - RightWingStations_862 = 862, - - /// - /// Right-wing Stations (with id 863). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 863).")] - RightWingStations_863 = 863, - - /// - /// Right-wing Stations (with id 864). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 864).")] - RightWingStations_864 = 864, - - /// - /// Right-wing Stations (with id 865). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 865).")] - RightWingStations_865 = 865, - - /// - /// Right-wing Stations (with id 866). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 866).")] - RightWingStations_866 = 866, - - /// - /// Right-wing Stations (with id 867). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 867).")] - RightWingStations_867 = 867, - - /// - /// Right-wing Stations (with id 868). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 868).")] - RightWingStations_868 = 868, - - /// - /// Right-wing Stations (with id 869). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 869).")] - RightWingStations_869 = 869, - - /// - /// Right-wing Stations (with id 870). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 870).")] - RightWingStations_870 = 870, - - /// - /// Right-wing Stations (with id 871). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 871).")] - RightWingStations_871 = 871, - - /// - /// Right-wing Stations (with id 872). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 872).")] - RightWingStations_872 = 872, - - /// - /// Right-wing Stations (with id 873). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 873).")] - RightWingStations_873 = 873, - - /// - /// Right-wing Stations (with id 874). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 874).")] - RightWingStations_874 = 874, - - /// - /// Right-wing Stations (with id 875). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 875).")] - RightWingStations_875 = 875, - - /// - /// Right-wing Stations (with id 876). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 876).")] - RightWingStations_876 = 876, - - /// - /// Right-wing Stations (with id 877). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 877).")] - RightWingStations_877 = 877, - - /// - /// Right-wing Stations (with id 878). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 878).")] - RightWingStations_878 = 878, - - /// - /// Right-wing Stations (with id 879). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 879).")] - RightWingStations_879 = 879, - - /// - /// Right-wing Stations (with id 880). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 880).")] - RightWingStations_880 = 880, - - /// - /// Right-wing Stations (with id 881). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 881).")] - RightWingStations_881 = 881, - - /// - /// Right-wing Stations (with id 882). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 882).")] - RightWingStations_882 = 882, - - /// - /// Right-wing Stations (with id 883). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 883).")] - RightWingStations_883 = 883, - - /// - /// Right-wing Stations (with id 884). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 884).")] - RightWingStations_884 = 884, - - /// - /// Right-wing Stations (with id 885). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 885).")] - RightWingStations_885 = 885, - - /// - /// Right-wing Stations (with id 886). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 886).")] - RightWingStations_886 = 886, - - /// - /// Right-wing Stations (with id 887). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 887).")] - RightWingStations_887 = 887, - - /// - /// Right-wing Stations (with id 888). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 888).")] - RightWingStations_888 = 888, - - /// - /// Right-wing Stations (with id 889). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 889).")] - RightWingStations_889 = 889, - - /// - /// Right-wing Stations (with id 890). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 890).")] - RightWingStations_890 = 890, - - /// - /// Right-wing Stations (with id 891). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 891).")] - RightWingStations_891 = 891, - - /// - /// Right-wing Stations (with id 892). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 892).")] - RightWingStations_892 = 892, - - /// - /// Right-wing Stations (with id 893). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 893).")] - RightWingStations_893 = 893, - - /// - /// Right-wing Stations (with id 894). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 894).")] - RightWingStations_894 = 894, - - /// - /// Right-wing Stations (with id 895). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right-wing Stations (with id 895).")] - RightWingStations_895 = 895, - - /// - /// M16A42 rifle. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("M16A42 rifle.")] - M16A42Rifle = 896, - - /// - /// M249 SAW. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("M249 SAW.")] - M249SAW = 897, - - /// - /// M60 Machine gun. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("M60 Machine gun.")] - M60MachineGun = 898, - - /// - /// M203 Grenade Launcher. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("M203 Grenade Launcher.")] - M203GrenadeLauncher = 899, - - /// - /// M136 AT4. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("M136 AT4.")] - M136AT4 = 900, - - /// - /// M47 Dragon. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("M47 Dragon.")] - M47Dragon = 901, - - /// - /// AAWS-M Javelin. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AAWS-M Javelin.")] - AAWSMJavelin = 902, - - /// - /// M18A1 Claymore Mine. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("M18A1 Claymore Mine.")] - M18A1ClaymoreMine = 903, - - /// - /// MK19 Grenade Launcher. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("MK19 Grenade Launcher.")] - MK19GrenadeLauncher = 904, - - /// - /// M2 Machine Gun. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("M2 Machine Gun.")] - M2MachineGun = 905, - - /// - /// Other attached parts (with id 906). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 906).")] - OtherAttachedParts_906 = 906, - - /// - /// Other attached parts (with id 907). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 907).")] - OtherAttachedParts_907 = 907, - - /// - /// Other attached parts (with id 908). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 908).")] - OtherAttachedParts_908 = 908, - - /// - /// Other attached parts (with id 909). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 909).")] - OtherAttachedParts_909 = 909, - - /// - /// Other attached parts (with id 910). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 910).")] - OtherAttachedParts_910 = 910, - - /// - /// Other attached parts (with id 911). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 911).")] - OtherAttachedParts_911 = 911, - - /// - /// Other attached parts (with id 912). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 912).")] - OtherAttachedParts_912 = 912, - - /// - /// Other attached parts (with id 913). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 913).")] - OtherAttachedParts_913 = 913, - - /// - /// Other attached parts (with id 914). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 914).")] - OtherAttachedParts_914 = 914, - - /// - /// Other attached parts (with id 915). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 915).")] - OtherAttachedParts_915 = 915, - - /// - /// Other attached parts (with id 916). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 916).")] - OtherAttachedParts_916 = 916, - - /// - /// Other attached parts (with id 917). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 917).")] - OtherAttachedParts_917 = 917, - - /// - /// Other attached parts (with id 918). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 918).")] - OtherAttachedParts_918 = 918, - - /// - /// Other attached parts (with id 919). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 919).")] - OtherAttachedParts_919 = 919, - - /// - /// Other attached parts (with id 920). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 920).")] - OtherAttachedParts_920 = 920, - - /// - /// Other attached parts (with id 921). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 921).")] - OtherAttachedParts_921 = 921, - - /// - /// Other attached parts (with id 922). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 922).")] - OtherAttachedParts_922 = 922, - - /// - /// Other attached parts (with id 923). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 923).")] - OtherAttachedParts_923 = 923, - - /// - /// Other attached parts (with id 924). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 924).")] - OtherAttachedParts_924 = 924, - - /// - /// Other attached parts (with id 925). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 925).")] - OtherAttachedParts_925 = 925, - - /// - /// Other attached parts (with id 926). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 926).")] - OtherAttachedParts_926 = 926, - - /// - /// Other attached parts (with id 927). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 927).")] - OtherAttachedParts_927 = 927, - - /// - /// Other attached parts (with id 928). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 928).")] - OtherAttachedParts_928 = 928, - - /// - /// Other attached parts (with id 929). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 929).")] - OtherAttachedParts_929 = 929, - - /// - /// Other attached parts (with id 930). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 930).")] - OtherAttachedParts_930 = 930, - - /// - /// Other attached parts (with id 931). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 931).")] - OtherAttachedParts_931 = 931, - - /// - /// Other attached parts (with id 932). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 932).")] - OtherAttachedParts_932 = 932, - - /// - /// Other attached parts (with id 933). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 933).")] - OtherAttachedParts_933 = 933, - - /// - /// Other attached parts (with id 934). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 934).")] - OtherAttachedParts_934 = 934, - - /// - /// Other attached parts (with id 935). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 935).")] - OtherAttachedParts_935 = 935, - - /// - /// Other attached parts (with id 936). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 936).")] - OtherAttachedParts_936 = 936, - - /// - /// Other attached parts (with id 937). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 937).")] - OtherAttachedParts_937 = 937, - - /// - /// Other attached parts (with id 938). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 938).")] - OtherAttachedParts_938 = 938, - - /// - /// Other attached parts (with id 939). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 939).")] - OtherAttachedParts_939 = 939, - - /// - /// Other attached parts (with id 940). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 940).")] - OtherAttachedParts_940 = 940, - - /// - /// Other attached parts (with id 941). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 941).")] - OtherAttachedParts_941 = 941, - - /// - /// Other attached parts (with id 942). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 942).")] - OtherAttachedParts_942 = 942, - - /// - /// Other attached parts (with id 943). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 943).")] - OtherAttachedParts_943 = 943, - - /// - /// Other attached parts (with id 944). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 944).")] - OtherAttachedParts_944 = 944, - - /// - /// Other attached parts (with id 945). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 945).")] - OtherAttachedParts_945 = 945, - - /// - /// Other attached parts (with id 946). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 946).")] - OtherAttachedParts_946 = 946, - - /// - /// Other attached parts (with id 947). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 947).")] - OtherAttachedParts_947 = 947, - - /// - /// Other attached parts (with id 948). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 948).")] - OtherAttachedParts_948 = 948, - - /// - /// Other attached parts (with id 949). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 949).")] - OtherAttachedParts_949 = 949, - - /// - /// Other attached parts (with id 950). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 950).")] - OtherAttachedParts_950 = 950, - - /// - /// Other attached parts (with id 951). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 951).")] - OtherAttachedParts_951 = 951, - - /// - /// Other attached parts (with id 952). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 952).")] - OtherAttachedParts_952 = 952, - - /// - /// Other attached parts (with id 953). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 953).")] - OtherAttachedParts_953 = 953, - - /// - /// Other attached parts (with id 954). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 954).")] - OtherAttachedParts_954 = 954, - - /// - /// Other attached parts (with id 955). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 955).")] - OtherAttachedParts_955 = 955, - - /// - /// Other attached parts (with id 956). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 956).")] - OtherAttachedParts_956 = 956, - - /// - /// Other attached parts (with id 957). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 957).")] - OtherAttachedParts_957 = 957, - - /// - /// Other attached parts (with id 958). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 958).")] - OtherAttachedParts_958 = 958, - - /// - /// Other attached parts (with id 959). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 959).")] - OtherAttachedParts_959 = 959, - - /// - /// Other attached parts (with id 960). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 960).")] - OtherAttachedParts_960 = 960, - - /// - /// Other attached parts (with id 961). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 961).")] - OtherAttachedParts_961 = 961, - - /// - /// Other attached parts (with id 962). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 962).")] - OtherAttachedParts_962 = 962, - - /// - /// Other attached parts (with id 963). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 963).")] - OtherAttachedParts_963 = 963, - - /// - /// Other attached parts (with id 964). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 964).")] - OtherAttachedParts_964 = 964, - - /// - /// Other attached parts (with id 965). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 965).")] - OtherAttachedParts_965 = 965, - - /// - /// Other attached parts (with id 966). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 966).")] - OtherAttachedParts_966 = 966, - - /// - /// Other attached parts (with id 967). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 967).")] - OtherAttachedParts_967 = 967, - - /// - /// Other attached parts (with id 968). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 968).")] - OtherAttachedParts_968 = 968, - - /// - /// Other attached parts (with id 969). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 969).")] - OtherAttachedParts_969 = 969, - - /// - /// Other attached parts (with id 970). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 970).")] - OtherAttachedParts_970 = 970, - - /// - /// Other attached parts (with id 971). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 971).")] - OtherAttachedParts_971 = 971, - - /// - /// Other attached parts (with id 972). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 972).")] - OtherAttachedParts_972 = 972, - - /// - /// Other attached parts (with id 973). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 973).")] - OtherAttachedParts_973 = 973, - - /// - /// Other attached parts (with id 974). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 974).")] - OtherAttachedParts_974 = 974, - - /// - /// Other attached parts (with id 975). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 975).")] - OtherAttachedParts_975 = 975, - - /// - /// Other attached parts (with id 976). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 976).")] - OtherAttachedParts_976 = 976, - - /// - /// Other attached parts (with id 977). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 977).")] - OtherAttachedParts_977 = 977, - - /// - /// Other attached parts (with id 978). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 978).")] - OtherAttachedParts_978 = 978, - - /// - /// Other attached parts (with id 979). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 979).")] - OtherAttachedParts_979 = 979, - - /// - /// Other attached parts (with id 980). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 980).")] - OtherAttachedParts_980 = 980, - - /// - /// Other attached parts (with id 981). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 981).")] - OtherAttachedParts_981 = 981, - - /// - /// Other attached parts (with id 982). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 982).")] - OtherAttachedParts_982 = 982, - - /// - /// Other attached parts (with id 983). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 983).")] - OtherAttachedParts_983 = 983, - - /// - /// Other attached parts (with id 984). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 984).")] - OtherAttachedParts_984 = 984, - - /// - /// Other attached parts (with id 985). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 985).")] - OtherAttachedParts_985 = 985, - - /// - /// Other attached parts (with id 986). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 986).")] - OtherAttachedParts_986 = 986, - - /// - /// Other attached parts (with id 987). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 987).")] - OtherAttachedParts_987 = 987, - - /// - /// Other attached parts (with id 988). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 988).")] - OtherAttachedParts_988 = 988, - - /// - /// Other attached parts (with id 989). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 989).")] - OtherAttachedParts_989 = 989, - - /// - /// Other attached parts (with id 990). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 990).")] - OtherAttachedParts_990 = 990, - - /// - /// Other attached parts (with id 991). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 991).")] - OtherAttachedParts_991 = 991, - - /// - /// Other attached parts (with id 992). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 992).")] - OtherAttachedParts_992 = 992, - - /// - /// Other attached parts (with id 993). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 993).")] - OtherAttachedParts_993 = 993, - - /// - /// Other attached parts (with id 994). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 994).")] - OtherAttachedParts_994 = 994, - - /// - /// Other attached parts (with id 995). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 995).")] - OtherAttachedParts_995 = 995, - - /// - /// Other attached parts (with id 996). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 996).")] - OtherAttachedParts_996 = 996, - - /// - /// Other attached parts (with id 997). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 997).")] - OtherAttachedParts_997 = 997, - - /// - /// Other attached parts (with id 998). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 998).")] - OtherAttachedParts_998 = 998, - - /// - /// Other attached parts (with id 999). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 999).")] - OtherAttachedParts_999 = 999, - - /// - /// Other attached parts (with id 1000). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 1000).")] - OtherAttachedParts_1000 = 1000, - - /// - /// Other attached parts (with id 1001). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 1001).")] - OtherAttachedParts_1001 = 1001, - - /// - /// Other attached parts (with id 1002). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 1002).")] - OtherAttachedParts_1002 = 1002, - - /// - /// Other attached parts (with id 1003). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 1003).")] - OtherAttachedParts_1003 = 1003, - - /// - /// Other attached parts (with id 1004). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 1004).")] - OtherAttachedParts_1004 = 1004, - - /// - /// Other attached parts (with id 1005). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 1005).")] - OtherAttachedParts_1005 = 1005, - - /// - /// Other attached parts (with id 1006). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 1006).")] - OtherAttachedParts_1006 = 1006, - - /// - /// Other attached parts (with id 1007). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 1007).")] - OtherAttachedParts_1007 = 1007, - - /// - /// Other attached parts (with id 1008). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 1008).")] - OtherAttachedParts_1008 = 1008, - - /// - /// Other attached parts (with id 1009). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 1009).")] - OtherAttachedParts_1009 = 1009, - - /// - /// Other attached parts (with id 1010). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 1010).")] - OtherAttachedParts_1010 = 1010, - - /// - /// Other attached parts (with id 1011). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 1011).")] - OtherAttachedParts_1011 = 1011, - - /// - /// Other attached parts (with id 1012). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 1012).")] - OtherAttachedParts_1012 = 1012, - - /// - /// Other attached parts (with id 1013). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 1013).")] - OtherAttachedParts_1013 = 1013, - - /// - /// Other attached parts (with id 1014). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 1014).")] - OtherAttachedParts_1014 = 1014, - - /// - /// Other attached parts (with id 1015). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 1015).")] - OtherAttachedParts_1015 = 1015, - - /// - /// Other attached parts (with id 1016). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 1016).")] - OtherAttachedParts_1016 = 1016, - - /// - /// Other attached parts (with id 1017). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 1017).")] - OtherAttachedParts_1017 = 1017, - - /// - /// Other attached parts (with id 1018). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 1018).")] - OtherAttachedParts_1018 = 1018, - - /// - /// Other attached parts (with id 1019). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 1019).")] - OtherAttachedParts_1019 = 1019, - - /// - /// Other attached parts (with id 1020). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 1020).")] - OtherAttachedParts_1020 = 1020, - - /// - /// Other attached parts (with id 1021). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 1021).")] - OtherAttachedParts_1021 = 1021, - - /// - /// Other attached parts (with id 1022). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 1022).")] - OtherAttachedParts_1022 = 1022, - - /// - /// Other attached parts (with id 1023). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other attached parts (with id 1023).")] - OtherAttachedParts_1023 = 1023 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState +{ + /// + /// Enumeration values for AttachedParts (es.vp.type.1.attached, Attached parts, + /// section 4.7.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum AttachedParts : uint + { + /// + /// Nothing, Empty. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Nothing, Empty.")] + NothingEmpty = 0, + + /// + /// Sequential IDs for model-specific stations (with id 1). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 1).")] + SequentialIDsForModelSpecificStations_1 = 1, + + /// + /// Sequential IDs for model-specific stations (with id 2). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 2).")] + SequentialIDsForModelSpecificStations_2 = 2, + + /// + /// Sequential IDs for model-specific stations (with id 3). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 3).")] + SequentialIDsForModelSpecificStations_3 = 3, + + /// + /// Sequential IDs for model-specific stations (with id 4). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 4).")] + SequentialIDsForModelSpecificStations_4 = 4, + + /// + /// Sequential IDs for model-specific stations (with id 5). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 5).")] + SequentialIDsForModelSpecificStations_5 = 5, + + /// + /// Sequential IDs for model-specific stations (with id 6). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 6).")] + SequentialIDsForModelSpecificStations_6 = 6, + + /// + /// Sequential IDs for model-specific stations (with id 7). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 7).")] + SequentialIDsForModelSpecificStations_7 = 7, + + /// + /// Sequential IDs for model-specific stations (with id 8). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 8).")] + SequentialIDsForModelSpecificStations_8 = 8, + + /// + /// Sequential IDs for model-specific stations (with id 9). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 9).")] + SequentialIDsForModelSpecificStations_9 = 9, + + /// + /// Sequential IDs for model-specific stations (with id 10). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 10).")] + SequentialIDsForModelSpecificStations_10 = 10, + + /// + /// Sequential IDs for model-specific stations (with id 11). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 11).")] + SequentialIDsForModelSpecificStations_11 = 11, + + /// + /// Sequential IDs for model-specific stations (with id 12). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 12).")] + SequentialIDsForModelSpecificStations_12 = 12, + + /// + /// Sequential IDs for model-specific stations (with id 13). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 13).")] + SequentialIDsForModelSpecificStations_13 = 13, + + /// + /// Sequential IDs for model-specific stations (with id 14). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 14).")] + SequentialIDsForModelSpecificStations_14 = 14, + + /// + /// Sequential IDs for model-specific stations (with id 15). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 15).")] + SequentialIDsForModelSpecificStations_15 = 15, + + /// + /// Sequential IDs for model-specific stations (with id 16). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 16).")] + SequentialIDsForModelSpecificStations_16 = 16, + + /// + /// Sequential IDs for model-specific stations (with id 17). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 17).")] + SequentialIDsForModelSpecificStations_17 = 17, + + /// + /// Sequential IDs for model-specific stations (with id 18). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 18).")] + SequentialIDsForModelSpecificStations_18 = 18, + + /// + /// Sequential IDs for model-specific stations (with id 19). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 19).")] + SequentialIDsForModelSpecificStations_19 = 19, + + /// + /// Sequential IDs for model-specific stations (with id 20). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 20).")] + SequentialIDsForModelSpecificStations_20 = 20, + + /// + /// Sequential IDs for model-specific stations (with id 21). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 21).")] + SequentialIDsForModelSpecificStations_21 = 21, + + /// + /// Sequential IDs for model-specific stations (with id 22). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 22).")] + SequentialIDsForModelSpecificStations_22 = 22, + + /// + /// Sequential IDs for model-specific stations (with id 23). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 23).")] + SequentialIDsForModelSpecificStations_23 = 23, + + /// + /// Sequential IDs for model-specific stations (with id 24). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 24).")] + SequentialIDsForModelSpecificStations_24 = 24, + + /// + /// Sequential IDs for model-specific stations (with id 25). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 25).")] + SequentialIDsForModelSpecificStations_25 = 25, + + /// + /// Sequential IDs for model-specific stations (with id 26). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 26).")] + SequentialIDsForModelSpecificStations_26 = 26, + + /// + /// Sequential IDs for model-specific stations (with id 27). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 27).")] + SequentialIDsForModelSpecificStations_27 = 27, + + /// + /// Sequential IDs for model-specific stations (with id 28). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 28).")] + SequentialIDsForModelSpecificStations_28 = 28, + + /// + /// Sequential IDs for model-specific stations (with id 29). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 29).")] + SequentialIDsForModelSpecificStations_29 = 29, + + /// + /// Sequential IDs for model-specific stations (with id 30). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 30).")] + SequentialIDsForModelSpecificStations_30 = 30, + + /// + /// Sequential IDs for model-specific stations (with id 31). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 31).")] + SequentialIDsForModelSpecificStations_31 = 31, + + /// + /// Sequential IDs for model-specific stations (with id 32). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 32).")] + SequentialIDsForModelSpecificStations_32 = 32, + + /// + /// Sequential IDs for model-specific stations (with id 33). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 33).")] + SequentialIDsForModelSpecificStations_33 = 33, + + /// + /// Sequential IDs for model-specific stations (with id 34). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 34).")] + SequentialIDsForModelSpecificStations_34 = 34, + + /// + /// Sequential IDs for model-specific stations (with id 35). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 35).")] + SequentialIDsForModelSpecificStations_35 = 35, + + /// + /// Sequential IDs for model-specific stations (with id 36). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 36).")] + SequentialIDsForModelSpecificStations_36 = 36, + + /// + /// Sequential IDs for model-specific stations (with id 37). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 37).")] + SequentialIDsForModelSpecificStations_37 = 37, + + /// + /// Sequential IDs for model-specific stations (with id 38). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 38).")] + SequentialIDsForModelSpecificStations_38 = 38, + + /// + /// Sequential IDs for model-specific stations (with id 39). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 39).")] + SequentialIDsForModelSpecificStations_39 = 39, + + /// + /// Sequential IDs for model-specific stations (with id 40). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 40).")] + SequentialIDsForModelSpecificStations_40 = 40, + + /// + /// Sequential IDs for model-specific stations (with id 41). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 41).")] + SequentialIDsForModelSpecificStations_41 = 41, + + /// + /// Sequential IDs for model-specific stations (with id 42). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 42).")] + SequentialIDsForModelSpecificStations_42 = 42, + + /// + /// Sequential IDs for model-specific stations (with id 43). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 43).")] + SequentialIDsForModelSpecificStations_43 = 43, + + /// + /// Sequential IDs for model-specific stations (with id 44). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 44).")] + SequentialIDsForModelSpecificStations_44 = 44, + + /// + /// Sequential IDs for model-specific stations (with id 45). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 45).")] + SequentialIDsForModelSpecificStations_45 = 45, + + /// + /// Sequential IDs for model-specific stations (with id 46). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 46).")] + SequentialIDsForModelSpecificStations_46 = 46, + + /// + /// Sequential IDs for model-specific stations (with id 47). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 47).")] + SequentialIDsForModelSpecificStations_47 = 47, + + /// + /// Sequential IDs for model-specific stations (with id 48). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 48).")] + SequentialIDsForModelSpecificStations_48 = 48, + + /// + /// Sequential IDs for model-specific stations (with id 49). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 49).")] + SequentialIDsForModelSpecificStations_49 = 49, + + /// + /// Sequential IDs for model-specific stations (with id 50). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 50).")] + SequentialIDsForModelSpecificStations_50 = 50, + + /// + /// Sequential IDs for model-specific stations (with id 51). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 51).")] + SequentialIDsForModelSpecificStations_51 = 51, + + /// + /// Sequential IDs for model-specific stations (with id 52). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 52).")] + SequentialIDsForModelSpecificStations_52 = 52, + + /// + /// Sequential IDs for model-specific stations (with id 53). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 53).")] + SequentialIDsForModelSpecificStations_53 = 53, + + /// + /// Sequential IDs for model-specific stations (with id 54). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 54).")] + SequentialIDsForModelSpecificStations_54 = 54, + + /// + /// Sequential IDs for model-specific stations (with id 55). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 55).")] + SequentialIDsForModelSpecificStations_55 = 55, + + /// + /// Sequential IDs for model-specific stations (with id 56). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 56).")] + SequentialIDsForModelSpecificStations_56 = 56, + + /// + /// Sequential IDs for model-specific stations (with id 57). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 57).")] + SequentialIDsForModelSpecificStations_57 = 57, + + /// + /// Sequential IDs for model-specific stations (with id 58). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 58).")] + SequentialIDsForModelSpecificStations_58 = 58, + + /// + /// Sequential IDs for model-specific stations (with id 59). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 59).")] + SequentialIDsForModelSpecificStations_59 = 59, + + /// + /// Sequential IDs for model-specific stations (with id 60). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 60).")] + SequentialIDsForModelSpecificStations_60 = 60, + + /// + /// Sequential IDs for model-specific stations (with id 61). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 61).")] + SequentialIDsForModelSpecificStations_61 = 61, + + /// + /// Sequential IDs for model-specific stations (with id 62). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 62).")] + SequentialIDsForModelSpecificStations_62 = 62, + + /// + /// Sequential IDs for model-specific stations (with id 63). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 63).")] + SequentialIDsForModelSpecificStations_63 = 63, + + /// + /// Sequential IDs for model-specific stations (with id 64). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 64).")] + SequentialIDsForModelSpecificStations_64 = 64, + + /// + /// Sequential IDs for model-specific stations (with id 65). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 65).")] + SequentialIDsForModelSpecificStations_65 = 65, + + /// + /// Sequential IDs for model-specific stations (with id 66). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 66).")] + SequentialIDsForModelSpecificStations_66 = 66, + + /// + /// Sequential IDs for model-specific stations (with id 67). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 67).")] + SequentialIDsForModelSpecificStations_67 = 67, + + /// + /// Sequential IDs for model-specific stations (with id 68). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 68).")] + SequentialIDsForModelSpecificStations_68 = 68, + + /// + /// Sequential IDs for model-specific stations (with id 69). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 69).")] + SequentialIDsForModelSpecificStations_69 = 69, + + /// + /// Sequential IDs for model-specific stations (with id 70). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 70).")] + SequentialIDsForModelSpecificStations_70 = 70, + + /// + /// Sequential IDs for model-specific stations (with id 71). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 71).")] + SequentialIDsForModelSpecificStations_71 = 71, + + /// + /// Sequential IDs for model-specific stations (with id 72). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 72).")] + SequentialIDsForModelSpecificStations_72 = 72, + + /// + /// Sequential IDs for model-specific stations (with id 73). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 73).")] + SequentialIDsForModelSpecificStations_73 = 73, + + /// + /// Sequential IDs for model-specific stations (with id 74). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 74).")] + SequentialIDsForModelSpecificStations_74 = 74, + + /// + /// Sequential IDs for model-specific stations (with id 75). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 75).")] + SequentialIDsForModelSpecificStations_75 = 75, + + /// + /// Sequential IDs for model-specific stations (with id 76). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 76).")] + SequentialIDsForModelSpecificStations_76 = 76, + + /// + /// Sequential IDs for model-specific stations (with id 77). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 77).")] + SequentialIDsForModelSpecificStations_77 = 77, + + /// + /// Sequential IDs for model-specific stations (with id 78). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 78).")] + SequentialIDsForModelSpecificStations_78 = 78, + + /// + /// Sequential IDs for model-specific stations (with id 79). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 79).")] + SequentialIDsForModelSpecificStations_79 = 79, + + /// + /// Sequential IDs for model-specific stations (with id 80). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 80).")] + SequentialIDsForModelSpecificStations_80 = 80, + + /// + /// Sequential IDs for model-specific stations (with id 81). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 81).")] + SequentialIDsForModelSpecificStations_81 = 81, + + /// + /// Sequential IDs for model-specific stations (with id 82). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 82).")] + SequentialIDsForModelSpecificStations_82 = 82, + + /// + /// Sequential IDs for model-specific stations (with id 83). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 83).")] + SequentialIDsForModelSpecificStations_83 = 83, + + /// + /// Sequential IDs for model-specific stations (with id 84). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 84).")] + SequentialIDsForModelSpecificStations_84 = 84, + + /// + /// Sequential IDs for model-specific stations (with id 85). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 85).")] + SequentialIDsForModelSpecificStations_85 = 85, + + /// + /// Sequential IDs for model-specific stations (with id 86). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 86).")] + SequentialIDsForModelSpecificStations_86 = 86, + + /// + /// Sequential IDs for model-specific stations (with id 87). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 87).")] + SequentialIDsForModelSpecificStations_87 = 87, + + /// + /// Sequential IDs for model-specific stations (with id 88). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 88).")] + SequentialIDsForModelSpecificStations_88 = 88, + + /// + /// Sequential IDs for model-specific stations (with id 89). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 89).")] + SequentialIDsForModelSpecificStations_89 = 89, + + /// + /// Sequential IDs for model-specific stations (with id 90). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 90).")] + SequentialIDsForModelSpecificStations_90 = 90, + + /// + /// Sequential IDs for model-specific stations (with id 91). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 91).")] + SequentialIDsForModelSpecificStations_91 = 91, + + /// + /// Sequential IDs for model-specific stations (with id 92). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 92).")] + SequentialIDsForModelSpecificStations_92 = 92, + + /// + /// Sequential IDs for model-specific stations (with id 93). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 93).")] + SequentialIDsForModelSpecificStations_93 = 93, + + /// + /// Sequential IDs for model-specific stations (with id 94). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 94).")] + SequentialIDsForModelSpecificStations_94 = 94, + + /// + /// Sequential IDs for model-specific stations (with id 95). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 95).")] + SequentialIDsForModelSpecificStations_95 = 95, + + /// + /// Sequential IDs for model-specific stations (with id 96). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 96).")] + SequentialIDsForModelSpecificStations_96 = 96, + + /// + /// Sequential IDs for model-specific stations (with id 97). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 97).")] + SequentialIDsForModelSpecificStations_97 = 97, + + /// + /// Sequential IDs for model-specific stations (with id 98). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 98).")] + SequentialIDsForModelSpecificStations_98 = 98, + + /// + /// Sequential IDs for model-specific stations (with id 99). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 99).")] + SequentialIDsForModelSpecificStations_99 = 99, + + /// + /// Sequential IDs for model-specific stations (with id 100). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 100).")] + SequentialIDsForModelSpecificStations_100 = 100, + + /// + /// Sequential IDs for model-specific stations (with id 101). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 101).")] + SequentialIDsForModelSpecificStations_101 = 101, + + /// + /// Sequential IDs for model-specific stations (with id 102). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 102).")] + SequentialIDsForModelSpecificStations_102 = 102, + + /// + /// Sequential IDs for model-specific stations (with id 103). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 103).")] + SequentialIDsForModelSpecificStations_103 = 103, + + /// + /// Sequential IDs for model-specific stations (with id 104). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 104).")] + SequentialIDsForModelSpecificStations_104 = 104, + + /// + /// Sequential IDs for model-specific stations (with id 105). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 105).")] + SequentialIDsForModelSpecificStations_105 = 105, + + /// + /// Sequential IDs for model-specific stations (with id 106). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 106).")] + SequentialIDsForModelSpecificStations_106 = 106, + + /// + /// Sequential IDs for model-specific stations (with id 107). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 107).")] + SequentialIDsForModelSpecificStations_107 = 107, + + /// + /// Sequential IDs for model-specific stations (with id 108). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 108).")] + SequentialIDsForModelSpecificStations_108 = 108, + + /// + /// Sequential IDs for model-specific stations (with id 109). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 109).")] + SequentialIDsForModelSpecificStations_109 = 109, + + /// + /// Sequential IDs for model-specific stations (with id 110). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 110).")] + SequentialIDsForModelSpecificStations_110 = 110, + + /// + /// Sequential IDs for model-specific stations (with id 111). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 111).")] + SequentialIDsForModelSpecificStations_111 = 111, + + /// + /// Sequential IDs for model-specific stations (with id 112). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 112).")] + SequentialIDsForModelSpecificStations_112 = 112, + + /// + /// Sequential IDs for model-specific stations (with id 113). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 113).")] + SequentialIDsForModelSpecificStations_113 = 113, + + /// + /// Sequential IDs for model-specific stations (with id 114). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 114).")] + SequentialIDsForModelSpecificStations_114 = 114, + + /// + /// Sequential IDs for model-specific stations (with id 115). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 115).")] + SequentialIDsForModelSpecificStations_115 = 115, + + /// + /// Sequential IDs for model-specific stations (with id 116). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 116).")] + SequentialIDsForModelSpecificStations_116 = 116, + + /// + /// Sequential IDs for model-specific stations (with id 117). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 117).")] + SequentialIDsForModelSpecificStations_117 = 117, + + /// + /// Sequential IDs for model-specific stations (with id 118). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 118).")] + SequentialIDsForModelSpecificStations_118 = 118, + + /// + /// Sequential IDs for model-specific stations (with id 119). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 119).")] + SequentialIDsForModelSpecificStations_119 = 119, + + /// + /// Sequential IDs for model-specific stations (with id 120). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 120).")] + SequentialIDsForModelSpecificStations_120 = 120, + + /// + /// Sequential IDs for model-specific stations (with id 121). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 121).")] + SequentialIDsForModelSpecificStations_121 = 121, + + /// + /// Sequential IDs for model-specific stations (with id 122). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 122).")] + SequentialIDsForModelSpecificStations_122 = 122, + + /// + /// Sequential IDs for model-specific stations (with id 123). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 123).")] + SequentialIDsForModelSpecificStations_123 = 123, + + /// + /// Sequential IDs for model-specific stations (with id 124). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 124).")] + SequentialIDsForModelSpecificStations_124 = 124, + + /// + /// Sequential IDs for model-specific stations (with id 125). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 125).")] + SequentialIDsForModelSpecificStations_125 = 125, + + /// + /// Sequential IDs for model-specific stations (with id 126). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 126).")] + SequentialIDsForModelSpecificStations_126 = 126, + + /// + /// Sequential IDs for model-specific stations (with id 127). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 127).")] + SequentialIDsForModelSpecificStations_127 = 127, + + /// + /// Sequential IDs for model-specific stations (with id 128). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 128).")] + SequentialIDsForModelSpecificStations_128 = 128, + + /// + /// Sequential IDs for model-specific stations (with id 129). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 129).")] + SequentialIDsForModelSpecificStations_129 = 129, + + /// + /// Sequential IDs for model-specific stations (with id 130). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 130).")] + SequentialIDsForModelSpecificStations_130 = 130, + + /// + /// Sequential IDs for model-specific stations (with id 131). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 131).")] + SequentialIDsForModelSpecificStations_131 = 131, + + /// + /// Sequential IDs for model-specific stations (with id 132). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 132).")] + SequentialIDsForModelSpecificStations_132 = 132, + + /// + /// Sequential IDs for model-specific stations (with id 133). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 133).")] + SequentialIDsForModelSpecificStations_133 = 133, + + /// + /// Sequential IDs for model-specific stations (with id 134). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 134).")] + SequentialIDsForModelSpecificStations_134 = 134, + + /// + /// Sequential IDs for model-specific stations (with id 135). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 135).")] + SequentialIDsForModelSpecificStations_135 = 135, + + /// + /// Sequential IDs for model-specific stations (with id 136). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 136).")] + SequentialIDsForModelSpecificStations_136 = 136, + + /// + /// Sequential IDs for model-specific stations (with id 137). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 137).")] + SequentialIDsForModelSpecificStations_137 = 137, + + /// + /// Sequential IDs for model-specific stations (with id 138). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 138).")] + SequentialIDsForModelSpecificStations_138 = 138, + + /// + /// Sequential IDs for model-specific stations (with id 139). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 139).")] + SequentialIDsForModelSpecificStations_139 = 139, + + /// + /// Sequential IDs for model-specific stations (with id 140). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 140).")] + SequentialIDsForModelSpecificStations_140 = 140, + + /// + /// Sequential IDs for model-specific stations (with id 141). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 141).")] + SequentialIDsForModelSpecificStations_141 = 141, + + /// + /// Sequential IDs for model-specific stations (with id 142). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 142).")] + SequentialIDsForModelSpecificStations_142 = 142, + + /// + /// Sequential IDs for model-specific stations (with id 143). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 143).")] + SequentialIDsForModelSpecificStations_143 = 143, + + /// + /// Sequential IDs for model-specific stations (with id 144). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 144).")] + SequentialIDsForModelSpecificStations_144 = 144, + + /// + /// Sequential IDs for model-specific stations (with id 145). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 145).")] + SequentialIDsForModelSpecificStations_145 = 145, + + /// + /// Sequential IDs for model-specific stations (with id 146). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 146).")] + SequentialIDsForModelSpecificStations_146 = 146, + + /// + /// Sequential IDs for model-specific stations (with id 147). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 147).")] + SequentialIDsForModelSpecificStations_147 = 147, + + /// + /// Sequential IDs for model-specific stations (with id 148). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 148).")] + SequentialIDsForModelSpecificStations_148 = 148, + + /// + /// Sequential IDs for model-specific stations (with id 149). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 149).")] + SequentialIDsForModelSpecificStations_149 = 149, + + /// + /// Sequential IDs for model-specific stations (with id 150). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 150).")] + SequentialIDsForModelSpecificStations_150 = 150, + + /// + /// Sequential IDs for model-specific stations (with id 151). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 151).")] + SequentialIDsForModelSpecificStations_151 = 151, + + /// + /// Sequential IDs for model-specific stations (with id 152). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 152).")] + SequentialIDsForModelSpecificStations_152 = 152, + + /// + /// Sequential IDs for model-specific stations (with id 153). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 153).")] + SequentialIDsForModelSpecificStations_153 = 153, + + /// + /// Sequential IDs for model-specific stations (with id 154). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 154).")] + SequentialIDsForModelSpecificStations_154 = 154, + + /// + /// Sequential IDs for model-specific stations (with id 155). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 155).")] + SequentialIDsForModelSpecificStations_155 = 155, + + /// + /// Sequential IDs for model-specific stations (with id 156). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 156).")] + SequentialIDsForModelSpecificStations_156 = 156, + + /// + /// Sequential IDs for model-specific stations (with id 157). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 157).")] + SequentialIDsForModelSpecificStations_157 = 157, + + /// + /// Sequential IDs for model-specific stations (with id 158). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 158).")] + SequentialIDsForModelSpecificStations_158 = 158, + + /// + /// Sequential IDs for model-specific stations (with id 159). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 159).")] + SequentialIDsForModelSpecificStations_159 = 159, + + /// + /// Sequential IDs for model-specific stations (with id 160). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 160).")] + SequentialIDsForModelSpecificStations_160 = 160, + + /// + /// Sequential IDs for model-specific stations (with id 161). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 161).")] + SequentialIDsForModelSpecificStations_161 = 161, + + /// + /// Sequential IDs for model-specific stations (with id 162). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 162).")] + SequentialIDsForModelSpecificStations_162 = 162, + + /// + /// Sequential IDs for model-specific stations (with id 163). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 163).")] + SequentialIDsForModelSpecificStations_163 = 163, + + /// + /// Sequential IDs for model-specific stations (with id 164). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 164).")] + SequentialIDsForModelSpecificStations_164 = 164, + + /// + /// Sequential IDs for model-specific stations (with id 165). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 165).")] + SequentialIDsForModelSpecificStations_165 = 165, + + /// + /// Sequential IDs for model-specific stations (with id 166). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 166).")] + SequentialIDsForModelSpecificStations_166 = 166, + + /// + /// Sequential IDs for model-specific stations (with id 167). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 167).")] + SequentialIDsForModelSpecificStations_167 = 167, + + /// + /// Sequential IDs for model-specific stations (with id 168). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 168).")] + SequentialIDsForModelSpecificStations_168 = 168, + + /// + /// Sequential IDs for model-specific stations (with id 169). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 169).")] + SequentialIDsForModelSpecificStations_169 = 169, + + /// + /// Sequential IDs for model-specific stations (with id 170). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 170).")] + SequentialIDsForModelSpecificStations_170 = 170, + + /// + /// Sequential IDs for model-specific stations (with id 171). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 171).")] + SequentialIDsForModelSpecificStations_171 = 171, + + /// + /// Sequential IDs for model-specific stations (with id 172). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 172).")] + SequentialIDsForModelSpecificStations_172 = 172, + + /// + /// Sequential IDs for model-specific stations (with id 173). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 173).")] + SequentialIDsForModelSpecificStations_173 = 173, + + /// + /// Sequential IDs for model-specific stations (with id 174). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 174).")] + SequentialIDsForModelSpecificStations_174 = 174, + + /// + /// Sequential IDs for model-specific stations (with id 175). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 175).")] + SequentialIDsForModelSpecificStations_175 = 175, + + /// + /// Sequential IDs for model-specific stations (with id 176). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 176).")] + SequentialIDsForModelSpecificStations_176 = 176, + + /// + /// Sequential IDs for model-specific stations (with id 177). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 177).")] + SequentialIDsForModelSpecificStations_177 = 177, + + /// + /// Sequential IDs for model-specific stations (with id 178). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 178).")] + SequentialIDsForModelSpecificStations_178 = 178, + + /// + /// Sequential IDs for model-specific stations (with id 179). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 179).")] + SequentialIDsForModelSpecificStations_179 = 179, + + /// + /// Sequential IDs for model-specific stations (with id 180). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 180).")] + SequentialIDsForModelSpecificStations_180 = 180, + + /// + /// Sequential IDs for model-specific stations (with id 181). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 181).")] + SequentialIDsForModelSpecificStations_181 = 181, + + /// + /// Sequential IDs for model-specific stations (with id 182). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 182).")] + SequentialIDsForModelSpecificStations_182 = 182, + + /// + /// Sequential IDs for model-specific stations (with id 183). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 183).")] + SequentialIDsForModelSpecificStations_183 = 183, + + /// + /// Sequential IDs for model-specific stations (with id 184). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 184).")] + SequentialIDsForModelSpecificStations_184 = 184, + + /// + /// Sequential IDs for model-specific stations (with id 185). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 185).")] + SequentialIDsForModelSpecificStations_185 = 185, + + /// + /// Sequential IDs for model-specific stations (with id 186). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 186).")] + SequentialIDsForModelSpecificStations_186 = 186, + + /// + /// Sequential IDs for model-specific stations (with id 187). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 187).")] + SequentialIDsForModelSpecificStations_187 = 187, + + /// + /// Sequential IDs for model-specific stations (with id 188). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 188).")] + SequentialIDsForModelSpecificStations_188 = 188, + + /// + /// Sequential IDs for model-specific stations (with id 189). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 189).")] + SequentialIDsForModelSpecificStations_189 = 189, + + /// + /// Sequential IDs for model-specific stations (with id 190). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 190).")] + SequentialIDsForModelSpecificStations_190 = 190, + + /// + /// Sequential IDs for model-specific stations (with id 191). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 191).")] + SequentialIDsForModelSpecificStations_191 = 191, + + /// + /// Sequential IDs for model-specific stations (with id 192). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 192).")] + SequentialIDsForModelSpecificStations_192 = 192, + + /// + /// Sequential IDs for model-specific stations (with id 193). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 193).")] + SequentialIDsForModelSpecificStations_193 = 193, + + /// + /// Sequential IDs for model-specific stations (with id 194). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 194).")] + SequentialIDsForModelSpecificStations_194 = 194, + + /// + /// Sequential IDs for model-specific stations (with id 195). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 195).")] + SequentialIDsForModelSpecificStations_195 = 195, + + /// + /// Sequential IDs for model-specific stations (with id 196). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 196).")] + SequentialIDsForModelSpecificStations_196 = 196, + + /// + /// Sequential IDs for model-specific stations (with id 197). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 197).")] + SequentialIDsForModelSpecificStations_197 = 197, + + /// + /// Sequential IDs for model-specific stations (with id 198). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 198).")] + SequentialIDsForModelSpecificStations_198 = 198, + + /// + /// Sequential IDs for model-specific stations (with id 199). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 199).")] + SequentialIDsForModelSpecificStations_199 = 199, + + /// + /// Sequential IDs for model-specific stations (with id 200). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 200).")] + SequentialIDsForModelSpecificStations_200 = 200, + + /// + /// Sequential IDs for model-specific stations (with id 201). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 201).")] + SequentialIDsForModelSpecificStations_201 = 201, + + /// + /// Sequential IDs for model-specific stations (with id 202). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 202).")] + SequentialIDsForModelSpecificStations_202 = 202, + + /// + /// Sequential IDs for model-specific stations (with id 203). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 203).")] + SequentialIDsForModelSpecificStations_203 = 203, + + /// + /// Sequential IDs for model-specific stations (with id 204). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 204).")] + SequentialIDsForModelSpecificStations_204 = 204, + + /// + /// Sequential IDs for model-specific stations (with id 205). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 205).")] + SequentialIDsForModelSpecificStations_205 = 205, + + /// + /// Sequential IDs for model-specific stations (with id 206). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 206).")] + SequentialIDsForModelSpecificStations_206 = 206, + + /// + /// Sequential IDs for model-specific stations (with id 207). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 207).")] + SequentialIDsForModelSpecificStations_207 = 207, + + /// + /// Sequential IDs for model-specific stations (with id 208). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 208).")] + SequentialIDsForModelSpecificStations_208 = 208, + + /// + /// Sequential IDs for model-specific stations (with id 209). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 209).")] + SequentialIDsForModelSpecificStations_209 = 209, + + /// + /// Sequential IDs for model-specific stations (with id 210). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 210).")] + SequentialIDsForModelSpecificStations_210 = 210, + + /// + /// Sequential IDs for model-specific stations (with id 211). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 211).")] + SequentialIDsForModelSpecificStations_211 = 211, + + /// + /// Sequential IDs for model-specific stations (with id 212). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 212).")] + SequentialIDsForModelSpecificStations_212 = 212, + + /// + /// Sequential IDs for model-specific stations (with id 213). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 213).")] + SequentialIDsForModelSpecificStations_213 = 213, + + /// + /// Sequential IDs for model-specific stations (with id 214). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 214).")] + SequentialIDsForModelSpecificStations_214 = 214, + + /// + /// Sequential IDs for model-specific stations (with id 215). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 215).")] + SequentialIDsForModelSpecificStations_215 = 215, + + /// + /// Sequential IDs for model-specific stations (with id 216). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 216).")] + SequentialIDsForModelSpecificStations_216 = 216, + + /// + /// Sequential IDs for model-specific stations (with id 217). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 217).")] + SequentialIDsForModelSpecificStations_217 = 217, + + /// + /// Sequential IDs for model-specific stations (with id 218). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 218).")] + SequentialIDsForModelSpecificStations_218 = 218, + + /// + /// Sequential IDs for model-specific stations (with id 219). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 219).")] + SequentialIDsForModelSpecificStations_219 = 219, + + /// + /// Sequential IDs for model-specific stations (with id 220). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 220).")] + SequentialIDsForModelSpecificStations_220 = 220, + + /// + /// Sequential IDs for model-specific stations (with id 221). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 221).")] + SequentialIDsForModelSpecificStations_221 = 221, + + /// + /// Sequential IDs for model-specific stations (with id 222). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 222).")] + SequentialIDsForModelSpecificStations_222 = 222, + + /// + /// Sequential IDs for model-specific stations (with id 223). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 223).")] + SequentialIDsForModelSpecificStations_223 = 223, + + /// + /// Sequential IDs for model-specific stations (with id 224). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 224).")] + SequentialIDsForModelSpecificStations_224 = 224, + + /// + /// Sequential IDs for model-specific stations (with id 225). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 225).")] + SequentialIDsForModelSpecificStations_225 = 225, + + /// + /// Sequential IDs for model-specific stations (with id 226). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 226).")] + SequentialIDsForModelSpecificStations_226 = 226, + + /// + /// Sequential IDs for model-specific stations (with id 227). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 227).")] + SequentialIDsForModelSpecificStations_227 = 227, + + /// + /// Sequential IDs for model-specific stations (with id 228). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 228).")] + SequentialIDsForModelSpecificStations_228 = 228, + + /// + /// Sequential IDs for model-specific stations (with id 229). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 229).")] + SequentialIDsForModelSpecificStations_229 = 229, + + /// + /// Sequential IDs for model-specific stations (with id 230). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 230).")] + SequentialIDsForModelSpecificStations_230 = 230, + + /// + /// Sequential IDs for model-specific stations (with id 231). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 231).")] + SequentialIDsForModelSpecificStations_231 = 231, + + /// + /// Sequential IDs for model-specific stations (with id 232). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 232).")] + SequentialIDsForModelSpecificStations_232 = 232, + + /// + /// Sequential IDs for model-specific stations (with id 233). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 233).")] + SequentialIDsForModelSpecificStations_233 = 233, + + /// + /// Sequential IDs for model-specific stations (with id 234). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 234).")] + SequentialIDsForModelSpecificStations_234 = 234, + + /// + /// Sequential IDs for model-specific stations (with id 235). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 235).")] + SequentialIDsForModelSpecificStations_235 = 235, + + /// + /// Sequential IDs for model-specific stations (with id 236). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 236).")] + SequentialIDsForModelSpecificStations_236 = 236, + + /// + /// Sequential IDs for model-specific stations (with id 237). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 237).")] + SequentialIDsForModelSpecificStations_237 = 237, + + /// + /// Sequential IDs for model-specific stations (with id 238). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 238).")] + SequentialIDsForModelSpecificStations_238 = 238, + + /// + /// Sequential IDs for model-specific stations (with id 239). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 239).")] + SequentialIDsForModelSpecificStations_239 = 239, + + /// + /// Sequential IDs for model-specific stations (with id 240). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 240).")] + SequentialIDsForModelSpecificStations_240 = 240, + + /// + /// Sequential IDs for model-specific stations (with id 241). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 241).")] + SequentialIDsForModelSpecificStations_241 = 241, + + /// + /// Sequential IDs for model-specific stations (with id 242). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 242).")] + SequentialIDsForModelSpecificStations_242 = 242, + + /// + /// Sequential IDs for model-specific stations (with id 243). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 243).")] + SequentialIDsForModelSpecificStations_243 = 243, + + /// + /// Sequential IDs for model-specific stations (with id 244). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 244).")] + SequentialIDsForModelSpecificStations_244 = 244, + + /// + /// Sequential IDs for model-specific stations (with id 245). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 245).")] + SequentialIDsForModelSpecificStations_245 = 245, + + /// + /// Sequential IDs for model-specific stations (with id 246). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 246).")] + SequentialIDsForModelSpecificStations_246 = 246, + + /// + /// Sequential IDs for model-specific stations (with id 247). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 247).")] + SequentialIDsForModelSpecificStations_247 = 247, + + /// + /// Sequential IDs for model-specific stations (with id 248). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 248).")] + SequentialIDsForModelSpecificStations_248 = 248, + + /// + /// Sequential IDs for model-specific stations (with id 249). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 249).")] + SequentialIDsForModelSpecificStations_249 = 249, + + /// + /// Sequential IDs for model-specific stations (with id 250). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 250).")] + SequentialIDsForModelSpecificStations_250 = 250, + + /// + /// Sequential IDs for model-specific stations (with id 251). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 251).")] + SequentialIDsForModelSpecificStations_251 = 251, + + /// + /// Sequential IDs for model-specific stations (with id 252). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 252).")] + SequentialIDsForModelSpecificStations_252 = 252, + + /// + /// Sequential IDs for model-specific stations (with id 253). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 253).")] + SequentialIDsForModelSpecificStations_253 = 253, + + /// + /// Sequential IDs for model-specific stations (with id 254). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 254).")] + SequentialIDsForModelSpecificStations_254 = 254, + + /// + /// Sequential IDs for model-specific stations (with id 255). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 255).")] + SequentialIDsForModelSpecificStations_255 = 255, + + /// + /// Sequential IDs for model-specific stations (with id 256). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 256).")] + SequentialIDsForModelSpecificStations_256 = 256, + + /// + /// Sequential IDs for model-specific stations (with id 257). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 257).")] + SequentialIDsForModelSpecificStations_257 = 257, + + /// + /// Sequential IDs for model-specific stations (with id 258). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 258).")] + SequentialIDsForModelSpecificStations_258 = 258, + + /// + /// Sequential IDs for model-specific stations (with id 259). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 259).")] + SequentialIDsForModelSpecificStations_259 = 259, + + /// + /// Sequential IDs for model-specific stations (with id 260). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 260).")] + SequentialIDsForModelSpecificStations_260 = 260, + + /// + /// Sequential IDs for model-specific stations (with id 261). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 261).")] + SequentialIDsForModelSpecificStations_261 = 261, + + /// + /// Sequential IDs for model-specific stations (with id 262). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 262).")] + SequentialIDsForModelSpecificStations_262 = 262, + + /// + /// Sequential IDs for model-specific stations (with id 263). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 263).")] + SequentialIDsForModelSpecificStations_263 = 263, + + /// + /// Sequential IDs for model-specific stations (with id 264). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 264).")] + SequentialIDsForModelSpecificStations_264 = 264, + + /// + /// Sequential IDs for model-specific stations (with id 265). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 265).")] + SequentialIDsForModelSpecificStations_265 = 265, + + /// + /// Sequential IDs for model-specific stations (with id 266). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 266).")] + SequentialIDsForModelSpecificStations_266 = 266, + + /// + /// Sequential IDs for model-specific stations (with id 267). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 267).")] + SequentialIDsForModelSpecificStations_267 = 267, + + /// + /// Sequential IDs for model-specific stations (with id 268). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 268).")] + SequentialIDsForModelSpecificStations_268 = 268, + + /// + /// Sequential IDs for model-specific stations (with id 269). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 269).")] + SequentialIDsForModelSpecificStations_269 = 269, + + /// + /// Sequential IDs for model-specific stations (with id 270). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 270).")] + SequentialIDsForModelSpecificStations_270 = 270, + + /// + /// Sequential IDs for model-specific stations (with id 271). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 271).")] + SequentialIDsForModelSpecificStations_271 = 271, + + /// + /// Sequential IDs for model-specific stations (with id 272). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 272).")] + SequentialIDsForModelSpecificStations_272 = 272, + + /// + /// Sequential IDs for model-specific stations (with id 273). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 273).")] + SequentialIDsForModelSpecificStations_273 = 273, + + /// + /// Sequential IDs for model-specific stations (with id 274). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 274).")] + SequentialIDsForModelSpecificStations_274 = 274, + + /// + /// Sequential IDs for model-specific stations (with id 275). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 275).")] + SequentialIDsForModelSpecificStations_275 = 275, + + /// + /// Sequential IDs for model-specific stations (with id 276). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 276).")] + SequentialIDsForModelSpecificStations_276 = 276, + + /// + /// Sequential IDs for model-specific stations (with id 277). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 277).")] + SequentialIDsForModelSpecificStations_277 = 277, + + /// + /// Sequential IDs for model-specific stations (with id 278). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 278).")] + SequentialIDsForModelSpecificStations_278 = 278, + + /// + /// Sequential IDs for model-specific stations (with id 279). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 279).")] + SequentialIDsForModelSpecificStations_279 = 279, + + /// + /// Sequential IDs for model-specific stations (with id 280). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 280).")] + SequentialIDsForModelSpecificStations_280 = 280, + + /// + /// Sequential IDs for model-specific stations (with id 281). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 281).")] + SequentialIDsForModelSpecificStations_281 = 281, + + /// + /// Sequential IDs for model-specific stations (with id 282). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 282).")] + SequentialIDsForModelSpecificStations_282 = 282, + + /// + /// Sequential IDs for model-specific stations (with id 283). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 283).")] + SequentialIDsForModelSpecificStations_283 = 283, + + /// + /// Sequential IDs for model-specific stations (with id 284). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 284).")] + SequentialIDsForModelSpecificStations_284 = 284, + + /// + /// Sequential IDs for model-specific stations (with id 285). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 285).")] + SequentialIDsForModelSpecificStations_285 = 285, + + /// + /// Sequential IDs for model-specific stations (with id 286). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 286).")] + SequentialIDsForModelSpecificStations_286 = 286, + + /// + /// Sequential IDs for model-specific stations (with id 287). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 287).")] + SequentialIDsForModelSpecificStations_287 = 287, + + /// + /// Sequential IDs for model-specific stations (with id 288). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 288).")] + SequentialIDsForModelSpecificStations_288 = 288, + + /// + /// Sequential IDs for model-specific stations (with id 289). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 289).")] + SequentialIDsForModelSpecificStations_289 = 289, + + /// + /// Sequential IDs for model-specific stations (with id 290). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 290).")] + SequentialIDsForModelSpecificStations_290 = 290, + + /// + /// Sequential IDs for model-specific stations (with id 291). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 291).")] + SequentialIDsForModelSpecificStations_291 = 291, + + /// + /// Sequential IDs for model-specific stations (with id 292). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 292).")] + SequentialIDsForModelSpecificStations_292 = 292, + + /// + /// Sequential IDs for model-specific stations (with id 293). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 293).")] + SequentialIDsForModelSpecificStations_293 = 293, + + /// + /// Sequential IDs for model-specific stations (with id 294). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 294).")] + SequentialIDsForModelSpecificStations_294 = 294, + + /// + /// Sequential IDs for model-specific stations (with id 295). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 295).")] + SequentialIDsForModelSpecificStations_295 = 295, + + /// + /// Sequential IDs for model-specific stations (with id 296). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 296).")] + SequentialIDsForModelSpecificStations_296 = 296, + + /// + /// Sequential IDs for model-specific stations (with id 297). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 297).")] + SequentialIDsForModelSpecificStations_297 = 297, + + /// + /// Sequential IDs for model-specific stations (with id 298). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 298).")] + SequentialIDsForModelSpecificStations_298 = 298, + + /// + /// Sequential IDs for model-specific stations (with id 299). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 299).")] + SequentialIDsForModelSpecificStations_299 = 299, + + /// + /// Sequential IDs for model-specific stations (with id 300). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 300).")] + SequentialIDsForModelSpecificStations_300 = 300, + + /// + /// Sequential IDs for model-specific stations (with id 301). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 301).")] + SequentialIDsForModelSpecificStations_301 = 301, + + /// + /// Sequential IDs for model-specific stations (with id 302). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 302).")] + SequentialIDsForModelSpecificStations_302 = 302, + + /// + /// Sequential IDs for model-specific stations (with id 303). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 303).")] + SequentialIDsForModelSpecificStations_303 = 303, + + /// + /// Sequential IDs for model-specific stations (with id 304). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 304).")] + SequentialIDsForModelSpecificStations_304 = 304, + + /// + /// Sequential IDs for model-specific stations (with id 305). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 305).")] + SequentialIDsForModelSpecificStations_305 = 305, + + /// + /// Sequential IDs for model-specific stations (with id 306). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 306).")] + SequentialIDsForModelSpecificStations_306 = 306, + + /// + /// Sequential IDs for model-specific stations (with id 307). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 307).")] + SequentialIDsForModelSpecificStations_307 = 307, + + /// + /// Sequential IDs for model-specific stations (with id 308). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 308).")] + SequentialIDsForModelSpecificStations_308 = 308, + + /// + /// Sequential IDs for model-specific stations (with id 309). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 309).")] + SequentialIDsForModelSpecificStations_309 = 309, + + /// + /// Sequential IDs for model-specific stations (with id 310). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 310).")] + SequentialIDsForModelSpecificStations_310 = 310, + + /// + /// Sequential IDs for model-specific stations (with id 311). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 311).")] + SequentialIDsForModelSpecificStations_311 = 311, + + /// + /// Sequential IDs for model-specific stations (with id 312). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 312).")] + SequentialIDsForModelSpecificStations_312 = 312, + + /// + /// Sequential IDs for model-specific stations (with id 313). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 313).")] + SequentialIDsForModelSpecificStations_313 = 313, + + /// + /// Sequential IDs for model-specific stations (with id 314). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 314).")] + SequentialIDsForModelSpecificStations_314 = 314, + + /// + /// Sequential IDs for model-specific stations (with id 315). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 315).")] + SequentialIDsForModelSpecificStations_315 = 315, + + /// + /// Sequential IDs for model-specific stations (with id 316). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 316).")] + SequentialIDsForModelSpecificStations_316 = 316, + + /// + /// Sequential IDs for model-specific stations (with id 317). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 317).")] + SequentialIDsForModelSpecificStations_317 = 317, + + /// + /// Sequential IDs for model-specific stations (with id 318). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 318).")] + SequentialIDsForModelSpecificStations_318 = 318, + + /// + /// Sequential IDs for model-specific stations (with id 319). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 319).")] + SequentialIDsForModelSpecificStations_319 = 319, + + /// + /// Sequential IDs for model-specific stations (with id 320). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 320).")] + SequentialIDsForModelSpecificStations_320 = 320, + + /// + /// Sequential IDs for model-specific stations (with id 321). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 321).")] + SequentialIDsForModelSpecificStations_321 = 321, + + /// + /// Sequential IDs for model-specific stations (with id 322). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 322).")] + SequentialIDsForModelSpecificStations_322 = 322, + + /// + /// Sequential IDs for model-specific stations (with id 323). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 323).")] + SequentialIDsForModelSpecificStations_323 = 323, + + /// + /// Sequential IDs for model-specific stations (with id 324). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 324).")] + SequentialIDsForModelSpecificStations_324 = 324, + + /// + /// Sequential IDs for model-specific stations (with id 325). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 325).")] + SequentialIDsForModelSpecificStations_325 = 325, + + /// + /// Sequential IDs for model-specific stations (with id 326). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 326).")] + SequentialIDsForModelSpecificStations_326 = 326, + + /// + /// Sequential IDs for model-specific stations (with id 327). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 327).")] + SequentialIDsForModelSpecificStations_327 = 327, + + /// + /// Sequential IDs for model-specific stations (with id 328). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 328).")] + SequentialIDsForModelSpecificStations_328 = 328, + + /// + /// Sequential IDs for model-specific stations (with id 329). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 329).")] + SequentialIDsForModelSpecificStations_329 = 329, + + /// + /// Sequential IDs for model-specific stations (with id 330). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 330).")] + SequentialIDsForModelSpecificStations_330 = 330, + + /// + /// Sequential IDs for model-specific stations (with id 331). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 331).")] + SequentialIDsForModelSpecificStations_331 = 331, + + /// + /// Sequential IDs for model-specific stations (with id 332). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 332).")] + SequentialIDsForModelSpecificStations_332 = 332, + + /// + /// Sequential IDs for model-specific stations (with id 333). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 333).")] + SequentialIDsForModelSpecificStations_333 = 333, + + /// + /// Sequential IDs for model-specific stations (with id 334). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 334).")] + SequentialIDsForModelSpecificStations_334 = 334, + + /// + /// Sequential IDs for model-specific stations (with id 335). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 335).")] + SequentialIDsForModelSpecificStations_335 = 335, + + /// + /// Sequential IDs for model-specific stations (with id 336). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 336).")] + SequentialIDsForModelSpecificStations_336 = 336, + + /// + /// Sequential IDs for model-specific stations (with id 337). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 337).")] + SequentialIDsForModelSpecificStations_337 = 337, + + /// + /// Sequential IDs for model-specific stations (with id 338). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 338).")] + SequentialIDsForModelSpecificStations_338 = 338, + + /// + /// Sequential IDs for model-specific stations (with id 339). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 339).")] + SequentialIDsForModelSpecificStations_339 = 339, + + /// + /// Sequential IDs for model-specific stations (with id 340). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 340).")] + SequentialIDsForModelSpecificStations_340 = 340, + + /// + /// Sequential IDs for model-specific stations (with id 341). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 341).")] + SequentialIDsForModelSpecificStations_341 = 341, + + /// + /// Sequential IDs for model-specific stations (with id 342). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 342).")] + SequentialIDsForModelSpecificStations_342 = 342, + + /// + /// Sequential IDs for model-specific stations (with id 343). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 343).")] + SequentialIDsForModelSpecificStations_343 = 343, + + /// + /// Sequential IDs for model-specific stations (with id 344). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 344).")] + SequentialIDsForModelSpecificStations_344 = 344, + + /// + /// Sequential IDs for model-specific stations (with id 345). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 345).")] + SequentialIDsForModelSpecificStations_345 = 345, + + /// + /// Sequential IDs for model-specific stations (with id 346). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 346).")] + SequentialIDsForModelSpecificStations_346 = 346, + + /// + /// Sequential IDs for model-specific stations (with id 347). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 347).")] + SequentialIDsForModelSpecificStations_347 = 347, + + /// + /// Sequential IDs for model-specific stations (with id 348). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 348).")] + SequentialIDsForModelSpecificStations_348 = 348, + + /// + /// Sequential IDs for model-specific stations (with id 349). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 349).")] + SequentialIDsForModelSpecificStations_349 = 349, + + /// + /// Sequential IDs for model-specific stations (with id 350). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 350).")] + SequentialIDsForModelSpecificStations_350 = 350, + + /// + /// Sequential IDs for model-specific stations (with id 351). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 351).")] + SequentialIDsForModelSpecificStations_351 = 351, + + /// + /// Sequential IDs for model-specific stations (with id 352). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 352).")] + SequentialIDsForModelSpecificStations_352 = 352, + + /// + /// Sequential IDs for model-specific stations (with id 353). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 353).")] + SequentialIDsForModelSpecificStations_353 = 353, + + /// + /// Sequential IDs for model-specific stations (with id 354). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 354).")] + SequentialIDsForModelSpecificStations_354 = 354, + + /// + /// Sequential IDs for model-specific stations (with id 355). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 355).")] + SequentialIDsForModelSpecificStations_355 = 355, + + /// + /// Sequential IDs for model-specific stations (with id 356). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 356).")] + SequentialIDsForModelSpecificStations_356 = 356, + + /// + /// Sequential IDs for model-specific stations (with id 357). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 357).")] + SequentialIDsForModelSpecificStations_357 = 357, + + /// + /// Sequential IDs for model-specific stations (with id 358). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 358).")] + SequentialIDsForModelSpecificStations_358 = 358, + + /// + /// Sequential IDs for model-specific stations (with id 359). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 359).")] + SequentialIDsForModelSpecificStations_359 = 359, + + /// + /// Sequential IDs for model-specific stations (with id 360). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 360).")] + SequentialIDsForModelSpecificStations_360 = 360, + + /// + /// Sequential IDs for model-specific stations (with id 361). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 361).")] + SequentialIDsForModelSpecificStations_361 = 361, + + /// + /// Sequential IDs for model-specific stations (with id 362). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 362).")] + SequentialIDsForModelSpecificStations_362 = 362, + + /// + /// Sequential IDs for model-specific stations (with id 363). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 363).")] + SequentialIDsForModelSpecificStations_363 = 363, + + /// + /// Sequential IDs for model-specific stations (with id 364). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 364).")] + SequentialIDsForModelSpecificStations_364 = 364, + + /// + /// Sequential IDs for model-specific stations (with id 365). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 365).")] + SequentialIDsForModelSpecificStations_365 = 365, + + /// + /// Sequential IDs for model-specific stations (with id 366). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 366).")] + SequentialIDsForModelSpecificStations_366 = 366, + + /// + /// Sequential IDs for model-specific stations (with id 367). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 367).")] + SequentialIDsForModelSpecificStations_367 = 367, + + /// + /// Sequential IDs for model-specific stations (with id 368). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 368).")] + SequentialIDsForModelSpecificStations_368 = 368, + + /// + /// Sequential IDs for model-specific stations (with id 369). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 369).")] + SequentialIDsForModelSpecificStations_369 = 369, + + /// + /// Sequential IDs for model-specific stations (with id 370). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 370).")] + SequentialIDsForModelSpecificStations_370 = 370, + + /// + /// Sequential IDs for model-specific stations (with id 371). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 371).")] + SequentialIDsForModelSpecificStations_371 = 371, + + /// + /// Sequential IDs for model-specific stations (with id 372). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 372).")] + SequentialIDsForModelSpecificStations_372 = 372, + + /// + /// Sequential IDs for model-specific stations (with id 373). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 373).")] + SequentialIDsForModelSpecificStations_373 = 373, + + /// + /// Sequential IDs for model-specific stations (with id 374). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 374).")] + SequentialIDsForModelSpecificStations_374 = 374, + + /// + /// Sequential IDs for model-specific stations (with id 375). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 375).")] + SequentialIDsForModelSpecificStations_375 = 375, + + /// + /// Sequential IDs for model-specific stations (with id 376). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 376).")] + SequentialIDsForModelSpecificStations_376 = 376, + + /// + /// Sequential IDs for model-specific stations (with id 377). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 377).")] + SequentialIDsForModelSpecificStations_377 = 377, + + /// + /// Sequential IDs for model-specific stations (with id 378). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 378).")] + SequentialIDsForModelSpecificStations_378 = 378, + + /// + /// Sequential IDs for model-specific stations (with id 379). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 379).")] + SequentialIDsForModelSpecificStations_379 = 379, + + /// + /// Sequential IDs for model-specific stations (with id 380). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 380).")] + SequentialIDsForModelSpecificStations_380 = 380, + + /// + /// Sequential IDs for model-specific stations (with id 381). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 381).")] + SequentialIDsForModelSpecificStations_381 = 381, + + /// + /// Sequential IDs for model-specific stations (with id 382). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 382).")] + SequentialIDsForModelSpecificStations_382 = 382, + + /// + /// Sequential IDs for model-specific stations (with id 383). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 383).")] + SequentialIDsForModelSpecificStations_383 = 383, + + /// + /// Sequential IDs for model-specific stations (with id 384). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 384).")] + SequentialIDsForModelSpecificStations_384 = 384, + + /// + /// Sequential IDs for model-specific stations (with id 385). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 385).")] + SequentialIDsForModelSpecificStations_385 = 385, + + /// + /// Sequential IDs for model-specific stations (with id 386). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 386).")] + SequentialIDsForModelSpecificStations_386 = 386, + + /// + /// Sequential IDs for model-specific stations (with id 387). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 387).")] + SequentialIDsForModelSpecificStations_387 = 387, + + /// + /// Sequential IDs for model-specific stations (with id 388). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 388).")] + SequentialIDsForModelSpecificStations_388 = 388, + + /// + /// Sequential IDs for model-specific stations (with id 389). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 389).")] + SequentialIDsForModelSpecificStations_389 = 389, + + /// + /// Sequential IDs for model-specific stations (with id 390). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 390).")] + SequentialIDsForModelSpecificStations_390 = 390, + + /// + /// Sequential IDs for model-specific stations (with id 391). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 391).")] + SequentialIDsForModelSpecificStations_391 = 391, + + /// + /// Sequential IDs for model-specific stations (with id 392). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 392).")] + SequentialIDsForModelSpecificStations_392 = 392, + + /// + /// Sequential IDs for model-specific stations (with id 393). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 393).")] + SequentialIDsForModelSpecificStations_393 = 393, + + /// + /// Sequential IDs for model-specific stations (with id 394). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 394).")] + SequentialIDsForModelSpecificStations_394 = 394, + + /// + /// Sequential IDs for model-specific stations (with id 395). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 395).")] + SequentialIDsForModelSpecificStations_395 = 395, + + /// + /// Sequential IDs for model-specific stations (with id 396). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 396).")] + SequentialIDsForModelSpecificStations_396 = 396, + + /// + /// Sequential IDs for model-specific stations (with id 397). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 397).")] + SequentialIDsForModelSpecificStations_397 = 397, + + /// + /// Sequential IDs for model-specific stations (with id 398). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 398).")] + SequentialIDsForModelSpecificStations_398 = 398, + + /// + /// Sequential IDs for model-specific stations (with id 399). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 399).")] + SequentialIDsForModelSpecificStations_399 = 399, + + /// + /// Sequential IDs for model-specific stations (with id 400). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 400).")] + SequentialIDsForModelSpecificStations_400 = 400, + + /// + /// Sequential IDs for model-specific stations (with id 401). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 401).")] + SequentialIDsForModelSpecificStations_401 = 401, + + /// + /// Sequential IDs for model-specific stations (with id 402). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 402).")] + SequentialIDsForModelSpecificStations_402 = 402, + + /// + /// Sequential IDs for model-specific stations (with id 403). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 403).")] + SequentialIDsForModelSpecificStations_403 = 403, + + /// + /// Sequential IDs for model-specific stations (with id 404). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 404).")] + SequentialIDsForModelSpecificStations_404 = 404, + + /// + /// Sequential IDs for model-specific stations (with id 405). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 405).")] + SequentialIDsForModelSpecificStations_405 = 405, + + /// + /// Sequential IDs for model-specific stations (with id 406). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 406).")] + SequentialIDsForModelSpecificStations_406 = 406, + + /// + /// Sequential IDs for model-specific stations (with id 407). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 407).")] + SequentialIDsForModelSpecificStations_407 = 407, + + /// + /// Sequential IDs for model-specific stations (with id 408). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 408).")] + SequentialIDsForModelSpecificStations_408 = 408, + + /// + /// Sequential IDs for model-specific stations (with id 409). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 409).")] + SequentialIDsForModelSpecificStations_409 = 409, + + /// + /// Sequential IDs for model-specific stations (with id 410). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 410).")] + SequentialIDsForModelSpecificStations_410 = 410, + + /// + /// Sequential IDs for model-specific stations (with id 411). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 411).")] + SequentialIDsForModelSpecificStations_411 = 411, + + /// + /// Sequential IDs for model-specific stations (with id 412). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 412).")] + SequentialIDsForModelSpecificStations_412 = 412, + + /// + /// Sequential IDs for model-specific stations (with id 413). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 413).")] + SequentialIDsForModelSpecificStations_413 = 413, + + /// + /// Sequential IDs for model-specific stations (with id 414). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 414).")] + SequentialIDsForModelSpecificStations_414 = 414, + + /// + /// Sequential IDs for model-specific stations (with id 415). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 415).")] + SequentialIDsForModelSpecificStations_415 = 415, + + /// + /// Sequential IDs for model-specific stations (with id 416). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 416).")] + SequentialIDsForModelSpecificStations_416 = 416, + + /// + /// Sequential IDs for model-specific stations (with id 417). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 417).")] + SequentialIDsForModelSpecificStations_417 = 417, + + /// + /// Sequential IDs for model-specific stations (with id 418). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 418).")] + SequentialIDsForModelSpecificStations_418 = 418, + + /// + /// Sequential IDs for model-specific stations (with id 419). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 419).")] + SequentialIDsForModelSpecificStations_419 = 419, + + /// + /// Sequential IDs for model-specific stations (with id 420). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 420).")] + SequentialIDsForModelSpecificStations_420 = 420, + + /// + /// Sequential IDs for model-specific stations (with id 421). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 421).")] + SequentialIDsForModelSpecificStations_421 = 421, + + /// + /// Sequential IDs for model-specific stations (with id 422). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 422).")] + SequentialIDsForModelSpecificStations_422 = 422, + + /// + /// Sequential IDs for model-specific stations (with id 423). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 423).")] + SequentialIDsForModelSpecificStations_423 = 423, + + /// + /// Sequential IDs for model-specific stations (with id 424). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 424).")] + SequentialIDsForModelSpecificStations_424 = 424, + + /// + /// Sequential IDs for model-specific stations (with id 425). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 425).")] + SequentialIDsForModelSpecificStations_425 = 425, + + /// + /// Sequential IDs for model-specific stations (with id 426). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 426).")] + SequentialIDsForModelSpecificStations_426 = 426, + + /// + /// Sequential IDs for model-specific stations (with id 427). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 427).")] + SequentialIDsForModelSpecificStations_427 = 427, + + /// + /// Sequential IDs for model-specific stations (with id 428). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 428).")] + SequentialIDsForModelSpecificStations_428 = 428, + + /// + /// Sequential IDs for model-specific stations (with id 429). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 429).")] + SequentialIDsForModelSpecificStations_429 = 429, + + /// + /// Sequential IDs for model-specific stations (with id 430). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 430).")] + SequentialIDsForModelSpecificStations_430 = 430, + + /// + /// Sequential IDs for model-specific stations (with id 431). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 431).")] + SequentialIDsForModelSpecificStations_431 = 431, + + /// + /// Sequential IDs for model-specific stations (with id 432). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 432).")] + SequentialIDsForModelSpecificStations_432 = 432, + + /// + /// Sequential IDs for model-specific stations (with id 433). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 433).")] + SequentialIDsForModelSpecificStations_433 = 433, + + /// + /// Sequential IDs for model-specific stations (with id 434). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 434).")] + SequentialIDsForModelSpecificStations_434 = 434, + + /// + /// Sequential IDs for model-specific stations (with id 435). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 435).")] + SequentialIDsForModelSpecificStations_435 = 435, + + /// + /// Sequential IDs for model-specific stations (with id 436). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 436).")] + SequentialIDsForModelSpecificStations_436 = 436, + + /// + /// Sequential IDs for model-specific stations (with id 437). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 437).")] + SequentialIDsForModelSpecificStations_437 = 437, + + /// + /// Sequential IDs for model-specific stations (with id 438). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 438).")] + SequentialIDsForModelSpecificStations_438 = 438, + + /// + /// Sequential IDs for model-specific stations (with id 439). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 439).")] + SequentialIDsForModelSpecificStations_439 = 439, + + /// + /// Sequential IDs for model-specific stations (with id 440). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 440).")] + SequentialIDsForModelSpecificStations_440 = 440, + + /// + /// Sequential IDs for model-specific stations (with id 441). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 441).")] + SequentialIDsForModelSpecificStations_441 = 441, + + /// + /// Sequential IDs for model-specific stations (with id 442). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 442).")] + SequentialIDsForModelSpecificStations_442 = 442, + + /// + /// Sequential IDs for model-specific stations (with id 443). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 443).")] + SequentialIDsForModelSpecificStations_443 = 443, + + /// + /// Sequential IDs for model-specific stations (with id 444). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 444).")] + SequentialIDsForModelSpecificStations_444 = 444, + + /// + /// Sequential IDs for model-specific stations (with id 445). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 445).")] + SequentialIDsForModelSpecificStations_445 = 445, + + /// + /// Sequential IDs for model-specific stations (with id 446). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 446).")] + SequentialIDsForModelSpecificStations_446 = 446, + + /// + /// Sequential IDs for model-specific stations (with id 447). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 447).")] + SequentialIDsForModelSpecificStations_447 = 447, + + /// + /// Sequential IDs for model-specific stations (with id 448). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 448).")] + SequentialIDsForModelSpecificStations_448 = 448, + + /// + /// Sequential IDs for model-specific stations (with id 449). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 449).")] + SequentialIDsForModelSpecificStations_449 = 449, + + /// + /// Sequential IDs for model-specific stations (with id 450). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 450).")] + SequentialIDsForModelSpecificStations_450 = 450, + + /// + /// Sequential IDs for model-specific stations (with id 451). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 451).")] + SequentialIDsForModelSpecificStations_451 = 451, + + /// + /// Sequential IDs for model-specific stations (with id 452). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 452).")] + SequentialIDsForModelSpecificStations_452 = 452, + + /// + /// Sequential IDs for model-specific stations (with id 453). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 453).")] + SequentialIDsForModelSpecificStations_453 = 453, + + /// + /// Sequential IDs for model-specific stations (with id 454). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 454).")] + SequentialIDsForModelSpecificStations_454 = 454, + + /// + /// Sequential IDs for model-specific stations (with id 455). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 455).")] + SequentialIDsForModelSpecificStations_455 = 455, + + /// + /// Sequential IDs for model-specific stations (with id 456). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 456).")] + SequentialIDsForModelSpecificStations_456 = 456, + + /// + /// Sequential IDs for model-specific stations (with id 457). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 457).")] + SequentialIDsForModelSpecificStations_457 = 457, + + /// + /// Sequential IDs for model-specific stations (with id 458). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 458).")] + SequentialIDsForModelSpecificStations_458 = 458, + + /// + /// Sequential IDs for model-specific stations (with id 459). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 459).")] + SequentialIDsForModelSpecificStations_459 = 459, + + /// + /// Sequential IDs for model-specific stations (with id 460). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 460).")] + SequentialIDsForModelSpecificStations_460 = 460, + + /// + /// Sequential IDs for model-specific stations (with id 461). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 461).")] + SequentialIDsForModelSpecificStations_461 = 461, + + /// + /// Sequential IDs for model-specific stations (with id 462). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 462).")] + SequentialIDsForModelSpecificStations_462 = 462, + + /// + /// Sequential IDs for model-specific stations (with id 463). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 463).")] + SequentialIDsForModelSpecificStations_463 = 463, + + /// + /// Sequential IDs for model-specific stations (with id 464). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 464).")] + SequentialIDsForModelSpecificStations_464 = 464, + + /// + /// Sequential IDs for model-specific stations (with id 465). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 465).")] + SequentialIDsForModelSpecificStations_465 = 465, + + /// + /// Sequential IDs for model-specific stations (with id 466). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 466).")] + SequentialIDsForModelSpecificStations_466 = 466, + + /// + /// Sequential IDs for model-specific stations (with id 467). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 467).")] + SequentialIDsForModelSpecificStations_467 = 467, + + /// + /// Sequential IDs for model-specific stations (with id 468). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 468).")] + SequentialIDsForModelSpecificStations_468 = 468, + + /// + /// Sequential IDs for model-specific stations (with id 469). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 469).")] + SequentialIDsForModelSpecificStations_469 = 469, + + /// + /// Sequential IDs for model-specific stations (with id 470). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 470).")] + SequentialIDsForModelSpecificStations_470 = 470, + + /// + /// Sequential IDs for model-specific stations (with id 471). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 471).")] + SequentialIDsForModelSpecificStations_471 = 471, + + /// + /// Sequential IDs for model-specific stations (with id 472). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 472).")] + SequentialIDsForModelSpecificStations_472 = 472, + + /// + /// Sequential IDs for model-specific stations (with id 473). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 473).")] + SequentialIDsForModelSpecificStations_473 = 473, + + /// + /// Sequential IDs for model-specific stations (with id 474). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 474).")] + SequentialIDsForModelSpecificStations_474 = 474, + + /// + /// Sequential IDs for model-specific stations (with id 475). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 475).")] + SequentialIDsForModelSpecificStations_475 = 475, + + /// + /// Sequential IDs for model-specific stations (with id 476). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 476).")] + SequentialIDsForModelSpecificStations_476 = 476, + + /// + /// Sequential IDs for model-specific stations (with id 477). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 477).")] + SequentialIDsForModelSpecificStations_477 = 477, + + /// + /// Sequential IDs for model-specific stations (with id 478). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 478).")] + SequentialIDsForModelSpecificStations_478 = 478, + + /// + /// Sequential IDs for model-specific stations (with id 479). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 479).")] + SequentialIDsForModelSpecificStations_479 = 479, + + /// + /// Sequential IDs for model-specific stations (with id 480). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 480).")] + SequentialIDsForModelSpecificStations_480 = 480, + + /// + /// Sequential IDs for model-specific stations (with id 481). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 481).")] + SequentialIDsForModelSpecificStations_481 = 481, + + /// + /// Sequential IDs for model-specific stations (with id 482). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 482).")] + SequentialIDsForModelSpecificStations_482 = 482, + + /// + /// Sequential IDs for model-specific stations (with id 483). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 483).")] + SequentialIDsForModelSpecificStations_483 = 483, + + /// + /// Sequential IDs for model-specific stations (with id 484). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 484).")] + SequentialIDsForModelSpecificStations_484 = 484, + + /// + /// Sequential IDs for model-specific stations (with id 485). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 485).")] + SequentialIDsForModelSpecificStations_485 = 485, + + /// + /// Sequential IDs for model-specific stations (with id 486). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 486).")] + SequentialIDsForModelSpecificStations_486 = 486, + + /// + /// Sequential IDs for model-specific stations (with id 487). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 487).")] + SequentialIDsForModelSpecificStations_487 = 487, + + /// + /// Sequential IDs for model-specific stations (with id 488). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 488).")] + SequentialIDsForModelSpecificStations_488 = 488, + + /// + /// Sequential IDs for model-specific stations (with id 489). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 489).")] + SequentialIDsForModelSpecificStations_489 = 489, + + /// + /// Sequential IDs for model-specific stations (with id 490). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 490).")] + SequentialIDsForModelSpecificStations_490 = 490, + + /// + /// Sequential IDs for model-specific stations (with id 491). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 491).")] + SequentialIDsForModelSpecificStations_491 = 491, + + /// + /// Sequential IDs for model-specific stations (with id 492). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 492).")] + SequentialIDsForModelSpecificStations_492 = 492, + + /// + /// Sequential IDs for model-specific stations (with id 493). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 493).")] + SequentialIDsForModelSpecificStations_493 = 493, + + /// + /// Sequential IDs for model-specific stations (with id 494). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 494).")] + SequentialIDsForModelSpecificStations_494 = 494, + + /// + /// Sequential IDs for model-specific stations (with id 495). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 495).")] + SequentialIDsForModelSpecificStations_495 = 495, + + /// + /// Sequential IDs for model-specific stations (with id 496). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 496).")] + SequentialIDsForModelSpecificStations_496 = 496, + + /// + /// Sequential IDs for model-specific stations (with id 497). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 497).")] + SequentialIDsForModelSpecificStations_497 = 497, + + /// + /// Sequential IDs for model-specific stations (with id 498). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 498).")] + SequentialIDsForModelSpecificStations_498 = 498, + + /// + /// Sequential IDs for model-specific stations (with id 499). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 499).")] + SequentialIDsForModelSpecificStations_499 = 499, + + /// + /// Sequential IDs for model-specific stations (with id 500). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 500).")] + SequentialIDsForModelSpecificStations_500 = 500, + + /// + /// Sequential IDs for model-specific stations (with id 501). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 501).")] + SequentialIDsForModelSpecificStations_501 = 501, + + /// + /// Sequential IDs for model-specific stations (with id 502). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 502).")] + SequentialIDsForModelSpecificStations_502 = 502, + + /// + /// Sequential IDs for model-specific stations (with id 503). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 503).")] + SequentialIDsForModelSpecificStations_503 = 503, + + /// + /// Sequential IDs for model-specific stations (with id 504). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 504).")] + SequentialIDsForModelSpecificStations_504 = 504, + + /// + /// Sequential IDs for model-specific stations (with id 505). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 505).")] + SequentialIDsForModelSpecificStations_505 = 505, + + /// + /// Sequential IDs for model-specific stations (with id 506). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 506).")] + SequentialIDsForModelSpecificStations_506 = 506, + + /// + /// Sequential IDs for model-specific stations (with id 507). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 507).")] + SequentialIDsForModelSpecificStations_507 = 507, + + /// + /// Sequential IDs for model-specific stations (with id 508). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 508).")] + SequentialIDsForModelSpecificStations_508 = 508, + + /// + /// Sequential IDs for model-specific stations (with id 509). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 509).")] + SequentialIDsForModelSpecificStations_509 = 509, + + /// + /// Sequential IDs for model-specific stations (with id 510). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 510).")] + SequentialIDsForModelSpecificStations_510 = 510, + + /// + /// Sequential IDs for model-specific stations (with id 511). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sequential IDs for model-specific stations (with id 511).")] + SequentialIDsForModelSpecificStations_511 = 511, + + /// + /// Fuselage Stations (with id 512). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 512).")] + FuselageStations_512 = 512, + + /// + /// Fuselage Stations (with id 513). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 513).")] + FuselageStations_513 = 513, + + /// + /// Fuselage Stations (with id 514). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 514).")] + FuselageStations_514 = 514, + + /// + /// Fuselage Stations (with id 515). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 515).")] + FuselageStations_515 = 515, + + /// + /// Fuselage Stations (with id 516). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 516).")] + FuselageStations_516 = 516, + + /// + /// Fuselage Stations (with id 517). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 517).")] + FuselageStations_517 = 517, + + /// + /// Fuselage Stations (with id 518). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 518).")] + FuselageStations_518 = 518, + + /// + /// Fuselage Stations (with id 519). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 519).")] + FuselageStations_519 = 519, + + /// + /// Fuselage Stations (with id 520). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 520).")] + FuselageStations_520 = 520, + + /// + /// Fuselage Stations (with id 521). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 521).")] + FuselageStations_521 = 521, + + /// + /// Fuselage Stations (with id 522). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 522).")] + FuselageStations_522 = 522, + + /// + /// Fuselage Stations (with id 523). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 523).")] + FuselageStations_523 = 523, + + /// + /// Fuselage Stations (with id 524). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 524).")] + FuselageStations_524 = 524, + + /// + /// Fuselage Stations (with id 525). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 525).")] + FuselageStations_525 = 525, + + /// + /// Fuselage Stations (with id 526). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 526).")] + FuselageStations_526 = 526, + + /// + /// Fuselage Stations (with id 527). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 527).")] + FuselageStations_527 = 527, + + /// + /// Fuselage Stations (with id 528). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 528).")] + FuselageStations_528 = 528, + + /// + /// Fuselage Stations (with id 529). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 529).")] + FuselageStations_529 = 529, + + /// + /// Fuselage Stations (with id 530). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 530).")] + FuselageStations_530 = 530, + + /// + /// Fuselage Stations (with id 531). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 531).")] + FuselageStations_531 = 531, + + /// + /// Fuselage Stations (with id 532). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 532).")] + FuselageStations_532 = 532, + + /// + /// Fuselage Stations (with id 533). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 533).")] + FuselageStations_533 = 533, + + /// + /// Fuselage Stations (with id 534). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 534).")] + FuselageStations_534 = 534, + + /// + /// Fuselage Stations (with id 535). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 535).")] + FuselageStations_535 = 535, + + /// + /// Fuselage Stations (with id 536). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 536).")] + FuselageStations_536 = 536, + + /// + /// Fuselage Stations (with id 537). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 537).")] + FuselageStations_537 = 537, + + /// + /// Fuselage Stations (with id 538). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 538).")] + FuselageStations_538 = 538, + + /// + /// Fuselage Stations (with id 539). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 539).")] + FuselageStations_539 = 539, + + /// + /// Fuselage Stations (with id 540). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 540).")] + FuselageStations_540 = 540, + + /// + /// Fuselage Stations (with id 541). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 541).")] + FuselageStations_541 = 541, + + /// + /// Fuselage Stations (with id 542). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 542).")] + FuselageStations_542 = 542, + + /// + /// Fuselage Stations (with id 543). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 543).")] + FuselageStations_543 = 543, + + /// + /// Fuselage Stations (with id 544). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 544).")] + FuselageStations_544 = 544, + + /// + /// Fuselage Stations (with id 545). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 545).")] + FuselageStations_545 = 545, + + /// + /// Fuselage Stations (with id 546). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 546).")] + FuselageStations_546 = 546, + + /// + /// Fuselage Stations (with id 547). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 547).")] + FuselageStations_547 = 547, + + /// + /// Fuselage Stations (with id 548). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 548).")] + FuselageStations_548 = 548, + + /// + /// Fuselage Stations (with id 549). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 549).")] + FuselageStations_549 = 549, + + /// + /// Fuselage Stations (with id 550). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 550).")] + FuselageStations_550 = 550, + + /// + /// Fuselage Stations (with id 551). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 551).")] + FuselageStations_551 = 551, + + /// + /// Fuselage Stations (with id 552). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 552).")] + FuselageStations_552 = 552, + + /// + /// Fuselage Stations (with id 553). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 553).")] + FuselageStations_553 = 553, + + /// + /// Fuselage Stations (with id 554). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 554).")] + FuselageStations_554 = 554, + + /// + /// Fuselage Stations (with id 555). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 555).")] + FuselageStations_555 = 555, + + /// + /// Fuselage Stations (with id 556). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 556).")] + FuselageStations_556 = 556, + + /// + /// Fuselage Stations (with id 557). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 557).")] + FuselageStations_557 = 557, + + /// + /// Fuselage Stations (with id 558). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 558).")] + FuselageStations_558 = 558, + + /// + /// Fuselage Stations (with id 559). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 559).")] + FuselageStations_559 = 559, + + /// + /// Fuselage Stations (with id 560). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 560).")] + FuselageStations_560 = 560, + + /// + /// Fuselage Stations (with id 561). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 561).")] + FuselageStations_561 = 561, + + /// + /// Fuselage Stations (with id 562). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 562).")] + FuselageStations_562 = 562, + + /// + /// Fuselage Stations (with id 563). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 563).")] + FuselageStations_563 = 563, + + /// + /// Fuselage Stations (with id 564). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 564).")] + FuselageStations_564 = 564, + + /// + /// Fuselage Stations (with id 565). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 565).")] + FuselageStations_565 = 565, + + /// + /// Fuselage Stations (with id 566). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 566).")] + FuselageStations_566 = 566, + + /// + /// Fuselage Stations (with id 567). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 567).")] + FuselageStations_567 = 567, + + /// + /// Fuselage Stations (with id 568). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 568).")] + FuselageStations_568 = 568, + + /// + /// Fuselage Stations (with id 569). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 569).")] + FuselageStations_569 = 569, + + /// + /// Fuselage Stations (with id 570). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 570).")] + FuselageStations_570 = 570, + + /// + /// Fuselage Stations (with id 571). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 571).")] + FuselageStations_571 = 571, + + /// + /// Fuselage Stations (with id 572). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 572).")] + FuselageStations_572 = 572, + + /// + /// Fuselage Stations (with id 573). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 573).")] + FuselageStations_573 = 573, + + /// + /// Fuselage Stations (with id 574). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 574).")] + FuselageStations_574 = 574, + + /// + /// Fuselage Stations (with id 575). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 575).")] + FuselageStations_575 = 575, + + /// + /// Fuselage Stations (with id 576). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 576).")] + FuselageStations_576 = 576, + + /// + /// Fuselage Stations (with id 577). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 577).")] + FuselageStations_577 = 577, + + /// + /// Fuselage Stations (with id 578). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 578).")] + FuselageStations_578 = 578, + + /// + /// Fuselage Stations (with id 579). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 579).")] + FuselageStations_579 = 579, + + /// + /// Fuselage Stations (with id 580). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 580).")] + FuselageStations_580 = 580, + + /// + /// Fuselage Stations (with id 581). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 581).")] + FuselageStations_581 = 581, + + /// + /// Fuselage Stations (with id 582). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 582).")] + FuselageStations_582 = 582, + + /// + /// Fuselage Stations (with id 583). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 583).")] + FuselageStations_583 = 583, + + /// + /// Fuselage Stations (with id 584). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 584).")] + FuselageStations_584 = 584, + + /// + /// Fuselage Stations (with id 585). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 585).")] + FuselageStations_585 = 585, + + /// + /// Fuselage Stations (with id 586). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 586).")] + FuselageStations_586 = 586, + + /// + /// Fuselage Stations (with id 587). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 587).")] + FuselageStations_587 = 587, + + /// + /// Fuselage Stations (with id 588). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 588).")] + FuselageStations_588 = 588, + + /// + /// Fuselage Stations (with id 589). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 589).")] + FuselageStations_589 = 589, + + /// + /// Fuselage Stations (with id 590). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 590).")] + FuselageStations_590 = 590, + + /// + /// Fuselage Stations (with id 591). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 591).")] + FuselageStations_591 = 591, + + /// + /// Fuselage Stations (with id 592). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 592).")] + FuselageStations_592 = 592, + + /// + /// Fuselage Stations (with id 593). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 593).")] + FuselageStations_593 = 593, + + /// + /// Fuselage Stations (with id 594). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 594).")] + FuselageStations_594 = 594, + + /// + /// Fuselage Stations (with id 595). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 595).")] + FuselageStations_595 = 595, + + /// + /// Fuselage Stations (with id 596). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 596).")] + FuselageStations_596 = 596, + + /// + /// Fuselage Stations (with id 597). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 597).")] + FuselageStations_597 = 597, + + /// + /// Fuselage Stations (with id 598). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 598).")] + FuselageStations_598 = 598, + + /// + /// Fuselage Stations (with id 599). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 599).")] + FuselageStations_599 = 599, + + /// + /// Fuselage Stations (with id 600). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 600).")] + FuselageStations_600 = 600, + + /// + /// Fuselage Stations (with id 601). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 601).")] + FuselageStations_601 = 601, + + /// + /// Fuselage Stations (with id 602). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 602).")] + FuselageStations_602 = 602, + + /// + /// Fuselage Stations (with id 603). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 603).")] + FuselageStations_603 = 603, + + /// + /// Fuselage Stations (with id 604). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 604).")] + FuselageStations_604 = 604, + + /// + /// Fuselage Stations (with id 605). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 605).")] + FuselageStations_605 = 605, + + /// + /// Fuselage Stations (with id 606). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 606).")] + FuselageStations_606 = 606, + + /// + /// Fuselage Stations (with id 607). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 607).")] + FuselageStations_607 = 607, + + /// + /// Fuselage Stations (with id 608). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 608).")] + FuselageStations_608 = 608, + + /// + /// Fuselage Stations (with id 609). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 609).")] + FuselageStations_609 = 609, + + /// + /// Fuselage Stations (with id 610). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 610).")] + FuselageStations_610 = 610, + + /// + /// Fuselage Stations (with id 611). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 611).")] + FuselageStations_611 = 611, + + /// + /// Fuselage Stations (with id 612). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 612).")] + FuselageStations_612 = 612, + + /// + /// Fuselage Stations (with id 613). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 613).")] + FuselageStations_613 = 613, + + /// + /// Fuselage Stations (with id 614). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 614).")] + FuselageStations_614 = 614, + + /// + /// Fuselage Stations (with id 615). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 615).")] + FuselageStations_615 = 615, + + /// + /// Fuselage Stations (with id 616). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 616).")] + FuselageStations_616 = 616, + + /// + /// Fuselage Stations (with id 617). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 617).")] + FuselageStations_617 = 617, + + /// + /// Fuselage Stations (with id 618). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 618).")] + FuselageStations_618 = 618, + + /// + /// Fuselage Stations (with id 619). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 619).")] + FuselageStations_619 = 619, + + /// + /// Fuselage Stations (with id 620). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 620).")] + FuselageStations_620 = 620, + + /// + /// Fuselage Stations (with id 621). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 621).")] + FuselageStations_621 = 621, + + /// + /// Fuselage Stations (with id 622). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 622).")] + FuselageStations_622 = 622, + + /// + /// Fuselage Stations (with id 623). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 623).")] + FuselageStations_623 = 623, + + /// + /// Fuselage Stations (with id 624). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 624).")] + FuselageStations_624 = 624, + + /// + /// Fuselage Stations (with id 625). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 625).")] + FuselageStations_625 = 625, + + /// + /// Fuselage Stations (with id 626). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 626).")] + FuselageStations_626 = 626, + + /// + /// Fuselage Stations (with id 627). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 627).")] + FuselageStations_627 = 627, + + /// + /// Fuselage Stations (with id 628). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 628).")] + FuselageStations_628 = 628, + + /// + /// Fuselage Stations (with id 629). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 629).")] + FuselageStations_629 = 629, + + /// + /// Fuselage Stations (with id 630). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 630).")] + FuselageStations_630 = 630, + + /// + /// Fuselage Stations (with id 631). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 631).")] + FuselageStations_631 = 631, + + /// + /// Fuselage Stations (with id 632). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 632).")] + FuselageStations_632 = 632, + + /// + /// Fuselage Stations (with id 633). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 633).")] + FuselageStations_633 = 633, + + /// + /// Fuselage Stations (with id 634). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 634).")] + FuselageStations_634 = 634, + + /// + /// Fuselage Stations (with id 635). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 635).")] + FuselageStations_635 = 635, + + /// + /// Fuselage Stations (with id 636). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 636).")] + FuselageStations_636 = 636, + + /// + /// Fuselage Stations (with id 637). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 637).")] + FuselageStations_637 = 637, + + /// + /// Fuselage Stations (with id 638). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 638).")] + FuselageStations_638 = 638, + + /// + /// Fuselage Stations (with id 639). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuselage Stations (with id 639).")] + FuselageStations_639 = 639, + + /// + /// Left-wing Stations (with id 640). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 640).")] + LeftWingStations_640 = 640, + + /// + /// Left-wing Stations (with id 641). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 641).")] + LeftWingStations_641 = 641, + + /// + /// Left-wing Stations (with id 642). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 642).")] + LeftWingStations_642 = 642, + + /// + /// Left-wing Stations (with id 643). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 643).")] + LeftWingStations_643 = 643, + + /// + /// Left-wing Stations (with id 644). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 644).")] + LeftWingStations_644 = 644, + + /// + /// Left-wing Stations (with id 645). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 645).")] + LeftWingStations_645 = 645, + + /// + /// Left-wing Stations (with id 646). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 646).")] + LeftWingStations_646 = 646, + + /// + /// Left-wing Stations (with id 647). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 647).")] + LeftWingStations_647 = 647, + + /// + /// Left-wing Stations (with id 648). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 648).")] + LeftWingStations_648 = 648, + + /// + /// Left-wing Stations (with id 649). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 649).")] + LeftWingStations_649 = 649, + + /// + /// Left-wing Stations (with id 650). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 650).")] + LeftWingStations_650 = 650, + + /// + /// Left-wing Stations (with id 651). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 651).")] + LeftWingStations_651 = 651, + + /// + /// Left-wing Stations (with id 652). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 652).")] + LeftWingStations_652 = 652, + + /// + /// Left-wing Stations (with id 653). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 653).")] + LeftWingStations_653 = 653, + + /// + /// Left-wing Stations (with id 654). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 654).")] + LeftWingStations_654 = 654, + + /// + /// Left-wing Stations (with id 655). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 655).")] + LeftWingStations_655 = 655, + + /// + /// Left-wing Stations (with id 656). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 656).")] + LeftWingStations_656 = 656, + + /// + /// Left-wing Stations (with id 657). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 657).")] + LeftWingStations_657 = 657, + + /// + /// Left-wing Stations (with id 658). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 658).")] + LeftWingStations_658 = 658, + + /// + /// Left-wing Stations (with id 659). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 659).")] + LeftWingStations_659 = 659, + + /// + /// Left-wing Stations (with id 660). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 660).")] + LeftWingStations_660 = 660, + + /// + /// Left-wing Stations (with id 661). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 661).")] + LeftWingStations_661 = 661, + + /// + /// Left-wing Stations (with id 662). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 662).")] + LeftWingStations_662 = 662, + + /// + /// Left-wing Stations (with id 663). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 663).")] + LeftWingStations_663 = 663, + + /// + /// Left-wing Stations (with id 664). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 664).")] + LeftWingStations_664 = 664, + + /// + /// Left-wing Stations (with id 665). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 665).")] + LeftWingStations_665 = 665, + + /// + /// Left-wing Stations (with id 666). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 666).")] + LeftWingStations_666 = 666, + + /// + /// Left-wing Stations (with id 667). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 667).")] + LeftWingStations_667 = 667, + + /// + /// Left-wing Stations (with id 668). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 668).")] + LeftWingStations_668 = 668, + + /// + /// Left-wing Stations (with id 669). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 669).")] + LeftWingStations_669 = 669, + + /// + /// Left-wing Stations (with id 670). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 670).")] + LeftWingStations_670 = 670, + + /// + /// Left-wing Stations (with id 671). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 671).")] + LeftWingStations_671 = 671, + + /// + /// Left-wing Stations (with id 672). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 672).")] + LeftWingStations_672 = 672, + + /// + /// Left-wing Stations (with id 673). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 673).")] + LeftWingStations_673 = 673, + + /// + /// Left-wing Stations (with id 674). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 674).")] + LeftWingStations_674 = 674, + + /// + /// Left-wing Stations (with id 675). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 675).")] + LeftWingStations_675 = 675, + + /// + /// Left-wing Stations (with id 676). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 676).")] + LeftWingStations_676 = 676, + + /// + /// Left-wing Stations (with id 677). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 677).")] + LeftWingStations_677 = 677, + + /// + /// Left-wing Stations (with id 678). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 678).")] + LeftWingStations_678 = 678, + + /// + /// Left-wing Stations (with id 679). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 679).")] + LeftWingStations_679 = 679, + + /// + /// Left-wing Stations (with id 680). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 680).")] + LeftWingStations_680 = 680, + + /// + /// Left-wing Stations (with id 681). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 681).")] + LeftWingStations_681 = 681, + + /// + /// Left-wing Stations (with id 682). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 682).")] + LeftWingStations_682 = 682, + + /// + /// Left-wing Stations (with id 683). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 683).")] + LeftWingStations_683 = 683, + + /// + /// Left-wing Stations (with id 684). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 684).")] + LeftWingStations_684 = 684, + + /// + /// Left-wing Stations (with id 685). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 685).")] + LeftWingStations_685 = 685, + + /// + /// Left-wing Stations (with id 686). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 686).")] + LeftWingStations_686 = 686, + + /// + /// Left-wing Stations (with id 687). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 687).")] + LeftWingStations_687 = 687, + + /// + /// Left-wing Stations (with id 688). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 688).")] + LeftWingStations_688 = 688, + + /// + /// Left-wing Stations (with id 689). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 689).")] + LeftWingStations_689 = 689, + + /// + /// Left-wing Stations (with id 690). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 690).")] + LeftWingStations_690 = 690, + + /// + /// Left-wing Stations (with id 691). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 691).")] + LeftWingStations_691 = 691, + + /// + /// Left-wing Stations (with id 692). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 692).")] + LeftWingStations_692 = 692, + + /// + /// Left-wing Stations (with id 693). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 693).")] + LeftWingStations_693 = 693, + + /// + /// Left-wing Stations (with id 694). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 694).")] + LeftWingStations_694 = 694, + + /// + /// Left-wing Stations (with id 695). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 695).")] + LeftWingStations_695 = 695, + + /// + /// Left-wing Stations (with id 696). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 696).")] + LeftWingStations_696 = 696, + + /// + /// Left-wing Stations (with id 697). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 697).")] + LeftWingStations_697 = 697, + + /// + /// Left-wing Stations (with id 698). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 698).")] + LeftWingStations_698 = 698, + + /// + /// Left-wing Stations (with id 699). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 699).")] + LeftWingStations_699 = 699, + + /// + /// Left-wing Stations (with id 700). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 700).")] + LeftWingStations_700 = 700, + + /// + /// Left-wing Stations (with id 701). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 701).")] + LeftWingStations_701 = 701, + + /// + /// Left-wing Stations (with id 702). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 702).")] + LeftWingStations_702 = 702, + + /// + /// Left-wing Stations (with id 703). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 703).")] + LeftWingStations_703 = 703, + + /// + /// Left-wing Stations (with id 704). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 704).")] + LeftWingStations_704 = 704, + + /// + /// Left-wing Stations (with id 705). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 705).")] + LeftWingStations_705 = 705, + + /// + /// Left-wing Stations (with id 706). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 706).")] + LeftWingStations_706 = 706, + + /// + /// Left-wing Stations (with id 707). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 707).")] + LeftWingStations_707 = 707, + + /// + /// Left-wing Stations (with id 708). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 708).")] + LeftWingStations_708 = 708, + + /// + /// Left-wing Stations (with id 709). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 709).")] + LeftWingStations_709 = 709, + + /// + /// Left-wing Stations (with id 710). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 710).")] + LeftWingStations_710 = 710, + + /// + /// Left-wing Stations (with id 711). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 711).")] + LeftWingStations_711 = 711, + + /// + /// Left-wing Stations (with id 712). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 712).")] + LeftWingStations_712 = 712, + + /// + /// Left-wing Stations (with id 713). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 713).")] + LeftWingStations_713 = 713, + + /// + /// Left-wing Stations (with id 714). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 714).")] + LeftWingStations_714 = 714, + + /// + /// Left-wing Stations (with id 715). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 715).")] + LeftWingStations_715 = 715, + + /// + /// Left-wing Stations (with id 716). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 716).")] + LeftWingStations_716 = 716, + + /// + /// Left-wing Stations (with id 717). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 717).")] + LeftWingStations_717 = 717, + + /// + /// Left-wing Stations (with id 718). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 718).")] + LeftWingStations_718 = 718, + + /// + /// Left-wing Stations (with id 719). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 719).")] + LeftWingStations_719 = 719, + + /// + /// Left-wing Stations (with id 720). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 720).")] + LeftWingStations_720 = 720, + + /// + /// Left-wing Stations (with id 721). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 721).")] + LeftWingStations_721 = 721, + + /// + /// Left-wing Stations (with id 722). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 722).")] + LeftWingStations_722 = 722, + + /// + /// Left-wing Stations (with id 723). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 723).")] + LeftWingStations_723 = 723, + + /// + /// Left-wing Stations (with id 724). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 724).")] + LeftWingStations_724 = 724, + + /// + /// Left-wing Stations (with id 725). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 725).")] + LeftWingStations_725 = 725, + + /// + /// Left-wing Stations (with id 726). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 726).")] + LeftWingStations_726 = 726, + + /// + /// Left-wing Stations (with id 727). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 727).")] + LeftWingStations_727 = 727, + + /// + /// Left-wing Stations (with id 728). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 728).")] + LeftWingStations_728 = 728, + + /// + /// Left-wing Stations (with id 729). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 729).")] + LeftWingStations_729 = 729, + + /// + /// Left-wing Stations (with id 730). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 730).")] + LeftWingStations_730 = 730, + + /// + /// Left-wing Stations (with id 731). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 731).")] + LeftWingStations_731 = 731, + + /// + /// Left-wing Stations (with id 732). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 732).")] + LeftWingStations_732 = 732, + + /// + /// Left-wing Stations (with id 733). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 733).")] + LeftWingStations_733 = 733, + + /// + /// Left-wing Stations (with id 734). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 734).")] + LeftWingStations_734 = 734, + + /// + /// Left-wing Stations (with id 735). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 735).")] + LeftWingStations_735 = 735, + + /// + /// Left-wing Stations (with id 736). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 736).")] + LeftWingStations_736 = 736, + + /// + /// Left-wing Stations (with id 737). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 737).")] + LeftWingStations_737 = 737, + + /// + /// Left-wing Stations (with id 738). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 738).")] + LeftWingStations_738 = 738, + + /// + /// Left-wing Stations (with id 739). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 739).")] + LeftWingStations_739 = 739, + + /// + /// Left-wing Stations (with id 740). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 740).")] + LeftWingStations_740 = 740, + + /// + /// Left-wing Stations (with id 741). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 741).")] + LeftWingStations_741 = 741, + + /// + /// Left-wing Stations (with id 742). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 742).")] + LeftWingStations_742 = 742, + + /// + /// Left-wing Stations (with id 743). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 743).")] + LeftWingStations_743 = 743, + + /// + /// Left-wing Stations (with id 744). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 744).")] + LeftWingStations_744 = 744, + + /// + /// Left-wing Stations (with id 745). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 745).")] + LeftWingStations_745 = 745, + + /// + /// Left-wing Stations (with id 746). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 746).")] + LeftWingStations_746 = 746, + + /// + /// Left-wing Stations (with id 747). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 747).")] + LeftWingStations_747 = 747, + + /// + /// Left-wing Stations (with id 748). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 748).")] + LeftWingStations_748 = 748, + + /// + /// Left-wing Stations (with id 749). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 749).")] + LeftWingStations_749 = 749, + + /// + /// Left-wing Stations (with id 750). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 750).")] + LeftWingStations_750 = 750, + + /// + /// Left-wing Stations (with id 751). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 751).")] + LeftWingStations_751 = 751, + + /// + /// Left-wing Stations (with id 752). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 752).")] + LeftWingStations_752 = 752, + + /// + /// Left-wing Stations (with id 753). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 753).")] + LeftWingStations_753 = 753, + + /// + /// Left-wing Stations (with id 754). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 754).")] + LeftWingStations_754 = 754, + + /// + /// Left-wing Stations (with id 755). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 755).")] + LeftWingStations_755 = 755, + + /// + /// Left-wing Stations (with id 756). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 756).")] + LeftWingStations_756 = 756, + + /// + /// Left-wing Stations (with id 757). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 757).")] + LeftWingStations_757 = 757, + + /// + /// Left-wing Stations (with id 758). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 758).")] + LeftWingStations_758 = 758, + + /// + /// Left-wing Stations (with id 759). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 759).")] + LeftWingStations_759 = 759, + + /// + /// Left-wing Stations (with id 760). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 760).")] + LeftWingStations_760 = 760, + + /// + /// Left-wing Stations (with id 761). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 761).")] + LeftWingStations_761 = 761, + + /// + /// Left-wing Stations (with id 762). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 762).")] + LeftWingStations_762 = 762, + + /// + /// Left-wing Stations (with id 763). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 763).")] + LeftWingStations_763 = 763, + + /// + /// Left-wing Stations (with id 764). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 764).")] + LeftWingStations_764 = 764, + + /// + /// Left-wing Stations (with id 765). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 765).")] + LeftWingStations_765 = 765, + + /// + /// Left-wing Stations (with id 766). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 766).")] + LeftWingStations_766 = 766, + + /// + /// Left-wing Stations (with id 767). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left-wing Stations (with id 767).")] + LeftWingStations_767 = 767, + + /// + /// Right-wing Stations (with id 768). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 768).")] + RightWingStations_768 = 768, + + /// + /// Right-wing Stations (with id 769). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 769).")] + RightWingStations_769 = 769, + + /// + /// Right-wing Stations (with id 770). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 770).")] + RightWingStations_770 = 770, + + /// + /// Right-wing Stations (with id 771). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 771).")] + RightWingStations_771 = 771, + + /// + /// Right-wing Stations (with id 772). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 772).")] + RightWingStations_772 = 772, + + /// + /// Right-wing Stations (with id 773). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 773).")] + RightWingStations_773 = 773, + + /// + /// Right-wing Stations (with id 774). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 774).")] + RightWingStations_774 = 774, + + /// + /// Right-wing Stations (with id 775). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 775).")] + RightWingStations_775 = 775, + + /// + /// Right-wing Stations (with id 776). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 776).")] + RightWingStations_776 = 776, + + /// + /// Right-wing Stations (with id 777). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 777).")] + RightWingStations_777 = 777, + + /// + /// Right-wing Stations (with id 778). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 778).")] + RightWingStations_778 = 778, + + /// + /// Right-wing Stations (with id 779). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 779).")] + RightWingStations_779 = 779, + + /// + /// Right-wing Stations (with id 780). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 780).")] + RightWingStations_780 = 780, + + /// + /// Right-wing Stations (with id 781). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 781).")] + RightWingStations_781 = 781, + + /// + /// Right-wing Stations (with id 782). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 782).")] + RightWingStations_782 = 782, + + /// + /// Right-wing Stations (with id 783). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 783).")] + RightWingStations_783 = 783, + + /// + /// Right-wing Stations (with id 784). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 784).")] + RightWingStations_784 = 784, + + /// + /// Right-wing Stations (with id 785). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 785).")] + RightWingStations_785 = 785, + + /// + /// Right-wing Stations (with id 786). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 786).")] + RightWingStations_786 = 786, + + /// + /// Right-wing Stations (with id 787). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 787).")] + RightWingStations_787 = 787, + + /// + /// Right-wing Stations (with id 788). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 788).")] + RightWingStations_788 = 788, + + /// + /// Right-wing Stations (with id 789). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 789).")] + RightWingStations_789 = 789, + + /// + /// Right-wing Stations (with id 790). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 790).")] + RightWingStations_790 = 790, + + /// + /// Right-wing Stations (with id 791). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 791).")] + RightWingStations_791 = 791, + + /// + /// Right-wing Stations (with id 792). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 792).")] + RightWingStations_792 = 792, + + /// + /// Right-wing Stations (with id 793). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 793).")] + RightWingStations_793 = 793, + + /// + /// Right-wing Stations (with id 794). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 794).")] + RightWingStations_794 = 794, + + /// + /// Right-wing Stations (with id 795). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 795).")] + RightWingStations_795 = 795, + + /// + /// Right-wing Stations (with id 796). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 796).")] + RightWingStations_796 = 796, + + /// + /// Right-wing Stations (with id 797). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 797).")] + RightWingStations_797 = 797, + + /// + /// Right-wing Stations (with id 798). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 798).")] + RightWingStations_798 = 798, + + /// + /// Right-wing Stations (with id 799). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 799).")] + RightWingStations_799 = 799, + + /// + /// Right-wing Stations (with id 800). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 800).")] + RightWingStations_800 = 800, + + /// + /// Right-wing Stations (with id 801). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 801).")] + RightWingStations_801 = 801, + + /// + /// Right-wing Stations (with id 802). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 802).")] + RightWingStations_802 = 802, + + /// + /// Right-wing Stations (with id 803). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 803).")] + RightWingStations_803 = 803, + + /// + /// Right-wing Stations (with id 804). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 804).")] + RightWingStations_804 = 804, + + /// + /// Right-wing Stations (with id 805). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 805).")] + RightWingStations_805 = 805, + + /// + /// Right-wing Stations (with id 806). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 806).")] + RightWingStations_806 = 806, + + /// + /// Right-wing Stations (with id 807). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 807).")] + RightWingStations_807 = 807, + + /// + /// Right-wing Stations (with id 808). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 808).")] + RightWingStations_808 = 808, + + /// + /// Right-wing Stations (with id 809). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 809).")] + RightWingStations_809 = 809, + + /// + /// Right-wing Stations (with id 810). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 810).")] + RightWingStations_810 = 810, + + /// + /// Right-wing Stations (with id 811). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 811).")] + RightWingStations_811 = 811, + + /// + /// Right-wing Stations (with id 812). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 812).")] + RightWingStations_812 = 812, + + /// + /// Right-wing Stations (with id 813). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 813).")] + RightWingStations_813 = 813, + + /// + /// Right-wing Stations (with id 814). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 814).")] + RightWingStations_814 = 814, + + /// + /// Right-wing Stations (with id 815). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 815).")] + RightWingStations_815 = 815, + + /// + /// Right-wing Stations (with id 816). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 816).")] + RightWingStations_816 = 816, + + /// + /// Right-wing Stations (with id 817). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 817).")] + RightWingStations_817 = 817, + + /// + /// Right-wing Stations (with id 818). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 818).")] + RightWingStations_818 = 818, + + /// + /// Right-wing Stations (with id 819). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 819).")] + RightWingStations_819 = 819, + + /// + /// Right-wing Stations (with id 820). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 820).")] + RightWingStations_820 = 820, + + /// + /// Right-wing Stations (with id 821). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 821).")] + RightWingStations_821 = 821, + + /// + /// Right-wing Stations (with id 822). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 822).")] + RightWingStations_822 = 822, + + /// + /// Right-wing Stations (with id 823). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 823).")] + RightWingStations_823 = 823, + + /// + /// Right-wing Stations (with id 824). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 824).")] + RightWingStations_824 = 824, + + /// + /// Right-wing Stations (with id 825). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 825).")] + RightWingStations_825 = 825, + + /// + /// Right-wing Stations (with id 826). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 826).")] + RightWingStations_826 = 826, + + /// + /// Right-wing Stations (with id 827). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 827).")] + RightWingStations_827 = 827, + + /// + /// Right-wing Stations (with id 828). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 828).")] + RightWingStations_828 = 828, + + /// + /// Right-wing Stations (with id 829). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 829).")] + RightWingStations_829 = 829, + + /// + /// Right-wing Stations (with id 830). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 830).")] + RightWingStations_830 = 830, + + /// + /// Right-wing Stations (with id 831). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 831).")] + RightWingStations_831 = 831, + + /// + /// Right-wing Stations (with id 832). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 832).")] + RightWingStations_832 = 832, + + /// + /// Right-wing Stations (with id 833). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 833).")] + RightWingStations_833 = 833, + + /// + /// Right-wing Stations (with id 834). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 834).")] + RightWingStations_834 = 834, + + /// + /// Right-wing Stations (with id 835). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 835).")] + RightWingStations_835 = 835, + + /// + /// Right-wing Stations (with id 836). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 836).")] + RightWingStations_836 = 836, + + /// + /// Right-wing Stations (with id 837). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 837).")] + RightWingStations_837 = 837, + + /// + /// Right-wing Stations (with id 838). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 838).")] + RightWingStations_838 = 838, + + /// + /// Right-wing Stations (with id 839). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 839).")] + RightWingStations_839 = 839, + + /// + /// Right-wing Stations (with id 840). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 840).")] + RightWingStations_840 = 840, + + /// + /// Right-wing Stations (with id 841). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 841).")] + RightWingStations_841 = 841, + + /// + /// Right-wing Stations (with id 842). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 842).")] + RightWingStations_842 = 842, + + /// + /// Right-wing Stations (with id 843). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 843).")] + RightWingStations_843 = 843, + + /// + /// Right-wing Stations (with id 844). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 844).")] + RightWingStations_844 = 844, + + /// + /// Right-wing Stations (with id 845). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 845).")] + RightWingStations_845 = 845, + + /// + /// Right-wing Stations (with id 846). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 846).")] + RightWingStations_846 = 846, + + /// + /// Right-wing Stations (with id 847). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 847).")] + RightWingStations_847 = 847, + + /// + /// Right-wing Stations (with id 848). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 848).")] + RightWingStations_848 = 848, + + /// + /// Right-wing Stations (with id 849). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 849).")] + RightWingStations_849 = 849, + + /// + /// Right-wing Stations (with id 850). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 850).")] + RightWingStations_850 = 850, + + /// + /// Right-wing Stations (with id 851). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 851).")] + RightWingStations_851 = 851, + + /// + /// Right-wing Stations (with id 852). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 852).")] + RightWingStations_852 = 852, + + /// + /// Right-wing Stations (with id 853). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 853).")] + RightWingStations_853 = 853, + + /// + /// Right-wing Stations (with id 854). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 854).")] + RightWingStations_854 = 854, + + /// + /// Right-wing Stations (with id 855). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 855).")] + RightWingStations_855 = 855, + + /// + /// Right-wing Stations (with id 856). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 856).")] + RightWingStations_856 = 856, + + /// + /// Right-wing Stations (with id 857). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 857).")] + RightWingStations_857 = 857, + + /// + /// Right-wing Stations (with id 858). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 858).")] + RightWingStations_858 = 858, + + /// + /// Right-wing Stations (with id 859). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 859).")] + RightWingStations_859 = 859, + + /// + /// Right-wing Stations (with id 860). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 860).")] + RightWingStations_860 = 860, + + /// + /// Right-wing Stations (with id 861). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 861).")] + RightWingStations_861 = 861, + + /// + /// Right-wing Stations (with id 862). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 862).")] + RightWingStations_862 = 862, + + /// + /// Right-wing Stations (with id 863). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 863).")] + RightWingStations_863 = 863, + + /// + /// Right-wing Stations (with id 864). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 864).")] + RightWingStations_864 = 864, + + /// + /// Right-wing Stations (with id 865). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 865).")] + RightWingStations_865 = 865, + + /// + /// Right-wing Stations (with id 866). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 866).")] + RightWingStations_866 = 866, + + /// + /// Right-wing Stations (with id 867). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 867).")] + RightWingStations_867 = 867, + + /// + /// Right-wing Stations (with id 868). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 868).")] + RightWingStations_868 = 868, + + /// + /// Right-wing Stations (with id 869). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 869).")] + RightWingStations_869 = 869, + + /// + /// Right-wing Stations (with id 870). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 870).")] + RightWingStations_870 = 870, + + /// + /// Right-wing Stations (with id 871). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 871).")] + RightWingStations_871 = 871, + + /// + /// Right-wing Stations (with id 872). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 872).")] + RightWingStations_872 = 872, + + /// + /// Right-wing Stations (with id 873). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 873).")] + RightWingStations_873 = 873, + + /// + /// Right-wing Stations (with id 874). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 874).")] + RightWingStations_874 = 874, + + /// + /// Right-wing Stations (with id 875). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 875).")] + RightWingStations_875 = 875, + + /// + /// Right-wing Stations (with id 876). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 876).")] + RightWingStations_876 = 876, + + /// + /// Right-wing Stations (with id 877). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 877).")] + RightWingStations_877 = 877, + + /// + /// Right-wing Stations (with id 878). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 878).")] + RightWingStations_878 = 878, + + /// + /// Right-wing Stations (with id 879). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 879).")] + RightWingStations_879 = 879, + + /// + /// Right-wing Stations (with id 880). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 880).")] + RightWingStations_880 = 880, + + /// + /// Right-wing Stations (with id 881). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 881).")] + RightWingStations_881 = 881, + + /// + /// Right-wing Stations (with id 882). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 882).")] + RightWingStations_882 = 882, + + /// + /// Right-wing Stations (with id 883). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 883).")] + RightWingStations_883 = 883, + + /// + /// Right-wing Stations (with id 884). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 884).")] + RightWingStations_884 = 884, + + /// + /// Right-wing Stations (with id 885). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 885).")] + RightWingStations_885 = 885, + + /// + /// Right-wing Stations (with id 886). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 886).")] + RightWingStations_886 = 886, + + /// + /// Right-wing Stations (with id 887). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 887).")] + RightWingStations_887 = 887, + + /// + /// Right-wing Stations (with id 888). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 888).")] + RightWingStations_888 = 888, + + /// + /// Right-wing Stations (with id 889). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 889).")] + RightWingStations_889 = 889, + + /// + /// Right-wing Stations (with id 890). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 890).")] + RightWingStations_890 = 890, + + /// + /// Right-wing Stations (with id 891). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 891).")] + RightWingStations_891 = 891, + + /// + /// Right-wing Stations (with id 892). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 892).")] + RightWingStations_892 = 892, + + /// + /// Right-wing Stations (with id 893). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 893).")] + RightWingStations_893 = 893, + + /// + /// Right-wing Stations (with id 894). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 894).")] + RightWingStations_894 = 894, + + /// + /// Right-wing Stations (with id 895). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right-wing Stations (with id 895).")] + RightWingStations_895 = 895, + + /// + /// M16A42 rifle. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("M16A42 rifle.")] + M16A42Rifle = 896, + + /// + /// M249 SAW. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("M249 SAW.")] + M249SAW = 897, + + /// + /// M60 Machine gun. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("M60 Machine gun.")] + M60MachineGun = 898, + + /// + /// M203 Grenade Launcher. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("M203 Grenade Launcher.")] + M203GrenadeLauncher = 899, + + /// + /// M136 AT4. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("M136 AT4.")] + M136AT4 = 900, + + /// + /// M47 Dragon. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("M47 Dragon.")] + M47Dragon = 901, + + /// + /// AAWS-M Javelin. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AAWS-M Javelin.")] + AAWSMJavelin = 902, + + /// + /// M18A1 Claymore Mine. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("M18A1 Claymore Mine.")] + M18A1ClaymoreMine = 903, + + /// + /// MK19 Grenade Launcher. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("MK19 Grenade Launcher.")] + MK19GrenadeLauncher = 904, + + /// + /// M2 Machine Gun. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("M2 Machine Gun.")] + M2MachineGun = 905, + + /// + /// Other attached parts (with id 906). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 906).")] + OtherAttachedParts_906 = 906, + + /// + /// Other attached parts (with id 907). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 907).")] + OtherAttachedParts_907 = 907, + + /// + /// Other attached parts (with id 908). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 908).")] + OtherAttachedParts_908 = 908, + + /// + /// Other attached parts (with id 909). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 909).")] + OtherAttachedParts_909 = 909, + + /// + /// Other attached parts (with id 910). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 910).")] + OtherAttachedParts_910 = 910, + + /// + /// Other attached parts (with id 911). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 911).")] + OtherAttachedParts_911 = 911, + + /// + /// Other attached parts (with id 912). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 912).")] + OtherAttachedParts_912 = 912, + + /// + /// Other attached parts (with id 913). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 913).")] + OtherAttachedParts_913 = 913, + + /// + /// Other attached parts (with id 914). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 914).")] + OtherAttachedParts_914 = 914, + + /// + /// Other attached parts (with id 915). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 915).")] + OtherAttachedParts_915 = 915, + + /// + /// Other attached parts (with id 916). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 916).")] + OtherAttachedParts_916 = 916, + + /// + /// Other attached parts (with id 917). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 917).")] + OtherAttachedParts_917 = 917, + + /// + /// Other attached parts (with id 918). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 918).")] + OtherAttachedParts_918 = 918, + + /// + /// Other attached parts (with id 919). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 919).")] + OtherAttachedParts_919 = 919, + + /// + /// Other attached parts (with id 920). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 920).")] + OtherAttachedParts_920 = 920, + + /// + /// Other attached parts (with id 921). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 921).")] + OtherAttachedParts_921 = 921, + + /// + /// Other attached parts (with id 922). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 922).")] + OtherAttachedParts_922 = 922, + + /// + /// Other attached parts (with id 923). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 923).")] + OtherAttachedParts_923 = 923, + + /// + /// Other attached parts (with id 924). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 924).")] + OtherAttachedParts_924 = 924, + + /// + /// Other attached parts (with id 925). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 925).")] + OtherAttachedParts_925 = 925, + + /// + /// Other attached parts (with id 926). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 926).")] + OtherAttachedParts_926 = 926, + + /// + /// Other attached parts (with id 927). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 927).")] + OtherAttachedParts_927 = 927, + + /// + /// Other attached parts (with id 928). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 928).")] + OtherAttachedParts_928 = 928, + + /// + /// Other attached parts (with id 929). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 929).")] + OtherAttachedParts_929 = 929, + + /// + /// Other attached parts (with id 930). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 930).")] + OtherAttachedParts_930 = 930, + + /// + /// Other attached parts (with id 931). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 931).")] + OtherAttachedParts_931 = 931, + + /// + /// Other attached parts (with id 932). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 932).")] + OtherAttachedParts_932 = 932, + + /// + /// Other attached parts (with id 933). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 933).")] + OtherAttachedParts_933 = 933, + + /// + /// Other attached parts (with id 934). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 934).")] + OtherAttachedParts_934 = 934, + + /// + /// Other attached parts (with id 935). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 935).")] + OtherAttachedParts_935 = 935, + + /// + /// Other attached parts (with id 936). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 936).")] + OtherAttachedParts_936 = 936, + + /// + /// Other attached parts (with id 937). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 937).")] + OtherAttachedParts_937 = 937, + + /// + /// Other attached parts (with id 938). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 938).")] + OtherAttachedParts_938 = 938, + + /// + /// Other attached parts (with id 939). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 939).")] + OtherAttachedParts_939 = 939, + + /// + /// Other attached parts (with id 940). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 940).")] + OtherAttachedParts_940 = 940, + + /// + /// Other attached parts (with id 941). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 941).")] + OtherAttachedParts_941 = 941, + + /// + /// Other attached parts (with id 942). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 942).")] + OtherAttachedParts_942 = 942, + + /// + /// Other attached parts (with id 943). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 943).")] + OtherAttachedParts_943 = 943, + + /// + /// Other attached parts (with id 944). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 944).")] + OtherAttachedParts_944 = 944, + + /// + /// Other attached parts (with id 945). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 945).")] + OtherAttachedParts_945 = 945, + + /// + /// Other attached parts (with id 946). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 946).")] + OtherAttachedParts_946 = 946, + + /// + /// Other attached parts (with id 947). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 947).")] + OtherAttachedParts_947 = 947, + + /// + /// Other attached parts (with id 948). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 948).")] + OtherAttachedParts_948 = 948, + + /// + /// Other attached parts (with id 949). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 949).")] + OtherAttachedParts_949 = 949, + + /// + /// Other attached parts (with id 950). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 950).")] + OtherAttachedParts_950 = 950, + + /// + /// Other attached parts (with id 951). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 951).")] + OtherAttachedParts_951 = 951, + + /// + /// Other attached parts (with id 952). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 952).")] + OtherAttachedParts_952 = 952, + + /// + /// Other attached parts (with id 953). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 953).")] + OtherAttachedParts_953 = 953, + + /// + /// Other attached parts (with id 954). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 954).")] + OtherAttachedParts_954 = 954, + + /// + /// Other attached parts (with id 955). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 955).")] + OtherAttachedParts_955 = 955, + + /// + /// Other attached parts (with id 956). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 956).")] + OtherAttachedParts_956 = 956, + + /// + /// Other attached parts (with id 957). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 957).")] + OtherAttachedParts_957 = 957, + + /// + /// Other attached parts (with id 958). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 958).")] + OtherAttachedParts_958 = 958, + + /// + /// Other attached parts (with id 959). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 959).")] + OtherAttachedParts_959 = 959, + + /// + /// Other attached parts (with id 960). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 960).")] + OtherAttachedParts_960 = 960, + + /// + /// Other attached parts (with id 961). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 961).")] + OtherAttachedParts_961 = 961, + + /// + /// Other attached parts (with id 962). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 962).")] + OtherAttachedParts_962 = 962, + + /// + /// Other attached parts (with id 963). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 963).")] + OtherAttachedParts_963 = 963, + + /// + /// Other attached parts (with id 964). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 964).")] + OtherAttachedParts_964 = 964, + + /// + /// Other attached parts (with id 965). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 965).")] + OtherAttachedParts_965 = 965, + + /// + /// Other attached parts (with id 966). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 966).")] + OtherAttachedParts_966 = 966, + + /// + /// Other attached parts (with id 967). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 967).")] + OtherAttachedParts_967 = 967, + + /// + /// Other attached parts (with id 968). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 968).")] + OtherAttachedParts_968 = 968, + + /// + /// Other attached parts (with id 969). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 969).")] + OtherAttachedParts_969 = 969, + + /// + /// Other attached parts (with id 970). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 970).")] + OtherAttachedParts_970 = 970, + + /// + /// Other attached parts (with id 971). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 971).")] + OtherAttachedParts_971 = 971, + + /// + /// Other attached parts (with id 972). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 972).")] + OtherAttachedParts_972 = 972, + + /// + /// Other attached parts (with id 973). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 973).")] + OtherAttachedParts_973 = 973, + + /// + /// Other attached parts (with id 974). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 974).")] + OtherAttachedParts_974 = 974, + + /// + /// Other attached parts (with id 975). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 975).")] + OtherAttachedParts_975 = 975, + + /// + /// Other attached parts (with id 976). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 976).")] + OtherAttachedParts_976 = 976, + + /// + /// Other attached parts (with id 977). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 977).")] + OtherAttachedParts_977 = 977, + + /// + /// Other attached parts (with id 978). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 978).")] + OtherAttachedParts_978 = 978, + + /// + /// Other attached parts (with id 979). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 979).")] + OtherAttachedParts_979 = 979, + + /// + /// Other attached parts (with id 980). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 980).")] + OtherAttachedParts_980 = 980, + + /// + /// Other attached parts (with id 981). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 981).")] + OtherAttachedParts_981 = 981, + + /// + /// Other attached parts (with id 982). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 982).")] + OtherAttachedParts_982 = 982, + + /// + /// Other attached parts (with id 983). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 983).")] + OtherAttachedParts_983 = 983, + + /// + /// Other attached parts (with id 984). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 984).")] + OtherAttachedParts_984 = 984, + + /// + /// Other attached parts (with id 985). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 985).")] + OtherAttachedParts_985 = 985, + + /// + /// Other attached parts (with id 986). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 986).")] + OtherAttachedParts_986 = 986, + + /// + /// Other attached parts (with id 987). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 987).")] + OtherAttachedParts_987 = 987, + + /// + /// Other attached parts (with id 988). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 988).")] + OtherAttachedParts_988 = 988, + + /// + /// Other attached parts (with id 989). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 989).")] + OtherAttachedParts_989 = 989, + + /// + /// Other attached parts (with id 990). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 990).")] + OtherAttachedParts_990 = 990, + + /// + /// Other attached parts (with id 991). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 991).")] + OtherAttachedParts_991 = 991, + + /// + /// Other attached parts (with id 992). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 992).")] + OtherAttachedParts_992 = 992, + + /// + /// Other attached parts (with id 993). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 993).")] + OtherAttachedParts_993 = 993, + + /// + /// Other attached parts (with id 994). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 994).")] + OtherAttachedParts_994 = 994, + + /// + /// Other attached parts (with id 995). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 995).")] + OtherAttachedParts_995 = 995, + + /// + /// Other attached parts (with id 996). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 996).")] + OtherAttachedParts_996 = 996, + + /// + /// Other attached parts (with id 997). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 997).")] + OtherAttachedParts_997 = 997, + + /// + /// Other attached parts (with id 998). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 998).")] + OtherAttachedParts_998 = 998, + + /// + /// Other attached parts (with id 999). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 999).")] + OtherAttachedParts_999 = 999, + + /// + /// Other attached parts (with id 1000). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 1000).")] + OtherAttachedParts_1000 = 1000, + + /// + /// Other attached parts (with id 1001). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 1001).")] + OtherAttachedParts_1001 = 1001, + + /// + /// Other attached parts (with id 1002). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 1002).")] + OtherAttachedParts_1002 = 1002, + + /// + /// Other attached parts (with id 1003). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 1003).")] + OtherAttachedParts_1003 = 1003, + + /// + /// Other attached parts (with id 1004). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 1004).")] + OtherAttachedParts_1004 = 1004, + + /// + /// Other attached parts (with id 1005). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 1005).")] + OtherAttachedParts_1005 = 1005, + + /// + /// Other attached parts (with id 1006). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 1006).")] + OtherAttachedParts_1006 = 1006, + + /// + /// Other attached parts (with id 1007). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 1007).")] + OtherAttachedParts_1007 = 1007, + + /// + /// Other attached parts (with id 1008). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 1008).")] + OtherAttachedParts_1008 = 1008, + + /// + /// Other attached parts (with id 1009). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 1009).")] + OtherAttachedParts_1009 = 1009, + + /// + /// Other attached parts (with id 1010). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 1010).")] + OtherAttachedParts_1010 = 1010, + + /// + /// Other attached parts (with id 1011). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 1011).")] + OtherAttachedParts_1011 = 1011, + + /// + /// Other attached parts (with id 1012). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 1012).")] + OtherAttachedParts_1012 = 1012, + + /// + /// Other attached parts (with id 1013). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 1013).")] + OtherAttachedParts_1013 = 1013, + + /// + /// Other attached parts (with id 1014). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 1014).")] + OtherAttachedParts_1014 = 1014, + + /// + /// Other attached parts (with id 1015). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 1015).")] + OtherAttachedParts_1015 = 1015, + + /// + /// Other attached parts (with id 1016). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 1016).")] + OtherAttachedParts_1016 = 1016, + + /// + /// Other attached parts (with id 1017). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 1017).")] + OtherAttachedParts_1017 = 1017, + + /// + /// Other attached parts (with id 1018). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 1018).")] + OtherAttachedParts_1018 = 1018, + + /// + /// Other attached parts (with id 1019). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 1019).")] + OtherAttachedParts_1019 = 1019, + + /// + /// Other attached parts (with id 1020). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 1020).")] + OtherAttachedParts_1020 = 1020, + + /// + /// Other attached parts (with id 1021). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 1021).")] + OtherAttachedParts_1021 = 1021, + + /// + /// Other attached parts (with id 1022). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 1022).")] + OtherAttachedParts_1022 = 1022, + + /// + /// Other attached parts (with id 1023). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other attached parts (with id 1023).")] + OtherAttachedParts_1023 = 1023 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState/DeadReckoningAlgorithm.cs b/Libs/CsharpDis6/Enumerations/EntityState/DeadReckoningAlgorithm.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState/DeadReckoningAlgorithm.cs rename to Libs/CsharpDis6/Enumerations/EntityState/DeadReckoningAlgorithm.cs index 13fd074..d3f7cd2 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState/DeadReckoningAlgorithm.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState/DeadReckoningAlgorithm.cs @@ -1,129 +1,129 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState -{ - /// - /// Enumeration values for DeadReckoningAlgorithm (es.dra, Dead-Reckoning Algorithm, - /// section 4.4) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum DeadReckoningAlgorithm : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Static (Entity does not move.). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Static (Entity does not move.).")] - Static = 1, - - /// - /// DRM(F, P, W). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DRM(F, P, W).")] - DRA_F_P_W = 2, - - /// - /// DRM(R, P, W). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DRM(R, P, W).")] - DRA_R_P_W = 3, - - /// - /// DRM(R, V, W). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DRM(R, V, W).")] - DRA_R_V_W = 4, - - /// - /// DRM(F, V, W). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DRM(F, V, W).")] - DRA_F_W_V = 5, - - /// - /// DRM(F, P, B). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DRM(F, P, B).")] - DRA_F_P_B = 6, - - /// - /// DRM(R, P, B). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DRM(R, P, B).")] - DRA_R_P_B = 7, - - /// - /// DRM(R, V, B). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DRM(R, V, B).")] - DRA_R_V_B = 8, - - /// - /// DRM(F, V, B). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DRM(F, V, B).")] - DRA_F_V_B = 9 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState +{ + /// + /// Enumeration values for DeadReckoningAlgorithm (es.dra, Dead-Reckoning Algorithm, + /// section 4.4) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum DeadReckoningAlgorithm : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Static (Entity does not move.). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Static (Entity does not move.).")] + Static = 1, + + /// + /// DRM(F, P, W). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DRM(F, P, W).")] + DRA_F_P_W = 2, + + /// + /// DRM(R, P, W). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DRM(R, P, W).")] + DRA_R_P_W = 3, + + /// + /// DRM(R, V, W). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DRM(R, V, W).")] + DRA_R_V_W = 4, + + /// + /// DRM(F, V, W). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DRM(F, V, W).")] + DRA_F_W_V = 5, + + /// + /// DRM(F, P, B). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DRM(F, P, B).")] + DRA_F_P_B = 6, + + /// + /// DRM(R, P, B). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DRM(R, P, B).")] + DRA_R_P_B = 7, + + /// + /// DRM(R, V, B). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DRM(R, V, B).")] + DRA_R_V_B = 8, + + /// + /// DRM(F, V, B). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DRM(F, V, B).")] + DRA_F_V_B = 9 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState/EntityCapabilities.cs b/Libs/CsharpDis6/Enumerations/EntityState/EntityCapabilities.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState/EntityCapabilities.cs rename to Libs/CsharpDis6/Enumerations/EntityState/EntityCapabilities.cs index 0765dee..4323219 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState/EntityCapabilities.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState/EntityCapabilities.cs @@ -1,80 +1,80 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState -{ - /// - /// Enumeration values for EntityCapabilities (es.capabilities, Entity Capabilities record, - /// section 4.6) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - [Flags] - public enum EntityCapabilities : uint - { - /// - /// The Entity is able to supply some type of ammunition in response to an appropriate Service Request PDU. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("The Entity is able to supply some type of ammunition in response to an appropriate Service Request PDU.")] - AmmunitionSupply = 1, - - /// - /// The Entity is able to supply some type of fuel in response to an appropriate Service Request PDU. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("The Entity is able to supply some type of fuel in response to an appropriate Service Request PDU.")] - FuelSupply = 2, - - /// - /// The Entity is able to provide recovery (e.g. towing) services in response to an appropriate Service Request PDU. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("The Entity is able to provide recovery (e.g. towing) services in response to an appropriate Service Request PDU.")] - Recovery = 4, - - /// - /// The Entity is able to supply certain repair services in response to an appropriate Service Request PDU. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("The Entity is able to supply certain repair services in response to an appropriate Service Request PDU.")] - Repair = 8, - - /// - /// The Entity is Automatic Dependent Surveillance - Broadcast (ADS-B) Capable - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("The Entity is Automatic Dependent Surveillance - Broadcast (ADS-B) Capable")] - ADSB = 16 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState +{ + /// + /// Enumeration values for EntityCapabilities (es.capabilities, Entity Capabilities record, + /// section 4.6) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + [Flags] + public enum EntityCapabilities : uint + { + /// + /// The Entity is able to supply some type of ammunition in response to an appropriate Service Request PDU. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("The Entity is able to supply some type of ammunition in response to an appropriate Service Request PDU.")] + AmmunitionSupply = 1, + + /// + /// The Entity is able to supply some type of fuel in response to an appropriate Service Request PDU. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("The Entity is able to supply some type of fuel in response to an appropriate Service Request PDU.")] + FuelSupply = 2, + + /// + /// The Entity is able to provide recovery (e.g. towing) services in response to an appropriate Service Request PDU. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("The Entity is able to provide recovery (e.g. towing) services in response to an appropriate Service Request PDU.")] + Recovery = 4, + + /// + /// The Entity is able to supply certain repair services in response to an appropriate Service Request PDU. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("The Entity is able to supply certain repair services in response to an appropriate Service Request PDU.")] + Repair = 8, + + /// + /// The Entity is Automatic Dependent Surveillance - Broadcast (ADS-B) Capable + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("The Entity is Automatic Dependent Surveillance - Broadcast (ADS-B) Capable")] + ADSB = 16 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState/EntityForceId.cs b/Libs/CsharpDis6/Enumerations/EntityState/EntityForceId.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState/EntityForceId.cs rename to Libs/CsharpDis6/Enumerations/EntityState/EntityForceId.cs index 63af72a..42e657c 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState/EntityForceId.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState/EntityForceId.cs @@ -1,339 +1,339 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState -{ - /// - /// Enumeration values for EntityForceId (es.forceid, Force ID, - /// section 4.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum EntityForceId : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Friendly. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Friendly.")] - Friendly = 1, - - /// - /// Opposing. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Opposing.")] - Opposing = 2, - - /// - /// Neutral. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Neutral.")] - Neutral = 3, - - /// - /// Friendly 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Friendly 2.")] - Friendly2 = 4, - - /// - /// Opposing 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Opposing 2.")] - Opposing2 = 5, - - /// - /// Neutral 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Neutral 2.")] - Neutral2 = 6, - - /// - /// Friendly 3. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Friendly 3.")] - Friendly3 = 7, - - /// - /// Opposing 3. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Opposing 3.")] - Opposing3 = 8, - - /// - /// Neutral 3. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Neutral 3.")] - Neutral3 = 9, - - /// - /// Friendly 4. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Friendly 4.")] - Friendly4 = 10, - - /// - /// Opposing 4. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Opposing 4.")] - Opposing4 = 11, - - /// - /// Neutral 4. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Neutral 4.")] - Neutral4 = 12, - - /// - /// Friendly 5. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Friendly 5.")] - Friendly5 = 13, - - /// - /// Opposing 5. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Opposing 5.")] - Opposing5 = 14, - - /// - /// Neutral 5. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Neutral 5.")] - Neutral5 = 15, - - /// - /// Friendly 6. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Friendly 6.")] - Friendly6 = 16, - - /// - /// Opposing 6. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Opposing 6.")] - Opposing6 = 17, - - /// - /// Neutral 6. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Neutral 6.")] - Neutral6 = 18, - - /// - /// Friendly 7. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Friendly 7.")] - Friendly7 = 19, - - /// - /// Opposing 7. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Opposing 7.")] - Opposing7 = 20, - - /// - /// Neutral 7. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Neutral 7.")] - Neutral7 = 21, - - /// - /// Friendly 8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Friendly 8.")] - Friendly8 = 22, - - /// - /// Opposing 8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Opposing 8.")] - Opposing8 = 23, - - /// - /// Neutral 8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Neutral 8.")] - Neutral8 = 24, - - /// - /// Friendly 9. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Friendly 9.")] - Friendly9 = 25, - - /// - /// Opposing 9. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Opposing 9.")] - Opposing9 = 26, - - /// - /// Neutral 9. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Neutral 9.")] - Neutral9 = 27, - - /// - /// Friendly 10. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Friendly 10.")] - Friendly10 = 28, - - /// - /// Opposing 10. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Opposing 10.")] - Opposing10 = 29, - - /// - /// Neutral 10. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Neutral 10.")] - Neutral10 = 30 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState +{ + /// + /// Enumeration values for EntityForceId (es.forceid, Force ID, + /// section 4.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum EntityForceId : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Friendly. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Friendly.")] + Friendly = 1, + + /// + /// Opposing. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Opposing.")] + Opposing = 2, + + /// + /// Neutral. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Neutral.")] + Neutral = 3, + + /// + /// Friendly 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Friendly 2.")] + Friendly2 = 4, + + /// + /// Opposing 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Opposing 2.")] + Opposing2 = 5, + + /// + /// Neutral 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Neutral 2.")] + Neutral2 = 6, + + /// + /// Friendly 3. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Friendly 3.")] + Friendly3 = 7, + + /// + /// Opposing 3. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Opposing 3.")] + Opposing3 = 8, + + /// + /// Neutral 3. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Neutral 3.")] + Neutral3 = 9, + + /// + /// Friendly 4. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Friendly 4.")] + Friendly4 = 10, + + /// + /// Opposing 4. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Opposing 4.")] + Opposing4 = 11, + + /// + /// Neutral 4. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Neutral 4.")] + Neutral4 = 12, + + /// + /// Friendly 5. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Friendly 5.")] + Friendly5 = 13, + + /// + /// Opposing 5. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Opposing 5.")] + Opposing5 = 14, + + /// + /// Neutral 5. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Neutral 5.")] + Neutral5 = 15, + + /// + /// Friendly 6. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Friendly 6.")] + Friendly6 = 16, + + /// + /// Opposing 6. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Opposing 6.")] + Opposing6 = 17, + + /// + /// Neutral 6. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Neutral 6.")] + Neutral6 = 18, + + /// + /// Friendly 7. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Friendly 7.")] + Friendly7 = 19, + + /// + /// Opposing 7. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Opposing 7.")] + Opposing7 = 20, + + /// + /// Neutral 7. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Neutral 7.")] + Neutral7 = 21, + + /// + /// Friendly 8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Friendly 8.")] + Friendly8 = 22, + + /// + /// Opposing 8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Opposing 8.")] + Opposing8 = 23, + + /// + /// Neutral 8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Neutral 8.")] + Neutral8 = 24, + + /// + /// Friendly 9. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Friendly 9.")] + Friendly9 = 25, + + /// + /// Opposing 9. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Opposing 9.")] + Opposing9 = 26, + + /// + /// Neutral 9. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Neutral 9.")] + Neutral9 = 27, + + /// + /// Friendly 10. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Friendly 10.")] + Friendly10 = 28, + + /// + /// Opposing 10. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Opposing 10.")] + Opposing10 = 29, + + /// + /// Neutral 10. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Neutral 10.")] + Neutral10 = 30 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState/ParameterTypeDesignator.cs b/Libs/CsharpDis6/Enumerations/EntityState/ParameterTypeDesignator.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/EntityState/ParameterTypeDesignator.cs rename to Libs/CsharpDis6/Enumerations/EntityState/ParameterTypeDesignator.cs index 9ee6d81..1704c6c 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/EntityState/ParameterTypeDesignator.cs +++ b/Libs/CsharpDis6/Enumerations/EntityState/ParameterTypeDesignator.cs @@ -1,49 +1,49 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.EntityState -{ - /// - /// Enumeration values for ParameterTypeDesignator (es.vp.type, Parameter Type Designator, - /// section 4.7.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum ParameterTypeDesignator : byte - { - /// - /// Articulated Part. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Articulated Part.")] - ArticulatedPart = 0, - - /// - /// Attached Part. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Attached Part.")] - AttachedPart = 1 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.EntityState +{ + /// + /// Enumeration values for ParameterTypeDesignator (es.vp.type, Parameter Type Designator, + /// section 4.7.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum ParameterTypeDesignator : byte + { + /// + /// Articulated Part. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Articulated Part.")] + ArticulatedPart = 0, + + /// + /// Attached Part. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Attached Part.")] + AttachedPart = 1 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Environment.Gridded/ConstantGrid.cs b/Libs/CsharpDis6/Enumerations/Environment.Gridded/ConstantGrid.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Environment.Gridded/ConstantGrid.cs rename to Libs/CsharpDis6/Enumerations/Environment.Gridded/ConstantGrid.cs index 0ff4e9f..0434c58 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Environment.Gridded/ConstantGrid.cs +++ b/Libs/CsharpDis6/Enumerations/Environment.Gridded/ConstantGrid.cs @@ -1,49 +1,49 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Environment.Gridded -{ - /// - /// Enumeration values for ConstantGrid (env.gridded.constantgrid, Constant Grid, - /// section 12.2.3) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum ConstantGrid : byte - { - /// - /// Constant grid. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Constant grid.")] - ConstantGrid = 0, - - /// - /// Updated grid. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Updated grid.")] - UpdatedGrid = 1 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Environment.Gridded +{ + /// + /// Enumeration values for ConstantGrid (env.gridded.constantgrid, Constant Grid, + /// section 12.2.3) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum ConstantGrid : byte + { + /// + /// Constant grid. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Constant grid.")] + ConstantGrid = 0, + + /// + /// Updated grid. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Updated grid.")] + UpdatedGrid = 1 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Environment.Gridded/CoordinateSystem.cs b/Libs/CsharpDis6/Enumerations/Environment.Gridded/CoordinateSystem.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Environment.Gridded/CoordinateSystem.cs rename to Libs/CsharpDis6/Enumerations/Environment.Gridded/CoordinateSystem.cs index f87cfff..6f17daa 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Environment.Gridded/CoordinateSystem.cs +++ b/Libs/CsharpDis6/Enumerations/Environment.Gridded/CoordinateSystem.cs @@ -1,69 +1,69 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Environment.Gridded -{ - /// - /// Enumeration values for CoordinateSystem (env.gridded.coordinatesystem, Coordinate System, - /// section 12.2.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum CoordinateSystem : ushort - { - /// - /// Right handed Cartesian (local topographic projection: east, north, up). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Right handed Cartesian (local topographic projection: east, north, up).")] - RightHandedCartesianLocalTopographicProjectionEastNorthUp = 0, - - /// - /// Left handed Cartesian (local topographic projection: east, north, down). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Left handed Cartesian (local topographic projection: east, north, down).")] - LeftHandedCartesianLocalTopographicProjectionEastNorthDown = 1, - - /// - /// Latitude, Longitude, Height. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Latitude, Longitude, Height.")] - LatitudeLongitudeHeight = 2, - - /// - /// Latitude, Longitude, Depth. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Latitude, Longitude, Depth.")] - LatitudeLongitudeDepth = 3 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Environment.Gridded +{ + /// + /// Enumeration values for CoordinateSystem (env.gridded.coordinatesystem, Coordinate System, + /// section 12.2.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum CoordinateSystem : ushort + { + /// + /// Right handed Cartesian (local topographic projection: east, north, up). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Right handed Cartesian (local topographic projection: east, north, up).")] + RightHandedCartesianLocalTopographicProjectionEastNorthUp = 0, + + /// + /// Left handed Cartesian (local topographic projection: east, north, down). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Left handed Cartesian (local topographic projection: east, north, down).")] + LeftHandedCartesianLocalTopographicProjectionEastNorthDown = 1, + + /// + /// Latitude, Longitude, Height. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Latitude, Longitude, Height.")] + LatitudeLongitudeHeight = 2, + + /// + /// Latitude, Longitude, Depth. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Latitude, Longitude, Depth.")] + LatitudeLongitudeDepth = 3 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Environment.Gridded/DataRepresentationType.cs b/Libs/CsharpDis6/Enumerations/Environment.Gridded/DataRepresentationType.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Environment.Gridded/DataRepresentationType.cs rename to Libs/CsharpDis6/Enumerations/Environment.Gridded/DataRepresentationType.cs index 1398fee..3abf61e 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Environment.Gridded/DataRepresentationType.cs +++ b/Libs/CsharpDis6/Enumerations/Environment.Gridded/DataRepresentationType.cs @@ -1,59 +1,59 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Environment.Gridded -{ - /// - /// Enumeration values for DataRepresentationType (env.gridded.datarepresentation, Data Representation, - /// section 12.2.5) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum DataRepresentationType : ushort - { - /// - /// Type 0. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Type 0.")] - Type0 = 0, - - /// - /// Type 1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Type 1.")] - Type1 = 1, - - /// - /// Type 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Type 2.")] - Type2 = 2 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Environment.Gridded +{ + /// + /// Enumeration values for DataRepresentationType (env.gridded.datarepresentation, Data Representation, + /// section 12.2.5) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum DataRepresentationType : ushort + { + /// + /// Type 0. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Type 0.")] + Type0 = 0, + + /// + /// Type 1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Type 1.")] + Type1 = 1, + + /// + /// Type 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Type 2.")] + Type2 = 2 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/AirBurstAndGroundBurst.cs b/Libs/CsharpDis6/Enumerations/Environment.ObjectState/AirBurstAndGroundBurst.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/AirBurstAndGroundBurst.cs rename to Libs/CsharpDis6/Enumerations/Environment.ObjectState/AirBurstAndGroundBurst.cs index ee9908f..8ba2e4a 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/AirBurstAndGroundBurst.cs +++ b/Libs/CsharpDis6/Enumerations/Environment.ObjectState/AirBurstAndGroundBurst.cs @@ -1,329 +1,329 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Environment.ObjectState -{ - /// - /// Enumeration values for AirBurstAndGroundBurst (env.obj.appear.point.burst, Air burst, Ground burst, - /// section 12.1.2.2.3) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public struct AirBurstAndGroundBurst - { - /// - /// Describes the chemical content of the smoke - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the chemical content of the smoke")] - public enum ChemicalValue : uint - { - /// - /// Other - /// - Other = 0, - - /// - /// Hydrochloric - /// - Hydrochloric = 1, - - /// - /// White phosphorous - /// - WhitePhosphorous = 2, - - /// - /// Red phosphorous - /// - RedPhosphorous = 3 - } - - private byte opacity; - private byte size; - private byte height; - private byte numOfBursts; - private AirBurstAndGroundBurst.ChemicalValue chemical; - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(AirBurstAndGroundBurst left, AirBurstAndGroundBurst right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator ==(AirBurstAndGroundBurst left, AirBurstAndGroundBurst right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - // If parameters are null return false (cast to object to prevent recursive loop!) - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The scheme instance. - /// The result of the conversion. - public static explicit operator uint(AirBurstAndGroundBurst obj) - { - return obj.ToUInt32(); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The uint value. - /// The result of the conversion. - public static explicit operator AirBurstAndGroundBurst(uint value) - { - return AirBurstAndGroundBurst.FromUInt32(value); - } - - /// - /// Creates the instance from the byte array. - /// - /// The array which holds the values for the . - /// The starting position within value. - /// The instance, represented by a byte array. - /// if the array is null. - /// if the index is lower than 0 or greater or equal than number of elements in array. - public static AirBurstAndGroundBurst FromByteArray(byte[] array, int index) - { - if (array == null) - { - throw new ArgumentNullException("array"); - } - - if (index < 0 || - index > array.Length - 1 || - index + 4 > array.Length - 1) - { - throw new IndexOutOfRangeException(); - } - - return FromUInt32(BitConverter.ToUInt32(array, index)); - } - - /// - /// Creates the instance from the uint value. - /// - /// The uint value which represents the instance. - /// The instance, represented by the uint value. - public static AirBurstAndGroundBurst FromUInt32(uint value) - { - AirBurstAndGroundBurst ps = new AirBurstAndGroundBurst(); - - uint mask0 = 0xff0000; - byte shift0 = 16; - uint newValue0 = (value & mask0) >> shift0; - ps.Opacity = (byte)newValue0; - - uint mask1 = 0xff000000; - byte shift1 = 24; - uint newValue1 = (value & mask1) >> shift1; - ps.Size = (byte)newValue1; - - uint mask2 = 0x00ff; - byte shift2 = 32; - uint newValue2 = (value & mask2) >> shift2; - ps.Height = (byte)newValue2; - - uint mask3 = 0x3f00; - byte shift3 = 40; - uint newValue3 = (value & mask3) >> shift3; - ps.NumOfBursts = (byte)newValue3; - - uint mask4 = 0xc000; - byte shift4 = 46; - uint newValue4 = (value & mask4) >> shift4; - ps.Chemical = (AirBurstAndGroundBurst.ChemicalValue)newValue4; - - return ps; - } - - /// - /// Gets or sets the opacity. - /// - /// The opacity. - public byte Opacity - { - get { return this.opacity; } - set { this.opacity = value; } - } - - /// - /// Gets or sets the size. - /// - /// The size. - public byte Size - { - get { return this.size; } - set { this.size = value; } - } - - /// - /// Gets or sets the height. - /// - /// The height. - public byte Height - { - get { return this.height; } - set { this.height = value; } - } - - /// - /// Gets or sets the numofbursts. - /// - /// The numofbursts. - public byte NumOfBursts - { - get { return this.numOfBursts; } - set { this.numOfBursts = value; } - } - - /// - /// Gets or sets the chemical. - /// - /// The chemical. - public AirBurstAndGroundBurst.ChemicalValue Chemical - { - get { return this.chemical; } - set { this.chemical = value; } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - if (obj == null) - { - return false; - } - - if (!(obj is AirBurstAndGroundBurst)) - { - return false; - } - - return this.Equals((AirBurstAndGroundBurst)obj); - } - - /// - /// Determines whether the specified instance is equal to this instance. - /// - /// The instance to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public bool Equals(AirBurstAndGroundBurst other) - { - // If parameter is null return false (cast to object to prevent recursive loop!) - if ((object)other == null) - { - return false; - } - - return - this.Opacity == other.Opacity && - this.Size == other.Size && - this.Height == other.Height && - this.NumOfBursts == other.NumOfBursts && - this.Chemical == other.Chemical; - } - - /// - /// Converts the instance of to the byte array. - /// - /// The byte array representing the current instance. - public byte[] ToByteArray() - { - return BitConverter.GetBytes(this.ToUInt32()); - } - - /// - /// Converts the instance of to the uint value. - /// - /// The uint value representing the current instance. - public uint ToUInt32() - { - uint val = 0; - - val |= (uint)((uint)this.Opacity << 16); - val |= (uint)((uint)this.Size << 24); - val |= (uint)((uint)this.Height << 32); - val |= (uint)((uint)this.NumOfBursts << 40); - val |= (uint)((uint)this.Chemical << 46); - - return val; - } - - /// - /// Returns a hash code for this instance. - /// - /// - /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - /// - public override int GetHashCode() - { - int hash = 17; - - // Overflow is fine, just wrap - unchecked - { - hash = (hash * 29) + this.Opacity.GetHashCode(); - hash = (hash * 29) + this.Size.GetHashCode(); - hash = (hash * 29) + this.Height.GetHashCode(); - hash = (hash * 29) + this.NumOfBursts.GetHashCode(); - hash = (hash * 29) + this.Chemical.GetHashCode(); - } - - return hash; - } - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Environment.ObjectState +{ + /// + /// Enumeration values for AirBurstAndGroundBurst (env.obj.appear.point.burst, Air burst, Ground burst, + /// section 12.1.2.2.3) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public struct AirBurstAndGroundBurst + { + /// + /// Describes the chemical content of the smoke + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the chemical content of the smoke")] + public enum ChemicalValue : uint + { + /// + /// Other + /// + Other = 0, + + /// + /// Hydrochloric + /// + Hydrochloric = 1, + + /// + /// White phosphorous + /// + WhitePhosphorous = 2, + + /// + /// Red phosphorous + /// + RedPhosphorous = 3 + } + + private byte opacity; + private byte size; + private byte height; + private byte numOfBursts; + private AirBurstAndGroundBurst.ChemicalValue chemical; + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(AirBurstAndGroundBurst left, AirBurstAndGroundBurst right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator ==(AirBurstAndGroundBurst left, AirBurstAndGroundBurst right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + // If parameters are null return false (cast to object to prevent recursive loop!) + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The scheme instance. + /// The result of the conversion. + public static explicit operator uint(AirBurstAndGroundBurst obj) + { + return obj.ToUInt32(); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The uint value. + /// The result of the conversion. + public static explicit operator AirBurstAndGroundBurst(uint value) + { + return AirBurstAndGroundBurst.FromUInt32(value); + } + + /// + /// Creates the instance from the byte array. + /// + /// The array which holds the values for the . + /// The starting position within value. + /// The instance, represented by a byte array. + /// if the array is null. + /// if the index is lower than 0 or greater or equal than number of elements in array. + public static AirBurstAndGroundBurst FromByteArray(byte[] array, int index) + { + if (array == null) + { + throw new ArgumentNullException("array"); + } + + if (index < 0 || + index > array.Length - 1 || + index + 4 > array.Length - 1) + { + throw new IndexOutOfRangeException(); + } + + return FromUInt32(BitConverter.ToUInt32(array, index)); + } + + /// + /// Creates the instance from the uint value. + /// + /// The uint value which represents the instance. + /// The instance, represented by the uint value. + public static AirBurstAndGroundBurst FromUInt32(uint value) + { + AirBurstAndGroundBurst ps = new AirBurstAndGroundBurst(); + + uint mask0 = 0xff0000; + byte shift0 = 16; + uint newValue0 = (value & mask0) >> shift0; + ps.Opacity = (byte)newValue0; + + uint mask1 = 0xff000000; + byte shift1 = 24; + uint newValue1 = (value & mask1) >> shift1; + ps.Size = (byte)newValue1; + + uint mask2 = 0x00ff; + byte shift2 = 32; + uint newValue2 = (value & mask2) >> shift2; + ps.Height = (byte)newValue2; + + uint mask3 = 0x3f00; + byte shift3 = 40; + uint newValue3 = (value & mask3) >> shift3; + ps.NumOfBursts = (byte)newValue3; + + uint mask4 = 0xc000; + byte shift4 = 46; + uint newValue4 = (value & mask4) >> shift4; + ps.Chemical = (AirBurstAndGroundBurst.ChemicalValue)newValue4; + + return ps; + } + + /// + /// Gets or sets the opacity. + /// + /// The opacity. + public byte Opacity + { + get { return this.opacity; } + set { this.opacity = value; } + } + + /// + /// Gets or sets the size. + /// + /// The size. + public byte Size + { + get { return this.size; } + set { this.size = value; } + } + + /// + /// Gets or sets the height. + /// + /// The height. + public byte Height + { + get { return this.height; } + set { this.height = value; } + } + + /// + /// Gets or sets the numofbursts. + /// + /// The numofbursts. + public byte NumOfBursts + { + get { return this.numOfBursts; } + set { this.numOfBursts = value; } + } + + /// + /// Gets or sets the chemical. + /// + /// The chemical. + public AirBurstAndGroundBurst.ChemicalValue Chemical + { + get { return this.chemical; } + set { this.chemical = value; } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (!(obj is AirBurstAndGroundBurst)) + { + return false; + } + + return this.Equals((AirBurstAndGroundBurst)obj); + } + + /// + /// Determines whether the specified instance is equal to this instance. + /// + /// The instance to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public bool Equals(AirBurstAndGroundBurst other) + { + // If parameter is null return false (cast to object to prevent recursive loop!) + if ((object)other == null) + { + return false; + } + + return + this.Opacity == other.Opacity && + this.Size == other.Size && + this.Height == other.Height && + this.NumOfBursts == other.NumOfBursts && + this.Chemical == other.Chemical; + } + + /// + /// Converts the instance of to the byte array. + /// + /// The byte array representing the current instance. + public byte[] ToByteArray() + { + return BitConverter.GetBytes(this.ToUInt32()); + } + + /// + /// Converts the instance of to the uint value. + /// + /// The uint value representing the current instance. + public uint ToUInt32() + { + uint val = 0; + + val |= (uint)((uint)this.Opacity << 16); + val |= (uint)((uint)this.Size << 24); + val |= (uint)((uint)this.Height << 32); + val |= (uint)((uint)this.NumOfBursts << 40); + val |= (uint)((uint)this.Chemical << 46); + + return val; + } + + /// + /// Returns a hash code for this instance. + /// + /// + /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + /// + public override int GetHashCode() + { + int hash = 17; + + // Overflow is fine, just wrap + unchecked + { + hash = (hash * 29) + this.Opacity.GetHashCode(); + hash = (hash * 29) + this.Size.GetHashCode(); + hash = (hash * 29) + this.Height.GetHashCode(); + hash = (hash * 29) + this.NumOfBursts.GetHashCode(); + hash = (hash * 29) + this.Chemical.GetHashCode(); + } + + return hash; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/ArealObjectStatePDUModificationField.cs b/Libs/CsharpDis6/Enumerations/Environment.ObjectState/ArealObjectStatePDUModificationField.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/ArealObjectStatePDUModificationField.cs rename to Libs/CsharpDis6/Enumerations/Environment.ObjectState/ArealObjectStatePDUModificationField.cs index 2e9451f..46b4877 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/ArealObjectStatePDUModificationField.cs +++ b/Libs/CsharpDis6/Enumerations/Environment.ObjectState/ArealObjectStatePDUModificationField.cs @@ -1,40 +1,40 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Environment.ObjectState -{ - /// - /// Enumeration values for ArealObjectStatePDUModificationField (env.obj.mod.areal, Areal Object State PDU Modification Field, - /// section 12.1.3.3) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - [Flags] - public enum ArealObjectStatePDUModificationField : byte - { - /// - /// Set bit means 'Locations have been modified', reset bit means 'No locations have been modified'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Locations have been modified', reset bit means 'No locations have been modified'.")] - Location = 1 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Environment.ObjectState +{ + /// + /// Enumeration values for ArealObjectStatePDUModificationField (env.obj.mod.areal, Areal Object State PDU Modification Field, + /// section 12.1.3.3) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + [Flags] + public enum ArealObjectStatePDUModificationField : byte + { + /// + /// Set bit means 'Locations have been modified', reset bit means 'No locations have been modified'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Locations have been modified', reset bit means 'No locations have been modified'.")] + Location = 1 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/Crater.cs b/Libs/CsharpDis6/Enumerations/Environment.ObjectState/Crater.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/Crater.cs rename to Libs/CsharpDis6/Enumerations/Environment.ObjectState/Crater.cs index b807923..6b303f9 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/Crater.cs +++ b/Libs/CsharpDis6/Enumerations/Environment.ObjectState/Crater.cs @@ -1,222 +1,222 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Environment.ObjectState -{ - /// - /// Enumeration values for Crater (env.obj.appear.point.crater, Crater, - /// section 12.1.2.2.4) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public struct Crater - { - private byte size; - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(Crater left, Crater right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator ==(Crater left, Crater right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - // If parameters are null return false (cast to object to prevent recursive loop!) - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The scheme instance. - /// The result of the conversion. - public static explicit operator uint(Crater obj) - { - return obj.ToUInt32(); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The uint value. - /// The result of the conversion. - public static explicit operator Crater(uint value) - { - return Crater.FromUInt32(value); - } - - /// - /// Creates the instance from the byte array. - /// - /// The array which holds the values for the . - /// The starting position within value. - /// The instance, represented by a byte array. - /// if the array is null. - /// if the index is lower than 0 or greater or equal than number of elements in array. - public static Crater FromByteArray(byte[] array, int index) - { - if (array == null) - { - throw new ArgumentNullException("array"); - } - - if (index < 0 || - index > array.Length - 1 || - index + 4 > array.Length - 1) - { - throw new IndexOutOfRangeException(); - } - - return FromUInt32(BitConverter.ToUInt32(array, index)); - } - - /// - /// Creates the instance from the uint value. - /// - /// The uint value which represents the instance. - /// The instance, represented by the uint value. - public static Crater FromUInt32(uint value) - { - Crater ps = new Crater(); - - uint mask0 = 0xff0000; - byte shift0 = 16; - uint newValue0 = (value & mask0) >> shift0; - ps.Size = (byte)newValue0; - - return ps; - } - - /// - /// Gets or sets the size. - /// - /// The size. - public byte Size - { - get { return this.size; } - set { this.size = value; } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - if (obj == null) - { - return false; - } - - if (!(obj is Crater)) - { - return false; - } - - return this.Equals((Crater)obj); - } - - /// - /// Determines whether the specified instance is equal to this instance. - /// - /// The instance to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public bool Equals(Crater other) - { - // If parameter is null return false (cast to object to prevent recursive loop!) - if ((object)other == null) - { - return false; - } - - return - this.Size == other.Size; - } - - /// - /// Converts the instance of to the byte array. - /// - /// The byte array representing the current instance. - public byte[] ToByteArray() - { - return BitConverter.GetBytes(this.ToUInt32()); - } - - /// - /// Converts the instance of to the uint value. - /// - /// The uint value representing the current instance. - public uint ToUInt32() - { - uint val = 0; - - val |= (uint)((uint)this.Size << 16); - - return val; - } - - /// - /// Returns a hash code for this instance. - /// - /// - /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - /// - public override int GetHashCode() - { - int hash = 17; - - // Overflow is fine, just wrap - unchecked - { - hash = (hash * 29) + this.Size.GetHashCode(); - } - - return hash; - } - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Environment.ObjectState +{ + /// + /// Enumeration values for Crater (env.obj.appear.point.crater, Crater, + /// section 12.1.2.2.4) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public struct Crater + { + private byte size; + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(Crater left, Crater right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator ==(Crater left, Crater right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + // If parameters are null return false (cast to object to prevent recursive loop!) + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The scheme instance. + /// The result of the conversion. + public static explicit operator uint(Crater obj) + { + return obj.ToUInt32(); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The uint value. + /// The result of the conversion. + public static explicit operator Crater(uint value) + { + return Crater.FromUInt32(value); + } + + /// + /// Creates the instance from the byte array. + /// + /// The array which holds the values for the . + /// The starting position within value. + /// The instance, represented by a byte array. + /// if the array is null. + /// if the index is lower than 0 or greater or equal than number of elements in array. + public static Crater FromByteArray(byte[] array, int index) + { + if (array == null) + { + throw new ArgumentNullException("array"); + } + + if (index < 0 || + index > array.Length - 1 || + index + 4 > array.Length - 1) + { + throw new IndexOutOfRangeException(); + } + + return FromUInt32(BitConverter.ToUInt32(array, index)); + } + + /// + /// Creates the instance from the uint value. + /// + /// The uint value which represents the instance. + /// The instance, represented by the uint value. + public static Crater FromUInt32(uint value) + { + Crater ps = new Crater(); + + uint mask0 = 0xff0000; + byte shift0 = 16; + uint newValue0 = (value & mask0) >> shift0; + ps.Size = (byte)newValue0; + + return ps; + } + + /// + /// Gets or sets the size. + /// + /// The size. + public byte Size + { + get { return this.size; } + set { this.size = value; } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (!(obj is Crater)) + { + return false; + } + + return this.Equals((Crater)obj); + } + + /// + /// Determines whether the specified instance is equal to this instance. + /// + /// The instance to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public bool Equals(Crater other) + { + // If parameter is null return false (cast to object to prevent recursive loop!) + if ((object)other == null) + { + return false; + } + + return + this.Size == other.Size; + } + + /// + /// Converts the instance of to the byte array. + /// + /// The byte array representing the current instance. + public byte[] ToByteArray() + { + return BitConverter.GetBytes(this.ToUInt32()); + } + + /// + /// Converts the instance of to the uint value. + /// + /// The uint value representing the current instance. + public uint ToUInt32() + { + uint val = 0; + + val |= (uint)((uint)this.Size << 16); + + return val; + } + + /// + /// Returns a hash code for this instance. + /// + /// + /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + /// + public override int GetHashCode() + { + int hash = 17; + + // Overflow is fine, just wrap + unchecked + { + hash = (hash * 29) + this.Size.GetHashCode(); + } + + return hash; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/ExhaustSmoke.cs b/Libs/CsharpDis6/Enumerations/Environment.ObjectState/ExhaustSmoke.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/ExhaustSmoke.cs rename to Libs/CsharpDis6/Enumerations/Environment.ObjectState/ExhaustSmoke.cs index 7b4a193..d45c32a 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/ExhaustSmoke.cs +++ b/Libs/CsharpDis6/Enumerations/Environment.ObjectState/ExhaustSmoke.cs @@ -1,312 +1,312 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Environment.ObjectState -{ - /// - /// Enumeration values for ExhaustSmoke (env.obj.appear.linear.exhaust, Exhaust smoke, - /// section 12.1.2.3.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public struct ExhaustSmoke - { - /// - /// Describes whether the smoke is attached to the vehicle - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes whether the smoke is attached to the vehicle")] - public enum AttachedValue : uint - { - /// - /// Not attached - /// - NotAttached = 0, - - /// - /// Attached - /// - Attached = 1 - } - - /// - /// Describes the chemical content of the smoke - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the chemical content of the smoke")] - public enum ChemicalValue : uint - { - /// - /// Other - /// - Other = 0, - - /// - /// Hydrochloric - /// - Hydrochloric = 1, - - /// - /// White phosphorous - /// - WhitePhosphorous = 2, - - /// - /// Red phosphorous - /// - RedPhosphorous = 3 - } - - private byte opacity; - private ExhaustSmoke.AttachedValue attached; - private ExhaustSmoke.ChemicalValue chemical; - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(ExhaustSmoke left, ExhaustSmoke right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator ==(ExhaustSmoke left, ExhaustSmoke right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - // If parameters are null return false (cast to object to prevent recursive loop!) - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The scheme instance. - /// The result of the conversion. - public static explicit operator uint(ExhaustSmoke obj) - { - return obj.ToUInt32(); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The uint value. - /// The result of the conversion. - public static explicit operator ExhaustSmoke(uint value) - { - return ExhaustSmoke.FromUInt32(value); - } - - /// - /// Creates the instance from the byte array. - /// - /// The array which holds the values for the . - /// The starting position within value. - /// The instance, represented by a byte array. - /// if the array is null. - /// if the index is lower than 0 or greater or equal than number of elements in array. - public static ExhaustSmoke FromByteArray(byte[] array, int index) - { - if (array == null) - { - throw new ArgumentNullException("array"); - } - - if (index < 0 || - index > array.Length - 1 || - index + 4 > array.Length - 1) - { - throw new IndexOutOfRangeException(); - } - - return FromUInt32(BitConverter.ToUInt32(array, index)); - } - - /// - /// Creates the instance from the uint value. - /// - /// The uint value which represents the instance. - /// The instance, represented by the uint value. - public static ExhaustSmoke FromUInt32(uint value) - { - ExhaustSmoke ps = new ExhaustSmoke(); - - uint mask0 = 0xff0000; - byte shift0 = 16; - uint newValue0 = (value & mask0) >> shift0; - ps.Opacity = (byte)newValue0; - - uint mask1 = 0x1000000; - byte shift1 = 24; - uint newValue1 = (value & mask1) >> shift1; - ps.Attached = (ExhaustSmoke.AttachedValue)newValue1; - - uint mask2 = 0x6000000; - byte shift2 = 25; - uint newValue2 = (value & mask2) >> shift2; - ps.Chemical = (ExhaustSmoke.ChemicalValue)newValue2; - - return ps; - } - - /// - /// Gets or sets the opacity. - /// - /// The opacity. - public byte Opacity - { - get { return this.opacity; } - set { this.opacity = value; } - } - - /// - /// Gets or sets the attached. - /// - /// The attached. - public ExhaustSmoke.AttachedValue Attached - { - get { return this.attached; } - set { this.attached = value; } - } - - /// - /// Gets or sets the chemical. - /// - /// The chemical. - public ExhaustSmoke.ChemicalValue Chemical - { - get { return this.chemical; } - set { this.chemical = value; } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - if (obj == null) - { - return false; - } - - if (!(obj is ExhaustSmoke)) - { - return false; - } - - return this.Equals((ExhaustSmoke)obj); - } - - /// - /// Determines whether the specified instance is equal to this instance. - /// - /// The instance to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public bool Equals(ExhaustSmoke other) - { - // If parameter is null return false (cast to object to prevent recursive loop!) - if ((object)other == null) - { - return false; - } - - return - this.Opacity == other.Opacity && - this.Attached == other.Attached && - this.Chemical == other.Chemical; - } - - /// - /// Converts the instance of to the byte array. - /// - /// The byte array representing the current instance. - public byte[] ToByteArray() - { - return BitConverter.GetBytes(this.ToUInt32()); - } - - /// - /// Converts the instance of to the uint value. - /// - /// The uint value representing the current instance. - public uint ToUInt32() - { - uint val = 0; - - val |= (uint)((uint)this.Opacity << 16); - val |= (uint)((uint)this.Attached << 24); - val |= (uint)((uint)this.Chemical << 25); - - return val; - } - - /// - /// Returns a hash code for this instance. - /// - /// - /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - /// - public override int GetHashCode() - { - int hash = 17; - - // Overflow is fine, just wrap - unchecked - { - hash = (hash * 29) + this.Opacity.GetHashCode(); - hash = (hash * 29) + this.Attached.GetHashCode(); - hash = (hash * 29) + this.Chemical.GetHashCode(); - } - - return hash; - } - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Environment.ObjectState +{ + /// + /// Enumeration values for ExhaustSmoke (env.obj.appear.linear.exhaust, Exhaust smoke, + /// section 12.1.2.3.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public struct ExhaustSmoke + { + /// + /// Describes whether the smoke is attached to the vehicle + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes whether the smoke is attached to the vehicle")] + public enum AttachedValue : uint + { + /// + /// Not attached + /// + NotAttached = 0, + + /// + /// Attached + /// + Attached = 1 + } + + /// + /// Describes the chemical content of the smoke + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the chemical content of the smoke")] + public enum ChemicalValue : uint + { + /// + /// Other + /// + Other = 0, + + /// + /// Hydrochloric + /// + Hydrochloric = 1, + + /// + /// White phosphorous + /// + WhitePhosphorous = 2, + + /// + /// Red phosphorous + /// + RedPhosphorous = 3 + } + + private byte opacity; + private ExhaustSmoke.AttachedValue attached; + private ExhaustSmoke.ChemicalValue chemical; + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ExhaustSmoke left, ExhaustSmoke right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator ==(ExhaustSmoke left, ExhaustSmoke right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + // If parameters are null return false (cast to object to prevent recursive loop!) + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The scheme instance. + /// The result of the conversion. + public static explicit operator uint(ExhaustSmoke obj) + { + return obj.ToUInt32(); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The uint value. + /// The result of the conversion. + public static explicit operator ExhaustSmoke(uint value) + { + return ExhaustSmoke.FromUInt32(value); + } + + /// + /// Creates the instance from the byte array. + /// + /// The array which holds the values for the . + /// The starting position within value. + /// The instance, represented by a byte array. + /// if the array is null. + /// if the index is lower than 0 or greater or equal than number of elements in array. + public static ExhaustSmoke FromByteArray(byte[] array, int index) + { + if (array == null) + { + throw new ArgumentNullException("array"); + } + + if (index < 0 || + index > array.Length - 1 || + index + 4 > array.Length - 1) + { + throw new IndexOutOfRangeException(); + } + + return FromUInt32(BitConverter.ToUInt32(array, index)); + } + + /// + /// Creates the instance from the uint value. + /// + /// The uint value which represents the instance. + /// The instance, represented by the uint value. + public static ExhaustSmoke FromUInt32(uint value) + { + ExhaustSmoke ps = new ExhaustSmoke(); + + uint mask0 = 0xff0000; + byte shift0 = 16; + uint newValue0 = (value & mask0) >> shift0; + ps.Opacity = (byte)newValue0; + + uint mask1 = 0x1000000; + byte shift1 = 24; + uint newValue1 = (value & mask1) >> shift1; + ps.Attached = (ExhaustSmoke.AttachedValue)newValue1; + + uint mask2 = 0x6000000; + byte shift2 = 25; + uint newValue2 = (value & mask2) >> shift2; + ps.Chemical = (ExhaustSmoke.ChemicalValue)newValue2; + + return ps; + } + + /// + /// Gets or sets the opacity. + /// + /// The opacity. + public byte Opacity + { + get { return this.opacity; } + set { this.opacity = value; } + } + + /// + /// Gets or sets the attached. + /// + /// The attached. + public ExhaustSmoke.AttachedValue Attached + { + get { return this.attached; } + set { this.attached = value; } + } + + /// + /// Gets or sets the chemical. + /// + /// The chemical. + public ExhaustSmoke.ChemicalValue Chemical + { + get { return this.chemical; } + set { this.chemical = value; } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (!(obj is ExhaustSmoke)) + { + return false; + } + + return this.Equals((ExhaustSmoke)obj); + } + + /// + /// Determines whether the specified instance is equal to this instance. + /// + /// The instance to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public bool Equals(ExhaustSmoke other) + { + // If parameter is null return false (cast to object to prevent recursive loop!) + if ((object)other == null) + { + return false; + } + + return + this.Opacity == other.Opacity && + this.Attached == other.Attached && + this.Chemical == other.Chemical; + } + + /// + /// Converts the instance of to the byte array. + /// + /// The byte array representing the current instance. + public byte[] ToByteArray() + { + return BitConverter.GetBytes(this.ToUInt32()); + } + + /// + /// Converts the instance of to the uint value. + /// + /// The uint value representing the current instance. + public uint ToUInt32() + { + uint val = 0; + + val |= (uint)((uint)this.Opacity << 16); + val |= (uint)((uint)this.Attached << 24); + val |= (uint)((uint)this.Chemical << 25); + + return val; + } + + /// + /// Returns a hash code for this instance. + /// + /// + /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + /// + public override int GetHashCode() + { + int hash = 17; + + // Overflow is fine, just wrap + unchecked + { + hash = (hash * 29) + this.Opacity.GetHashCode(); + hash = (hash * 29) + this.Attached.GetHashCode(); + hash = (hash * 29) + this.Chemical.GetHashCode(); + } + + return hash; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/GeneralAppearance.cs b/Libs/CsharpDis6/Enumerations/Environment.ObjectState/GeneralAppearance.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/GeneralAppearance.cs rename to Libs/CsharpDis6/Enumerations/Environment.ObjectState/GeneralAppearance.cs index 51d1569..a4395a3 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/GeneralAppearance.cs +++ b/Libs/CsharpDis6/Enumerations/Environment.ObjectState/GeneralAppearance.cs @@ -1,432 +1,432 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Environment.ObjectState -{ - /// - /// Enumeration values for GeneralAppearance (env.obj.appear.general, General, - /// section 12.1.2.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public struct GeneralAppearance - { - /// - /// Describes the damaged appearance of the object - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the damaged appearance of the object")] - public enum DamageValue : uint - { - /// - /// No damage - /// - NoDamage = 0, - - /// - /// Damaged - /// - Damaged = 1, - - /// - /// Destroyed - /// - Destroyed = 2, - - /// - /// null - /// - Unknown = 3 - } - - /// - /// Describes whether the object was predistributed - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes whether the object was predistributed")] - public enum PredistributedValue : uint - { - /// - /// Object created during the exercise - /// - ObjectCreatedDuringTheExercise = 0, - - /// - /// Object predistributed prior to exercise start - /// - ObjectPredistributedPriorToExerciseStart = 1 - } - - /// - /// Describes the state of the object - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the state of the object")] - public enum StateValue : uint - { - /// - /// Active - /// - Active = 0, - - /// - /// Deactivated - /// - Deactivated = 1 - } - - /// - /// Describes whether smoke is rising from an object - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes whether smoke is rising from an object")] - public enum SmokingValue : uint - { - /// - /// None - /// - None = 0, - - /// - /// Smoke present - /// - SmokePresent = 1 - } - - /// - /// Describes whether flames are rising from an object - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes whether flames are rising from an object")] - public enum FlamingValue : uint - { - /// - /// None - /// - None = 0, - - /// - /// Flames present - /// - FlamesPresent = 1 - } - - private byte percentComplete; - private GeneralAppearance.DamageValue damage; - private GeneralAppearance.PredistributedValue predistributed; - private GeneralAppearance.StateValue state; - private GeneralAppearance.SmokingValue smoking; - private GeneralAppearance.FlamingValue flaming; - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(GeneralAppearance left, GeneralAppearance right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator ==(GeneralAppearance left, GeneralAppearance right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - // If parameters are null return false (cast to object to prevent recursive loop!) - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The scheme instance. - /// The result of the conversion. - public static explicit operator ushort(GeneralAppearance obj) - { - return obj.ToUInt16(); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The ushort value. - /// The result of the conversion. - public static explicit operator GeneralAppearance(ushort value) - { - return GeneralAppearance.FromUInt16(value); - } - - /// - /// Creates the instance from the byte array. - /// - /// The array which holds the values for the . - /// The starting position within value. - /// The instance, represented by a byte array. - /// if the array is null. - /// if the index is lower than 0 or greater or equal than number of elements in array. - public static GeneralAppearance FromByteArray(byte[] array, int index) - { - if (array == null) - { - throw new ArgumentNullException("array"); - } - - if (index < 0 || - index > array.Length - 1 || - index + 2 > array.Length - 1) - { - throw new IndexOutOfRangeException(); - } - - return FromUInt16(BitConverter.ToUInt16(array, index)); - } - - /// - /// Creates the instance from the ushort value. - /// - /// The ushort value which represents the instance. - /// The instance, represented by the ushort value. - public static GeneralAppearance FromUInt16(ushort value) - { - GeneralAppearance ps = new GeneralAppearance(); - - uint mask0 = 0x00ff; - byte shift0 = 0; - uint newValue0 = (value & mask0) >> shift0; - ps.PercentComplete = (byte)newValue0; - - uint mask1 = 0x0300; - byte shift1 = 8; - uint newValue1 = (value & mask1) >> shift1; - ps.Damage = (GeneralAppearance.DamageValue)newValue1; - - uint mask2 = 0x0400; - byte shift2 = 10; - uint newValue2 = (value & mask2) >> shift2; - ps.Predistributed = (GeneralAppearance.PredistributedValue)newValue2; - - uint mask3 = 0x0800; - byte shift3 = 11; - uint newValue3 = (value & mask3) >> shift3; - ps.State = (GeneralAppearance.StateValue)newValue3; - - uint mask4 = 0x1000; - byte shift4 = 12; - uint newValue4 = (value & mask4) >> shift4; - ps.Smoking = (GeneralAppearance.SmokingValue)newValue4; - - uint mask5 = 0x2000; - byte shift5 = 13; - uint newValue5 = (value & mask5) >> shift5; - ps.Flaming = (GeneralAppearance.FlamingValue)newValue5; - - return ps; - } - - /// - /// Gets or sets the percentcomplete. - /// - /// The percentcomplete. - public byte PercentComplete - { - get { return this.percentComplete; } - set { this.percentComplete = value; } - } - - /// - /// Gets or sets the damage. - /// - /// The damage. - public GeneralAppearance.DamageValue Damage - { - get { return this.damage; } - set { this.damage = value; } - } - - /// - /// Gets or sets the predistributed. - /// - /// The predistributed. - public GeneralAppearance.PredistributedValue Predistributed - { - get { return this.predistributed; } - set { this.predistributed = value; } - } - - /// - /// Gets or sets the state. - /// - /// The state. - public GeneralAppearance.StateValue State - { - get { return this.state; } - set { this.state = value; } - } - - /// - /// Gets or sets the smoking. - /// - /// The smoking. - public GeneralAppearance.SmokingValue Smoking - { - get { return this.smoking; } - set { this.smoking = value; } - } - - /// - /// Gets or sets the flaming. - /// - /// The flaming. - public GeneralAppearance.FlamingValue Flaming - { - get { return this.flaming; } - set { this.flaming = value; } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - if (obj == null) - { - return false; - } - - if (!(obj is GeneralAppearance)) - { - return false; - } - - return this.Equals((GeneralAppearance)obj); - } - - /// - /// Determines whether the specified instance is equal to this instance. - /// - /// The instance to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public bool Equals(GeneralAppearance other) - { - // If parameter is null return false (cast to object to prevent recursive loop!) - if ((object)other == null) - { - return false; - } - - return - this.PercentComplete == other.PercentComplete && - this.Damage == other.Damage && - this.Predistributed == other.Predistributed && - this.State == other.State && - this.Smoking == other.Smoking && - this.Flaming == other.Flaming; - } - - /// - /// Converts the instance of to the byte array. - /// - /// The byte array representing the current instance. - public byte[] ToByteArray() - { - return BitConverter.GetBytes(this.ToUInt16()); - } - - /// - /// Converts the instance of to the ushort value. - /// - /// The ushort value representing the current instance. - public ushort ToUInt16() - { - ushort val = 0; - - val |= (ushort)((uint)this.PercentComplete << 0); - val |= (ushort)((uint)this.Damage << 8); - val |= (ushort)((uint)this.Predistributed << 10); - val |= (ushort)((uint)this.State << 11); - val |= (ushort)((uint)this.Smoking << 12); - val |= (ushort)((uint)this.Flaming << 13); - - return val; - } - - /// - /// Returns a hash code for this instance. - /// - /// - /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - /// - public override int GetHashCode() - { - int hash = 17; - - // Overflow is fine, just wrap - unchecked - { - hash = (hash * 29) + this.PercentComplete.GetHashCode(); - hash = (hash * 29) + this.Damage.GetHashCode(); - hash = (hash * 29) + this.Predistributed.GetHashCode(); - hash = (hash * 29) + this.State.GetHashCode(); - hash = (hash * 29) + this.Smoking.GetHashCode(); - hash = (hash * 29) + this.Flaming.GetHashCode(); - } - - return hash; - } - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Environment.ObjectState +{ + /// + /// Enumeration values for GeneralAppearance (env.obj.appear.general, General, + /// section 12.1.2.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public struct GeneralAppearance + { + /// + /// Describes the damaged appearance of the object + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the damaged appearance of the object")] + public enum DamageValue : uint + { + /// + /// No damage + /// + NoDamage = 0, + + /// + /// Damaged + /// + Damaged = 1, + + /// + /// Destroyed + /// + Destroyed = 2, + + /// + /// null + /// + Unknown = 3 + } + + /// + /// Describes whether the object was predistributed + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes whether the object was predistributed")] + public enum PredistributedValue : uint + { + /// + /// Object created during the exercise + /// + ObjectCreatedDuringTheExercise = 0, + + /// + /// Object predistributed prior to exercise start + /// + ObjectPredistributedPriorToExerciseStart = 1 + } + + /// + /// Describes the state of the object + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the state of the object")] + public enum StateValue : uint + { + /// + /// Active + /// + Active = 0, + + /// + /// Deactivated + /// + Deactivated = 1 + } + + /// + /// Describes whether smoke is rising from an object + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes whether smoke is rising from an object")] + public enum SmokingValue : uint + { + /// + /// None + /// + None = 0, + + /// + /// Smoke present + /// + SmokePresent = 1 + } + + /// + /// Describes whether flames are rising from an object + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes whether flames are rising from an object")] + public enum FlamingValue : uint + { + /// + /// None + /// + None = 0, + + /// + /// Flames present + /// + FlamesPresent = 1 + } + + private byte percentComplete; + private GeneralAppearance.DamageValue damage; + private GeneralAppearance.PredistributedValue predistributed; + private GeneralAppearance.StateValue state; + private GeneralAppearance.SmokingValue smoking; + private GeneralAppearance.FlamingValue flaming; + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(GeneralAppearance left, GeneralAppearance right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator ==(GeneralAppearance left, GeneralAppearance right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + // If parameters are null return false (cast to object to prevent recursive loop!) + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The scheme instance. + /// The result of the conversion. + public static explicit operator ushort(GeneralAppearance obj) + { + return obj.ToUInt16(); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The ushort value. + /// The result of the conversion. + public static explicit operator GeneralAppearance(ushort value) + { + return GeneralAppearance.FromUInt16(value); + } + + /// + /// Creates the instance from the byte array. + /// + /// The array which holds the values for the . + /// The starting position within value. + /// The instance, represented by a byte array. + /// if the array is null. + /// if the index is lower than 0 or greater or equal than number of elements in array. + public static GeneralAppearance FromByteArray(byte[] array, int index) + { + if (array == null) + { + throw new ArgumentNullException("array"); + } + + if (index < 0 || + index > array.Length - 1 || + index + 2 > array.Length - 1) + { + throw new IndexOutOfRangeException(); + } + + return FromUInt16(BitConverter.ToUInt16(array, index)); + } + + /// + /// Creates the instance from the ushort value. + /// + /// The ushort value which represents the instance. + /// The instance, represented by the ushort value. + public static GeneralAppearance FromUInt16(ushort value) + { + GeneralAppearance ps = new GeneralAppearance(); + + uint mask0 = 0x00ff; + byte shift0 = 0; + uint newValue0 = (value & mask0) >> shift0; + ps.PercentComplete = (byte)newValue0; + + uint mask1 = 0x0300; + byte shift1 = 8; + uint newValue1 = (value & mask1) >> shift1; + ps.Damage = (GeneralAppearance.DamageValue)newValue1; + + uint mask2 = 0x0400; + byte shift2 = 10; + uint newValue2 = (value & mask2) >> shift2; + ps.Predistributed = (GeneralAppearance.PredistributedValue)newValue2; + + uint mask3 = 0x0800; + byte shift3 = 11; + uint newValue3 = (value & mask3) >> shift3; + ps.State = (GeneralAppearance.StateValue)newValue3; + + uint mask4 = 0x1000; + byte shift4 = 12; + uint newValue4 = (value & mask4) >> shift4; + ps.Smoking = (GeneralAppearance.SmokingValue)newValue4; + + uint mask5 = 0x2000; + byte shift5 = 13; + uint newValue5 = (value & mask5) >> shift5; + ps.Flaming = (GeneralAppearance.FlamingValue)newValue5; + + return ps; + } + + /// + /// Gets or sets the percentcomplete. + /// + /// The percentcomplete. + public byte PercentComplete + { + get { return this.percentComplete; } + set { this.percentComplete = value; } + } + + /// + /// Gets or sets the damage. + /// + /// The damage. + public GeneralAppearance.DamageValue Damage + { + get { return this.damage; } + set { this.damage = value; } + } + + /// + /// Gets or sets the predistributed. + /// + /// The predistributed. + public GeneralAppearance.PredistributedValue Predistributed + { + get { return this.predistributed; } + set { this.predistributed = value; } + } + + /// + /// Gets or sets the state. + /// + /// The state. + public GeneralAppearance.StateValue State + { + get { return this.state; } + set { this.state = value; } + } + + /// + /// Gets or sets the smoking. + /// + /// The smoking. + public GeneralAppearance.SmokingValue Smoking + { + get { return this.smoking; } + set { this.smoking = value; } + } + + /// + /// Gets or sets the flaming. + /// + /// The flaming. + public GeneralAppearance.FlamingValue Flaming + { + get { return this.flaming; } + set { this.flaming = value; } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (!(obj is GeneralAppearance)) + { + return false; + } + + return this.Equals((GeneralAppearance)obj); + } + + /// + /// Determines whether the specified instance is equal to this instance. + /// + /// The instance to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public bool Equals(GeneralAppearance other) + { + // If parameter is null return false (cast to object to prevent recursive loop!) + if ((object)other == null) + { + return false; + } + + return + this.PercentComplete == other.PercentComplete && + this.Damage == other.Damage && + this.Predistributed == other.Predistributed && + this.State == other.State && + this.Smoking == other.Smoking && + this.Flaming == other.Flaming; + } + + /// + /// Converts the instance of to the byte array. + /// + /// The byte array representing the current instance. + public byte[] ToByteArray() + { + return BitConverter.GetBytes(this.ToUInt16()); + } + + /// + /// Converts the instance of to the ushort value. + /// + /// The ushort value representing the current instance. + public ushort ToUInt16() + { + ushort val = 0; + + val |= (ushort)((uint)this.PercentComplete << 0); + val |= (ushort)((uint)this.Damage << 8); + val |= (ushort)((uint)this.Predistributed << 10); + val |= (ushort)((uint)this.State << 11); + val |= (ushort)((uint)this.Smoking << 12); + val |= (ushort)((uint)this.Flaming << 13); + + return val; + } + + /// + /// Returns a hash code for this instance. + /// + /// + /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + /// + public override int GetHashCode() + { + int hash = 17; + + // Overflow is fine, just wrap + unchecked + { + hash = (hash * 29) + this.PercentComplete.GetHashCode(); + hash = (hash * 29) + this.Damage.GetHashCode(); + hash = (hash * 29) + this.Predistributed.GetHashCode(); + hash = (hash * 29) + this.State.GetHashCode(); + hash = (hash * 29) + this.Smoking.GetHashCode(); + hash = (hash * 29) + this.Flaming.GetHashCode(); + } + + return hash; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/LinearObjectStatePDUModificationField.cs b/Libs/CsharpDis6/Enumerations/Environment.ObjectState/LinearObjectStatePDUModificationField.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/LinearObjectStatePDUModificationField.cs rename to Libs/CsharpDis6/Enumerations/Environment.ObjectState/LinearObjectStatePDUModificationField.cs index 3e060e1..5387d51 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/LinearObjectStatePDUModificationField.cs +++ b/Libs/CsharpDis6/Enumerations/Environment.ObjectState/LinearObjectStatePDUModificationField.cs @@ -1,50 +1,50 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Environment.ObjectState -{ - /// - /// Enumeration values for LinearObjectStatePDUModificationField (env.obj.mod.linear, Linear Object State PDU Modification Field, - /// section 12.1.3.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - [Flags] - public enum LinearObjectStatePDUModificationField : byte - { - /// - /// Set bit means 'Location has been modified', reset bit means 'Location has not been modified'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Location has been modified', reset bit means 'Location has not been modified'.")] - Location = 1, - - /// - /// Set bit means 'Orientation has been modified', reset bit means 'Orientation has not been modified'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Orientation has been modified', reset bit means 'Orientation has not been modified'.")] - Orientation = 2 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Environment.ObjectState +{ + /// + /// Enumeration values for LinearObjectStatePDUModificationField (env.obj.mod.linear, Linear Object State PDU Modification Field, + /// section 12.1.3.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + [Flags] + public enum LinearObjectStatePDUModificationField : byte + { + /// + /// Set bit means 'Location has been modified', reset bit means 'Location has not been modified'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Location has been modified', reset bit means 'Location has not been modified'.")] + Location = 1, + + /// + /// Set bit means 'Orientation has been modified', reset bit means 'Orientation has not been modified'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Orientation has been modified', reset bit means 'Orientation has not been modified'.")] + Orientation = 2 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/LogCribAbatisVehicleDefiladeAndInfantryFightingPosition.cs b/Libs/CsharpDis6/Enumerations/Environment.ObjectState/LogCribAbatisVehicleDefiladeAndInfantryFightingPosition.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/LogCribAbatisVehicleDefiladeAndInfantryFightingPosition.cs rename to Libs/CsharpDis6/Enumerations/Environment.ObjectState/LogCribAbatisVehicleDefiladeAndInfantryFightingPosition.cs index 4dc671d..01a0775 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/LogCribAbatisVehicleDefiladeAndInfantryFightingPosition.cs +++ b/Libs/CsharpDis6/Enumerations/Environment.ObjectState/LogCribAbatisVehicleDefiladeAndInfantryFightingPosition.cs @@ -1,253 +1,253 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Environment.ObjectState -{ - /// - /// Enumeration values for LogCribAbatisVehicleDefiladeAndInfantryFightingPosition (env.obj.appear.point.breach, Log crib, Abatis, Vehicle defilade, and Infantry fighting position, - /// section 12.1.2.2.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public struct LogCribAbatisVehicleDefiladeAndInfantryFightingPosition - { - /// - /// Describes the breached appearance of the object - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the breached appearance of the object")] - public enum BreachValue : uint - { - /// - /// No breaching - /// - NoBreaching = 0, - - /// - /// Breached - /// - Breached = 1, - - /// - /// Cleared - /// - Cleared = 2, - - /// - /// null - /// - Unknown = 3 - } - - private LogCribAbatisVehicleDefiladeAndInfantryFightingPosition.BreachValue breach; - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(LogCribAbatisVehicleDefiladeAndInfantryFightingPosition left, LogCribAbatisVehicleDefiladeAndInfantryFightingPosition right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator ==(LogCribAbatisVehicleDefiladeAndInfantryFightingPosition left, LogCribAbatisVehicleDefiladeAndInfantryFightingPosition right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - // If parameters are null return false (cast to object to prevent recursive loop!) - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The scheme instance. - /// The result of the conversion. - public static explicit operator uint(LogCribAbatisVehicleDefiladeAndInfantryFightingPosition obj) - { - return obj.ToUInt32(); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The uint value. - /// The result of the conversion. - public static explicit operator LogCribAbatisVehicleDefiladeAndInfantryFightingPosition(uint value) - { - return LogCribAbatisVehicleDefiladeAndInfantryFightingPosition.FromUInt32(value); - } - - /// - /// Creates the instance from the byte array. - /// - /// The array which holds the values for the . - /// The starting position within value. - /// The instance, represented by a byte array. - /// if the array is null. - /// if the index is lower than 0 or greater or equal than number of elements in array. - public static LogCribAbatisVehicleDefiladeAndInfantryFightingPosition FromByteArray(byte[] array, int index) - { - if (array == null) - { - throw new ArgumentNullException("array"); - } - - if (index < 0 || - index > array.Length - 1 || - index + 4 > array.Length - 1) - { - throw new IndexOutOfRangeException(); - } - - return FromUInt32(BitConverter.ToUInt32(array, index)); - } - - /// - /// Creates the instance from the uint value. - /// - /// The uint value which represents the instance. - /// The instance, represented by the uint value. - public static LogCribAbatisVehicleDefiladeAndInfantryFightingPosition FromUInt32(uint value) - { - LogCribAbatisVehicleDefiladeAndInfantryFightingPosition ps = new LogCribAbatisVehicleDefiladeAndInfantryFightingPosition(); - - uint mask0 = 0x30000; - byte shift0 = 16; - uint newValue0 = (value & mask0) >> shift0; - ps.Breach = (LogCribAbatisVehicleDefiladeAndInfantryFightingPosition.BreachValue)newValue0; - - return ps; - } - - /// - /// Gets or sets the breach. - /// - /// The breach. - public LogCribAbatisVehicleDefiladeAndInfantryFightingPosition.BreachValue Breach - { - get { return this.breach; } - set { this.breach = value; } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - if (obj == null) - { - return false; - } - - if (!(obj is LogCribAbatisVehicleDefiladeAndInfantryFightingPosition)) - { - return false; - } - - return this.Equals((LogCribAbatisVehicleDefiladeAndInfantryFightingPosition)obj); - } - - /// - /// Determines whether the specified instance is equal to this instance. - /// - /// The instance to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public bool Equals(LogCribAbatisVehicleDefiladeAndInfantryFightingPosition other) - { - // If parameter is null return false (cast to object to prevent recursive loop!) - if ((object)other == null) - { - return false; - } - - return - this.Breach == other.Breach; - } - - /// - /// Converts the instance of to the byte array. - /// - /// The byte array representing the current instance. - public byte[] ToByteArray() - { - return BitConverter.GetBytes(this.ToUInt32()); - } - - /// - /// Converts the instance of to the uint value. - /// - /// The uint value representing the current instance. - public uint ToUInt32() - { - uint val = 0; - - val |= (uint)((uint)this.Breach << 16); - - return val; - } - - /// - /// Returns a hash code for this instance. - /// - /// - /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - /// - public override int GetHashCode() - { - int hash = 17; - - // Overflow is fine, just wrap - unchecked - { - hash = (hash * 29) + this.Breach.GetHashCode(); - } - - return hash; - } - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Environment.ObjectState +{ + /// + /// Enumeration values for LogCribAbatisVehicleDefiladeAndInfantryFightingPosition (env.obj.appear.point.breach, Log crib, Abatis, Vehicle defilade, and Infantry fighting position, + /// section 12.1.2.2.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public struct LogCribAbatisVehicleDefiladeAndInfantryFightingPosition + { + /// + /// Describes the breached appearance of the object + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the breached appearance of the object")] + public enum BreachValue : uint + { + /// + /// No breaching + /// + NoBreaching = 0, + + /// + /// Breached + /// + Breached = 1, + + /// + /// Cleared + /// + Cleared = 2, + + /// + /// null + /// + Unknown = 3 + } + + private LogCribAbatisVehicleDefiladeAndInfantryFightingPosition.BreachValue breach; + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(LogCribAbatisVehicleDefiladeAndInfantryFightingPosition left, LogCribAbatisVehicleDefiladeAndInfantryFightingPosition right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator ==(LogCribAbatisVehicleDefiladeAndInfantryFightingPosition left, LogCribAbatisVehicleDefiladeAndInfantryFightingPosition right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + // If parameters are null return false (cast to object to prevent recursive loop!) + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The scheme instance. + /// The result of the conversion. + public static explicit operator uint(LogCribAbatisVehicleDefiladeAndInfantryFightingPosition obj) + { + return obj.ToUInt32(); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The uint value. + /// The result of the conversion. + public static explicit operator LogCribAbatisVehicleDefiladeAndInfantryFightingPosition(uint value) + { + return LogCribAbatisVehicleDefiladeAndInfantryFightingPosition.FromUInt32(value); + } + + /// + /// Creates the instance from the byte array. + /// + /// The array which holds the values for the . + /// The starting position within value. + /// The instance, represented by a byte array. + /// if the array is null. + /// if the index is lower than 0 or greater or equal than number of elements in array. + public static LogCribAbatisVehicleDefiladeAndInfantryFightingPosition FromByteArray(byte[] array, int index) + { + if (array == null) + { + throw new ArgumentNullException("array"); + } + + if (index < 0 || + index > array.Length - 1 || + index + 4 > array.Length - 1) + { + throw new IndexOutOfRangeException(); + } + + return FromUInt32(BitConverter.ToUInt32(array, index)); + } + + /// + /// Creates the instance from the uint value. + /// + /// The uint value which represents the instance. + /// The instance, represented by the uint value. + public static LogCribAbatisVehicleDefiladeAndInfantryFightingPosition FromUInt32(uint value) + { + LogCribAbatisVehicleDefiladeAndInfantryFightingPosition ps = new LogCribAbatisVehicleDefiladeAndInfantryFightingPosition(); + + uint mask0 = 0x30000; + byte shift0 = 16; + uint newValue0 = (value & mask0) >> shift0; + ps.Breach = (LogCribAbatisVehicleDefiladeAndInfantryFightingPosition.BreachValue)newValue0; + + return ps; + } + + /// + /// Gets or sets the breach. + /// + /// The breach. + public LogCribAbatisVehicleDefiladeAndInfantryFightingPosition.BreachValue Breach + { + get { return this.breach; } + set { this.breach = value; } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (!(obj is LogCribAbatisVehicleDefiladeAndInfantryFightingPosition)) + { + return false; + } + + return this.Equals((LogCribAbatisVehicleDefiladeAndInfantryFightingPosition)obj); + } + + /// + /// Determines whether the specified instance is equal to this instance. + /// + /// The instance to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public bool Equals(LogCribAbatisVehicleDefiladeAndInfantryFightingPosition other) + { + // If parameter is null return false (cast to object to prevent recursive loop!) + if ((object)other == null) + { + return false; + } + + return + this.Breach == other.Breach; + } + + /// + /// Converts the instance of to the byte array. + /// + /// The byte array representing the current instance. + public byte[] ToByteArray() + { + return BitConverter.GetBytes(this.ToUInt32()); + } + + /// + /// Converts the instance of to the uint value. + /// + /// The uint value representing the current instance. + public uint ToUInt32() + { + uint val = 0; + + val |= (uint)((uint)this.Breach << 16); + + return val; + } + + /// + /// Returns a hash code for this instance. + /// + /// + /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + /// + public override int GetHashCode() + { + int hash = 17; + + // Overflow is fine, just wrap + unchecked + { + hash = (hash * 29) + this.Breach.GetHashCode(); + } + + return hash; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/Minefield.cs b/Libs/CsharpDis6/Enumerations/Environment.ObjectState/Minefield.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/Minefield.cs rename to Libs/CsharpDis6/Enumerations/Environment.ObjectState/Minefield.cs index da5a83e..778cc7a 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/Minefield.cs +++ b/Libs/CsharpDis6/Enumerations/Environment.ObjectState/Minefield.cs @@ -1,272 +1,272 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Environment.ObjectState -{ - /// - /// Enumeration values for Minefield (env.obj.appear.areal.minefield, Minefield, - /// section 12.1.2.4.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public struct Minefield - { - /// - /// Describes the breached appearance of the object - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the breached appearance of the object")] - public enum BreachValue : uint - { - /// - /// No breaching - /// - NoBreaching = 0, - - /// - /// Breached - /// - Breached = 1, - - /// - /// Cleared - /// - Cleared = 2, - - /// - /// null - /// - Unknown = 3 - } - - private Minefield.BreachValue breach; - private int mineCount; - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(Minefield left, Minefield right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator ==(Minefield left, Minefield right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - // If parameters are null return false (cast to object to prevent recursive loop!) - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The scheme instance. - /// The result of the conversion. - public static explicit operator uint(Minefield obj) - { - return obj.ToUInt32(); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The uint value. - /// The result of the conversion. - public static explicit operator Minefield(uint value) - { - return Minefield.FromUInt32(value); - } - - /// - /// Creates the instance from the byte array. - /// - /// The array which holds the values for the . - /// The starting position within value. - /// The instance, represented by a byte array. - /// if the array is null. - /// if the index is lower than 0 or greater or equal than number of elements in array. - public static Minefield FromByteArray(byte[] array, int index) - { - if (array == null) - { - throw new ArgumentNullException("array"); - } - - if (index < 0 || - index > array.Length - 1 || - index + 4 > array.Length - 1) - { - throw new IndexOutOfRangeException(); - } - - return FromUInt32(BitConverter.ToUInt32(array, index)); - } - - /// - /// Creates the instance from the uint value. - /// - /// The uint value which represents the instance. - /// The instance, represented by the uint value. - public static Minefield FromUInt32(uint value) - { - Minefield ps = new Minefield(); - - uint mask0 = 0x30000; - byte shift0 = 16; - uint newValue0 = (value & mask0) >> shift0; - ps.Breach = (Minefield.BreachValue)newValue0; - - uint mask2 = 0x80000000; - byte shift2 = 31; - uint newValue2 = (value & mask2) >> shift2; - ps.MineCount = (int)newValue2; - - return ps; - } - - /// - /// Gets or sets the breach. - /// - /// The breach. - public Minefield.BreachValue Breach - { - get { return this.breach; } - set { this.breach = value; } - } - - /// - /// Gets or sets the minecount. - /// - /// The minecount. - public int MineCount - { - get { return this.mineCount; } - set { this.mineCount = value; } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - if (obj == null) - { - return false; - } - - if (!(obj is Minefield)) - { - return false; - } - - return this.Equals((Minefield)obj); - } - - /// - /// Determines whether the specified instance is equal to this instance. - /// - /// The instance to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public bool Equals(Minefield other) - { - // If parameter is null return false (cast to object to prevent recursive loop!) - if ((object)other == null) - { - return false; - } - - return - this.Breach == other.Breach && - this.MineCount == other.MineCount; - } - - /// - /// Converts the instance of to the byte array. - /// - /// The byte array representing the current instance. - public byte[] ToByteArray() - { - return BitConverter.GetBytes(this.ToUInt32()); - } - - /// - /// Converts the instance of to the uint value. - /// - /// The uint value representing the current instance. - public uint ToUInt32() - { - uint val = 0; - - val |= (uint)((uint)this.Breach << 16); - val |= (uint)((uint)this.MineCount << 31); - - return val; - } - - /// - /// Returns a hash code for this instance. - /// - /// - /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - /// - public override int GetHashCode() - { - int hash = 17; - - // Overflow is fine, just wrap - unchecked - { - hash = (hash * 29) + this.Breach.GetHashCode(); - hash = (hash * 29) + this.MineCount.GetHashCode(); - } - - return hash; - } - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Environment.ObjectState +{ + /// + /// Enumeration values for Minefield (env.obj.appear.areal.minefield, Minefield, + /// section 12.1.2.4.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public struct Minefield + { + /// + /// Describes the breached appearance of the object + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the breached appearance of the object")] + public enum BreachValue : uint + { + /// + /// No breaching + /// + NoBreaching = 0, + + /// + /// Breached + /// + Breached = 1, + + /// + /// Cleared + /// + Cleared = 2, + + /// + /// null + /// + Unknown = 3 + } + + private Minefield.BreachValue breach; + private int mineCount; + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(Minefield left, Minefield right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator ==(Minefield left, Minefield right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + // If parameters are null return false (cast to object to prevent recursive loop!) + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The scheme instance. + /// The result of the conversion. + public static explicit operator uint(Minefield obj) + { + return obj.ToUInt32(); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The uint value. + /// The result of the conversion. + public static explicit operator Minefield(uint value) + { + return Minefield.FromUInt32(value); + } + + /// + /// Creates the instance from the byte array. + /// + /// The array which holds the values for the . + /// The starting position within value. + /// The instance, represented by a byte array. + /// if the array is null. + /// if the index is lower than 0 or greater or equal than number of elements in array. + public static Minefield FromByteArray(byte[] array, int index) + { + if (array == null) + { + throw new ArgumentNullException("array"); + } + + if (index < 0 || + index > array.Length - 1 || + index + 4 > array.Length - 1) + { + throw new IndexOutOfRangeException(); + } + + return FromUInt32(BitConverter.ToUInt32(array, index)); + } + + /// + /// Creates the instance from the uint value. + /// + /// The uint value which represents the instance. + /// The instance, represented by the uint value. + public static Minefield FromUInt32(uint value) + { + Minefield ps = new Minefield(); + + uint mask0 = 0x30000; + byte shift0 = 16; + uint newValue0 = (value & mask0) >> shift0; + ps.Breach = (Minefield.BreachValue)newValue0; + + uint mask2 = 0x80000000; + byte shift2 = 31; + uint newValue2 = (value & mask2) >> shift2; + ps.MineCount = (int)newValue2; + + return ps; + } + + /// + /// Gets or sets the breach. + /// + /// The breach. + public Minefield.BreachValue Breach + { + get { return this.breach; } + set { this.breach = value; } + } + + /// + /// Gets or sets the minecount. + /// + /// The minecount. + public int MineCount + { + get { return this.mineCount; } + set { this.mineCount = value; } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (!(obj is Minefield)) + { + return false; + } + + return this.Equals((Minefield)obj); + } + + /// + /// Determines whether the specified instance is equal to this instance. + /// + /// The instance to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public bool Equals(Minefield other) + { + // If parameter is null return false (cast to object to prevent recursive loop!) + if ((object)other == null) + { + return false; + } + + return + this.Breach == other.Breach && + this.MineCount == other.MineCount; + } + + /// + /// Converts the instance of to the byte array. + /// + /// The byte array representing the current instance. + public byte[] ToByteArray() + { + return BitConverter.GetBytes(this.ToUInt32()); + } + + /// + /// Converts the instance of to the uint value. + /// + /// The uint value representing the current instance. + public uint ToUInt32() + { + uint val = 0; + + val |= (uint)((uint)this.Breach << 16); + val |= (uint)((uint)this.MineCount << 31); + + return val; + } + + /// + /// Returns a hash code for this instance. + /// + /// + /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + /// + public override int GetHashCode() + { + int hash = 17; + + // Overflow is fine, just wrap + unchecked + { + hash = (hash * 29) + this.Breach.GetHashCode(); + hash = (hash * 29) + this.MineCount.GetHashCode(); + } + + return hash; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/MinefieldLaneMarker.cs b/Libs/CsharpDis6/Enumerations/Environment.ObjectState/MinefieldLaneMarker.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/MinefieldLaneMarker.cs rename to Libs/CsharpDis6/Enumerations/Environment.ObjectState/MinefieldLaneMarker.cs index b743e0e..569b4f1 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/MinefieldLaneMarker.cs +++ b/Libs/CsharpDis6/Enumerations/Environment.ObjectState/MinefieldLaneMarker.cs @@ -1,253 +1,253 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Environment.ObjectState -{ - /// - /// Enumeration values for MinefieldLaneMarker (env.obj.appear.linear.marker, Minefield Lane Marker, - /// section 12.1.2.3.3) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public struct MinefieldLaneMarker - { - /// - /// Describes the side of the lane marker which is visible. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the side of the lane marker which is visible.")] - public enum VisibleSideValue : uint - { - /// - /// Left side is visible - /// - LeftSideIsVisible = 0, - - /// - /// Right side is visible - /// - RightSideIsVisible = 1, - - /// - /// Both sides are visible - /// - BothSidesAreVisible = 2, - - /// - /// null - /// - Unknown = 3 - } - - private MinefieldLaneMarker.VisibleSideValue visibleSide; - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(MinefieldLaneMarker left, MinefieldLaneMarker right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator ==(MinefieldLaneMarker left, MinefieldLaneMarker right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - // If parameters are null return false (cast to object to prevent recursive loop!) - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The scheme instance. - /// The result of the conversion. - public static explicit operator uint(MinefieldLaneMarker obj) - { - return obj.ToUInt32(); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The uint value. - /// The result of the conversion. - public static explicit operator MinefieldLaneMarker(uint value) - { - return MinefieldLaneMarker.FromUInt32(value); - } - - /// - /// Creates the instance from the byte array. - /// - /// The array which holds the values for the . - /// The starting position within value. - /// The instance, represented by a byte array. - /// if the array is null. - /// if the index is lower than 0 or greater or equal than number of elements in array. - public static MinefieldLaneMarker FromByteArray(byte[] array, int index) - { - if (array == null) - { - throw new ArgumentNullException("array"); - } - - if (index < 0 || - index > array.Length - 1 || - index + 4 > array.Length - 1) - { - throw new IndexOutOfRangeException(); - } - - return FromUInt32(BitConverter.ToUInt32(array, index)); - } - - /// - /// Creates the instance from the uint value. - /// - /// The uint value which represents the instance. - /// The instance, represented by the uint value. - public static MinefieldLaneMarker FromUInt32(uint value) - { - MinefieldLaneMarker ps = new MinefieldLaneMarker(); - - uint mask0 = 0x30000; - byte shift0 = 16; - uint newValue0 = (value & mask0) >> shift0; - ps.VisibleSide = (MinefieldLaneMarker.VisibleSideValue)newValue0; - - return ps; - } - - /// - /// Gets or sets the visibleside. - /// - /// The visibleside. - public MinefieldLaneMarker.VisibleSideValue VisibleSide - { - get { return this.visibleSide; } - set { this.visibleSide = value; } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - if (obj == null) - { - return false; - } - - if (!(obj is MinefieldLaneMarker)) - { - return false; - } - - return this.Equals((MinefieldLaneMarker)obj); - } - - /// - /// Determines whether the specified instance is equal to this instance. - /// - /// The instance to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public bool Equals(MinefieldLaneMarker other) - { - // If parameter is null return false (cast to object to prevent recursive loop!) - if ((object)other == null) - { - return false; - } - - return - this.VisibleSide == other.VisibleSide; - } - - /// - /// Converts the instance of to the byte array. - /// - /// The byte array representing the current instance. - public byte[] ToByteArray() - { - return BitConverter.GetBytes(this.ToUInt32()); - } - - /// - /// Converts the instance of to the uint value. - /// - /// The uint value representing the current instance. - public uint ToUInt32() - { - uint val = 0; - - val |= (uint)((uint)this.VisibleSide << 16); - - return val; - } - - /// - /// Returns a hash code for this instance. - /// - /// - /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - /// - public override int GetHashCode() - { - int hash = 17; - - // Overflow is fine, just wrap - unchecked - { - hash = (hash * 29) + this.VisibleSide.GetHashCode(); - } - - return hash; - } - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Environment.ObjectState +{ + /// + /// Enumeration values for MinefieldLaneMarker (env.obj.appear.linear.marker, Minefield Lane Marker, + /// section 12.1.2.3.3) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public struct MinefieldLaneMarker + { + /// + /// Describes the side of the lane marker which is visible. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the side of the lane marker which is visible.")] + public enum VisibleSideValue : uint + { + /// + /// Left side is visible + /// + LeftSideIsVisible = 0, + + /// + /// Right side is visible + /// + RightSideIsVisible = 1, + + /// + /// Both sides are visible + /// + BothSidesAreVisible = 2, + + /// + /// null + /// + Unknown = 3 + } + + private MinefieldLaneMarker.VisibleSideValue visibleSide; + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(MinefieldLaneMarker left, MinefieldLaneMarker right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator ==(MinefieldLaneMarker left, MinefieldLaneMarker right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + // If parameters are null return false (cast to object to prevent recursive loop!) + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The scheme instance. + /// The result of the conversion. + public static explicit operator uint(MinefieldLaneMarker obj) + { + return obj.ToUInt32(); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The uint value. + /// The result of the conversion. + public static explicit operator MinefieldLaneMarker(uint value) + { + return MinefieldLaneMarker.FromUInt32(value); + } + + /// + /// Creates the instance from the byte array. + /// + /// The array which holds the values for the . + /// The starting position within value. + /// The instance, represented by a byte array. + /// if the array is null. + /// if the index is lower than 0 or greater or equal than number of elements in array. + public static MinefieldLaneMarker FromByteArray(byte[] array, int index) + { + if (array == null) + { + throw new ArgumentNullException("array"); + } + + if (index < 0 || + index > array.Length - 1 || + index + 4 > array.Length - 1) + { + throw new IndexOutOfRangeException(); + } + + return FromUInt32(BitConverter.ToUInt32(array, index)); + } + + /// + /// Creates the instance from the uint value. + /// + /// The uint value which represents the instance. + /// The instance, represented by the uint value. + public static MinefieldLaneMarker FromUInt32(uint value) + { + MinefieldLaneMarker ps = new MinefieldLaneMarker(); + + uint mask0 = 0x30000; + byte shift0 = 16; + uint newValue0 = (value & mask0) >> shift0; + ps.VisibleSide = (MinefieldLaneMarker.VisibleSideValue)newValue0; + + return ps; + } + + /// + /// Gets or sets the visibleside. + /// + /// The visibleside. + public MinefieldLaneMarker.VisibleSideValue VisibleSide + { + get { return this.visibleSide; } + set { this.visibleSide = value; } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (!(obj is MinefieldLaneMarker)) + { + return false; + } + + return this.Equals((MinefieldLaneMarker)obj); + } + + /// + /// Determines whether the specified instance is equal to this instance. + /// + /// The instance to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public bool Equals(MinefieldLaneMarker other) + { + // If parameter is null return false (cast to object to prevent recursive loop!) + if ((object)other == null) + { + return false; + } + + return + this.VisibleSide == other.VisibleSide; + } + + /// + /// Converts the instance of to the byte array. + /// + /// The byte array representing the current instance. + public byte[] ToByteArray() + { + return BitConverter.GetBytes(this.ToUInt32()); + } + + /// + /// Converts the instance of to the uint value. + /// + /// The uint value representing the current instance. + public uint ToUInt32() + { + uint val = 0; + + val |= (uint)((uint)this.VisibleSide << 16); + + return val; + } + + /// + /// Returns a hash code for this instance. + /// + /// + /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + /// + public override int GetHashCode() + { + int hash = 17; + + // Overflow is fine, just wrap + unchecked + { + hash = (hash * 29) + this.VisibleSide.GetHashCode(); + } + + return hash; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/ObjectKind.cs b/Libs/CsharpDis6/Enumerations/Environment.ObjectState/ObjectKind.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/ObjectKind.cs rename to Libs/CsharpDis6/Enumerations/Environment.ObjectState/ObjectKind.cs index aeed184..96c4142 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/ObjectKind.cs +++ b/Libs/CsharpDis6/Enumerations/Environment.ObjectState/ObjectKind.cs @@ -1,109 +1,109 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Environment.ObjectState -{ - /// - /// Enumeration values for ObjectKind (env.obj.objecttype.kind, Object Kind, - /// section 12.1.1.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum ObjectKind : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Obstacle. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Obstacle.")] - Obstacle = 1, - - /// - /// Prepared position. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Prepared position.")] - PreparedPosition = 2, - - /// - /// Cultural feature. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Cultural feature.")] - CulturalFeature = 3, - - /// - /// Passageway. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Passageway.")] - Passageway = 4, - - /// - /// Tactical smoke. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tactical smoke.")] - TacticalSmoke = 5, - - /// - /// Obstacle marker. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Obstacle marker.")] - ObstacleMarker = 6, - - /// - /// Obstacle breach. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Obstacle breach.")] - ObstacleBreach = 7 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Environment.ObjectState +{ + /// + /// Enumeration values for ObjectKind (env.obj.objecttype.kind, Object Kind, + /// section 12.1.1.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum ObjectKind : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Obstacle. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Obstacle.")] + Obstacle = 1, + + /// + /// Prepared position. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Prepared position.")] + PreparedPosition = 2, + + /// + /// Cultural feature. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Cultural feature.")] + CulturalFeature = 3, + + /// + /// Passageway. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Passageway.")] + Passageway = 4, + + /// + /// Tactical smoke. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tactical smoke.")] + TacticalSmoke = 5, + + /// + /// Obstacle marker. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Obstacle marker.")] + ObstacleMarker = 6, + + /// + /// Obstacle breach. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Obstacle breach.")] + ObstacleBreach = 7 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/PointObjectStatePDUModificationField.cs b/Libs/CsharpDis6/Enumerations/Environment.ObjectState/PointObjectStatePDUModificationField.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/PointObjectStatePDUModificationField.cs rename to Libs/CsharpDis6/Enumerations/Environment.ObjectState/PointObjectStatePDUModificationField.cs index 71d261a..1a52fff 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/PointObjectStatePDUModificationField.cs +++ b/Libs/CsharpDis6/Enumerations/Environment.ObjectState/PointObjectStatePDUModificationField.cs @@ -1,50 +1,50 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Environment.ObjectState -{ - /// - /// Enumeration values for PointObjectStatePDUModificationField (env.obj.mod.point, Point Object State PDU Modification Field, - /// section 12.1.3.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - [Flags] - public enum PointObjectStatePDUModificationField : byte - { - /// - /// Set bit means 'Location has been modified', reset bit means 'Location has not been modified'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Location has been modified', reset bit means 'Location has not been modified'.")] - Location = 1, - - /// - /// Set bit means 'Orientation has been modified', reset bit means 'Orientation has not been modified'. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set bit means 'Orientation has been modified', reset bit means 'Orientation has not been modified'.")] - Orientation = 2 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Environment.ObjectState +{ + /// + /// Enumeration values for PointObjectStatePDUModificationField (env.obj.mod.point, Point Object State PDU Modification Field, + /// section 12.1.3.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + [Flags] + public enum PointObjectStatePDUModificationField : byte + { + /// + /// Set bit means 'Location has been modified', reset bit means 'Location has not been modified'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Location has been modified', reset bit means 'Location has not been modified'.")] + Location = 1, + + /// + /// Set bit means 'Orientation has been modified', reset bit means 'Orientation has not been modified'. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set bit means 'Orientation has been modified', reset bit means 'Orientation has not been modified'.")] + Orientation = 2 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/RibbonBridge.cs b/Libs/CsharpDis6/Enumerations/Environment.ObjectState/RibbonBridge.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/RibbonBridge.cs rename to Libs/CsharpDis6/Enumerations/Environment.ObjectState/RibbonBridge.cs index 5e0ef36..3aaa88b 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/RibbonBridge.cs +++ b/Libs/CsharpDis6/Enumerations/Environment.ObjectState/RibbonBridge.cs @@ -1,222 +1,222 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Environment.ObjectState -{ - /// - /// Enumeration values for RibbonBridge (env.obj.appear.point.bridge, Ribbon Bridge, - /// section 12.1.2.2.5) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public struct RibbonBridge - { - private byte numOfSegments; - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(RibbonBridge left, RibbonBridge right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator ==(RibbonBridge left, RibbonBridge right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - // If parameters are null return false (cast to object to prevent recursive loop!) - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The scheme instance. - /// The result of the conversion. - public static explicit operator uint(RibbonBridge obj) - { - return obj.ToUInt32(); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The uint value. - /// The result of the conversion. - public static explicit operator RibbonBridge(uint value) - { - return RibbonBridge.FromUInt32(value); - } - - /// - /// Creates the instance from the byte array. - /// - /// The array which holds the values for the . - /// The starting position within value. - /// The instance, represented by a byte array. - /// if the array is null. - /// if the index is lower than 0 or greater or equal than number of elements in array. - public static RibbonBridge FromByteArray(byte[] array, int index) - { - if (array == null) - { - throw new ArgumentNullException("array"); - } - - if (index < 0 || - index > array.Length - 1 || - index + 4 > array.Length - 1) - { - throw new IndexOutOfRangeException(); - } - - return FromUInt32(BitConverter.ToUInt32(array, index)); - } - - /// - /// Creates the instance from the uint value. - /// - /// The uint value which represents the instance. - /// The instance, represented by the uint value. - public static RibbonBridge FromUInt32(uint value) - { - RibbonBridge ps = new RibbonBridge(); - - uint mask0 = 0xff0000; - byte shift0 = 16; - uint newValue0 = (value & mask0) >> shift0; - ps.NumOfSegments = (byte)newValue0; - - return ps; - } - - /// - /// Gets or sets the numofsegments. - /// - /// The numofsegments. - public byte NumOfSegments - { - get { return this.numOfSegments; } - set { this.numOfSegments = value; } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - if (obj == null) - { - return false; - } - - if (!(obj is RibbonBridge)) - { - return false; - } - - return this.Equals((RibbonBridge)obj); - } - - /// - /// Determines whether the specified instance is equal to this instance. - /// - /// The instance to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public bool Equals(RibbonBridge other) - { - // If parameter is null return false (cast to object to prevent recursive loop!) - if ((object)other == null) - { - return false; - } - - return - this.NumOfSegments == other.NumOfSegments; - } - - /// - /// Converts the instance of to the byte array. - /// - /// The byte array representing the current instance. - public byte[] ToByteArray() - { - return BitConverter.GetBytes(this.ToUInt32()); - } - - /// - /// Converts the instance of to the uint value. - /// - /// The uint value representing the current instance. - public uint ToUInt32() - { - uint val = 0; - - val |= (uint)((uint)this.NumOfSegments << 16); - - return val; - } - - /// - /// Returns a hash code for this instance. - /// - /// - /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - /// - public override int GetHashCode() - { - int hash = 17; - - // Overflow is fine, just wrap - unchecked - { - hash = (hash * 29) + this.NumOfSegments.GetHashCode(); - } - - return hash; - } - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Environment.ObjectState +{ + /// + /// Enumeration values for RibbonBridge (env.obj.appear.point.bridge, Ribbon Bridge, + /// section 12.1.2.2.5) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public struct RibbonBridge + { + private byte numOfSegments; + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(RibbonBridge left, RibbonBridge right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator ==(RibbonBridge left, RibbonBridge right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + // If parameters are null return false (cast to object to prevent recursive loop!) + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The scheme instance. + /// The result of the conversion. + public static explicit operator uint(RibbonBridge obj) + { + return obj.ToUInt32(); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The uint value. + /// The result of the conversion. + public static explicit operator RibbonBridge(uint value) + { + return RibbonBridge.FromUInt32(value); + } + + /// + /// Creates the instance from the byte array. + /// + /// The array which holds the values for the . + /// The starting position within value. + /// The instance, represented by a byte array. + /// if the array is null. + /// if the index is lower than 0 or greater or equal than number of elements in array. + public static RibbonBridge FromByteArray(byte[] array, int index) + { + if (array == null) + { + throw new ArgumentNullException("array"); + } + + if (index < 0 || + index > array.Length - 1 || + index + 4 > array.Length - 1) + { + throw new IndexOutOfRangeException(); + } + + return FromUInt32(BitConverter.ToUInt32(array, index)); + } + + /// + /// Creates the instance from the uint value. + /// + /// The uint value which represents the instance. + /// The instance, represented by the uint value. + public static RibbonBridge FromUInt32(uint value) + { + RibbonBridge ps = new RibbonBridge(); + + uint mask0 = 0xff0000; + byte shift0 = 16; + uint newValue0 = (value & mask0) >> shift0; + ps.NumOfSegments = (byte)newValue0; + + return ps; + } + + /// + /// Gets or sets the numofsegments. + /// + /// The numofsegments. + public byte NumOfSegments + { + get { return this.numOfSegments; } + set { this.numOfSegments = value; } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (!(obj is RibbonBridge)) + { + return false; + } + + return this.Equals((RibbonBridge)obj); + } + + /// + /// Determines whether the specified instance is equal to this instance. + /// + /// The instance to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public bool Equals(RibbonBridge other) + { + // If parameter is null return false (cast to object to prevent recursive loop!) + if ((object)other == null) + { + return false; + } + + return + this.NumOfSegments == other.NumOfSegments; + } + + /// + /// Converts the instance of to the byte array. + /// + /// The byte array representing the current instance. + public byte[] ToByteArray() + { + return BitConverter.GetBytes(this.ToUInt32()); + } + + /// + /// Converts the instance of to the uint value. + /// + /// The uint value representing the current instance. + public uint ToUInt32() + { + uint val = 0; + + val |= (uint)((uint)this.NumOfSegments << 16); + + return val; + } + + /// + /// Returns a hash code for this instance. + /// + /// + /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + /// + public override int GetHashCode() + { + int hash = 17; + + // Overflow is fine, just wrap + unchecked + { + hash = (hash * 29) + this.NumOfSegments.GetHashCode(); + } + + return hash; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/TankDitchAndConcertinaWire.cs b/Libs/CsharpDis6/Enumerations/Environment.ObjectState/TankDitchAndConcertinaWire.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/TankDitchAndConcertinaWire.cs rename to Libs/CsharpDis6/Enumerations/Environment.ObjectState/TankDitchAndConcertinaWire.cs index 4ce7cb7..382353a 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Environment.ObjectState/TankDitchAndConcertinaWire.cs +++ b/Libs/CsharpDis6/Enumerations/Environment.ObjectState/TankDitchAndConcertinaWire.cs @@ -1,312 +1,312 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Environment.ObjectState -{ - /// - /// Enumeration values for TankDitchAndConcertinaWire (env.obj.appear.linear.tankditch, Tank ditch, and Concertina Wire, - /// section 12.1.2.3.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public struct TankDitchAndConcertinaWire - { - /// - /// Describes the breached appearance of the object - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Describes the breached appearance of the object")] - public enum BreachValue : uint - { - /// - /// No breaching - /// - NoBreaching = 0, - - /// - /// Slight breaching - /// - SlightBreaching = 1, - - /// - /// Moderate breached - /// - ModerateBreached = 2, - - /// - /// Cleared - /// - Cleared = 3 - } - - /// - /// Each bit indicates whether its associated segment is breached or not. Bit 40+i indicates whether the portion of the segment beginning at the segment origin + (i*Breach Length) and extending i* Breach Length meters is breached or not. For each bit: - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Each bit indicates whether its associated segment is breached or not. Bit 40+i indicates whether the portion of the segment beginning at the segment origin + (i*Breach Length) and extending i* Breach Length meters is breached or not. For each bit:")] - public enum BreachLocationValue : uint - { - /// - /// Associated portion of segment is not breached - /// - AssociatedPortionOfSegmentIsNotBreached = 0, - - /// - /// Associated portion of segment is breached - /// - AssociatedPortionOfSegmentIsBreached = 1 - } - - private TankDitchAndConcertinaWire.BreachValue breach; - private byte breachLength; - private TankDitchAndConcertinaWire.BreachLocationValue breachLocation; - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(TankDitchAndConcertinaWire left, TankDitchAndConcertinaWire right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator ==(TankDitchAndConcertinaWire left, TankDitchAndConcertinaWire right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - // If parameters are null return false (cast to object to prevent recursive loop!) - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The scheme instance. - /// The result of the conversion. - public static explicit operator uint(TankDitchAndConcertinaWire obj) - { - return obj.ToUInt32(); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The uint value. - /// The result of the conversion. - public static explicit operator TankDitchAndConcertinaWire(uint value) - { - return TankDitchAndConcertinaWire.FromUInt32(value); - } - - /// - /// Creates the instance from the byte array. - /// - /// The array which holds the values for the . - /// The starting position within value. - /// The instance, represented by a byte array. - /// if the array is null. - /// if the index is lower than 0 or greater or equal than number of elements in array. - public static TankDitchAndConcertinaWire FromByteArray(byte[] array, int index) - { - if (array == null) - { - throw new ArgumentNullException("array"); - } - - if (index < 0 || - index > array.Length - 1 || - index + 4 > array.Length - 1) - { - throw new IndexOutOfRangeException(); - } - - return FromUInt32(BitConverter.ToUInt32(array, index)); - } - - /// - /// Creates the instance from the uint value. - /// - /// The uint value which represents the instance. - /// The instance, represented by the uint value. - public static TankDitchAndConcertinaWire FromUInt32(uint value) - { - TankDitchAndConcertinaWire ps = new TankDitchAndConcertinaWire(); - - uint mask0 = 0x30000; - byte shift0 = 16; - uint newValue0 = (value & mask0) >> shift0; - ps.Breach = (TankDitchAndConcertinaWire.BreachValue)newValue0; - - uint mask2 = 0x00ff; - byte shift2 = 32; - uint newValue2 = (value & mask2) >> shift2; - ps.BreachLength = (byte)newValue2; - - uint mask3 = 0xff00; - byte shift3 = 40; - uint newValue3 = (value & mask3) >> shift3; - ps.BreachLocation = (TankDitchAndConcertinaWire.BreachLocationValue)newValue3; - - return ps; - } - - /// - /// Gets or sets the breach. - /// - /// The breach. - public TankDitchAndConcertinaWire.BreachValue Breach - { - get { return this.breach; } - set { this.breach = value; } - } - - /// - /// Gets or sets the breachlength. - /// - /// The breachlength. - public byte BreachLength - { - get { return this.breachLength; } - set { this.breachLength = value; } - } - - /// - /// Gets or sets the breachlocation. - /// - /// The breachlocation. - public TankDitchAndConcertinaWire.BreachLocationValue BreachLocation - { - get { return this.breachLocation; } - set { this.breachLocation = value; } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - if (obj == null) - { - return false; - } - - if (!(obj is TankDitchAndConcertinaWire)) - { - return false; - } - - return this.Equals((TankDitchAndConcertinaWire)obj); - } - - /// - /// Determines whether the specified instance is equal to this instance. - /// - /// The instance to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public bool Equals(TankDitchAndConcertinaWire other) - { - // If parameter is null return false (cast to object to prevent recursive loop!) - if ((object)other == null) - { - return false; - } - - return - this.Breach == other.Breach && - this.BreachLength == other.BreachLength && - this.BreachLocation == other.BreachLocation; - } - - /// - /// Converts the instance of to the byte array. - /// - /// The byte array representing the current instance. - public byte[] ToByteArray() - { - return BitConverter.GetBytes(this.ToUInt32()); - } - - /// - /// Converts the instance of to the uint value. - /// - /// The uint value representing the current instance. - public uint ToUInt32() - { - uint val = 0; - - val |= (uint)((uint)this.Breach << 16); - val |= (uint)((uint)this.BreachLength << 32); - val |= (uint)((uint)this.BreachLocation << 40); - - return val; - } - - /// - /// Returns a hash code for this instance. - /// - /// - /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - /// - public override int GetHashCode() - { - int hash = 17; - - // Overflow is fine, just wrap - unchecked - { - hash = (hash * 29) + this.Breach.GetHashCode(); - hash = (hash * 29) + this.BreachLength.GetHashCode(); - hash = (hash * 29) + this.BreachLocation.GetHashCode(); - } - - return hash; - } - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Environment.ObjectState +{ + /// + /// Enumeration values for TankDitchAndConcertinaWire (env.obj.appear.linear.tankditch, Tank ditch, and Concertina Wire, + /// section 12.1.2.3.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public struct TankDitchAndConcertinaWire + { + /// + /// Describes the breached appearance of the object + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Describes the breached appearance of the object")] + public enum BreachValue : uint + { + /// + /// No breaching + /// + NoBreaching = 0, + + /// + /// Slight breaching + /// + SlightBreaching = 1, + + /// + /// Moderate breached + /// + ModerateBreached = 2, + + /// + /// Cleared + /// + Cleared = 3 + } + + /// + /// Each bit indicates whether its associated segment is breached or not. Bit 40+i indicates whether the portion of the segment beginning at the segment origin + (i*Breach Length) and extending i* Breach Length meters is breached or not. For each bit: + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Each bit indicates whether its associated segment is breached or not. Bit 40+i indicates whether the portion of the segment beginning at the segment origin + (i*Breach Length) and extending i* Breach Length meters is breached or not. For each bit:")] + public enum BreachLocationValue : uint + { + /// + /// Associated portion of segment is not breached + /// + AssociatedPortionOfSegmentIsNotBreached = 0, + + /// + /// Associated portion of segment is breached + /// + AssociatedPortionOfSegmentIsBreached = 1 + } + + private TankDitchAndConcertinaWire.BreachValue breach; + private byte breachLength; + private TankDitchAndConcertinaWire.BreachLocationValue breachLocation; + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(TankDitchAndConcertinaWire left, TankDitchAndConcertinaWire right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator ==(TankDitchAndConcertinaWire left, TankDitchAndConcertinaWire right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + // If parameters are null return false (cast to object to prevent recursive loop!) + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The scheme instance. + /// The result of the conversion. + public static explicit operator uint(TankDitchAndConcertinaWire obj) + { + return obj.ToUInt32(); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The uint value. + /// The result of the conversion. + public static explicit operator TankDitchAndConcertinaWire(uint value) + { + return TankDitchAndConcertinaWire.FromUInt32(value); + } + + /// + /// Creates the instance from the byte array. + /// + /// The array which holds the values for the . + /// The starting position within value. + /// The instance, represented by a byte array. + /// if the array is null. + /// if the index is lower than 0 or greater or equal than number of elements in array. + public static TankDitchAndConcertinaWire FromByteArray(byte[] array, int index) + { + if (array == null) + { + throw new ArgumentNullException("array"); + } + + if (index < 0 || + index > array.Length - 1 || + index + 4 > array.Length - 1) + { + throw new IndexOutOfRangeException(); + } + + return FromUInt32(BitConverter.ToUInt32(array, index)); + } + + /// + /// Creates the instance from the uint value. + /// + /// The uint value which represents the instance. + /// The instance, represented by the uint value. + public static TankDitchAndConcertinaWire FromUInt32(uint value) + { + TankDitchAndConcertinaWire ps = new TankDitchAndConcertinaWire(); + + uint mask0 = 0x30000; + byte shift0 = 16; + uint newValue0 = (value & mask0) >> shift0; + ps.Breach = (TankDitchAndConcertinaWire.BreachValue)newValue0; + + uint mask2 = 0x00ff; + byte shift2 = 32; + uint newValue2 = (value & mask2) >> shift2; + ps.BreachLength = (byte)newValue2; + + uint mask3 = 0xff00; + byte shift3 = 40; + uint newValue3 = (value & mask3) >> shift3; + ps.BreachLocation = (TankDitchAndConcertinaWire.BreachLocationValue)newValue3; + + return ps; + } + + /// + /// Gets or sets the breach. + /// + /// The breach. + public TankDitchAndConcertinaWire.BreachValue Breach + { + get { return this.breach; } + set { this.breach = value; } + } + + /// + /// Gets or sets the breachlength. + /// + /// The breachlength. + public byte BreachLength + { + get { return this.breachLength; } + set { this.breachLength = value; } + } + + /// + /// Gets or sets the breachlocation. + /// + /// The breachlocation. + public TankDitchAndConcertinaWire.BreachLocationValue BreachLocation + { + get { return this.breachLocation; } + set { this.breachLocation = value; } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (!(obj is TankDitchAndConcertinaWire)) + { + return false; + } + + return this.Equals((TankDitchAndConcertinaWire)obj); + } + + /// + /// Determines whether the specified instance is equal to this instance. + /// + /// The instance to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public bool Equals(TankDitchAndConcertinaWire other) + { + // If parameter is null return false (cast to object to prevent recursive loop!) + if ((object)other == null) + { + return false; + } + + return + this.Breach == other.Breach && + this.BreachLength == other.BreachLength && + this.BreachLocation == other.BreachLocation; + } + + /// + /// Converts the instance of to the byte array. + /// + /// The byte array representing the current instance. + public byte[] ToByteArray() + { + return BitConverter.GetBytes(this.ToUInt32()); + } + + /// + /// Converts the instance of to the uint value. + /// + /// The uint value representing the current instance. + public uint ToUInt32() + { + uint val = 0; + + val |= (uint)((uint)this.Breach << 16); + val |= (uint)((uint)this.BreachLength << 32); + val |= (uint)((uint)this.BreachLocation << 40); + + return val; + } + + /// + /// Returns a hash code for this instance. + /// + /// + /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + /// + public override int GetHashCode() + { + int hash = 17; + + // Overflow is fine, just wrap + unchecked + { + hash = (hash * 29) + this.Breach.GetHashCode(); + hash = (hash * 29) + this.BreachLength.GetHashCode(); + hash = (hash * 29) + this.BreachLocation.GetHashCode(); + } + + return hash; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Environment.Process/EnvironmentStatus.cs b/Libs/CsharpDis6/Enumerations/Environment.Process/EnvironmentStatus.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Environment.Process/EnvironmentStatus.cs rename to Libs/CsharpDis6/Enumerations/Environment.Process/EnvironmentStatus.cs index 5328832..427b7b9 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Environment.Process/EnvironmentStatus.cs +++ b/Libs/CsharpDis6/Enumerations/Environment.Process/EnvironmentStatus.cs @@ -1,50 +1,50 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Environment.Process -{ - /// - /// Enumeration values for EnvironmentStatus (env.process.environmentstatus, Environment Status, - /// section 12.3.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - [Flags] - public enum EnvironmentStatus : byte - { - /// - /// Indicates that the current PDU shall be the last PDU for the specified process - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Indicates that the current PDU shall be the last PDU for the specified process")] - Last = 1, - - /// - /// Indicates that the specified environmental process is active - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Indicates that the specified environmental process is active")] - On = 2 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Environment.Process +{ + /// + /// Enumeration values for EnvironmentStatus (env.process.environmentstatus, Environment Status, + /// section 12.3.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + [Flags] + public enum EnvironmentStatus : byte + { + /// + /// Indicates that the current PDU shall be the last PDU for the specified process + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Indicates that the current PDU shall be the last PDU for the specified process")] + Last = 1, + + /// + /// Indicates that the specified environmental process is active + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Indicates that the specified environmental process is active")] + On = 2 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Environment.Process/EnvironmentalProcessTypesForGeometryRecord.cs b/Libs/CsharpDis6/Enumerations/Environment.Process/EnvironmentalProcessTypesForGeometryRecord.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Environment.Process/EnvironmentalProcessTypesForGeometryRecord.cs rename to Libs/CsharpDis6/Enumerations/Environment.Process/EnvironmentalProcessTypesForGeometryRecord.cs index 13ac167..fae01ca 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Environment.Process/EnvironmentalProcessTypesForGeometryRecord.cs +++ b/Libs/CsharpDis6/Enumerations/Environment.Process/EnvironmentalProcessTypesForGeometryRecord.cs @@ -1,199 +1,199 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Environment.Process -{ - /// - /// Enumeration values for EnvironmentalProcessTypesForGeometryRecord (env.process.type.geometryrecord, Type field values for Geometry record, - /// section 12.3.3.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum EnvironmentalProcessTypesForGeometryRecord : uint - { - /// - /// Point Record 1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Point Record 1.")] - PointRecord1 = 655360, - - /// - /// Point Record 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Point Record 2.")] - PointRecord2 = 167772160, - - /// - /// Line Record 1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Line Record 1.")] - LineRecord1 = 786432, - - /// - /// Line Record 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Line Record 2.")] - LineRecord2 = 201326592, - - /// - /// Bounding Sphere Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Bounding Sphere Record.")] - BoundingSphereRecord = 65536, - - /// - /// Sphere Record 1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sphere Record 1.")] - SphereRecord1 = 851968, - - /// - /// Sphere Record 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sphere Record 2.")] - SphereRecord2 = 218103808, - - /// - /// Ellipsoid Record 1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ellipsoid Record 1.")] - EllipsoidRecord1 = 1048576, - - /// - /// Ellipsoid Record 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ellipsoid Record 2.")] - EllipsoidRecord2 = 268435456, - - /// - /// Cone Record 1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Cone Record 1.")] - ConeRecord1 = 3145728, - - /// - /// Cone Record 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Cone Record 2.")] - ConeRecord2 = 805306368, - - /// - /// Uniform Geometry Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Uniform Geometry Record.")] - UniformGeometryRecord = 327680, - - /// - /// Rectangular Volume Record 1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Rectangular Volume Record 1.")] - RectangularVolumeRecord1 = 5242880, - - /// - /// Rectangular Volume Record 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Rectangular Volume Record 2.")] - RectangularVolumeRecord2 = 1342177280, - - /// - /// Gaussian Plume Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Gaussian Plume Record.")] - GaussianPlumeRecord = 1610612736, - - /// - /// Gaussian Puff Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Gaussian Puff Record.")] - GaussianPuffRecord = 1879048192, - - /// - /// Rectangular Volume Record 3. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Rectangular Volume Record 3.")] - RectangularVolumeRecord3 = 83886080 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Environment.Process +{ + /// + /// Enumeration values for EnvironmentalProcessTypesForGeometryRecord (env.process.type.geometryrecord, Type field values for Geometry record, + /// section 12.3.3.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum EnvironmentalProcessTypesForGeometryRecord : uint + { + /// + /// Point Record 1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Point Record 1.")] + PointRecord1 = 655360, + + /// + /// Point Record 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Point Record 2.")] + PointRecord2 = 167772160, + + /// + /// Line Record 1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Line Record 1.")] + LineRecord1 = 786432, + + /// + /// Line Record 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Line Record 2.")] + LineRecord2 = 201326592, + + /// + /// Bounding Sphere Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Bounding Sphere Record.")] + BoundingSphereRecord = 65536, + + /// + /// Sphere Record 1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sphere Record 1.")] + SphereRecord1 = 851968, + + /// + /// Sphere Record 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sphere Record 2.")] + SphereRecord2 = 218103808, + + /// + /// Ellipsoid Record 1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ellipsoid Record 1.")] + EllipsoidRecord1 = 1048576, + + /// + /// Ellipsoid Record 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ellipsoid Record 2.")] + EllipsoidRecord2 = 268435456, + + /// + /// Cone Record 1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Cone Record 1.")] + ConeRecord1 = 3145728, + + /// + /// Cone Record 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Cone Record 2.")] + ConeRecord2 = 805306368, + + /// + /// Uniform Geometry Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Uniform Geometry Record.")] + UniformGeometryRecord = 327680, + + /// + /// Rectangular Volume Record 1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Rectangular Volume Record 1.")] + RectangularVolumeRecord1 = 5242880, + + /// + /// Rectangular Volume Record 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Rectangular Volume Record 2.")] + RectangularVolumeRecord2 = 1342177280, + + /// + /// Gaussian Plume Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Gaussian Plume Record.")] + GaussianPlumeRecord = 1610612736, + + /// + /// Gaussian Puff Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Gaussian Puff Record.")] + GaussianPuffRecord = 1879048192, + + /// + /// Rectangular Volume Record 3. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Rectangular Volume Record 3.")] + RectangularVolumeRecord3 = 83886080 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Environment.Process/EnvironmentalProcessTypesForStateRecord.cs b/Libs/CsharpDis6/Enumerations/Environment.Process/EnvironmentalProcessTypesForStateRecord.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Environment.Process/EnvironmentalProcessTypesForStateRecord.cs rename to Libs/CsharpDis6/Enumerations/Environment.Process/EnvironmentalProcessTypesForStateRecord.cs index ff57a51..a107538 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Environment.Process/EnvironmentalProcessTypesForStateRecord.cs +++ b/Libs/CsharpDis6/Enumerations/Environment.Process/EnvironmentalProcessTypesForStateRecord.cs @@ -1,49 +1,49 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Environment.Process -{ - /// - /// Enumeration values for EnvironmentalProcessTypesForStateRecord (env.process.type.staterecord, Type field values for State record, - /// section 12.3.3.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum EnvironmentalProcessTypesForStateRecord : uint - { - /// - /// COMBIC State. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("COMBIC State.")] - COMBICState = 256, - - /// - /// Flare State. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Flare State.")] - FlareState = 259 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Environment.Process +{ + /// + /// Enumeration values for EnvironmentalProcessTypesForStateRecord (env.process.type.staterecord, Type field values for State record, + /// section 12.3.3.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum EnvironmentalProcessTypesForStateRecord : uint + { + /// + /// COMBIC State. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("COMBIC State.")] + COMBICState = 256, + + /// + /// Flare State. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Flare State.")] + FlareState = 259 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Logistics/AuxilaryCraftRepairCode.cs b/Libs/CsharpDis6/Enumerations/Logistics/AuxilaryCraftRepairCode.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Logistics/AuxilaryCraftRepairCode.cs rename to Libs/CsharpDis6/Enumerations/Logistics/AuxilaryCraftRepairCode.cs index 520d528..e942071 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Logistics/AuxilaryCraftRepairCode.cs +++ b/Libs/CsharpDis6/Enumerations/Logistics/AuxilaryCraftRepairCode.cs @@ -1,59 +1,59 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Logistics -{ - /// - /// Enumeration values for AuxilaryCraftRepairCode (log.repaircomplete.auxilary, Auxiliary craft, - /// section 6.2.10) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum AuxilaryCraftRepairCode : ushort - { - /// - /// life boats. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("life boats.")] - LifeBoats = 10000, - - /// - /// landing craft. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("landing craft.")] - LandingCraft = 10010, - - /// - /// ejection seats. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ejection seats.")] - EjectionSeats = 10020 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Logistics +{ + /// + /// Enumeration values for AuxilaryCraftRepairCode (log.repaircomplete.auxilary, Auxiliary craft, + /// section 6.2.10) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum AuxilaryCraftRepairCode : ushort + { + /// + /// life boats. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("life boats.")] + LifeBoats = 10000, + + /// + /// landing craft. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("landing craft.")] + LandingCraft = 10010, + + /// + /// ejection seats. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ejection seats.")] + EjectionSeats = 10020 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Logistics/DriveTrainRepairCode.cs b/Libs/CsharpDis6/Enumerations/Logistics/DriveTrainRepairCode.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Logistics/DriveTrainRepairCode.cs rename to Libs/CsharpDis6/Enumerations/Logistics/DriveTrainRepairCode.cs index 5d01bd0..8ca401b 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Logistics/DriveTrainRepairCode.cs +++ b/Libs/CsharpDis6/Enumerations/Logistics/DriveTrainRepairCode.cs @@ -1,179 +1,179 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Logistics -{ - /// - /// Enumeration values for DriveTrainRepairCode (log.repaircomplete.drivetrain, Drive train, - /// section 6.2.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum DriveTrainRepairCode : ushort - { - /// - /// motor / engine. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("motor / engine.")] - MotorEngine = 10, - - /// - /// starter. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("starter.")] - Starter = 20, - - /// - /// alternator. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("alternator.")] - Alternator = 30, - - /// - /// generator. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("generator.")] - Generator = 40, - - /// - /// battery. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("battery.")] - Battery = 50, - - /// - /// engine-coolant leak. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("engine-coolant leak.")] - EngineCoolantLeak = 60, - - /// - /// fuel filter. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("fuel filter.")] - FuelFilter = 70, - - /// - /// transmission-oil leak. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("transmission-oil leak.")] - TransmissionOilLeak = 80, - - /// - /// engine-oil leak. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("engine-oil leak.")] - EngineOilLeak = 90, - - /// - /// pumps. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("pumps.")] - Pumps = 100, - - /// - /// filters. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("filters.")] - Filters = 110, - - /// - /// transmission. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("transmission.")] - Transmission = 120, - - /// - /// brakes. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("brakes.")] - Brakes = 130, - - /// - /// suspension system. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("suspension system.")] - SuspensionSystem = 140, - - /// - /// oil filter. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("oil filter.")] - OilFilter = 150 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Logistics +{ + /// + /// Enumeration values for DriveTrainRepairCode (log.repaircomplete.drivetrain, Drive train, + /// section 6.2.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum DriveTrainRepairCode : ushort + { + /// + /// motor / engine. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("motor / engine.")] + MotorEngine = 10, + + /// + /// starter. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("starter.")] + Starter = 20, + + /// + /// alternator. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("alternator.")] + Alternator = 30, + + /// + /// generator. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("generator.")] + Generator = 40, + + /// + /// battery. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("battery.")] + Battery = 50, + + /// + /// engine-coolant leak. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("engine-coolant leak.")] + EngineCoolantLeak = 60, + + /// + /// fuel filter. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("fuel filter.")] + FuelFilter = 70, + + /// + /// transmission-oil leak. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("transmission-oil leak.")] + TransmissionOilLeak = 80, + + /// + /// engine-oil leak. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("engine-oil leak.")] + EngineOilLeak = 90, + + /// + /// pumps. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("pumps.")] + Pumps = 100, + + /// + /// filters. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("filters.")] + Filters = 110, + + /// + /// transmission. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("transmission.")] + Transmission = 120, + + /// + /// brakes. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("brakes.")] + Brakes = 130, + + /// + /// suspension system. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("suspension system.")] + SuspensionSystem = 140, + + /// + /// oil filter. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("oil filter.")] + OilFilter = 150 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Logistics/ElectronicsRepairCode.cs b/Libs/CsharpDis6/Enumerations/Logistics/ElectronicsRepairCode.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Logistics/ElectronicsRepairCode.cs rename to Libs/CsharpDis6/Enumerations/Logistics/ElectronicsRepairCode.cs index 472c756..226e4f5 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Logistics/ElectronicsRepairCode.cs +++ b/Libs/CsharpDis6/Enumerations/Logistics/ElectronicsRepairCode.cs @@ -1,269 +1,269 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Logistics -{ - /// - /// Enumeration values for ElectronicsRepairCode (log.repaircomplete.electronics, Electronics, - /// section 6.2.7) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum ElectronicsRepairCode : ushort - { - /// - /// electronic warfare systems. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("electronic warfare systems.")] - ElectronicWarfareSystems = 4500, - - /// - /// detection systems. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("detection systems.")] - DetectionSystems = 4600, - - /// - /// radio frequency. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("radio frequency.")] - RadioFrequency = 4610, - - /// - /// microwave. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("microwave.")] - Microwave = 4620, - - /// - /// infrared. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("infrared.")] - Infrared = 4630, - - /// - /// laser. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("laser.")] - Laser = 4640, - - /// - /// range finders. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("range finders.")] - RangeFinders = 4700, - - /// - /// range-only radar. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("range-only radar.")] - RangeOnlyRadar = 4710, - - /// - /// laser range finder. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("laser range finder.")] - LaserRangeFinder = 4720, - - /// - /// electronic systems. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("electronic systems.")] - ElectronicSystems = 4800, - - /// - /// radio frequency. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("radio frequency.")] - RadioFrequency_4810 = 4810, - - /// - /// microwave. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("microwave.")] - Microwave_4820 = 4820, - - /// - /// infrared. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("infrared.")] - Infrared_4830 = 4830, - - /// - /// laser. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("laser.")] - Laser_4840 = 4840, - - /// - /// radios. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("radios.")] - Radios = 5000, - - /// - /// communication systems. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("communication systems.")] - CommunicationSystems = 5010, - - /// - /// intercoms. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("intercoms.")] - Intercoms = 5100, - - /// - /// encoders. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("encoders.")] - Encoders = 5200, - - /// - /// encryption devices. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("encryption devices.")] - EncryptionDevices = 5250, - - /// - /// decoders. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("decoders.")] - Decoders = 5300, - - /// - /// decryption devices. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("decryption devices.")] - DecryptionDevices = 5350, - - /// - /// computers. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("computers.")] - Computers = 5500, - - /// - /// navigation and control systems. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("navigation and control systems.")] - NavigationAndControlSystems = 6000, - - /// - /// fire control systems. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("fire control systems.")] - FireControlSystems = 6500 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Logistics +{ + /// + /// Enumeration values for ElectronicsRepairCode (log.repaircomplete.electronics, Electronics, + /// section 6.2.7) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum ElectronicsRepairCode : ushort + { + /// + /// electronic warfare systems. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("electronic warfare systems.")] + ElectronicWarfareSystems = 4500, + + /// + /// detection systems. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("detection systems.")] + DetectionSystems = 4600, + + /// + /// radio frequency. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("radio frequency.")] + RadioFrequency = 4610, + + /// + /// microwave. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("microwave.")] + Microwave = 4620, + + /// + /// infrared. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("infrared.")] + Infrared = 4630, + + /// + /// laser. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("laser.")] + Laser = 4640, + + /// + /// range finders. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("range finders.")] + RangeFinders = 4700, + + /// + /// range-only radar. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("range-only radar.")] + RangeOnlyRadar = 4710, + + /// + /// laser range finder. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("laser range finder.")] + LaserRangeFinder = 4720, + + /// + /// electronic systems. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("electronic systems.")] + ElectronicSystems = 4800, + + /// + /// radio frequency. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("radio frequency.")] + RadioFrequency_4810 = 4810, + + /// + /// microwave. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("microwave.")] + Microwave_4820 = 4820, + + /// + /// infrared. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("infrared.")] + Infrared_4830 = 4830, + + /// + /// laser. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("laser.")] + Laser_4840 = 4840, + + /// + /// radios. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("radios.")] + Radios = 5000, + + /// + /// communication systems. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("communication systems.")] + CommunicationSystems = 5010, + + /// + /// intercoms. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("intercoms.")] + Intercoms = 5100, + + /// + /// encoders. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("encoders.")] + Encoders = 5200, + + /// + /// encryption devices. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("encryption devices.")] + EncryptionDevices = 5250, + + /// + /// decoders. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("decoders.")] + Decoders = 5300, + + /// + /// decryption devices. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("decryption devices.")] + DecryptionDevices = 5350, + + /// + /// computers. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("computers.")] + Computers = 5500, + + /// + /// navigation and control systems. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("navigation and control systems.")] + NavigationAndControlSystems = 6000, + + /// + /// fire control systems. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("fire control systems.")] + FireControlSystems = 6500 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Logistics/FuelSystemRepairCode.cs b/Libs/CsharpDis6/Enumerations/Logistics/FuelSystemRepairCode.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Logistics/FuelSystemRepairCode.cs rename to Libs/CsharpDis6/Enumerations/Logistics/FuelSystemRepairCode.cs index b197cba..710a767 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Logistics/FuelSystemRepairCode.cs +++ b/Libs/CsharpDis6/Enumerations/Logistics/FuelSystemRepairCode.cs @@ -1,69 +1,69 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Logistics -{ - /// - /// Enumeration values for FuelSystemRepairCode (log.repaircomplete.fuelsystem, Fuel systems, - /// section 6.2.6) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum FuelSystemRepairCode : ushort - { - /// - /// fuel transfer pump. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("fuel transfer pump.")] - FuelTransferPump = 4000, - - /// - /// fuel lines. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("fuel lines.")] - FuelLines = 4010, - - /// - /// gauges. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("gauges.")] - Gauges = 4020, - - /// - /// general fuel system. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("general fuel system.")] - GeneralFuelSystem = 4030 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Logistics +{ + /// + /// Enumeration values for FuelSystemRepairCode (log.repaircomplete.fuelsystem, Fuel systems, + /// section 6.2.6) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum FuelSystemRepairCode : ushort + { + /// + /// fuel transfer pump. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("fuel transfer pump.")] + FuelTransferPump = 4000, + + /// + /// fuel lines. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("fuel lines.")] + FuelLines = 4010, + + /// + /// gauges. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("gauges.")] + Gauges = 4020, + + /// + /// general fuel system. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("general fuel system.")] + GeneralFuelSystem = 4030 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Logistics/GeneralRepairCode.cs b/Libs/CsharpDis6/Enumerations/Logistics/GeneralRepairCode.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Logistics/GeneralRepairCode.cs rename to Libs/CsharpDis6/Enumerations/Logistics/GeneralRepairCode.cs index 043db06..3620bd3 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Logistics/GeneralRepairCode.cs +++ b/Libs/CsharpDis6/Enumerations/Logistics/GeneralRepairCode.cs @@ -1,49 +1,49 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Logistics -{ - /// - /// Enumeration values for GeneralRepairCode (log.repaircomplete.general, General repair codes, - /// section 6.2.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum GeneralRepairCode : ushort - { - /// - /// no repairs performed. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("no repairs performed.")] - NoRepairsPerformed = 0, - - /// - /// all requested repairs performed. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("all requested repairs performed.")] - AllRequestedRepairsPerformed = 1 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Logistics +{ + /// + /// Enumeration values for GeneralRepairCode (log.repaircomplete.general, General repair codes, + /// section 6.2.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum GeneralRepairCode : ushort + { + /// + /// no repairs performed. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("no repairs performed.")] + NoRepairsPerformed = 0, + + /// + /// all requested repairs performed. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("all requested repairs performed.")] + AllRequestedRepairsPerformed = 1 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Logistics/HullAirframeBodyRepairCode.cs b/Libs/CsharpDis6/Enumerations/Logistics/HullAirframeBodyRepairCode.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Logistics/HullAirframeBodyRepairCode.cs rename to Libs/CsharpDis6/Enumerations/Logistics/HullAirframeBodyRepairCode.cs index c07e2b6..09f133a 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Logistics/HullAirframeBodyRepairCode.cs +++ b/Libs/CsharpDis6/Enumerations/Logistics/HullAirframeBodyRepairCode.cs @@ -1,89 +1,89 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Logistics -{ - /// - /// Enumeration values for HullAirframeBodyRepairCode (log.repaircomplete.hull, Hull/Airframe/B, - /// section 6.2.3) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum HullAirframeBodyRepairCode : ushort - { - /// - /// hull. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("hull.")] - Hull = 1000, - - /// - /// airframe. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("airframe.")] - Airframe = 1010, - - /// - /// truck body. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("truck body.")] - TruckBody = 1020, - - /// - /// tank body. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("tank body.")] - TankBody = 1030, - - /// - /// trailer body. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("trailer body.")] - TrailerBody = 1040, - - /// - /// turret. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("turret.")] - Turret = 1050 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Logistics +{ + /// + /// Enumeration values for HullAirframeBodyRepairCode (log.repaircomplete.hull, Hull/Airframe/B, + /// section 6.2.3) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum HullAirframeBodyRepairCode : ushort + { + /// + /// hull. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("hull.")] + Hull = 1000, + + /// + /// airframe. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("airframe.")] + Airframe = 1010, + + /// + /// truck body. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("truck body.")] + TruckBody = 1020, + + /// + /// tank body. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("tank body.")] + TankBody = 1030, + + /// + /// trailer body. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("trailer body.")] + TrailerBody = 1040, + + /// + /// turret. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("turret.")] + Turret = 1050 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Logistics/HydraulicSystemsAndActuators.cs b/Libs/CsharpDis6/Enumerations/Logistics/HydraulicSystemsAndActuators.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Logistics/HydraulicSystemsAndActuators.cs rename to Libs/CsharpDis6/Enumerations/Logistics/HydraulicSystemsAndActuators.cs index 16e3d6d..4ca15e8 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Logistics/HydraulicSystemsAndActuators.cs +++ b/Libs/CsharpDis6/Enumerations/Logistics/HydraulicSystemsAndActuators.cs @@ -1,89 +1,89 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Logistics -{ - /// - /// Enumeration values for HydraulicSystemsAndActuators (log.repaircomplete.hydraulic, Hydraulic systems and actuators, - /// section 6.2.9) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum HydraulicSystemsAndActuators : ushort - { - /// - /// water supply. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("water supply.")] - WaterSupply = 9000, - - /// - /// cooling system. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("cooling system.")] - CoolingSystem = 9010, - - /// - /// winches. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("winches.")] - Winches = 9020, - - /// - /// catapults. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("catapults.")] - Catapults = 9030, - - /// - /// cranes. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("cranes.")] - Cranes = 9040, - - /// - /// launchers. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("launchers.")] - Launchers = 9050 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Logistics +{ + /// + /// Enumeration values for HydraulicSystemsAndActuators (log.repaircomplete.hydraulic, Hydraulic systems and actuators, + /// section 6.2.9) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum HydraulicSystemsAndActuators : ushort + { + /// + /// water supply. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("water supply.")] + WaterSupply = 9000, + + /// + /// cooling system. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("cooling system.")] + CoolingSystem = 9010, + + /// + /// winches. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("winches.")] + Winches = 9020, + + /// + /// catapults. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("catapults.")] + Catapults = 9030, + + /// + /// cranes. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("cranes.")] + Cranes = 9040, + + /// + /// launchers. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("launchers.")] + Launchers = 9050 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Logistics/InterfacesWithEnvironmentRepairCode.cs b/Libs/CsharpDis6/Enumerations/Logistics/InterfacesWithEnvironmentRepairCode.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Logistics/InterfacesWithEnvironmentRepairCode.cs rename to Libs/CsharpDis6/Enumerations/Logistics/InterfacesWithEnvironmentRepairCode.cs index 55d6411..fb4d56a 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Logistics/InterfacesWithEnvironmentRepairCode.cs +++ b/Libs/CsharpDis6/Enumerations/Logistics/InterfacesWithEnvironmentRepairCode.cs @@ -1,79 +1,79 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Logistics -{ - /// - /// Enumeration values for InterfacesWithEnvironmentRepairCode (log.repaircomplete.environment, Interfaces with environment, - /// section 6.2.4) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum InterfacesWithEnvironmentRepairCode : ushort - { - /// - /// propeller. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("propeller.")] - Propeller = 1500, - - /// - /// filters. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("filters.")] - Filters = 1520, - - /// - /// wheels. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("wheels.")] - Wheels = 1540, - - /// - /// tire. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("tire.")] - Tire = 1550, - - /// - /// track. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("track.")] - Track = 1560 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Logistics +{ + /// + /// Enumeration values for InterfacesWithEnvironmentRepairCode (log.repaircomplete.environment, Interfaces with environment, + /// section 6.2.4) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum InterfacesWithEnvironmentRepairCode : ushort + { + /// + /// propeller. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("propeller.")] + Propeller = 1500, + + /// + /// filters. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("filters.")] + Filters = 1520, + + /// + /// wheels. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("wheels.")] + Wheels = 1540, + + /// + /// tire. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("tire.")] + Tire = 1550, + + /// + /// track. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("track.")] + Track = 1560 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Logistics/LifeSupportRepairCode.cs b/Libs/CsharpDis6/Enumerations/Logistics/LifeSupportRepairCode.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Logistics/LifeSupportRepairCode.cs rename to Libs/CsharpDis6/Enumerations/Logistics/LifeSupportRepairCode.cs index 1b4f866..9e5f2b0 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Logistics/LifeSupportRepairCode.cs +++ b/Libs/CsharpDis6/Enumerations/Logistics/LifeSupportRepairCode.cs @@ -1,99 +1,99 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Logistics -{ - /// - /// Enumeration values for LifeSupportRepairCode (log.repaircomplete.lifesupport, Life support systems, - /// section 6.2.8) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum LifeSupportRepairCode : ushort - { - /// - /// air supply. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("air supply.")] - AirSupply = 8000, - - /// - /// filters. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("filters.")] - Filters = 8010, - - /// - /// water supply. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("water supply.")] - WaterSupply = 8020, - - /// - /// refrigeration system. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("refrigeration system.")] - RefrigerationSystem = 8030, - - /// - /// chemical, biological, and radiological protection. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("chemical, biological, and radiological protection.")] - ChemicalBiologicalAndRadiologicalProtection = 8040, - - /// - /// water wash down systems. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("water wash down systems.")] - WaterWashDownSystems = 8050, - - /// - /// decontamination systems. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("decontamination systems.")] - DecontaminationSystems = 8060 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Logistics +{ + /// + /// Enumeration values for LifeSupportRepairCode (log.repaircomplete.lifesupport, Life support systems, + /// section 6.2.8) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum LifeSupportRepairCode : ushort + { + /// + /// air supply. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("air supply.")] + AirSupply = 8000, + + /// + /// filters. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("filters.")] + Filters = 8010, + + /// + /// water supply. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("water supply.")] + WaterSupply = 8020, + + /// + /// refrigeration system. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("refrigeration system.")] + RefrigerationSystem = 8030, + + /// + /// chemical, biological, and radiological protection. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("chemical, biological, and radiological protection.")] + ChemicalBiologicalAndRadiologicalProtection = 8040, + + /// + /// water wash down systems. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("water wash down systems.")] + WaterWashDownSystems = 8050, + + /// + /// decontamination systems. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("decontamination systems.")] + DecontaminationSystems = 8060 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Logistics/ResponseResultCode.cs b/Libs/CsharpDis6/Enumerations/Logistics/ResponseResultCode.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Logistics/ResponseResultCode.cs rename to Libs/CsharpDis6/Enumerations/Logistics/ResponseResultCode.cs index f3cff51..3b87272 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Logistics/ResponseResultCode.cs +++ b/Libs/CsharpDis6/Enumerations/Logistics/ResponseResultCode.cs @@ -1,79 +1,79 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Logistics -{ - /// - /// Enumeration values for ResponseResultCode (log.repairresponse, Repair Response PDU, - /// section 6.3) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum ResponseResultCode : byte - { - /// - /// other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("other.")] - Other = 0, - - /// - /// repair ended. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("repair ended.")] - RepairEnded = 1, - - /// - /// invalid repair. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("invalid repair.")] - InvalidRepair = 2, - - /// - /// repair interrupted. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("repair interrupted.")] - RepairInterrupted = 3, - - /// - /// service canceled by the supplier. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("service canceled by the supplier.")] - ServiceCanceledByTheSupplier = 4 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Logistics +{ + /// + /// Enumeration values for ResponseResultCode (log.repairresponse, Repair Response PDU, + /// section 6.3) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum ResponseResultCode : byte + { + /// + /// other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("other.")] + Other = 0, + + /// + /// repair ended. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("repair ended.")] + RepairEnded = 1, + + /// + /// invalid repair. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("invalid repair.")] + InvalidRepair = 2, + + /// + /// repair interrupted. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("repair interrupted.")] + RepairInterrupted = 3, + + /// + /// service canceled by the supplier. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("service canceled by the supplier.")] + ServiceCanceledByTheSupplier = 4 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Logistics/ServiceRequestType.cs b/Libs/CsharpDis6/Enumerations/Logistics/ServiceRequestType.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Logistics/ServiceRequestType.cs rename to Libs/CsharpDis6/Enumerations/Logistics/ServiceRequestType.cs index a1e7778..caacae0 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Logistics/ServiceRequestType.cs +++ b/Libs/CsharpDis6/Enumerations/Logistics/ServiceRequestType.cs @@ -1,59 +1,59 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Logistics -{ - /// - /// Enumeration values for ServiceRequestType (log.servicerequest, Service Request PDU, - /// section 6.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum ServiceRequestType : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Resupply. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Resupply.")] - Resupply = 1, - - /// - /// Repair. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Repair.")] - Repair = 2 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Logistics +{ + /// + /// Enumeration values for ServiceRequestType (log.servicerequest, Service Request PDU, + /// section 6.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum ServiceRequestType : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Resupply. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Resupply.")] + Resupply = 1, + + /// + /// Repair. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Repair.")] + Repair = 2 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Logistics/WeaponRepairCode.cs b/Libs/CsharpDis6/Enumerations/Logistics/WeaponRepairCode.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Logistics/WeaponRepairCode.cs rename to Libs/CsharpDis6/Enumerations/Logistics/WeaponRepairCode.cs index d00ee27..bde1c72 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Logistics/WeaponRepairCode.cs +++ b/Libs/CsharpDis6/Enumerations/Logistics/WeaponRepairCode.cs @@ -1,149 +1,149 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Logistics -{ - /// - /// Enumeration values for WeaponRepairCode (log.repaircomplete.weapons, Weapons, - /// section 6.2.5) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum WeaponRepairCode : ushort - { - /// - /// gun elevation drive. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("gun elevation drive.")] - GunElevationDrive = 2000, - - /// - /// gun stabilization system. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("gun stabilization system.")] - GunStabilizationSystem = 2010, - - /// - /// gunner's primary sight (GPS). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("gunner's primary sight (GPS).")] - GunnerSPrimarySightGPS = 2020, - - /// - /// commander's extension to the GPS. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("commander's extension to the GPS.")] - CommanderSExtensionToTheGPS = 2030, - - /// - /// loading mechanism. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("loading mechanism.")] - LoadingMechanism = 2040, - - /// - /// gunner's auxiliary sight. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("gunner's auxiliary sight.")] - GunnerSAuxiliarySight = 2050, - - /// - /// gunner's control panel. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("gunner's control panel.")] - GunnerSControlPanel = 2060, - - /// - /// gunner's control assembly handle(s). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("gunner's control assembly handle(s).")] - GunnerSControlAssemblyHandleS = 2070, - - /// - /// commander's control handles/assembly. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("commander's control handles/assembly.")] - CommanderSControlHandlesAssembly = 2090, - - /// - /// commander's weapon station. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("commander's weapon station.")] - CommanderSWeaponStation = 2100, - - /// - /// commander's independent thermal viewer (CITV). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("commander's independent thermal viewer (CITV).")] - CommanderSIndependentThermalViewerCITV = 2110, - - /// - /// general weapons. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("general weapons.")] - GeneralWeapons = 2120 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Logistics +{ + /// + /// Enumeration values for WeaponRepairCode (log.repaircomplete.weapons, Weapons, + /// section 6.2.5) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum WeaponRepairCode : ushort + { + /// + /// gun elevation drive. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("gun elevation drive.")] + GunElevationDrive = 2000, + + /// + /// gun stabilization system. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("gun stabilization system.")] + GunStabilizationSystem = 2010, + + /// + /// gunner's primary sight (GPS). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("gunner's primary sight (GPS).")] + GunnerSPrimarySightGPS = 2020, + + /// + /// commander's extension to the GPS. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("commander's extension to the GPS.")] + CommanderSExtensionToTheGPS = 2030, + + /// + /// loading mechanism. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("loading mechanism.")] + LoadingMechanism = 2040, + + /// + /// gunner's auxiliary sight. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("gunner's auxiliary sight.")] + GunnerSAuxiliarySight = 2050, + + /// + /// gunner's control panel. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("gunner's control panel.")] + GunnerSControlPanel = 2060, + + /// + /// gunner's control assembly handle(s). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("gunner's control assembly handle(s).")] + GunnerSControlAssemblyHandleS = 2070, + + /// + /// commander's control handles/assembly. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("commander's control handles/assembly.")] + CommanderSControlHandlesAssembly = 2090, + + /// + /// commander's weapon station. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("commander's weapon station.")] + CommanderSWeaponStation = 2100, + + /// + /// commander's independent thermal viewer (CITV). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("commander's independent thermal viewer (CITV).")] + CommanderSIndependentThermalViewerCITV = 2110, + + /// + /// general weapons. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("general weapons.")] + GeneralWeapons = 2120 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/PduType.cs b/Libs/CsharpDis6/Enumerations/PduType.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/PduType.cs rename to Libs/CsharpDis6/Enumerations/PduType.cs index 12385be..96d4954 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/PduType.cs +++ b/Libs/CsharpDis6/Enumerations/PduType.cs @@ -1,709 +1,709 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations -{ - /// - /// Enumeration values for PduType (pduheader.pdutype, PDU Type, - /// section 3.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum PduType : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Entity State. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Entity State.")] - EntityState = 1, - - /// - /// Fire. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fire.")] - Fire = 2, - - /// - /// Detonation. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Detonation.")] - Detonation = 3, - - /// - /// Collision. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Collision.")] - Collision = 4, - - /// - /// Service Request. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Service Request.")] - ServiceRequest = 5, - - /// - /// Resupply Offer. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Resupply Offer.")] - ResupplyOffer = 6, - - /// - /// Resupply Received. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Resupply Received.")] - ResupplyReceived = 7, - - /// - /// Resupply Cancel. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Resupply Cancel.")] - ResupplyCancel = 8, - - /// - /// Repair Complete. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Repair Complete.")] - RepairComplete = 9, - - /// - /// Repair Response. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Repair Response.")] - RepairResponse = 10, - - /// - /// Create Entity. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Create Entity.")] - CreateEntity = 11, - - /// - /// Remove Entity. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Remove Entity.")] - RemoveEntity = 12, - - /// - /// Start/Resume. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Start/Resume.")] - StartResume = 13, - - /// - /// Stop/Freeze. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Stop/Freeze.")] - StopFreeze = 14, - - /// - /// Acknowledge. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Acknowledge.")] - Acknowledge = 15, - - /// - /// Action Request. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Action Request.")] - ActionRequest = 16, - - /// - /// Action Response. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Action Response.")] - ActionResponse = 17, - - /// - /// Data Query. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Data Query.")] - DataQuery = 18, - - /// - /// Set Data. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set Data.")] - SetData = 19, - - /// - /// Data. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Data.")] - Data = 20, - - /// - /// Event Report. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Event Report.")] - EventReport = 21, - - /// - /// Comment. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Comment.")] - Comment = 22, - - /// - /// Electromagnetic Emission. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Electromagnetic Emission.")] - ElectromagneticEmission = 23, - - /// - /// Designator. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Designator.")] - Designator = 24, - - /// - /// Transmitter. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Transmitter.")] - Transmitter = 25, - - /// - /// Signal. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Signal.")] - Signal = 26, - - /// - /// Receiver. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Receiver.")] - Receiver = 27, - - /// - /// IFF/ATC/NAVAIDS. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("IFF/ATC/NAVAIDS.")] - IFF_ATC_NAVAIDS = 28, - - /// - /// Underwater Acoustic. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Underwater Acoustic.")] - UnderwaterAcoustic = 29, - - /// - /// Supplemental Emission / Entity State. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Supplemental Emission / Entity State.")] - SupplementalEmissionEntityState = 30, - - /// - /// Intercom Signal. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Intercom Signal.")] - IntercomSignal = 31, - - /// - /// Intercom Control. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Intercom Control.")] - IntercomControl = 32, - - /// - /// Aggregate State. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Aggregate State.")] - AggregateState = 33, - - /// - /// IsGroupOf. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("IsGroupOf.")] - IsGroupOf = 34, - - /// - /// Transfer Control. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Transfer Control.")] - TransferControl = 35, - - /// - /// IsPartOf. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("IsPartOf.")] - IsPartOf = 36, - - /// - /// Minefield State. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Minefield State.")] - MinefieldState = 37, - - /// - /// Minefield Query. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Minefield Query.")] - MinefieldQuery = 38, - - /// - /// Minefield Data. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Minefield Data.")] - MinefieldData = 39, - - /// - /// Minefield Response NAK. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Minefield Response NAK.")] - MinefieldResponseNAK = 40, - - /// - /// Environmental Process. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Environmental Process.")] - EnvironmentalProcess = 41, - - /// - /// Gridded Data. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Gridded Data.")] - GriddedData = 42, - - /// - /// Point Object State. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Point Object State.")] - PointObjectState = 43, - - /// - /// Linear Object State. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Linear Object State.")] - LinearObjectState = 44, - - /// - /// Areal Object State. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Areal Object State.")] - ArealObjectState = 45, - - /// - /// TSPI. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TSPI.")] - TSPI = 46, - - /// - /// Appearance. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Appearance.")] - Appearance = 47, - - /// - /// Articulated Parts. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Articulated Parts.")] - ArticulatedParts = 48, - - /// - /// LE Fire. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("LE Fire.")] - LEFire = 49, - - /// - /// LE Detonation. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("LE Detonation.")] - LEDetonation = 50, - - /// - /// Create Entity-R. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Create Entity-R.")] - CreateEntityR = 51, - - /// - /// Remove Entity-R. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Remove Entity-R.")] - RemoveEntityR = 52, - - /// - /// Start/Resume-R. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Start/Resume-R.")] - StartResumeR = 53, - - /// - /// Stop/Freeze-R. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Stop/Freeze-R.")] - StopFreezeR = 54, - - /// - /// Acknowledge-R. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Acknowledge-R.")] - AcknowledgeR = 55, - - /// - /// Action Request-R. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Action Request-R.")] - ActionRequestR = 56, - - /// - /// Action Response-R. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Action Response-R.")] - ActionResponseR = 57, - - /// - /// Data Query-R. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Data Query-R.")] - DataQueryR = 58, - - /// - /// Set Data-R. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set Data-R.")] - SetDataR = 59, - - /// - /// Data-R. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Data-R.")] - DataR = 60, - - /// - /// Event Report-R. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Event Report-R.")] - EventReportR = 61, - - /// - /// Comment-R. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Comment-R.")] - CommentR = 62, - - /// - /// Record-R. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Record-R.")] - RecordR = 63, - - /// - /// Set Record-R. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set Record-R.")] - SetRecordR = 64, - - /// - /// Record Query-R. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Record Query-R.")] - RecordQueryR = 65, - - /// - /// Collision-Elastic. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Collision-Elastic.")] - CollisionElastic = 66, - - /// - /// Entity State Update. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Entity State Update.")] - EntityStateUpdate = 67 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations +{ + /// + /// Enumeration values for PduType (pduheader.pdutype, PDU Type, + /// section 3.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum PduType : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Entity State. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Entity State.")] + EntityState = 1, + + /// + /// Fire. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fire.")] + Fire = 2, + + /// + /// Detonation. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Detonation.")] + Detonation = 3, + + /// + /// Collision. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Collision.")] + Collision = 4, + + /// + /// Service Request. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Service Request.")] + ServiceRequest = 5, + + /// + /// Resupply Offer. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Resupply Offer.")] + ResupplyOffer = 6, + + /// + /// Resupply Received. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Resupply Received.")] + ResupplyReceived = 7, + + /// + /// Resupply Cancel. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Resupply Cancel.")] + ResupplyCancel = 8, + + /// + /// Repair Complete. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Repair Complete.")] + RepairComplete = 9, + + /// + /// Repair Response. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Repair Response.")] + RepairResponse = 10, + + /// + /// Create Entity. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Create Entity.")] + CreateEntity = 11, + + /// + /// Remove Entity. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Remove Entity.")] + RemoveEntity = 12, + + /// + /// Start/Resume. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Start/Resume.")] + StartResume = 13, + + /// + /// Stop/Freeze. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Stop/Freeze.")] + StopFreeze = 14, + + /// + /// Acknowledge. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Acknowledge.")] + Acknowledge = 15, + + /// + /// Action Request. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Action Request.")] + ActionRequest = 16, + + /// + /// Action Response. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Action Response.")] + ActionResponse = 17, + + /// + /// Data Query. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Data Query.")] + DataQuery = 18, + + /// + /// Set Data. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set Data.")] + SetData = 19, + + /// + /// Data. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Data.")] + Data = 20, + + /// + /// Event Report. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Event Report.")] + EventReport = 21, + + /// + /// Comment. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Comment.")] + Comment = 22, + + /// + /// Electromagnetic Emission. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Electromagnetic Emission.")] + ElectromagneticEmission = 23, + + /// + /// Designator. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Designator.")] + Designator = 24, + + /// + /// Transmitter. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Transmitter.")] + Transmitter = 25, + + /// + /// Signal. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Signal.")] + Signal = 26, + + /// + /// Receiver. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Receiver.")] + Receiver = 27, + + /// + /// IFF/ATC/NAVAIDS. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("IFF/ATC/NAVAIDS.")] + IFF_ATC_NAVAIDS = 28, + + /// + /// Underwater Acoustic. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Underwater Acoustic.")] + UnderwaterAcoustic = 29, + + /// + /// Supplemental Emission / Entity State. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Supplemental Emission / Entity State.")] + SupplementalEmissionEntityState = 30, + + /// + /// Intercom Signal. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Intercom Signal.")] + IntercomSignal = 31, + + /// + /// Intercom Control. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Intercom Control.")] + IntercomControl = 32, + + /// + /// Aggregate State. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Aggregate State.")] + AggregateState = 33, + + /// + /// IsGroupOf. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("IsGroupOf.")] + IsGroupOf = 34, + + /// + /// Transfer Control. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Transfer Control.")] + TransferControl = 35, + + /// + /// IsPartOf. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("IsPartOf.")] + IsPartOf = 36, + + /// + /// Minefield State. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Minefield State.")] + MinefieldState = 37, + + /// + /// Minefield Query. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Minefield Query.")] + MinefieldQuery = 38, + + /// + /// Minefield Data. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Minefield Data.")] + MinefieldData = 39, + + /// + /// Minefield Response NAK. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Minefield Response NAK.")] + MinefieldResponseNAK = 40, + + /// + /// Environmental Process. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Environmental Process.")] + EnvironmentalProcess = 41, + + /// + /// Gridded Data. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Gridded Data.")] + GriddedData = 42, + + /// + /// Point Object State. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Point Object State.")] + PointObjectState = 43, + + /// + /// Linear Object State. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Linear Object State.")] + LinearObjectState = 44, + + /// + /// Areal Object State. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Areal Object State.")] + ArealObjectState = 45, + + /// + /// TSPI. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TSPI.")] + TSPI = 46, + + /// + /// Appearance. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Appearance.")] + Appearance = 47, + + /// + /// Articulated Parts. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Articulated Parts.")] + ArticulatedParts = 48, + + /// + /// LE Fire. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("LE Fire.")] + LEFire = 49, + + /// + /// LE Detonation. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("LE Detonation.")] + LEDetonation = 50, + + /// + /// Create Entity-R. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Create Entity-R.")] + CreateEntityR = 51, + + /// + /// Remove Entity-R. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Remove Entity-R.")] + RemoveEntityR = 52, + + /// + /// Start/Resume-R. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Start/Resume-R.")] + StartResumeR = 53, + + /// + /// Stop/Freeze-R. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Stop/Freeze-R.")] + StopFreezeR = 54, + + /// + /// Acknowledge-R. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Acknowledge-R.")] + AcknowledgeR = 55, + + /// + /// Action Request-R. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Action Request-R.")] + ActionRequestR = 56, + + /// + /// Action Response-R. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Action Response-R.")] + ActionResponseR = 57, + + /// + /// Data Query-R. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Data Query-R.")] + DataQueryR = 58, + + /// + /// Set Data-R. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set Data-R.")] + SetDataR = 59, + + /// + /// Data-R. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Data-R.")] + DataR = 60, + + /// + /// Event Report-R. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Event Report-R.")] + EventReportR = 61, + + /// + /// Comment-R. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Comment-R.")] + CommentR = 62, + + /// + /// Record-R. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Record-R.")] + RecordR = 63, + + /// + /// Set Record-R. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set Record-R.")] + SetRecordR = 64, + + /// + /// Record Query-R. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Record Query-R.")] + RecordQueryR = 65, + + /// + /// Collision-Elastic. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Collision-Elastic.")] + CollisionElastic = 66, + + /// + /// Entity State Update. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Entity State Update.")] + EntityStateUpdate = 67 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/ProtocolFamily.cs b/Libs/CsharpDis6/Enumerations/ProtocolFamily.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/ProtocolFamily.cs rename to Libs/CsharpDis6/Enumerations/ProtocolFamily.cs index febab18..42c0482 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/ProtocolFamily.cs +++ b/Libs/CsharpDis6/Enumerations/ProtocolFamily.cs @@ -1,169 +1,169 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations -{ - /// - /// Enumeration values for ProtocolFamily (pduheader.protocolfamily, Protocol Family, - /// section 3.3) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum ProtocolFamily : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Entity Information/Interaction. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Entity Information/Interaction.")] - EntityInformationInteraction = 1, - - /// - /// Warfare. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Warfare.")] - Warfare = 2, - - /// - /// Logistics. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Logistics.")] - Logistics = 3, - - /// - /// Radio Communication. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Radio Communication.")] - RadioCommunication = 4, - - /// - /// Simulation Management. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Simulation Management.")] - SimulationManagement = 5, - - /// - /// Distributed Emission Regeneration. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Distributed Emission Regeneration.")] - DistributedEmissionRegeneration = 6, - - /// - /// Entity Management. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Entity Management.")] - EntityManagement = 7, - - /// - /// Minefield. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Minefield.")] - Minefield = 8, - - /// - /// Synthetic Environment. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Synthetic Environment.")] - SyntheticEnvironment = 9, - - /// - /// Simulation Management with Reliability. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Simulation Management with Reliability.")] - SimulationManagementWithReliability = 10, - - /// - /// Live Entity. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Live Entity.")] - LiveEntity = 11, - - /// - /// Non-Real Time. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Non-Real Time.")] - NonRealTime = 12, - - /// - /// Experimental - Computer Generated Forces. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Experimental - Computer Generated Forces.")] - ExperimentalComputerGeneratedForces = 129 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations +{ + /// + /// Enumeration values for ProtocolFamily (pduheader.protocolfamily, Protocol Family, + /// section 3.3) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum ProtocolFamily : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Entity Information/Interaction. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Entity Information/Interaction.")] + EntityInformationInteraction = 1, + + /// + /// Warfare. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Warfare.")] + Warfare = 2, + + /// + /// Logistics. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Logistics.")] + Logistics = 3, + + /// + /// Radio Communication. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Radio Communication.")] + RadioCommunication = 4, + + /// + /// Simulation Management. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Simulation Management.")] + SimulationManagement = 5, + + /// + /// Distributed Emission Regeneration. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Distributed Emission Regeneration.")] + DistributedEmissionRegeneration = 6, + + /// + /// Entity Management. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Entity Management.")] + EntityManagement = 7, + + /// + /// Minefield. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Minefield.")] + Minefield = 8, + + /// + /// Synthetic Environment. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Synthetic Environment.")] + SyntheticEnvironment = 9, + + /// + /// Simulation Management with Reliability. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Simulation Management with Reliability.")] + SimulationManagementWithReliability = 10, + + /// + /// Live Entity. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Live Entity.")] + LiveEntity = 11, + + /// + /// Non-Real Time. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Non-Real Time.")] + NonRealTime = 12, + + /// + /// Experimental - Computer Generated Forces. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Experimental - Computer Generated Forces.")] + ExperimentalComputerGeneratedForces = 129 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/ProtocolVersion.cs b/Libs/CsharpDis6/Enumerations/ProtocolVersion.cs similarity index 89% rename from Libs/CsharpDis6/OpenDis/Enumerations/ProtocolVersion.cs rename to Libs/CsharpDis6/Enumerations/ProtocolVersion.cs index 3fac1b7..c5da5bd 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/ProtocolVersion.cs +++ b/Libs/CsharpDis6/Enumerations/ProtocolVersion.cs @@ -1,99 +1,109 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations -{ - /// - /// Enumeration values for ProtocolVersion (pduheader.protocolversion, Protocol version, - /// section 3.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum ProtocolVersion : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// DIS PDU version 1.0 (May 92). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DIS PDU version 1.0 (May 92).")] - Version1 = 1, - - /// - /// IEEE 1278-1993. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("IEEE 1278-1993.")] - Ieee1278_1993 = 2, - - /// - /// DIS PDU version 2.0 - third draft (May 93). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DIS PDU version 2.0 - third draft (May 93).")] - Version2ThirdDraft = 3, - - /// - /// DIS PDU version 2.0 - fourth draft (revised) March 16, 1994. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DIS PDU version 2.0 - fourth draft (revised) March 16, 1994.")] - Version2FourthDraftRevised = 4, - - /// - /// IEEE 1278.1-1995. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("IEEE 1278.1-1995.")] - Ieee1278_1_1995 = 5, - - /// - /// IEEE 1278.1A-1998. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("IEEE 1278.1A-1998.")] - Ieee1278_1A_1998 = 6 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations +{ + /// + /// Enumeration values for ProtocolVersion (pduheader.protocolversion, Protocol version, + /// section 3.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum ProtocolVersion : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// DIS PDU version 1.0 (May 92). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DIS PDU version 1.0 (May 92).")] + Version1 = 1, + + /// + /// IEEE 1278-1993. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("IEEE 1278-1993.")] + Ieee1278_1993 = 2, + + /// + /// DIS PDU version 2.0 - third draft (May 93). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DIS PDU version 2.0 - third draft (May 93).")] + Version2ThirdDraft = 3, + + /// + /// DIS PDU version 2.0 - fourth draft (revised) March 16, 1994. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DIS PDU version 2.0 - fourth draft (revised) March 16, 1994.")] + Version2FourthDraftRevised = 4, + + /// + /// IEEE 1278.1-1995. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("IEEE 1278.1-1995.")] + Ieee1278_1_1995 = 5, + + /// + /// IEEE 1278.1A-1998. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("IEEE 1278.1A-1998.")] + Ieee1278_1A_1998 = 6, + + /// + /// IEEE 1278.1A-1998. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("IEEE 1278.1-2012.")] + Ieee1278_1_2012 = 6 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Intercom/Command.cs b/Libs/CsharpDis6/Enumerations/Radio.Intercom/Command.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Radio.Intercom/Command.cs rename to Libs/CsharpDis6/Enumerations/Radio.Intercom/Command.cs index 9cbfba6..f06ddef 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Intercom/Command.cs +++ b/Libs/CsharpDis6/Enumerations/Radio.Intercom/Command.cs @@ -1,99 +1,99 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Radio.Intercom -{ - /// - /// Enumeration values for Command (radio.ic.command, Command, - /// section 9.3.3) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum Command : byte - { - /// - /// No Command. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("No Command.")] - NoCommand = 0, - - /// - /// Status. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Status.")] - Status = 1, - - /// - /// Connect. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Connect.")] - Connect = 2, - - /// - /// Disconnect. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Disconnect.")] - Disconnect = 3, - - /// - /// Reset. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Reset.")] - Reset = 4, - - /// - /// On. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("On.")] - On = 5, - - /// - /// Off. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Off.")] - Off = 6 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Radio.Intercom +{ + /// + /// Enumeration values for Command (radio.ic.command, Command, + /// section 9.3.3) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum Command : byte + { + /// + /// No Command. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("No Command.")] + NoCommand = 0, + + /// + /// Status. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Status.")] + Status = 1, + + /// + /// Connect. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Connect.")] + Connect = 2, + + /// + /// Disconnect. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Disconnect.")] + Disconnect = 3, + + /// + /// Reset. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Reset.")] + Reset = 4, + + /// + /// On. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("On.")] + On = 5, + + /// + /// Off. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Off.")] + Off = 6 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Intercom/CommunicationsType.cs b/Libs/CsharpDis6/Enumerations/Radio.Intercom/CommunicationsType.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Radio.Intercom/CommunicationsType.cs rename to Libs/CsharpDis6/Enumerations/Radio.Intercom/CommunicationsType.cs index b64ccb5..ee0ac6c 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Intercom/CommunicationsType.cs +++ b/Libs/CsharpDis6/Enumerations/Radio.Intercom/CommunicationsType.cs @@ -1,72 +1,72 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Radio.Intercom -{ - /// - /// Enumeration values for CommunicationsType (radio.ic.commtype, Communications Type, - /// section 9.3.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - /// - /// Values from 0 to null: Reserved - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum CommunicationsType : uint - { - /// - /// Connection FDX. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Connection FDX.")] - ConnectionFDX = 1, - - /// - /// Connection HDX - Destination is Receive Only. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Connection HDX - Destination is Receive Only.")] - ConnectionHDXDestinationIsReceiveOnly = 2, - - /// - /// Connection HDX - Destination is Transmit Only. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Connection HDX - Destination is Transmit Only.")] - ConnectionHDXDestinationIsTransmitOnly = 3, - - /// - /// Connection HDX. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Connection HDX.")] - ConnectionHDX = 4 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Radio.Intercom +{ + /// + /// Enumeration values for CommunicationsType (radio.ic.commtype, Communications Type, + /// section 9.3.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + /// + /// Values from 0 to null: Reserved + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum CommunicationsType : uint + { + /// + /// Connection FDX. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Connection FDX.")] + ConnectionFDX = 1, + + /// + /// Connection HDX - Destination is Receive Only. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Connection HDX - Destination is Receive Only.")] + ConnectionHDXDestinationIsReceiveOnly = 2, + + /// + /// Connection HDX - Destination is Transmit Only. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Connection HDX - Destination is Transmit Only.")] + ConnectionHDXDestinationIsTransmitOnly = 3, + + /// + /// Connection HDX. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Connection HDX.")] + ConnectionHDX = 4 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Intercom/ControlType.cs b/Libs/CsharpDis6/Enumerations/Radio.Intercom/ControlType.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Radio.Intercom/ControlType.cs rename to Libs/CsharpDis6/Enumerations/Radio.Intercom/ControlType.cs index e630f2f..e68538a 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Intercom/ControlType.cs +++ b/Libs/CsharpDis6/Enumerations/Radio.Intercom/ControlType.cs @@ -1,82 +1,82 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Radio.Intercom -{ - /// - /// Enumeration values for ControlType (radio.ic.controltype, Control Type, - /// section 9.3.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - /// - /// Values from 0 to null: Reserved - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum ControlType : byte - { - /// - /// Status. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Status.")] - Status = 1, - - /// - /// Request - Acknowledge Required. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Request - Acknowledge Required.")] - RequestAcknowledgeRequired = 2, - - /// - /// Request - No Acknowledge. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Request - No Acknowledge.")] - RequestNoAcknowledge = 3, - - /// - /// Ack - Request Granted. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ack - Request Granted.")] - AckRequestGranted = 4, - - /// - /// Nack - Request Denied. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Nack - Request Denied.")] - NackRequestDenied = 5 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Radio.Intercom +{ + /// + /// Enumeration values for ControlType (radio.ic.controltype, Control Type, + /// section 9.3.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + /// + /// Values from 0 to null: Reserved + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum ControlType : byte + { + /// + /// Status. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Status.")] + Status = 1, + + /// + /// Request - Acknowledge Required. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Request - Acknowledge Required.")] + RequestAcknowledgeRequired = 2, + + /// + /// Request - No Acknowledge. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Request - No Acknowledge.")] + RequestNoAcknowledge = 3, + + /// + /// Ack - Request Granted. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ack - Request Granted.")] + AckRequestGranted = 4, + + /// + /// Nack - Request Denied. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Nack - Request Denied.")] + NackRequestDenied = 5 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Intercom/DestinationLineStateCommand.cs b/Libs/CsharpDis6/Enumerations/Radio.Intercom/DestinationLineStateCommand.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Radio.Intercom/DestinationLineStateCommand.cs rename to Libs/CsharpDis6/Enumerations/Radio.Intercom/DestinationLineStateCommand.cs index 4fafe1b..e248603 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Intercom/DestinationLineStateCommand.cs +++ b/Libs/CsharpDis6/Enumerations/Radio.Intercom/DestinationLineStateCommand.cs @@ -1,69 +1,69 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Radio.Intercom -{ - /// - /// Enumeration values for DestinationLineStateCommand (radio.ic.deststate, Destination Line State Command, - /// section 9.3.5) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum DestinationLineStateCommand : byte - { - /// - /// None. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("None.")] - None = 0, - - /// - /// Set Line State - Transmitting. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set Line State - Transmitting.")] - SetLineStateTransmitting = 1, - - /// - /// Set Line State - Not Transmitting. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set Line State - Not Transmitting.")] - SetLineStateNotTransmitting = 2, - - /// - /// Return to Local Line State Control. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Return to Local Line State Control.")] - ReturnToLocalLineStateControl = 3 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Radio.Intercom +{ + /// + /// Enumeration values for DestinationLineStateCommand (radio.ic.deststate, Destination Line State Command, + /// section 9.3.5) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum DestinationLineStateCommand : byte + { + /// + /// None. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("None.")] + None = 0, + + /// + /// Set Line State - Transmitting. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set Line State - Transmitting.")] + SetLineStateTransmitting = 1, + + /// + /// Set Line State - Not Transmitting. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set Line State - Not Transmitting.")] + SetLineStateNotTransmitting = 2, + + /// + /// Return to Local Line State Control. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Return to Local Line State Control.")] + ReturnToLocalLineStateControl = 3 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Intercom/RecordType.cs b/Libs/CsharpDis6/Enumerations/Radio.Intercom/RecordType.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Radio.Intercom/RecordType.cs rename to Libs/CsharpDis6/Enumerations/Radio.Intercom/RecordType.cs index 4906f08..a15793c 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Intercom/RecordType.cs +++ b/Libs/CsharpDis6/Enumerations/Radio.Intercom/RecordType.cs @@ -1,59 +1,59 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Radio.Intercom -{ - /// - /// Enumeration values for RecordType (radio.ic.param.type, Record type, - /// section 9.3.6.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum RecordType : ushort - { - /// - /// Entity Destination record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Entity Destination record.")] - EntityDestinationRecord = 1, - - /// - /// Group Destination record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Group Destination record.")] - GroupDestinationRecord = 2, - - /// - /// Group Assignment record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Group Assignment record.")] - GroupAssignmentRecord = 3 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Radio.Intercom +{ + /// + /// Enumeration values for RecordType (radio.ic.param.type, Record type, + /// section 9.3.6.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum RecordType : ushort + { + /// + /// Entity Destination record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Entity Destination record.")] + EntityDestinationRecord = 1, + + /// + /// Group Destination record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Group Destination record.")] + GroupDestinationRecord = 2, + + /// + /// Group Assignment record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Group Assignment record.")] + GroupAssignmentRecord = 3 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Intercom/TransmitLineState.cs b/Libs/CsharpDis6/Enumerations/Radio.Intercom/TransmitLineState.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Radio.Intercom/TransmitLineState.cs rename to Libs/CsharpDis6/Enumerations/Radio.Intercom/TransmitLineState.cs index 7e0afc4..6aff311 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Intercom/TransmitLineState.cs +++ b/Libs/CsharpDis6/Enumerations/Radio.Intercom/TransmitLineState.cs @@ -1,59 +1,59 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Radio.Intercom -{ - /// - /// Enumeration values for TransmitLineState (radio.ic.transmitstate, Transmit Line State, - /// section 9.3.4) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum TransmitLineState : byte - { - /// - /// Transmit Line State not applicable. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Transmit Line State not applicable.")] - TransmitLineStateNotApplicable = 0, - - /// - /// Not Transmitting. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Not Transmitting.")] - NotTransmitting = 1, - - /// - /// Transmitting. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Transmitting.")] - Transmitting = 2 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Radio.Intercom +{ + /// + /// Enumeration values for TransmitLineState (radio.ic.transmitstate, Transmit Line State, + /// section 9.3.4) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum TransmitLineState : byte + { + /// + /// Transmit Line State not applicable. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Transmit Line State not applicable.")] + TransmitLineStateNotApplicable = 0, + + /// + /// Not Transmitting. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Not Transmitting.")] + NotTransmitting = 1, + + /// + /// Transmitting. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Transmitting.")] + Transmitting = 2 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/AntennaPatternType.cs b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/AntennaPatternType.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/AntennaPatternType.cs rename to Libs/CsharpDis6/Enumerations/Radio.Transmitter/AntennaPatternType.cs index c9a700c..9430138 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/AntennaPatternType.cs +++ b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/AntennaPatternType.cs @@ -1,59 +1,59 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Radio.Transmitter -{ - /// - /// Enumeration values for AntennaPatternType (radio.tx.antennapatterntype, Antenna Pattern Type, - /// section 9.1.5) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum AntennaPatternType : ushort - { - /// - /// Omni-directional. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Omni-directional.")] - OmniDirectional = 0, - - /// - /// Beam. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Beam.")] - Beam = 1, - - /// - /// Spherical harmonic. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Spherical harmonic.")] - SphericalHarmonic = 2 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Radio.Transmitter +{ + /// + /// Enumeration values for AntennaPatternType (radio.tx.antennapatterntype, Antenna Pattern Type, + /// section 9.1.5) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum AntennaPatternType : ushort + { + /// + /// Omni-directional. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Omni-directional.")] + OmniDirectional = 0, + + /// + /// Beam. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Beam.")] + Beam = 1, + + /// + /// Spherical harmonic. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Spherical harmonic.")] + SphericalHarmonic = 2 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/ClearChannel.cs b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/ClearChannel.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/ClearChannel.cs rename to Libs/CsharpDis6/Enumerations/Radio.Transmitter/ClearChannel.cs index d1b0b44..2164887 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/ClearChannel.cs +++ b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/ClearChannel.cs @@ -1,49 +1,49 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Radio.Transmitter -{ - /// - /// Enumeration values for ClearChannel (radio.tx.param.cctt.clear, Clear Channel, - /// section 9.1.7.1.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum ClearChannel : byte - { - /// - /// Not clear channel. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Not clear channel.")] - NotClearChannel = 0, - - /// - /// Clear channel. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Clear channel.")] - ClearChannel = 1 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Radio.Transmitter +{ + /// + /// Enumeration values for ClearChannel (radio.tx.param.cctt.clear, Clear Channel, + /// section 9.1.7.1.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum ClearChannel : byte + { + /// + /// Not clear channel. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Not clear channel.")] + NotClearChannel = 0, + + /// + /// Clear channel. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Clear channel.")] + ClearChannel = 1 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/CryptoSystem.cs b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/CryptoSystem.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/CryptoSystem.cs rename to Libs/CsharpDis6/Enumerations/Radio.Transmitter/CryptoSystem.cs index 2b27473..3a799a1 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/CryptoSystem.cs +++ b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/CryptoSystem.cs @@ -1,79 +1,79 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Radio.Transmitter -{ - /// - /// Enumeration values for CryptoSystem (radio.tx.cryptosystem, Crypto System, - /// section 9.1.4) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum CryptoSystem : ushort - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// KY-28. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("KY-28.")] - KY28 = 1, - - /// - /// VINSON (KY-57, KY-58, SINCGARS ICOM). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("VINSON (KY-57, KY-58, SINCGARS ICOM).")] - VINSON = 2, - - /// - /// Narrow Spectrum Secure Voice (NSVE). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Narrow Spectrum Secure Voice (NSVE).")] - NarrowSpectrumSecureVoice = 3, - - /// - /// Wide Spectrum Secure Voice (WSVE). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Wide Spectrum Secure Voice (WSVE).")] - WideSpectrumSecureVoice = 4 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Radio.Transmitter +{ + /// + /// Enumeration values for CryptoSystem (radio.tx.cryptosystem, Crypto System, + /// section 9.1.4) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum CryptoSystem : ushort + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// KY-28. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("KY-28.")] + KY28 = 1, + + /// + /// VINSON (KY-57, KY-58, SINCGARS ICOM). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("VINSON (KY-57, KY-58, SINCGARS ICOM).")] + VINSON = 2, + + /// + /// Narrow Spectrum Secure Voice (NSVE). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Narrow Spectrum Secure Voice (NSVE).")] + NarrowSpectrumSecureVoice = 3, + + /// + /// Wide Spectrum Secure Voice (WSVE). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Wide Spectrum Secure Voice (WSVE).")] + WideSpectrumSecureVoice = 4 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForAmplitudeAndAngleModulation.cs b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/DetailedModulationForAmplitudeAndAngleModulation.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForAmplitudeAndAngleModulation.cs rename to Libs/CsharpDis6/Enumerations/Radio.Transmitter/DetailedModulationForAmplitudeAndAngleModulation.cs index dbee181..4f6d14b 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForAmplitudeAndAngleModulation.cs +++ b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/DetailedModulationForAmplitudeAndAngleModulation.cs @@ -1,49 +1,49 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Radio.Transmitter -{ - /// - /// Enumeration values for DetailedModulationForAmplitudeAndAngleModulation (radio.tx.mod.major.2.detail, Detailed modulation for amplitude and angle modulation, - /// section 9.1.1.3.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum DetailedModulationForAmplitudeAndAngleModulation : ushort - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Amplitude and Angle. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Amplitude and Angle.")] - AmplitudeAndAngle = 1 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Radio.Transmitter +{ + /// + /// Enumeration values for DetailedModulationForAmplitudeAndAngleModulation (radio.tx.mod.major.2.detail, Detailed modulation for amplitude and angle modulation, + /// section 9.1.1.3.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum DetailedModulationForAmplitudeAndAngleModulation : ushort + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Amplitude and Angle. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Amplitude and Angle.")] + AmplitudeAndAngle = 1 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForAmplitudeModulation.cs b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/DetailedModulationForAmplitudeModulation.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForAmplitudeModulation.cs rename to Libs/CsharpDis6/Enumerations/Radio.Transmitter/DetailedModulationForAmplitudeModulation.cs index 9cad648..430de57 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForAmplitudeModulation.cs +++ b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/DetailedModulationForAmplitudeModulation.cs @@ -1,139 +1,139 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Radio.Transmitter -{ - /// - /// Enumeration values for DetailedModulationForAmplitudeModulation (radio.tx.mod.major.1.detail, Detailed modulation for amplitude modulation, - /// section 9.1.1.3.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum DetailedModulationForAmplitudeModulation : ushort - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// AFSK (Audio Frequency Shift Keying). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AFSK (Audio Frequency Shift Keying).")] - AFSK = 1, - - /// - /// AM (Amplitude Modulation). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AM (Amplitude Modulation).")] - AM = 2, - - /// - /// CW (Continuous Wave Modulation). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("CW (Continuous Wave Modulation).")] - CW = 3, - - /// - /// DSB (Double Sideband). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DSB (Double Sideband).")] - DSB = 4, - - /// - /// ISB (Independent Sideband). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ISB (Independent Sideband).")] - ISB = 5, - - /// - /// LSB (Single Band Suppressed Carrier, Lower Sideband Mode). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("LSB (Single Band Suppressed Carrier, Lower Sideband Mode).")] - LSB = 6, - - /// - /// SSB-Full (Single Sideband Full Carrier). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SSB-Full (Single Sideband Full Carrier).")] - SSBFull = 7, - - /// - /// SSB-Reduc (Single Band Reduced Carrier). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SSB-Reduc (Single Band Reduced Carrier).")] - SSBReduced = 8, - - /// - /// USB (Single Band Suppressed Carrier, Upper Sideband Mode). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("USB (Single Band Suppressed Carrier, Upper Sideband Mode).")] - USB = 9, - - /// - /// VSB (Vestigial Sideband). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("VSB (Vestigial Sideband).")] - VSB = 10 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Radio.Transmitter +{ + /// + /// Enumeration values for DetailedModulationForAmplitudeModulation (radio.tx.mod.major.1.detail, Detailed modulation for amplitude modulation, + /// section 9.1.1.3.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum DetailedModulationForAmplitudeModulation : ushort + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// AFSK (Audio Frequency Shift Keying). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AFSK (Audio Frequency Shift Keying).")] + AFSK = 1, + + /// + /// AM (Amplitude Modulation). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AM (Amplitude Modulation).")] + AM = 2, + + /// + /// CW (Continuous Wave Modulation). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("CW (Continuous Wave Modulation).")] + CW = 3, + + /// + /// DSB (Double Sideband). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DSB (Double Sideband).")] + DSB = 4, + + /// + /// ISB (Independent Sideband). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ISB (Independent Sideband).")] + ISB = 5, + + /// + /// LSB (Single Band Suppressed Carrier, Lower Sideband Mode). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("LSB (Single Band Suppressed Carrier, Lower Sideband Mode).")] + LSB = 6, + + /// + /// SSB-Full (Single Sideband Full Carrier). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SSB-Full (Single Sideband Full Carrier).")] + SSBFull = 7, + + /// + /// SSB-Reduc (Single Band Reduced Carrier). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SSB-Reduc (Single Band Reduced Carrier).")] + SSBReduced = 8, + + /// + /// USB (Single Band Suppressed Carrier, Upper Sideband Mode). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("USB (Single Band Suppressed Carrier, Upper Sideband Mode).")] + USB = 9, + + /// + /// VSB (Vestigial Sideband). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("VSB (Vestigial Sideband).")] + VSB = 10 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForAngleModulation.cs b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/DetailedModulationForAngleModulation.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForAngleModulation.cs rename to Libs/CsharpDis6/Enumerations/Radio.Transmitter/DetailedModulationForAngleModulation.cs index 6ee4e9e..914bdc6 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForAngleModulation.cs +++ b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/DetailedModulationForAngleModulation.cs @@ -1,69 +1,69 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Radio.Transmitter -{ - /// - /// Enumeration values for DetailedModulationForAngleModulation (radio.tx.mod.major.3.detail, Detailed modulation for angle modulation, - /// section 9.1.1.3.3) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum DetailedModulationForAngleModulation : ushort - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// FM (Frequency Modulation). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("FM (Frequency Modulation).")] - AFSK = 1, - - /// - /// FSK (Frequency Shift Keying). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("FSK (Frequency Shift Keying).")] - AM = 2, - - /// - /// PM (Phase Modulation). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("PM (Phase Modulation).")] - CW = 3 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Radio.Transmitter +{ + /// + /// Enumeration values for DetailedModulationForAngleModulation (radio.tx.mod.major.3.detail, Detailed modulation for angle modulation, + /// section 9.1.1.3.3) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum DetailedModulationForAngleModulation : ushort + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// FM (Frequency Modulation). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("FM (Frequency Modulation).")] + AFSK = 1, + + /// + /// FSK (Frequency Shift Keying). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("FSK (Frequency Shift Keying).")] + AM = 2, + + /// + /// PM (Phase Modulation). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("PM (Phase Modulation).")] + CW = 3 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForCarrierPhaseShift.cs b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/DetailedModulationForCarrierPhaseShift.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForCarrierPhaseShift.cs rename to Libs/CsharpDis6/Enumerations/Radio.Transmitter/DetailedModulationForCarrierPhaseShift.cs index e6eeda5..bc38b7f 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForCarrierPhaseShift.cs +++ b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/DetailedModulationForCarrierPhaseShift.cs @@ -1,39 +1,39 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Radio.Transmitter -{ - /// - /// Enumeration values for DetailedModulationForCarrierPhaseShift (radio.tx.mod.major.7.detail, Detailed Modulation for Carrier Phase Shift, - /// section 9.1.1.3.7) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum DetailedModulationForCarrierPhaseShift : ushort - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Radio.Transmitter +{ + /// + /// Enumeration values for DetailedModulationForCarrierPhaseShift (radio.tx.mod.major.7.detail, Detailed Modulation for Carrier Phase Shift, + /// section 9.1.1.3.7) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum DetailedModulationForCarrierPhaseShift : ushort + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForCombinationModulation.cs b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/DetailedModulationForCombinationModulation.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForCombinationModulation.cs rename to Libs/CsharpDis6/Enumerations/Radio.Transmitter/DetailedModulationForCombinationModulation.cs index 5801b69..b299762 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForCombinationModulation.cs +++ b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/DetailedModulationForCombinationModulation.cs @@ -1,49 +1,49 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Radio.Transmitter -{ - /// - /// Enumeration values for DetailedModulationForCombinationModulation (radio.tx.mod.major.4.detail, Detailed modulation for combination modulation, - /// section 9.1.1.3.4) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum DetailedModulationForCombinationModulation : ushort - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Amplitude-Angle-Pulse. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Amplitude-Angle-Pulse.")] - AmplitudeAnglePulse = 1 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Radio.Transmitter +{ + /// + /// Enumeration values for DetailedModulationForCombinationModulation (radio.tx.mod.major.4.detail, Detailed modulation for combination modulation, + /// section 9.1.1.3.4) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum DetailedModulationForCombinationModulation : ushort + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Amplitude-Angle-Pulse. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Amplitude-Angle-Pulse.")] + AmplitudeAnglePulse = 1 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForPulseModulation.cs b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/DetailedModulationForPulseModulation.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForPulseModulation.cs rename to Libs/CsharpDis6/Enumerations/Radio.Transmitter/DetailedModulationForPulseModulation.cs index 9916ffe..778037e 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForPulseModulation.cs +++ b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/DetailedModulationForPulseModulation.cs @@ -1,69 +1,69 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Radio.Transmitter -{ - /// - /// Enumeration values for DetailedModulationForPulseModulation (radio.tx.mod.major.5.detail, Detailed modulation for pulse modulation, - /// section 9.1.1.3.5) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum DetailedModulationForPulseModulation : ushort - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Pulse. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Pulse.")] - Pulse = 1, - - /// - /// X Band TACAN Pulse. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("X Band TACAN Pulse.")] - XBandTACANPulse = 2, - - /// - /// Y Band TACAN Pulse. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Y Band TACAN Pulse.")] - YBandTACANPulse = 3 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Radio.Transmitter +{ + /// + /// Enumeration values for DetailedModulationForPulseModulation (radio.tx.mod.major.5.detail, Detailed modulation for pulse modulation, + /// section 9.1.1.3.5) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum DetailedModulationForPulseModulation : ushort + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Pulse. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Pulse.")] + Pulse = 1, + + /// + /// X Band TACAN Pulse. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("X Band TACAN Pulse.")] + XBandTACANPulse = 2, + + /// + /// Y Band TACAN Pulse. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Y Band TACAN Pulse.")] + YBandTACANPulse = 3 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForUnmodulatedModulation.cs b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/DetailedModulationForUnmodulatedModulation.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForUnmodulatedModulation.cs rename to Libs/CsharpDis6/Enumerations/Radio.Transmitter/DetailedModulationForUnmodulatedModulation.cs index d94e87c..dc0fe7d 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/DetailedModulationForUnmodulatedModulation.cs +++ b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/DetailedModulationForUnmodulatedModulation.cs @@ -1,49 +1,49 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Radio.Transmitter -{ - /// - /// Enumeration values for DetailedModulationForUnmodulatedModulation (radio.tx.mod.major.6.detail, Detailed modulation for unmodulated modulation, - /// section 9.1.1.3.6) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum DetailedModulationForUnmodulatedModulation : ushort - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Continuous Wave emission of an unmodulated carrier. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Continuous Wave emission of an unmodulated carrier.")] - ContinuousWaveEmissionOfAnUnmodulatedCarrier = 1 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Radio.Transmitter +{ + /// + /// Enumeration values for DetailedModulationForUnmodulatedModulation (radio.tx.mod.major.6.detail, Detailed modulation for unmodulated modulation, + /// section 9.1.1.3.6) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum DetailedModulationForUnmodulatedModulation : ushort + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Continuous Wave emission of an unmodulated carrier. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Continuous Wave emission of an unmodulated carrier.")] + ContinuousWaveEmissionOfAnUnmodulatedCarrier = 1 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/InputSource.cs b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/InputSource.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/InputSource.cs rename to Libs/CsharpDis6/Enumerations/Radio.Transmitter/InputSource.cs index 13334ab..ed0e147 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/InputSource.cs +++ b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/InputSource.cs @@ -1,129 +1,129 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Radio.Transmitter -{ - /// - /// Enumeration values for InputSource (radio.tx.inputsource, Input Source, - /// section 9.1.3) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum InputSource : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Pilot. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Pilot.")] - Pilot = 1, - - /// - /// Copilot. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Copilot.")] - Copilot = 2, - - /// - /// First Officer. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("First Officer.")] - FirstOfficer = 3, - - /// - /// Driver. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Driver.")] - Driver = 4, - - /// - /// Loader. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Loader.")] - Loader = 5, - - /// - /// Gunner. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Gunner.")] - Gunner = 6, - - /// - /// Commander. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Commander.")] - Commander = 7, - - /// - /// Digital Data Device. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Digital Data Device.")] - DigitalDataDevice = 8, - - /// - /// Intercom. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Intercom.")] - Intercom = 9 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Radio.Transmitter +{ + /// + /// Enumeration values for InputSource (radio.tx.inputsource, Input Source, + /// section 9.1.3) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum InputSource : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Pilot. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Pilot.")] + Pilot = 1, + + /// + /// Copilot. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Copilot.")] + Copilot = 2, + + /// + /// First Officer. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("First Officer.")] + FirstOfficer = 3, + + /// + /// Driver. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Driver.")] + Driver = 4, + + /// + /// Loader. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Loader.")] + Loader = 5, + + /// + /// Gunner. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Gunner.")] + Gunner = 6, + + /// + /// Commander. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Commander.")] + Commander = 7, + + /// + /// Digital Data Device. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Digital Data Device.")] + DigitalDataDevice = 8, + + /// + /// Intercom. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Intercom.")] + Intercom = 9 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/JtidsSynchronizationState.cs b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/JtidsSynchronizationState.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/JtidsSynchronizationState.cs rename to Libs/CsharpDis6/Enumerations/Radio.Transmitter/JtidsSynchronizationState.cs index 05ab5af..6c02300 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/JtidsSynchronizationState.cs +++ b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/JtidsSynchronizationState.cs @@ -1,49 +1,49 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Radio.Transmitter -{ - /// - /// Enumeration values for JtidsSynchronizationState (radio.tx.param.jtids.sync, Synchronization State, - /// section 9.1.7.2.3) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum JtidsSynchronizationState : byte - { - /// - /// Coarse Synchronization. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Coarse Synchronization.")] - CoarseSynchronization = 1, - - /// - /// Fine Synchronization. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fine Synchronization.")] - FineSynchronization = 2 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Radio.Transmitter +{ + /// + /// Enumeration values for JtidsSynchronizationState (radio.tx.param.jtids.sync, Synchronization State, + /// section 9.1.7.2.3) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum JtidsSynchronizationState : byte + { + /// + /// Coarse Synchronization. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Coarse Synchronization.")] + CoarseSynchronization = 1, + + /// + /// Fine Synchronization. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fine Synchronization.")] + FineSynchronization = 2 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/JtidsTransmittingTerminalPrimaryMode.cs b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/JtidsTransmittingTerminalPrimaryMode.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/JtidsTransmittingTerminalPrimaryMode.cs rename to Libs/CsharpDis6/Enumerations/Radio.Transmitter/JtidsTransmittingTerminalPrimaryMode.cs index bd0b147..756ac53 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/JtidsTransmittingTerminalPrimaryMode.cs +++ b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/JtidsTransmittingTerminalPrimaryMode.cs @@ -1,49 +1,49 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Radio.Transmitter -{ - /// - /// Enumeration values for JtidsTransmittingTerminalPrimaryMode (radio.tx.param.jtids.mode1, Transmitting Terminal Primary Mode, - /// section 9.1.7.2.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum JtidsTransmittingTerminalPrimaryMode : byte - { - /// - /// NTR. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("NTR.")] - NTR = 1, - - /// - /// JTIDS Unit Participant. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("JTIDS Unit Participant.")] - JTIDSUnitParticipant = 2 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Radio.Transmitter +{ + /// + /// Enumeration values for JtidsTransmittingTerminalPrimaryMode (radio.tx.param.jtids.mode1, Transmitting Terminal Primary Mode, + /// section 9.1.7.2.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum JtidsTransmittingTerminalPrimaryMode : byte + { + /// + /// NTR. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("NTR.")] + NTR = 1, + + /// + /// JTIDS Unit Participant. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("JTIDS Unit Participant.")] + JTIDSUnitParticipant = 2 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/JtidsTransmittingTerminalSecondaryMode.cs b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/JtidsTransmittingTerminalSecondaryMode.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/JtidsTransmittingTerminalSecondaryMode.cs rename to Libs/CsharpDis6/Enumerations/Radio.Transmitter/JtidsTransmittingTerminalSecondaryMode.cs index 8081378..7f20ad3 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/JtidsTransmittingTerminalSecondaryMode.cs +++ b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/JtidsTransmittingTerminalSecondaryMode.cs @@ -1,69 +1,69 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Radio.Transmitter -{ - /// - /// Enumeration values for JtidsTransmittingTerminalSecondaryMode (radio.tx.param.jtids.mode2, Transmitting Terminal Secondary Mode, - /// section 9.1.7.2.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum JtidsTransmittingTerminalSecondaryMode : byte - { - /// - /// None. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("None.")] - None = 0, - - /// - /// Net Position Reference. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Net Position Reference.")] - NetPositionReference = 1, - - /// - /// Primary Navigation Controller. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary Navigation Controller.")] - PrimaryNavigationController = 2, - - /// - /// Secondary Navigation Controller. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Secondary Navigation Controller.")] - SecondaryNavigationController = 3 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Radio.Transmitter +{ + /// + /// Enumeration values for JtidsTransmittingTerminalSecondaryMode (radio.tx.param.jtids.mode2, Transmitting Terminal Secondary Mode, + /// section 9.1.7.2.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum JtidsTransmittingTerminalSecondaryMode : byte + { + /// + /// None. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("None.")] + None = 0, + + /// + /// Net Position Reference. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Net Position Reference.")] + NetPositionReference = 1, + + /// + /// Primary Navigation Controller. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary Navigation Controller.")] + PrimaryNavigationController = 2, + + /// + /// Secondary Navigation Controller. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Secondary Navigation Controller.")] + SecondaryNavigationController = 3 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/MajorModulation.cs b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/MajorModulation.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/MajorModulation.cs rename to Libs/CsharpDis6/Enumerations/Radio.Transmitter/MajorModulation.cs index 120e000..1bc82e0 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/MajorModulation.cs +++ b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/MajorModulation.cs @@ -1,109 +1,109 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Radio.Transmitter -{ - /// - /// Enumeration values for MajorModulation (radio.tx.mod.major, Major Modulation, - /// section 9.1.1.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum MajorModulation : ushort - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Amplitude. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Amplitude.")] - Amplitude = 1, - - /// - /// Amplitude and Angle. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Amplitude and Angle.")] - AmplitudeAndAngle = 2, - - /// - /// Angle. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Angle.")] - Angle = 3, - - /// - /// Combination. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Combination.")] - Combination = 4, - - /// - /// Pulse. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Pulse.")] - Pulse = 5, - - /// - /// Unmodulated. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Unmodulated.")] - Unmodulated = 6, - - /// - /// Carrier Phase Shift Modulation (CPSM). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Carrier Phase Shift Modulation (CPSM).")] - CarrierPhaseShiftModulationCPSM = 7 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Radio.Transmitter +{ + /// + /// Enumeration values for MajorModulation (radio.tx.mod.major, Major Modulation, + /// section 9.1.1.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum MajorModulation : ushort + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Amplitude. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Amplitude.")] + Amplitude = 1, + + /// + /// Amplitude and Angle. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Amplitude and Angle.")] + AmplitudeAndAngle = 2, + + /// + /// Angle. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Angle.")] + Angle = 3, + + /// + /// Combination. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Combination.")] + Combination = 4, + + /// + /// Pulse. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Pulse.")] + Pulse = 5, + + /// + /// Unmodulated. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Unmodulated.")] + Unmodulated = 6, + + /// + /// Carrier Phase Shift Modulation (CPSM). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Carrier Phase Shift Modulation (CPSM).")] + CarrierPhaseShiftModulationCPSM = 7 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/RadioSignalEncoding.cs b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/RadioSignalEncoding.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/RadioSignalEncoding.cs rename to Libs/CsharpDis6/Enumerations/Radio.Transmitter/RadioSignalEncoding.cs index 301e097..e8edb3f 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/RadioSignalEncoding.cs +++ b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/RadioSignalEncoding.cs @@ -1,313 +1,313 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Radio.Transmitter -{ - /// - /// Enumeration values for RadioSignalEncoding (radio.tx.encoding, Radio signal encoding, - /// section 9.1.8 - 9.1.9) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public struct RadioSignalEncoding - { - /// - /// Encoding type - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Encoding type")] - public enum EncodingTypeValue : uint - { - /// - /// 8-bit mu-law - /// - _8BitMuLaw = 1, - - /// - /// CVSD per MIL-STD-188-113 - /// - CVSDPerMILSTD188113 = 2, - - /// - /// ADPCM per CCITT G.721 - /// - ADPCMPerCCITTG721 = 3, - - /// - /// 16-bit linear PCM - /// - _16BitLinearPCM = 4, - - /// - /// 8-bit linear PCM - /// - _8BitLinearPCM = 5, - - /// - /// VQ (Vector Quantization) - /// - VQVectorQuantization = 6 - } - - /// - /// Encoding class - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Encoding class")] - public enum EncodingClassValue : uint - { - /// - /// Encoded audio - /// - EncodedAudio = 0, - - /// - /// Raw Binary Data - /// - RawBinaryData = 1, - - /// - /// Application-Specific Data - /// - ApplicationSpecificData = 2, - - /// - /// Database index - /// - DatabaseIndex = 3 - } - - private RadioSignalEncoding.EncodingTypeValue encodingType; - private RadioSignalEncoding.EncodingClassValue encodingClass; - - /// - /// Implements the operator !=. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator !=(RadioSignalEncoding left, RadioSignalEncoding right) - { - return !(left == right); - } - - /// - /// Implements the operator ==. - /// - /// The left operand. - /// The right operand. - /// - /// true if operands are not equal; otherwise, false. - /// - public static bool operator ==(RadioSignalEncoding left, RadioSignalEncoding right) - { - if (object.ReferenceEquals(left, right)) - { - return true; - } - - // If parameters are null return false (cast to object to prevent recursive loop!) - if (((object)left == null) || ((object)right == null)) - { - return false; - } - - return left.Equals(right); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The scheme instance. - /// The result of the conversion. - public static explicit operator ushort(RadioSignalEncoding obj) - { - return obj.ToUInt16(); - } - - /// - /// Performs an explicit conversion from to . - /// - /// The ushort value. - /// The result of the conversion. - public static explicit operator RadioSignalEncoding(ushort value) - { - return RadioSignalEncoding.FromUInt16(value); - } - - /// - /// Creates the instance from the byte array. - /// - /// The array which holds the values for the . - /// The starting position within value. - /// The instance, represented by a byte array. - /// if the array is null. - /// if the index is lower than 0 or greater or equal than number of elements in array. - public static RadioSignalEncoding FromByteArray(byte[] array, int index) - { - if (array == null) - { - throw new ArgumentNullException("array"); - } - - if (index < 0 || - index > array.Length - 1 || - index + 2 > array.Length - 1) - { - throw new IndexOutOfRangeException(); - } - - return FromUInt16(BitConverter.ToUInt16(array, index)); - } - - /// - /// Creates the instance from the ushort value. - /// - /// The ushort value which represents the instance. - /// The instance, represented by the ushort value. - public static RadioSignalEncoding FromUInt16(ushort value) - { - RadioSignalEncoding ps = new RadioSignalEncoding(); - - uint mask0 = 0x3fff; - byte shift0 = 0; - uint newValue0 = (value & mask0) >> shift0; - ps.EncodingType = (RadioSignalEncoding.EncodingTypeValue)newValue0; - - uint mask1 = 0xc000; - byte shift1 = 14; - uint newValue1 = (value & mask1) >> shift1; - ps.EncodingClass = (RadioSignalEncoding.EncodingClassValue)newValue1; - - return ps; - } - - /// - /// Gets or sets the encodingtype. - /// - /// The encodingtype. - public RadioSignalEncoding.EncodingTypeValue EncodingType - { - get { return this.encodingType; } - set { this.encodingType = value; } - } - - /// - /// Gets or sets the encodingclass. - /// - /// The encodingclass. - public RadioSignalEncoding.EncodingClassValue EncodingClass - { - get { return this.encodingClass; } - set { this.encodingClass = value; } - } - - /// - /// Determines whether the specified is equal to this instance. - /// - /// The to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public override bool Equals(object obj) - { - if (obj == null) - { - return false; - } - - if (!(obj is RadioSignalEncoding)) - { - return false; - } - - return this.Equals((RadioSignalEncoding)obj); - } - - /// - /// Determines whether the specified instance is equal to this instance. - /// - /// The instance to compare with this instance. - /// - /// true if the specified is equal to this instance; otherwise, false. - /// - public bool Equals(RadioSignalEncoding other) - { - // If parameter is null return false (cast to object to prevent recursive loop!) - if ((object)other == null) - { - return false; - } - - return - this.EncodingType == other.EncodingType && - this.EncodingClass == other.EncodingClass; - } - - /// - /// Converts the instance of to the byte array. - /// - /// The byte array representing the current instance. - public byte[] ToByteArray() - { - return BitConverter.GetBytes(this.ToUInt16()); - } - - /// - /// Converts the instance of to the ushort value. - /// - /// The ushort value representing the current instance. - public ushort ToUInt16() - { - ushort val = 0; - - val |= (ushort)((uint)this.EncodingType << 0); - val |= (ushort)((uint)this.EncodingClass << 14); - - return val; - } - - /// - /// Returns a hash code for this instance. - /// - /// - /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - /// - public override int GetHashCode() - { - int hash = 17; - - // Overflow is fine, just wrap - unchecked - { - hash = (hash * 29) + this.EncodingType.GetHashCode(); - hash = (hash * 29) + this.EncodingClass.GetHashCode(); - } - - return hash; - } - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Radio.Transmitter +{ + /// + /// Enumeration values for RadioSignalEncoding (radio.tx.encoding, Radio signal encoding, + /// section 9.1.8 - 9.1.9) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public struct RadioSignalEncoding + { + /// + /// Encoding type + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Encoding type")] + public enum EncodingTypeValue : uint + { + /// + /// 8-bit mu-law + /// + _8BitMuLaw = 1, + + /// + /// CVSD per MIL-STD-188-113 + /// + CVSDPerMILSTD188113 = 2, + + /// + /// ADPCM per CCITT G.721 + /// + ADPCMPerCCITTG721 = 3, + + /// + /// 16-bit linear PCM + /// + _16BitLinearPCM = 4, + + /// + /// 8-bit linear PCM + /// + _8BitLinearPCM = 5, + + /// + /// VQ (Vector Quantization) + /// + VQVectorQuantization = 6 + } + + /// + /// Encoding class + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Encoding class")] + public enum EncodingClassValue : uint + { + /// + /// Encoded audio + /// + EncodedAudio = 0, + + /// + /// Raw Binary Data + /// + RawBinaryData = 1, + + /// + /// Application-Specific Data + /// + ApplicationSpecificData = 2, + + /// + /// Database index + /// + DatabaseIndex = 3 + } + + private RadioSignalEncoding.EncodingTypeValue encodingType; + private RadioSignalEncoding.EncodingClassValue encodingClass; + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(RadioSignalEncoding left, RadioSignalEncoding right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator ==(RadioSignalEncoding left, RadioSignalEncoding right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + // If parameters are null return false (cast to object to prevent recursive loop!) + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The scheme instance. + /// The result of the conversion. + public static explicit operator ushort(RadioSignalEncoding obj) + { + return obj.ToUInt16(); + } + + /// + /// Performs an explicit conversion from to . + /// + /// The ushort value. + /// The result of the conversion. + public static explicit operator RadioSignalEncoding(ushort value) + { + return RadioSignalEncoding.FromUInt16(value); + } + + /// + /// Creates the instance from the byte array. + /// + /// The array which holds the values for the . + /// The starting position within value. + /// The instance, represented by a byte array. + /// if the array is null. + /// if the index is lower than 0 or greater or equal than number of elements in array. + public static RadioSignalEncoding FromByteArray(byte[] array, int index) + { + if (array == null) + { + throw new ArgumentNullException("array"); + } + + if (index < 0 || + index > array.Length - 1 || + index + 2 > array.Length - 1) + { + throw new IndexOutOfRangeException(); + } + + return FromUInt16(BitConverter.ToUInt16(array, index)); + } + + /// + /// Creates the instance from the ushort value. + /// + /// The ushort value which represents the instance. + /// The instance, represented by the ushort value. + public static RadioSignalEncoding FromUInt16(ushort value) + { + RadioSignalEncoding ps = new RadioSignalEncoding(); + + uint mask0 = 0x3fff; + byte shift0 = 0; + uint newValue0 = (value & mask0) >> shift0; + ps.EncodingType = (RadioSignalEncoding.EncodingTypeValue)newValue0; + + uint mask1 = 0xc000; + byte shift1 = 14; + uint newValue1 = (value & mask1) >> shift1; + ps.EncodingClass = (RadioSignalEncoding.EncodingClassValue)newValue1; + + return ps; + } + + /// + /// Gets or sets the encodingtype. + /// + /// The encodingtype. + public RadioSignalEncoding.EncodingTypeValue EncodingType + { + get { return this.encodingType; } + set { this.encodingType = value; } + } + + /// + /// Gets or sets the encodingclass. + /// + /// The encodingclass. + public RadioSignalEncoding.EncodingClassValue EncodingClass + { + get { return this.encodingClass; } + set { this.encodingClass = value; } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + if (obj == null) + { + return false; + } + + if (!(obj is RadioSignalEncoding)) + { + return false; + } + + return this.Equals((RadioSignalEncoding)obj); + } + + /// + /// Determines whether the specified instance is equal to this instance. + /// + /// The instance to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public bool Equals(RadioSignalEncoding other) + { + // If parameter is null return false (cast to object to prevent recursive loop!) + if ((object)other == null) + { + return false; + } + + return + this.EncodingType == other.EncodingType && + this.EncodingClass == other.EncodingClass; + } + + /// + /// Converts the instance of to the byte array. + /// + /// The byte array representing the current instance. + public byte[] ToByteArray() + { + return BitConverter.GetBytes(this.ToUInt16()); + } + + /// + /// Converts the instance of to the ushort value. + /// + /// The ushort value representing the current instance. + public ushort ToUInt16() + { + ushort val = 0; + + val |= (ushort)((uint)this.EncodingType << 0); + val |= (ushort)((uint)this.EncodingClass << 14); + + return val; + } + + /// + /// Returns a hash code for this instance. + /// + /// + /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + /// + public override int GetHashCode() + { + int hash = 17; + + // Overflow is fine, just wrap + unchecked + { + hash = (hash * 29) + this.EncodingType.GetHashCode(); + hash = (hash * 29) + this.EncodingClass.GetHashCode(); + } + + return hash; + } + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/ReferenceSystem.cs b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/ReferenceSystem.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/ReferenceSystem.cs rename to Libs/CsharpDis6/Enumerations/Radio.Transmitter/ReferenceSystem.cs index 4c66e67..f6147c8 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/ReferenceSystem.cs +++ b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/ReferenceSystem.cs @@ -1,49 +1,49 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Radio.Transmitter -{ - /// - /// Enumeration values for ReferenceSystem (radio.tx.referencesystem, Reference System, - /// section 9.1.6) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum ReferenceSystem : byte - { - /// - /// World Coordinates. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("World Coordinates.")] - WorldCoordinates = 1, - - /// - /// Entity Coordinates. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Entity Coordinates.")] - EntityCoordinates = 2 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Radio.Transmitter +{ + /// + /// Enumeration values for ReferenceSystem (radio.tx.referencesystem, Reference System, + /// section 9.1.6) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum ReferenceSystem : byte + { + /// + /// World Coordinates. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("World Coordinates.")] + WorldCoordinates = 1, + + /// + /// Entity Coordinates. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Entity Coordinates.")] + EntityCoordinates = 2 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/SpreadSpectrum.cs b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/SpreadSpectrum.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/SpreadSpectrum.cs rename to Libs/CsharpDis6/Enumerations/Radio.Transmitter/SpreadSpectrum.cs index 5ff2c1b..3f2d00c 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/SpreadSpectrum.cs +++ b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/SpreadSpectrum.cs @@ -1,60 +1,60 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Radio.Transmitter -{ - /// - /// Enumeration values for SpreadSpectrum (radio.tx.mod.spreadspectrum, Spread Spectrum, - /// section 9.1.1.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - [Flags] - public enum SpreadSpectrum : ushort - { - /// - /// Frequency Hopping - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Frequency Hopping")] - FrequencyHopping = 1, - - /// - /// Pseudo-noise - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Pseudo-noise")] - PseudoNoise = 2, - - /// - /// Time Hopping - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Time Hopping")] - TimeHopping = 4 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Radio.Transmitter +{ + /// + /// Enumeration values for SpreadSpectrum (radio.tx.mod.spreadspectrum, Spread Spectrum, + /// section 9.1.1.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + [Flags] + public enum SpreadSpectrum : ushort + { + /// + /// Frequency Hopping + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Frequency Hopping")] + FrequencyHopping = 1, + + /// + /// Pseudo-noise + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Pseudo-noise")] + PseudoNoise = 2, + + /// + /// Time Hopping + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Time Hopping")] + TimeHopping = 4 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/StartOfMessage.cs b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/StartOfMessage.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/StartOfMessage.cs rename to Libs/CsharpDis6/Enumerations/Radio.Transmitter/StartOfMessage.cs index 6bbb94f..e0a299d 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/StartOfMessage.cs +++ b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/StartOfMessage.cs @@ -1,49 +1,49 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Radio.Transmitter -{ - /// - /// Enumeration values for StartOfMessage (radio.tx.param.cctt.start, Start of Message, - /// section 9.1.7.1.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum StartOfMessage : byte - { - /// - /// Not start of message. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Not start of message.")] - NotStartOfMessage = 0, - - /// - /// Start of Message. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Start of Message.")] - StartOfMessage = 1 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Radio.Transmitter +{ + /// + /// Enumeration values for StartOfMessage (radio.tx.param.cctt.start, Start of Message, + /// section 9.1.7.1.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum StartOfMessage : byte + { + /// + /// Not start of message. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Not start of message.")] + NotStartOfMessage = 0, + + /// + /// Start of Message. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Start of Message.")] + StartOfMessage = 1 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/TDLType.cs b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/TDLType.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/TDLType.cs rename to Libs/CsharpDis6/Enumerations/Radio.Transmitter/TDLType.cs index e262ff6..216ab2a 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/TDLType.cs +++ b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/TDLType.cs @@ -1,759 +1,759 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Radio.Transmitter -{ - /// - /// Enumeration values for TDLType (radio.tx.tdltype, TDL Type, - /// section 9.1.11) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum TDLType : ushort - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// PADIL. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("PADIL.")] - PADIL = 1, - - /// - /// NATO Link-1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("NATO Link-1.")] - NATOLink1 = 2, - - /// - /// ATDL-1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ATDL-1.")] - ATDL1 = 3, - - /// - /// Link 11B (TADIL B). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Link 11B (TADIL B).")] - Link11BTADILB = 4, - - /// - /// Situational Awareness Data Link (SADL). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Situational Awareness Data Link (SADL).")] - SituationalAwarenessDataLinkSADL = 5, - - /// - /// Link 16 Legacy Format (JTIDS/TADIL-J). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Link 16 Legacy Format (JTIDS/TADIL-J).")] - Link16LegacyFormatJTIDSTADILJ = 6, - - /// - /// Link 16 Legacy Format (JTIDS/FDL/TADIL-J). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Link 16 Legacy Format (JTIDS/FDL/TADIL-J).")] - Link16LegacyFormatJTIDSFDLTADILJ = 7, - - /// - /// Link 11A (TADIL A). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Link 11A (TADIL A).")] - Link11ATADILA = 8, - - /// - /// IJMS. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("IJMS.")] - IJMS = 9, - - /// - /// Link 4A (TADIL C). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Link 4A (TADIL C).")] - Link4ATADILC = 10, - - /// - /// Link 4C. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Link 4C.")] - Link4C = 11, - - /// - /// TIBS. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TIBS.")] - TIBS = 12, - - /// - /// ATL. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ATL.")] - ATL = 13, - - /// - /// Constant Source. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Constant Source.")] - ConstantSource = 14, - - /// - /// Abbreviated Command and Control. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Abbreviated Command and Control.")] - AbbreviatedCommandAndControl = 15, - - /// - /// MILSTAR. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("MILSTAR.")] - MILSTAR = 16, - - /// - /// ATHS. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ATHS.")] - ATHS = 17, - - /// - /// OTHGOLD. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("OTHGOLD.")] - OTHGOLD = 18, - - /// - /// TACELINT. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TACELINT.")] - TACELINT = 19, - - /// - /// Weapons Data Link (AWW-13). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Weapons Data Link (AWW-13).")] - WeaponsDataLinkAWW13 = 20, - - /// - /// Abbreviated Command and Control. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Abbreviated Command and Control.")] - AbbreviatedCommandAndControl_21 = 21, - - /// - /// Enhanced Position Location Reporting System (EPLRS). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Enhanced Position Location Reporting System (EPLRS).")] - EnhancedPositionLocationReportingSystemEPLRS = 22, - - /// - /// Position Location Reporting System (PLRS). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Position Location Reporting System (PLRS).")] - PositionLocationReportingSystemPLRS = 23, - - /// - /// SINCGARS. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SINCGARS.")] - SINCGARS = 24, - - /// - /// Have Quick I. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Have Quick I.")] - HaveQuickI = 25, - - /// - /// Have Quick II. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Have Quick II.")] - HaveQuickII = 26, - - /// - /// Have Quick IIA (Saturn). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Have Quick IIA (Saturn).")] - HaveQuickIIASaturn = 27, - - /// - /// Intra-Flight Data Link 1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Intra-Flight Data Link 1.")] - IntraFlightDataLink1 = 28, - - /// - /// Intra-Flight Data Link 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Intra-Flight Data Link 2.")] - IntraFlightDataLink2 = 29, - - /// - /// Improved Data Modem (IDM). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Improved Data Modem (IDM).")] - ImprovedDataModemIDM = 30, - - /// - /// Air Force Application Program Development (AFAPD). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Air Force Application Program Development (AFAPD).")] - AirForceApplicationProgramDevelopmentAFAPD = 31, - - /// - /// Cooperative Engagement Capability (CEC). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Cooperative Engagement Capability (CEC).")] - CooperativeEngagementCapabilityCEC = 32, - - /// - /// Forward Area Air Defense (FAAD) Data Link (FDL). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Forward Area Air Defense (FAAD) Data Link (FDL).")] - ForwardAreaAirDefenseFAADDataLinkFDL = 33, - - /// - /// Ground Based Data Link (GBDL). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ground Based Data Link (GBDL).")] - GroundBasedDataLinkGBDL = 34, - - /// - /// Intra Vehicular Info System (IVIS). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Intra Vehicular Info System (IVIS).")] - IntraVehicularInfoSystemIVIS = 35, - - /// - /// Marine Tactical System (MTS). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Marine Tactical System (MTS).")] - MarineTacticalSystemMTS = 36, - - /// - /// Tactical Fire Direction System (TACFIRE). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tactical Fire Direction System (TACFIRE).")] - TacticalFireDirectionSystemTACFIRE = 37, - - /// - /// Integrated Broadcast Service (IBS). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Integrated Broadcast Service (IBS).")] - IntegratedBroadcastServiceIBS = 38, - - /// - /// Airborne Information Transfer (ABIT). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Airborne Information Transfer (ABIT).")] - AirborneInformationTransferABIT = 39, - - /// - /// Advanced Tactical Airborne Reconnaissance System (ATARS) Data Link. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Advanced Tactical Airborne Reconnaissance System (ATARS) Data Link.")] - AdvancedTacticalAirborneReconnaissanceSystemATARSDataLink = 40, - - /// - /// Battle Group Passive Horizon Extension System (BGPHES) Data Link. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Battle Group Passive Horizon Extension System (BGPHES) Data Link.")] - BattleGroupPassiveHorizonExtensionSystemBGPHESDataLink = 41, - - /// - /// Common High Bandwidth Data Link (CHBDL). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Common High Bandwidth Data Link (CHBDL).")] - CommonHighBandwidthDataLinkCHBDL = 42, - - /// - /// Guardrail Interoperable Data Link (IDL). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Guardrail Interoperable Data Link (IDL).")] - GuardrailInteroperableDataLinkIDL = 43, - - /// - /// Guardrail Common Sensor System One (CSS1) Data Link. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Guardrail Common Sensor System One (CSS1) Data Link.")] - GuardrailCommonSensorSystemOneCSS1DataLink = 44, - - /// - /// Guardrail Common Sensor System Two (CSS2) Data Link. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Guardrail Common Sensor System Two (CSS2) Data Link.")] - GuardrailCommonSensorSystemTwoCSS2DataLink = 45, - - /// - /// Guardrail CSS2 Multi-Role Data Link (MRDL). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Guardrail CSS2 Multi-Role Data Link (MRDL).")] - GuardrailCSS2MultiRoleDataLinkMRDL = 46, - - /// - /// Guardrail CSS2 Direct Air to Satellite Relay (DASR) Data Link. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Guardrail CSS2 Direct Air to Satellite Relay (DASR) Data Link.")] - GuardrailCSS2DirectAirToSatelliteRelayDASRDataLink = 47, - - /// - /// Line of Sight (LOS) Data Link Implementation (LOS tether). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Line of Sight (LOS) Data Link Implementation (LOS tether).")] - LineOfSightLOSDataLinkImplementationLOSTether = 48, - - /// - /// Lightweight CDL (LWCDL). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Lightweight CDL (LWCDL).")] - LightweightCDLLWCDL = 49, - - /// - /// L-52M (SR-71). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("L-52M (SR-71).")] - L52MSR71 = 50, - - /// - /// Rivet Reach/Rivet Owl Data Link. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Rivet Reach/Rivet Owl Data Link.")] - RivetReachRivetOwlDataLink = 51, - - /// - /// Senior Span. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Senior Span.")] - SeniorSpan = 52, - - /// - /// Senior Spur. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Senior Spur.")] - SeniorSpur = 53, - - /// - /// Senior Stretch. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Senior Stretch.")] - SeniorStretch = 54, - - /// - /// Senior Year Interoperable Data Link (IDL). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Senior Year Interoperable Data Link (IDL).")] - SeniorYearInteroperableDataLinkIDL = 55, - - /// - /// Space CDL. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Space CDL.")] - SpaceCDL = 56, - - /// - /// TR-1 mode MIST Airborne Data Link. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TR-1 mode MIST Airborne Data Link.")] - TR1ModeMISTAirborneDataLink = 57, - - /// - /// Ku-band SATCOM Data Link Implementation (UAV). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ku-band SATCOM Data Link Implementation (UAV).")] - KuBandSATCOMDataLinkImplementationUAV = 58, - - /// - /// Mission Equipment Control Data link (MECDL). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mission Equipment Control Data link (MECDL).")] - MissionEquipmentControlDataLinkMECDL = 59, - - /// - /// Radar Data Transmitting Set Data Link. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Radar Data Transmitting Set Data Link.")] - RadarDataTransmittingSetDataLink = 60, - - /// - /// Surveillance and Control Data Link (SCDL). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Surveillance and Control Data Link (SCDL).")] - SurveillanceAndControlDataLinkSCDL = 61, - - /// - /// Tactical UAV Video. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tactical UAV Video.")] - TacticalUAVVideo = 62, - - /// - /// UHF SATCOM Data Link Implementation (UAV). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("UHF SATCOM Data Link Implementation (UAV).")] - UHFSATCOMDataLinkImplementationUAV = 63, - - /// - /// Tactical Common Data Link (TCDL). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tactical Common Data Link (TCDL).")] - TacticalCommonDataLinkTCDL = 64, - - /// - /// Low Level Air Picture Interface (LLAPI). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Low Level Air Picture Interface (LLAPI).")] - LowLevelAirPictureInterfaceLLAPI = 65, - - /// - /// Weapons Data Link (AGM-130). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Weapons Data Link (AGM-130).")] - WeaponsDataLinkAGM130 = 66, - - /// - /// GC3. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("GC3.")] - GC3 = 99, - - /// - /// Link 16 Standardized Format (JTIDS/MIDS/TADIL J). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Link 16 Standardized Format (JTIDS/MIDS/TADIL J).")] - Link16StandardizedFormatJTIDSMIDSTADILJ = 100, - - /// - /// Link 16 Enhanced Data Rate (EDR JTIDS/MIDS/TADIL-J). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Link 16 Enhanced Data Rate (EDR JTIDS/MIDS/TADIL-J).")] - Link16EnhancedDataRateEDRJTIDSMIDSTADILJ = 101, - - /// - /// JTIDS/MIDS Net Data Load (TIMS/TOMS). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("JTIDS/MIDS Net Data Load (TIMS/TOMS).")] - JTIDSMIDSNetDataLoadTIMSTOMS = 102, - - /// - /// Link 22. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Link 22.")] - Link22 = 103, - - /// - /// AFIWC IADS Communications Links. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AFIWC IADS Communications Links.")] - AFIWCIADSCommunicationsLinks = 104 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Radio.Transmitter +{ + /// + /// Enumeration values for TDLType (radio.tx.tdltype, TDL Type, + /// section 9.1.11) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum TDLType : ushort + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// PADIL. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("PADIL.")] + PADIL = 1, + + /// + /// NATO Link-1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("NATO Link-1.")] + NATOLink1 = 2, + + /// + /// ATDL-1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ATDL-1.")] + ATDL1 = 3, + + /// + /// Link 11B (TADIL B). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Link 11B (TADIL B).")] + Link11BTADILB = 4, + + /// + /// Situational Awareness Data Link (SADL). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Situational Awareness Data Link (SADL).")] + SituationalAwarenessDataLinkSADL = 5, + + /// + /// Link 16 Legacy Format (JTIDS/TADIL-J). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Link 16 Legacy Format (JTIDS/TADIL-J).")] + Link16LegacyFormatJTIDSTADILJ = 6, + + /// + /// Link 16 Legacy Format (JTIDS/FDL/TADIL-J). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Link 16 Legacy Format (JTIDS/FDL/TADIL-J).")] + Link16LegacyFormatJTIDSFDLTADILJ = 7, + + /// + /// Link 11A (TADIL A). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Link 11A (TADIL A).")] + Link11ATADILA = 8, + + /// + /// IJMS. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("IJMS.")] + IJMS = 9, + + /// + /// Link 4A (TADIL C). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Link 4A (TADIL C).")] + Link4ATADILC = 10, + + /// + /// Link 4C. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Link 4C.")] + Link4C = 11, + + /// + /// TIBS. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TIBS.")] + TIBS = 12, + + /// + /// ATL. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ATL.")] + ATL = 13, + + /// + /// Constant Source. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Constant Source.")] + ConstantSource = 14, + + /// + /// Abbreviated Command and Control. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Abbreviated Command and Control.")] + AbbreviatedCommandAndControl = 15, + + /// + /// MILSTAR. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("MILSTAR.")] + MILSTAR = 16, + + /// + /// ATHS. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ATHS.")] + ATHS = 17, + + /// + /// OTHGOLD. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("OTHGOLD.")] + OTHGOLD = 18, + + /// + /// TACELINT. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TACELINT.")] + TACELINT = 19, + + /// + /// Weapons Data Link (AWW-13). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Weapons Data Link (AWW-13).")] + WeaponsDataLinkAWW13 = 20, + + /// + /// Abbreviated Command and Control. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Abbreviated Command and Control.")] + AbbreviatedCommandAndControl_21 = 21, + + /// + /// Enhanced Position Location Reporting System (EPLRS). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Enhanced Position Location Reporting System (EPLRS).")] + EnhancedPositionLocationReportingSystemEPLRS = 22, + + /// + /// Position Location Reporting System (PLRS). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Position Location Reporting System (PLRS).")] + PositionLocationReportingSystemPLRS = 23, + + /// + /// SINCGARS. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SINCGARS.")] + SINCGARS = 24, + + /// + /// Have Quick I. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Have Quick I.")] + HaveQuickI = 25, + + /// + /// Have Quick II. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Have Quick II.")] + HaveQuickII = 26, + + /// + /// Have Quick IIA (Saturn). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Have Quick IIA (Saturn).")] + HaveQuickIIASaturn = 27, + + /// + /// Intra-Flight Data Link 1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Intra-Flight Data Link 1.")] + IntraFlightDataLink1 = 28, + + /// + /// Intra-Flight Data Link 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Intra-Flight Data Link 2.")] + IntraFlightDataLink2 = 29, + + /// + /// Improved Data Modem (IDM). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Improved Data Modem (IDM).")] + ImprovedDataModemIDM = 30, + + /// + /// Air Force Application Program Development (AFAPD). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Air Force Application Program Development (AFAPD).")] + AirForceApplicationProgramDevelopmentAFAPD = 31, + + /// + /// Cooperative Engagement Capability (CEC). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Cooperative Engagement Capability (CEC).")] + CooperativeEngagementCapabilityCEC = 32, + + /// + /// Forward Area Air Defense (FAAD) Data Link (FDL). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Forward Area Air Defense (FAAD) Data Link (FDL).")] + ForwardAreaAirDefenseFAADDataLinkFDL = 33, + + /// + /// Ground Based Data Link (GBDL). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ground Based Data Link (GBDL).")] + GroundBasedDataLinkGBDL = 34, + + /// + /// Intra Vehicular Info System (IVIS). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Intra Vehicular Info System (IVIS).")] + IntraVehicularInfoSystemIVIS = 35, + + /// + /// Marine Tactical System (MTS). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Marine Tactical System (MTS).")] + MarineTacticalSystemMTS = 36, + + /// + /// Tactical Fire Direction System (TACFIRE). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tactical Fire Direction System (TACFIRE).")] + TacticalFireDirectionSystemTACFIRE = 37, + + /// + /// Integrated Broadcast Service (IBS). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Integrated Broadcast Service (IBS).")] + IntegratedBroadcastServiceIBS = 38, + + /// + /// Airborne Information Transfer (ABIT). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Airborne Information Transfer (ABIT).")] + AirborneInformationTransferABIT = 39, + + /// + /// Advanced Tactical Airborne Reconnaissance System (ATARS) Data Link. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Advanced Tactical Airborne Reconnaissance System (ATARS) Data Link.")] + AdvancedTacticalAirborneReconnaissanceSystemATARSDataLink = 40, + + /// + /// Battle Group Passive Horizon Extension System (BGPHES) Data Link. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Battle Group Passive Horizon Extension System (BGPHES) Data Link.")] + BattleGroupPassiveHorizonExtensionSystemBGPHESDataLink = 41, + + /// + /// Common High Bandwidth Data Link (CHBDL). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Common High Bandwidth Data Link (CHBDL).")] + CommonHighBandwidthDataLinkCHBDL = 42, + + /// + /// Guardrail Interoperable Data Link (IDL). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Guardrail Interoperable Data Link (IDL).")] + GuardrailInteroperableDataLinkIDL = 43, + + /// + /// Guardrail Common Sensor System One (CSS1) Data Link. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Guardrail Common Sensor System One (CSS1) Data Link.")] + GuardrailCommonSensorSystemOneCSS1DataLink = 44, + + /// + /// Guardrail Common Sensor System Two (CSS2) Data Link. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Guardrail Common Sensor System Two (CSS2) Data Link.")] + GuardrailCommonSensorSystemTwoCSS2DataLink = 45, + + /// + /// Guardrail CSS2 Multi-Role Data Link (MRDL). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Guardrail CSS2 Multi-Role Data Link (MRDL).")] + GuardrailCSS2MultiRoleDataLinkMRDL = 46, + + /// + /// Guardrail CSS2 Direct Air to Satellite Relay (DASR) Data Link. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Guardrail CSS2 Direct Air to Satellite Relay (DASR) Data Link.")] + GuardrailCSS2DirectAirToSatelliteRelayDASRDataLink = 47, + + /// + /// Line of Sight (LOS) Data Link Implementation (LOS tether). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Line of Sight (LOS) Data Link Implementation (LOS tether).")] + LineOfSightLOSDataLinkImplementationLOSTether = 48, + + /// + /// Lightweight CDL (LWCDL). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Lightweight CDL (LWCDL).")] + LightweightCDLLWCDL = 49, + + /// + /// L-52M (SR-71). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("L-52M (SR-71).")] + L52MSR71 = 50, + + /// + /// Rivet Reach/Rivet Owl Data Link. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Rivet Reach/Rivet Owl Data Link.")] + RivetReachRivetOwlDataLink = 51, + + /// + /// Senior Span. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Senior Span.")] + SeniorSpan = 52, + + /// + /// Senior Spur. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Senior Spur.")] + SeniorSpur = 53, + + /// + /// Senior Stretch. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Senior Stretch.")] + SeniorStretch = 54, + + /// + /// Senior Year Interoperable Data Link (IDL). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Senior Year Interoperable Data Link (IDL).")] + SeniorYearInteroperableDataLinkIDL = 55, + + /// + /// Space CDL. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Space CDL.")] + SpaceCDL = 56, + + /// + /// TR-1 mode MIST Airborne Data Link. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TR-1 mode MIST Airborne Data Link.")] + TR1ModeMISTAirborneDataLink = 57, + + /// + /// Ku-band SATCOM Data Link Implementation (UAV). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ku-band SATCOM Data Link Implementation (UAV).")] + KuBandSATCOMDataLinkImplementationUAV = 58, + + /// + /// Mission Equipment Control Data link (MECDL). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mission Equipment Control Data link (MECDL).")] + MissionEquipmentControlDataLinkMECDL = 59, + + /// + /// Radar Data Transmitting Set Data Link. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Radar Data Transmitting Set Data Link.")] + RadarDataTransmittingSetDataLink = 60, + + /// + /// Surveillance and Control Data Link (SCDL). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Surveillance and Control Data Link (SCDL).")] + SurveillanceAndControlDataLinkSCDL = 61, + + /// + /// Tactical UAV Video. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tactical UAV Video.")] + TacticalUAVVideo = 62, + + /// + /// UHF SATCOM Data Link Implementation (UAV). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("UHF SATCOM Data Link Implementation (UAV).")] + UHFSATCOMDataLinkImplementationUAV = 63, + + /// + /// Tactical Common Data Link (TCDL). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tactical Common Data Link (TCDL).")] + TacticalCommonDataLinkTCDL = 64, + + /// + /// Low Level Air Picture Interface (LLAPI). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Low Level Air Picture Interface (LLAPI).")] + LowLevelAirPictureInterfaceLLAPI = 65, + + /// + /// Weapons Data Link (AGM-130). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Weapons Data Link (AGM-130).")] + WeaponsDataLinkAGM130 = 66, + + /// + /// GC3. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("GC3.")] + GC3 = 99, + + /// + /// Link 16 Standardized Format (JTIDS/MIDS/TADIL J). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Link 16 Standardized Format (JTIDS/MIDS/TADIL J).")] + Link16StandardizedFormatJTIDSMIDSTADILJ = 100, + + /// + /// Link 16 Enhanced Data Rate (EDR JTIDS/MIDS/TADIL-J). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Link 16 Enhanced Data Rate (EDR JTIDS/MIDS/TADIL-J).")] + Link16EnhancedDataRateEDRJTIDSMIDSTADILJ = 101, + + /// + /// JTIDS/MIDS Net Data Load (TIMS/TOMS). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("JTIDS/MIDS Net Data Load (TIMS/TOMS).")] + JTIDSMIDSNetDataLoadTIMSTOMS = 102, + + /// + /// Link 22. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Link 22.")] + Link22 = 103, + + /// + /// AFIWC IADS Communications Links. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AFIWC IADS Communications Links.")] + AFIWCIADSCommunicationsLinks = 104 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/TransmitState.cs b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/TransmitState.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/TransmitState.cs rename to Libs/CsharpDis6/Enumerations/Radio.Transmitter/TransmitState.cs index b52b446..1aa1750 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/TransmitState.cs +++ b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/TransmitState.cs @@ -1,59 +1,59 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Radio.Transmitter -{ - /// - /// Enumeration values for TransmitState (radio.tx.state, Transmit State, - /// section 9.1.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum TransmitState : byte - { - /// - /// Off. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Off.")] - Off = 0, - - /// - /// On but not transmitting. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("On but not transmitting.")] - OnButNotTransmitting = 1, - - /// - /// On and transmitting. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("On and transmitting.")] - OnAndTransmitting = 2 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Radio.Transmitter +{ + /// + /// Enumeration values for TransmitState (radio.tx.state, Transmit State, + /// section 9.1.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum TransmitState : byte + { + /// + /// Off. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Off.")] + Off = 0, + + /// + /// On but not transmitting. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("On but not transmitting.")] + OnButNotTransmitting = 1, + + /// + /// On and transmitting. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("On and transmitting.")] + OnAndTransmitting = 2 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/TransmitterModulationSystemType.cs b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/TransmitterModulationSystemType.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/TransmitterModulationSystemType.cs rename to Libs/CsharpDis6/Enumerations/Radio.Transmitter/TransmitterModulationSystemType.cs index b5e267b..c4e63fc 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/TransmitterModulationSystemType.cs +++ b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/TransmitterModulationSystemType.cs @@ -1,119 +1,119 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Radio.Transmitter -{ - /// - /// Enumeration values for TransmitterModulationSystemType (radio.tx.mod.system, System, - /// section 9.1.1.4) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum TransmitterModulationSystemType : ushort - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Generic. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Generic.")] - Generic = 1, - - /// - /// HQ. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HQ.")] - HQ = 2, - - /// - /// HQII. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HQII.")] - HQII = 3, - - /// - /// HQIIA. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HQIIA.")] - HQIIA = 4, - - /// - /// SINCGARS. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SINCGARS.")] - SINCGARS = 5, - - /// - /// CCTT SINCGARS. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("CCTT SINCGARS.")] - CCTTSINCGARS = 6, - - /// - /// EPLRS (Enhanced Position Location Reporting System). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("EPLRS (Enhanced Position Location Reporting System).")] - EPLRS = 7, - - /// - /// JTIDS/MIDS. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("JTIDS/MIDS.")] - JTIDS_MIDS = 8 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Radio.Transmitter +{ + /// + /// Enumeration values for TransmitterModulationSystemType (radio.tx.mod.system, System, + /// section 9.1.1.4) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum TransmitterModulationSystemType : ushort + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Generic. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Generic.")] + Generic = 1, + + /// + /// HQ. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HQ.")] + HQ = 2, + + /// + /// HQII. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HQII.")] + HQII = 3, + + /// + /// HQIIA. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HQIIA.")] + HQIIA = 4, + + /// + /// SINCGARS. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SINCGARS.")] + SINCGARS = 5, + + /// + /// CCTT SINCGARS. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("CCTT SINCGARS.")] + CCTTSINCGARS = 6, + + /// + /// EPLRS (Enhanced Position Location Reporting System). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("EPLRS (Enhanced Position Location Reporting System).")] + EPLRS = 7, + + /// + /// JTIDS/MIDS. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("JTIDS/MIDS.")] + JTIDS_MIDS = 8 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/UserProtocolIdentificationNumber.cs b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/UserProtocolIdentificationNumber.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/UserProtocolIdentificationNumber.cs rename to Libs/CsharpDis6/Enumerations/Radio.Transmitter/UserProtocolIdentificationNumber.cs index bdaf3a8..828461b 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Radio.Transmitter/UserProtocolIdentificationNumber.cs +++ b/Libs/CsharpDis6/Enumerations/Radio.Transmitter/UserProtocolIdentificationNumber.cs @@ -1,309 +1,309 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Radio.Transmitter -{ - /// - /// Enumeration values for UserProtocolIdentificationNumber (radio.tx.protocolid, User Protocol Identification Number, - /// section 9.1.10) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum UserProtocolIdentificationNumber : uint - { - /// - /// CCSIL. poc: Marnie Salisbury. email: MARNIE@MITRE.ORG. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("CCSIL. poc: Marnie Salisbury. email: MARNIE@MITRE.ORG.")] - CCSIL = 1, - - /// - /// A2ATD SINCGARS ERF. type: Binary data. poc: Chuck Woodman. email: WOODMAN@ORLANDO.LORAL.COM. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("A2ATD SINCGARS ERF. type: Binary data. poc: Chuck Woodman. email: WOODMAN@ORLANDO.LORAL.COM.")] - A2ATDSINCGARSERF = 5, - - /// - /// A2ATD CAC2. type: Binary Report/Overlay data. poc: Wayne Beard. email: WBEARD@ORLANDO.LORAL.COM. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("A2ATD CAC2. type: Binary Report/Overlay data. poc: Wayne Beard. email: WBEARD@ORLANDO.LORAL.COM.")] - A2ATDCAC2 = 6, - - /// - /// Battle Command. type: Abbreviated Command and Control. poc: Gary Gagnon. email: ggagnon@cas-inc.com. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Battle Command. type: Abbreviated Command and Control. poc: Gary Gagnon. email: ggagnon@cas-inc.com.")] - BattleCommand = 20, - - /// - /// AFIWC IADS Track Report. type: Binary Data. poc: Randy Schuetz. email: randy.schuetz@lackland.af.mil. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AFIWC IADS Track Report. type: Binary Data. poc: Randy Schuetz. email: randy.schuetz@lackland.af.mil.")] - AFIWCIADSTrackReport = 30, - - /// - /// AFIWC IADS Comm C2 Message. type: Binary Data. poc: Randy Schuetz. email: randy.schuetz@lackland.af.mil. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AFIWC IADS Comm C2 Message. type: Binary Data. poc: Randy Schuetz. email: randy.schuetz@lackland.af.mil.")] - AFIWCIADSCommC2Message = 31, - - /// - /// AFIWC IADS Ground Control Interceptor (GCI) Command. type: Binary Data. poc: Randy Schuetz. email: randy.schuetz@lackland.af.mil. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AFIWC IADS Ground Control Interceptor (GCI) Command. type: Binary Data. poc: Randy Schuetz. email: randy.schuetz@lackland.af.mil.")] - AFIWCIADSGroundControlInterceptorGCICommand = 32, - - /// - /// AFIWC Voice Text Message. type: Binary Data. poc: Randy Schuetz. email: randy.schuetz@lackland.af.mil. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AFIWC Voice Text Message. type: Binary Data. poc: Randy Schuetz. email: randy.schuetz@lackland.af.mil.")] - AFIWCVoiceTextMessage = 35, - - /// - /// ModSAF Text Radio. type: Free Format ASCII Text. poc: Richard Schaffer. email: RSCHAFFER@CAMB-LADS.LORAL.COM. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ModSAF Text Radio. type: Free Format ASCII Text. poc: Richard Schaffer. email: RSCHAFFER@CAMB-LADS.LORAL.COM.")] - ModSAFTextRadio = 177, - - /// - /// CCTT SINCGARS ERF-LOCKOUT. type: Binary Data. poc: Jim Keenan. email: jimk@greatwall.cctt.com. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("CCTT SINCGARS ERF-LOCKOUT. type: Binary Data. poc: Jim Keenan. email: jimk@greatwall.cctt.com.")] - CCTTSINCGARSERFLOCKOUT = 200, - - /// - /// CCTT SINCGARS ERF-HOPSET. type: Binary Data. poc: Jim Keenan. email: jimk@greatwall.cctt.com. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("CCTT SINCGARS ERF-HOPSET. type: Binary Data. poc: Jim Keenan. email: jimk@greatwall.cctt.com.")] - CCTTSINCGARSERFHOPSET = 201, - - /// - /// CCTT SINCGARS OTAR. type: Binary Data. poc: Jim Keenan. email: jimk@greatwall.cctt.com. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("CCTT SINCGARS OTAR. type: Binary Data. poc: Jim Keenan. email: jimk@greatwall.cctt.com.")] - CCTTSINCGARSOTAR = 202, - - /// - /// CCTT SINCGARS DATA. type: Binary Data. poc: Jim Keenan. email: jimk@greatwall.cctt.com. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("CCTT SINCGARS DATA. type: Binary Data. poc: Jim Keenan. email: jimk@greatwall.cctt.com.")] - CCTTSINCGARSDATA = 203, - - /// - /// ModSAF FWA Forward Air Controller. type: Binary data. poc: Dan Coffin. email: dcoffin@camb-lads.loral.com. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ModSAF FWA Forward Air Controller. type: Binary data. poc: Dan Coffin. email: dcoffin@camb-lads.loral.com.")] - ModSAFFWAForwardAirController = 546, - - /// - /// ModSAF Threat ADA C3. type: Binary data. poc: Dan Coffin. email: dcoffin@camb-lads.loral.com. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ModSAF Threat ADA C3. type: Binary data. poc: Dan Coffin. email: dcoffin@camb-lads.loral.com.")] - ModSAFThreatADAC3 = 832, - - /// - /// F-16 MTC AFAPD Protocol. type: Packed Binary AFAPD Message Format for F-16 Block 50/52. poc: Albert Ludwig. org: The Boeing Company. email: albert.j.ludwig@boeing.com. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("F-16 MTC AFAPD Protocol. type: Packed Binary AFAPD Message Format for F-16 Block 50/52. poc: Albert Ludwig. org: The Boeing Company. email: albert.j.ludwig@boeing.com.")] - F16MTCAFAPDProtocol = 1000, - - /// - /// F-16 MTC IDL Protocol. type: Packed Binary IDL Message Format for F-16 Block 50/52. poc: Albert Ludwig. org: The Boeing Company. email: albert.j.ludwig@boeing.com. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("F-16 MTC IDL Protocol. type: Packed Binary IDL Message Format for F-16 Block 50/52. poc: Albert Ludwig. org: The Boeing Company. email: albert.j.ludwig@boeing.com.")] - F16MTCIDLProtocol = 1100, - - /// - /// ModSAF Artillery Fire Control. type: Structured text followed by binary data. poc: Richard Schaffer. email: RSCHAFFER@CAMB-LADS.LORAL.COM. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ModSAF Artillery Fire Control. type: Structured text followed by binary data. poc: Richard Schaffer. email: RSCHAFFER@CAMB-LADS.LORAL.COM.")] - ModSAFArtilleryFireControl = 4570, - - /// - /// AGTS. type: Binary Report/ Overlay data. poc: Steve Gendreau. email: GENDREAU@ESCMAIL.ORL.MMC.COM. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AGTS. type: Binary Report/ Overlay data. poc: Steve Gendreau. email: GENDREAU@ESCMAIL.ORL.MMC.COM.")] - AGTS = 5361, - - /// - /// GC3. type: Binary data. poc: Karl Shepherd. email: karl.shepherd@gsc.gte.com. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("GC3. type: Binary data. poc: Karl Shepherd. email: karl.shepherd@gsc.gte.com.")] - GC3 = 6000, - - /// - /// WNCP data. type: Binary data. poc: Karl Shepherd. email: karl.shepherd@gsc.gte.com. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("WNCP data. type: Binary data. poc: Karl Shepherd. email: karl.shepherd@gsc.gte.com.")] - WNCPData = 6010, - - /// - /// Spoken text message. type: Data about speaker followed by free ASCII text. poc: Brett Kaylor. org: GTE Government Systems. email: brett.kaylor@gsc.gte.com. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Spoken text message. type: Data about speaker followed by free ASCII text. poc: Brett Kaylor. org: GTE Government Systems. email: brett.kaylor@gsc.gte.com.")] - SpokenTextMessage = 6020, - - /// - /// Longbow IDM message. type: Simulated IDM message for Longbow Apache Aircraft. poc: Peter Obear. org: Carmel Applied Technologies, Inc. email: obear@catinet.com. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Longbow IDM message. type: Simulated IDM message for Longbow Apache Aircraft. poc: Peter Obear. org: Carmel Applied Technologies, Inc. email: obear@catinet.com.")] - LongbowIDMMessage = 6661, - - /// - /// Comanche IDM message. type: Simulated IDM message for Comanche Aircraft. poc: Peter Obear. org: Carmel Applied Technologies, Inc. email: obear@catinet.com. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Comanche IDM message. type: Simulated IDM message for Comanche Aircraft. poc: Peter Obear. org: Carmel Applied Technologies, Inc. email: obear@catinet.com.")] - ComancheIDMMessage = 6662, - - /// - /// Longbow Airborne TACFIRE Message. type: Simulated TACFIRE IDM message for Longbow Apache Aircraft. poc: Peter Obear. org: Carmel Applied Technologies, Inc. email: obear@catinet.com. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Longbow Airborne TACFIRE Message. type: Simulated TACFIRE IDM message for Longbow Apache Aircraft. poc: Peter Obear. org: Carmel Applied Technologies, Inc. email: obear@catinet.com.")] - LongbowAirborneTACFIREMessage = 6663, - - /// - /// Longbow Ground TACFIRE Message. type: Simulated TACFIRE IDM message for Longbow Apache Aircraft. poc: Peter Obear. org: Carmel Applied Technologies, Inc. email: obear@catinet.com. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Longbow Ground TACFIRE Message. type: Simulated TACFIRE IDM message for Longbow Apache Aircraft. poc: Peter Obear. org: Carmel Applied Technologies, Inc. email: obear@catinet.com.")] - LongbowGroundTACFIREMessage = 6664, - - /// - /// Longbow AFAPD Message. type: Simulated AFAPD IDM message for Longbow Apache Aircraft. poc: Peter Obear. org: Carmel Applied Technologies, Inc. email: obear@catinet.com. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Longbow AFAPD Message. type: Simulated AFAPD IDM message for Longbow Apache Aircraft. poc: Peter Obear. org: Carmel Applied Technologies, Inc. email: obear@catinet.com.")] - LongbowAFAPDMessage = 6665, - - /// - /// Longbow ERF message. type: Simulated ERF message for Longbow Apache Aircraft. poc: Jeffery Day. org: Boeing - St. Louis. email: Jeffrey.Day@MW.Boeing.com. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Longbow ERF message. type: Simulated ERF message for Longbow Apache Aircraft. poc: Jeffery Day. org: Boeing - St. Louis. email: Jeffrey.Day@MW.Boeing.com.")] - LongbowERFMessage = 6666 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Radio.Transmitter +{ + /// + /// Enumeration values for UserProtocolIdentificationNumber (radio.tx.protocolid, User Protocol Identification Number, + /// section 9.1.10) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum UserProtocolIdentificationNumber : uint + { + /// + /// CCSIL. poc: Marnie Salisbury. email: MARNIE@MITRE.ORG. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("CCSIL. poc: Marnie Salisbury. email: MARNIE@MITRE.ORG.")] + CCSIL = 1, + + /// + /// A2ATD SINCGARS ERF. type: Binary data. poc: Chuck Woodman. email: WOODMAN@ORLANDO.LORAL.COM. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("A2ATD SINCGARS ERF. type: Binary data. poc: Chuck Woodman. email: WOODMAN@ORLANDO.LORAL.COM.")] + A2ATDSINCGARSERF = 5, + + /// + /// A2ATD CAC2. type: Binary Report/Overlay data. poc: Wayne Beard. email: WBEARD@ORLANDO.LORAL.COM. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("A2ATD CAC2. type: Binary Report/Overlay data. poc: Wayne Beard. email: WBEARD@ORLANDO.LORAL.COM.")] + A2ATDCAC2 = 6, + + /// + /// Battle Command. type: Abbreviated Command and Control. poc: Gary Gagnon. email: ggagnon@cas-inc.com. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Battle Command. type: Abbreviated Command and Control. poc: Gary Gagnon. email: ggagnon@cas-inc.com.")] + BattleCommand = 20, + + /// + /// AFIWC IADS Track Report. type: Binary Data. poc: Randy Schuetz. email: randy.schuetz@lackland.af.mil. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AFIWC IADS Track Report. type: Binary Data. poc: Randy Schuetz. email: randy.schuetz@lackland.af.mil.")] + AFIWCIADSTrackReport = 30, + + /// + /// AFIWC IADS Comm C2 Message. type: Binary Data. poc: Randy Schuetz. email: randy.schuetz@lackland.af.mil. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AFIWC IADS Comm C2 Message. type: Binary Data. poc: Randy Schuetz. email: randy.schuetz@lackland.af.mil.")] + AFIWCIADSCommC2Message = 31, + + /// + /// AFIWC IADS Ground Control Interceptor (GCI) Command. type: Binary Data. poc: Randy Schuetz. email: randy.schuetz@lackland.af.mil. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AFIWC IADS Ground Control Interceptor (GCI) Command. type: Binary Data. poc: Randy Schuetz. email: randy.schuetz@lackland.af.mil.")] + AFIWCIADSGroundControlInterceptorGCICommand = 32, + + /// + /// AFIWC Voice Text Message. type: Binary Data. poc: Randy Schuetz. email: randy.schuetz@lackland.af.mil. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AFIWC Voice Text Message. type: Binary Data. poc: Randy Schuetz. email: randy.schuetz@lackland.af.mil.")] + AFIWCVoiceTextMessage = 35, + + /// + /// ModSAF Text Radio. type: Free Format ASCII Text. poc: Richard Schaffer. email: RSCHAFFER@CAMB-LADS.LORAL.COM. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ModSAF Text Radio. type: Free Format ASCII Text. poc: Richard Schaffer. email: RSCHAFFER@CAMB-LADS.LORAL.COM.")] + ModSAFTextRadio = 177, + + /// + /// CCTT SINCGARS ERF-LOCKOUT. type: Binary Data. poc: Jim Keenan. email: jimk@greatwall.cctt.com. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("CCTT SINCGARS ERF-LOCKOUT. type: Binary Data. poc: Jim Keenan. email: jimk@greatwall.cctt.com.")] + CCTTSINCGARSERFLOCKOUT = 200, + + /// + /// CCTT SINCGARS ERF-HOPSET. type: Binary Data. poc: Jim Keenan. email: jimk@greatwall.cctt.com. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("CCTT SINCGARS ERF-HOPSET. type: Binary Data. poc: Jim Keenan. email: jimk@greatwall.cctt.com.")] + CCTTSINCGARSERFHOPSET = 201, + + /// + /// CCTT SINCGARS OTAR. type: Binary Data. poc: Jim Keenan. email: jimk@greatwall.cctt.com. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("CCTT SINCGARS OTAR. type: Binary Data. poc: Jim Keenan. email: jimk@greatwall.cctt.com.")] + CCTTSINCGARSOTAR = 202, + + /// + /// CCTT SINCGARS DATA. type: Binary Data. poc: Jim Keenan. email: jimk@greatwall.cctt.com. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("CCTT SINCGARS DATA. type: Binary Data. poc: Jim Keenan. email: jimk@greatwall.cctt.com.")] + CCTTSINCGARSDATA = 203, + + /// + /// ModSAF FWA Forward Air Controller. type: Binary data. poc: Dan Coffin. email: dcoffin@camb-lads.loral.com. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ModSAF FWA Forward Air Controller. type: Binary data. poc: Dan Coffin. email: dcoffin@camb-lads.loral.com.")] + ModSAFFWAForwardAirController = 546, + + /// + /// ModSAF Threat ADA C3. type: Binary data. poc: Dan Coffin. email: dcoffin@camb-lads.loral.com. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ModSAF Threat ADA C3. type: Binary data. poc: Dan Coffin. email: dcoffin@camb-lads.loral.com.")] + ModSAFThreatADAC3 = 832, + + /// + /// F-16 MTC AFAPD Protocol. type: Packed Binary AFAPD Message Format for F-16 Block 50/52. poc: Albert Ludwig. org: The Boeing Company. email: albert.j.ludwig@boeing.com. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("F-16 MTC AFAPD Protocol. type: Packed Binary AFAPD Message Format for F-16 Block 50/52. poc: Albert Ludwig. org: The Boeing Company. email: albert.j.ludwig@boeing.com.")] + F16MTCAFAPDProtocol = 1000, + + /// + /// F-16 MTC IDL Protocol. type: Packed Binary IDL Message Format for F-16 Block 50/52. poc: Albert Ludwig. org: The Boeing Company. email: albert.j.ludwig@boeing.com. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("F-16 MTC IDL Protocol. type: Packed Binary IDL Message Format for F-16 Block 50/52. poc: Albert Ludwig. org: The Boeing Company. email: albert.j.ludwig@boeing.com.")] + F16MTCIDLProtocol = 1100, + + /// + /// ModSAF Artillery Fire Control. type: Structured text followed by binary data. poc: Richard Schaffer. email: RSCHAFFER@CAMB-LADS.LORAL.COM. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ModSAF Artillery Fire Control. type: Structured text followed by binary data. poc: Richard Schaffer. email: RSCHAFFER@CAMB-LADS.LORAL.COM.")] + ModSAFArtilleryFireControl = 4570, + + /// + /// AGTS. type: Binary Report/ Overlay data. poc: Steve Gendreau. email: GENDREAU@ESCMAIL.ORL.MMC.COM. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AGTS. type: Binary Report/ Overlay data. poc: Steve Gendreau. email: GENDREAU@ESCMAIL.ORL.MMC.COM.")] + AGTS = 5361, + + /// + /// GC3. type: Binary data. poc: Karl Shepherd. email: karl.shepherd@gsc.gte.com. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("GC3. type: Binary data. poc: Karl Shepherd. email: karl.shepherd@gsc.gte.com.")] + GC3 = 6000, + + /// + /// WNCP data. type: Binary data. poc: Karl Shepherd. email: karl.shepherd@gsc.gte.com. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("WNCP data. type: Binary data. poc: Karl Shepherd. email: karl.shepherd@gsc.gte.com.")] + WNCPData = 6010, + + /// + /// Spoken text message. type: Data about speaker followed by free ASCII text. poc: Brett Kaylor. org: GTE Government Systems. email: brett.kaylor@gsc.gte.com. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Spoken text message. type: Data about speaker followed by free ASCII text. poc: Brett Kaylor. org: GTE Government Systems. email: brett.kaylor@gsc.gte.com.")] + SpokenTextMessage = 6020, + + /// + /// Longbow IDM message. type: Simulated IDM message for Longbow Apache Aircraft. poc: Peter Obear. org: Carmel Applied Technologies, Inc. email: obear@catinet.com. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Longbow IDM message. type: Simulated IDM message for Longbow Apache Aircraft. poc: Peter Obear. org: Carmel Applied Technologies, Inc. email: obear@catinet.com.")] + LongbowIDMMessage = 6661, + + /// + /// Comanche IDM message. type: Simulated IDM message for Comanche Aircraft. poc: Peter Obear. org: Carmel Applied Technologies, Inc. email: obear@catinet.com. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Comanche IDM message. type: Simulated IDM message for Comanche Aircraft. poc: Peter Obear. org: Carmel Applied Technologies, Inc. email: obear@catinet.com.")] + ComancheIDMMessage = 6662, + + /// + /// Longbow Airborne TACFIRE Message. type: Simulated TACFIRE IDM message for Longbow Apache Aircraft. poc: Peter Obear. org: Carmel Applied Technologies, Inc. email: obear@catinet.com. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Longbow Airborne TACFIRE Message. type: Simulated TACFIRE IDM message for Longbow Apache Aircraft. poc: Peter Obear. org: Carmel Applied Technologies, Inc. email: obear@catinet.com.")] + LongbowAirborneTACFIREMessage = 6663, + + /// + /// Longbow Ground TACFIRE Message. type: Simulated TACFIRE IDM message for Longbow Apache Aircraft. poc: Peter Obear. org: Carmel Applied Technologies, Inc. email: obear@catinet.com. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Longbow Ground TACFIRE Message. type: Simulated TACFIRE IDM message for Longbow Apache Aircraft. poc: Peter Obear. org: Carmel Applied Technologies, Inc. email: obear@catinet.com.")] + LongbowGroundTACFIREMessage = 6664, + + /// + /// Longbow AFAPD Message. type: Simulated AFAPD IDM message for Longbow Apache Aircraft. poc: Peter Obear. org: Carmel Applied Technologies, Inc. email: obear@catinet.com. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Longbow AFAPD Message. type: Simulated AFAPD IDM message for Longbow Apache Aircraft. poc: Peter Obear. org: Carmel Applied Technologies, Inc. email: obear@catinet.com.")] + LongbowAFAPDMessage = 6665, + + /// + /// Longbow ERF message. type: Simulated ERF message for Longbow Apache Aircraft. poc: Jeffery Day. org: Boeing - St. Louis. email: Jeffrey.Day@MW.Boeing.com. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Longbow ERF message. type: Simulated ERF message for Longbow Apache Aircraft. poc: Jeffery Day. org: Boeing - St. Louis. email: Jeffrey.Day@MW.Boeing.com.")] + LongbowERFMessage = 6666 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Radio/ReceiverState.cs b/Libs/CsharpDis6/Enumerations/Radio/ReceiverState.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Radio/ReceiverState.cs rename to Libs/CsharpDis6/Enumerations/Radio/ReceiverState.cs index e590ce8..29cf3bc 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Radio/ReceiverState.cs +++ b/Libs/CsharpDis6/Enumerations/Radio/ReceiverState.cs @@ -1,59 +1,59 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Radio -{ - /// - /// Enumeration values for ReceiverState (radio.rx.state, Receiver State, - /// section 9.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum ReceiverState : ushort - { - /// - /// Off. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Off.")] - Off = 0, - - /// - /// On but not receiving. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("On but not receiving.")] - OnButNotReceiving = 1, - - /// - /// On and receiving. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("On and receiving.")] - OnAndReceiving = 2 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Radio +{ + /// + /// Enumeration values for ReceiverState (radio.rx.state, Receiver State, + /// section 9.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum ReceiverState : ushort + { + /// + /// Off. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Off.")] + Off = 0, + + /// + /// On but not receiving. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("On but not receiving.")] + OnButNotReceiving = 1, + + /// + /// On and receiving. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("On and receiving.")] + OnAndReceiving = 2 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/SimulationManagement/AcknowledgeFlag.cs b/Libs/CsharpDis6/Enumerations/SimulationManagement/AcknowledgeFlag.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/SimulationManagement/AcknowledgeFlag.cs rename to Libs/CsharpDis6/Enumerations/SimulationManagement/AcknowledgeFlag.cs index feaa50a..78c743e 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/SimulationManagement/AcknowledgeFlag.cs +++ b/Libs/CsharpDis6/Enumerations/SimulationManagement/AcknowledgeFlag.cs @@ -1,79 +1,79 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.SimulationManagement -{ - /// - /// Enumeration values for AcknowledgeFlag (simman.ack.ackflag, Acknowledge Flag, - /// section 7.3.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum AcknowledgeFlag : ushort - { - /// - /// Create Entity. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Create Entity.")] - CreateEntity = 1, - - /// - /// Remove Entity. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Remove Entity.")] - RemoveEntity = 2, - - /// - /// Start/Resume. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Start/Resume.")] - StartResume = 3, - - /// - /// Stop/Freeze. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Stop/Freeze.")] - StopFreeze = 4, - - /// - /// Transfer Control Request. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Transfer Control Request.")] - TransferControlRequest = 5 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.SimulationManagement +{ + /// + /// Enumeration values for AcknowledgeFlag (simman.ack.ackflag, Acknowledge Flag, + /// section 7.3.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum AcknowledgeFlag : ushort + { + /// + /// Create Entity. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Create Entity.")] + CreateEntity = 1, + + /// + /// Remove Entity. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Remove Entity.")] + RemoveEntity = 2, + + /// + /// Start/Resume. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Start/Resume.")] + StartResume = 3, + + /// + /// Stop/Freeze. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Stop/Freeze.")] + StopFreeze = 4, + + /// + /// Transfer Control Request. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Transfer Control Request.")] + TransferControlRequest = 5 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/SimulationManagement/ActionId.cs b/Libs/CsharpDis6/Enumerations/SimulationManagement/ActionId.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/SimulationManagement/ActionId.cs rename to Libs/CsharpDis6/Enumerations/SimulationManagement/ActionId.cs index 399fd16..cc5df33 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/SimulationManagement/ActionId.cs +++ b/Libs/CsharpDis6/Enumerations/SimulationManagement/ActionId.cs @@ -1,519 +1,519 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.SimulationManagement -{ - /// - /// Enumeration values for ActionId (simman.actionrequest.actionid, Action ID, - /// section 7.4) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum ActionId : uint - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Local storage of the requested information. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Local storage of the requested information.")] - LocalStorageOfTheRequestedInformation = 1, - - /// - /// Inform SM of event ran out of ammunition. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Inform SM of event ran out of ammunition.")] - InformSMOfEventRanOutOfAmmunition = 2, - - /// - /// Inform SM of event killed in action. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Inform SM of event killed in action.")] - InformSMOfEventKilledInAction = 3, - - /// - /// Inform SM of event damage. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Inform SM of event damage.")] - InformSMOfEventDamage = 4, - - /// - /// Inform SM of event mobility disabled. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Inform SM of event mobility disabled.")] - InformSMOfEventMobilityDisabled = 5, - - /// - /// Inform SM of event fire disabled. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Inform SM of event fire disabled.")] - InformSMOfEventFireDisabled = 6, - - /// - /// Inform SM of event ran out of fuel. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Inform SM of event ran out of fuel.")] - InformSMOfEventRanOutOfFuel = 7, - - /// - /// Recall checkpoint data. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Recall checkpoint data.")] - RecallCheckpointData = 8, - - /// - /// Recall initial parameters. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Recall initial parameters.")] - RecallInitialParameters = 9, - - /// - /// Initiate tether-lead. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Initiate tether-lead.")] - InitiateTetherLead = 10, - - /// - /// Initiate tether-follow. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Initiate tether-follow.")] - InitiateTetherFollow = 11, - - /// - /// Unthether. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Unthether.")] - Unthether = 12, - - /// - /// Initiate service station resupply. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Initiate service station resupply.")] - InitiateServiceStationResupply = 13, - - /// - /// Initiate tailgate resupply. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Initiate tailgate resupply.")] - InitiateTailgateResupply = 14, - - /// - /// Initiate hitch lead. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Initiate hitch lead.")] - InitiateHitchLead = 15, - - /// - /// Initiate hitch follow. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Initiate hitch follow.")] - InitiateHitchFollow = 16, - - /// - /// Unhitch. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Unhitch.")] - Unhitch = 17, - - /// - /// Mount. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mount.")] - Mount = 18, - - /// - /// Dismount. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Dismount.")] - Dismount = 19, - - /// - /// Start DRC (Daily Readiness Check). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Start DRC (Daily Readiness Check).")] - StartDRCDailyReadinessCheck = 20, - - /// - /// Stop DRC. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Stop DRC.")] - StopDRC = 21, - - /// - /// Data Query. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Data Query.")] - DataQuery = 22, - - /// - /// Status Request. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Status Request.")] - StatusRequest = 23, - - /// - /// Send Object State Data. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Send Object State Data.")] - SendObjectStateData = 24, - - /// - /// Reconstitute. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Reconstitute.")] - Reconstitute = 25, - - /// - /// Lock Site Configuration. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Lock Site Configuration.")] - LockSiteConfiguration = 26, - - /// - /// Unlock Site Configuration. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Unlock Site Configuration.")] - UnlockSiteConfiguration = 27, - - /// - /// Update Site Configuration. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Update Site Configuration.")] - UpdateSiteConfiguration = 28, - - /// - /// Query Site Configuration. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Query Site Configuration.")] - QuerySiteConfiguration = 29, - - /// - /// Tethering Information. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tethering Information.")] - TetheringInformation = 30, - - /// - /// Mount Intent. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mount Intent.")] - MountIntent = 31, - - /// - /// Accept Subscription. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Accept Subscription.")] - AcceptSubscription = 33, - - /// - /// Unsubscribe. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Unsubscribe.")] - Unsubscribe = 34, - - /// - /// Teleport entity. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Teleport entity.")] - TeleportEntity = 35, - - /// - /// Change aggregate state. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Change aggregate state.")] - ChangeAggregateState = 36, - - /// - /// Request Start PDU. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Request Start PDU.")] - RequestStartPDU = 37, - - /// - /// Wakeup get ready for initialization. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Wakeup get ready for initialization.")] - WakeupGetReadyForInitialization = 38, - - /// - /// Initialize internal parameters. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Initialize internal parameters.")] - InitializeInternalParameters = 39, - - /// - /// Send plan data. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Send plan data.")] - SendPlanData = 40, - - /// - /// Synchronize internal clocks. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Synchronize internal clocks.")] - SynchronizeInternalClocks = 41, - - /// - /// Run. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Run.")] - Run = 42, - - /// - /// Save internal parameters. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Save internal parameters.")] - SaveInternalParameters = 43, - - /// - /// Simulate malfunction. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Simulate malfunction.")] - SimulateMalfunction = 44, - - /// - /// Join exercise. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Join exercise.")] - JoinExercise = 45, - - /// - /// Resign exercise. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Resign exercise.")] - ResignExercise = 46, - - /// - /// Time advance. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Time advance.")] - TimeAdvance = 47, - - /// - /// TACCSF LOS Request-Type 1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TACCSF LOS Request-Type 1.")] - TACCSFLOSRequestType1 = 100, - - /// - /// TACCSF LOS Request-Type 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TACCSF LOS Request-Type 2.")] - TACCSFLOSRequestType2 = 101 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.SimulationManagement +{ + /// + /// Enumeration values for ActionId (simman.actionrequest.actionid, Action ID, + /// section 7.4) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum ActionId : uint + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Local storage of the requested information. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Local storage of the requested information.")] + LocalStorageOfTheRequestedInformation = 1, + + /// + /// Inform SM of event ran out of ammunition. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Inform SM of event ran out of ammunition.")] + InformSMOfEventRanOutOfAmmunition = 2, + + /// + /// Inform SM of event killed in action. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Inform SM of event killed in action.")] + InformSMOfEventKilledInAction = 3, + + /// + /// Inform SM of event damage. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Inform SM of event damage.")] + InformSMOfEventDamage = 4, + + /// + /// Inform SM of event mobility disabled. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Inform SM of event mobility disabled.")] + InformSMOfEventMobilityDisabled = 5, + + /// + /// Inform SM of event fire disabled. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Inform SM of event fire disabled.")] + InformSMOfEventFireDisabled = 6, + + /// + /// Inform SM of event ran out of fuel. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Inform SM of event ran out of fuel.")] + InformSMOfEventRanOutOfFuel = 7, + + /// + /// Recall checkpoint data. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Recall checkpoint data.")] + RecallCheckpointData = 8, + + /// + /// Recall initial parameters. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Recall initial parameters.")] + RecallInitialParameters = 9, + + /// + /// Initiate tether-lead. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Initiate tether-lead.")] + InitiateTetherLead = 10, + + /// + /// Initiate tether-follow. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Initiate tether-follow.")] + InitiateTetherFollow = 11, + + /// + /// Unthether. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Unthether.")] + Unthether = 12, + + /// + /// Initiate service station resupply. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Initiate service station resupply.")] + InitiateServiceStationResupply = 13, + + /// + /// Initiate tailgate resupply. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Initiate tailgate resupply.")] + InitiateTailgateResupply = 14, + + /// + /// Initiate hitch lead. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Initiate hitch lead.")] + InitiateHitchLead = 15, + + /// + /// Initiate hitch follow. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Initiate hitch follow.")] + InitiateHitchFollow = 16, + + /// + /// Unhitch. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Unhitch.")] + Unhitch = 17, + + /// + /// Mount. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mount.")] + Mount = 18, + + /// + /// Dismount. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Dismount.")] + Dismount = 19, + + /// + /// Start DRC (Daily Readiness Check). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Start DRC (Daily Readiness Check).")] + StartDRCDailyReadinessCheck = 20, + + /// + /// Stop DRC. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Stop DRC.")] + StopDRC = 21, + + /// + /// Data Query. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Data Query.")] + DataQuery = 22, + + /// + /// Status Request. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Status Request.")] + StatusRequest = 23, + + /// + /// Send Object State Data. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Send Object State Data.")] + SendObjectStateData = 24, + + /// + /// Reconstitute. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Reconstitute.")] + Reconstitute = 25, + + /// + /// Lock Site Configuration. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Lock Site Configuration.")] + LockSiteConfiguration = 26, + + /// + /// Unlock Site Configuration. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Unlock Site Configuration.")] + UnlockSiteConfiguration = 27, + + /// + /// Update Site Configuration. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Update Site Configuration.")] + UpdateSiteConfiguration = 28, + + /// + /// Query Site Configuration. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Query Site Configuration.")] + QuerySiteConfiguration = 29, + + /// + /// Tethering Information. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tethering Information.")] + TetheringInformation = 30, + + /// + /// Mount Intent. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mount Intent.")] + MountIntent = 31, + + /// + /// Accept Subscription. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Accept Subscription.")] + AcceptSubscription = 33, + + /// + /// Unsubscribe. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Unsubscribe.")] + Unsubscribe = 34, + + /// + /// Teleport entity. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Teleport entity.")] + TeleportEntity = 35, + + /// + /// Change aggregate state. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Change aggregate state.")] + ChangeAggregateState = 36, + + /// + /// Request Start PDU. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Request Start PDU.")] + RequestStartPDU = 37, + + /// + /// Wakeup get ready for initialization. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Wakeup get ready for initialization.")] + WakeupGetReadyForInitialization = 38, + + /// + /// Initialize internal parameters. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Initialize internal parameters.")] + InitializeInternalParameters = 39, + + /// + /// Send plan data. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Send plan data.")] + SendPlanData = 40, + + /// + /// Synchronize internal clocks. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Synchronize internal clocks.")] + SynchronizeInternalClocks = 41, + + /// + /// Run. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Run.")] + Run = 42, + + /// + /// Save internal parameters. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Save internal parameters.")] + SaveInternalParameters = 43, + + /// + /// Simulate malfunction. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Simulate malfunction.")] + SimulateMalfunction = 44, + + /// + /// Join exercise. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Join exercise.")] + JoinExercise = 45, + + /// + /// Resign exercise. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Resign exercise.")] + ResignExercise = 46, + + /// + /// Time advance. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Time advance.")] + TimeAdvance = 47, + + /// + /// TACCSF LOS Request-Type 1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TACCSF LOS Request-Type 1.")] + TACCSFLOSRequestType1 = 100, + + /// + /// TACCSF LOS Request-Type 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TACCSF LOS Request-Type 2.")] + TACCSFLOSRequestType2 = 101 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/SimulationManagement/ActionResponseRequestStatus.cs b/Libs/CsharpDis6/Enumerations/SimulationManagement/ActionResponseRequestStatus.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/SimulationManagement/ActionResponseRequestStatus.cs rename to Libs/CsharpDis6/Enumerations/SimulationManagement/ActionResponseRequestStatus.cs index a87688c..cf7f14a 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/SimulationManagement/ActionResponseRequestStatus.cs +++ b/Libs/CsharpDis6/Enumerations/SimulationManagement/ActionResponseRequestStatus.cs @@ -1,169 +1,169 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.SimulationManagement -{ - /// - /// Enumeration values for ActionResponseRequestStatus (simman.actionresponse.status, Request Status, - /// section 7.5) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum ActionResponseRequestStatus : uint - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Pending. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Pending.")] - Pending = 1, - - /// - /// Executing. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Executing.")] - Executing = 2, - - /// - /// Partially Complete. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Partially Complete.")] - PartiallyComplete = 3, - - /// - /// Complete. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Complete.")] - Complete = 4, - - /// - /// Request rejected. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Request rejected.")] - RequestRejected = 5, - - /// - /// Retransmit request now. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Retransmit request now.")] - RetransmitRequestNow = 6, - - /// - /// Retransmit request later. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Retransmit request later.")] - RetransmitRequestLater = 7, - - /// - /// Invalid time parameters. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Invalid time parameters.")] - InvalidTimeParameters = 8, - - /// - /// Simulation time exceeded. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Simulation time exceeded.")] - SimulationTimeExceeded = 9, - - /// - /// Request done. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Request done.")] - RequestDone = 10, - - /// - /// TACCSF LOS Reply-Type 1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TACCSF LOS Reply-Type 1.")] - TACCSFLOSReplyType1 = 100, - - /// - /// TACCSF LOS Reply-Type 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TACCSF LOS Reply-Type 2.")] - TACCSFLOSReplyType2 = 101, - - /// - /// Join Exercise Request Rejected. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Join Exercise Request Rejected.")] - JoinExerciseRequestRejected = 201 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.SimulationManagement +{ + /// + /// Enumeration values for ActionResponseRequestStatus (simman.actionresponse.status, Request Status, + /// section 7.5) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum ActionResponseRequestStatus : uint + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Pending. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Pending.")] + Pending = 1, + + /// + /// Executing. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Executing.")] + Executing = 2, + + /// + /// Partially Complete. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Partially Complete.")] + PartiallyComplete = 3, + + /// + /// Complete. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Complete.")] + Complete = 4, + + /// + /// Request rejected. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Request rejected.")] + RequestRejected = 5, + + /// + /// Retransmit request now. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Retransmit request now.")] + RetransmitRequestNow = 6, + + /// + /// Retransmit request later. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Retransmit request later.")] + RetransmitRequestLater = 7, + + /// + /// Invalid time parameters. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Invalid time parameters.")] + InvalidTimeParameters = 8, + + /// + /// Simulation time exceeded. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Simulation time exceeded.")] + SimulationTimeExceeded = 9, + + /// + /// Request done. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Request done.")] + RequestDone = 10, + + /// + /// TACCSF LOS Reply-Type 1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TACCSF LOS Reply-Type 1.")] + TACCSFLOSReplyType1 = 100, + + /// + /// TACCSF LOS Reply-Type 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TACCSF LOS Reply-Type 2.")] + TACCSFLOSReplyType2 = 101, + + /// + /// Join Exercise Request Rejected. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Join Exercise Request Rejected.")] + JoinExerciseRequestRejected = 201 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/SimulationManagement/DatumSpecificationRecord.cs b/Libs/CsharpDis6/Enumerations/SimulationManagement/DatumSpecificationRecord.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/SimulationManagement/DatumSpecificationRecord.cs rename to Libs/CsharpDis6/Enumerations/SimulationManagement/DatumSpecificationRecord.cs index 0946241..256d7da 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/SimulationManagement/DatumSpecificationRecord.cs +++ b/Libs/CsharpDis6/Enumerations/SimulationManagement/DatumSpecificationRecord.cs @@ -1,7329 +1,7329 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.SimulationManagement -{ - /// - /// Enumeration values for DatumSpecificationRecord (simman.datumid, Datum Specification record, - /// section 7.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum DatumSpecificationRecord : uint - { - /// - /// Identification. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Identification.")] - Identification = 10000, - - /// - /// Entity Type. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Entity Type.")] - EntityType = 11000, - - /// - /// Concatenated. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Concatenated.")] - Concatenated = 11100, - - /// - /// Kind. type: Unsigned Integer. length: 8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Kind. type: Unsigned Integer. length: 8.")] - Kind = 11110, - - /// - /// Domain. type: Unsigned Integer. length: 8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Domain. type: Unsigned Integer. length: 8.")] - Domain = 11120, - - /// - /// Country. type: Unsigned Integer. length: 16. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Country. type: Unsigned Integer. length: 16.")] - Country = 11130, - - /// - /// Category. type: Unsigned Integer. length: 8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Category. type: Unsigned Integer. length: 8.")] - Category = 11140, - - /// - /// Subcategory. type: Unsigned Integer. length: 8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Subcategory. type: Unsigned Integer. length: 8.")] - Subcategory = 11150, - - /// - /// Specific. type: Unsigned Integer. length: 8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Specific. type: Unsigned Integer. length: 8.")] - Specific = 11160, - - /// - /// Extra. type: Unsigned Integer. length: 8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Extra. type: Unsigned Integer. length: 8.")] - Extra = 11170, - - /// - /// Force ID. type: Unsigned Integer. length: 8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Force ID. type: Unsigned Integer. length: 8.")] - ForceID = 11200, - - /// - /// Description. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Description.")] - Description = 11300, - - /// - /// Alternative Entity Type. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Alternative Entity Type.")] - AlternativeEntityType = 12000, - - /// - /// Kind. type: Unsigned Integer. length: 8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Kind. type: Unsigned Integer. length: 8.")] - Kind_12110 = 12110, - - /// - /// Domain. type: Unsigned Integer. length: 8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Domain. type: Unsigned Integer. length: 8.")] - Domain_12120 = 12120, - - /// - /// Country. type: Unsigned Integer. length: 16. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Country. type: Unsigned Integer. length: 16.")] - Country_12130 = 12130, - - /// - /// Category. type: Unsigned Integer. length: 8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Category. type: Unsigned Integer. length: 8.")] - Category_12140 = 12140, - - /// - /// Subcategory. type: Unsigned Integer. length: 8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Subcategory. type: Unsigned Integer. length: 8.")] - Subcategory_12150 = 12150, - - /// - /// Specific. type: Unsigned Integer. length: 8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Specific. type: Unsigned Integer. length: 8.")] - Specific_12160 = 12160, - - /// - /// Extra. type: Unsigned Integer. length: 8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Extra. type: Unsigned Integer. length: 8.")] - Extra_12170 = 12170, - - /// - /// Description. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Description.")] - Description_12300 = 12300, - - /// - /// Entity Marking. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Entity Marking.")] - EntityMarking = 13000, - - /// - /// Entity Marking Characters. type: String. length: 80. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Entity Marking Characters. type: String. length: 80.")] - EntityMarkingCharacters = 13100, - - /// - /// Crew ID. type: String. length: 80. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Crew ID. type: String. length: 80.")] - CrewID = 13200, - - /// - /// Task Organization. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Task Organization.")] - TaskOrganization = 14000, - - /// - /// Regiment Name. type: String. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Regiment Name. type: String.")] - RegimentName = 14200, - - /// - /// Battalion Name. type: String. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Battalion Name. type: String.")] - BattalionName = 14300, - - /// - /// Company Name. type: String. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Company Name. type: String.")] - CompanyName = 14400, - - /// - /// Platoon Name. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Platoon Name.")] - PlatoonName = 14500, - - /// - /// Squad Name. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Squad Name.")] - SquadName = 14520, - - /// - /// Team Name. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Team Name.")] - TeamName = 14540, - - /// - /// Bumper Number. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Bumper Number.")] - BumperNumber = 14600, - - /// - /// Vehicle Number. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Vehicle Number.")] - VehicleNumber = 14700, - - /// - /// Unit Number. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Unit Number.")] - UnitNumber = 14800, - - /// - /// DIS Identity. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DIS Identity.")] - DISIdentity = 15000, - - /// - /// DIS Site ID. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DIS Site ID.")] - DISSiteID = 15100, - - /// - /// DIS Host ID. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DIS Host ID.")] - DISHostID = 15200, - - /// - /// DIS Entity ID. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DIS Entity ID.")] - DISEntityID = 15300, - - /// - /// Mount Intent. type: Datum Specification Sub-record. length: 544. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mount Intent. type: Datum Specification Sub-record. length: 544.")] - MountIntent = 15400, - - /// - /// Tether-Unthether Command ID. type: Unsigned Integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tether-Unthether Command ID. type: Unsigned Integer. length: 32.")] - TetherUnthetherCommandID = 15500, - - /// - /// Teleport Entity Data Record. type: Variable record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Teleport Entity Data Record. type: Variable record.")] - TeleportEntityDataRecord = 15510, - - /// - /// DIS Aggregate ID (Set if communication to aggregate). type: Unsigned Integer. length: 32. range: Integer Aggregate ID. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DIS Aggregate ID (Set if communication to aggregate). type: Unsigned Integer. length: 32. range: Integer Aggregate ID.")] - DISAggregateIDSetIfCommunicationToAggregate = 15600, - - /// - /// Loads. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Loads.")] - Loads = 20000, - - /// - /// Crew Members. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Crew Members.")] - CrewMembers = 21000, - - /// - /// Crew Member ID. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Crew Member ID.")] - CrewMemberID = 21100, - - /// - /// Health. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Health.")] - Health = 21200, - - /// - /// Job Assignment. type: String. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Job Assignment. type: String.")] - JobAssignment = 21300, - - /// - /// Fuel. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuel.")] - Fuel = 23000, - - /// - /// Quantity. units: Liters. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Quantity. units: Liters.")] - Quantity = 23100, - - /// - /// Quantity. units: Gallons. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Quantity. units: Gallons.")] - Quantity_23105 = 23105, - - /// - /// Ammunition. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ammunition.")] - Ammunition = 24000, - - /// - /// 120-mm HEAT, quantity. units: Rounds. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("120-mm HEAT, quantity. units: Rounds.")] - _120MmHEATQuantity = 24001, - - /// - /// 120-mm SABOT, quantity. units: Rounds. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("120-mm SABOT, quantity. units: Rounds.")] - _120MmSABOTQuantity = 24002, - - /// - /// 12.7-mm M8, quantity. units: Rounds. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("12.7-mm M8, quantity. units: Rounds.")] - _127MmM8Quantity = 24003, - - /// - /// 12.7-mm M20, quantity. units: Rounds. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("12.7-mm M20, quantity. units: Rounds.")] - _127MmM20Quantity = 24004, - - /// - /// 7.62-mm M62, quantity. units: Rounds. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("7.62-mm M62, quantity. units: Rounds.")] - _762MmM62Quantity = 24005, - - /// - /// M250 UKL8A1, quantity. units: Grenades. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("M250 UKL8A1, quantity. units: Grenades.")] - M250UKL8A1Quantity = 24006, - - /// - /// M250 UKL8A3, quantity. units: Grenades. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("M250 UKL8A3, quantity. units: Grenades.")] - M250UKL8A3Quantity = 24007, - - /// - /// 7.62-mm M80, quantity. units: Rounds. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("7.62-mm M80, quantity. units: Rounds.")] - _762MmM80Quantity = 24008, - - /// - /// 12.7-mm, quantity. units: Rounds. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("12.7-mm, quantity. units: Rounds.")] - _127MmQuantity = 24009, - - /// - /// 7.62-mm, quantity. units: Rounds. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("7.62-mm, quantity. units: Rounds.")] - _762MmQuantity = 24010, - - /// - /// Mines, quantity. units: Mines. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mines, quantity. units: Mines.")] - MinesQuantity = 24060, - - /// - /// Type. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Type.")] - Type = 24100, - - /// - /// Kind. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Kind.")] - Kind_24110 = 24110, - - /// - /// Domain. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Domain.")] - Domain_24120 = 24120, - - /// - /// Country. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Country.")] - Country_24130 = 24130, - - /// - /// Category. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Category.")] - Category_24140 = 24140, - - /// - /// Subcategory. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Subcategory.")] - Subcategory_24150 = 24150, - - /// - /// Extra. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Extra.")] - Extra_24160 = 24160, - - /// - /// Description. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Description.")] - Description_24300 = 24300, - - /// - /// Cargo. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Cargo.")] - Cargo = 25000, - - /// - /// Vehicle Mass. type: Unsigned Integer. length: 32. units: Kilograms. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Vehicle Mass. type: Unsigned Integer. length: 32. units: Kilograms.")] - VehicleMass = 26000, - - /// - /// Supply Quantity. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Supply Quantity.")] - SupplyQuantity = 27000, - - /// - /// Armament. type: Boolean. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Armament. type: Boolean.")] - Armament = 28000, - - /// - /// Status. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Status.")] - Status = 30000, - - /// - /// Activate entity. type: Integer. length: 32. range: 0 Unspecified, 1 Activate platform. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Activate entity. type: Integer. length: 32. range: 0 Unspecified, 1 Activate platform.")] - ActivateEntity = 30010, - - /// - /// Subscription State. type: Enumeration. length: 8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Subscription State. type: Enumeration. length: 8.")] - SubscriptionState = 30100, - - /// - /// Round trip time delay. type: Unsigned Integer. length: 32 bits. units: milliseconds. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Round trip time delay. type: Unsigned Integer. length: 32 bits. units: milliseconds.")] - RoundTripTimeDelay = 30300, - - /// - /// TADIL J message count (label 0). type: Unsigned Integer. length: 32 bits. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TADIL J message count (label 0). type: Unsigned Integer. length: 32 bits.")] - TADILJMessageCountLabel0 = 30400, - - /// - /// TADIL J message count (label 1). type: Unsigned Integer. length: 32 bits. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TADIL J message count (label 1). type: Unsigned Integer. length: 32 bits.")] - TADILJMessageCountLabel1 = 30401, - - /// - /// TADIL J message count (label 2). type: Unsigned Integer. length: 32 bits. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TADIL J message count (label 2). type: Unsigned Integer. length: 32 bits.")] - TADILJMessageCountLabel2 = 30402, - - /// - /// TADIL J message count (label 3). type: Unsigned Integer. length: 32 bits. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TADIL J message count (label 3). type: Unsigned Integer. length: 32 bits.")] - TADILJMessageCountLabel3 = 30403, - - /// - /// TADIL J message count (label 4). type: Unsigned Integer. length: 32 bits. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TADIL J message count (label 4). type: Unsigned Integer. length: 32 bits.")] - TADILJMessageCountLabel4 = 30404, - - /// - /// TADIL J message count (label 5). type: Unsigned Integer. length: 32 bits. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TADIL J message count (label 5). type: Unsigned Integer. length: 32 bits.")] - TADILJMessageCountLabel5 = 30405, - - /// - /// TADIL J message count (label 6). type: Unsigned Integer. length: 32 bits. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TADIL J message count (label 6). type: Unsigned Integer. length: 32 bits.")] - TADILJMessageCountLabel6 = 30406, - - /// - /// TADIL J message count (label 7). type: Unsigned Integer. length: 32 bits. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TADIL J message count (label 7). type: Unsigned Integer. length: 32 bits.")] - TADILJMessageCountLabel7 = 30407, - - /// - /// TADIL J message count (label 8). type: Unsigned Integer. length: 32 bits. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TADIL J message count (label 8). type: Unsigned Integer. length: 32 bits.")] - TADILJMessageCountLabel8 = 30408, - - /// - /// TADIL J message count (label 9). type: Unsigned Integer. length: 32 bits. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TADIL J message count (label 9). type: Unsigned Integer. length: 32 bits.")] - TADILJMessageCountLabel9 = 30409, - - /// - /// TADIL J message count (label 10). type: Unsigned Integer. length: 32 bits. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TADIL J message count (label 10). type: Unsigned Integer. length: 32 bits.")] - TADILJMessageCountLabel10 = 30410, - - /// - /// TADIL J message count (label 11). type: Unsigned Integer. length: 32 bits. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TADIL J message count (label 11). type: Unsigned Integer. length: 32 bits.")] - TADILJMessageCountLabel11 = 30411, - - /// - /// TADIL J message count (label 12). type: Unsigned Integer. length: 32 bits. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TADIL J message count (label 12). type: Unsigned Integer. length: 32 bits.")] - TADILJMessageCountLabel12 = 30412, - - /// - /// TADIL J message count (label 13). type: Unsigned Integer. length: 32 bits. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TADIL J message count (label 13). type: Unsigned Integer. length: 32 bits.")] - TADILJMessageCountLabel13 = 30413, - - /// - /// TADIL J message count (label 14). type: Unsigned Integer. length: 32 bits. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TADIL J message count (label 14). type: Unsigned Integer. length: 32 bits.")] - TADILJMessageCountLabel14 = 30414, - - /// - /// TADIL J message count (label 15). type: Unsigned Integer. length: 32 bits. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TADIL J message count (label 15). type: Unsigned Integer. length: 32 bits.")] - TADILJMessageCountLabel15 = 30415, - - /// - /// TADIL J message count (label 16). type: Unsigned Integer. length: 32 bits. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TADIL J message count (label 16). type: Unsigned Integer. length: 32 bits.")] - TADILJMessageCountLabel16 = 30416, - - /// - /// TADIL J message count (label 17). type: Unsigned Integer. length: 32 bits. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TADIL J message count (label 17). type: Unsigned Integer. length: 32 bits.")] - TADILJMessageCountLabel17 = 30417, - - /// - /// TADIL J message count (label 18). type: Unsigned Integer. length: 32 bits. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TADIL J message count (label 18). type: Unsigned Integer. length: 32 bits.")] - TADILJMessageCountLabel18 = 30418, - - /// - /// TADIL J message count (label 19). type: Unsigned Integer. length: 32 bits. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TADIL J message count (label 19). type: Unsigned Integer. length: 32 bits.")] - TADILJMessageCountLabel19 = 30419, - - /// - /// TADIL J message count (label 20). type: Unsigned Integer. length: 32 bits. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TADIL J message count (label 20). type: Unsigned Integer. length: 32 bits.")] - TADILJMessageCountLabel20 = 30420, - - /// - /// TADIL J message count (label 21). type: Unsigned Integer. length: 32 bits. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TADIL J message count (label 21). type: Unsigned Integer. length: 32 bits.")] - TADILJMessageCountLabel21 = 30421, - - /// - /// TADIL J message count (label 22). type: Unsigned Integer. length: 32 bits. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TADIL J message count (label 22). type: Unsigned Integer. length: 32 bits.")] - TADILJMessageCountLabel22 = 30422, - - /// - /// TADIL J message count (label 23). type: Unsigned Integer. length: 32 bits. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TADIL J message count (label 23). type: Unsigned Integer. length: 32 bits.")] - TADILJMessageCountLabel23 = 30423, - - /// - /// TADIL J message count (label 24). type: Unsigned Integer. length: 32 bits. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TADIL J message count (label 24). type: Unsigned Integer. length: 32 bits.")] - TADILJMessageCountLabel24 = 30424, - - /// - /// TADIL J message count (label 25). type: Unsigned Integer. length: 32 bits. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TADIL J message count (label 25). type: Unsigned Integer. length: 32 bits.")] - TADILJMessageCountLabel25 = 30425, - - /// - /// TADIL J message count (label 26). type: Unsigned Integer. length: 32 bits. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TADIL J message count (label 26). type: Unsigned Integer. length: 32 bits.")] - TADILJMessageCountLabel26 = 30426, - - /// - /// TADIL J message count (label 27). type: Unsigned Integer. length: 32 bits. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TADIL J message count (label 27). type: Unsigned Integer. length: 32 bits.")] - TADILJMessageCountLabel27 = 30427, - - /// - /// TADIL J message count (label 28). type: Unsigned Integer. length: 32 bits. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TADIL J message count (label 28). type: Unsigned Integer. length: 32 bits.")] - TADILJMessageCountLabel28 = 30428, - - /// - /// TADIL J message count (label 29). type: Unsigned Integer. length: 32 bits. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TADIL J message count (label 29). type: Unsigned Integer. length: 32 bits.")] - TADILJMessageCountLabel29 = 30429, - - /// - /// TADIL J message count (label 30). type: Unsigned Integer. length: 32 bits. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TADIL J message count (label 30). type: Unsigned Integer. length: 32 bits.")] - TADILJMessageCountLabel30 = 30430, - - /// - /// TADIL J message count (label 31). type: Unsigned Integer. length: 32 bits. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TADIL J message count (label 31). type: Unsigned Integer. length: 32 bits.")] - TADILJMessageCountLabel31 = 30431, - - /// - /// Position. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Position.")] - Position = 31000, - - /// - /// Route (Waypoint) type. type: Integer. length: 32. range: 0 Default, 1 Orbit. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Route (Waypoint) type. type: Integer. length: 32. range: 0 Default, 1 Orbit.")] - RouteWaypointType = 31010, - - /// - /// MilGrid10. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("MilGrid10.")] - MilGrid10 = 31100, - - /// - /// Geocentric Coordinates. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Geocentric Coordinates.")] - GeocentricCoordinates = 31200, - - /// - /// X. type: Unsigned Integer. length: 32. units: Meters. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("X. type: Unsigned Integer. length: 32. units: Meters.")] - X = 31210, - - /// - /// Y. type: Unsigned Integer. length: 32. units: Meters. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Y. type: Unsigned Integer. length: 32. units: Meters.")] - Y = 31220, - - /// - /// Z. type: Unsigned Integer. length: 32. units: Meters. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Z. type: Unsigned Integer. length: 32. units: Meters.")] - Z = 31230, - - /// - /// Latitude. type: Unsigned Integer. length: 32. units: Degrees. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Latitude. type: Unsigned Integer. length: 32. units: Degrees.")] - Latitude = 31300, - - /// - /// Longitude. type: Unsigned Integer. length: 32. units: Degrees. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Longitude. type: Unsigned Integer. length: 32. units: Degrees.")] - Longitude = 31400, - - /// - /// Line of Sight. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Line of Sight.")] - LineOfSight = 31500, - - /// - /// X. type: Unsigned Integer. length: 32. units: meters. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("X. type: Unsigned Integer. length: 32. units: meters.")] - X_31510 = 31510, - - /// - /// Y. type: Unsigned Integer. length: 32. units: Meters. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Y. type: Unsigned Integer. length: 32. units: Meters.")] - Y_31520 = 31520, - - /// - /// Z. type: Unsigned Integer. length: 32. units: Meters. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Z. type: Unsigned Integer. length: 32. units: Meters.")] - Z_31530 = 31530, - - /// - /// Altitude. type: Integer. length: 32. units: Meters. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Altitude. type: Integer. length: 32. units: Meters.")] - Altitude = 31600, - - /// - /// Destination Latitude. type: Integer. length: 32. units: (10000th) Degrees. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Destination Latitude. type: Integer. length: 32. units: (10000th) Degrees.")] - DestinationLatitude = 31700, - - /// - /// Destination Longitude. type: Integer. length: 32. units: (10000th) Degrees. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Destination Longitude. type: Integer. length: 32. units: (10000th) Degrees.")] - DestinationLongitude = 31800, - - /// - /// Destination Altitude. type: Integer. length: 32. units: Meters. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Destination Altitude. type: Integer. length: 32. units: Meters.")] - DestinationAltitude = 31900, - - /// - /// Orientation. type: Variable Datum. length: 96. units: Radians. range: 3-32bit Floating Point. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Orientation. type: Variable Datum. length: 96. units: Radians. range: 3-32bit Floating Point.")] - Orientation = 32000, - - /// - /// Hull Heading Angle. type: Unsigned Integer. length: 32. units: Degrees. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Hull Heading Angle. type: Unsigned Integer. length: 32. units: Degrees.")] - HullHeadingAngle = 32100, - - /// - /// Hull Pitch Angle. type: Unsigned Integer. length: 32. units: Degrees. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Hull Pitch Angle. type: Unsigned Integer. length: 32. units: Degrees.")] - HullPitchAngle = 32200, - - /// - /// Roll Angle. type: Unsigned Integer. length: 32. units: Degrees. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Roll Angle. type: Unsigned Integer. length: 32. units: Degrees.")] - RollAngle = 32300, - - /// - /// X. type: Unsigned Integer. length: 32. units: Degrees. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("X. type: Unsigned Integer. length: 32. units: Degrees.")] - X_32500 = 32500, - - /// - /// Y. type: Unsigned Integer. length: 32. units: Degrees. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Y. type: Unsigned Integer. length: 32. units: Degrees.")] - Y_32600 = 32600, - - /// - /// Z. type: Unsigned Integer. length: 32. units: Degrees. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Z. type: Unsigned Integer. length: 32. units: Degrees.")] - Z_32700 = 32700, - - /// - /// Appearance. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Appearance.")] - Appearance = 33000, - - /// - /// Ambient Lighting. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ambient Lighting.")] - AmbientLighting = 33100, - - /// - /// Lights. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Lights.")] - Lights = 33101, - - /// - /// Paint Scheme. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Paint Scheme.")] - PaintScheme = 33200, - - /// - /// Smoke. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Smoke.")] - Smoke = 33300, - - /// - /// Trailing Effects. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Trailing Effects.")] - TrailingEffects = 33400, - - /// - /// Flaming. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Flaming.")] - Flaming = 33500, - - /// - /// Marking. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Marking.")] - Marking = 33600, - - /// - /// Mine Plows Attached. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mine Plows Attached.")] - MinePlowsAttached = 33710, - - /// - /// Mine Rollers Attached. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mine Rollers Attached.")] - MineRollersAttached = 33720, - - /// - /// Tank Turret Azimuth. units: Degrees Rel 2 lon. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tank Turret Azimuth. units: Degrees Rel 2 lon.")] - TankTurretAzimuth = 33730, - - /// - /// Failures and Malfunctions. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Failures and Malfunctions.")] - FailuresAndMalfunctions = 34000, - - /// - /// Age. units: Miles. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Age. units: Miles.")] - Age = 34100, - - /// - /// Kilometers. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Kilometers.")] - Kilometers = 34110, - - /// - /// Damage. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Damage.")] - Damage = 35000, - - /// - /// Cause. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Cause.")] - Cause = 35050, - - /// - /// Mobility Kill. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mobility Kill.")] - MobilityKill = 35100, - - /// - /// Fire-Power Kill. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fire-Power Kill.")] - FirePowerKill = 35200, - - /// - /// Personnel Casualties. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Personnel Casualties.")] - PersonnelCasualties = 35300, - - /// - /// Velocity. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Velocity.")] - Velocity = 36000, - - /// - /// X-velocity. units: Meters/second. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("X-velocity. units: Meters/second.")] - XVelocity = 36100, - - /// - /// Y-velocity. units: Meters/second. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Y-velocity. units: Meters/second.")] - YVelocity = 36200, - - /// - /// Z-velocity. units: Meters/second. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Z-velocity. units: Meters/second.")] - ZVelocity = 36300, - - /// - /// Speed. type: Floating Point. length: 32. units: Meters/second. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Speed. type: Floating Point. length: 32. units: Meters/second.")] - Speed = 36400, - - /// - /// Acceleration. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Acceleration.")] - Acceleration = 37000, - - /// - /// X-acceleration. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("X-acceleration.")] - XAcceleration = 37100, - - /// - /// Y-acceleration. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Y-acceleration.")] - YAcceleration = 37200, - - /// - /// Z-acceleration. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Z-acceleration.")] - ZAcceleration = 37300, - - /// - /// Engine Status. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Engine Status.")] - EngineStatus = 38100, - - /// - /// Primary Target Line (PTL). type: Unsigned Integer. length: 32. units: Degrees. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Primary Target Line (PTL). type: Unsigned Integer. length: 32. units: Degrees.")] - PrimaryTargetLinePTL = 39000, - - /// - /// Exercise. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Exercise.")] - Exercise = 40000, - - /// - /// Exercise State. type: Variable Record. length: 64. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Exercise State. type: Variable Record. length: 64.")] - ExerciseState = 40010, - - /// - /// Restart/Refresh. type: Unsigned Integer. length: 32. range: 0 Undefined, 1 Restart. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Restart/Refresh. type: Unsigned Integer. length: 32. range: 0 Undefined, 1 Restart.")] - RestartRefresh = 40015, - - /// - /// AFATDS File Name. type: Variable Record. range: 1..40 ASCII Characters. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AFATDS File Name. type: Variable Record. range: 1..40 ASCII Characters.")] - AFATDSFileName = 40020, - - /// - /// Terrain Database. type: Unsigned Integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Terrain Database. type: Unsigned Integer. length: 32.")] - TerrainDatabase = 41000, - - /// - /// 41001. type: 41001. length: 41001. units: 41001. range: 41001. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("41001. type: 41001. length: 41001. units: 41001. range: 41001.")] - _41001 = 41001, - - /// - /// Missions. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Missions.")] - Missions = 42000, - - /// - /// Mission ID. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mission ID.")] - MissionID = 42100, - - /// - /// Mission Type. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mission Type.")] - MissionType = 42200, - - /// - /// Mission Request Time Stamp. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mission Request Time Stamp.")] - MissionRequestTimeStamp = 42300, - - /// - /// Exercise Description. type: String. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Exercise Description. type: String.")] - ExerciseDescription = 43000, - - /// - /// Name. type: String. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Name. type: String.")] - Name = 43100, - - /// - /// Entities. type: Integer. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Entities. type: Integer.")] - Entities = 43200, - - /// - /// Version. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Version.")] - Version = 43300, - - /// - /// Guise Mode. type: Unsigned Integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Guise Mode. type: Unsigned Integer. length: 32.")] - GuiseMode = 43410, - - /// - /// Simulation Application Active Status. type: Unsigned Integer. length: 16. range: 0 Backup, 1 Primary. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Simulation Application Active Status. type: Unsigned Integer. length: 16. range: 0 Backup, 1 Primary.")] - SimulationApplicationActiveStatus = 43420, - - /// - /// Simulation Application Role Record. type: Variable Record. length: 64. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Simulation Application Role Record. type: Variable Record. length: 64.")] - SimulationApplicationRoleRecord = 43430, - - /// - /// Simulation Application State. type: Variable Record. length: 64. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Simulation Application State. type: Variable Record. length: 64.")] - SimulationApplicationState = 43440, - - /// - /// Visual Output Mode. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Visual Output Mode.")] - VisualOutputMode = 44000, - - /// - /// Simulation Manager Role. type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Simulation Manager Role. type: Variable Record.")] - SimulationManagerRole = 44100, - - /// - /// Simulation Manager Site ID. type: Unsigned Integer. length: 16. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Simulation Manager Site ID. type: Unsigned Integer. length: 16.")] - SimulationManagerSiteID = 44110, - - /// - /// Simulation Manager Applic. ID. type: Unsigned Integer. length: 16. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Simulation Manager Applic. ID. type: Unsigned Integer. length: 16.")] - SimulationManagerApplicID = 44120, - - /// - /// Simulation Manager Entity ID. type: Unsigned Integer. length: 16. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Simulation Manager Entity ID. type: Unsigned Integer. length: 16.")] - SimulationManagerEntityID = 44130, - - /// - /// Simulation Manager Active Status. type: Unsigned Integer. length: 16. range: 0 Backup, 1 Primary. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Simulation Manager Active Status. type: Unsigned Integer. length: 16. range: 0 Backup, 1 Primary.")] - SimulationManagerActiveStatus = 44140, - - /// - /// After Active Review Role. type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("After Active Review Role. type: Variable Record.")] - AfterActiveReviewRole = 44200, - - /// - /// After Active Review Site ID. type: Unsigned Integer. length: 16. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("After Active Review Site ID. type: Unsigned Integer. length: 16.")] - AfterActiveReviewSiteID = 44210, - - /// - /// After Active Applic. ID. type: Unsigned Integer. length: 16. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("After Active Applic. ID. type: Unsigned Integer. length: 16.")] - AfterActiveApplicID = 44220, - - /// - /// After Active Review Entity ID. type: Unsigned Integer. length: 16. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("After Active Review Entity ID. type: Unsigned Integer. length: 16.")] - AfterActiveReviewEntityID = 44230, - - /// - /// After Active Review Active Status. type: Unsigned Integer. length: 16. range: 0 Backup, 1 Primary. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("After Active Review Active Status. type: Unsigned Integer. length: 16. range: 0 Backup, 1 Primary.")] - AfterActiveReviewActiveStatus = 44240, - - /// - /// Exercise Logger Role. type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Exercise Logger Role. type: Variable Record.")] - ExerciseLoggerRole = 44300, - - /// - /// Exercise Logger Site ID. type: Unsigned Integer. length: 16. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Exercise Logger Site ID. type: Unsigned Integer. length: 16.")] - ExerciseLoggerSiteID = 44310, - - /// - /// Exercise Logger Applic. ID. type: Unsigned Integer. length: 16. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Exercise Logger Applic. ID. type: Unsigned Integer. length: 16.")] - ExerciseLoggerApplicID = 44320, - - /// - /// Exercise Entity ID. type: Unsigned Integer. length: 16. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Exercise Entity ID. type: Unsigned Integer. length: 16.")] - ExerciseEntityID = 44330, - - /// - /// Exercise Logger Active Status. type: Unsigned Integer. length: 16. range: 0 Backup, 1 Primary. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Exercise Logger Active Status. type: Unsigned Integer. length: 16. range: 0 Backup, 1 Primary.")] - ExerciseLoggerActiveStatus = 44340, - - /// - /// Synthetic Environment Manager Role. type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Synthetic Environment Manager Role. type: Variable Record.")] - SyntheticEnvironmentManagerRole = 44400, - - /// - /// Synthetic Environment Manager Site ID. type: Unsigned Integer. length: 16. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Synthetic Environment Manager Site ID. type: Unsigned Integer. length: 16.")] - SyntheticEnvironmentManagerSiteID = 44410, - - /// - /// Synthetic Environment Manager Applic. ID. type: Unsigned Integer. length: 16. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Synthetic Environment Manager Applic. ID. type: Unsigned Integer. length: 16.")] - SyntheticEnvironmentManagerApplicID = 44420, - - /// - /// Synthetic Environment Manager Entity ID. type: Unsigned Integer. length: 16. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Synthetic Environment Manager Entity ID. type: Unsigned Integer. length: 16.")] - SyntheticEnvironmentManagerEntityID = 44430, - - /// - /// Synthetic Environment Manager Active Status. type: Unsigned Integer. length: 16. range: 0 Backup, 1 Primary. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Synthetic Environment Manager Active Status. type: Unsigned Integer. length: 16. range: 0 Backup, 1 Primary.")] - SyntheticEnvironmentManagerActiveStatus = 44440, - - /// - /// SIMNET-DIS Translator Role. type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SIMNET-DIS Translator Role. type: Variable Record.")] - SIMNETDISTranslatorRole = 44500, - - /// - /// SIMNET-DIS Translator Site ID. type: Unsigned Integer. length: 16. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SIMNET-DIS Translator Site ID. type: Unsigned Integer. length: 16.")] - SIMNETDISTranslatorSiteID = 44510, - - /// - /// SIMNET-DIS Translator Applic. ID. type: Unsigned Integer. length: 16. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SIMNET-DIS Translator Applic. ID. type: Unsigned Integer. length: 16.")] - SIMNETDISTranslatorApplicID = 44520, - - /// - /// SIMNET-DIS Translator Entity ID. type: Unsigned Integer. length: 16. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SIMNET-DIS Translator Entity ID. type: Unsigned Integer. length: 16.")] - SIMNETDISTranslatorEntityID = 44530, - - /// - /// SIMNET-DIS Translator Active Status. type: Unsigned Integer. length: 16. range: 0 Backup, 1 Primary. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SIMNET-DIS Translator Active Status. type: Unsigned Integer. length: 16. range: 0 Backup, 1 Primary.")] - SIMNETDISTranslatorActiveStatus = 44540, - - /// - /// Application Rate. type: Floating point. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Application Rate. type: Floating point. length: 32.")] - ApplicationRate = 45000, - - /// - /// Application Time. type: Clock Time Record. length: 64. range: See IEEE Std1278.1-1995 section 5.2.8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Application Time. type: Clock Time Record. length: 64. range: See IEEE Std1278.1-1995 section 5.2.8.")] - ApplicationTime = 45005, - - /// - /// Application Timestep. type: Timestamp. length: 32. range: See IEEE Std 1278.1-1995 section 5.2.31. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Application Timestep. type: Timestamp. length: 32. range: See IEEE Std 1278.1-1995 section 5.2.31.")] - ApplicationTimestep = 45010, - - /// - /// Feedback Time. type: Timestamp. length: 32. range: See IEEE Std 1278.1-1995 section 5.2.31. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Feedback Time. type: Timestamp. length: 32. range: See IEEE Std 1278.1-1995 section 5.2.31.")] - FeedbackTime = 45020, - - /// - /// Simulation Rate. type: Floating Point. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Simulation Rate. type: Floating Point. length: 32.")] - SimulationRate = 45030, - - /// - /// Simulation Time. type: Clock Time Record. length: 64. range: See IEEE Std 1278.1-1995 section 5.2.8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Simulation Time. type: Clock Time Record. length: 64. range: See IEEE Std 1278.1-1995 section 5.2.8.")] - SimulationTime = 45040, - - /// - /// Simulation Timestep. type: Timestamp. length: 32. range: See IEEE Std 1278.1-1995 section 5.2.31. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Simulation Timestep. type: Timestamp. length: 32. range: See IEEE Std 1278.1-1995 section 5.2.31.")] - SimulationTimestep = 45050, - - /// - /// Time Interval. type: Timestamp. length: 32. range: See IEEE Std 1278.1-1995 section 5.2.31. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Time Interval. type: Timestamp. length: 32. range: See IEEE Std 1278.1-1995 section 5.2.31.")] - TimeInterval = 45060, - - /// - /// Time Latency. type: Timestamp. length: 32. range: See IEEE Std 1278.1-1995 section 5.2.31. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Time Latency. type: Timestamp. length: 32. range: See IEEE Std 1278.1-1995 section 5.2.31.")] - TimeLatency = 45070, - - /// - /// Time Scheme. type: Unsigned Integer. length: 32. range: 1 Real time, 2 Scaled time, 3 Scaled and stepped time. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Time Scheme. type: Unsigned Integer. length: 32. range: 1 Real time, 2 Scaled time, 3 Scaled and stepped time.")] - TimeScheme = 45080, - - /// - /// Exercise Elapsed Time. type: Unsigned integer. length: 32. units: Seconds. range: Time since exercise started (takes into account exercise pauses and scaled exercise time). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Exercise Elapsed Time. type: Unsigned integer. length: 32. units: Seconds. range: Time since exercise started (takes into account exercise pauses and scaled exercise time).")] - ExerciseElapsedTime = 46000, - - /// - /// Elapsed Time. type: Unsigned integer. length: 32. units: Seconds. range: Time since exercise started (real time, does not take into account exercise pauses and scaled exercise time). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Elapsed Time. type: Unsigned integer. length: 32. units: Seconds. range: Time since exercise started (real time, does not take into account exercise pauses and scaled exercise time).")] - ElapsedTime = 46010, - - /// - /// Environment. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Environment.")] - Environment = 50000, - - /// - /// Weather. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Weather.")] - Weather = 51000, - - /// - /// Weather Condition. type: Unsigned Integer. length: 32. units: N/A. range: 0 = Clear, 1 = Cloudy, 2 = Overcast, 3 = Foggy, 4 = Raining. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Weather Condition. type: Unsigned Integer. length: 32. units: N/A. range: 0 = Clear, 1 = Cloudy, 2 = Overcast, 3 = Foggy, 4 = Raining.")] - WeatherCondition = 51010, - - /// - /// Thermal Condition. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Thermal Condition.")] - ThermalCondition = 51100, - - /// - /// Thermal Visibility. type: Floating Point. length: 32. units: Meters. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Thermal Visibility. type: Floating Point. length: 32. units: Meters.")] - ThermalVisibility = 51110, - - /// - /// Thermal Visibility. type: Unsigned integer. length: 32. units: Meters. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Thermal Visibility. type: Unsigned integer. length: 32. units: Meters.")] - ThermalVisibility_51111 = 51111, - - /// - /// Time. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Time.")] - Time = 52000, - - /// - /// Time. type: String. length: 56. range: Format HHMMSS. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Time. type: String. length: 56. range: Format HHMMSS.")] - Time_52001 = 52001, - - /// - /// Time of Day, Discrete. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Time of Day, Discrete.")] - TimeOfDayDiscrete = 52100, - - /// - /// Time of Day, Continuous. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Time of Day, Continuous.")] - TimeOfDayContinuous = 52200, - - /// - /// Time Mode. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Time Mode.")] - TimeMode = 52300, - - /// - /// Time Scene. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Time Scene.")] - TimeScene = 52305, - - /// - /// Current Hour. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Current Hour.")] - CurrentHour = 52310, - - /// - /// Current Minute. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Current Minute.")] - CurrentMinute = 52320, - - /// - /// Current Second. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Current Second.")] - CurrentSecond = 52330, - - /// - /// Azimuth. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Azimuth.")] - Azimuth = 52340, - - /// - /// Maximum Elevation. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Maximum Elevation.")] - MaximumElevation = 52350, - - /// - /// Time Zone. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Time Zone.")] - TimeZone = 52360, - - /// - /// Time Rate. type: Integer. length: 32. range: 1000 * Ratio (Simulation Time / Wall Clock Time). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Time Rate. type: Integer. length: 32. range: 1000 * Ratio (Simulation Time / Wall Clock Time).")] - TimeRate = 52370, - - /// - /// The number of simulation seconds since the start of the exercise (simulation time). type: Integer. length: 32. units: Seconds. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("The number of simulation seconds since the start of the exercise (simulation time). type: Integer. length: 32. units: Seconds.")] - TheNumberOfSimulationSecondsSinceTheStartOfTheExerciseSimulationTime = 52380, - - /// - /// Time Sunrise Enabled. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Time Sunrise Enabled.")] - TimeSunriseEnabled = 52400, - - /// - /// Sunrise Hour. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sunrise Hour.")] - SunriseHour = 52410, - - /// - /// Sunrise Minute. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sunrise Minute.")] - SunriseMinute = 52420, - - /// - /// Sunrise Second. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sunrise Second.")] - SunriseSecond = 52430, - - /// - /// Sunrise Azimuth. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sunrise Azimuth.")] - SunriseAzimuth = 52440, - - /// - /// Time Sunset Enabled. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Time Sunset Enabled.")] - TimeSunsetEnabled = 52500, - - /// - /// Sunset Hour. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sunset Hour.")] - SunsetHour = 52510, - - /// - /// Sunset Hour. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sunset Hour.")] - SunsetHour_52511 = 52511, - - /// - /// Sunset Minute. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sunset Minute.")] - SunsetMinute = 52520, - - /// - /// Sunset Second. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sunset Second.")] - SunsetSecond = 52530, - - /// - /// 52531. type: 52531. length: 52531. units: 52531. range: 52531. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("52531. type: 52531. length: 52531. units: 52531. range: 52531.")] - _52531 = 52531, - - /// - /// Date. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Date.")] - Date = 52600, - - /// - /// Date (European). type: String. length: 72. range: Format DDMMYYYY. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Date (European). type: String. length: 72. range: Format DDMMYYYY.")] - DateEuropean = 52601, - - /// - /// Date (US). type: String. length: 72. range: Format MMDDYYYY. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Date (US). type: String. length: 72. range: Format MMDDYYYY.")] - DateUS = 52602, - - /// - /// Month. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Month.")] - Month = 52610, - - /// - /// Day. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Day.")] - Day = 52620, - - /// - /// Year. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Year.")] - Year = 52630, - - /// - /// Clouds. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Clouds.")] - Clouds = 53000, - - /// - /// Cloud Layer Enable. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Cloud Layer Enable.")] - CloudLayerEnable = 53050, - - /// - /// Cloud Layer Selection. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Cloud Layer Selection.")] - CloudLayerSelection = 53060, - - /// - /// Visibility. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Visibility.")] - Visibility = 53100, - - /// - /// Base Altitude. type: Unsigned Integer. length: 32. units: Meters. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Base Altitude. type: Unsigned Integer. length: 32. units: Meters.")] - BaseAltitude = 53200, - - /// - /// Base Altitude. units: Feet. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Base Altitude. units: Feet.")] - BaseAltitude_53250 = 53250, - - /// - /// Ceiling. type: Unsigned Integer. length: 32. units: Meters. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ceiling. type: Unsigned Integer. length: 32. units: Meters.")] - Ceiling = 53300, - - /// - /// Ceiling. units: Feet. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ceiling. units: Feet.")] - Ceiling_53350 = 53350, - - /// - /// Characteristics. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Characteristics.")] - Characteristics = 53400, - - /// - /// Concentration Length. type: Floating Point. length: 32. units: milligrams/meterCaret2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Concentration Length. type: Floating Point. length: 32. units: milligrams/meterCaret2.")] - ConcentrationLength = 53410, - - /// - /// Transmittance. type: Floating Point. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Transmittance. type: Floating Point. length: 32.")] - Transmittance = 53420, - - /// - /// Radiance. type: Floating Point. length: 32. units: microwatts/ centimeterCaret2/ steradian. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Radiance. type: Floating Point. length: 32. units: microwatts/ centimeterCaret2/ steradian.")] - Radiance = 53430, - - /// - /// Precipitation. type: Boolean. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Precipitation. type: Boolean. length: 32.")] - Precipitation = 54000, - - /// - /// Rain. type: Boolean. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Rain. type: Boolean.")] - Rain = 54100, - - /// - /// Fog. type: Boolean. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fog. type: Boolean.")] - Fog = 55000, - - /// - /// Visibility. units: Meters. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Visibility. units: Meters.")] - Visibility_55100 = 55100, - - /// - /// Visibility. type: Unsigned integer. length: 32. units: Meters. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Visibility. type: Unsigned integer. length: 32. units: Meters.")] - Visibility_55101 = 55101, - - /// - /// Visibility. units: Miles. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Visibility. units: Miles.")] - Visibility_55105 = 55105, - - /// - /// Density. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Density.")] - Density = 55200, - - /// - /// Base. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Base.")] - Base = 55300, - - /// - /// View Layer from above. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("View Layer from above.")] - ViewLayerFromAbove = 55401, - - /// - /// Transition Range. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Transition Range.")] - TransitionRange = 55410, - - /// - /// Bottom. units: Meters. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Bottom. units: Meters.")] - Bottom = 55420, - - /// - /// Bottom. units: Feet. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Bottom. units: Feet.")] - Bottom_55425 = 55425, - - /// - /// Ceiling. units: Meters. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ceiling. units: Meters.")] - Ceiling_55430 = 55430, - - /// - /// Ceiling. units: Feet. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ceiling. units: Feet.")] - Ceiling_55435 = 55435, - - /// - /// Heavenly Bodies. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Heavenly Bodies.")] - HeavenlyBodies = 56000, - - /// - /// Sun. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sun.")] - Sun = 56100, - - /// - /// Sun Visible. type: Unsigned integer. length: 32. units: N/A. range: 0 Not visible, 1 Visible. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sun Visible. type: Unsigned integer. length: 32. units: N/A. range: 0 Not visible, 1 Visible.")] - SunVisible = 56105, - - /// - /// Position. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Position.")] - Position_56110 = 56110, - - /// - /// Sun Position Elevation, Degrees. type: Floating Point. length: 32. units: Degrees. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sun Position Elevation, Degrees. type: Floating Point. length: 32. units: Degrees.")] - SunPositionElevationDegrees = 56111, - - /// - /// Position Azimuth. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Position Azimuth.")] - PositionAzimuth = 56120, - - /// - /// Sun Position Azimuth, Degrees. type: Floating Point. length: 32. units: Degrees. range: Relative to True North. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sun Position Azimuth, Degrees. type: Floating Point. length: 32. units: Degrees. range: Relative to True North.")] - SunPositionAzimuthDegrees = 56121, - - /// - /// Position Elevation. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Position Elevation.")] - PositionElevation = 56130, - - /// - /// Position Intensity. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Position Intensity.")] - PositionIntensity = 56140, - - /// - /// Moon. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Moon.")] - Moon = 56200, - - /// - /// Moon Visible. type: Unsigned integer. length: 32. units: N/A. range: 0 Not visible, 1 Visible. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Moon Visible. type: Unsigned integer. length: 32. units: N/A. range: 0 Not visible, 1 Visible.")] - MoonVisible = 56205, - - /// - /// Position. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Position.")] - Position_56210 = 56210, - - /// - /// Position Azimuth. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Position Azimuth.")] - PositionAzimuth_56220 = 56220, - - /// - /// Moon Position Azimuth, Degrees. type: Floating Point. length: 32. units: Degrees. range: Relative to True North. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Moon Position Azimuth, Degrees. type: Floating Point. length: 32. units: Degrees. range: Relative to True North.")] - MoonPositionAzimuthDegrees = 56221, - - /// - /// Position Elevation. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Position Elevation.")] - PositionElevation_56230 = 56230, - - /// - /// Moon Position Elevation, Degrees. type: Floating Point. length: 32. units: Degrees. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Moon Position Elevation, Degrees. type: Floating Point. length: 32. units: Degrees.")] - MoonPositionElevationDegrees = 56231, - - /// - /// Position Intensity. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Position Intensity.")] - PositionIntensity_56240 = 56240, - - /// - /// Horizon. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Horizon.")] - Horizon = 56310, - - /// - /// Horizon Azimuth. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Horizon Azimuth.")] - HorizonAzimuth = 56320, - - /// - /// Horizon Elevation. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Horizon Elevation.")] - HorizonElevation = 56330, - - /// - /// Horizon Heading. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Horizon Heading.")] - HorizonHeading = 56340, - - /// - /// Horizon Intensity. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Horizon Intensity.")] - HorizonIntensity = 56350, - - /// - /// Humidity. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Humidity.")] - Humidity = 57200, - - /// - /// Visibility. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Visibility.")] - Visibility_57300 = 57300, - - /// - /// Winds. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Winds.")] - Winds = 57400, - - /// - /// Speed. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Speed.")] - Speed_57410 = 57410, - - /// - /// Wind Speed, Knots. type: Floating Point. length: 32. units: Knots. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Wind Speed, Knots. type: Floating Point. length: 32. units: Knots.")] - WindSpeedKnots = 57411, - - /// - /// Wind Direction. type: Floating Point. length: 32. units: Radians. range: Relative to True North. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Wind Direction. type: Floating Point. length: 32. units: Radians. range: Relative to True North.")] - WindDirection = 57420, - - /// - /// Wind Direction, Degrees. type: Floating Point. length: 32. units: Degrees. range: Relative to True North. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Wind Direction, Degrees. type: Floating Point. length: 32. units: Degrees. range: Relative to True North.")] - WindDirectionDegrees = 57421, - - /// - /// Rainsoak. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Rainsoak.")] - Rainsoak = 57500, - - /// - /// Tide Speed. type: Floating Point. length: 32. units: Meters/second. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tide Speed. type: Floating Point. length: 32. units: Meters/second.")] - TideSpeed = 57610, - - /// - /// Tide Speed, Knots. type: Floating Point. length: 32. units: Knots. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tide Speed, Knots. type: Floating Point. length: 32. units: Knots.")] - TideSpeedKnots = 57611, - - /// - /// Tide Direction. type: Floating Point. length: 32. units: Radians. range: Relative to True North. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tide Direction. type: Floating Point. length: 32. units: Radians. range: Relative to True North.")] - TideDirection = 57620, - - /// - /// Tide Direction, Degrees. type: Floating Point. length: 32. units: Degrees. range: Relative to True North. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tide Direction, Degrees. type: Floating Point. length: 32. units: Degrees. range: Relative to True North.")] - TideDirectionDegrees = 57621, - - /// - /// Haze. type: Boolean. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Haze. type: Boolean.")] - Haze = 58000, - - /// - /// Visibility. units: Meters. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Visibility. units: Meters.")] - Visibility_58100 = 58100, - - /// - /// Visibility. units: Miles. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Visibility. units: Miles.")] - Visibility_58105 = 58105, - - /// - /// Density. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Density.")] - Density_58200 = 58200, - - /// - /// Ceiling. units: Meters. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ceiling. units: Meters.")] - Ceiling_58430 = 58430, - - /// - /// Ceiling. units: Feet. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ceiling. units: Feet.")] - Ceiling_58435 = 58435, - - /// - /// Contaminants and Obscurants. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Contaminants and Obscurants.")] - ContaminantsAndObscurants = 59000, - - /// - /// Contaminant/Obscurant Type. type: Unsigned Integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Contaminant/Obscurant Type. type: Unsigned Integer. length: 32.")] - ContaminantObscurantType = 59100, - - /// - /// Persistence. type: Enumeration. length: 8. range: 0 Neat, 1 Dry, 2 Thickened. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Persistence. type: Enumeration. length: 8. range: 0 Neat, 1 Dry, 2 Thickened.")] - Persistence = 59110, - - /// - /// Chemical Dosage. type: Floating Point. length: 32. units: milligrams/meter?/minute. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Chemical Dosage. type: Floating Point. length: 32. units: milligrams/meter?/minute.")] - ChemicalDosage = 59115, - - /// - /// Chemical Air Concentration. type: Floating Point. length: 32. units: milligrams/meter?. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Chemical Air Concentration. type: Floating Point. length: 32. units: milligrams/meter?.")] - ChemicalAirConcentration = 59120, - - /// - /// Chemical Ground Deposition. type: Floating Point. length: 32. units: milligrams/meterCaret2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Chemical Ground Deposition. type: Floating Point. length: 32. units: milligrams/meterCaret2.")] - ChemicalGroundDeposition = 59125, - - /// - /// Chemical Maximum Ground Deposition. type: Floating Point. length: 32. units: milligrams/meterCaret2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Chemical Maximum Ground Deposition. type: Floating Point. length: 32. units: milligrams/meterCaret2.")] - ChemicalMaximumGroundDeposition = 59130, - - /// - /// Chemical Dosage Threshold. type: Floating Point. length: 32. units: milligram/meter?/minute. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Chemical Dosage Threshold. type: Floating Point. length: 32. units: milligram/meter?/minute.")] - ChemicalDosageThreshold = 59135, - - /// - /// Biological Dosage. type: Floating Point. length: 32. units: particles/liter of air/minute. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Biological Dosage. type: Floating Point. length: 32. units: particles/liter of air/minute.")] - BiologicalDosage = 59140, - - /// - /// Biological Air Concentration. type: Floating Point. length: 32. units: particles/liter of air. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Biological Air Concentration. type: Floating Point. length: 32. units: particles/liter of air.")] - BiologicalAirConcentration = 59145, - - /// - /// Biological Dosage Threshold. type: Floating Point. length: 32. units: particles/liter of air/minute. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Biological Dosage Threshold. type: Floating Point. length: 32. units: particles/liter of air/minute.")] - BiologicalDosageThreshold = 59150, - - /// - /// Biological Binned Particle Count. type: Enumeration. length: 8. range: 1 Low (.5-2), 2 Detection (2-.10), 3 High (10-15). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Biological Binned Particle Count. type: Enumeration. length: 8. range: 1 Low (.5-2), 2 Detection (2-.10), 3 High (10-15).")] - BiologicalBinnedParticleCount = 59155, - - /// - /// Radiological Dosage. type: Floating Point. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Radiological Dosage. type: Floating Point. length: 32.")] - RadiologicalDosage = 59160, - - /// - /// Communications. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Communications.")] - Communications = 60000, - - /// - /// Channel Type. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Channel Type.")] - ChannelType = 61100, - - /// - /// Channel Type. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Channel Type.")] - ChannelType_61101 = 61101, - - /// - /// Channel Identification. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Channel Identification.")] - ChannelIdentification = 61200, - - /// - /// Alpha Identification. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Alpha Identification.")] - AlphaIdentification = 61300, - - /// - /// 61301. type: 61301. length: 61301. units: 61301. range: 61301. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("61301. type: 61301. length: 61301. units: 61301. range: 61301.")] - _61301 = 61301, - - /// - /// Radio Identification. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Radio Identification.")] - RadioIdentification = 61400, - - /// - /// 61401. type: 61401. length: 61401. units: 61401. range: 61401. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("61401. type: 61401. length: 61401. units: 61401. range: 61401.")] - _61401 = 61401, - - /// - /// Land Line Identification. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Land Line Identification.")] - LandLineIdentification = 61500, - - /// - /// Intercom Identification. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Intercom Identification.")] - IntercomIdentification = 61600, - - /// - /// Group Network Channel Number. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Group Network Channel Number.")] - GroupNetworkChannelNumber = 61700, - - /// - /// Radio Communications Status. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Radio Communications Status.")] - RadioCommunicationsStatus = 62100, - - /// - /// Stationary Radio Transmitters Default Time. type: Unsigned Integer. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Stationary Radio Transmitters Default Time. type: Unsigned Integer.")] - StationaryRadioTransmittersDefaultTime = 62200, - - /// - /// Moving Radio Transmitters Default Time. type: Unsigned Integer. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Moving Radio Transmitters Default Time. type: Unsigned Integer.")] - MovingRadioTransmittersDefaultTime = 62300, - - /// - /// Stationary Radio Signals Default Time. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Stationary Radio Signals Default Time.")] - StationaryRadioSignalsDefaultTime = 62400, - - /// - /// Moving Radio Signal Default Time. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Moving Radio Signal Default Time.")] - MovingRadioSignalDefaultTime = 62500, - - /// - /// Radio Initialization Transec Security Key. type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Radio Initialization Transec Security Key. type: Variable Record.")] - RadioInitializationTransecSecurityKey = 63101, - - /// - /// Radio Initialization Internal Noise Level. type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Radio Initialization Internal Noise Level. type: Variable Record.")] - RadioInitializationInternalNoiseLevel = 63102, - - /// - /// Radio Initialization Squelch Threshold. type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Radio Initialization Squelch Threshold. type: Variable Record.")] - RadioInitializationSquelchThreshold = 63103, - - /// - /// Radio Initialization Antenna Location. type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Radio Initialization Antenna Location. type: Variable Record.")] - RadioInitializationAntennaLocation = 63104, - - /// - /// Radio Initialization Antenna Pattern Type. type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Radio Initialization Antenna Pattern Type. type: Variable Record.")] - RadioInitializationAntennaPatternType = 63105, - - /// - /// Radio Initialization Antenna Pattern Length. type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Radio Initialization Antenna Pattern Length. type: Variable Record.")] - RadioInitializationAntennaPatternLength = 63106, - - /// - /// Radio Initialization Beam Definition. type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Radio Initialization Beam Definition. type: Variable Record.")] - RadioInitializationBeamDefinition = 63107, - - /// - /// Radio Initialization Transmit Heartbeat Time. type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Radio Initialization Transmit Heartbeat Time. type: Variable Record.")] - RadioInitializationTransmitHeartbeatTime = 63108, - - /// - /// Radio Initialization Transmit Distance Threshold Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Radio Initialization Transmit Distance Threshold Variable Record.")] - RadioInitializationTransmitDistanceThresholdVariableRecord = 63109, - - /// - /// Radio Channel Initialization Lockout ID. type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Radio Channel Initialization Lockout ID. type: Variable Record.")] - RadioChannelInitializationLockoutID = 63110, - - /// - /// Radio Channel Initialization Hopset ID. type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Radio Channel Initialization Hopset ID. type: Variable Record.")] - RadioChannelInitializationHopsetID = 63111, - - /// - /// Radio Channel Initialization Preset Frequency. type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Radio Channel Initialization Preset Frequency. type: Variable Record.")] - RadioChannelInitializationPresetFrequency = 63112, - - /// - /// Radio Channel Initialization Frequency Sync Time. type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Radio Channel Initialization Frequency Sync Time. type: Variable Record.")] - RadioChannelInitializationFrequencySyncTime = 63113, - - /// - /// Radio Channel Initialization Comsec Key. type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Radio Channel Initialization Comsec Key. type: Variable Record.")] - RadioChannelInitializationComsecKey = 63114, - - /// - /// Radio Channel Initialization Alpha. type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Radio Channel Initialization Alpha. type: Variable Record.")] - RadioChannelInitializationAlpha = 63115, - - /// - /// Algorithm Parameters. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Algorithm Parameters.")] - AlgorithmParameters = 70000, - - /// - /// Dead Reckoning Algorithm (DRA). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Dead Reckoning Algorithm (DRA).")] - DeadReckoningAlgorithmDRA = 71000, - - /// - /// DRA Location Threshold. type: Unsigned Integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DRA Location Threshold. type: Unsigned Integer. length: 32.")] - DRALocationThreshold = 71100, - - /// - /// DRA Orientation Threshold. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DRA Orientation Threshold.")] - DRAOrientationThreshold = 71200, - - /// - /// DRA Time Threshold. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DRA Time Threshold.")] - DRATimeThreshold = 71300, - - /// - /// Simulation Management Parameters. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Simulation Management Parameters.")] - SimulationManagementParameters = 72000, - - /// - /// Checkpoint Interval. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Checkpoint Interval.")] - CheckpointInterval = 72100, - - /// - /// Transmitter Time Threshold. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Transmitter Time Threshold.")] - TransmitterTimeThreshold = 72600, - - /// - /// Receiver Time Threshold. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Receiver Time Threshold.")] - ReceiverTimeThreshold = 72700, - - /// - /// Interoperability Mode. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Interoperability Mode.")] - InteroperabilityMode = 73000, - - /// - /// SIMNET Data Collection. type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SIMNET Data Collection. type: Variable Record.")] - SIMNETDataCollection = 74000, - - /// - /// Event ID. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Event ID.")] - EventID = 75000, - - /// - /// Source Site ID. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Source Site ID.")] - SourceSiteID = 75100, - - /// - /// Source Host ID. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Source Host ID.")] - SourceHostID = 75200, - - /// - /// Articulated Parts. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Articulated Parts.")] - ArticulatedParts = 90000, - - /// - /// 90001. type: 90001. length: 90001. units: 90001. range: 90001. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("90001. type: 90001. length: 90001. units: 90001. range: 90001.")] - _90001 = 90001, - - /// - /// Part ID. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Part ID.")] - PartID = 90050, - - /// - /// Index. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Index.")] - Index = 90070, - - /// - /// Position. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Position.")] - Position_90100 = 90100, - - /// - /// Position Rate. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Position Rate.")] - PositionRate = 90200, - - /// - /// Extension. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Extension.")] - Extension = 90300, - - /// - /// Extension Rate. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Extension Rate.")] - ExtensionRate = 90400, - - /// - /// X. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("X.")] - X_90500 = 90500, - - /// - /// X-rate. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("X-rate.")] - XRate = 90600, - - /// - /// Y. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Y.")] - Y_90700 = 90700, - - /// - /// Y-rate. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Y-rate.")] - YRate = 90800, - - /// - /// Z. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Z.")] - Z_90900 = 90900, - - /// - /// Z-rate. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Z-rate.")] - ZRate = 91000, - - /// - /// Azimuth. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Azimuth.")] - Azimuth_91100 = 91100, - - /// - /// Azimuth Rate. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Azimuth Rate.")] - AzimuthRate = 91200, - - /// - /// Elevation. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Elevation.")] - Elevation = 91300, - - /// - /// Elevation Rate. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Elevation Rate.")] - ElevationRate = 91400, - - /// - /// Rotation. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Rotation.")] - Rotation = 91500, - - /// - /// Rotation Rate. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Rotation Rate.")] - RotationRate = 91600, - - /// - /// DRA Angular X-Velocity. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DRA Angular X-Velocity.")] - DRAAngularXVelocity = 100001, - - /// - /// DRA Angular Y-Velocity. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DRA Angular Y-Velocity.")] - DRAAngularYVelocity = 100002, - - /// - /// DRA Angular Z-Velocity. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DRA Angular Z-Velocity.")] - DRAAngularZVelocity = 100003, - - /// - /// Appearance, Trailing Effects. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Appearance, Trailing Effects.")] - AppearanceTrailingEffects = 100004, - - /// - /// Appearance, Hatch. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Appearance, Hatch.")] - AppearanceHatch = 100005, - - /// - /// Appearance, Character Set. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Appearance, Character Set.")] - AppearanceCharacterSet = 100008, - - /// - /// Capability, Ammunition Supplier. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Capability, Ammunition Supplier.")] - CapabilityAmmunitionSupplier = 100010, - - /// - /// Capability, Miscellaneous Supplier. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Capability, Miscellaneous Supplier.")] - CapabilityMiscellaneousSupplier = 100011, - - /// - /// Capability, Repair Provider. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Capability, Repair Provider.")] - CapabilityRepairProvider = 100012, - - /// - /// Articulation Parameter. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Articulation Parameter.")] - ArticulationParameter = 100014, - - /// - /// Articulation Parameter Type. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Articulation Parameter Type.")] - ArticulationParameterType = 100047, - - /// - /// Articulation Parameter Value. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Articulation Parameter Value.")] - ArticulationParameterValue = 100048, - - /// - /// Time of Day-Scene. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Time of Day-Scene.")] - TimeOfDayScene = 100058, - - /// - /// Latitude-North (Location of weather cell). type: Unsigned Integer. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Latitude-North (Location of weather cell). type: Unsigned Integer.")] - LatitudeNorthLocationOfWeatherCell = 100061, - - /// - /// Longitude-East (Location of weather cell). type: Unsigned integer. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Longitude-East (Location of weather cell). type: Unsigned integer.")] - LongitudeEastLocationOfWeatherCell = 100063, - - /// - /// Tactical Driver Status. type: Unsigned Integer. range: 0 Operational, 1 Non-operational, 2 Unknown, 3 Not available. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tactical Driver Status. type: Unsigned Integer. range: 0 Operational, 1 Non-operational, 2 Unknown, 3 Not available.")] - TacticalDriverStatus = 100068, - - /// - /// Sonar System Status. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sonar System Status.")] - SonarSystemStatus = 100100, - - /// - /// Upper latitude. type: float. length: 32 bits. units: radians. range: -pi/2, +p1/2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Upper latitude. type: float. length: 32 bits. units: radians. range: -pi/2, +p1/2.")] - UpperLatitude = 100161, - - /// - /// Latitude-South (Location of weather cell). type: Unsigned Integer. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Latitude-South (Location of weather cell). type: Unsigned Integer.")] - LatitudeSouthLocationOfWeatherCell = 100162, - - /// - /// Western longitude. type: float. length: 32 bits. units: radians. range: -pi, +pi. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Western longitude. type: float. length: 32 bits. units: radians. range: -pi, +pi.")] - WesternLongitude = 100163, - - /// - /// Longitude-West (location of weather cell). type: Unsigned Integer. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Longitude-West (location of weather cell). type: Unsigned Integer.")] - LongitudeWestLocationOfWeatherCell = 100164, - - /// - /// Accomplished accept. type: Boolean. range: 0 Accept, 1 Non-accept. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Accomplished accept. type: Boolean. range: 0 Accept, 1 Non-accept.")] - AccomplishedAccept = 100165, - - /// - /// CD ROM Number (Disk ID for terrain). type: Integer. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("CD ROM Number (Disk ID for terrain). type: Integer.")] - CDROMNumberDiskIDForTerrain = 100165, - - /// - /// DTED disk ID. type: Unsigned Integer. length: 32 bits. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DTED disk ID. type: Unsigned Integer. length: 32 bits.")] - DTEDDiskID = 100166, - - /// - /// Altitude. type: Floating point. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Altitude. type: Floating point.")] - Altitude_100167 = 100167, - - /// - /// Tactical System Status. type: Unsigned Integer. range: 0 Operational, 1 Non-operational, 2 Unknown, 3 Not available. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tactical System Status. type: Unsigned Integer. range: 0 Operational, 1 Non-operational, 2 Unknown, 3 Not available.")] - TacticalSystemStatus = 100169, - - /// - /// JTIDS Status. type: Unsigned Integer. range: 0 Operational, 1 Non-operational, 2 Unknown, 3 Not available. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("JTIDS Status. type: Unsigned Integer. range: 0 Operational, 1 Non-operational, 2 Unknown, 3 Not available.")] - JTIDSStatus = 100170, - - /// - /// TADIL-J Status. type: Unsigned Integer. range: 0 Operational, 1 Non-operational, 2 Unknown, 3 Not available. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TADIL-J Status. type: Unsigned Integer. range: 0 Operational, 1 Non-operational, 2 Unknown, 3 Not available.")] - TADILJStatus = 100171, - - /// - /// DSDD Status. type: Unsigned Integer. range: 0 Operational, 1 Non-operational, 2 Unknown, 3 Not available. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DSDD Status. type: Unsigned Integer. range: 0 Operational, 1 Non-operational, 2 Unknown, 3 Not available.")] - DSDDStatus = 100172, - - /// - /// Weapon System Status. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Weapon System Status.")] - WeaponSystemStatus = 100200, - - /// - /// Subsystem status. type: Boolean. length: 32 bits. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Subsystem status. type: Boolean. length: 32 bits.")] - SubsystemStatus = 100205, - - /// - /// Number of interceptors fired. type: Unsigned Integer. length: 32 bits. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Number of interceptors fired. type: Unsigned Integer. length: 32 bits.")] - NumberOfInterceptorsFired = 100206, - - /// - /// Number of interceptor detonations. type: Unsigned Integer. length: 32 bits. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Number of interceptor detonations. type: Unsigned Integer. length: 32 bits.")] - NumberOfInterceptorDetonations = 100207, - - /// - /// Number of message buffers dropped. type: Unsigned Integer. length: 32 bits. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Number of message buffers dropped. type: Unsigned Integer. length: 32 bits.")] - NumberOfMessageBuffersDropped = 100208, - - /// - /// Satellite sensor background (year, day). type: Unsigned Integer, Unsigned Integer. length: 16 bits, 16 bits. units: years, Julian days. range: 1-366. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Satellite sensor background (year, day). type: Unsigned Integer, Unsigned Integer. length: 16 bits, 16 bits. units: years, Julian days. range: 1-366.")] - SatelliteSensorBackgroundYearDay = 100213, - - /// - /// Satellite sensor background (hour, minute). type: Unsigned Integer, Unsigned Integer. length: 16 bits, 16 bits. units: hours, minutes. range: 0-23,0-59. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Satellite sensor background (hour, minute). type: Unsigned Integer, Unsigned Integer. length: 16 bits, 16 bits. units: hours, minutes. range: 0-23,0-59.")] - SatelliteSensorBackgroundHourMinute = 100214, - - /// - /// Script Number. type: Integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Script Number. type: Integer. length: 32.")] - ScriptNumber = 100218, - - /// - /// Entity/Track/Update Data. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Entity/Track/Update Data.")] - EntityTrackUpdateData = 100300, - - /// - /// Local/Force Training. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Local/Force Training.")] - LocalForceTraining = 100400, - - /// - /// Entity/Track Identity Data. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Entity/Track Identity Data.")] - EntityTrackIdentityData = 100500, - - /// - /// Entity for Track Event. type: Variable. length: 48. range: Entity being tracked. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Entity for Track Event. type: Variable. length: 48. range: Entity being tracked.")] - EntityForTrackEvent = 100510, - - /// - /// IFF (Friend-Foe) status. type: Unsigned Integer. length: 32. range: 0 Unidentified / Unknown, 1 Perceived Friendly, 2 Perceived Hostile. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("IFF (Friend-Foe) status. type: Unsigned Integer. length: 32. range: 0 Unidentified / Unknown, 1 Perceived Friendly, 2 Perceived Hostile.")] - IFFFriendFoeStatus = 100520, - - /// - /// Engagement Data. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Engagement Data.")] - EngagementData = 100600, - - /// - /// Target Latitude. type: Integer. length: 32. units: (10000th) Degrees. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Target Latitude. type: Integer. length: 32. units: (10000th) Degrees.")] - TargetLatitude = 100610, - - /// - /// Target Longitude. type: Integer. length: 32. units: (10000th) Degrees. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Target Longitude. type: Integer. length: 32. units: (10000th) Degrees.")] - TargetLongitude = 100620, - - /// - /// Area of Interest (Ground Impact Circle) Center Latitude. type: Integer. length: 32. units: (10000th) Degrees. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Area of Interest (Ground Impact Circle) Center Latitude. type: Integer. length: 32. units: (10000th) Degrees.")] - AreaOfInterestGroundImpactCircleCenterLatitude = 100631, - - /// - /// Area of Interest (Ground Impact Circle) Center Longitude. type: Integer. length: 32. units: (10000th) Degrees. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Area of Interest (Ground Impact Circle) Center Longitude. type: Integer. length: 32. units: (10000th) Degrees.")] - AreaOfInterestGroundImpactCircleCenterLongitude = 100632, - - /// - /// Area of Interest (Ground Impact Circle) Radius. type: Unsigned Integer. length: 32. units: Meters. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Area of Interest (Ground Impact Circle) Radius. type: Unsigned Integer. length: 32. units: Meters.")] - AreaOfInterestGroundImpactCircleRadius = 100633, - - /// - /// Area of Interest Type. type: Unsigned Integer. length: 32. range: 0 Unspecified, 1 TBM Defense. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Area of Interest Type. type: Unsigned Integer. length: 32. range: 0 Unspecified, 1 TBM Defense.")] - AreaOfInterestType = 100634, - - /// - /// Target Aggregate ID. type: Variable. length: 48. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Target Aggregate ID. type: Variable. length: 48.")] - TargetAggregateID = 100640, - - /// - /// GIC Identification Number. type: Unsigned Integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("GIC Identification Number. type: Unsigned Integer. length: 32.")] - GICIdentificationNumber = 100650, - - /// - /// Estimated Time of Flight to TBM Impact. type: Floating Point. length: 32. range: Seconds from time in PDU header. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Estimated Time of Flight to TBM Impact. type: Floating Point. length: 32. range: Seconds from time in PDU header.")] - EstimatedTimeOfFlightToTBMImpact = 100660, - - /// - /// Estimated Intercept Time. type: Floating Point. length: 32. range: Seconds from time in PDU header. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Estimated Intercept Time. type: Floating Point. length: 32. range: Seconds from time in PDU header.")] - EstimatedInterceptTime = 100661, - - /// - /// Estimated Time of Flight to Next Waypoint. type: Floating Point. length: 32. range: Seconds from time in PDU header. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Estimated Time of Flight to Next Waypoint. type: Floating Point. length: 32. range: Seconds from time in PDU header.")] - EstimatedTimeOfFlightToNextWaypoint = 100662, - - /// - /// Entity/Track Equipment Data. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Entity/Track Equipment Data.")] - EntityTrackEquipmentData = 100700, - - /// - /// Emission/EW Data. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Emission/EW Data.")] - EmissionEWData = 100800, - - /// - /// Appearance Data. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Appearance Data.")] - AppearanceData = 100900, - - /// - /// Command/Order Data. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Command/Order Data.")] - CommandOrderData = 101000, - - /// - /// Environmental Data. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Environmental Data.")] - EnvironmentalData = 101100, - - /// - /// Significant Event Data. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Significant Event Data.")] - SignificantEventData = 101200, - - /// - /// Operator Action Data. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Operator Action Data.")] - OperatorActionData = 101300, - - /// - /// ADA Engagement Mode. type: Unsigned Integer. length: 32. range: 0 Air, 1 ATBM. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ADA Engagement Mode. type: Unsigned Integer. length: 32. range: 0 Air, 1 ATBM.")] - ADAEngagementMode = 101310, - - /// - /// ADA Shooting Status. type: Unsigned Integer. length: 32. range: 0 Can not engage, 1 Can engage,. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ADA Shooting Status. type: Unsigned Integer. length: 32. range: 0 Can not engage, 1 Can engage,.")] - ADAShootingStatus = 101320, - - /// - /// ADA Mode. type: Unsigned Integer. length: 32. range: 0 Shut down, 1 Active. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ADA Mode. type: Unsigned Integer. length: 32. range: 0 Shut down, 1 Active.")] - ADAMode = 101321, - - /// - /// ADA Radar Status. type: Unsigned Integer. length: 32. range: 0 Off, 1 On, 2 Momentary On. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ADA Radar Status. type: Unsigned Integer. length: 32. range: 0 Off, 1 On, 2 Momentary On.")] - ADARadarStatus = 101330, - - /// - /// Shoot Command. type: Unsigned Integer. length: 32. range: 0 Undefined, Greater than 0 Number of Shots to take. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Shoot Command. type: Unsigned Integer. length: 32. range: 0 Undefined, Greater than 0 Number of Shots to take.")] - ShootCommand = 101340, - - /// - /// ADA Weapon Status. type: Unsigned Integer. length: 32. range: 0 None, 1 Free, 2 Tight, 3 Hold. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ADA Weapon Status. type: Unsigned Integer. length: 32. range: 0 None, 1 Free, 2 Tight, 3 Hold.")] - ADAWeaponStatus = 101350, - - /// - /// ADA Firing Disciple. type: Unsigned Integer. length: 32. range: 0 SLS_ABT, 1 Shoot 2_ABT, 2 Lash Mode, 3 SLS_TM, 4 Shoot2_TM, 5 Default. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ADA Firing Disciple. type: Unsigned Integer. length: 32. range: 0 SLS_ABT, 1 Shoot 2_ABT, 2 Lash Mode, 3 SLS_TM, 4 Shoot2_TM, 5 Default.")] - ADAFiringDisciple = 101360, - - /// - /// Order Status. type: Unsigned Integer. length: 32. range: 0 Cancel Engagement, 1 Engage Assignment. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Order Status. type: Unsigned Integer. length: 32. range: 0 Cancel Engagement, 1 Engage Assignment.")] - OrderStatus = 101370, - - /// - /// Time Synchronization. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Time Synchronization.")] - TimeSynchronization = 101400, - - /// - /// Tomahawk Data. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tomahawk Data.")] - TomahawkData = 101500, - - /// - /// Number of Detonations. type: Unsigned Integer. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Number of Detonations. type: Unsigned Integer.")] - NumberOfDetonations = 102100, - - /// - /// Number of Intercepts. type: Unsigned Integer. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Number of Intercepts. type: Unsigned Integer.")] - NumberOfIntercepts = 102200, - - /// - /// OBT Control MT-201. type: Variable Record. length: 64. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("OBT Control MT-201. type: Variable Record. length: 64.")] - OBTControlMT201 = 200201, - - /// - /// Sensor Data MT-202. type: Variable Record. length: 64. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sensor Data MT-202. type: Variable Record. length: 64.")] - SensorDataMT202 = 200202, - - /// - /// Environmental Data MT-203. type: Variable Record. length: 64. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Environmental Data MT-203. type: Variable Record. length: 64.")] - EnvironmentalDataMT203 = 200203, - - /// - /// Ownship Data MT-204. type: Variable Record. length: 128. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ownship Data MT-204. type: Variable Record. length: 128.")] - OwnshipDataMT204 = 200204, - - /// - /// Acoustic Contact Data MT-205. type: Variable Record. length: 288. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Acoustic Contact Data MT-205. type: Variable Record. length: 288.")] - AcousticContactDataMT205 = 200205, - - /// - /// Sonobuoy Data MT-207. type: Variable Record. length: 64. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sonobuoy Data MT-207. type: Variable Record. length: 64.")] - SonobuoyDataMT207 = 200207, - - /// - /// Sonobuoy Contact Data MT-210. type: Variable Record. length: 64. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sonobuoy Contact Data MT-210. type: Variable Record. length: 64.")] - SonobuoyContactDataMT210 = 200210, - - /// - /// Helo Control MT-211. type: Variable Record. length: 64. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Helo Control MT-211. type: Variable Record. length: 64.")] - HeloControlMT211 = 200211, - - /// - /// ESM Control Data. type: Variable Record. length: 96. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ESM Control Data. type: Variable Record. length: 96.")] - ESMControlData = 200213, - - /// - /// ESM Contact Data MT-214. type: Variable Record. length: 192. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ESM Contact Data MT-214. type: Variable Record. length: 192.")] - ESMContactDataMT214 = 200214, - - /// - /// ESM Emitter Data MT-215. type: Variable Record. length: 64. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ESM Emitter Data MT-215. type: Variable Record. length: 64.")] - ESMEmitterDataMT215 = 200215, - - /// - /// Weapon Definition Data MT-217. type: Variable Record. length: 224. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Weapon Definition Data MT-217. type: Variable Record. length: 224.")] - WeaponDefinitionDataMT217 = 200216, - - /// - /// Weapon Preset Data MT-217. type: Variable Record. length: 256. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Weapon Preset Data MT-217. type: Variable Record. length: 256.")] - WeaponPresetDataMT217 = 200217, - - /// - /// OBT Control MT-301. type: Variable Record. length: 64. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("OBT Control MT-301. type: Variable Record. length: 64.")] - OBTControlMT301 = 200301, - - /// - /// Sensor Data MT-302. type: Variable Record. length: 64. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sensor Data MT-302. type: Variable Record. length: 64.")] - SensorDataMT302 = 200302, - - /// - /// Environmental Data MT-303m. type: Variable Record. length: 64. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Environmental Data MT-303m. type: Variable Record. length: 64.")] - EnvironmentalDataMT303m = 200303, - - /// - /// Ownship Data MT-304. type: Variable Record. length: 64. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ownship Data MT-304. type: Variable Record. length: 64.")] - OwnshipDataMT304 = 200304, - - /// - /// Acoustic Contact Data MT-305. type: Variable Record. length: 288. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Acoustic Contact Data MT-305. type: Variable Record. length: 288.")] - AcousticContactDataMT305 = 200305, - - /// - /// Sonobuoy Data MT-307. type: Variable Record. length: 128. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sonobuoy Data MT-307. type: Variable Record. length: 128.")] - SonobuoyDataMT307 = 200307, - - /// - /// Sonobuoy Contact Data MT-310. type: Variable Record. length: 64. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sonobuoy Contact Data MT-310. type: Variable Record. length: 64.")] - SonobuoyContactDataMT310 = 200310, - - /// - /// Helo Scenario / Equipment Status. type: Variable Record. length: 224. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Helo Scenario / Equipment Status. type: Variable Record. length: 224.")] - HeloScenarioEquipmentStatus = 200311, - - /// - /// ESM Control Data MT-313. type: Variable Record. length: 96. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ESM Control Data MT-313. type: Variable Record. length: 96.")] - ESMControlDataMT313 = 200313, - - /// - /// ESM Contact Data MT-314. type: Variable Record. length: 192. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ESM Contact Data MT-314. type: Variable Record. length: 192.")] - ESMContactDataMT314 = 200314, - - /// - /// ESM Emitter Data MT-315. type: Variable Record. length: 64. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ESM Emitter Data MT-315. type: Variable Record. length: 64.")] - ESMEmitterDataMT315 = 200315, - - /// - /// Weapon Definition Data MT-316. type: Variable Record. length: 256. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Weapon Definition Data MT-316. type: Variable Record. length: 256.")] - WeaponDefinitionDataMT316 = 200316, - - /// - /// Weapon Preset Data MT-317. type: Variable Record. length: 256. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Weapon Preset Data MT-317. type: Variable Record. length: 256.")] - WeaponPresetDataMT317 = 200317, - - /// - /// Pairing/Association (eMT-56). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Pairing/Association (eMT-56). type: Variable Record.")] - PairingAssociationEMT56 = 200400, - - /// - /// Pointer (eMT-57). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Pointer (eMT-57). type: Variable Record.")] - PointerEMT57 = 200401, - - /// - /// Reporting Responsibility (eMT-58). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Reporting Responsibility (eMT-58). type: Variable Record.")] - ReportingResponsibilityEMT58 = 200402, - - /// - /// Track Number (eMT-59). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Track Number (eMT-59). type: Variable Record.")] - TrackNumberEMT59 = 200403, - - /// - /// ID for Link-11 Reporting (eMT-60). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ID for Link-11 Reporting (eMT-60). type: Variable Record.")] - IDForLink11ReportingEMT60 = 200404, - - /// - /// Remote Track (eMT-62). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Remote Track (eMT-62). type: Variable Record.")] - RemoteTrackEMT62 = 200405, - - /// - /// Link-11 Error Rate (eMT-63). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Link-11 Error Rate (eMT-63). type: Variable Record.")] - Link11ErrorRateEMT63 = 200406, - - /// - /// Track Quality (eMT-64). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Track Quality (eMT-64). type: Variable Record.")] - TrackQualityEMT64 = 200407, - - /// - /// Gridlock (eMT-65). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Gridlock (eMT-65). type: Variable Record.")] - GridlockEMT65 = 200408, - - /// - /// Kill (eMT-66). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Kill (eMT-66). type: Variable Record.")] - KillEMT66 = 200409, - - /// - /// Track ID Change / Resolution (eMT-68). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Track ID Change / Resolution (eMT-68). type: Variable Record.")] - TrackIDChangeResolutionEMT68 = 200410, - - /// - /// Weapons Status (eMT-69). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Weapons Status (eMT-69). type: Variable Record.")] - WeaponsStatusEMT69 = 200411, - - /// - /// Link-11 Operator (eMT-70). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Link-11 Operator (eMT-70). type: Variable Record.")] - Link11OperatorEMT70 = 200412, - - /// - /// Force Training Transmit (eMT-71). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Force Training Transmit (eMT-71). type: Variable Record.")] - ForceTrainingTransmitEMT71 = 200413, - - /// - /// Force Training Receive (eMT-72). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Force Training Receive (eMT-72). type: Variable Record.")] - ForceTrainingReceiveEMT72 = 200414, - - /// - /// Interceptor Amplification (eMT-75). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Interceptor Amplification (eMT-75). type: Variable Record.")] - InterceptorAmplificationEMT75 = 200415, - - /// - /// Consumables (eMT-78). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Consumables (eMT-78). type: Variable Record.")] - ConsumablesEMT78 = 200416, - - /// - /// Link-11 Local Track Quality (eMT-95). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Link-11 Local Track Quality (eMT-95). type: Variable Record.")] - Link11LocalTrackQualityEMT95 = 200417, - - /// - /// DLRP (eMT-19). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DLRP (eMT-19). type: Variable Record.")] - DLRPEMT19 = 200418, - - /// - /// Force Order (eMT-52). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Force Order (eMT-52). type: Variable Record.")] - ForceOrderEMT52 = 200419, - - /// - /// Wilco / Cantco (eMT-53). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Wilco / Cantco (eMT-53). type: Variable Record.")] - WilcoCantcoEMT53 = 200420, - - /// - /// EMC Bearing (eMT-54). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("EMC Bearing (eMT-54). type: Variable Record.")] - EMCBearingEMT54 = 200421, - - /// - /// Change Track Eligibility (eMT-55). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Change Track Eligibility (eMT-55). type: Variable Record.")] - ChangeTrackEligibilityEMT55 = 200422, - - /// - /// Land Mass Reference Point. type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Land Mass Reference Point. type: Variable Record.")] - LandMassReferencePoint = 200423, - - /// - /// System Reference Point. type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("System Reference Point. type: Variable Record.")] - SystemReferencePoint = 200424, - - /// - /// PU Amplification. type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("PU Amplification. type: Variable Record.")] - PUAmplification = 200425, - - /// - /// Set/Drift. type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Set/Drift. type: Variable Record.")] - SetDrift = 200426, - - /// - /// Begin Initialization (MT-1). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Begin Initialization (MT-1). type: Variable Record.")] - BeginInitializationMT1 = 200427, - - /// - /// Status and Control (MT-3). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Status and Control (MT-3). type: Variable Record.")] - StatusAndControlMT3 = 200428, - - /// - /// Scintillation Change (MT-39). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Scintillation Change (MT-39). type: Variable Record.")] - ScintillationChangeMT39 = 200429, - - /// - /// Link 11 ID Control (MT-61). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Link 11 ID Control (MT-61). type: Variable Record.")] - Link11IDControlMT61 = 200430, - - /// - /// PU Guard List. type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("PU Guard List. type: Variable Record.")] - PUGuardList = 200431, - - /// - /// Winds Aloft (MT-14). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Winds Aloft (MT-14). type: Variable Record.")] - WindsAloftMT14 = 200432, - - /// - /// Surface Winds (MT-15). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Surface Winds (MT-15). type: Variable Record.")] - SurfaceWindsMT15 = 200433, - - /// - /// Sea State (MT-17). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sea State (MT-17). type: Variable Record.")] - SeaStateMT17 = 200434, - - /// - /// Magnetic Variation (MT-37). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Magnetic Variation (MT-37). type: Variable Record.")] - MagneticVariationMT37 = 200435, - - /// - /// Track Eligibility (MT-29). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Track Eligibility (MT-29). type: Variable Record.")] - TrackEligibilityMT29 = 200436, - - /// - /// Training Track Notification. type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Training Track Notification. type: Variable Record.")] - TrainingTrackNotification = 200437, - - /// - /// Tacan Data (MT-32). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tacan Data (MT-32). type: Variable Record.")] - TacanDataMT32 = 200501, - - /// - /// Interceptor Amplification (MT-75). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Interceptor Amplification (MT-75). type: Variable Record.")] - InterceptorAmplificationMT75 = 200502, - - /// - /// Tacan Assignment (MT-76). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Tacan Assignment (MT-76). type: Variable Record.")] - TacanAssignmentMT76 = 200503, - - /// - /// Autopilot Status (MT-77). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Autopilot Status (MT-77). type: Variable Record.")] - AutopilotStatusMT77 = 200504, - - /// - /// Consumables (MT-78). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Consumables (MT-78). type: Variable Record.")] - ConsumablesMT78 = 200505, - - /// - /// Downlink (MT-79). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Downlink (MT-79). type: Variable Record.")] - DownlinkMT79 = 200506, - - /// - /// TIN Report (MT-80). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TIN Report (MT-80). type: Variable Record.")] - TINReportMT80 = 200507, - - /// - /// Special Point Control (MT-81). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Special Point Control (MT-81). type: Variable Record.")] - SpecialPointControlMT81 = 200508, - - /// - /// Control Discretes (MT-82). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Control Discretes (MT-82). type: Variable Record.")] - ControlDiscretesMT82 = 200509, - - /// - /// Request Target Discretes(MT-83). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Request Target Discretes(MT-83). type: Variable Record.")] - RequestTargetDiscretesMT83 = 200510, - - /// - /// Target Discretes (MT-84). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Target Discretes (MT-84). type: Variable Record.")] - TargetDiscretesMT84 = 200511, - - /// - /// Reply Discretes (MT-85). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Reply Discretes (MT-85). type: Variable Record.")] - ReplyDiscretesMT85 = 200512, - - /// - /// Command Maneuvers (MT-86). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Command Maneuvers (MT-86). type: Variable Record.")] - CommandManeuversMT86 = 200513, - - /// - /// Target Data (MT-87). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Target Data (MT-87). type: Variable Record.")] - TargetDataMT87 = 200514, - - /// - /// Target Pointer (MT-88). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Target Pointer (MT-88). type: Variable Record.")] - TargetPointerMT88 = 200515, - - /// - /// Intercept Data (MT-89). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Intercept Data (MT-89). type: Variable Record.")] - InterceptDataMT89 = 200516, - - /// - /// Decrement Missile Inventory (MT-90). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Decrement Missile Inventory (MT-90). type: Variable Record.")] - DecrementMissileInventoryMT90 = 200517, - - /// - /// Link-4A Alert (MT-91). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Link-4A Alert (MT-91). type: Variable Record.")] - Link4AAlertMT91 = 200518, - - /// - /// Strike Control (MT-92). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Strike Control (MT-92). type: Variable Record.")] - StrikeControlMT92 = 200519, - - /// - /// Speed Change (MT-25). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Speed Change (MT-25). type: Variable Record.")] - SpeedChangeMT25 = 200521, - - /// - /// Course Change (MT-26). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Course Change (MT-26). type: Variable Record.")] - CourseChangeMT26 = 200522, - - /// - /// Altitude Change (MT-27). type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Altitude Change (MT-27). type: Variable Record.")] - AltitudeChangeMT27 = 200523, - - /// - /// ACLS AN/SPN-46 Status. type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ACLS AN/SPN-46 Status. type: Variable Record.")] - ACLSANSPN46Status = 200524, - - /// - /// ACLS Aircraft Report. type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("ACLS Aircraft Report. type: Variable Record.")] - ACLSAircraftReport = 200525, - - /// - /// SPS-67 Radar Operator Functions. type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SPS-67 Radar Operator Functions. type: Variable Record.")] - SPS67RadarOperatorFunctions = 200600, - - /// - /// SPS-55 Radar Operator Functions. type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SPS-55 Radar Operator Functions. type: Variable Record.")] - SPS55RadarOperatorFunctions = 200601, - - /// - /// SPQ-9A Radar Operator Functions. length: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SPQ-9A Radar Operator Functions. length: Variable Record.")] - SPQ9ARadarOperatorFunctions = 200602, - - /// - /// SPS-49 Radar Operator Functions. type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SPS-49 Radar Operator Functions. type: Variable Record.")] - SPS49RadarOperatorFunctions = 200603, - - /// - /// MK-23 Radar Operator Functions. type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("MK-23 Radar Operator Functions. type: Variable Record.")] - MK23RadarOperatorFunctions = 200604, - - /// - /// SPS-48 Radar Operator Functions. type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SPS-48 Radar Operator Functions. type: Variable Record.")] - SPS48RadarOperatorFunctions = 200605, - - /// - /// SPS-40 Radar Operator Functions. type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("SPS-40 Radar Operator Functions. type: Variable Record.")] - SPS40RadarOperatorFunctions = 200606, - - /// - /// MK-95 Radar Operator Functions. type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("MK-95 Radar Operator Functions. type: Variable Record.")] - MK95RadarOperatorFunctions = 200607, - - /// - /// Kill/No Kill. type: Unsigned Integer. length: 32. range: 0 No kill, 1 Kill. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Kill/No Kill. type: Unsigned Integer. length: 32. range: 0 No kill, 1 Kill.")] - KillNoKill = 200608, - - /// - /// CMT pc. type: Unsigned Integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("CMT pc. type: Unsigned Integer. length: 32.")] - CMTPc = 200609, - - /// - /// CMC4AirGlobalData. type: Variable Recoed. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("CMC4AirGlobalData. type: Variable Recoed.")] - CMC4AirGlobalData = 200610, - - /// - /// CMC4GlobalData. type: Variable Record. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("CMC4GlobalData. type: Variable Record.")] - CMC4GlobalData = 200611, - - /// - /// LINKSIM_COMMENT_PDU. type: Integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("LINKSIM_COMMENT_PDU. type: Integer. length: 32.")] - LINKSIMCOMMENTPDU = 200612, - - /// - /// NSST Ownship Control. type: Integer. length: 64. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("NSST Ownship Control. type: Integer. length: 64.")] - NSSTOwnshipControl = 200613, - - /// - /// Other. type: Integer. length: 00. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other. type: Integer. length: 00.")] - Other = 240000, - - /// - /// Mass Of The Vehicle. type: real. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mass Of The Vehicle. type: real. length: 32.")] - MassOfTheVehicle = 240001, - - /// - /// Force ID. type: Integer. length: 8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Force ID. type: Integer. length: 8.")] - ForceID_240002 = 240002, - - /// - /// Entity Type Kind. type: Integer. length: 8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Entity Type Kind. type: Integer. length: 8.")] - EntityTypeKind = 240003, - - /// - /// Entity Type Domain. type: Integer. length: 8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Entity Type Domain. type: Integer. length: 8.")] - EntityTypeDomain = 240004, - - /// - /// Entity Type Country. type: Integer. length: 16. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Entity Type Country. type: Integer. length: 16.")] - EntityTypeCountry = 240005, - - /// - /// Entity Type Category. type: Integer. length: 8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Entity Type Category. type: Integer. length: 8.")] - EntityTypeCategory = 240006, - - /// - /// Entity Type Sub Category. type: Integer. length: 8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Entity Type Sub Category. type: Integer. length: 8.")] - EntityTypeSubCategory = 240007, - - /// - /// Entity Type Specific. type: Integer. length: 8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Entity Type Specific. type: Integer. length: 8.")] - EntityTypeSpecific = 240008, - - /// - /// Entity Type Extra. type: Integer. length: 8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Entity Type Extra. type: Integer. length: 8.")] - EntityTypeExtra = 240009, - - /// - /// Alternative Entity Type Kind. type: Integer. length: 8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Alternative Entity Type Kind. type: Integer. length: 8.")] - AlternativeEntityTypeKind = 240010, - - /// - /// Alternative Entity Type Domain. type: Integer. length: 8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Alternative Entity Type Domain. type: Integer. length: 8.")] - AlternativeEntityTypeDomain = 240011, - - /// - /// Alternative Entity Type Country. type: Integer. length: 16. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Alternative Entity Type Country. type: Integer. length: 16.")] - AlternativeEntityTypeCountry = 240012, - - /// - /// Alternative Entity Type Category. type: integer. length: 8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Alternative Entity Type Category. type: integer. length: 8.")] - AlternativeEntityTypeCategory = 240013, - - /// - /// Alternative Entity Type Sub Category. type: integer. length: 8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Alternative Entity Type Sub Category. type: integer. length: 8.")] - AlternativeEntityTypeSubCategory = 240014, - - /// - /// Alternative Entity Type Specific. type: integer. length: 8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Alternative Entity Type Specific. type: integer. length: 8.")] - AlternativeEntityTypeSpecific = 240015, - - /// - /// Alternative Entity Type Extra. type: integer. length: 8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Alternative Entity Type Extra. type: integer. length: 8.")] - AlternativeEntityTypeExtra = 240016, - - /// - /// Entity Location X. type: real. length: 64. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Entity Location X. type: real. length: 64.")] - EntityLocationX = 240017, - - /// - /// Entity Location Y. type: real. length: 64. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Entity Location Y. type: real. length: 64.")] - EntityLocationY = 240018, - - /// - /// Entity Location Z. type: real. length: 64. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Entity Location Z. type: real. length: 64.")] - EntityLocationZ = 240019, - - /// - /// Entity Linear Velocity X. type: real. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Entity Linear Velocity X. type: real. length: 32.")] - EntityLinearVelocityX = 240020, - - /// - /// Entity Linear Velocity Y. type: real. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Entity Linear Velocity Y. type: real. length: 32.")] - EntityLinearVelocityY = 240021, - - /// - /// Entity Linear Velocity Z. type: real. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Entity Linear Velocity Z. type: real. length: 32.")] - EntityLinearVelocityZ = 240022, - - /// - /// Entity Orientation Psi. type: real. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Entity Orientation Psi. type: real. length: 32.")] - EntityOrientationPsi = 240023, - - /// - /// Entity Orientation Theta. type: real. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Entity Orientation Theta. type: real. length: 32.")] - EntityOrientationTheta = 240024, - - /// - /// Entity Orientation Phi. type: real. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Entity Orientation Phi. type: real. length: 32.")] - EntityOrientationPhi = 240025, - - /// - /// Dead Reckoning Algorithm. type: integer. length: 8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Dead Reckoning Algorithm. type: integer. length: 8.")] - DeadReckoningAlgorithm = 240026, - - /// - /// Dead Reckoning Linear Acceleration X. type: real. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Dead Reckoning Linear Acceleration X. type: real. length: 32.")] - DeadReckoningLinearAccelerationX = 240027, - - /// - /// Dead Reckoning Linear Acceleration Y. type: real. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Dead Reckoning Linear Acceleration Y. type: real. length: 32.")] - DeadReckoningLinearAccelerationY = 240028, - - /// - /// Dead Reckoning Linear Acceleration Z. type: real. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Dead Reckoning Linear Acceleration Z. type: real. length: 32.")] - DeadReckoningLinearAccelerationZ = 240029, - - /// - /// Dead Reckoning Angular Velocity X. type: real. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Dead Reckoning Angular Velocity X. type: real. length: 32.")] - DeadReckoningAngularVelocityX = 240030, - - /// - /// Dead Reckoning Angular Velocity Y. type: real. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Dead Reckoning Angular Velocity Y. type: real. length: 32.")] - DeadReckoningAngularVelocityY = 240031, - - /// - /// Dead Reckoning Angular Velocity Z. type: real. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Dead Reckoning Angular Velocity Z. type: real. length: 32.")] - DeadReckoningAngularVelocityZ = 240032, - - /// - /// Entity Appearance. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Entity Appearance. type: integer. length: 32.")] - EntityAppearance = 240033, - - /// - /// Entity Marking Character Set. type: integer. length: 8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Entity Marking Character Set. type: integer. length: 8.")] - EntityMarkingCharacterSet = 240034, - - /// - /// Entity Marking 11 Bytes. type: character. length: 88. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Entity Marking 11 Bytes. type: character. length: 88.")] - EntityMarking11Bytes = 240035, - - /// - /// Capability. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Capability. type: integer. length: 32.")] - Capability = 240036, - - /// - /// Number Articulation Parameters. type: integer. length: 8. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Number Articulation Parameters. type: integer. length: 8.")] - NumberArticulationParameters = 240037, - - /// - /// Articulation Parameter ID. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Articulation Parameter ID. type: integer. length: 32.")] - ArticulationParameterID = 240038, - - /// - /// Articulation Parameter Type. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Articulation Parameter Type. type: integer. length: 32.")] - ArticulationParameterType_240039 = 240039, - - /// - /// Articulation Parameter Value. type: real. length: 64. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Articulation Parameter Value. type: real. length: 64.")] - ArticulationParameterValue_240040 = 240040, - - /// - /// Type Of Stores. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Type Of Stores. type: integer. length: 32.")] - TypeOfStores = 240041, - - /// - /// Quantity Of Stores. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Quantity Of Stores. type: integer. length: 32.")] - QuantityOfStores = 240042, - - /// - /// Fuel Quantity. type: real. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuel Quantity. type: real. length: 32.")] - FuelQuantity = 240043, - - /// - /// Radar System Status. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Radar System Status. type: integer. length: 32.")] - RadarSystemStatus = 240044, - - /// - /// Radio Communication System Status. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Radio Communication System Status. type: integer. length: 32.")] - RadioCommunicationSystemStatus = 240045, - - /// - /// Default Time For Radio Transmission For Stationary Transmitters. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Default Time For Radio Transmission For Stationary Transmitters. type: integer. length: 32.")] - DefaultTimeForRadioTransmissionForStationaryTransmitters = 240046, - - /// - /// Default Time For Radio Transmission For Moving Transmitters. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Default Time For Radio Transmission For Moving Transmitters. type: integer. length: 32.")] - DefaultTimeForRadioTransmissionForMovingTransmitters = 240047, - - /// - /// Body Part Damaged Ratio. type: real. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Body Part Damaged Ratio. type: real. length: 32.")] - BodyPartDamagedRatio = 240048, - - /// - /// Name Of The Terrain Database File. type: character. length: 00. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Name Of The Terrain Database File. type: character. length: 00.")] - NameOfTheTerrainDatabaseFile = 240049, - - /// - /// Name Of Local File. type: character. length: 00. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Name Of Local File. type: character. length: 00.")] - NameOfLocalFile = 240050, - - /// - /// Aimpoint Bearing. type: real. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Aimpoint Bearing. type: real. length: 32.")] - AimpointBearing = 240051, - - /// - /// Aimpoint Elevation. type: real. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Aimpoint Elevation. type: real. length: 32.")] - AimpointElevation = 240052, - - /// - /// Aimpoint Range. type: real. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Aimpoint Range. type: real. length: 32.")] - AimpointRange = 240053, - - /// - /// Air Speed. type: real. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Air Speed. type: real. length: 32.")] - AirSpeed = 240054, - - /// - /// Altitude. type: real. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Altitude. type: real. length: 32.")] - Altitude_240055 = 240055, - - /// - /// Application Status. type: structure. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Application Status. type: structure. length: 32.")] - ApplicationStatus = 240056, - - /// - /// Auto Iff. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Auto Iff. type: integer. length: 32.")] - AutoIff = 240057, - - /// - /// Beacon Delay. type: real. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Beacon Delay. type: real. length: 32.")] - BeaconDelay = 240058, - - /// - /// Bingo Fuel Setting. type: real. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Bingo Fuel Setting. type: real. length: 32.")] - BingoFuelSetting = 240059, - - /// - /// Cloud Bottom. type: real. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Cloud Bottom. type: real. length: 32.")] - CloudBottom = 240060, - - /// - /// Cloud Top. type: real. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Cloud Top. type: real. length: 32.")] - CloudTop = 240061, - - /// - /// Direction. type: real. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Direction. type: real. length: 32.")] - Direction = 240062, - - /// - /// End Action. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("End Action. type: integer. length: 32.")] - EndAction = 240063, - - /// - /// Frequency. type: real. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Frequency. type: real. length: 32.")] - Frequency = 240064, - - /// - /// Freeze. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Freeze. type: integer. length: 32.")] - Freeze = 240065, - - /// - /// Heading. type: real. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Heading. type: real. length: 32.")] - Heading = 240066, - - /// - /// Identification. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Identification. type: integer. length: 32.")] - Identification_240067 = 240067, - - /// - /// Initial Point Data. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Initial Point Data. type: integer. length: 32.")] - InitialPointData = 240068, - - /// - /// Latitude. type: real. length: 64. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Latitude. type: real. length: 64.")] - Latitude_240069 = 240069, - - /// - /// Lights. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Lights. type: integer. length: 32.")] - Lights_240070 = 240070, - - /// - /// Linear. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Linear. type: integer. length: 32.")] - Linear = 240071, - - /// - /// Longitude. type: real. length: 64. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Longitude. type: real. length: 64.")] - Longitude_240072 = 240072, - - /// - /// Low Altitude. type: real. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Low Altitude. type: real. length: 32.")] - LowAltitude = 240073, - - /// - /// Mfd Formats. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mfd Formats. type: integer. length: 32.")] - MfdFormats = 240074, - - /// - /// Nctr. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Nctr. type: integer. length: 32.")] - Nctr = 240075, - - /// - /// Number Projectiles. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Number Projectiles. type: integer. length: 32.")] - NumberProjectiles = 240076, - - /// - /// Operation Code. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Operation Code. type: integer. length: 32.")] - OperationCode = 240077, - - /// - /// Pitch. type: real. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Pitch. type: real. length: 32.")] - Pitch = 240078, - - /// - /// Profiles. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Profiles. type: integer. length: 32.")] - Profiles = 240079, - - /// - /// Quantity. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Quantity. type: integer. length: 32.")] - Quantity_240080 = 240080, - - /// - /// Radar Modes. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Radar Modes. type: integer. length: 32.")] - RadarModes = 240081, - - /// - /// Radar Search Volume. type: real. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Radar Search Volume. type: real. length: 32.")] - RadarSearchVolume = 240082, - - /// - /// Roll. type: real. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Roll. type: real. length: 32.")] - Roll = 240083, - - /// - /// Rotation. type: real. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Rotation. type: real. length: 32.")] - Rotation_240084 = 240084, - - /// - /// Scale Factor X. type: real. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Scale Factor X. type: real. length: 32.")] - ScaleFactorX = 240085, - - /// - /// Scale Factor Y. type: real. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Scale Factor Y. type: real. length: 32.")] - ScaleFactorY = 240086, - - /// - /// Shields. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Shields. type: integer. length: 32.")] - Shields = 240087, - - /// - /// Steerpoint. type: structure. length: 192. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Steerpoint. type: structure. length: 192.")] - Steerpoint = 240088, - - /// - /// Spare1. type: real. length: 64. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Spare1. type: real. length: 64.")] - Spare1 = 240089, - - /// - /// Spare2. type: real. length: 64. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Spare2. type: real. length: 64.")] - Spare2 = 240090, - - /// - /// Team. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Team. type: integer. length: 32.")] - Team = 240091, - - /// - /// Text. type: character. length: 00. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Text. type: character. length: 00.")] - Text = 240092, - - /// - /// Time Of Day. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Time Of Day. type: integer. length: 32.")] - TimeOfDay = 240093, - - /// - /// Trail Flag. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Trail Flag. type: integer. length: 32.")] - TrailFlag = 240094, - - /// - /// Trail Size. type: real. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Trail Size. type: real. length: 32.")] - TrailSize = 240095, - - /// - /// Type Of Projectile. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Type Of Projectile. type: integer. length: 32.")] - TypeOfProjectile = 240096, - - /// - /// Type Of Target. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Type Of Target. type: integer. length: 32.")] - TypeOfTarget = 240097, - - /// - /// Type Of Threat. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Type Of Threat. type: integer. length: 32.")] - TypeOfThreat = 240098, - - /// - /// Uhf Frequency. type: real. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Uhf Frequency. type: real. length: 32.")] - UhfFrequency = 240099, - - /// - /// Utm Altitude. type: real. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Utm Altitude. type: real. length: 32.")] - UtmAltitude = 240100, - - /// - /// Utm Latitude. type: real. length: 64. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Utm Latitude. type: real. length: 64.")] - UtmLatitude = 240101, - - /// - /// Utm Longitude. type: real. length: 64. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Utm Longitude. type: real. length: 64.")] - UtmLongitude = 240102, - - /// - /// Vhf Frequency. type: real. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Vhf Frequency. type: real. length: 32.")] - VhfFrequency = 240103, - - /// - /// Visibility Range. type: real. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Visibility Range. type: real. length: 32.")] - VisibilityRange = 240104, - - /// - /// Void Aaa Hit. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Void Aaa Hit. type: integer. length: 32.")] - VoidAaaHit = 240105, - - /// - /// Void Collision. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Void Collision. type: integer. length: 32.")] - VoidCollision = 240106, - - /// - /// Void Earth Hit. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Void Earth Hit. type: integer. length: 32.")] - VoidEarthHit = 240107, - - /// - /// Void Friendly. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Void Friendly. type: integer. length: 32.")] - VoidFriendly = 240108, - - /// - /// Void Gun Hit. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Void Gun Hit. type: integer. length: 32.")] - VoidGunHit = 240109, - - /// - /// Void Rocket Hit. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Void Rocket Hit. type: integer. length: 32.")] - VoidRocketHit = 240110, - - /// - /// Void Sam Hit. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Void Sam Hit. type: integer. length: 32.")] - VoidSamHit = 240111, - - /// - /// Weapon Data. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Weapon Data. type: integer. length: 32.")] - WeaponData = 240112, - - /// - /// Weapon Type. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Weapon Type. type: integer. length: 32.")] - WeaponType = 240113, - - /// - /// Weather. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Weather. type: integer. length: 32.")] - Weather_240114 = 240114, - - /// - /// Wind Direction. type: real. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Wind Direction. type: real. length: 32.")] - WindDirection_240115 = 240115, - - /// - /// Wind Speed. type: real. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Wind Speed. type: real. length: 32.")] - WindSpeed = 240116, - - /// - /// Wing Station. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Wing Station. type: integer. length: 32.")] - WingStation = 240117, - - /// - /// Yaw. type: real. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Yaw. type: real. length: 32.")] - Yaw = 240118, - - /// - /// Memory Offset. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Memory Offset. type: integer. length: 32.")] - MemoryOffset = 240119, - - /// - /// Memory Data. type: integer. length: 00. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Memory Data. type: integer. length: 00.")] - MemoryData = 240120, - - /// - /// VASI. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("VASI. type: integer. length: 32.")] - VASI = 240121, - - /// - /// Beacon. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Beacon. type: integer. length: 32.")] - Beacon = 240122, - - /// - /// Strobe. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Strobe. type: integer. length: 32.")] - Strobe = 240123, - - /// - /// Culture. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Culture. type: integer. length: 32.")] - Culture = 240124, - - /// - /// Approach. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Approach. type: integer. length: 32.")] - Approach = 240125, - - /// - /// Runway End. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Runway End. type: integer. length: 32.")] - RunwayEnd = 240126, - - /// - /// Obstruction. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Obstruction. type: integer. length: 32.")] - Obstruction = 240127, - - /// - /// Runway Edge. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Runway Edge. type: integer. length: 32.")] - RunwayEdge = 240128, - - /// - /// Ramp Taxiway. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ramp Taxiway. type: integer. length: 32.")] - RampTaxiway = 240129, - - /// - /// Laser Bomb Code. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Laser Bomb Code. type: integer. length: 32.")] - LaserBombCode = 240130, - - /// - /// Rack Type. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Rack Type. type: integer. length: 32.")] - RackType = 240131, - - /// - /// HUD. type: structure. length: 00. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HUD. type: structure. length: 00.")] - HUD = 240132, - - /// - /// RoleFileName. type: character. length: 00. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("RoleFileName. type: character. length: 00.")] - RoleFileName = 240133, - - /// - /// PilotName. type: character. length: 00. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("PilotName. type: character. length: 00.")] - PilotName = 240134, - - /// - /// PilotDesignation. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("PilotDesignation. type: integer. length: 32.")] - PilotDesignation = 240135, - - /// - /// Model Type. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Model Type. type: integer. length: 32.")] - ModelType = 240136, - - /// - /// DIS Type. type: integer. length: 64. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("DIS Type. type: integer. length: 64.")] - DISType = 240137, - - /// - /// Class. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Class. type: integer. length: 32.")] - Class = 240138, - - /// - /// Channel. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Channel. type: integer. length: 32.")] - Channel = 240139, - - /// - /// Entity Type. type: structure. length: 64. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Entity Type. type: structure. length: 64.")] - EntityType_240140 = 240140, - - /// - /// Alternative Entity Type. type: structure. length: 64. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Alternative Entity Type. type: structure. length: 64.")] - AlternativeEntityType_240141 = 240141, - - /// - /// Entity Location. type: structure. length: 192. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Entity Location. type: structure. length: 192.")] - EntityLocation = 240142, - - /// - /// Entity Linear Velocity. type: structure. length: 96. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Entity Linear Velocity. type: structure. length: 96.")] - EntityLinearVelocity = 240143, - - /// - /// Entity Orientation. type: structure. length: 96. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Entity Orientation. type: structure. length: 96.")] - EntityOrientation = 240144, - - /// - /// Dead Reckoning. type: structure. length: 320. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Dead Reckoning. type: structure. length: 320.")] - DeadReckoning = 240145, - - /// - /// Failure Symptom. type: integer. length: 32. range: 1=LimitSpeed, 2 =LimitGLoad, 3=Both. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Failure Symptom. type: integer. length: 32. range: 1=LimitSpeed, 2 =LimitGLoad, 3=Both.")] - FailureSymptom = 240146, - - /// - /// Max Fuel. type: real. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Max Fuel. type: real. length: 32.")] - MaxFuel = 240147, - - /// - /// Refueling Boom Connect. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Refueling Boom Connect. type: integer. length: 32.")] - RefuelingBoomConnect = 240148, - - /// - /// Altitude AGL. type: real. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Altitude AGL. type: real. length: 32.")] - AltitudeAGL = 240149, - - /// - /// Calibrated Airspeed. type: real. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Calibrated Airspeed. type: real. length: 32.")] - CalibratedAirspeed = 240150, - - /// - /// TACAN Channel. type: integer. length: 32. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TACAN Channel. type: integer. length: 32.")] - TACANChannel = 240151, - - /// - /// TACAN Band. type: integer. length: 32. range: 0 = x, 1 = y. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TACAN Band. type: integer. length: 32. range: 0 = x, 1 = y.")] - TACANBand = 240152, - - /// - /// TACAN Mode. type: integer. length: 32. range: 0 = off, 1 = rec, 2 = t/r, 3 = aa rec, 4 = aa t/r. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("TACAN Mode. type: integer. length: 32. range: 0 = off, 1 = rec, 2 = t/r, 3 = aa rec, 4 = aa t/r.")] - TACANMode = 240153 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.SimulationManagement +{ + /// + /// Enumeration values for DatumSpecificationRecord (simman.datumid, Datum Specification record, + /// section 7.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum DatumSpecificationRecord : uint + { + /// + /// Identification. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Identification.")] + Identification = 10000, + + /// + /// Entity Type. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Entity Type.")] + EntityType = 11000, + + /// + /// Concatenated. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Concatenated.")] + Concatenated = 11100, + + /// + /// Kind. type: Unsigned Integer. length: 8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Kind. type: Unsigned Integer. length: 8.")] + Kind = 11110, + + /// + /// Domain. type: Unsigned Integer. length: 8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Domain. type: Unsigned Integer. length: 8.")] + Domain = 11120, + + /// + /// Country. type: Unsigned Integer. length: 16. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Country. type: Unsigned Integer. length: 16.")] + Country = 11130, + + /// + /// Category. type: Unsigned Integer. length: 8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Category. type: Unsigned Integer. length: 8.")] + Category = 11140, + + /// + /// Subcategory. type: Unsigned Integer. length: 8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Subcategory. type: Unsigned Integer. length: 8.")] + Subcategory = 11150, + + /// + /// Specific. type: Unsigned Integer. length: 8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Specific. type: Unsigned Integer. length: 8.")] + Specific = 11160, + + /// + /// Extra. type: Unsigned Integer. length: 8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Extra. type: Unsigned Integer. length: 8.")] + Extra = 11170, + + /// + /// Force ID. type: Unsigned Integer. length: 8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Force ID. type: Unsigned Integer. length: 8.")] + ForceID = 11200, + + /// + /// Description. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Description.")] + Description = 11300, + + /// + /// Alternative Entity Type. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Alternative Entity Type.")] + AlternativeEntityType = 12000, + + /// + /// Kind. type: Unsigned Integer. length: 8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Kind. type: Unsigned Integer. length: 8.")] + Kind_12110 = 12110, + + /// + /// Domain. type: Unsigned Integer. length: 8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Domain. type: Unsigned Integer. length: 8.")] + Domain_12120 = 12120, + + /// + /// Country. type: Unsigned Integer. length: 16. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Country. type: Unsigned Integer. length: 16.")] + Country_12130 = 12130, + + /// + /// Category. type: Unsigned Integer. length: 8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Category. type: Unsigned Integer. length: 8.")] + Category_12140 = 12140, + + /// + /// Subcategory. type: Unsigned Integer. length: 8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Subcategory. type: Unsigned Integer. length: 8.")] + Subcategory_12150 = 12150, + + /// + /// Specific. type: Unsigned Integer. length: 8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Specific. type: Unsigned Integer. length: 8.")] + Specific_12160 = 12160, + + /// + /// Extra. type: Unsigned Integer. length: 8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Extra. type: Unsigned Integer. length: 8.")] + Extra_12170 = 12170, + + /// + /// Description. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Description.")] + Description_12300 = 12300, + + /// + /// Entity Marking. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Entity Marking.")] + EntityMarking = 13000, + + /// + /// Entity Marking Characters. type: String. length: 80. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Entity Marking Characters. type: String. length: 80.")] + EntityMarkingCharacters = 13100, + + /// + /// Crew ID. type: String. length: 80. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Crew ID. type: String. length: 80.")] + CrewID = 13200, + + /// + /// Task Organization. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Task Organization.")] + TaskOrganization = 14000, + + /// + /// Regiment Name. type: String. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Regiment Name. type: String.")] + RegimentName = 14200, + + /// + /// Battalion Name. type: String. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Battalion Name. type: String.")] + BattalionName = 14300, + + /// + /// Company Name. type: String. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Company Name. type: String.")] + CompanyName = 14400, + + /// + /// Platoon Name. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Platoon Name.")] + PlatoonName = 14500, + + /// + /// Squad Name. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Squad Name.")] + SquadName = 14520, + + /// + /// Team Name. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Team Name.")] + TeamName = 14540, + + /// + /// Bumper Number. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Bumper Number.")] + BumperNumber = 14600, + + /// + /// Vehicle Number. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Vehicle Number.")] + VehicleNumber = 14700, + + /// + /// Unit Number. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Unit Number.")] + UnitNumber = 14800, + + /// + /// DIS Identity. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DIS Identity.")] + DISIdentity = 15000, + + /// + /// DIS Site ID. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DIS Site ID.")] + DISSiteID = 15100, + + /// + /// DIS Host ID. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DIS Host ID.")] + DISHostID = 15200, + + /// + /// DIS Entity ID. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DIS Entity ID.")] + DISEntityID = 15300, + + /// + /// Mount Intent. type: Datum Specification Sub-record. length: 544. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mount Intent. type: Datum Specification Sub-record. length: 544.")] + MountIntent = 15400, + + /// + /// Tether-Unthether Command ID. type: Unsigned Integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tether-Unthether Command ID. type: Unsigned Integer. length: 32.")] + TetherUnthetherCommandID = 15500, + + /// + /// Teleport Entity Data Record. type: Variable record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Teleport Entity Data Record. type: Variable record.")] + TeleportEntityDataRecord = 15510, + + /// + /// DIS Aggregate ID (Set if communication to aggregate). type: Unsigned Integer. length: 32. range: Integer Aggregate ID. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DIS Aggregate ID (Set if communication to aggregate). type: Unsigned Integer. length: 32. range: Integer Aggregate ID.")] + DISAggregateIDSetIfCommunicationToAggregate = 15600, + + /// + /// Loads. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Loads.")] + Loads = 20000, + + /// + /// Crew Members. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Crew Members.")] + CrewMembers = 21000, + + /// + /// Crew Member ID. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Crew Member ID.")] + CrewMemberID = 21100, + + /// + /// Health. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Health.")] + Health = 21200, + + /// + /// Job Assignment. type: String. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Job Assignment. type: String.")] + JobAssignment = 21300, + + /// + /// Fuel. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuel.")] + Fuel = 23000, + + /// + /// Quantity. units: Liters. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Quantity. units: Liters.")] + Quantity = 23100, + + /// + /// Quantity. units: Gallons. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Quantity. units: Gallons.")] + Quantity_23105 = 23105, + + /// + /// Ammunition. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ammunition.")] + Ammunition = 24000, + + /// + /// 120-mm HEAT, quantity. units: Rounds. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("120-mm HEAT, quantity. units: Rounds.")] + _120MmHEATQuantity = 24001, + + /// + /// 120-mm SABOT, quantity. units: Rounds. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("120-mm SABOT, quantity. units: Rounds.")] + _120MmSABOTQuantity = 24002, + + /// + /// 12.7-mm M8, quantity. units: Rounds. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("12.7-mm M8, quantity. units: Rounds.")] + _127MmM8Quantity = 24003, + + /// + /// 12.7-mm M20, quantity. units: Rounds. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("12.7-mm M20, quantity. units: Rounds.")] + _127MmM20Quantity = 24004, + + /// + /// 7.62-mm M62, quantity. units: Rounds. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("7.62-mm M62, quantity. units: Rounds.")] + _762MmM62Quantity = 24005, + + /// + /// M250 UKL8A1, quantity. units: Grenades. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("M250 UKL8A1, quantity. units: Grenades.")] + M250UKL8A1Quantity = 24006, + + /// + /// M250 UKL8A3, quantity. units: Grenades. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("M250 UKL8A3, quantity. units: Grenades.")] + M250UKL8A3Quantity = 24007, + + /// + /// 7.62-mm M80, quantity. units: Rounds. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("7.62-mm M80, quantity. units: Rounds.")] + _762MmM80Quantity = 24008, + + /// + /// 12.7-mm, quantity. units: Rounds. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("12.7-mm, quantity. units: Rounds.")] + _127MmQuantity = 24009, + + /// + /// 7.62-mm, quantity. units: Rounds. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("7.62-mm, quantity. units: Rounds.")] + _762MmQuantity = 24010, + + /// + /// Mines, quantity. units: Mines. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mines, quantity. units: Mines.")] + MinesQuantity = 24060, + + /// + /// Type. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Type.")] + Type = 24100, + + /// + /// Kind. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Kind.")] + Kind_24110 = 24110, + + /// + /// Domain. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Domain.")] + Domain_24120 = 24120, + + /// + /// Country. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Country.")] + Country_24130 = 24130, + + /// + /// Category. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Category.")] + Category_24140 = 24140, + + /// + /// Subcategory. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Subcategory.")] + Subcategory_24150 = 24150, + + /// + /// Extra. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Extra.")] + Extra_24160 = 24160, + + /// + /// Description. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Description.")] + Description_24300 = 24300, + + /// + /// Cargo. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Cargo.")] + Cargo = 25000, + + /// + /// Vehicle Mass. type: Unsigned Integer. length: 32. units: Kilograms. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Vehicle Mass. type: Unsigned Integer. length: 32. units: Kilograms.")] + VehicleMass = 26000, + + /// + /// Supply Quantity. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Supply Quantity.")] + SupplyQuantity = 27000, + + /// + /// Armament. type: Boolean. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Armament. type: Boolean.")] + Armament = 28000, + + /// + /// Status. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Status.")] + Status = 30000, + + /// + /// Activate entity. type: Integer. length: 32. range: 0 Unspecified, 1 Activate platform. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Activate entity. type: Integer. length: 32. range: 0 Unspecified, 1 Activate platform.")] + ActivateEntity = 30010, + + /// + /// Subscription State. type: Enumeration. length: 8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Subscription State. type: Enumeration. length: 8.")] + SubscriptionState = 30100, + + /// + /// Round trip time delay. type: Unsigned Integer. length: 32 bits. units: milliseconds. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Round trip time delay. type: Unsigned Integer. length: 32 bits. units: milliseconds.")] + RoundTripTimeDelay = 30300, + + /// + /// TADIL J message count (label 0). type: Unsigned Integer. length: 32 bits. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TADIL J message count (label 0). type: Unsigned Integer. length: 32 bits.")] + TADILJMessageCountLabel0 = 30400, + + /// + /// TADIL J message count (label 1). type: Unsigned Integer. length: 32 bits. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TADIL J message count (label 1). type: Unsigned Integer. length: 32 bits.")] + TADILJMessageCountLabel1 = 30401, + + /// + /// TADIL J message count (label 2). type: Unsigned Integer. length: 32 bits. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TADIL J message count (label 2). type: Unsigned Integer. length: 32 bits.")] + TADILJMessageCountLabel2 = 30402, + + /// + /// TADIL J message count (label 3). type: Unsigned Integer. length: 32 bits. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TADIL J message count (label 3). type: Unsigned Integer. length: 32 bits.")] + TADILJMessageCountLabel3 = 30403, + + /// + /// TADIL J message count (label 4). type: Unsigned Integer. length: 32 bits. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TADIL J message count (label 4). type: Unsigned Integer. length: 32 bits.")] + TADILJMessageCountLabel4 = 30404, + + /// + /// TADIL J message count (label 5). type: Unsigned Integer. length: 32 bits. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TADIL J message count (label 5). type: Unsigned Integer. length: 32 bits.")] + TADILJMessageCountLabel5 = 30405, + + /// + /// TADIL J message count (label 6). type: Unsigned Integer. length: 32 bits. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TADIL J message count (label 6). type: Unsigned Integer. length: 32 bits.")] + TADILJMessageCountLabel6 = 30406, + + /// + /// TADIL J message count (label 7). type: Unsigned Integer. length: 32 bits. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TADIL J message count (label 7). type: Unsigned Integer. length: 32 bits.")] + TADILJMessageCountLabel7 = 30407, + + /// + /// TADIL J message count (label 8). type: Unsigned Integer. length: 32 bits. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TADIL J message count (label 8). type: Unsigned Integer. length: 32 bits.")] + TADILJMessageCountLabel8 = 30408, + + /// + /// TADIL J message count (label 9). type: Unsigned Integer. length: 32 bits. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TADIL J message count (label 9). type: Unsigned Integer. length: 32 bits.")] + TADILJMessageCountLabel9 = 30409, + + /// + /// TADIL J message count (label 10). type: Unsigned Integer. length: 32 bits. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TADIL J message count (label 10). type: Unsigned Integer. length: 32 bits.")] + TADILJMessageCountLabel10 = 30410, + + /// + /// TADIL J message count (label 11). type: Unsigned Integer. length: 32 bits. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TADIL J message count (label 11). type: Unsigned Integer. length: 32 bits.")] + TADILJMessageCountLabel11 = 30411, + + /// + /// TADIL J message count (label 12). type: Unsigned Integer. length: 32 bits. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TADIL J message count (label 12). type: Unsigned Integer. length: 32 bits.")] + TADILJMessageCountLabel12 = 30412, + + /// + /// TADIL J message count (label 13). type: Unsigned Integer. length: 32 bits. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TADIL J message count (label 13). type: Unsigned Integer. length: 32 bits.")] + TADILJMessageCountLabel13 = 30413, + + /// + /// TADIL J message count (label 14). type: Unsigned Integer. length: 32 bits. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TADIL J message count (label 14). type: Unsigned Integer. length: 32 bits.")] + TADILJMessageCountLabel14 = 30414, + + /// + /// TADIL J message count (label 15). type: Unsigned Integer. length: 32 bits. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TADIL J message count (label 15). type: Unsigned Integer. length: 32 bits.")] + TADILJMessageCountLabel15 = 30415, + + /// + /// TADIL J message count (label 16). type: Unsigned Integer. length: 32 bits. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TADIL J message count (label 16). type: Unsigned Integer. length: 32 bits.")] + TADILJMessageCountLabel16 = 30416, + + /// + /// TADIL J message count (label 17). type: Unsigned Integer. length: 32 bits. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TADIL J message count (label 17). type: Unsigned Integer. length: 32 bits.")] + TADILJMessageCountLabel17 = 30417, + + /// + /// TADIL J message count (label 18). type: Unsigned Integer. length: 32 bits. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TADIL J message count (label 18). type: Unsigned Integer. length: 32 bits.")] + TADILJMessageCountLabel18 = 30418, + + /// + /// TADIL J message count (label 19). type: Unsigned Integer. length: 32 bits. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TADIL J message count (label 19). type: Unsigned Integer. length: 32 bits.")] + TADILJMessageCountLabel19 = 30419, + + /// + /// TADIL J message count (label 20). type: Unsigned Integer. length: 32 bits. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TADIL J message count (label 20). type: Unsigned Integer. length: 32 bits.")] + TADILJMessageCountLabel20 = 30420, + + /// + /// TADIL J message count (label 21). type: Unsigned Integer. length: 32 bits. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TADIL J message count (label 21). type: Unsigned Integer. length: 32 bits.")] + TADILJMessageCountLabel21 = 30421, + + /// + /// TADIL J message count (label 22). type: Unsigned Integer. length: 32 bits. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TADIL J message count (label 22). type: Unsigned Integer. length: 32 bits.")] + TADILJMessageCountLabel22 = 30422, + + /// + /// TADIL J message count (label 23). type: Unsigned Integer. length: 32 bits. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TADIL J message count (label 23). type: Unsigned Integer. length: 32 bits.")] + TADILJMessageCountLabel23 = 30423, + + /// + /// TADIL J message count (label 24). type: Unsigned Integer. length: 32 bits. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TADIL J message count (label 24). type: Unsigned Integer. length: 32 bits.")] + TADILJMessageCountLabel24 = 30424, + + /// + /// TADIL J message count (label 25). type: Unsigned Integer. length: 32 bits. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TADIL J message count (label 25). type: Unsigned Integer. length: 32 bits.")] + TADILJMessageCountLabel25 = 30425, + + /// + /// TADIL J message count (label 26). type: Unsigned Integer. length: 32 bits. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TADIL J message count (label 26). type: Unsigned Integer. length: 32 bits.")] + TADILJMessageCountLabel26 = 30426, + + /// + /// TADIL J message count (label 27). type: Unsigned Integer. length: 32 bits. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TADIL J message count (label 27). type: Unsigned Integer. length: 32 bits.")] + TADILJMessageCountLabel27 = 30427, + + /// + /// TADIL J message count (label 28). type: Unsigned Integer. length: 32 bits. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TADIL J message count (label 28). type: Unsigned Integer. length: 32 bits.")] + TADILJMessageCountLabel28 = 30428, + + /// + /// TADIL J message count (label 29). type: Unsigned Integer. length: 32 bits. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TADIL J message count (label 29). type: Unsigned Integer. length: 32 bits.")] + TADILJMessageCountLabel29 = 30429, + + /// + /// TADIL J message count (label 30). type: Unsigned Integer. length: 32 bits. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TADIL J message count (label 30). type: Unsigned Integer. length: 32 bits.")] + TADILJMessageCountLabel30 = 30430, + + /// + /// TADIL J message count (label 31). type: Unsigned Integer. length: 32 bits. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TADIL J message count (label 31). type: Unsigned Integer. length: 32 bits.")] + TADILJMessageCountLabel31 = 30431, + + /// + /// Position. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Position.")] + Position = 31000, + + /// + /// Route (Waypoint) type. type: Integer. length: 32. range: 0 Default, 1 Orbit. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Route (Waypoint) type. type: Integer. length: 32. range: 0 Default, 1 Orbit.")] + RouteWaypointType = 31010, + + /// + /// MilGrid10. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("MilGrid10.")] + MilGrid10 = 31100, + + /// + /// Geocentric Coordinates. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Geocentric Coordinates.")] + GeocentricCoordinates = 31200, + + /// + /// X. type: Unsigned Integer. length: 32. units: Meters. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("X. type: Unsigned Integer. length: 32. units: Meters.")] + X = 31210, + + /// + /// Y. type: Unsigned Integer. length: 32. units: Meters. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Y. type: Unsigned Integer. length: 32. units: Meters.")] + Y = 31220, + + /// + /// Z. type: Unsigned Integer. length: 32. units: Meters. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Z. type: Unsigned Integer. length: 32. units: Meters.")] + Z = 31230, + + /// + /// Latitude. type: Unsigned Integer. length: 32. units: Degrees. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Latitude. type: Unsigned Integer. length: 32. units: Degrees.")] + Latitude = 31300, + + /// + /// Longitude. type: Unsigned Integer. length: 32. units: Degrees. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Longitude. type: Unsigned Integer. length: 32. units: Degrees.")] + Longitude = 31400, + + /// + /// Line of Sight. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Line of Sight.")] + LineOfSight = 31500, + + /// + /// X. type: Unsigned Integer. length: 32. units: meters. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("X. type: Unsigned Integer. length: 32. units: meters.")] + X_31510 = 31510, + + /// + /// Y. type: Unsigned Integer. length: 32. units: Meters. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Y. type: Unsigned Integer. length: 32. units: Meters.")] + Y_31520 = 31520, + + /// + /// Z. type: Unsigned Integer. length: 32. units: Meters. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Z. type: Unsigned Integer. length: 32. units: Meters.")] + Z_31530 = 31530, + + /// + /// Altitude. type: Integer. length: 32. units: Meters. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Altitude. type: Integer. length: 32. units: Meters.")] + Altitude = 31600, + + /// + /// Destination Latitude. type: Integer. length: 32. units: (10000th) Degrees. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Destination Latitude. type: Integer. length: 32. units: (10000th) Degrees.")] + DestinationLatitude = 31700, + + /// + /// Destination Longitude. type: Integer. length: 32. units: (10000th) Degrees. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Destination Longitude. type: Integer. length: 32. units: (10000th) Degrees.")] + DestinationLongitude = 31800, + + /// + /// Destination Altitude. type: Integer. length: 32. units: Meters. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Destination Altitude. type: Integer. length: 32. units: Meters.")] + DestinationAltitude = 31900, + + /// + /// Orientation. type: Variable Datum. length: 96. units: Radians. range: 3-32bit Floating Point. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Orientation. type: Variable Datum. length: 96. units: Radians. range: 3-32bit Floating Point.")] + Orientation = 32000, + + /// + /// Hull Heading Angle. type: Unsigned Integer. length: 32. units: Degrees. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Hull Heading Angle. type: Unsigned Integer. length: 32. units: Degrees.")] + HullHeadingAngle = 32100, + + /// + /// Hull Pitch Angle. type: Unsigned Integer. length: 32. units: Degrees. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Hull Pitch Angle. type: Unsigned Integer. length: 32. units: Degrees.")] + HullPitchAngle = 32200, + + /// + /// Roll Angle. type: Unsigned Integer. length: 32. units: Degrees. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Roll Angle. type: Unsigned Integer. length: 32. units: Degrees.")] + RollAngle = 32300, + + /// + /// X. type: Unsigned Integer. length: 32. units: Degrees. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("X. type: Unsigned Integer. length: 32. units: Degrees.")] + X_32500 = 32500, + + /// + /// Y. type: Unsigned Integer. length: 32. units: Degrees. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Y. type: Unsigned Integer. length: 32. units: Degrees.")] + Y_32600 = 32600, + + /// + /// Z. type: Unsigned Integer. length: 32. units: Degrees. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Z. type: Unsigned Integer. length: 32. units: Degrees.")] + Z_32700 = 32700, + + /// + /// Appearance. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Appearance.")] + Appearance = 33000, + + /// + /// Ambient Lighting. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ambient Lighting.")] + AmbientLighting = 33100, + + /// + /// Lights. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Lights.")] + Lights = 33101, + + /// + /// Paint Scheme. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Paint Scheme.")] + PaintScheme = 33200, + + /// + /// Smoke. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Smoke.")] + Smoke = 33300, + + /// + /// Trailing Effects. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Trailing Effects.")] + TrailingEffects = 33400, + + /// + /// Flaming. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Flaming.")] + Flaming = 33500, + + /// + /// Marking. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Marking.")] + Marking = 33600, + + /// + /// Mine Plows Attached. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mine Plows Attached.")] + MinePlowsAttached = 33710, + + /// + /// Mine Rollers Attached. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mine Rollers Attached.")] + MineRollersAttached = 33720, + + /// + /// Tank Turret Azimuth. units: Degrees Rel 2 lon. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tank Turret Azimuth. units: Degrees Rel 2 lon.")] + TankTurretAzimuth = 33730, + + /// + /// Failures and Malfunctions. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Failures and Malfunctions.")] + FailuresAndMalfunctions = 34000, + + /// + /// Age. units: Miles. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Age. units: Miles.")] + Age = 34100, + + /// + /// Kilometers. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Kilometers.")] + Kilometers = 34110, + + /// + /// Damage. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Damage.")] + Damage = 35000, + + /// + /// Cause. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Cause.")] + Cause = 35050, + + /// + /// Mobility Kill. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mobility Kill.")] + MobilityKill = 35100, + + /// + /// Fire-Power Kill. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fire-Power Kill.")] + FirePowerKill = 35200, + + /// + /// Personnel Casualties. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Personnel Casualties.")] + PersonnelCasualties = 35300, + + /// + /// Velocity. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Velocity.")] + Velocity = 36000, + + /// + /// X-velocity. units: Meters/second. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("X-velocity. units: Meters/second.")] + XVelocity = 36100, + + /// + /// Y-velocity. units: Meters/second. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Y-velocity. units: Meters/second.")] + YVelocity = 36200, + + /// + /// Z-velocity. units: Meters/second. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Z-velocity. units: Meters/second.")] + ZVelocity = 36300, + + /// + /// Speed. type: Floating Point. length: 32. units: Meters/second. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Speed. type: Floating Point. length: 32. units: Meters/second.")] + Speed = 36400, + + /// + /// Acceleration. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Acceleration.")] + Acceleration = 37000, + + /// + /// X-acceleration. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("X-acceleration.")] + XAcceleration = 37100, + + /// + /// Y-acceleration. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Y-acceleration.")] + YAcceleration = 37200, + + /// + /// Z-acceleration. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Z-acceleration.")] + ZAcceleration = 37300, + + /// + /// Engine Status. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Engine Status.")] + EngineStatus = 38100, + + /// + /// Primary Target Line (PTL). type: Unsigned Integer. length: 32. units: Degrees. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Primary Target Line (PTL). type: Unsigned Integer. length: 32. units: Degrees.")] + PrimaryTargetLinePTL = 39000, + + /// + /// Exercise. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Exercise.")] + Exercise = 40000, + + /// + /// Exercise State. type: Variable Record. length: 64. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Exercise State. type: Variable Record. length: 64.")] + ExerciseState = 40010, + + /// + /// Restart/Refresh. type: Unsigned Integer. length: 32. range: 0 Undefined, 1 Restart. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Restart/Refresh. type: Unsigned Integer. length: 32. range: 0 Undefined, 1 Restart.")] + RestartRefresh = 40015, + + /// + /// AFATDS File Name. type: Variable Record. range: 1..40 ASCII Characters. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AFATDS File Name. type: Variable Record. range: 1..40 ASCII Characters.")] + AFATDSFileName = 40020, + + /// + /// Terrain Database. type: Unsigned Integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Terrain Database. type: Unsigned Integer. length: 32.")] + TerrainDatabase = 41000, + + /// + /// 41001. type: 41001. length: 41001. units: 41001. range: 41001. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("41001. type: 41001. length: 41001. units: 41001. range: 41001.")] + _41001 = 41001, + + /// + /// Missions. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Missions.")] + Missions = 42000, + + /// + /// Mission ID. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mission ID.")] + MissionID = 42100, + + /// + /// Mission Type. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mission Type.")] + MissionType = 42200, + + /// + /// Mission Request Time Stamp. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mission Request Time Stamp.")] + MissionRequestTimeStamp = 42300, + + /// + /// Exercise Description. type: String. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Exercise Description. type: String.")] + ExerciseDescription = 43000, + + /// + /// Name. type: String. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Name. type: String.")] + Name = 43100, + + /// + /// Entities. type: Integer. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Entities. type: Integer.")] + Entities = 43200, + + /// + /// Version. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Version.")] + Version = 43300, + + /// + /// Guise Mode. type: Unsigned Integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Guise Mode. type: Unsigned Integer. length: 32.")] + GuiseMode = 43410, + + /// + /// Simulation Application Active Status. type: Unsigned Integer. length: 16. range: 0 Backup, 1 Primary. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Simulation Application Active Status. type: Unsigned Integer. length: 16. range: 0 Backup, 1 Primary.")] + SimulationApplicationActiveStatus = 43420, + + /// + /// Simulation Application Role Record. type: Variable Record. length: 64. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Simulation Application Role Record. type: Variable Record. length: 64.")] + SimulationApplicationRoleRecord = 43430, + + /// + /// Simulation Application State. type: Variable Record. length: 64. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Simulation Application State. type: Variable Record. length: 64.")] + SimulationApplicationState = 43440, + + /// + /// Visual Output Mode. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Visual Output Mode.")] + VisualOutputMode = 44000, + + /// + /// Simulation Manager Role. type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Simulation Manager Role. type: Variable Record.")] + SimulationManagerRole = 44100, + + /// + /// Simulation Manager Site ID. type: Unsigned Integer. length: 16. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Simulation Manager Site ID. type: Unsigned Integer. length: 16.")] + SimulationManagerSiteID = 44110, + + /// + /// Simulation Manager Applic. ID. type: Unsigned Integer. length: 16. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Simulation Manager Applic. ID. type: Unsigned Integer. length: 16.")] + SimulationManagerApplicID = 44120, + + /// + /// Simulation Manager Entity ID. type: Unsigned Integer. length: 16. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Simulation Manager Entity ID. type: Unsigned Integer. length: 16.")] + SimulationManagerEntityID = 44130, + + /// + /// Simulation Manager Active Status. type: Unsigned Integer. length: 16. range: 0 Backup, 1 Primary. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Simulation Manager Active Status. type: Unsigned Integer. length: 16. range: 0 Backup, 1 Primary.")] + SimulationManagerActiveStatus = 44140, + + /// + /// After Active Review Role. type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("After Active Review Role. type: Variable Record.")] + AfterActiveReviewRole = 44200, + + /// + /// After Active Review Site ID. type: Unsigned Integer. length: 16. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("After Active Review Site ID. type: Unsigned Integer. length: 16.")] + AfterActiveReviewSiteID = 44210, + + /// + /// After Active Applic. ID. type: Unsigned Integer. length: 16. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("After Active Applic. ID. type: Unsigned Integer. length: 16.")] + AfterActiveApplicID = 44220, + + /// + /// After Active Review Entity ID. type: Unsigned Integer. length: 16. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("After Active Review Entity ID. type: Unsigned Integer. length: 16.")] + AfterActiveReviewEntityID = 44230, + + /// + /// After Active Review Active Status. type: Unsigned Integer. length: 16. range: 0 Backup, 1 Primary. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("After Active Review Active Status. type: Unsigned Integer. length: 16. range: 0 Backup, 1 Primary.")] + AfterActiveReviewActiveStatus = 44240, + + /// + /// Exercise Logger Role. type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Exercise Logger Role. type: Variable Record.")] + ExerciseLoggerRole = 44300, + + /// + /// Exercise Logger Site ID. type: Unsigned Integer. length: 16. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Exercise Logger Site ID. type: Unsigned Integer. length: 16.")] + ExerciseLoggerSiteID = 44310, + + /// + /// Exercise Logger Applic. ID. type: Unsigned Integer. length: 16. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Exercise Logger Applic. ID. type: Unsigned Integer. length: 16.")] + ExerciseLoggerApplicID = 44320, + + /// + /// Exercise Entity ID. type: Unsigned Integer. length: 16. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Exercise Entity ID. type: Unsigned Integer. length: 16.")] + ExerciseEntityID = 44330, + + /// + /// Exercise Logger Active Status. type: Unsigned Integer. length: 16. range: 0 Backup, 1 Primary. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Exercise Logger Active Status. type: Unsigned Integer. length: 16. range: 0 Backup, 1 Primary.")] + ExerciseLoggerActiveStatus = 44340, + + /// + /// Synthetic Environment Manager Role. type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Synthetic Environment Manager Role. type: Variable Record.")] + SyntheticEnvironmentManagerRole = 44400, + + /// + /// Synthetic Environment Manager Site ID. type: Unsigned Integer. length: 16. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Synthetic Environment Manager Site ID. type: Unsigned Integer. length: 16.")] + SyntheticEnvironmentManagerSiteID = 44410, + + /// + /// Synthetic Environment Manager Applic. ID. type: Unsigned Integer. length: 16. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Synthetic Environment Manager Applic. ID. type: Unsigned Integer. length: 16.")] + SyntheticEnvironmentManagerApplicID = 44420, + + /// + /// Synthetic Environment Manager Entity ID. type: Unsigned Integer. length: 16. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Synthetic Environment Manager Entity ID. type: Unsigned Integer. length: 16.")] + SyntheticEnvironmentManagerEntityID = 44430, + + /// + /// Synthetic Environment Manager Active Status. type: Unsigned Integer. length: 16. range: 0 Backup, 1 Primary. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Synthetic Environment Manager Active Status. type: Unsigned Integer. length: 16. range: 0 Backup, 1 Primary.")] + SyntheticEnvironmentManagerActiveStatus = 44440, + + /// + /// SIMNET-DIS Translator Role. type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SIMNET-DIS Translator Role. type: Variable Record.")] + SIMNETDISTranslatorRole = 44500, + + /// + /// SIMNET-DIS Translator Site ID. type: Unsigned Integer. length: 16. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SIMNET-DIS Translator Site ID. type: Unsigned Integer. length: 16.")] + SIMNETDISTranslatorSiteID = 44510, + + /// + /// SIMNET-DIS Translator Applic. ID. type: Unsigned Integer. length: 16. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SIMNET-DIS Translator Applic. ID. type: Unsigned Integer. length: 16.")] + SIMNETDISTranslatorApplicID = 44520, + + /// + /// SIMNET-DIS Translator Entity ID. type: Unsigned Integer. length: 16. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SIMNET-DIS Translator Entity ID. type: Unsigned Integer. length: 16.")] + SIMNETDISTranslatorEntityID = 44530, + + /// + /// SIMNET-DIS Translator Active Status. type: Unsigned Integer. length: 16. range: 0 Backup, 1 Primary. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SIMNET-DIS Translator Active Status. type: Unsigned Integer. length: 16. range: 0 Backup, 1 Primary.")] + SIMNETDISTranslatorActiveStatus = 44540, + + /// + /// Application Rate. type: Floating point. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Application Rate. type: Floating point. length: 32.")] + ApplicationRate = 45000, + + /// + /// Application Time. type: Clock Time Record. length: 64. range: See IEEE Std1278.1-1995 section 5.2.8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Application Time. type: Clock Time Record. length: 64. range: See IEEE Std1278.1-1995 section 5.2.8.")] + ApplicationTime = 45005, + + /// + /// Application Timestep. type: Timestamp. length: 32. range: See IEEE Std 1278.1-1995 section 5.2.31. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Application Timestep. type: Timestamp. length: 32. range: See IEEE Std 1278.1-1995 section 5.2.31.")] + ApplicationTimestep = 45010, + + /// + /// Feedback Time. type: Timestamp. length: 32. range: See IEEE Std 1278.1-1995 section 5.2.31. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Feedback Time. type: Timestamp. length: 32. range: See IEEE Std 1278.1-1995 section 5.2.31.")] + FeedbackTime = 45020, + + /// + /// Simulation Rate. type: Floating Point. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Simulation Rate. type: Floating Point. length: 32.")] + SimulationRate = 45030, + + /// + /// Simulation Time. type: Clock Time Record. length: 64. range: See IEEE Std 1278.1-1995 section 5.2.8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Simulation Time. type: Clock Time Record. length: 64. range: See IEEE Std 1278.1-1995 section 5.2.8.")] + SimulationTime = 45040, + + /// + /// Simulation Timestep. type: Timestamp. length: 32. range: See IEEE Std 1278.1-1995 section 5.2.31. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Simulation Timestep. type: Timestamp. length: 32. range: See IEEE Std 1278.1-1995 section 5.2.31.")] + SimulationTimestep = 45050, + + /// + /// Time Interval. type: Timestamp. length: 32. range: See IEEE Std 1278.1-1995 section 5.2.31. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Time Interval. type: Timestamp. length: 32. range: See IEEE Std 1278.1-1995 section 5.2.31.")] + TimeInterval = 45060, + + /// + /// Time Latency. type: Timestamp. length: 32. range: See IEEE Std 1278.1-1995 section 5.2.31. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Time Latency. type: Timestamp. length: 32. range: See IEEE Std 1278.1-1995 section 5.2.31.")] + TimeLatency = 45070, + + /// + /// Time Scheme. type: Unsigned Integer. length: 32. range: 1 Real time, 2 Scaled time, 3 Scaled and stepped time. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Time Scheme. type: Unsigned Integer. length: 32. range: 1 Real time, 2 Scaled time, 3 Scaled and stepped time.")] + TimeScheme = 45080, + + /// + /// Exercise Elapsed Time. type: Unsigned integer. length: 32. units: Seconds. range: Time since exercise started (takes into account exercise pauses and scaled exercise time). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Exercise Elapsed Time. type: Unsigned integer. length: 32. units: Seconds. range: Time since exercise started (takes into account exercise pauses and scaled exercise time).")] + ExerciseElapsedTime = 46000, + + /// + /// Elapsed Time. type: Unsigned integer. length: 32. units: Seconds. range: Time since exercise started (real time, does not take into account exercise pauses and scaled exercise time). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Elapsed Time. type: Unsigned integer. length: 32. units: Seconds. range: Time since exercise started (real time, does not take into account exercise pauses and scaled exercise time).")] + ElapsedTime = 46010, + + /// + /// Environment. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Environment.")] + Environment = 50000, + + /// + /// Weather. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Weather.")] + Weather = 51000, + + /// + /// Weather Condition. type: Unsigned Integer. length: 32. units: N/A. range: 0 = Clear, 1 = Cloudy, 2 = Overcast, 3 = Foggy, 4 = Raining. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Weather Condition. type: Unsigned Integer. length: 32. units: N/A. range: 0 = Clear, 1 = Cloudy, 2 = Overcast, 3 = Foggy, 4 = Raining.")] + WeatherCondition = 51010, + + /// + /// Thermal Condition. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Thermal Condition.")] + ThermalCondition = 51100, + + /// + /// Thermal Visibility. type: Floating Point. length: 32. units: Meters. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Thermal Visibility. type: Floating Point. length: 32. units: Meters.")] + ThermalVisibility = 51110, + + /// + /// Thermal Visibility. type: Unsigned integer. length: 32. units: Meters. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Thermal Visibility. type: Unsigned integer. length: 32. units: Meters.")] + ThermalVisibility_51111 = 51111, + + /// + /// Time. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Time.")] + Time = 52000, + + /// + /// Time. type: String. length: 56. range: Format HHMMSS. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Time. type: String. length: 56. range: Format HHMMSS.")] + Time_52001 = 52001, + + /// + /// Time of Day, Discrete. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Time of Day, Discrete.")] + TimeOfDayDiscrete = 52100, + + /// + /// Time of Day, Continuous. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Time of Day, Continuous.")] + TimeOfDayContinuous = 52200, + + /// + /// Time Mode. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Time Mode.")] + TimeMode = 52300, + + /// + /// Time Scene. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Time Scene.")] + TimeScene = 52305, + + /// + /// Current Hour. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Current Hour.")] + CurrentHour = 52310, + + /// + /// Current Minute. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Current Minute.")] + CurrentMinute = 52320, + + /// + /// Current Second. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Current Second.")] + CurrentSecond = 52330, + + /// + /// Azimuth. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Azimuth.")] + Azimuth = 52340, + + /// + /// Maximum Elevation. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Maximum Elevation.")] + MaximumElevation = 52350, + + /// + /// Time Zone. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Time Zone.")] + TimeZone = 52360, + + /// + /// Time Rate. type: Integer. length: 32. range: 1000 * Ratio (Simulation Time / Wall Clock Time). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Time Rate. type: Integer. length: 32. range: 1000 * Ratio (Simulation Time / Wall Clock Time).")] + TimeRate = 52370, + + /// + /// The number of simulation seconds since the start of the exercise (simulation time). type: Integer. length: 32. units: Seconds. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("The number of simulation seconds since the start of the exercise (simulation time). type: Integer. length: 32. units: Seconds.")] + TheNumberOfSimulationSecondsSinceTheStartOfTheExerciseSimulationTime = 52380, + + /// + /// Time Sunrise Enabled. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Time Sunrise Enabled.")] + TimeSunriseEnabled = 52400, + + /// + /// Sunrise Hour. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sunrise Hour.")] + SunriseHour = 52410, + + /// + /// Sunrise Minute. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sunrise Minute.")] + SunriseMinute = 52420, + + /// + /// Sunrise Second. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sunrise Second.")] + SunriseSecond = 52430, + + /// + /// Sunrise Azimuth. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sunrise Azimuth.")] + SunriseAzimuth = 52440, + + /// + /// Time Sunset Enabled. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Time Sunset Enabled.")] + TimeSunsetEnabled = 52500, + + /// + /// Sunset Hour. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sunset Hour.")] + SunsetHour = 52510, + + /// + /// Sunset Hour. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sunset Hour.")] + SunsetHour_52511 = 52511, + + /// + /// Sunset Minute. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sunset Minute.")] + SunsetMinute = 52520, + + /// + /// Sunset Second. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sunset Second.")] + SunsetSecond = 52530, + + /// + /// 52531. type: 52531. length: 52531. units: 52531. range: 52531. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("52531. type: 52531. length: 52531. units: 52531. range: 52531.")] + _52531 = 52531, + + /// + /// Date. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Date.")] + Date = 52600, + + /// + /// Date (European). type: String. length: 72. range: Format DDMMYYYY. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Date (European). type: String. length: 72. range: Format DDMMYYYY.")] + DateEuropean = 52601, + + /// + /// Date (US). type: String. length: 72. range: Format MMDDYYYY. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Date (US). type: String. length: 72. range: Format MMDDYYYY.")] + DateUS = 52602, + + /// + /// Month. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Month.")] + Month = 52610, + + /// + /// Day. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Day.")] + Day = 52620, + + /// + /// Year. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Year.")] + Year = 52630, + + /// + /// Clouds. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Clouds.")] + Clouds = 53000, + + /// + /// Cloud Layer Enable. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Cloud Layer Enable.")] + CloudLayerEnable = 53050, + + /// + /// Cloud Layer Selection. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Cloud Layer Selection.")] + CloudLayerSelection = 53060, + + /// + /// Visibility. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Visibility.")] + Visibility = 53100, + + /// + /// Base Altitude. type: Unsigned Integer. length: 32. units: Meters. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Base Altitude. type: Unsigned Integer. length: 32. units: Meters.")] + BaseAltitude = 53200, + + /// + /// Base Altitude. units: Feet. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Base Altitude. units: Feet.")] + BaseAltitude_53250 = 53250, + + /// + /// Ceiling. type: Unsigned Integer. length: 32. units: Meters. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ceiling. type: Unsigned Integer. length: 32. units: Meters.")] + Ceiling = 53300, + + /// + /// Ceiling. units: Feet. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ceiling. units: Feet.")] + Ceiling_53350 = 53350, + + /// + /// Characteristics. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Characteristics.")] + Characteristics = 53400, + + /// + /// Concentration Length. type: Floating Point. length: 32. units: milligrams/meterCaret2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Concentration Length. type: Floating Point. length: 32. units: milligrams/meterCaret2.")] + ConcentrationLength = 53410, + + /// + /// Transmittance. type: Floating Point. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Transmittance. type: Floating Point. length: 32.")] + Transmittance = 53420, + + /// + /// Radiance. type: Floating Point. length: 32. units: microwatts/ centimeterCaret2/ steradian. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Radiance. type: Floating Point. length: 32. units: microwatts/ centimeterCaret2/ steradian.")] + Radiance = 53430, + + /// + /// Precipitation. type: Boolean. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Precipitation. type: Boolean. length: 32.")] + Precipitation = 54000, + + /// + /// Rain. type: Boolean. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Rain. type: Boolean.")] + Rain = 54100, + + /// + /// Fog. type: Boolean. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fog. type: Boolean.")] + Fog = 55000, + + /// + /// Visibility. units: Meters. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Visibility. units: Meters.")] + Visibility_55100 = 55100, + + /// + /// Visibility. type: Unsigned integer. length: 32. units: Meters. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Visibility. type: Unsigned integer. length: 32. units: Meters.")] + Visibility_55101 = 55101, + + /// + /// Visibility. units: Miles. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Visibility. units: Miles.")] + Visibility_55105 = 55105, + + /// + /// Density. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Density.")] + Density = 55200, + + /// + /// Base. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Base.")] + Base = 55300, + + /// + /// View Layer from above. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("View Layer from above.")] + ViewLayerFromAbove = 55401, + + /// + /// Transition Range. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Transition Range.")] + TransitionRange = 55410, + + /// + /// Bottom. units: Meters. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Bottom. units: Meters.")] + Bottom = 55420, + + /// + /// Bottom. units: Feet. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Bottom. units: Feet.")] + Bottom_55425 = 55425, + + /// + /// Ceiling. units: Meters. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ceiling. units: Meters.")] + Ceiling_55430 = 55430, + + /// + /// Ceiling. units: Feet. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ceiling. units: Feet.")] + Ceiling_55435 = 55435, + + /// + /// Heavenly Bodies. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Heavenly Bodies.")] + HeavenlyBodies = 56000, + + /// + /// Sun. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sun.")] + Sun = 56100, + + /// + /// Sun Visible. type: Unsigned integer. length: 32. units: N/A. range: 0 Not visible, 1 Visible. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sun Visible. type: Unsigned integer. length: 32. units: N/A. range: 0 Not visible, 1 Visible.")] + SunVisible = 56105, + + /// + /// Position. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Position.")] + Position_56110 = 56110, + + /// + /// Sun Position Elevation, Degrees. type: Floating Point. length: 32. units: Degrees. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sun Position Elevation, Degrees. type: Floating Point. length: 32. units: Degrees.")] + SunPositionElevationDegrees = 56111, + + /// + /// Position Azimuth. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Position Azimuth.")] + PositionAzimuth = 56120, + + /// + /// Sun Position Azimuth, Degrees. type: Floating Point. length: 32. units: Degrees. range: Relative to True North. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sun Position Azimuth, Degrees. type: Floating Point. length: 32. units: Degrees. range: Relative to True North.")] + SunPositionAzimuthDegrees = 56121, + + /// + /// Position Elevation. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Position Elevation.")] + PositionElevation = 56130, + + /// + /// Position Intensity. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Position Intensity.")] + PositionIntensity = 56140, + + /// + /// Moon. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Moon.")] + Moon = 56200, + + /// + /// Moon Visible. type: Unsigned integer. length: 32. units: N/A. range: 0 Not visible, 1 Visible. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Moon Visible. type: Unsigned integer. length: 32. units: N/A. range: 0 Not visible, 1 Visible.")] + MoonVisible = 56205, + + /// + /// Position. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Position.")] + Position_56210 = 56210, + + /// + /// Position Azimuth. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Position Azimuth.")] + PositionAzimuth_56220 = 56220, + + /// + /// Moon Position Azimuth, Degrees. type: Floating Point. length: 32. units: Degrees. range: Relative to True North. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Moon Position Azimuth, Degrees. type: Floating Point. length: 32. units: Degrees. range: Relative to True North.")] + MoonPositionAzimuthDegrees = 56221, + + /// + /// Position Elevation. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Position Elevation.")] + PositionElevation_56230 = 56230, + + /// + /// Moon Position Elevation, Degrees. type: Floating Point. length: 32. units: Degrees. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Moon Position Elevation, Degrees. type: Floating Point. length: 32. units: Degrees.")] + MoonPositionElevationDegrees = 56231, + + /// + /// Position Intensity. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Position Intensity.")] + PositionIntensity_56240 = 56240, + + /// + /// Horizon. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Horizon.")] + Horizon = 56310, + + /// + /// Horizon Azimuth. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Horizon Azimuth.")] + HorizonAzimuth = 56320, + + /// + /// Horizon Elevation. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Horizon Elevation.")] + HorizonElevation = 56330, + + /// + /// Horizon Heading. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Horizon Heading.")] + HorizonHeading = 56340, + + /// + /// Horizon Intensity. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Horizon Intensity.")] + HorizonIntensity = 56350, + + /// + /// Humidity. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Humidity.")] + Humidity = 57200, + + /// + /// Visibility. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Visibility.")] + Visibility_57300 = 57300, + + /// + /// Winds. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Winds.")] + Winds = 57400, + + /// + /// Speed. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Speed.")] + Speed_57410 = 57410, + + /// + /// Wind Speed, Knots. type: Floating Point. length: 32. units: Knots. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Wind Speed, Knots. type: Floating Point. length: 32. units: Knots.")] + WindSpeedKnots = 57411, + + /// + /// Wind Direction. type: Floating Point. length: 32. units: Radians. range: Relative to True North. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Wind Direction. type: Floating Point. length: 32. units: Radians. range: Relative to True North.")] + WindDirection = 57420, + + /// + /// Wind Direction, Degrees. type: Floating Point. length: 32. units: Degrees. range: Relative to True North. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Wind Direction, Degrees. type: Floating Point. length: 32. units: Degrees. range: Relative to True North.")] + WindDirectionDegrees = 57421, + + /// + /// Rainsoak. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Rainsoak.")] + Rainsoak = 57500, + + /// + /// Tide Speed. type: Floating Point. length: 32. units: Meters/second. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tide Speed. type: Floating Point. length: 32. units: Meters/second.")] + TideSpeed = 57610, + + /// + /// Tide Speed, Knots. type: Floating Point. length: 32. units: Knots. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tide Speed, Knots. type: Floating Point. length: 32. units: Knots.")] + TideSpeedKnots = 57611, + + /// + /// Tide Direction. type: Floating Point. length: 32. units: Radians. range: Relative to True North. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tide Direction. type: Floating Point. length: 32. units: Radians. range: Relative to True North.")] + TideDirection = 57620, + + /// + /// Tide Direction, Degrees. type: Floating Point. length: 32. units: Degrees. range: Relative to True North. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tide Direction, Degrees. type: Floating Point. length: 32. units: Degrees. range: Relative to True North.")] + TideDirectionDegrees = 57621, + + /// + /// Haze. type: Boolean. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Haze. type: Boolean.")] + Haze = 58000, + + /// + /// Visibility. units: Meters. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Visibility. units: Meters.")] + Visibility_58100 = 58100, + + /// + /// Visibility. units: Miles. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Visibility. units: Miles.")] + Visibility_58105 = 58105, + + /// + /// Density. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Density.")] + Density_58200 = 58200, + + /// + /// Ceiling. units: Meters. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ceiling. units: Meters.")] + Ceiling_58430 = 58430, + + /// + /// Ceiling. units: Feet. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ceiling. units: Feet.")] + Ceiling_58435 = 58435, + + /// + /// Contaminants and Obscurants. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Contaminants and Obscurants.")] + ContaminantsAndObscurants = 59000, + + /// + /// Contaminant/Obscurant Type. type: Unsigned Integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Contaminant/Obscurant Type. type: Unsigned Integer. length: 32.")] + ContaminantObscurantType = 59100, + + /// + /// Persistence. type: Enumeration. length: 8. range: 0 Neat, 1 Dry, 2 Thickened. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Persistence. type: Enumeration. length: 8. range: 0 Neat, 1 Dry, 2 Thickened.")] + Persistence = 59110, + + /// + /// Chemical Dosage. type: Floating Point. length: 32. units: milligrams/meter?/minute. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Chemical Dosage. type: Floating Point. length: 32. units: milligrams/meter?/minute.")] + ChemicalDosage = 59115, + + /// + /// Chemical Air Concentration. type: Floating Point. length: 32. units: milligrams/meter?. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Chemical Air Concentration. type: Floating Point. length: 32. units: milligrams/meter?.")] + ChemicalAirConcentration = 59120, + + /// + /// Chemical Ground Deposition. type: Floating Point. length: 32. units: milligrams/meterCaret2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Chemical Ground Deposition. type: Floating Point. length: 32. units: milligrams/meterCaret2.")] + ChemicalGroundDeposition = 59125, + + /// + /// Chemical Maximum Ground Deposition. type: Floating Point. length: 32. units: milligrams/meterCaret2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Chemical Maximum Ground Deposition. type: Floating Point. length: 32. units: milligrams/meterCaret2.")] + ChemicalMaximumGroundDeposition = 59130, + + /// + /// Chemical Dosage Threshold. type: Floating Point. length: 32. units: milligram/meter?/minute. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Chemical Dosage Threshold. type: Floating Point. length: 32. units: milligram/meter?/minute.")] + ChemicalDosageThreshold = 59135, + + /// + /// Biological Dosage. type: Floating Point. length: 32. units: particles/liter of air/minute. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Biological Dosage. type: Floating Point. length: 32. units: particles/liter of air/minute.")] + BiologicalDosage = 59140, + + /// + /// Biological Air Concentration. type: Floating Point. length: 32. units: particles/liter of air. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Biological Air Concentration. type: Floating Point. length: 32. units: particles/liter of air.")] + BiologicalAirConcentration = 59145, + + /// + /// Biological Dosage Threshold. type: Floating Point. length: 32. units: particles/liter of air/minute. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Biological Dosage Threshold. type: Floating Point. length: 32. units: particles/liter of air/minute.")] + BiologicalDosageThreshold = 59150, + + /// + /// Biological Binned Particle Count. type: Enumeration. length: 8. range: 1 Low (.5-2), 2 Detection (2-.10), 3 High (10-15). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Biological Binned Particle Count. type: Enumeration. length: 8. range: 1 Low (.5-2), 2 Detection (2-.10), 3 High (10-15).")] + BiologicalBinnedParticleCount = 59155, + + /// + /// Radiological Dosage. type: Floating Point. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Radiological Dosage. type: Floating Point. length: 32.")] + RadiologicalDosage = 59160, + + /// + /// Communications. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Communications.")] + Communications = 60000, + + /// + /// Channel Type. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Channel Type.")] + ChannelType = 61100, + + /// + /// Channel Type. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Channel Type.")] + ChannelType_61101 = 61101, + + /// + /// Channel Identification. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Channel Identification.")] + ChannelIdentification = 61200, + + /// + /// Alpha Identification. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Alpha Identification.")] + AlphaIdentification = 61300, + + /// + /// 61301. type: 61301. length: 61301. units: 61301. range: 61301. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("61301. type: 61301. length: 61301. units: 61301. range: 61301.")] + _61301 = 61301, + + /// + /// Radio Identification. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Radio Identification.")] + RadioIdentification = 61400, + + /// + /// 61401. type: 61401. length: 61401. units: 61401. range: 61401. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("61401. type: 61401. length: 61401. units: 61401. range: 61401.")] + _61401 = 61401, + + /// + /// Land Line Identification. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Land Line Identification.")] + LandLineIdentification = 61500, + + /// + /// Intercom Identification. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Intercom Identification.")] + IntercomIdentification = 61600, + + /// + /// Group Network Channel Number. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Group Network Channel Number.")] + GroupNetworkChannelNumber = 61700, + + /// + /// Radio Communications Status. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Radio Communications Status.")] + RadioCommunicationsStatus = 62100, + + /// + /// Stationary Radio Transmitters Default Time. type: Unsigned Integer. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Stationary Radio Transmitters Default Time. type: Unsigned Integer.")] + StationaryRadioTransmittersDefaultTime = 62200, + + /// + /// Moving Radio Transmitters Default Time. type: Unsigned Integer. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Moving Radio Transmitters Default Time. type: Unsigned Integer.")] + MovingRadioTransmittersDefaultTime = 62300, + + /// + /// Stationary Radio Signals Default Time. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Stationary Radio Signals Default Time.")] + StationaryRadioSignalsDefaultTime = 62400, + + /// + /// Moving Radio Signal Default Time. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Moving Radio Signal Default Time.")] + MovingRadioSignalDefaultTime = 62500, + + /// + /// Radio Initialization Transec Security Key. type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Radio Initialization Transec Security Key. type: Variable Record.")] + RadioInitializationTransecSecurityKey = 63101, + + /// + /// Radio Initialization Internal Noise Level. type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Radio Initialization Internal Noise Level. type: Variable Record.")] + RadioInitializationInternalNoiseLevel = 63102, + + /// + /// Radio Initialization Squelch Threshold. type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Radio Initialization Squelch Threshold. type: Variable Record.")] + RadioInitializationSquelchThreshold = 63103, + + /// + /// Radio Initialization Antenna Location. type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Radio Initialization Antenna Location. type: Variable Record.")] + RadioInitializationAntennaLocation = 63104, + + /// + /// Radio Initialization Antenna Pattern Type. type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Radio Initialization Antenna Pattern Type. type: Variable Record.")] + RadioInitializationAntennaPatternType = 63105, + + /// + /// Radio Initialization Antenna Pattern Length. type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Radio Initialization Antenna Pattern Length. type: Variable Record.")] + RadioInitializationAntennaPatternLength = 63106, + + /// + /// Radio Initialization Beam Definition. type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Radio Initialization Beam Definition. type: Variable Record.")] + RadioInitializationBeamDefinition = 63107, + + /// + /// Radio Initialization Transmit Heartbeat Time. type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Radio Initialization Transmit Heartbeat Time. type: Variable Record.")] + RadioInitializationTransmitHeartbeatTime = 63108, + + /// + /// Radio Initialization Transmit Distance Threshold Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Radio Initialization Transmit Distance Threshold Variable Record.")] + RadioInitializationTransmitDistanceThresholdVariableRecord = 63109, + + /// + /// Radio Channel Initialization Lockout ID. type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Radio Channel Initialization Lockout ID. type: Variable Record.")] + RadioChannelInitializationLockoutID = 63110, + + /// + /// Radio Channel Initialization Hopset ID. type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Radio Channel Initialization Hopset ID. type: Variable Record.")] + RadioChannelInitializationHopsetID = 63111, + + /// + /// Radio Channel Initialization Preset Frequency. type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Radio Channel Initialization Preset Frequency. type: Variable Record.")] + RadioChannelInitializationPresetFrequency = 63112, + + /// + /// Radio Channel Initialization Frequency Sync Time. type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Radio Channel Initialization Frequency Sync Time. type: Variable Record.")] + RadioChannelInitializationFrequencySyncTime = 63113, + + /// + /// Radio Channel Initialization Comsec Key. type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Radio Channel Initialization Comsec Key. type: Variable Record.")] + RadioChannelInitializationComsecKey = 63114, + + /// + /// Radio Channel Initialization Alpha. type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Radio Channel Initialization Alpha. type: Variable Record.")] + RadioChannelInitializationAlpha = 63115, + + /// + /// Algorithm Parameters. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Algorithm Parameters.")] + AlgorithmParameters = 70000, + + /// + /// Dead Reckoning Algorithm (DRA). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Dead Reckoning Algorithm (DRA).")] + DeadReckoningAlgorithmDRA = 71000, + + /// + /// DRA Location Threshold. type: Unsigned Integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DRA Location Threshold. type: Unsigned Integer. length: 32.")] + DRALocationThreshold = 71100, + + /// + /// DRA Orientation Threshold. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DRA Orientation Threshold.")] + DRAOrientationThreshold = 71200, + + /// + /// DRA Time Threshold. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DRA Time Threshold.")] + DRATimeThreshold = 71300, + + /// + /// Simulation Management Parameters. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Simulation Management Parameters.")] + SimulationManagementParameters = 72000, + + /// + /// Checkpoint Interval. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Checkpoint Interval.")] + CheckpointInterval = 72100, + + /// + /// Transmitter Time Threshold. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Transmitter Time Threshold.")] + TransmitterTimeThreshold = 72600, + + /// + /// Receiver Time Threshold. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Receiver Time Threshold.")] + ReceiverTimeThreshold = 72700, + + /// + /// Interoperability Mode. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Interoperability Mode.")] + InteroperabilityMode = 73000, + + /// + /// SIMNET Data Collection. type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SIMNET Data Collection. type: Variable Record.")] + SIMNETDataCollection = 74000, + + /// + /// Event ID. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Event ID.")] + EventID = 75000, + + /// + /// Source Site ID. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Source Site ID.")] + SourceSiteID = 75100, + + /// + /// Source Host ID. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Source Host ID.")] + SourceHostID = 75200, + + /// + /// Articulated Parts. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Articulated Parts.")] + ArticulatedParts = 90000, + + /// + /// 90001. type: 90001. length: 90001. units: 90001. range: 90001. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("90001. type: 90001. length: 90001. units: 90001. range: 90001.")] + _90001 = 90001, + + /// + /// Part ID. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Part ID.")] + PartID = 90050, + + /// + /// Index. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Index.")] + Index = 90070, + + /// + /// Position. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Position.")] + Position_90100 = 90100, + + /// + /// Position Rate. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Position Rate.")] + PositionRate = 90200, + + /// + /// Extension. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Extension.")] + Extension = 90300, + + /// + /// Extension Rate. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Extension Rate.")] + ExtensionRate = 90400, + + /// + /// X. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("X.")] + X_90500 = 90500, + + /// + /// X-rate. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("X-rate.")] + XRate = 90600, + + /// + /// Y. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Y.")] + Y_90700 = 90700, + + /// + /// Y-rate. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Y-rate.")] + YRate = 90800, + + /// + /// Z. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Z.")] + Z_90900 = 90900, + + /// + /// Z-rate. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Z-rate.")] + ZRate = 91000, + + /// + /// Azimuth. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Azimuth.")] + Azimuth_91100 = 91100, + + /// + /// Azimuth Rate. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Azimuth Rate.")] + AzimuthRate = 91200, + + /// + /// Elevation. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Elevation.")] + Elevation = 91300, + + /// + /// Elevation Rate. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Elevation Rate.")] + ElevationRate = 91400, + + /// + /// Rotation. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Rotation.")] + Rotation = 91500, + + /// + /// Rotation Rate. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Rotation Rate.")] + RotationRate = 91600, + + /// + /// DRA Angular X-Velocity. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DRA Angular X-Velocity.")] + DRAAngularXVelocity = 100001, + + /// + /// DRA Angular Y-Velocity. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DRA Angular Y-Velocity.")] + DRAAngularYVelocity = 100002, + + /// + /// DRA Angular Z-Velocity. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DRA Angular Z-Velocity.")] + DRAAngularZVelocity = 100003, + + /// + /// Appearance, Trailing Effects. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Appearance, Trailing Effects.")] + AppearanceTrailingEffects = 100004, + + /// + /// Appearance, Hatch. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Appearance, Hatch.")] + AppearanceHatch = 100005, + + /// + /// Appearance, Character Set. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Appearance, Character Set.")] + AppearanceCharacterSet = 100008, + + /// + /// Capability, Ammunition Supplier. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Capability, Ammunition Supplier.")] + CapabilityAmmunitionSupplier = 100010, + + /// + /// Capability, Miscellaneous Supplier. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Capability, Miscellaneous Supplier.")] + CapabilityMiscellaneousSupplier = 100011, + + /// + /// Capability, Repair Provider. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Capability, Repair Provider.")] + CapabilityRepairProvider = 100012, + + /// + /// Articulation Parameter. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Articulation Parameter.")] + ArticulationParameter = 100014, + + /// + /// Articulation Parameter Type. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Articulation Parameter Type.")] + ArticulationParameterType = 100047, + + /// + /// Articulation Parameter Value. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Articulation Parameter Value.")] + ArticulationParameterValue = 100048, + + /// + /// Time of Day-Scene. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Time of Day-Scene.")] + TimeOfDayScene = 100058, + + /// + /// Latitude-North (Location of weather cell). type: Unsigned Integer. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Latitude-North (Location of weather cell). type: Unsigned Integer.")] + LatitudeNorthLocationOfWeatherCell = 100061, + + /// + /// Longitude-East (Location of weather cell). type: Unsigned integer. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Longitude-East (Location of weather cell). type: Unsigned integer.")] + LongitudeEastLocationOfWeatherCell = 100063, + + /// + /// Tactical Driver Status. type: Unsigned Integer. range: 0 Operational, 1 Non-operational, 2 Unknown, 3 Not available. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tactical Driver Status. type: Unsigned Integer. range: 0 Operational, 1 Non-operational, 2 Unknown, 3 Not available.")] + TacticalDriverStatus = 100068, + + /// + /// Sonar System Status. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sonar System Status.")] + SonarSystemStatus = 100100, + + /// + /// Upper latitude. type: float. length: 32 bits. units: radians. range: -pi/2, +p1/2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Upper latitude. type: float. length: 32 bits. units: radians. range: -pi/2, +p1/2.")] + UpperLatitude = 100161, + + /// + /// Latitude-South (Location of weather cell). type: Unsigned Integer. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Latitude-South (Location of weather cell). type: Unsigned Integer.")] + LatitudeSouthLocationOfWeatherCell = 100162, + + /// + /// Western longitude. type: float. length: 32 bits. units: radians. range: -pi, +pi. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Western longitude. type: float. length: 32 bits. units: radians. range: -pi, +pi.")] + WesternLongitude = 100163, + + /// + /// Longitude-West (location of weather cell). type: Unsigned Integer. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Longitude-West (location of weather cell). type: Unsigned Integer.")] + LongitudeWestLocationOfWeatherCell = 100164, + + /// + /// Accomplished accept. type: Boolean. range: 0 Accept, 1 Non-accept. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Accomplished accept. type: Boolean. range: 0 Accept, 1 Non-accept.")] + AccomplishedAccept = 100165, + + /// + /// CD ROM Number (Disk ID for terrain). type: Integer. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("CD ROM Number (Disk ID for terrain). type: Integer.")] + CDROMNumberDiskIDForTerrain = 100165, + + /// + /// DTED disk ID. type: Unsigned Integer. length: 32 bits. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DTED disk ID. type: Unsigned Integer. length: 32 bits.")] + DTEDDiskID = 100166, + + /// + /// Altitude. type: Floating point. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Altitude. type: Floating point.")] + Altitude_100167 = 100167, + + /// + /// Tactical System Status. type: Unsigned Integer. range: 0 Operational, 1 Non-operational, 2 Unknown, 3 Not available. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tactical System Status. type: Unsigned Integer. range: 0 Operational, 1 Non-operational, 2 Unknown, 3 Not available.")] + TacticalSystemStatus = 100169, + + /// + /// JTIDS Status. type: Unsigned Integer. range: 0 Operational, 1 Non-operational, 2 Unknown, 3 Not available. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("JTIDS Status. type: Unsigned Integer. range: 0 Operational, 1 Non-operational, 2 Unknown, 3 Not available.")] + JTIDSStatus = 100170, + + /// + /// TADIL-J Status. type: Unsigned Integer. range: 0 Operational, 1 Non-operational, 2 Unknown, 3 Not available. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TADIL-J Status. type: Unsigned Integer. range: 0 Operational, 1 Non-operational, 2 Unknown, 3 Not available.")] + TADILJStatus = 100171, + + /// + /// DSDD Status. type: Unsigned Integer. range: 0 Operational, 1 Non-operational, 2 Unknown, 3 Not available. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DSDD Status. type: Unsigned Integer. range: 0 Operational, 1 Non-operational, 2 Unknown, 3 Not available.")] + DSDDStatus = 100172, + + /// + /// Weapon System Status. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Weapon System Status.")] + WeaponSystemStatus = 100200, + + /// + /// Subsystem status. type: Boolean. length: 32 bits. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Subsystem status. type: Boolean. length: 32 bits.")] + SubsystemStatus = 100205, + + /// + /// Number of interceptors fired. type: Unsigned Integer. length: 32 bits. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Number of interceptors fired. type: Unsigned Integer. length: 32 bits.")] + NumberOfInterceptorsFired = 100206, + + /// + /// Number of interceptor detonations. type: Unsigned Integer. length: 32 bits. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Number of interceptor detonations. type: Unsigned Integer. length: 32 bits.")] + NumberOfInterceptorDetonations = 100207, + + /// + /// Number of message buffers dropped. type: Unsigned Integer. length: 32 bits. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Number of message buffers dropped. type: Unsigned Integer. length: 32 bits.")] + NumberOfMessageBuffersDropped = 100208, + + /// + /// Satellite sensor background (year, day). type: Unsigned Integer, Unsigned Integer. length: 16 bits, 16 bits. units: years, Julian days. range: 1-366. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Satellite sensor background (year, day). type: Unsigned Integer, Unsigned Integer. length: 16 bits, 16 bits. units: years, Julian days. range: 1-366.")] + SatelliteSensorBackgroundYearDay = 100213, + + /// + /// Satellite sensor background (hour, minute). type: Unsigned Integer, Unsigned Integer. length: 16 bits, 16 bits. units: hours, minutes. range: 0-23,0-59. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Satellite sensor background (hour, minute). type: Unsigned Integer, Unsigned Integer. length: 16 bits, 16 bits. units: hours, minutes. range: 0-23,0-59.")] + SatelliteSensorBackgroundHourMinute = 100214, + + /// + /// Script Number. type: Integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Script Number. type: Integer. length: 32.")] + ScriptNumber = 100218, + + /// + /// Entity/Track/Update Data. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Entity/Track/Update Data.")] + EntityTrackUpdateData = 100300, + + /// + /// Local/Force Training. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Local/Force Training.")] + LocalForceTraining = 100400, + + /// + /// Entity/Track Identity Data. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Entity/Track Identity Data.")] + EntityTrackIdentityData = 100500, + + /// + /// Entity for Track Event. type: Variable. length: 48. range: Entity being tracked. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Entity for Track Event. type: Variable. length: 48. range: Entity being tracked.")] + EntityForTrackEvent = 100510, + + /// + /// IFF (Friend-Foe) status. type: Unsigned Integer. length: 32. range: 0 Unidentified / Unknown, 1 Perceived Friendly, 2 Perceived Hostile. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("IFF (Friend-Foe) status. type: Unsigned Integer. length: 32. range: 0 Unidentified / Unknown, 1 Perceived Friendly, 2 Perceived Hostile.")] + IFFFriendFoeStatus = 100520, + + /// + /// Engagement Data. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Engagement Data.")] + EngagementData = 100600, + + /// + /// Target Latitude. type: Integer. length: 32. units: (10000th) Degrees. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Target Latitude. type: Integer. length: 32. units: (10000th) Degrees.")] + TargetLatitude = 100610, + + /// + /// Target Longitude. type: Integer. length: 32. units: (10000th) Degrees. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Target Longitude. type: Integer. length: 32. units: (10000th) Degrees.")] + TargetLongitude = 100620, + + /// + /// Area of Interest (Ground Impact Circle) Center Latitude. type: Integer. length: 32. units: (10000th) Degrees. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Area of Interest (Ground Impact Circle) Center Latitude. type: Integer. length: 32. units: (10000th) Degrees.")] + AreaOfInterestGroundImpactCircleCenterLatitude = 100631, + + /// + /// Area of Interest (Ground Impact Circle) Center Longitude. type: Integer. length: 32. units: (10000th) Degrees. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Area of Interest (Ground Impact Circle) Center Longitude. type: Integer. length: 32. units: (10000th) Degrees.")] + AreaOfInterestGroundImpactCircleCenterLongitude = 100632, + + /// + /// Area of Interest (Ground Impact Circle) Radius. type: Unsigned Integer. length: 32. units: Meters. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Area of Interest (Ground Impact Circle) Radius. type: Unsigned Integer. length: 32. units: Meters.")] + AreaOfInterestGroundImpactCircleRadius = 100633, + + /// + /// Area of Interest Type. type: Unsigned Integer. length: 32. range: 0 Unspecified, 1 TBM Defense. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Area of Interest Type. type: Unsigned Integer. length: 32. range: 0 Unspecified, 1 TBM Defense.")] + AreaOfInterestType = 100634, + + /// + /// Target Aggregate ID. type: Variable. length: 48. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Target Aggregate ID. type: Variable. length: 48.")] + TargetAggregateID = 100640, + + /// + /// GIC Identification Number. type: Unsigned Integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("GIC Identification Number. type: Unsigned Integer. length: 32.")] + GICIdentificationNumber = 100650, + + /// + /// Estimated Time of Flight to TBM Impact. type: Floating Point. length: 32. range: Seconds from time in PDU header. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Estimated Time of Flight to TBM Impact. type: Floating Point. length: 32. range: Seconds from time in PDU header.")] + EstimatedTimeOfFlightToTBMImpact = 100660, + + /// + /// Estimated Intercept Time. type: Floating Point. length: 32. range: Seconds from time in PDU header. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Estimated Intercept Time. type: Floating Point. length: 32. range: Seconds from time in PDU header.")] + EstimatedInterceptTime = 100661, + + /// + /// Estimated Time of Flight to Next Waypoint. type: Floating Point. length: 32. range: Seconds from time in PDU header. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Estimated Time of Flight to Next Waypoint. type: Floating Point. length: 32. range: Seconds from time in PDU header.")] + EstimatedTimeOfFlightToNextWaypoint = 100662, + + /// + /// Entity/Track Equipment Data. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Entity/Track Equipment Data.")] + EntityTrackEquipmentData = 100700, + + /// + /// Emission/EW Data. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Emission/EW Data.")] + EmissionEWData = 100800, + + /// + /// Appearance Data. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Appearance Data.")] + AppearanceData = 100900, + + /// + /// Command/Order Data. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Command/Order Data.")] + CommandOrderData = 101000, + + /// + /// Environmental Data. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Environmental Data.")] + EnvironmentalData = 101100, + + /// + /// Significant Event Data. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Significant Event Data.")] + SignificantEventData = 101200, + + /// + /// Operator Action Data. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Operator Action Data.")] + OperatorActionData = 101300, + + /// + /// ADA Engagement Mode. type: Unsigned Integer. length: 32. range: 0 Air, 1 ATBM. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ADA Engagement Mode. type: Unsigned Integer. length: 32. range: 0 Air, 1 ATBM.")] + ADAEngagementMode = 101310, + + /// + /// ADA Shooting Status. type: Unsigned Integer. length: 32. range: 0 Can not engage, 1 Can engage,. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ADA Shooting Status. type: Unsigned Integer. length: 32. range: 0 Can not engage, 1 Can engage,.")] + ADAShootingStatus = 101320, + + /// + /// ADA Mode. type: Unsigned Integer. length: 32. range: 0 Shut down, 1 Active. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ADA Mode. type: Unsigned Integer. length: 32. range: 0 Shut down, 1 Active.")] + ADAMode = 101321, + + /// + /// ADA Radar Status. type: Unsigned Integer. length: 32. range: 0 Off, 1 On, 2 Momentary On. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ADA Radar Status. type: Unsigned Integer. length: 32. range: 0 Off, 1 On, 2 Momentary On.")] + ADARadarStatus = 101330, + + /// + /// Shoot Command. type: Unsigned Integer. length: 32. range: 0 Undefined, Greater than 0 Number of Shots to take. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Shoot Command. type: Unsigned Integer. length: 32. range: 0 Undefined, Greater than 0 Number of Shots to take.")] + ShootCommand = 101340, + + /// + /// ADA Weapon Status. type: Unsigned Integer. length: 32. range: 0 None, 1 Free, 2 Tight, 3 Hold. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ADA Weapon Status. type: Unsigned Integer. length: 32. range: 0 None, 1 Free, 2 Tight, 3 Hold.")] + ADAWeaponStatus = 101350, + + /// + /// ADA Firing Disciple. type: Unsigned Integer. length: 32. range: 0 SLS_ABT, 1 Shoot 2_ABT, 2 Lash Mode, 3 SLS_TM, 4 Shoot2_TM, 5 Default. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ADA Firing Disciple. type: Unsigned Integer. length: 32. range: 0 SLS_ABT, 1 Shoot 2_ABT, 2 Lash Mode, 3 SLS_TM, 4 Shoot2_TM, 5 Default.")] + ADAFiringDisciple = 101360, + + /// + /// Order Status. type: Unsigned Integer. length: 32. range: 0 Cancel Engagement, 1 Engage Assignment. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Order Status. type: Unsigned Integer. length: 32. range: 0 Cancel Engagement, 1 Engage Assignment.")] + OrderStatus = 101370, + + /// + /// Time Synchronization. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Time Synchronization.")] + TimeSynchronization = 101400, + + /// + /// Tomahawk Data. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tomahawk Data.")] + TomahawkData = 101500, + + /// + /// Number of Detonations. type: Unsigned Integer. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Number of Detonations. type: Unsigned Integer.")] + NumberOfDetonations = 102100, + + /// + /// Number of Intercepts. type: Unsigned Integer. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Number of Intercepts. type: Unsigned Integer.")] + NumberOfIntercepts = 102200, + + /// + /// OBT Control MT-201. type: Variable Record. length: 64. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("OBT Control MT-201. type: Variable Record. length: 64.")] + OBTControlMT201 = 200201, + + /// + /// Sensor Data MT-202. type: Variable Record. length: 64. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sensor Data MT-202. type: Variable Record. length: 64.")] + SensorDataMT202 = 200202, + + /// + /// Environmental Data MT-203. type: Variable Record. length: 64. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Environmental Data MT-203. type: Variable Record. length: 64.")] + EnvironmentalDataMT203 = 200203, + + /// + /// Ownship Data MT-204. type: Variable Record. length: 128. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ownship Data MT-204. type: Variable Record. length: 128.")] + OwnshipDataMT204 = 200204, + + /// + /// Acoustic Contact Data MT-205. type: Variable Record. length: 288. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Acoustic Contact Data MT-205. type: Variable Record. length: 288.")] + AcousticContactDataMT205 = 200205, + + /// + /// Sonobuoy Data MT-207. type: Variable Record. length: 64. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sonobuoy Data MT-207. type: Variable Record. length: 64.")] + SonobuoyDataMT207 = 200207, + + /// + /// Sonobuoy Contact Data MT-210. type: Variable Record. length: 64. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sonobuoy Contact Data MT-210. type: Variable Record. length: 64.")] + SonobuoyContactDataMT210 = 200210, + + /// + /// Helo Control MT-211. type: Variable Record. length: 64. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Helo Control MT-211. type: Variable Record. length: 64.")] + HeloControlMT211 = 200211, + + /// + /// ESM Control Data. type: Variable Record. length: 96. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ESM Control Data. type: Variable Record. length: 96.")] + ESMControlData = 200213, + + /// + /// ESM Contact Data MT-214. type: Variable Record. length: 192. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ESM Contact Data MT-214. type: Variable Record. length: 192.")] + ESMContactDataMT214 = 200214, + + /// + /// ESM Emitter Data MT-215. type: Variable Record. length: 64. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ESM Emitter Data MT-215. type: Variable Record. length: 64.")] + ESMEmitterDataMT215 = 200215, + + /// + /// Weapon Definition Data MT-217. type: Variable Record. length: 224. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Weapon Definition Data MT-217. type: Variable Record. length: 224.")] + WeaponDefinitionDataMT217 = 200216, + + /// + /// Weapon Preset Data MT-217. type: Variable Record. length: 256. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Weapon Preset Data MT-217. type: Variable Record. length: 256.")] + WeaponPresetDataMT217 = 200217, + + /// + /// OBT Control MT-301. type: Variable Record. length: 64. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("OBT Control MT-301. type: Variable Record. length: 64.")] + OBTControlMT301 = 200301, + + /// + /// Sensor Data MT-302. type: Variable Record. length: 64. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sensor Data MT-302. type: Variable Record. length: 64.")] + SensorDataMT302 = 200302, + + /// + /// Environmental Data MT-303m. type: Variable Record. length: 64. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Environmental Data MT-303m. type: Variable Record. length: 64.")] + EnvironmentalDataMT303m = 200303, + + /// + /// Ownship Data MT-304. type: Variable Record. length: 64. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ownship Data MT-304. type: Variable Record. length: 64.")] + OwnshipDataMT304 = 200304, + + /// + /// Acoustic Contact Data MT-305. type: Variable Record. length: 288. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Acoustic Contact Data MT-305. type: Variable Record. length: 288.")] + AcousticContactDataMT305 = 200305, + + /// + /// Sonobuoy Data MT-307. type: Variable Record. length: 128. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sonobuoy Data MT-307. type: Variable Record. length: 128.")] + SonobuoyDataMT307 = 200307, + + /// + /// Sonobuoy Contact Data MT-310. type: Variable Record. length: 64. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sonobuoy Contact Data MT-310. type: Variable Record. length: 64.")] + SonobuoyContactDataMT310 = 200310, + + /// + /// Helo Scenario / Equipment Status. type: Variable Record. length: 224. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Helo Scenario / Equipment Status. type: Variable Record. length: 224.")] + HeloScenarioEquipmentStatus = 200311, + + /// + /// ESM Control Data MT-313. type: Variable Record. length: 96. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ESM Control Data MT-313. type: Variable Record. length: 96.")] + ESMControlDataMT313 = 200313, + + /// + /// ESM Contact Data MT-314. type: Variable Record. length: 192. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ESM Contact Data MT-314. type: Variable Record. length: 192.")] + ESMContactDataMT314 = 200314, + + /// + /// ESM Emitter Data MT-315. type: Variable Record. length: 64. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ESM Emitter Data MT-315. type: Variable Record. length: 64.")] + ESMEmitterDataMT315 = 200315, + + /// + /// Weapon Definition Data MT-316. type: Variable Record. length: 256. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Weapon Definition Data MT-316. type: Variable Record. length: 256.")] + WeaponDefinitionDataMT316 = 200316, + + /// + /// Weapon Preset Data MT-317. type: Variable Record. length: 256. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Weapon Preset Data MT-317. type: Variable Record. length: 256.")] + WeaponPresetDataMT317 = 200317, + + /// + /// Pairing/Association (eMT-56). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Pairing/Association (eMT-56). type: Variable Record.")] + PairingAssociationEMT56 = 200400, + + /// + /// Pointer (eMT-57). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Pointer (eMT-57). type: Variable Record.")] + PointerEMT57 = 200401, + + /// + /// Reporting Responsibility (eMT-58). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Reporting Responsibility (eMT-58). type: Variable Record.")] + ReportingResponsibilityEMT58 = 200402, + + /// + /// Track Number (eMT-59). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Track Number (eMT-59). type: Variable Record.")] + TrackNumberEMT59 = 200403, + + /// + /// ID for Link-11 Reporting (eMT-60). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ID for Link-11 Reporting (eMT-60). type: Variable Record.")] + IDForLink11ReportingEMT60 = 200404, + + /// + /// Remote Track (eMT-62). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Remote Track (eMT-62). type: Variable Record.")] + RemoteTrackEMT62 = 200405, + + /// + /// Link-11 Error Rate (eMT-63). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Link-11 Error Rate (eMT-63). type: Variable Record.")] + Link11ErrorRateEMT63 = 200406, + + /// + /// Track Quality (eMT-64). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Track Quality (eMT-64). type: Variable Record.")] + TrackQualityEMT64 = 200407, + + /// + /// Gridlock (eMT-65). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Gridlock (eMT-65). type: Variable Record.")] + GridlockEMT65 = 200408, + + /// + /// Kill (eMT-66). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Kill (eMT-66). type: Variable Record.")] + KillEMT66 = 200409, + + /// + /// Track ID Change / Resolution (eMT-68). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Track ID Change / Resolution (eMT-68). type: Variable Record.")] + TrackIDChangeResolutionEMT68 = 200410, + + /// + /// Weapons Status (eMT-69). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Weapons Status (eMT-69). type: Variable Record.")] + WeaponsStatusEMT69 = 200411, + + /// + /// Link-11 Operator (eMT-70). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Link-11 Operator (eMT-70). type: Variable Record.")] + Link11OperatorEMT70 = 200412, + + /// + /// Force Training Transmit (eMT-71). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Force Training Transmit (eMT-71). type: Variable Record.")] + ForceTrainingTransmitEMT71 = 200413, + + /// + /// Force Training Receive (eMT-72). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Force Training Receive (eMT-72). type: Variable Record.")] + ForceTrainingReceiveEMT72 = 200414, + + /// + /// Interceptor Amplification (eMT-75). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Interceptor Amplification (eMT-75). type: Variable Record.")] + InterceptorAmplificationEMT75 = 200415, + + /// + /// Consumables (eMT-78). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Consumables (eMT-78). type: Variable Record.")] + ConsumablesEMT78 = 200416, + + /// + /// Link-11 Local Track Quality (eMT-95). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Link-11 Local Track Quality (eMT-95). type: Variable Record.")] + Link11LocalTrackQualityEMT95 = 200417, + + /// + /// DLRP (eMT-19). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DLRP (eMT-19). type: Variable Record.")] + DLRPEMT19 = 200418, + + /// + /// Force Order (eMT-52). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Force Order (eMT-52). type: Variable Record.")] + ForceOrderEMT52 = 200419, + + /// + /// Wilco / Cantco (eMT-53). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Wilco / Cantco (eMT-53). type: Variable Record.")] + WilcoCantcoEMT53 = 200420, + + /// + /// EMC Bearing (eMT-54). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("EMC Bearing (eMT-54). type: Variable Record.")] + EMCBearingEMT54 = 200421, + + /// + /// Change Track Eligibility (eMT-55). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Change Track Eligibility (eMT-55). type: Variable Record.")] + ChangeTrackEligibilityEMT55 = 200422, + + /// + /// Land Mass Reference Point. type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Land Mass Reference Point. type: Variable Record.")] + LandMassReferencePoint = 200423, + + /// + /// System Reference Point. type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("System Reference Point. type: Variable Record.")] + SystemReferencePoint = 200424, + + /// + /// PU Amplification. type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("PU Amplification. type: Variable Record.")] + PUAmplification = 200425, + + /// + /// Set/Drift. type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Set/Drift. type: Variable Record.")] + SetDrift = 200426, + + /// + /// Begin Initialization (MT-1). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Begin Initialization (MT-1). type: Variable Record.")] + BeginInitializationMT1 = 200427, + + /// + /// Status and Control (MT-3). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Status and Control (MT-3). type: Variable Record.")] + StatusAndControlMT3 = 200428, + + /// + /// Scintillation Change (MT-39). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Scintillation Change (MT-39). type: Variable Record.")] + ScintillationChangeMT39 = 200429, + + /// + /// Link 11 ID Control (MT-61). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Link 11 ID Control (MT-61). type: Variable Record.")] + Link11IDControlMT61 = 200430, + + /// + /// PU Guard List. type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("PU Guard List. type: Variable Record.")] + PUGuardList = 200431, + + /// + /// Winds Aloft (MT-14). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Winds Aloft (MT-14). type: Variable Record.")] + WindsAloftMT14 = 200432, + + /// + /// Surface Winds (MT-15). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Surface Winds (MT-15). type: Variable Record.")] + SurfaceWindsMT15 = 200433, + + /// + /// Sea State (MT-17). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sea State (MT-17). type: Variable Record.")] + SeaStateMT17 = 200434, + + /// + /// Magnetic Variation (MT-37). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Magnetic Variation (MT-37). type: Variable Record.")] + MagneticVariationMT37 = 200435, + + /// + /// Track Eligibility (MT-29). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Track Eligibility (MT-29). type: Variable Record.")] + TrackEligibilityMT29 = 200436, + + /// + /// Training Track Notification. type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Training Track Notification. type: Variable Record.")] + TrainingTrackNotification = 200437, + + /// + /// Tacan Data (MT-32). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tacan Data (MT-32). type: Variable Record.")] + TacanDataMT32 = 200501, + + /// + /// Interceptor Amplification (MT-75). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Interceptor Amplification (MT-75). type: Variable Record.")] + InterceptorAmplificationMT75 = 200502, + + /// + /// Tacan Assignment (MT-76). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Tacan Assignment (MT-76). type: Variable Record.")] + TacanAssignmentMT76 = 200503, + + /// + /// Autopilot Status (MT-77). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Autopilot Status (MT-77). type: Variable Record.")] + AutopilotStatusMT77 = 200504, + + /// + /// Consumables (MT-78). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Consumables (MT-78). type: Variable Record.")] + ConsumablesMT78 = 200505, + + /// + /// Downlink (MT-79). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Downlink (MT-79). type: Variable Record.")] + DownlinkMT79 = 200506, + + /// + /// TIN Report (MT-80). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TIN Report (MT-80). type: Variable Record.")] + TINReportMT80 = 200507, + + /// + /// Special Point Control (MT-81). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Special Point Control (MT-81). type: Variable Record.")] + SpecialPointControlMT81 = 200508, + + /// + /// Control Discretes (MT-82). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Control Discretes (MT-82). type: Variable Record.")] + ControlDiscretesMT82 = 200509, + + /// + /// Request Target Discretes(MT-83). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Request Target Discretes(MT-83). type: Variable Record.")] + RequestTargetDiscretesMT83 = 200510, + + /// + /// Target Discretes (MT-84). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Target Discretes (MT-84). type: Variable Record.")] + TargetDiscretesMT84 = 200511, + + /// + /// Reply Discretes (MT-85). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Reply Discretes (MT-85). type: Variable Record.")] + ReplyDiscretesMT85 = 200512, + + /// + /// Command Maneuvers (MT-86). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Command Maneuvers (MT-86). type: Variable Record.")] + CommandManeuversMT86 = 200513, + + /// + /// Target Data (MT-87). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Target Data (MT-87). type: Variable Record.")] + TargetDataMT87 = 200514, + + /// + /// Target Pointer (MT-88). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Target Pointer (MT-88). type: Variable Record.")] + TargetPointerMT88 = 200515, + + /// + /// Intercept Data (MT-89). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Intercept Data (MT-89). type: Variable Record.")] + InterceptDataMT89 = 200516, + + /// + /// Decrement Missile Inventory (MT-90). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Decrement Missile Inventory (MT-90). type: Variable Record.")] + DecrementMissileInventoryMT90 = 200517, + + /// + /// Link-4A Alert (MT-91). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Link-4A Alert (MT-91). type: Variable Record.")] + Link4AAlertMT91 = 200518, + + /// + /// Strike Control (MT-92). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Strike Control (MT-92). type: Variable Record.")] + StrikeControlMT92 = 200519, + + /// + /// Speed Change (MT-25). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Speed Change (MT-25). type: Variable Record.")] + SpeedChangeMT25 = 200521, + + /// + /// Course Change (MT-26). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Course Change (MT-26). type: Variable Record.")] + CourseChangeMT26 = 200522, + + /// + /// Altitude Change (MT-27). type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Altitude Change (MT-27). type: Variable Record.")] + AltitudeChangeMT27 = 200523, + + /// + /// ACLS AN/SPN-46 Status. type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ACLS AN/SPN-46 Status. type: Variable Record.")] + ACLSANSPN46Status = 200524, + + /// + /// ACLS Aircraft Report. type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("ACLS Aircraft Report. type: Variable Record.")] + ACLSAircraftReport = 200525, + + /// + /// SPS-67 Radar Operator Functions. type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SPS-67 Radar Operator Functions. type: Variable Record.")] + SPS67RadarOperatorFunctions = 200600, + + /// + /// SPS-55 Radar Operator Functions. type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SPS-55 Radar Operator Functions. type: Variable Record.")] + SPS55RadarOperatorFunctions = 200601, + + /// + /// SPQ-9A Radar Operator Functions. length: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SPQ-9A Radar Operator Functions. length: Variable Record.")] + SPQ9ARadarOperatorFunctions = 200602, + + /// + /// SPS-49 Radar Operator Functions. type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SPS-49 Radar Operator Functions. type: Variable Record.")] + SPS49RadarOperatorFunctions = 200603, + + /// + /// MK-23 Radar Operator Functions. type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("MK-23 Radar Operator Functions. type: Variable Record.")] + MK23RadarOperatorFunctions = 200604, + + /// + /// SPS-48 Radar Operator Functions. type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SPS-48 Radar Operator Functions. type: Variable Record.")] + SPS48RadarOperatorFunctions = 200605, + + /// + /// SPS-40 Radar Operator Functions. type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("SPS-40 Radar Operator Functions. type: Variable Record.")] + SPS40RadarOperatorFunctions = 200606, + + /// + /// MK-95 Radar Operator Functions. type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("MK-95 Radar Operator Functions. type: Variable Record.")] + MK95RadarOperatorFunctions = 200607, + + /// + /// Kill/No Kill. type: Unsigned Integer. length: 32. range: 0 No kill, 1 Kill. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Kill/No Kill. type: Unsigned Integer. length: 32. range: 0 No kill, 1 Kill.")] + KillNoKill = 200608, + + /// + /// CMT pc. type: Unsigned Integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("CMT pc. type: Unsigned Integer. length: 32.")] + CMTPc = 200609, + + /// + /// CMC4AirGlobalData. type: Variable Recoed. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("CMC4AirGlobalData. type: Variable Recoed.")] + CMC4AirGlobalData = 200610, + + /// + /// CMC4GlobalData. type: Variable Record. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("CMC4GlobalData. type: Variable Record.")] + CMC4GlobalData = 200611, + + /// + /// LINKSIM_COMMENT_PDU. type: Integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("LINKSIM_COMMENT_PDU. type: Integer. length: 32.")] + LINKSIMCOMMENTPDU = 200612, + + /// + /// NSST Ownship Control. type: Integer. length: 64. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("NSST Ownship Control. type: Integer. length: 64.")] + NSSTOwnshipControl = 200613, + + /// + /// Other. type: Integer. length: 00. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other. type: Integer. length: 00.")] + Other = 240000, + + /// + /// Mass Of The Vehicle. type: real. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mass Of The Vehicle. type: real. length: 32.")] + MassOfTheVehicle = 240001, + + /// + /// Force ID. type: Integer. length: 8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Force ID. type: Integer. length: 8.")] + ForceID_240002 = 240002, + + /// + /// Entity Type Kind. type: Integer. length: 8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Entity Type Kind. type: Integer. length: 8.")] + EntityTypeKind = 240003, + + /// + /// Entity Type Domain. type: Integer. length: 8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Entity Type Domain. type: Integer. length: 8.")] + EntityTypeDomain = 240004, + + /// + /// Entity Type Country. type: Integer. length: 16. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Entity Type Country. type: Integer. length: 16.")] + EntityTypeCountry = 240005, + + /// + /// Entity Type Category. type: Integer. length: 8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Entity Type Category. type: Integer. length: 8.")] + EntityTypeCategory = 240006, + + /// + /// Entity Type Sub Category. type: Integer. length: 8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Entity Type Sub Category. type: Integer. length: 8.")] + EntityTypeSubCategory = 240007, + + /// + /// Entity Type Specific. type: Integer. length: 8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Entity Type Specific. type: Integer. length: 8.")] + EntityTypeSpecific = 240008, + + /// + /// Entity Type Extra. type: Integer. length: 8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Entity Type Extra. type: Integer. length: 8.")] + EntityTypeExtra = 240009, + + /// + /// Alternative Entity Type Kind. type: Integer. length: 8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Alternative Entity Type Kind. type: Integer. length: 8.")] + AlternativeEntityTypeKind = 240010, + + /// + /// Alternative Entity Type Domain. type: Integer. length: 8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Alternative Entity Type Domain. type: Integer. length: 8.")] + AlternativeEntityTypeDomain = 240011, + + /// + /// Alternative Entity Type Country. type: Integer. length: 16. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Alternative Entity Type Country. type: Integer. length: 16.")] + AlternativeEntityTypeCountry = 240012, + + /// + /// Alternative Entity Type Category. type: integer. length: 8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Alternative Entity Type Category. type: integer. length: 8.")] + AlternativeEntityTypeCategory = 240013, + + /// + /// Alternative Entity Type Sub Category. type: integer. length: 8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Alternative Entity Type Sub Category. type: integer. length: 8.")] + AlternativeEntityTypeSubCategory = 240014, + + /// + /// Alternative Entity Type Specific. type: integer. length: 8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Alternative Entity Type Specific. type: integer. length: 8.")] + AlternativeEntityTypeSpecific = 240015, + + /// + /// Alternative Entity Type Extra. type: integer. length: 8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Alternative Entity Type Extra. type: integer. length: 8.")] + AlternativeEntityTypeExtra = 240016, + + /// + /// Entity Location X. type: real. length: 64. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Entity Location X. type: real. length: 64.")] + EntityLocationX = 240017, + + /// + /// Entity Location Y. type: real. length: 64. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Entity Location Y. type: real. length: 64.")] + EntityLocationY = 240018, + + /// + /// Entity Location Z. type: real. length: 64. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Entity Location Z. type: real. length: 64.")] + EntityLocationZ = 240019, + + /// + /// Entity Linear Velocity X. type: real. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Entity Linear Velocity X. type: real. length: 32.")] + EntityLinearVelocityX = 240020, + + /// + /// Entity Linear Velocity Y. type: real. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Entity Linear Velocity Y. type: real. length: 32.")] + EntityLinearVelocityY = 240021, + + /// + /// Entity Linear Velocity Z. type: real. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Entity Linear Velocity Z. type: real. length: 32.")] + EntityLinearVelocityZ = 240022, + + /// + /// Entity Orientation Psi. type: real. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Entity Orientation Psi. type: real. length: 32.")] + EntityOrientationPsi = 240023, + + /// + /// Entity Orientation Theta. type: real. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Entity Orientation Theta. type: real. length: 32.")] + EntityOrientationTheta = 240024, + + /// + /// Entity Orientation Phi. type: real. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Entity Orientation Phi. type: real. length: 32.")] + EntityOrientationPhi = 240025, + + /// + /// Dead Reckoning Algorithm. type: integer. length: 8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Dead Reckoning Algorithm. type: integer. length: 8.")] + DeadReckoningAlgorithm = 240026, + + /// + /// Dead Reckoning Linear Acceleration X. type: real. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Dead Reckoning Linear Acceleration X. type: real. length: 32.")] + DeadReckoningLinearAccelerationX = 240027, + + /// + /// Dead Reckoning Linear Acceleration Y. type: real. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Dead Reckoning Linear Acceleration Y. type: real. length: 32.")] + DeadReckoningLinearAccelerationY = 240028, + + /// + /// Dead Reckoning Linear Acceleration Z. type: real. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Dead Reckoning Linear Acceleration Z. type: real. length: 32.")] + DeadReckoningLinearAccelerationZ = 240029, + + /// + /// Dead Reckoning Angular Velocity X. type: real. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Dead Reckoning Angular Velocity X. type: real. length: 32.")] + DeadReckoningAngularVelocityX = 240030, + + /// + /// Dead Reckoning Angular Velocity Y. type: real. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Dead Reckoning Angular Velocity Y. type: real. length: 32.")] + DeadReckoningAngularVelocityY = 240031, + + /// + /// Dead Reckoning Angular Velocity Z. type: real. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Dead Reckoning Angular Velocity Z. type: real. length: 32.")] + DeadReckoningAngularVelocityZ = 240032, + + /// + /// Entity Appearance. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Entity Appearance. type: integer. length: 32.")] + EntityAppearance = 240033, + + /// + /// Entity Marking Character Set. type: integer. length: 8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Entity Marking Character Set. type: integer. length: 8.")] + EntityMarkingCharacterSet = 240034, + + /// + /// Entity Marking 11 Bytes. type: character. length: 88. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Entity Marking 11 Bytes. type: character. length: 88.")] + EntityMarking11Bytes = 240035, + + /// + /// Capability. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Capability. type: integer. length: 32.")] + Capability = 240036, + + /// + /// Number Articulation Parameters. type: integer. length: 8. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Number Articulation Parameters. type: integer. length: 8.")] + NumberArticulationParameters = 240037, + + /// + /// Articulation Parameter ID. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Articulation Parameter ID. type: integer. length: 32.")] + ArticulationParameterID = 240038, + + /// + /// Articulation Parameter Type. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Articulation Parameter Type. type: integer. length: 32.")] + ArticulationParameterType_240039 = 240039, + + /// + /// Articulation Parameter Value. type: real. length: 64. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Articulation Parameter Value. type: real. length: 64.")] + ArticulationParameterValue_240040 = 240040, + + /// + /// Type Of Stores. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Type Of Stores. type: integer. length: 32.")] + TypeOfStores = 240041, + + /// + /// Quantity Of Stores. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Quantity Of Stores. type: integer. length: 32.")] + QuantityOfStores = 240042, + + /// + /// Fuel Quantity. type: real. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuel Quantity. type: real. length: 32.")] + FuelQuantity = 240043, + + /// + /// Radar System Status. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Radar System Status. type: integer. length: 32.")] + RadarSystemStatus = 240044, + + /// + /// Radio Communication System Status. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Radio Communication System Status. type: integer. length: 32.")] + RadioCommunicationSystemStatus = 240045, + + /// + /// Default Time For Radio Transmission For Stationary Transmitters. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Default Time For Radio Transmission For Stationary Transmitters. type: integer. length: 32.")] + DefaultTimeForRadioTransmissionForStationaryTransmitters = 240046, + + /// + /// Default Time For Radio Transmission For Moving Transmitters. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Default Time For Radio Transmission For Moving Transmitters. type: integer. length: 32.")] + DefaultTimeForRadioTransmissionForMovingTransmitters = 240047, + + /// + /// Body Part Damaged Ratio. type: real. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Body Part Damaged Ratio. type: real. length: 32.")] + BodyPartDamagedRatio = 240048, + + /// + /// Name Of The Terrain Database File. type: character. length: 00. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Name Of The Terrain Database File. type: character. length: 00.")] + NameOfTheTerrainDatabaseFile = 240049, + + /// + /// Name Of Local File. type: character. length: 00. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Name Of Local File. type: character. length: 00.")] + NameOfLocalFile = 240050, + + /// + /// Aimpoint Bearing. type: real. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Aimpoint Bearing. type: real. length: 32.")] + AimpointBearing = 240051, + + /// + /// Aimpoint Elevation. type: real. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Aimpoint Elevation. type: real. length: 32.")] + AimpointElevation = 240052, + + /// + /// Aimpoint Range. type: real. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Aimpoint Range. type: real. length: 32.")] + AimpointRange = 240053, + + /// + /// Air Speed. type: real. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Air Speed. type: real. length: 32.")] + AirSpeed = 240054, + + /// + /// Altitude. type: real. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Altitude. type: real. length: 32.")] + Altitude_240055 = 240055, + + /// + /// Application Status. type: structure. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Application Status. type: structure. length: 32.")] + ApplicationStatus = 240056, + + /// + /// Auto Iff. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Auto Iff. type: integer. length: 32.")] + AutoIff = 240057, + + /// + /// Beacon Delay. type: real. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Beacon Delay. type: real. length: 32.")] + BeaconDelay = 240058, + + /// + /// Bingo Fuel Setting. type: real. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Bingo Fuel Setting. type: real. length: 32.")] + BingoFuelSetting = 240059, + + /// + /// Cloud Bottom. type: real. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Cloud Bottom. type: real. length: 32.")] + CloudBottom = 240060, + + /// + /// Cloud Top. type: real. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Cloud Top. type: real. length: 32.")] + CloudTop = 240061, + + /// + /// Direction. type: real. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Direction. type: real. length: 32.")] + Direction = 240062, + + /// + /// End Action. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("End Action. type: integer. length: 32.")] + EndAction = 240063, + + /// + /// Frequency. type: real. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Frequency. type: real. length: 32.")] + Frequency = 240064, + + /// + /// Freeze. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Freeze. type: integer. length: 32.")] + Freeze = 240065, + + /// + /// Heading. type: real. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Heading. type: real. length: 32.")] + Heading = 240066, + + /// + /// Identification. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Identification. type: integer. length: 32.")] + Identification_240067 = 240067, + + /// + /// Initial Point Data. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Initial Point Data. type: integer. length: 32.")] + InitialPointData = 240068, + + /// + /// Latitude. type: real. length: 64. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Latitude. type: real. length: 64.")] + Latitude_240069 = 240069, + + /// + /// Lights. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Lights. type: integer. length: 32.")] + Lights_240070 = 240070, + + /// + /// Linear. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Linear. type: integer. length: 32.")] + Linear = 240071, + + /// + /// Longitude. type: real. length: 64. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Longitude. type: real. length: 64.")] + Longitude_240072 = 240072, + + /// + /// Low Altitude. type: real. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Low Altitude. type: real. length: 32.")] + LowAltitude = 240073, + + /// + /// Mfd Formats. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mfd Formats. type: integer. length: 32.")] + MfdFormats = 240074, + + /// + /// Nctr. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Nctr. type: integer. length: 32.")] + Nctr = 240075, + + /// + /// Number Projectiles. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Number Projectiles. type: integer. length: 32.")] + NumberProjectiles = 240076, + + /// + /// Operation Code. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Operation Code. type: integer. length: 32.")] + OperationCode = 240077, + + /// + /// Pitch. type: real. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Pitch. type: real. length: 32.")] + Pitch = 240078, + + /// + /// Profiles. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Profiles. type: integer. length: 32.")] + Profiles = 240079, + + /// + /// Quantity. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Quantity. type: integer. length: 32.")] + Quantity_240080 = 240080, + + /// + /// Radar Modes. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Radar Modes. type: integer. length: 32.")] + RadarModes = 240081, + + /// + /// Radar Search Volume. type: real. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Radar Search Volume. type: real. length: 32.")] + RadarSearchVolume = 240082, + + /// + /// Roll. type: real. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Roll. type: real. length: 32.")] + Roll = 240083, + + /// + /// Rotation. type: real. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Rotation. type: real. length: 32.")] + Rotation_240084 = 240084, + + /// + /// Scale Factor X. type: real. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Scale Factor X. type: real. length: 32.")] + ScaleFactorX = 240085, + + /// + /// Scale Factor Y. type: real. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Scale Factor Y. type: real. length: 32.")] + ScaleFactorY = 240086, + + /// + /// Shields. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Shields. type: integer. length: 32.")] + Shields = 240087, + + /// + /// Steerpoint. type: structure. length: 192. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Steerpoint. type: structure. length: 192.")] + Steerpoint = 240088, + + /// + /// Spare1. type: real. length: 64. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Spare1. type: real. length: 64.")] + Spare1 = 240089, + + /// + /// Spare2. type: real. length: 64. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Spare2. type: real. length: 64.")] + Spare2 = 240090, + + /// + /// Team. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Team. type: integer. length: 32.")] + Team = 240091, + + /// + /// Text. type: character. length: 00. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Text. type: character. length: 00.")] + Text = 240092, + + /// + /// Time Of Day. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Time Of Day. type: integer. length: 32.")] + TimeOfDay = 240093, + + /// + /// Trail Flag. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Trail Flag. type: integer. length: 32.")] + TrailFlag = 240094, + + /// + /// Trail Size. type: real. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Trail Size. type: real. length: 32.")] + TrailSize = 240095, + + /// + /// Type Of Projectile. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Type Of Projectile. type: integer. length: 32.")] + TypeOfProjectile = 240096, + + /// + /// Type Of Target. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Type Of Target. type: integer. length: 32.")] + TypeOfTarget = 240097, + + /// + /// Type Of Threat. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Type Of Threat. type: integer. length: 32.")] + TypeOfThreat = 240098, + + /// + /// Uhf Frequency. type: real. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Uhf Frequency. type: real. length: 32.")] + UhfFrequency = 240099, + + /// + /// Utm Altitude. type: real. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Utm Altitude. type: real. length: 32.")] + UtmAltitude = 240100, + + /// + /// Utm Latitude. type: real. length: 64. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Utm Latitude. type: real. length: 64.")] + UtmLatitude = 240101, + + /// + /// Utm Longitude. type: real. length: 64. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Utm Longitude. type: real. length: 64.")] + UtmLongitude = 240102, + + /// + /// Vhf Frequency. type: real. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Vhf Frequency. type: real. length: 32.")] + VhfFrequency = 240103, + + /// + /// Visibility Range. type: real. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Visibility Range. type: real. length: 32.")] + VisibilityRange = 240104, + + /// + /// Void Aaa Hit. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Void Aaa Hit. type: integer. length: 32.")] + VoidAaaHit = 240105, + + /// + /// Void Collision. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Void Collision. type: integer. length: 32.")] + VoidCollision = 240106, + + /// + /// Void Earth Hit. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Void Earth Hit. type: integer. length: 32.")] + VoidEarthHit = 240107, + + /// + /// Void Friendly. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Void Friendly. type: integer. length: 32.")] + VoidFriendly = 240108, + + /// + /// Void Gun Hit. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Void Gun Hit. type: integer. length: 32.")] + VoidGunHit = 240109, + + /// + /// Void Rocket Hit. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Void Rocket Hit. type: integer. length: 32.")] + VoidRocketHit = 240110, + + /// + /// Void Sam Hit. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Void Sam Hit. type: integer. length: 32.")] + VoidSamHit = 240111, + + /// + /// Weapon Data. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Weapon Data. type: integer. length: 32.")] + WeaponData = 240112, + + /// + /// Weapon Type. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Weapon Type. type: integer. length: 32.")] + WeaponType = 240113, + + /// + /// Weather. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Weather. type: integer. length: 32.")] + Weather_240114 = 240114, + + /// + /// Wind Direction. type: real. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Wind Direction. type: real. length: 32.")] + WindDirection_240115 = 240115, + + /// + /// Wind Speed. type: real. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Wind Speed. type: real. length: 32.")] + WindSpeed = 240116, + + /// + /// Wing Station. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Wing Station. type: integer. length: 32.")] + WingStation = 240117, + + /// + /// Yaw. type: real. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Yaw. type: real. length: 32.")] + Yaw = 240118, + + /// + /// Memory Offset. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Memory Offset. type: integer. length: 32.")] + MemoryOffset = 240119, + + /// + /// Memory Data. type: integer. length: 00. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Memory Data. type: integer. length: 00.")] + MemoryData = 240120, + + /// + /// VASI. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("VASI. type: integer. length: 32.")] + VASI = 240121, + + /// + /// Beacon. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Beacon. type: integer. length: 32.")] + Beacon = 240122, + + /// + /// Strobe. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Strobe. type: integer. length: 32.")] + Strobe = 240123, + + /// + /// Culture. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Culture. type: integer. length: 32.")] + Culture = 240124, + + /// + /// Approach. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Approach. type: integer. length: 32.")] + Approach = 240125, + + /// + /// Runway End. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Runway End. type: integer. length: 32.")] + RunwayEnd = 240126, + + /// + /// Obstruction. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Obstruction. type: integer. length: 32.")] + Obstruction = 240127, + + /// + /// Runway Edge. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Runway Edge. type: integer. length: 32.")] + RunwayEdge = 240128, + + /// + /// Ramp Taxiway. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ramp Taxiway. type: integer. length: 32.")] + RampTaxiway = 240129, + + /// + /// Laser Bomb Code. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Laser Bomb Code. type: integer. length: 32.")] + LaserBombCode = 240130, + + /// + /// Rack Type. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Rack Type. type: integer. length: 32.")] + RackType = 240131, + + /// + /// HUD. type: structure. length: 00. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HUD. type: structure. length: 00.")] + HUD = 240132, + + /// + /// RoleFileName. type: character. length: 00. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("RoleFileName. type: character. length: 00.")] + RoleFileName = 240133, + + /// + /// PilotName. type: character. length: 00. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("PilotName. type: character. length: 00.")] + PilotName = 240134, + + /// + /// PilotDesignation. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("PilotDesignation. type: integer. length: 32.")] + PilotDesignation = 240135, + + /// + /// Model Type. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Model Type. type: integer. length: 32.")] + ModelType = 240136, + + /// + /// DIS Type. type: integer. length: 64. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("DIS Type. type: integer. length: 64.")] + DISType = 240137, + + /// + /// Class. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Class. type: integer. length: 32.")] + Class = 240138, + + /// + /// Channel. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Channel. type: integer. length: 32.")] + Channel = 240139, + + /// + /// Entity Type. type: structure. length: 64. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Entity Type. type: structure. length: 64.")] + EntityType_240140 = 240140, + + /// + /// Alternative Entity Type. type: structure. length: 64. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Alternative Entity Type. type: structure. length: 64.")] + AlternativeEntityType_240141 = 240141, + + /// + /// Entity Location. type: structure. length: 192. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Entity Location. type: structure. length: 192.")] + EntityLocation = 240142, + + /// + /// Entity Linear Velocity. type: structure. length: 96. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Entity Linear Velocity. type: structure. length: 96.")] + EntityLinearVelocity = 240143, + + /// + /// Entity Orientation. type: structure. length: 96. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Entity Orientation. type: structure. length: 96.")] + EntityOrientation = 240144, + + /// + /// Dead Reckoning. type: structure. length: 320. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Dead Reckoning. type: structure. length: 320.")] + DeadReckoning = 240145, + + /// + /// Failure Symptom. type: integer. length: 32. range: 1=LimitSpeed, 2 =LimitGLoad, 3=Both. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Failure Symptom. type: integer. length: 32. range: 1=LimitSpeed, 2 =LimitGLoad, 3=Both.")] + FailureSymptom = 240146, + + /// + /// Max Fuel. type: real. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Max Fuel. type: real. length: 32.")] + MaxFuel = 240147, + + /// + /// Refueling Boom Connect. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Refueling Boom Connect. type: integer. length: 32.")] + RefuelingBoomConnect = 240148, + + /// + /// Altitude AGL. type: real. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Altitude AGL. type: real. length: 32.")] + AltitudeAGL = 240149, + + /// + /// Calibrated Airspeed. type: real. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Calibrated Airspeed. type: real. length: 32.")] + CalibratedAirspeed = 240150, + + /// + /// TACAN Channel. type: integer. length: 32. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TACAN Channel. type: integer. length: 32.")] + TACANChannel = 240151, + + /// + /// TACAN Band. type: integer. length: 32. range: 0 = x, 1 = y. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TACAN Band. type: integer. length: 32. range: 0 = x, 1 = y.")] + TACANBand = 240152, + + /// + /// TACAN Mode. type: integer. length: 32. range: 0 = off, 1 = rec, 2 = t/r, 3 = aa rec, 4 = aa t/r. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("TACAN Mode. type: integer. length: 32. range: 0 = off, 1 = rec, 2 = t/r, 3 = aa rec, 4 = aa t/r.")] + TACANMode = 240153 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/SimulationManagement/EventType.cs b/Libs/CsharpDis6/Enumerations/SimulationManagement/EventType.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/SimulationManagement/EventType.cs rename to Libs/CsharpDis6/Enumerations/SimulationManagement/EventType.cs index c2764eb..10ed7e6 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/SimulationManagement/EventType.cs +++ b/Libs/CsharpDis6/Enumerations/SimulationManagement/EventType.cs @@ -1,189 +1,189 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.SimulationManagement -{ - /// - /// Enumeration values for EventType (simman.eventreport.eventtype, Event Type, - /// section 7.6) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum EventType : uint - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Ran out of ammunition. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ran out of ammunition.")] - RanOutOfAmmunition = 2, - - /// - /// Killed in action. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Killed in action.")] - KilledInAction = 3, - - /// - /// Damage. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Damage.")] - Damage = 4, - - /// - /// Mobility disabled. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mobility disabled.")] - MobilityDisabled = 5, - - /// - /// Fire disabled. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fire disabled.")] - FireDisabled = 6, - - /// - /// Ran out of fuel. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ran out of fuel.")] - RanOutOfFuel = 7, - - /// - /// Entity initialization. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Entity initialization.")] - EntityInitialization = 8, - - /// - /// Request for indirect fire or CAS mission. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Request for indirect fire or CAS mission.")] - RequestForIndirectFireOrCASMission = 9, - - /// - /// Indirect fire or CAS fire. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Indirect fire or CAS fire.")] - IndirectFireOrCASFire = 10, - - /// - /// Minefield entry. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Minefield entry.")] - MinefieldEntry = 11, - - /// - /// Minefield detonation. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Minefield detonation.")] - MinefieldDetonation = 12, - - /// - /// Vehicle master power on. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Vehicle master power on.")] - VehicleMasterPowerOn = 13, - - /// - /// Vehicle master power off. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Vehicle master power off.")] - VehicleMasterPowerOff = 14, - - /// - /// Aggregate state change requested. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Aggregate state change requested.")] - AggregateStateChangeRequested = 15, - - /// - /// Prevent Collision / Detonation. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Prevent Collision / Detonation.")] - PreventCollisionDetonation = 16 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.SimulationManagement +{ + /// + /// Enumeration values for EventType (simman.eventreport.eventtype, Event Type, + /// section 7.6) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum EventType : uint + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Ran out of ammunition. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ran out of ammunition.")] + RanOutOfAmmunition = 2, + + /// + /// Killed in action. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Killed in action.")] + KilledInAction = 3, + + /// + /// Damage. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Damage.")] + Damage = 4, + + /// + /// Mobility disabled. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mobility disabled.")] + MobilityDisabled = 5, + + /// + /// Fire disabled. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fire disabled.")] + FireDisabled = 6, + + /// + /// Ran out of fuel. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ran out of fuel.")] + RanOutOfFuel = 7, + + /// + /// Entity initialization. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Entity initialization.")] + EntityInitialization = 8, + + /// + /// Request for indirect fire or CAS mission. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Request for indirect fire or CAS mission.")] + RequestForIndirectFireOrCASMission = 9, + + /// + /// Indirect fire or CAS fire. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Indirect fire or CAS fire.")] + IndirectFireOrCASFire = 10, + + /// + /// Minefield entry. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Minefield entry.")] + MinefieldEntry = 11, + + /// + /// Minefield detonation. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Minefield detonation.")] + MinefieldDetonation = 12, + + /// + /// Vehicle master power on. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Vehicle master power on.")] + VehicleMasterPowerOn = 13, + + /// + /// Vehicle master power off. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Vehicle master power off.")] + VehicleMasterPowerOff = 14, + + /// + /// Aggregate state change requested. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Aggregate state change requested.")] + AggregateStateChangeRequested = 15, + + /// + /// Prevent Collision / Detonation. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Prevent Collision / Detonation.")] + PreventCollisionDetonation = 16 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/SimulationManagement/FrozenBehavior.cs b/Libs/CsharpDis6/Enumerations/SimulationManagement/FrozenBehavior.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/SimulationManagement/FrozenBehavior.cs rename to Libs/CsharpDis6/Enumerations/SimulationManagement/FrozenBehavior.cs index 205c0c8..ef29dcc 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/SimulationManagement/FrozenBehavior.cs +++ b/Libs/CsharpDis6/Enumerations/SimulationManagement/FrozenBehavior.cs @@ -1,60 +1,60 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.SimulationManagement -{ - /// - /// Enumeration values for FrozenBehavior (simman.stop.frozenbehavior, Frozen Behavior, - /// section 7.2.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - [Flags] - public enum FrozenBehavior : byte - { - /// - /// Run internal simulation clock. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Run internal simulation clock.")] - SimulationClock = 1, - - /// - /// Transmit PDUs. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Transmit PDUs.")] - TransmitPDUs = 2, - - /// - /// Update simulation models of other entities via received PDUs. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Update simulation models of other entities via received PDUs.")] - ReceivePDUs = 4 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.SimulationManagement +{ + /// + /// Enumeration values for FrozenBehavior (simman.stop.frozenbehavior, Frozen Behavior, + /// section 7.2.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + [Flags] + public enum FrozenBehavior : byte + { + /// + /// Run internal simulation clock. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Run internal simulation clock.")] + SimulationClock = 1, + + /// + /// Transmit PDUs. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Transmit PDUs.")] + TransmitPDUs = 2, + + /// + /// Update simulation models of other entities via received PDUs. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Update simulation models of other entities via received PDUs.")] + ReceivePDUs = 4 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/SimulationManagement/RequiredReliabilityService.cs b/Libs/CsharpDis6/Enumerations/SimulationManagement/RequiredReliabilityService.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/SimulationManagement/RequiredReliabilityService.cs rename to Libs/CsharpDis6/Enumerations/SimulationManagement/RequiredReliabilityService.cs index 433dd40..bc7eb0f 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/SimulationManagement/RequiredReliabilityService.cs +++ b/Libs/CsharpDis6/Enumerations/SimulationManagement/RequiredReliabilityService.cs @@ -1,49 +1,49 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.SimulationManagement -{ - /// - /// Enumeration values for RequiredReliabilityService (simman.reliability.service, Required Reliability Service, - /// section 7.7.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum RequiredReliabilityService : byte - { - /// - /// Acknowledged. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Acknowledged.")] - Acknowledged = 0, - - /// - /// Unacknowledged. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Unacknowledged.")] - Unacknowledged = 1 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.SimulationManagement +{ + /// + /// Enumeration values for RequiredReliabilityService (simman.reliability.service, Required Reliability Service, + /// section 7.7.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum RequiredReliabilityService : byte + { + /// + /// Acknowledged. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Acknowledged.")] + Acknowledged = 0, + + /// + /// Unacknowledged. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Unacknowledged.")] + Unacknowledged = 1 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/SimulationManagement/ResponseFlag.cs b/Libs/CsharpDis6/Enumerations/SimulationManagement/ResponseFlag.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/SimulationManagement/ResponseFlag.cs rename to Libs/CsharpDis6/Enumerations/SimulationManagement/ResponseFlag.cs index 5297523..5d4fdf3 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/SimulationManagement/ResponseFlag.cs +++ b/Libs/CsharpDis6/Enumerations/SimulationManagement/ResponseFlag.cs @@ -1,59 +1,59 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.SimulationManagement -{ - /// - /// Enumeration values for ResponseFlag (simman.ack.responseflag, Response Flag, - /// section 7.3.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum ResponseFlag : ushort - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Able to comply. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Able to comply.")] - AbleToComply = 1, - - /// - /// Unable to comply. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Unable to comply.")] - UnableToComply = 2 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.SimulationManagement +{ + /// + /// Enumeration values for ResponseFlag (simman.ack.responseflag, Response Flag, + /// section 7.3.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum ResponseFlag : ushort + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Able to comply. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Able to comply.")] + AbleToComply = 1, + + /// + /// Unable to comply. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Unable to comply.")] + UnableToComply = 2 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/SimulationManagement/StopFreezeReason.cs b/Libs/CsharpDis6/Enumerations/SimulationManagement/StopFreezeReason.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/SimulationManagement/StopFreezeReason.cs rename to Libs/CsharpDis6/Enumerations/SimulationManagement/StopFreezeReason.cs index db86108..c165b25 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/SimulationManagement/StopFreezeReason.cs +++ b/Libs/CsharpDis6/Enumerations/SimulationManagement/StopFreezeReason.cs @@ -1,119 +1,119 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.SimulationManagement -{ - /// - /// Enumeration values for StopFreezeReason (simman.stop.reason, Reason, - /// section 7.2.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum StopFreezeReason : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Recess. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Recess.")] - Recess = 1, - - /// - /// Termination. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Termination.")] - Termination = 2, - - /// - /// System Failure. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("System Failure.")] - SystemFailure = 3, - - /// - /// Security Violation. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Security Violation.")] - SecurityViolation = 4, - - /// - /// Entity Reconstitution. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Entity Reconstitution.")] - EntityReconstitution = 5, - - /// - /// Stop for reset. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Stop for reset.")] - StopForReset = 6, - - /// - /// Stop for restart. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Stop for restart.")] - StopForRestart = 7, - - /// - /// Abort Training Return to Tactical Operations. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Abort Training Return to Tactical Operations.")] - AbortTrainingReturnToTacticalOperations = 8 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.SimulationManagement +{ + /// + /// Enumeration values for StopFreezeReason (simman.stop.reason, Reason, + /// section 7.2.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum StopFreezeReason : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Recess. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Recess.")] + Recess = 1, + + /// + /// Termination. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Termination.")] + Termination = 2, + + /// + /// System Failure. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("System Failure.")] + SystemFailure = 3, + + /// + /// Security Violation. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Security Violation.")] + SecurityViolation = 4, + + /// + /// Entity Reconstitution. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Entity Reconstitution.")] + EntityReconstitution = 5, + + /// + /// Stop for reset. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Stop for reset.")] + StopForReset = 6, + + /// + /// Stop for restart. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Stop for restart.")] + StopForRestart = 7, + + /// + /// Abort Training Return to Tactical Operations. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Abort Training Return to Tactical Operations.")] + AbortTrainingReturnToTacticalOperations = 8 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Warfare/DetonationResult.cs b/Libs/CsharpDis6/Enumerations/Warfare/DetonationResult.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Warfare/DetonationResult.cs rename to Libs/CsharpDis6/Enumerations/Warfare/DetonationResult.cs index 281058c..ed96b33 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Warfare/DetonationResult.cs +++ b/Libs/CsharpDis6/Enumerations/Warfare/DetonationResult.cs @@ -1,369 +1,369 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Warfare -{ - /// - /// Enumeration values for DetonationResult (warfare.detonationresult, Detonation Result, - /// section 5.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum DetonationResult : byte - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Entity Impact. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Entity Impact.")] - EntityImpact = 1, - - /// - /// Entity Proximate Detonation. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Entity Proximate Detonation.")] - EntityProximateDetonation = 2, - - /// - /// Ground Impact. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ground Impact.")] - GroundImpact = 3, - - /// - /// Ground Proximate Detonation. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ground Proximate Detonation.")] - GroundProximateDetonation = 4, - - /// - /// Detonation. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Detonation.")] - Detonation = 5, - - /// - /// None or No Detonation (Dud). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("None or No Detonation (Dud).")] - NoneOrNoDetonationDud = 6, - - /// - /// HE hit, small. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HE hit, small.")] - HEHitSmall = 7, - - /// - /// HE hit, medium. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HE hit, medium.")] - HEHitMedium = 8, - - /// - /// HE hit, large. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HE hit, large.")] - HEHitLarge = 9, - - /// - /// Armor-piercing hit. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Armor-piercing hit.")] - ArmorPiercingHit = 10, - - /// - /// Dirt blast, small. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Dirt blast, small.")] - DirtBlastSmall = 11, - - /// - /// Dirt blast, medium. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Dirt blast, medium.")] - DirtBlastMedium = 12, - - /// - /// Dirt blast, large. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Dirt blast, large.")] - DirtBlastLarge = 13, - - /// - /// Water blast, small. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Water blast, small.")] - WaterBlastSmall = 14, - - /// - /// Water blast, medium. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Water blast, medium.")] - WaterBlastMedium = 15, - - /// - /// Water blast, large. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Water blast, large.")] - WaterBlastLarge = 16, - - /// - /// Air hit. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Air hit.")] - AirHit = 17, - - /// - /// Building hit, small. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Building hit, small.")] - BuildingHitSmall = 18, - - /// - /// Building hit, medium. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Building hit, medium.")] - BuildingHitMedium = 19, - - /// - /// Building hit, large. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Building hit, large.")] - BuildingHitLarge = 20, - - /// - /// Mine-clearing line charge. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mine-clearing line charge.")] - MineClearingLineCharge = 21, - - /// - /// Environment object impact. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Environment object impact.")] - EnvironmentObjectImpact = 22, - - /// - /// Environment object proximate detonation. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Environment object proximate detonation.")] - EnvironmentObjectProximateDetonation = 23, - - /// - /// Water Impact. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Water Impact.")] - WaterImpact = 24, - - /// - /// Air Burst. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Air Burst.")] - AirBurst = 25, - - /// - /// Kill with fragment type 1. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Kill with fragment type 1.")] - KillWithFragmentType1 = 26, - - /// - /// Kill with fragment type 2. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Kill with fragment type 2.")] - KillWithFragmentType2 = 27, - - /// - /// Kill with fragment type 3. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Kill with fragment type 3.")] - KillWithFragmentType3 = 28, - - /// - /// Kill with fragment type 1 after fly-out failure. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Kill with fragment type 1 after fly-out failure.")] - KillWithFragmentType1AfterFlyOutFailure = 29, - - /// - /// Kill with fragment type 2 after fly-out failure. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Kill with fragment type 2 after fly-out failure.")] - KillWithFragmentType2AfterFlyOutFailure = 30, - - /// - /// Miss due to fly-out failure. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Miss due to fly-out failure.")] - MissDueToFlyOutFailure = 31, - - /// - /// Miss due to end-game failure. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Miss due to end-game failure.")] - MissDueToEndGameFailure = 32, - - /// - /// Miss due to fly-out and end-game failure. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Miss due to fly-out and end-game failure.")] - MissDueToFlyOutAndEndGameFailure = 33 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Warfare +{ + /// + /// Enumeration values for DetonationResult (warfare.detonationresult, Detonation Result, + /// section 5.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum DetonationResult : byte + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Entity Impact. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Entity Impact.")] + EntityImpact = 1, + + /// + /// Entity Proximate Detonation. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Entity Proximate Detonation.")] + EntityProximateDetonation = 2, + + /// + /// Ground Impact. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ground Impact.")] + GroundImpact = 3, + + /// + /// Ground Proximate Detonation. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ground Proximate Detonation.")] + GroundProximateDetonation = 4, + + /// + /// Detonation. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Detonation.")] + Detonation = 5, + + /// + /// None or No Detonation (Dud). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("None or No Detonation (Dud).")] + NoneOrNoDetonationDud = 6, + + /// + /// HE hit, small. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HE hit, small.")] + HEHitSmall = 7, + + /// + /// HE hit, medium. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HE hit, medium.")] + HEHitMedium = 8, + + /// + /// HE hit, large. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HE hit, large.")] + HEHitLarge = 9, + + /// + /// Armor-piercing hit. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Armor-piercing hit.")] + ArmorPiercingHit = 10, + + /// + /// Dirt blast, small. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Dirt blast, small.")] + DirtBlastSmall = 11, + + /// + /// Dirt blast, medium. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Dirt blast, medium.")] + DirtBlastMedium = 12, + + /// + /// Dirt blast, large. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Dirt blast, large.")] + DirtBlastLarge = 13, + + /// + /// Water blast, small. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Water blast, small.")] + WaterBlastSmall = 14, + + /// + /// Water blast, medium. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Water blast, medium.")] + WaterBlastMedium = 15, + + /// + /// Water blast, large. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Water blast, large.")] + WaterBlastLarge = 16, + + /// + /// Air hit. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Air hit.")] + AirHit = 17, + + /// + /// Building hit, small. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Building hit, small.")] + BuildingHitSmall = 18, + + /// + /// Building hit, medium. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Building hit, medium.")] + BuildingHitMedium = 19, + + /// + /// Building hit, large. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Building hit, large.")] + BuildingHitLarge = 20, + + /// + /// Mine-clearing line charge. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mine-clearing line charge.")] + MineClearingLineCharge = 21, + + /// + /// Environment object impact. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Environment object impact.")] + EnvironmentObjectImpact = 22, + + /// + /// Environment object proximate detonation. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Environment object proximate detonation.")] + EnvironmentObjectProximateDetonation = 23, + + /// + /// Water Impact. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Water Impact.")] + WaterImpact = 24, + + /// + /// Air Burst. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Air Burst.")] + AirBurst = 25, + + /// + /// Kill with fragment type 1. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Kill with fragment type 1.")] + KillWithFragmentType1 = 26, + + /// + /// Kill with fragment type 2. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Kill with fragment type 2.")] + KillWithFragmentType2 = 27, + + /// + /// Kill with fragment type 3. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Kill with fragment type 3.")] + KillWithFragmentType3 = 28, + + /// + /// Kill with fragment type 1 after fly-out failure. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Kill with fragment type 1 after fly-out failure.")] + KillWithFragmentType1AfterFlyOutFailure = 29, + + /// + /// Kill with fragment type 2 after fly-out failure. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Kill with fragment type 2 after fly-out failure.")] + KillWithFragmentType2AfterFlyOutFailure = 30, + + /// + /// Miss due to fly-out failure. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Miss due to fly-out failure.")] + MissDueToFlyOutFailure = 31, + + /// + /// Miss due to end-game failure. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Miss due to end-game failure.")] + MissDueToEndGameFailure = 32, + + /// + /// Miss due to fly-out and end-game failure. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Miss due to fly-out and end-game failure.")] + MissDueToFlyOutAndEndGameFailure = 33 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Warfare/Fuse.cs b/Libs/CsharpDis6/Enumerations/Warfare/Fuse.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Warfare/Fuse.cs rename to Libs/CsharpDis6/Enumerations/Warfare/Fuse.cs index 75a3f5f..c04c128 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Warfare/Fuse.cs +++ b/Libs/CsharpDis6/Enumerations/Warfare/Fuse.cs @@ -1,989 +1,989 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Warfare -{ - /// - /// Enumeration values for Fuse (warfare.burstdescriptor.fuse, Fuse (detonator), - /// section 5.1.2) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum Fuse : ushort - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Intelligent Influence. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Intelligent Influence.")] - IntelligentInfluence = 10, - - /// - /// Sensor. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Sensor.")] - Sensor = 20, - - /// - /// Self-destruct. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Self-destruct.")] - SelfDestruct = 30, - - /// - /// Ultra Quick. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Ultra Quick.")] - UltraQuick = 40, - - /// - /// Body. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Body.")] - Body = 50, - - /// - /// Deep Intrusion. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Deep Intrusion.")] - DeepIntrusion = 60, - - /// - /// Multifunction. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Multifunction.")] - Multifunction = 100, - - /// - /// Point Detonation (PD). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Point Detonation (PD).")] - PointDetonationPD = 200, - - /// - /// Base Detonation (BD). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Base Detonation (BD).")] - BaseDetonationBD = 300, - - /// - /// Contact. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Contact.")] - Contact = 1000, - - /// - /// Contact, Instant (Impact). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Contact, Instant (Impact).")] - ContactInstantImpact = 1100, - - /// - /// Contact, Delayed. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Contact, Delayed.")] - ContactDelayed = 1200, - - /// - /// 10 ms delay. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("10 ms delay.")] - _10MsDelay = 1201, - - /// - /// 20 ms delay. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("20 ms delay.")] - _20MsDelay = 1202, - - /// - /// 50 ms delay. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("50 ms delay.")] - _50MsDelay = 1205, - - /// - /// 60 ms delay. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("60 ms delay.")] - _60MsDelay = 1206, - - /// - /// 100 ms delay. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("100 ms delay.")] - _100MsDelay = 1210, - - /// - /// 125 ms delay. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("125 ms delay.")] - _125MsDelay = 1212, - - /// - /// 250 ms delay. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("250 ms delay.")] - _250MsDelay = 1225, - - /// - /// Contact, Electronic (Oblique Contact). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Contact, Electronic (Oblique Contact).")] - ContactElectronicObliqueContact = 1300, - - /// - /// Contact, Graze. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Contact, Graze.")] - ContactGraze = 1400, - - /// - /// Contact, Crush. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Contact, Crush.")] - ContactCrush = 1500, - - /// - /// Contact, Hydrostatic. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Contact, Hydrostatic.")] - ContactHydrostatic = 1600, - - /// - /// Contact, Mechanical. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Contact, Mechanical.")] - ContactMechanical = 1700, - - /// - /// Contact, Chemical. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Contact, Chemical.")] - ContactChemical = 1800, - - /// - /// Contact, Piezoelectric. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Contact, Piezoelectric.")] - ContactPiezoelectric = 1900, - - /// - /// Contact, Point Initiating. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Contact, Point Initiating.")] - ContactPointInitiating = 1910, - - /// - /// Contact, Point Initiating, Base Detonating. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Contact, Point Initiating, Base Detonating.")] - ContactPointInitiatingBaseDetonating = 1920, - - /// - /// Contact, Base Detonating. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Contact, Base Detonating.")] - ContactBaseDetonating = 1930, - - /// - /// Contact, Ballistic Cap and Base. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Contact, Ballistic Cap and Base.")] - ContactBallisticCapAndBase = 1940, - - /// - /// Contact, Base. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Contact, Base.")] - ContactBase = 1950, - - /// - /// Contact, Nose. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Contact, Nose.")] - ContactNose = 1960, - - /// - /// Contact, Fitted in Standoff Probe. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Contact, Fitted in Standoff Probe.")] - ContactFittedInStandoffProbe = 1970, - - /// - /// Contact, Non-aligned. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Contact, Non-aligned.")] - ContactNonAligned = 1980, - - /// - /// Timed. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Timed.")] - Timed = 2000, - - /// - /// Timed, Programmable. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Timed, Programmable.")] - TimedProgrammable = 2100, - - /// - /// Timed, Burnout. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Timed, Burnout.")] - TimedBurnout = 2200, - - /// - /// Timed, Pyrotechnic. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Timed, Pyrotechnic.")] - TimedPyrotechnic = 2300, - - /// - /// Timed, Electronic. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Timed, Electronic.")] - TimedElectronic = 2400, - - /// - /// Timed, Base Delay. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Timed, Base Delay.")] - TimedBaseDelay = 2500, - - /// - /// Timed, Reinforced Nose Impact Delay. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Timed, Reinforced Nose Impact Delay.")] - TimedReinforcedNoseImpactDelay = 2600, - - /// - /// Timed, Short Delay Impact. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Timed, Short Delay Impact.")] - TimedShortDelayImpact = 2700, - - /// - /// 10 ms delay. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("10 ms delay.")] - _10MsDelay_2701 = 2701, - - /// - /// 20 ms delay. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("20 ms delay.")] - _20MsDelay_2702 = 2702, - - /// - /// 50 ms delay. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("50 ms delay.")] - _50MsDelay_2705 = 2705, - - /// - /// 60 ms delay. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("60 ms delay.")] - _60MsDelay_2706 = 2706, - - /// - /// 100 ms delay. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("100 ms delay.")] - _100MsDelay_2710 = 2710, - - /// - /// 125 ms delay. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("125 ms delay.")] - _125MsDelay_2712 = 2712, - - /// - /// 250 ms delay. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("250 ms delay.")] - _250MsDelay_2725 = 2725, - - /// - /// Timed, Nose Mounted Variable Delay. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Timed, Nose Mounted Variable Delay.")] - TimedNoseMountedVariableDelay = 2800, - - /// - /// Timed, Long Delay Side. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Timed, Long Delay Side.")] - TimedLongDelaySide = 2900, - - /// - /// Timed, Selectable Delay. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Timed, Selectable Delay.")] - TimedSelectableDelay = 2910, - - /// - /// Timed, Impact. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Timed, Impact.")] - TimedImpact = 2920, - - /// - /// Timed, Sequence. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Timed, Sequence.")] - TimedSequence = 2930, - - /// - /// Proximity. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Proximity.")] - Proximity = 3000, - - /// - /// Proximity, Active Laser. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Proximity, Active Laser.")] - ProximityActiveLaser = 3100, - - /// - /// Proximity, Magnetic (Magpolarity). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Proximity, Magnetic (Magpolarity).")] - ProximityMagneticMagpolarity = 3200, - - /// - /// Proximity, Active Radar (Doppler Radar). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Proximity, Active Radar (Doppler Radar).")] - ProximityActiveRadarDopplerRadar = 3300, - - /// - /// Proximity, Radio Frequency (RF). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Proximity, Radio Frequency (RF).")] - ProximityRadioFrequencyRF = 3400, - - /// - /// Proximity, Programmable. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Proximity, Programmable.")] - ProximityProgrammable = 3500, - - /// - /// Proximity, Programmable, Prefragmented. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Proximity, Programmable, Prefragmented.")] - ProximityProgrammablePrefragmented = 3600, - - /// - /// Proximity, Infrared. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Proximity, Infrared.")] - ProximityInfrared = 3700, - - /// - /// Command. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Command.")] - Command = 4000, - - /// - /// Command, Electronic, Remotely Set. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Command, Electronic, Remotely Set.")] - CommandElectronicRemotelySet = 4100, - - /// - /// Altitude. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Altitude.")] - Altitude = 5000, - - /// - /// Altitude, Radio Altimeter. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Altitude, Radio Altimeter.")] - AltitudeRadioAltimeter = 5100, - - /// - /// Altitude, Air Burst. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Altitude, Air Burst.")] - AltitudeAirBurst = 5200, - - /// - /// Depth. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Depth.")] - Depth = 6000, - - /// - /// Acoustic. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Acoustic.")] - Acoustic = 7000, - - /// - /// Pressure. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Pressure.")] - Pressure = 8000, - - /// - /// Pressure, Delay. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Pressure, Delay.")] - PressureDelay = 8010, - - /// - /// Inert. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Inert.")] - Inert = 8100, - - /// - /// Dummy. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Dummy.")] - Dummy = 8110, - - /// - /// Practice. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Practice.")] - Practice = 8120, - - /// - /// Plug Representing. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Plug Representing.")] - PlugRepresenting = 8130, - - /// - /// Training. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Training.")] - Training = 8150, - - /// - /// Pyrotechnic. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Pyrotechnic.")] - Pyrotechnic = 9000, - - /// - /// Pyrotechnic, Delay. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Pyrotechnic, Delay.")] - PyrotechnicDelay = 9010, - - /// - /// Electro-optical. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Electro-optical.")] - ElectroOptical = 9100, - - /// - /// Electromechanical. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Electromechanical.")] - Electromechanical = 9110, - - /// - /// Electromechanical, Nose. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Electromechanical, Nose.")] - ElectromechanicalNose = 9120, - - /// - /// Strikerless. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Strikerless.")] - Strikerless = 9200, - - /// - /// Strikerless, Nose Impact. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Strikerless, Nose Impact.")] - StrikerlessNoseImpact = 9210, - - /// - /// Strikerless, Compression-Ignition. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Strikerless, Compression-Ignition.")] - StrikerlessCompressionIgnition = 9220, - - /// - /// Compression-Ignition. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Compression-Ignition.")] - CompressionIgnition = 9300, - - /// - /// Compression-Ignition, Strikerless, Nose Impact. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Compression-Ignition, Strikerless, Nose Impact.")] - CompressionIgnitionStrikerlessNoseImpact = 9310, - - /// - /// Percussion. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Percussion.")] - Percussion = 9400, - - /// - /// Percussion, Instantaneous. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Percussion, Instantaneous.")] - PercussionInstantaneous = 9410, - - /// - /// Electronic. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Electronic.")] - Electronic = 9500, - - /// - /// Electronic, Internally Mounted. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Electronic, Internally Mounted.")] - ElectronicInternallyMounted = 9510, - - /// - /// Electronic, Range Setting. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Electronic, Range Setting.")] - ElectronicRangeSetting = 9520, - - /// - /// Electronic, Programmed. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Electronic, Programmed.")] - ElectronicProgrammed = 9530, - - /// - /// Mechanical. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mechanical.")] - Mechanical = 9600, - - /// - /// Mechanical, Nose. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mechanical, Nose.")] - MechanicalNose = 9610, - - /// - /// Mechanical, Tail. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mechanical, Tail.")] - MechanicalTail = 9620 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Warfare +{ + /// + /// Enumeration values for Fuse (warfare.burstdescriptor.fuse, Fuse (detonator), + /// section 5.1.2) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum Fuse : ushort + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Intelligent Influence. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Intelligent Influence.")] + IntelligentInfluence = 10, + + /// + /// Sensor. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Sensor.")] + Sensor = 20, + + /// + /// Self-destruct. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Self-destruct.")] + SelfDestruct = 30, + + /// + /// Ultra Quick. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Ultra Quick.")] + UltraQuick = 40, + + /// + /// Body. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Body.")] + Body = 50, + + /// + /// Deep Intrusion. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Deep Intrusion.")] + DeepIntrusion = 60, + + /// + /// Multifunction. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Multifunction.")] + Multifunction = 100, + + /// + /// Point Detonation (PD). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Point Detonation (PD).")] + PointDetonationPD = 200, + + /// + /// Base Detonation (BD). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Base Detonation (BD).")] + BaseDetonationBD = 300, + + /// + /// Contact. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Contact.")] + Contact = 1000, + + /// + /// Contact, Instant (Impact). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Contact, Instant (Impact).")] + ContactInstantImpact = 1100, + + /// + /// Contact, Delayed. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Contact, Delayed.")] + ContactDelayed = 1200, + + /// + /// 10 ms delay. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("10 ms delay.")] + _10MsDelay = 1201, + + /// + /// 20 ms delay. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("20 ms delay.")] + _20MsDelay = 1202, + + /// + /// 50 ms delay. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("50 ms delay.")] + _50MsDelay = 1205, + + /// + /// 60 ms delay. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("60 ms delay.")] + _60MsDelay = 1206, + + /// + /// 100 ms delay. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("100 ms delay.")] + _100MsDelay = 1210, + + /// + /// 125 ms delay. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("125 ms delay.")] + _125MsDelay = 1212, + + /// + /// 250 ms delay. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("250 ms delay.")] + _250MsDelay = 1225, + + /// + /// Contact, Electronic (Oblique Contact). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Contact, Electronic (Oblique Contact).")] + ContactElectronicObliqueContact = 1300, + + /// + /// Contact, Graze. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Contact, Graze.")] + ContactGraze = 1400, + + /// + /// Contact, Crush. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Contact, Crush.")] + ContactCrush = 1500, + + /// + /// Contact, Hydrostatic. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Contact, Hydrostatic.")] + ContactHydrostatic = 1600, + + /// + /// Contact, Mechanical. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Contact, Mechanical.")] + ContactMechanical = 1700, + + /// + /// Contact, Chemical. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Contact, Chemical.")] + ContactChemical = 1800, + + /// + /// Contact, Piezoelectric. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Contact, Piezoelectric.")] + ContactPiezoelectric = 1900, + + /// + /// Contact, Point Initiating. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Contact, Point Initiating.")] + ContactPointInitiating = 1910, + + /// + /// Contact, Point Initiating, Base Detonating. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Contact, Point Initiating, Base Detonating.")] + ContactPointInitiatingBaseDetonating = 1920, + + /// + /// Contact, Base Detonating. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Contact, Base Detonating.")] + ContactBaseDetonating = 1930, + + /// + /// Contact, Ballistic Cap and Base. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Contact, Ballistic Cap and Base.")] + ContactBallisticCapAndBase = 1940, + + /// + /// Contact, Base. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Contact, Base.")] + ContactBase = 1950, + + /// + /// Contact, Nose. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Contact, Nose.")] + ContactNose = 1960, + + /// + /// Contact, Fitted in Standoff Probe. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Contact, Fitted in Standoff Probe.")] + ContactFittedInStandoffProbe = 1970, + + /// + /// Contact, Non-aligned. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Contact, Non-aligned.")] + ContactNonAligned = 1980, + + /// + /// Timed. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Timed.")] + Timed = 2000, + + /// + /// Timed, Programmable. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Timed, Programmable.")] + TimedProgrammable = 2100, + + /// + /// Timed, Burnout. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Timed, Burnout.")] + TimedBurnout = 2200, + + /// + /// Timed, Pyrotechnic. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Timed, Pyrotechnic.")] + TimedPyrotechnic = 2300, + + /// + /// Timed, Electronic. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Timed, Electronic.")] + TimedElectronic = 2400, + + /// + /// Timed, Base Delay. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Timed, Base Delay.")] + TimedBaseDelay = 2500, + + /// + /// Timed, Reinforced Nose Impact Delay. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Timed, Reinforced Nose Impact Delay.")] + TimedReinforcedNoseImpactDelay = 2600, + + /// + /// Timed, Short Delay Impact. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Timed, Short Delay Impact.")] + TimedShortDelayImpact = 2700, + + /// + /// 10 ms delay. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("10 ms delay.")] + _10MsDelay_2701 = 2701, + + /// + /// 20 ms delay. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("20 ms delay.")] + _20MsDelay_2702 = 2702, + + /// + /// 50 ms delay. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("50 ms delay.")] + _50MsDelay_2705 = 2705, + + /// + /// 60 ms delay. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("60 ms delay.")] + _60MsDelay_2706 = 2706, + + /// + /// 100 ms delay. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("100 ms delay.")] + _100MsDelay_2710 = 2710, + + /// + /// 125 ms delay. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("125 ms delay.")] + _125MsDelay_2712 = 2712, + + /// + /// 250 ms delay. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("250 ms delay.")] + _250MsDelay_2725 = 2725, + + /// + /// Timed, Nose Mounted Variable Delay. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Timed, Nose Mounted Variable Delay.")] + TimedNoseMountedVariableDelay = 2800, + + /// + /// Timed, Long Delay Side. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Timed, Long Delay Side.")] + TimedLongDelaySide = 2900, + + /// + /// Timed, Selectable Delay. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Timed, Selectable Delay.")] + TimedSelectableDelay = 2910, + + /// + /// Timed, Impact. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Timed, Impact.")] + TimedImpact = 2920, + + /// + /// Timed, Sequence. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Timed, Sequence.")] + TimedSequence = 2930, + + /// + /// Proximity. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Proximity.")] + Proximity = 3000, + + /// + /// Proximity, Active Laser. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Proximity, Active Laser.")] + ProximityActiveLaser = 3100, + + /// + /// Proximity, Magnetic (Magpolarity). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Proximity, Magnetic (Magpolarity).")] + ProximityMagneticMagpolarity = 3200, + + /// + /// Proximity, Active Radar (Doppler Radar). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Proximity, Active Radar (Doppler Radar).")] + ProximityActiveRadarDopplerRadar = 3300, + + /// + /// Proximity, Radio Frequency (RF). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Proximity, Radio Frequency (RF).")] + ProximityRadioFrequencyRF = 3400, + + /// + /// Proximity, Programmable. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Proximity, Programmable.")] + ProximityProgrammable = 3500, + + /// + /// Proximity, Programmable, Prefragmented. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Proximity, Programmable, Prefragmented.")] + ProximityProgrammablePrefragmented = 3600, + + /// + /// Proximity, Infrared. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Proximity, Infrared.")] + ProximityInfrared = 3700, + + /// + /// Command. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Command.")] + Command = 4000, + + /// + /// Command, Electronic, Remotely Set. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Command, Electronic, Remotely Set.")] + CommandElectronicRemotelySet = 4100, + + /// + /// Altitude. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Altitude.")] + Altitude = 5000, + + /// + /// Altitude, Radio Altimeter. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Altitude, Radio Altimeter.")] + AltitudeRadioAltimeter = 5100, + + /// + /// Altitude, Air Burst. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Altitude, Air Burst.")] + AltitudeAirBurst = 5200, + + /// + /// Depth. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Depth.")] + Depth = 6000, + + /// + /// Acoustic. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Acoustic.")] + Acoustic = 7000, + + /// + /// Pressure. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Pressure.")] + Pressure = 8000, + + /// + /// Pressure, Delay. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Pressure, Delay.")] + PressureDelay = 8010, + + /// + /// Inert. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Inert.")] + Inert = 8100, + + /// + /// Dummy. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Dummy.")] + Dummy = 8110, + + /// + /// Practice. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Practice.")] + Practice = 8120, + + /// + /// Plug Representing. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Plug Representing.")] + PlugRepresenting = 8130, + + /// + /// Training. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Training.")] + Training = 8150, + + /// + /// Pyrotechnic. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Pyrotechnic.")] + Pyrotechnic = 9000, + + /// + /// Pyrotechnic, Delay. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Pyrotechnic, Delay.")] + PyrotechnicDelay = 9010, + + /// + /// Electro-optical. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Electro-optical.")] + ElectroOptical = 9100, + + /// + /// Electromechanical. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Electromechanical.")] + Electromechanical = 9110, + + /// + /// Electromechanical, Nose. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Electromechanical, Nose.")] + ElectromechanicalNose = 9120, + + /// + /// Strikerless. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Strikerless.")] + Strikerless = 9200, + + /// + /// Strikerless, Nose Impact. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Strikerless, Nose Impact.")] + StrikerlessNoseImpact = 9210, + + /// + /// Strikerless, Compression-Ignition. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Strikerless, Compression-Ignition.")] + StrikerlessCompressionIgnition = 9220, + + /// + /// Compression-Ignition. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Compression-Ignition.")] + CompressionIgnition = 9300, + + /// + /// Compression-Ignition, Strikerless, Nose Impact. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Compression-Ignition, Strikerless, Nose Impact.")] + CompressionIgnitionStrikerlessNoseImpact = 9310, + + /// + /// Percussion. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Percussion.")] + Percussion = 9400, + + /// + /// Percussion, Instantaneous. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Percussion, Instantaneous.")] + PercussionInstantaneous = 9410, + + /// + /// Electronic. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Electronic.")] + Electronic = 9500, + + /// + /// Electronic, Internally Mounted. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Electronic, Internally Mounted.")] + ElectronicInternallyMounted = 9510, + + /// + /// Electronic, Range Setting. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Electronic, Range Setting.")] + ElectronicRangeSetting = 9520, + + /// + /// Electronic, Programmed. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Electronic, Programmed.")] + ElectronicProgrammed = 9530, + + /// + /// Mechanical. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mechanical.")] + Mechanical = 9600, + + /// + /// Mechanical, Nose. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mechanical, Nose.")] + MechanicalNose = 9610, + + /// + /// Mechanical, Tail. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mechanical, Tail.")] + MechanicalTail = 9620 + } +} diff --git a/Libs/CsharpDis6/OpenDis/Enumerations/Warfare/Warhead.cs b/Libs/CsharpDis6/Enumerations/Warfare/Warhead.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Enumerations/Warfare/Warhead.cs rename to Libs/CsharpDis6/Enumerations/Warfare/Warhead.cs index 19fc8e2..f4e8142 100644 --- a/Libs/CsharpDis6/OpenDis/Enumerations/Warfare/Warhead.cs +++ b/Libs/CsharpDis6/Enumerations/Warfare/Warhead.cs @@ -1,709 +1,709 @@ -// Copyright 2008-2011. This work is licensed under the BSD license, available at -// http://www.movesinstitute.org/licenses -// -// Orignal authors: DMcG, Jason Nelson -// Modified for use with C#: -// - Peter Smith (Naval Air Warfare Center - Training Systems Division) -// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; - -namespace OpenDis.Enumerations.Warfare -{ - /// - /// Enumeration values for Warhead (warfare.burstdescriptor.warhead, Warhead, - /// section 5.1.1) - /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was - /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Serializable] - public enum Warhead : ushort - { - /// - /// Other. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Other.")] - Other = 0, - - /// - /// Cargo (Variable Submunitions). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Cargo (Variable Submunitions).")] - CargoVariableSubmunitions = 10, - - /// - /// Fuel/Air Explosive. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Fuel/Air Explosive.")] - FuelAirExplosive = 20, - - /// - /// Glass Beads. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Glass Beads.")] - GlassBeads = 30, - - /// - /// 1 um. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("1 um.")] - _1Um = 31, - - /// - /// 5 um. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("5 um.")] - _5Um = 32, - - /// - /// 10 um. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("10 um.")] - _10Um = 33, - - /// - /// High Explosive (HE). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("High Explosive (HE).")] - HighExplosiveHE = 1000, - - /// - /// HE, Plastic. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HE, Plastic.")] - HEPlastic = 1100, - - /// - /// HE, Incendiary. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HE, Incendiary.")] - HEIncendiary = 1200, - - /// - /// HE, Fragmentation. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HE, Fragmentation.")] - HEFragmentation = 1300, - - /// - /// HE, Antitank. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HE, Antitank.")] - HEAntitank = 1400, - - /// - /// HE, Bomblets. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HE, Bomblets.")] - HEBomblets = 1500, - - /// - /// HE, Shaped Charge. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HE, Shaped Charge.")] - HEShapedCharge = 1600, - - /// - /// HE, Continuous Rod. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HE, Continuous Rod.")] - HEContinuousRod = 1610, - - /// - /// HE, Tungsten Ball. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HE, Tungsten Ball.")] - HETungstenBall = 1615, - - /// - /// HE, Blast Fragmentation. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HE, Blast Fragmentation.")] - HEBlastFragmentation = 1620, - - /// - /// HE, Steerable Darts with HE. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HE, Steerable Darts with HE.")] - HESteerableDartsWithHE = 1625, - - /// - /// HE, Darts. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HE, Darts.")] - HEDarts = 1630, - - /// - /// HE, Flechettes. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HE, Flechettes.")] - HEFlechettes = 1635, - - /// - /// HE, Directed Fragmentation. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HE, Directed Fragmentation.")] - HEDirectedFragmentation = 1640, - - /// - /// HE, Semi-Armor Piercing (SAP). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HE, Semi-Armor Piercing (SAP).")] - HESemiArmorPiercingSAP = 1645, - - /// - /// HE, Shaped Charge Fragmentation. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HE, Shaped Charge Fragmentation.")] - HEShapedChargeFragmentation = 1650, - - /// - /// HE, Semi-Armor Piercing, Fragmentation. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HE, Semi-Armor Piercing, Fragmentation.")] - HESemiArmorPiercingFragmentation = 1655, - - /// - /// HE, Hollow Charge. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HE, Hollow Charge.")] - HEHollowCharge = 1660, - - /// - /// HE, Double Hollow Charge. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HE, Double Hollow Charge.")] - HEDoubleHollowCharge = 1665, - - /// - /// HE, General Purpose. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HE, General Purpose.")] - HEGeneralPurpose = 1670, - - /// - /// HE, Blast Penetrator. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HE, Blast Penetrator.")] - HEBlastPenetrator = 1675, - - /// - /// HE, Rod Penetrator. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HE, Rod Penetrator.")] - HERodPenetrator = 1680, - - /// - /// HE, Antipersonnel. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HE, Antipersonnel.")] - HEAntipersonnel = 1685, - - /// - /// Smoke. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Smoke.")] - Smoke = 2000, - - /// - /// Illumination. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Illumination.")] - Illumination = 3000, - - /// - /// Practice. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Practice.")] - Practice = 4000, - - /// - /// Kinetic. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Kinetic.")] - Kinetic = 5000, - - /// - /// Mines. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Mines.")] - Mines = 6000, - - /// - /// Nuclear. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Nuclear.")] - Nuclear = 7000, - - /// - /// Nuclear, IMT. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Nuclear, IMT.")] - NuclearIMT = 7010, - - /// - /// Chemical, General. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Chemical, General.")] - ChemicalGeneral = 8000, - - /// - /// Chemical, Blister Agent. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Chemical, Blister Agent.")] - ChemicalBlisterAgent = 8100, - - /// - /// HD (Mustard). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("HD (Mustard).")] - HDMustard = 8110, - - /// - /// Thickened HD (Mustard). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Thickened HD (Mustard).")] - ThickenedHDMustard = 8115, - - /// - /// Dusty HD (Mustard). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Dusty HD (Mustard).")] - DustyHDMustard = 8120, - - /// - /// Chemical, Blood Agent. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Chemical, Blood Agent.")] - ChemicalBloodAgent = 8200, - - /// - /// AC (HCN). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("AC (HCN).")] - ACHCN = 8210, - - /// - /// CK (CNCI). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("CK (CNCI).")] - CKCNCI = 8215, - - /// - /// CG (Phosgene). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("CG (Phosgene).")] - CGPhosgene = 8220, - - /// - /// Chemical, Nerve Agent. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Chemical, Nerve Agent.")] - ChemicalNerveAgent = 8300, - - /// - /// VX. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("VX.")] - VX = 8310, - - /// - /// Thickened VX. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Thickened VX.")] - ThickenedVX = 8315, - - /// - /// Dusty VX. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Dusty VX.")] - DustyVX = 8320, - - /// - /// GA (Tabun). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("GA (Tabun).")] - GATabun = 8325, - - /// - /// Thickened GA (Tabun). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Thickened GA (Tabun).")] - ThickenedGATabun = 8330, - - /// - /// Dusty GA (Tabun). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Dusty GA (Tabun).")] - DustyGATabun = 8335, - - /// - /// GB (Sarin). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("GB (Sarin).")] - GBSarin = 8340, - - /// - /// Thickened GB (Sarin). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Thickened GB (Sarin).")] - ThickenedGBSarin = 8345, - - /// - /// Dusty GB (Sarin). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Dusty GB (Sarin).")] - DustyGBSarin = 8350, - - /// - /// GD (Soman). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("GD (Soman).")] - GDSoman = 8355, - - /// - /// Thickened GD (Soman). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Thickened GD (Soman).")] - ThickenedGDSoman = 8360, - - /// - /// Dusty GD (Soman). - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Dusty GD (Soman).")] - DustyGDSoman = 8365, - - /// - /// GF. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("GF.")] - GF = 8370, - - /// - /// Thickened GF. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Thickened GF.")] - ThickenedGF = 8375, - - /// - /// Dusty GF. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Dusty GF.")] - DustyGF = 8380, - - /// - /// Biological. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Biological.")] - Biological = 9000, - - /// - /// Biological, Virus. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Biological, Virus.")] - BiologicalVirus = 9100, - - /// - /// Biological, Bacteria. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Biological, Bacteria.")] - BiologicalBacteria = 9200, - - /// - /// Biological, Rickettsia. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Biological, Rickettsia.")] - BiologicalRickettsia = 9300, - - /// - /// Biological, Genetically Modified Micro-organisms. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Biological, Genetically Modified Micro-organisms.")] - BiologicalGeneticallyModifiedMicroOrganisms = 9400, - - /// - /// Biological, Toxin. - /// - [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] - [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] - [Description("Biological, Toxin.")] - BiologicalToxin = 9500 - } -} +// Copyright 2008-2011. This work is licensed under the BSD license, available at +// http://www.movesinstitute.org/licenses +// +// Orignal authors: DMcG, Jason Nelson +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Reflection; + +namespace OpenDis.Enumerations.Warfare +{ + /// + /// Enumeration values for Warhead (warfare.burstdescriptor.warhead, Warhead, + /// section 5.1.1) + /// The enumeration values are generated from the SISO DIS XML EBV document (R35), which was + /// obtained from http://discussions.sisostds.org/default.asp?action=10&fd=31 + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Serializable] + public enum Warhead : ushort + { + /// + /// Other. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Other.")] + Other = 0, + + /// + /// Cargo (Variable Submunitions). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Cargo (Variable Submunitions).")] + CargoVariableSubmunitions = 10, + + /// + /// Fuel/Air Explosive. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Fuel/Air Explosive.")] + FuelAirExplosive = 20, + + /// + /// Glass Beads. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Glass Beads.")] + GlassBeads = 30, + + /// + /// 1 um. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("1 um.")] + _1Um = 31, + + /// + /// 5 um. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("5 um.")] + _5Um = 32, + + /// + /// 10 um. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("10 um.")] + _10Um = 33, + + /// + /// High Explosive (HE). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("High Explosive (HE).")] + HighExplosiveHE = 1000, + + /// + /// HE, Plastic. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HE, Plastic.")] + HEPlastic = 1100, + + /// + /// HE, Incendiary. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HE, Incendiary.")] + HEIncendiary = 1200, + + /// + /// HE, Fragmentation. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HE, Fragmentation.")] + HEFragmentation = 1300, + + /// + /// HE, Antitank. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HE, Antitank.")] + HEAntitank = 1400, + + /// + /// HE, Bomblets. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HE, Bomblets.")] + HEBomblets = 1500, + + /// + /// HE, Shaped Charge. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HE, Shaped Charge.")] + HEShapedCharge = 1600, + + /// + /// HE, Continuous Rod. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HE, Continuous Rod.")] + HEContinuousRod = 1610, + + /// + /// HE, Tungsten Ball. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HE, Tungsten Ball.")] + HETungstenBall = 1615, + + /// + /// HE, Blast Fragmentation. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HE, Blast Fragmentation.")] + HEBlastFragmentation = 1620, + + /// + /// HE, Steerable Darts with HE. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HE, Steerable Darts with HE.")] + HESteerableDartsWithHE = 1625, + + /// + /// HE, Darts. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HE, Darts.")] + HEDarts = 1630, + + /// + /// HE, Flechettes. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HE, Flechettes.")] + HEFlechettes = 1635, + + /// + /// HE, Directed Fragmentation. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HE, Directed Fragmentation.")] + HEDirectedFragmentation = 1640, + + /// + /// HE, Semi-Armor Piercing (SAP). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HE, Semi-Armor Piercing (SAP).")] + HESemiArmorPiercingSAP = 1645, + + /// + /// HE, Shaped Charge Fragmentation. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HE, Shaped Charge Fragmentation.")] + HEShapedChargeFragmentation = 1650, + + /// + /// HE, Semi-Armor Piercing, Fragmentation. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HE, Semi-Armor Piercing, Fragmentation.")] + HESemiArmorPiercingFragmentation = 1655, + + /// + /// HE, Hollow Charge. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HE, Hollow Charge.")] + HEHollowCharge = 1660, + + /// + /// HE, Double Hollow Charge. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HE, Double Hollow Charge.")] + HEDoubleHollowCharge = 1665, + + /// + /// HE, General Purpose. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HE, General Purpose.")] + HEGeneralPurpose = 1670, + + /// + /// HE, Blast Penetrator. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HE, Blast Penetrator.")] + HEBlastPenetrator = 1675, + + /// + /// HE, Rod Penetrator. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HE, Rod Penetrator.")] + HERodPenetrator = 1680, + + /// + /// HE, Antipersonnel. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HE, Antipersonnel.")] + HEAntipersonnel = 1685, + + /// + /// Smoke. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Smoke.")] + Smoke = 2000, + + /// + /// Illumination. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Illumination.")] + Illumination = 3000, + + /// + /// Practice. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Practice.")] + Practice = 4000, + + /// + /// Kinetic. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Kinetic.")] + Kinetic = 5000, + + /// + /// Mines. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Mines.")] + Mines = 6000, + + /// + /// Nuclear. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Nuclear.")] + Nuclear = 7000, + + /// + /// Nuclear, IMT. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Nuclear, IMT.")] + NuclearIMT = 7010, + + /// + /// Chemical, General. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Chemical, General.")] + ChemicalGeneral = 8000, + + /// + /// Chemical, Blister Agent. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Chemical, Blister Agent.")] + ChemicalBlisterAgent = 8100, + + /// + /// HD (Mustard). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("HD (Mustard).")] + HDMustard = 8110, + + /// + /// Thickened HD (Mustard). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Thickened HD (Mustard).")] + ThickenedHDMustard = 8115, + + /// + /// Dusty HD (Mustard). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Dusty HD (Mustard).")] + DustyHDMustard = 8120, + + /// + /// Chemical, Blood Agent. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Chemical, Blood Agent.")] + ChemicalBloodAgent = 8200, + + /// + /// AC (HCN). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("AC (HCN).")] + ACHCN = 8210, + + /// + /// CK (CNCI). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("CK (CNCI).")] + CKCNCI = 8215, + + /// + /// CG (Phosgene). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("CG (Phosgene).")] + CGPhosgene = 8220, + + /// + /// Chemical, Nerve Agent. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Chemical, Nerve Agent.")] + ChemicalNerveAgent = 8300, + + /// + /// VX. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("VX.")] + VX = 8310, + + /// + /// Thickened VX. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Thickened VX.")] + ThickenedVX = 8315, + + /// + /// Dusty VX. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Dusty VX.")] + DustyVX = 8320, + + /// + /// GA (Tabun). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("GA (Tabun).")] + GATabun = 8325, + + /// + /// Thickened GA (Tabun). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Thickened GA (Tabun).")] + ThickenedGATabun = 8330, + + /// + /// Dusty GA (Tabun). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Dusty GA (Tabun).")] + DustyGATabun = 8335, + + /// + /// GB (Sarin). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("GB (Sarin).")] + GBSarin = 8340, + + /// + /// Thickened GB (Sarin). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Thickened GB (Sarin).")] + ThickenedGBSarin = 8345, + + /// + /// Dusty GB (Sarin). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Dusty GB (Sarin).")] + DustyGBSarin = 8350, + + /// + /// GD (Soman). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("GD (Soman).")] + GDSoman = 8355, + + /// + /// Thickened GD (Soman). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Thickened GD (Soman).")] + ThickenedGDSoman = 8360, + + /// + /// Dusty GD (Soman). + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Dusty GD (Soman).")] + DustyGDSoman = 8365, + + /// + /// GF. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("GF.")] + GF = 8370, + + /// + /// Thickened GF. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Thickened GF.")] + ThickenedGF = 8375, + + /// + /// Dusty GF. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Dusty GF.")] + DustyGF = 8380, + + /// + /// Biological. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Biological.")] + Biological = 9000, + + /// + /// Biological, Virus. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Biological, Virus.")] + BiologicalVirus = 9100, + + /// + /// Biological, Bacteria. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Biological, Bacteria.")] + BiologicalBacteria = 9200, + + /// + /// Biological, Rickettsia. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Biological, Rickettsia.")] + BiologicalRickettsia = 9300, + + /// + /// Biological, Genetically Modified Micro-organisms. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Biological, Genetically Modified Micro-organisms.")] + BiologicalGeneticallyModifiedMicroOrganisms = 9400, + + /// + /// Biological, Toxin. + /// + [SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1707:IdentifiersShouldNotContainUnderscores", Justification = "Due to SISO standardized naming.")] + [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification = "Due to SISO standardized naming.")] + [Description("Biological, Toxin.")] + BiologicalToxin = 9500 + } +} diff --git a/Libs/CsharpDis6/OpenDis/FxCop OpenDis Analysis.FxCop b/Libs/CsharpDis6/FxCop OpenDis Analysis.FxCop similarity index 97% rename from Libs/CsharpDis6/OpenDis/FxCop OpenDis Analysis.FxCop rename to Libs/CsharpDis6/FxCop OpenDis Analysis.FxCop index a3dfa2e..99ec28a 100644 --- a/Libs/CsharpDis6/OpenDis/FxCop OpenDis Analysis.FxCop +++ b/Libs/CsharpDis6/FxCop OpenDis Analysis.FxCop @@ -1,7323 +1,7323 @@ - - - - True - c:\program files (x86)\microsoft fxcop 1.36\Xml\FxCopReport.xsl - - - - - - True - True - True - 10 - 1 - - False - - True - 120 - False - 3.5 - - - - - - - - - - - - - - - - - - - - - - - - - - Asiistech - Asiistech.OpenDis - - - - - Dis - Asiistech.OpenDis - - - - - - - - - Snet - DISnet - - - - - - - - - Snet - DISnet.Utilities - - - - - - - - - - - - - 'Asiistech.OpenDis.dll' - - - - - Asiistech - 'Asiistech.OpenDis.dll' - - - - - Dis - 'Asiistech.OpenDis.dll' - - - - - - - - - - - Pdu - 'AcknowledgePdu' - - - - - - - - - Flag - 'AcknowledgePdu.AcknowledgeFlag' - - - - - - - - - ID - 'AcknowledgePdu.RequestID' - Id - - - - - - - - - Flag - 'AcknowledgePdu.ResponseFlag' - - - - - - - - - - - Pdu - 'AcknowledgeReliablePdu' - - - - - - - - - Flag - 'AcknowledgeReliablePdu.AcknowledgeFlag' - - - - - - - - - ID - 'AcknowledgeReliablePdu.RequestID' - Id - - - - - - - - - Flag - 'AcknowledgeReliablePdu.ResponseFlag' - - - - - - - - - - - - - ID - 'AcousticBeamData.BeamIDNumber' - Id - - - - - - - - - Marshalled - 'AcousticBeamData.GetMarshalledSize()' - - - - - 'AcousticBeamData.GetMarshalledSize()' - - - - - - - - - 'AcousticBeamData.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - - - Azimuthal - 'AcousticBeamFundamentalParameter.AzimuthalBeamwidth' - - - - - Beamwidth - 'AcousticBeamFundamentalParameter.AzimuthalBeamwidth' - - - - - - - - - De - 'AcousticBeamFundamentalParameter.DeBeamwidth' - DE - - - - - Beamwidth - 'AcousticBeamFundamentalParameter.DeBeamwidth' - - - - - - - - - Marshalled - 'AcousticBeamFundamentalParameter.GetMarshalledSize()' - - - - - 'AcousticBeamFundamentalParameter.GetMarshalledSize()' - - - - - - - - - 'AcousticBeamFundamentalParameter.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - - - Marshalled - 'AcousticEmitter.GetMarshalledSize()' - - - - - 'AcousticEmitter.GetMarshalledSize()' - - - - - - - - - 'AcousticEmitter.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - - - ID - 'AcousticEmitterSystem.AcousticID' - Id - - - - - - - - - Marshalled - 'AcousticEmitterSystem.GetMarshalledSize()' - - - - - 'AcousticEmitterSystem.GetMarshalledSize()' - - - - - - - - - 'AcousticEmitterSystem.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - - - 'List<AcousticBeamData>' - 'AcousticEmitterSystemData.BeamRecords' - - - - - - - - - Marshalled - 'AcousticEmitterSystemData.GetMarshalledSize()' - - - - - 'AcousticEmitterSystemData.GetMarshalledSize()' - - - - - - - - - 'AcousticEmitterSystemData.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - Pdu - 'ActionRequestPdu' - - - - - - - - - ID - 'ActionRequestPdu.ActionID' - Id - - - - - - - - - 'List<FixedDatum>' - 'ActionRequestPdu.FixedDatums' - - - - - Datums - 'ActionRequestPdu.FixedDatums' - - - - - - - - - ID - 'ActionRequestPdu.RequestID' - Id - - - - - - - - - 'List<VariableDatum>' - 'ActionRequestPdu.VariableDatums' - - - - - Datums - 'ActionRequestPdu.VariableDatums' - - - - - - - - - - - Pdu - 'ActionRequestReliablePdu' - - - - - - - - - ID - 'ActionRequestReliablePdu.ActionID' - Id - - - - - - - - - 'List<FixedDatum>' - 'ActionRequestReliablePdu.FixedDatumRecords' - - - - - - - - - ID - 'ActionRequestReliablePdu.RequestID' - Id - - - - - - - - - 'List<VariableDatum>' - 'ActionRequestReliablePdu.VariableDatumRecords' - - - - - - - - - - - Pdu - 'ActionResponsePdu' - - - - - - - - - 'List<FixedDatum>' - 'ActionResponsePdu.FixedDatums' - - - - - Datums - 'ActionResponsePdu.FixedDatums' - - - - - - - - - ID - 'ActionResponsePdu.RequestID' - Id - - - - - - - - - 'List<VariableDatum>' - 'ActionResponsePdu.VariableDatums' - - - - - Datums - 'ActionResponsePdu.VariableDatums' - - - - - - - - - - - Pdu - 'ActionResponseReliablePdu' - - - - - - - - - 'List<FixedDatum>' - 'ActionResponseReliablePdu.FixedDatumRecords' - - - - - - - - - ID - 'ActionResponseReliablePdu.RequestID' - Id - - - - - - - - - 'List<VariableDatum>' - 'ActionResponseReliablePdu.VariableDatumRecords' - - - - - - - - - - - ID - 'AggregateID' - Id - - - - - - - - - ID - 'AggregateID.AggregateID_' - Id - - - - - 'AggregateID.AggregateID_' - - - - - - - - - Marshalled - 'AggregateID.GetMarshalledSize()' - - - - - 'AggregateID.GetMarshalledSize()' - - - - - - - - - 'AggregateID.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - - - 'AggregateMarking.Characters' - - - - - - - - - Marshalled - 'AggregateMarking.GetMarshalledSize()' - - - - - 'AggregateMarking.GetMarshalledSize()' - - - - - - - - - 'AggregateMarking.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - Pdu - 'AggregateStatePdu' - - - - - - - - - ID - 'AggregateStatePdu.AggregateID' - Id - - - - - - - - - 'List<AggregateID>' - 'AggregateStatePdu.AggregateIDList' - - - - - ID - 'AggregateStatePdu.AggregateIDList' - Id - - - - - - - - - 'List<EntityID>' - 'AggregateStatePdu.EntityIDList' - - - - - ID - 'AggregateStatePdu.EntityIDList' - Id - - - - - - - - - ID - 'AggregateStatePdu.ForceID' - Id - - - - - - - - - DisAggregates - 'AggregateStatePdu.NumberOfDisAggregates' - Disaggregates - - - - - Dis - 'AggregateStatePdu.NumberOfDisAggregates' - - - - - - - - - Dis - 'AggregateStatePdu.NumberOfDisEntities' - - - - - - - - - 'List<EntityType>' - 'AggregateStatePdu.SilentAggregateSystemList' - - - - - - - - - 'List<EntityType>' - 'AggregateStatePdu.SilentEntitySystemList' - - - - - - - - - 'List<VariableDatum>' - 'AggregateStatePdu.VariableDatumList' - - - - - - - - - - - - - Marshalled - 'AggregateType.GetMarshalledSize()' - - - - - 'AggregateType.GetMarshalledSize()' - - - - - - - - - 'AggregateType.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - - - Marshalled - 'AngularVelocityVector.GetMarshalledSize()' - - - - - 'AngularVelocityVector.GetMarshalledSize()' - - - - - - - - - 'AngularVelocityVector.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - 'AngularVelocityVector.X' - - - - - - - - - 'AngularVelocityVector.Y' - - - - - - - - - 'AngularVelocityVector.Z' - - - - - - - - - - - - - 'AntennaLocation.AntennaLocation_' - - - - - - - - - Marshalled - 'AntennaLocation.GetMarshalledSize()' - - - - - 'AntennaLocation.GetMarshalledSize()' - - - - - - - - - 'AntennaLocation.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - Apa - 'ApaData' - - - - - - - - - Marshalled - 'ApaData.GetMarshalledSize()' - - - - - 'ApaData.GetMarshalledSize()' - - - - - - - - - 'ApaData.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - Areal - 'ArealObjectStatePdu' - - - - - Pdu - 'ArealObjectStatePdu' - - - - - - - - - ID - 'ArealObjectStatePdu.ForceID' - Id - - - - - - - - - ID - 'ArealObjectStatePdu.ObjectID' - Id - - - - - - - - - 'List<Vector3Double>' - 'ArealObjectStatePdu.ObjectLocation' - - - - - - - - - ID - 'ArealObjectStatePdu.ReceivingID' - Id - - - - - - - - - ID - 'ArealObjectStatePdu.ReferencedObjectID' - Id - - - - - - - - - ID - 'ArealObjectStatePdu.RequesterID' - Id - - - - - - - - - - - - - Marshalled - 'ArticulationParameter.GetMarshalledSize()' - - - - - 'ArticulationParameter.GetMarshalledSize()' - - - - - - - - - 'ArticulationParameter.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - - - Beamwidth - 'BeamAntennaPattern.AzimuthBeamwidth' - - - - - - - - - Ex - 'BeamAntennaPattern.Ex' - - - - - - - - - Ez - 'BeamAntennaPattern.Ez' - EZ - - - - - Ez - 'BeamAntennaPattern.Ez' - - - - - - - - - Marshalled - 'BeamAntennaPattern.GetMarshalledSize()' - - - - - 'BeamAntennaPattern.GetMarshalledSize()' - - - - - - - - - 'BeamAntennaPattern.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - - - Marshalled - 'BeamData.GetMarshalledSize()' - - - - - 'BeamData.GetMarshalledSize()' - - - - - - - - - 'BeamData.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - - - Marshalled - 'BurstDescriptor.GetMarshalledSize()' - - - - - 'BurstDescriptor.GetMarshalledSize()' - - - - - - - - - Munition - 'BurstDescriptor.Munition' - - - - - - - - - 'BurstDescriptor.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - - - Marshalled - 'ClockTime.GetMarshalledSize()' - - - - - 'ClockTime.GetMarshalledSize()' - - - - - - - - - 'ClockTime.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - Pdu - 'CollisionElasticPdu' - - - - - - - - - ID - 'CollisionElasticPdu.CollidingEntityID' - Id - - - - - - - - - ID - 'CollisionElasticPdu.CollisionEventID' - Id - - - - - - - - - ID - 'CollisionElasticPdu.IssuingEntityID' - Id - - - - - - - - - - - Pdu - 'CollisionPdu' - - - - - - - - - ID - 'CollisionPdu.CollidingEntityID' - Id - - - - - - - - - ID - 'CollisionPdu.EventID' - Id - - - - - - - - - ID - 'CollisionPdu.IssuingEntityID' - Id - - - - - - - - - - - Pdu - 'CommentPdu' - - - - - - - - - 'List<FixedDatum>' - 'CommentPdu.FixedDatums' - - - - - Datums - 'CommentPdu.FixedDatums' - - - - - - - - - 'List<VariableDatum>' - 'CommentPdu.VariableDatums' - - - - - Datums - 'CommentPdu.VariableDatums' - - - - - - - - - - - Pdu - 'CommentReliablePdu' - - - - - - - - - 'List<FixedDatum>' - 'CommentReliablePdu.FixedDatumRecords' - - - - - - - - - 'List<VariableDatum>' - 'CommentReliablePdu.VariableDatumRecords' - - - - - - - - - - - Pdu - 'CreateEntityPdu' - - - - - - - - - ID - 'CreateEntityPdu.RequestID' - Id - - - - - - - - - - - Pdu - 'CreateEntityReliablePdu' - - - - - - - - - ID - 'CreateEntityReliablePdu.RequestID' - Id - - - - - - - - - - - Pdu - 'DataPdu' - - - - - - - - - 'List<FixedDatum>' - 'DataPdu.FixedDatums' - - - - - Datums - 'DataPdu.FixedDatums' - - - - - - - - - ID - 'DataPdu.RequestID' - Id - - - - - - - - - 'List<VariableDatum>' - 'DataPdu.VariableDatums' - - - - - Datums - 'DataPdu.VariableDatums' - - - - - - - - - - - Pdu - 'DataQueryPdu' - - - - - - - - - 'List<FixedDatum>' - 'DataQueryPdu.FixedDatums' - - - - - Datums - 'DataQueryPdu.FixedDatums' - - - - - - - - - ID - 'DataQueryPdu.RequestID' - Id - - - - - - - - - 'List<VariableDatum>' - 'DataQueryPdu.VariableDatums' - - - - - Datums - 'DataQueryPdu.VariableDatums' - - - - - - - - - - - Pdu - 'DataQueryReliablePdu' - - - - - - - - - 'List<FixedDatum>' - 'DataQueryReliablePdu.FixedDatumRecords' - - - - - - - - - ID - 'DataQueryReliablePdu.RequestID' - Id - - - - - - - - - 'List<VariableDatum>' - 'DataQueryReliablePdu.VariableDatumRecords' - - - - - - - - - - - Pdu - 'DataReliablePdu' - - - - - - - - - 'List<FixedDatum>' - 'DataReliablePdu.FixedDatumRecords' - - - - - - - - - ID - 'DataReliablePdu.RequestID' - Id - - - - - - - - - 'List<VariableDatum>' - 'DataReliablePdu.VariableDatumRecords' - - - - - - - - - - - - - Marshalled - 'DeadReckoningParameter.GetMarshalledSize()' - - - - - 'DeadReckoningParameter.GetMarshalledSize()' - - - - - - - - - 'DeadReckoningParameter.OtherParameters' - - - - - - - - - 'DeadReckoningParameter.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - Pdu - 'DesignatorPdu' - - - - - - - - - CodeName - 'DesignatorPdu.CodeName' - Codename - - - - - - - - - ID - 'DesignatorPdu.DesignatedEntityID' - Id - - - - - - - - - ID - 'DesignatorPdu.DesignatingEntityID' - Id - - - - - - - - - Wrt - 'DesignatorPdu.DesignatorSpotWrtDesignated' - - - - - - - - - - - Pdu - 'DetonationPdu' - - - - - - - - - 'List<ArticulationParameter>' - 'DetonationPdu.ArticulationParameters' - - - - - - - - - ID - 'DetonationPdu.EventID' - Id - - - - - - - - - ID - 'DetonationPdu.MunitionID' - Id - - - - - Munition - 'DetonationPdu.MunitionID' - - - - - - - - - - - Pdu - 'DistributedEmissionsFamilyPdu' - - - - - - - - - 'obj' - 'DistributedEmissionsFamilyPdu.Equals(DistributedEmissionsFamilyPdu)' - 'DistributedEmissionsFamilyPdu' - 'Pdu' - - - - - - - - - - - - - Marshalled - 'EightByteChunk.GetMarshalledSize()' - - - - - 'EightByteChunk.GetMarshalledSize()' - - - - - - - - - 'EightByteChunk.OtherParameters' - - - - - - - - - 'EightByteChunk.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - - - ID - 'ElectronicEmissionBeamData.BeamIDNumber' - Id - - - - - - - - - Marshalled - 'ElectronicEmissionBeamData.GetMarshalledSize()' - - - - - 'ElectronicEmissionBeamData.GetMarshalledSize()' - - - - - - - - - 'List<TrackJamTarget>' - 'ElectronicEmissionBeamData.TrackJamTargets' - - - - - - - - - 'ElectronicEmissionBeamData.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - Pdu - 'ElectronicEmissionsPdu' - - - - - - - - - ID - 'ElectronicEmissionsPdu.EmittingEntityID' - Id - - - - - - - - - ID - 'ElectronicEmissionsPdu.EventID' - Id - - - - - - - - - Pdu - 'ElectronicEmissionsPdu.PaddingForEmissionsPdu' - - - - - - - - - 'List<ElectronicEmissionSystemData>' - 'ElectronicEmissionsPdu.Systems' - - - - - - - - - - - - - 'List<ElectronicEmissionBeamData>' - 'ElectronicEmissionSystemData.BeamDataRecords' - - - - - - - - - Marshalled - 'ElectronicEmissionSystemData.GetMarshalledSize()' - - - - - 'ElectronicEmissionSystemData.GetMarshalledSize()' - - - - - - - - - 'ElectronicEmissionSystemData.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - - - Marshalled - 'EmitterSystem.GetMarshalledSize()' - - - - - 'EmitterSystem.GetMarshalledSize()' - - - - - - - - - 'EmitterSystem.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - ID - 'EntityID' - Id - - - - - - - - - Marshalled - 'EntityID.GetMarshalledSize()' - - - - - 'EntityID.GetMarshalledSize()' - - - - - - - - - 'EntityID.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - Pdu - 'EntityInformationFamilyPdu' - - - - - - - - - 'obj' - 'EntityInformationFamilyPdu.Equals(EntityInformationFamilyPdu)' - 'EntityInformationFamilyPdu' - 'Pdu' - - - - - - - - - - - Pdu - 'EntityManagementFamilyPdu' - - - - - - - - - 'obj' - 'EntityManagementFamilyPdu.Equals(EntityManagementFamilyPdu)' - 'EntityManagementFamilyPdu' - 'Pdu' - - - - - - - - - - - Pdu - 'EntityStatePdu' - - - - - - - - - 'List<ArticulationParameter>' - 'EntityStatePdu.ArticulationParameters' - - - - - - - - - ID - 'EntityStatePdu.EntityID' - Id - - - - - - - - - - - Pdu - 'EntityStateUpdatePdu' - - - - - - - - - 'List<ArticulationParameter>' - 'EntityStateUpdatePdu.ArticulationParameters' - - - - - - - - - ID - 'EntityStateUpdatePdu.EntityID' - Id - - - - - - - - - - - - - Marshalled - 'EntityType.GetMarshalledSize()' - - - - - 'EntityType.GetMarshalledSize()' - - - - - - - - - 'EntityType.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - - - Marshalled - 'Environment.GetMarshalledSize()' - - - - - 'Environment.GetMarshalledSize()' - - - - - - - - - 'Environment.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - Pdu - 'EnvironmentalProcessPdu' - - - - - - - - - ID - 'EnvironmentalProcessPdu.EnvironementalProcessID' - Id - - - - - Environemental - 'EnvironmentalProcessPdu.EnvironementalProcessID' - - - - - - - - - 'List<Environment>' - 'EnvironmentalProcessPdu.EnvironmentRecords' - - - - - - - - - - - ID - 'EventID' - Id - - - - - - - - - Marshalled - 'EventID.GetMarshalledSize()' - - - - - 'EventID.GetMarshalledSize()' - - - - - - - - - 'EventID.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - Pdu - 'EventReportPdu' - - - - - - - - - 'List<FixedDatum>' - 'EventReportPdu.FixedDatums' - - - - - Datums - 'EventReportPdu.FixedDatums' - - - - - - - - - 'List<VariableDatum>' - 'EventReportPdu.VariableDatums' - - - - - Datums - 'EventReportPdu.VariableDatums' - - - - - - - - - - - Pdu - 'EventReportReliablePdu' - - - - - - - - - 'List<FixedDatum>' - 'EventReportReliablePdu.FixedDatumRecords' - - - - - - - - - 'List<VariableDatum>' - 'EventReportReliablePdu.VariableDatumRecords' - - - - - - - - - - - Pdu - 'FastEntityStatePdu' - - - - - - - - - 'List<ArticulationParameter>' - 'FastEntityStatePdu.ArticulationParameters' - - - - - - - - - 'FastEntityStatePdu.Marking' - - - - - - - - - 'FastEntityStatePdu.OtherParameters' - - - - - - - - - Psi - 'FastEntityStatePdu.Psi' - - - - - - - - - - - Pdu - 'FirePdu' - - - - - - - - - ID - 'FirePdu.EventID' - Id - - - - - - - - - ID - 'FirePdu.MunitionID' - Id - - - - - Munition - 'FirePdu.MunitionID' - - - - - - - - - - - - - ID - 'FixedDatum.FixedDatumID' - Id - - - - - - - - - Marshalled - 'FixedDatum.GetMarshalledSize()' - - - - - 'FixedDatum.GetMarshalledSize()' - - - - - - - - - 'FixedDatum.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - - - Marshalled - 'FourByteChunk.GetMarshalledSize()' - - - - - 'FourByteChunk.GetMarshalledSize()' - - - - - - - - - 'FourByteChunk.OtherParameters' - - - - - - - - - 'FourByteChunk.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - - - Marshalled - 'FundamentalParameterData.GetMarshalledSize()' - - - - - 'FundamentalParameterData.GetMarshalledSize()' - - - - - - - - - 'FundamentalParameterData.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - Iff - 'FundamentalParameterDataIff' - - - - - - - - - Erp - 'FundamentalParameterDataIff.Erp' - - - - - - - - - Marshalled - 'FundamentalParameterDataIff.GetMarshalledSize()' - - - - - 'FundamentalParameterDataIff.GetMarshalledSize()' - - - - - - - - - Pgrf - 'FundamentalParameterDataIff.Pgrf' - - - - - - - - - 'FundamentalParameterDataIff.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - - - Marshalled - 'GridAxisRecord.GetMarshalledSize()' - - - - - 'GridAxisRecord.GetMarshalledSize()' - - - - - - - - - 'GridAxisRecord.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - - - 'GridAxisRecordRepresentation0.DataValues' - - - - - - - - - - - - - 'List<TwoByteChunk>' - 'GridAxisRecordRepresentation1.DataValues' - - - - - - - - - - - - - 'List<FourByteChunk>' - 'GridAxisRecordRepresentation2.DataValues' - - - - - - - - - - - Gridded - 'GriddedDataPdu' - - - - - Pdu - 'GriddedDataPdu' - - - - - - - - - ID - 'GriddedDataPdu.EnvironmentalSimulationApplicationID' - Id - - - - - - - - - 'List<GridAxisRecord>' - 'GriddedDataPdu.GridDataList' - - - - - - - - - Pdu - 'GriddedDataPdu.PduNumber' - - - - - - - - - Pdu - 'GriddedDataPdu.PduTotal' - - - - - - - - - - - Atc - 'IffAtcNavAidsLayer1Pdu' - - - - - Iff - 'IffAtcNavAidsLayer1Pdu' - - - - - Nav - 'IffAtcNavAidsLayer1Pdu' - - - - - Pdu - 'IffAtcNavAidsLayer1Pdu' - - - - - - - - - ID - 'IffAtcNavAidsLayer1Pdu.EventID' - Id - - - - - - - - - ID - 'IffAtcNavAidsLayer1Pdu.SystemID' - Id - - - - - - - - - - - Atc - 'IffAtcNavAidsLayer2Pdu' - - - - - Iff - 'IffAtcNavAidsLayer2Pdu' - - - - - Nav - 'IffAtcNavAidsLayer2Pdu' - - - - - Pdu - 'IffAtcNavAidsLayer2Pdu' - - - - - - - - - 'List<FundamentalParameterDataIff>' - 'IffAtcNavAidsLayer2Pdu.FundamentalIffParameters' - - - - - Iff - 'IffAtcNavAidsLayer2Pdu.FundamentalIffParameters' - - - - - - - - - - - Iff - 'IffFundamentalData' - - - - - - - - - Marshalled - 'IffFundamentalData.GetMarshalledSize()' - - - - - 'IffFundamentalData.GetMarshalledSize()' - - - - - - - - - 'IffFundamentalData.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - - - Marshalled - 'IntercomCommunicationsParameters.GetMarshalledSize()' - - - - - 'IntercomCommunicationsParameters.GetMarshalledSize()' - - - - - - - - - 'IntercomCommunicationsParameters.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - Pdu - 'IntercomControlPdu' - - - - - - - - - 'List<IntercomCommunicationsParameters>' - 'IntercomControlPdu.IntercomParameters' - - - - - - - - - ID - 'IntercomControlPdu.MasterCommunicationsDeviceID' - Id - - - - - - - - - ID - 'IntercomControlPdu.MasterEntityID' - Id - - - - - - - - - ID - 'IntercomControlPdu.SourceCommunicationsDeviceID' - Id - - - - - - - - - ID - 'IntercomControlPdu.SourceEntityID' - Id - - - - - - - - - ID - 'IntercomControlPdu.SourceLineID' - Id - - - - - - - - - - - Pdu - 'IntercomSignalPdu' - - - - - - - - - ID - 'IntercomSignalPdu.CommunicationsDeviceID' - Id - - - - - - - - - 'IntercomSignalPdu.Data' - - - - - - - - - ID - 'IntercomSignalPdu.EntityID' - Id - - - - - - - - - Tdl - 'IntercomSignalPdu.TdlType' - - - - - - - - - - - Pdu - 'IsGroupOfPdu' - - - - - - - - - 'List<VariableDatum>' - 'IsGroupOfPdu.GroupedEntityDescriptions' - - - - - - - - - ID - 'IsGroupOfPdu.GroupEntityID' - Id - - - - - - - - - - - Pdu - 'IsPartOfPdu' - - - - - - - - - ID - 'IsPartOfPdu.NamedLocationID' - Id - - - - - - - - - ID - 'IsPartOfPdu.OrginatingEntityID' - Id - - - - - Orginating - 'IsPartOfPdu.OrginatingEntityID' - - - - - - - - - ID - 'IsPartOfPdu.ReceivingEntityID' - Id - - - - - - - - - - - - - Marshalled - 'LayerHeader.GetMarshalledSize()' - - - - - 'LayerHeader.GetMarshalledSize()' - - - - - - - - - Informaiton - 'LayerHeader.LayerSpecificInformaiton' - - - - - - - - - 'LayerHeader.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - Pdu - 'LinearObjectStatePdu' - - - - - - - - - ID - 'LinearObjectStatePdu.ForceID' - Id - - - - - - - - - 'List<LinearSegmentParameter>' - 'LinearObjectStatePdu.LinearSegmentParameters' - - - - - - - - - ID - 'LinearObjectStatePdu.ObjectID' - Id - - - - - - - - - ID - 'LinearObjectStatePdu.ReceivingID' - Id - - - - - - - - - ID - 'LinearObjectStatePdu.ReferencedObjectID' - Id - - - - - - - - - ID - 'LinearObjectStatePdu.RequesterID' - Id - - - - - - - - - - - - - Marshalled - 'LinearSegmentParameter.GetMarshalledSize()' - - - - - 'LinearSegmentParameter.GetMarshalledSize()' - - - - - - - - - 'LinearSegmentParameter.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - Pdu - 'LogisticsFamilyPdu' - - - - - - - - - 'obj' - 'LogisticsFamilyPdu.Equals(LogisticsFamilyPdu)' - 'LogisticsFamilyPdu' - 'Pdu' - - - - - - - - - - - - - 'Marking.Characters' - - - - - - - - - Marshalled - 'Marking.GetMarshalledSize()' - - - - - 'Marking.GetMarshalledSize()' - - - - - - - - - 'Marking.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - Pdu - 'MinefieldDataPdu' - - - - - - - - - ID - 'MinefieldDataPdu.MinefieldID' - Id - - - - - - - - - Numbeer - 'MinefieldDataPdu.MinefieldSequenceNumbeer' - - - - - - - - - 'List<Vector3Float>' - 'MinefieldDataPdu.MineLocation' - - - - - - - - - Pdu - 'MinefieldDataPdu.NumberOfMinesInThisPdu' - - - - - - - - - Pdus - 'MinefieldDataPdu.NumberOfPdus' - - - - - - - - - Pdu - 'MinefieldDataPdu.PduSequenceNumber' - - - - - - - - - ID - 'MinefieldDataPdu.RequestID' - Id - - - - - - - - - ID - 'MinefieldDataPdu.RequestingEntityID' - Id - - - - - - - - - 'List<TwoByteChunk>' - 'MinefieldDataPdu.SensorTypes' - - - - - - - - - - - Pdu - 'MinefieldFamilyPdu' - - - - - - - - - 'obj' - 'MinefieldFamilyPdu.Equals(MinefieldFamilyPdu)' - 'MinefieldFamilyPdu' - 'Pdu' - - - - - - - - - - - Pdu - 'MinefieldQueryPdu' - - - - - - - - - ID - 'MinefieldQueryPdu.MinefieldID' - Id - - - - - - - - - 'List<Point>' - 'MinefieldQueryPdu.RequestedPerimeterPoints' - - - - - - - - - ID - 'MinefieldQueryPdu.RequestID' - Id - - - - - - - - - ID - 'MinefieldQueryPdu.RequestingEntityID' - Id - - - - - - - - - 'List<TwoByteChunk>' - 'MinefieldQueryPdu.SensorTypes' - - - - - - - - - - - Nack - 'MinefieldResponseNackPdu' - - - - - Pdu - 'MinefieldResponseNackPdu' - - - - - - - - - ID - 'MinefieldResponseNackPdu.MinefieldID' - Id - - - - - - - - - 'List<EightByteChunk>' - 'MinefieldResponseNackPdu.MissingPduSequenceNumbers' - - - - - Pdu - 'MinefieldResponseNackPdu.MissingPduSequenceNumbers' - - - - - - - - - Pdus - 'MinefieldResponseNackPdu.NumberOfMissingPdus' - - - - - - - - - ID - 'MinefieldResponseNackPdu.RequestID' - Id - - - - - - - - - ID - 'MinefieldResponseNackPdu.RequestingEntityID' - Id - - - - - - - - - - - Pdu - 'MinefieldStatePdu' - - - - - - - - - ID - 'MinefieldStatePdu.ForceID' - Id - - - - - - - - - ID - 'MinefieldStatePdu.MinefieldID' - Id - - - - - - - - - 'List<EntityType>' - 'MinefieldStatePdu.MineType' - - - - - - - - - 'List<Point>' - 'MinefieldStatePdu.PerimeterPoints' - - - - - - - - - - - - - Marshalled - 'ModulationType.GetMarshalledSize()' - - - - - 'ModulationType.GetMarshalledSize()' - - - - - - - - - 'ModulationType.System_' - - - - - - - - - 'ModulationType.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - - - Marshalled - 'NamedLocation.GetMarshalledSize()' - - - - - 'NamedLocation.GetMarshalledSize()' - - - - - - - - - 'NamedLocation.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - - - Marshalled - 'ObjectType.GetMarshalledSize()' - - - - - 'ObjectType.GetMarshalledSize()' - - - - - - - - - 'ObjectType.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - - - Marshalled - 'OneByteChunk.GetMarshalledSize()' - - - - - 'OneByteChunk.GetMarshalledSize()' - - - - - - - - - 'OneByteChunk.OtherParameters' - - - - - - - - - 'OneByteChunk.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - - - Marshalled - 'Orientation.GetMarshalledSize()' - - - - - 'Orientation.GetMarshalledSize()' - - - - - - - - - Psi - 'Orientation.Psi' - - - - - - - - - 'Orientation.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - Pdu - 'Pdu' - - - - - - - - - ID - 'Pdu.ExerciseID' - Id - - - - - - - - - Marshalled - 'Pdu.GetMarshalledSize()' - - - - - 'Pdu.GetMarshalledSize()' - - - - - - - - - Pdu - 'Pdu.PduType' - - - - - - - - - 'Pdu.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - Pdu - 'PduContainer' - - - - - - - - - Marshalled - 'PduContainer.GetMarshalledSize()' - - - - - 'PduContainer.GetMarshalledSize()' - - - - - - - - - Pdus - 'PduContainer.NumberOfPdus' - - - - - - - - - 'List<Pdu>' - 'PduContainer.Pdus' - - - - - Pdus - 'PduContainer.Pdus' - - - - - - - - - 'PduContainer.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - - - Marshalled - 'Point.GetMarshalledSize()' - - - - - 'Point.GetMarshalledSize()' - - - - - - - - - 'Point.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - 'Point.X' - - - - - - - - - 'Point.Y' - - - - - - - - - - - Pdu - 'PointObjectStatePdu' - - - - - - - - - ID - 'PointObjectStatePdu.ForceID' - Id - - - - - - - - - ID - 'PointObjectStatePdu.ObjectID' - Id - - - - - - - - - ID - 'PointObjectStatePdu.ReceivingID' - Id - - - - - - - - - ID - 'PointObjectStatePdu.ReferencedObjectID' - Id - - - - - - - - - ID - 'PointObjectStatePdu.RequesterID' - Id - - - - - - - - - - - - - Marshalled - 'PropulsionSystemData.GetMarshalledSize()' - - - - - 'PropulsionSystemData.GetMarshalledSize()' - - - - - - - - - 'PropulsionSystemData.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - Pdu - 'RadioCommunicationsFamilyPdu' - - - - - - - - - - - Marshalled - 'RadioEntityType.GetMarshalledSize()' - - - - - 'RadioEntityType.GetMarshalledSize()' - - - - - - - - - 'RadioEntityType.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - Pdu - 'ReceiverPdu' - - - - - - - - - Pdu - 'RecordQueryReliablePdu' - - - - - - - - - 'List<FourByteChunk>' - 'RecordQueryReliablePdu.RecordIDs' - - - - - IDs - 'RecordQueryReliablePdu.RecordIDs' - Ids - - - - - - - - - ID - 'RecordQueryReliablePdu.RequestID' - Id - - - - - - - - - - - - - Marshalled - 'RecordSet.GetMarshalledSize()' - - - - - 'RecordSet.GetMarshalledSize()' - - - - - - - - - ID - 'RecordSet.RecordID' - Id - - - - - - - - - 'RecordSet.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - - - Marshalled - 'Relationship.GetMarshalledSize()' - - - - - 'Relationship.GetMarshalledSize()' - - - - - - - - - 'Relationship.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - Pdu - 'RemoveEntityPdu' - - - - - - - - - ID - 'RemoveEntityPdu.RequestID' - Id - - - - - - - - - - - Pdu - 'RemoveEntityReliablePdu' - - - - - - - - - ID - 'RemoveEntityReliablePdu.RequestID' - Id - - - - - - - - - - - Pdu - 'RepairCompletePdu' - - - - - - - - - ID - 'RepairCompletePdu.ReceivingEntityID' - Id - - - - - - - - - ID - 'RepairCompletePdu.RepairingEntityID' - Id - - - - - - - - - - - Pdu - 'RepairResponsePdu' - - - - - - - - - ID - 'RepairResponsePdu.ReceivingEntityID' - Id - - - - - - - - - ID - 'RepairResponsePdu.RepairingEntityID' - Id - - - - - - - - - - - Pdu - 'ResupplyCancelPdu' - - - - - Resupply - 'ResupplyCancelPdu' - - - - - - - - - ID - 'ResupplyCancelPdu.ReceivingEntityID' - Id - - - - - - - - - ID - 'ResupplyCancelPdu.SupplyingEntityID' - Id - - - - - - - - - - - Pdu - 'ResupplyOfferPdu' - - - - - Resupply - 'ResupplyOfferPdu' - - - - - - - - - ID - 'ResupplyOfferPdu.ReceivingEntityID' - Id - - - - - - - - - 'List<SupplyQuantity>' - 'ResupplyOfferPdu.Supplies' - - - - - - - - - ID - 'ResupplyOfferPdu.SupplyingEntityID' - Id - - - - - - - - - - - Pdu - 'ResupplyReceivedPdu' - - - - - Resupply - 'ResupplyReceivedPdu' - - - - - - - - - ID - 'ResupplyReceivedPdu.ReceivingEntityID' - Id - - - - - - - - - 'List<SupplyQuantity>' - 'ResupplyReceivedPdu.Supplies' - - - - - - - - - ID - 'ResupplyReceivedPdu.SupplyingEntityID' - Id - - - - - - - - - - - Pdu - 'SeesPdu' - - - - - - - - - ID - 'SeesPdu.OrginatingEntityID' - Id - - - - - Orginating - 'SeesPdu.OrginatingEntityID' - - - - - - - - - 'List<PropulsionSystemData>' - 'SeesPdu.PropulsionSystemData' - - - - - - - - - 'List<VectoringNozzleSystemData>' - 'SeesPdu.VectoringSystemData' - - - - - - - - - - - Pdu - 'ServiceRequestPdu' - - - - - - - - - ID - 'ServiceRequestPdu.RequestingEntityID' - Id - - - - - - - - - ID - 'ServiceRequestPdu.ServicingEntityID' - Id - - - - - - - - - 'List<SupplyQuantity>' - 'ServiceRequestPdu.Supplies' - - - - - - - - - - - Pdu - 'SetDataPdu' - - - - - - - - - 'List<FixedDatum>' - 'SetDataPdu.FixedDatums' - - - - - Datums - 'SetDataPdu.FixedDatums' - - - - - - - - - ID - 'SetDataPdu.RequestID' - Id - - - - - - - - - 'List<VariableDatum>' - 'SetDataPdu.VariableDatums' - - - - - Datums - 'SetDataPdu.VariableDatums' - - - - - - - - - - - Pdu - 'SetDataReliablePdu' - - - - - - - - - 'List<FixedDatum>' - 'SetDataReliablePdu.FixedDatumRecords' - - - - - - - - - ID - 'SetDataReliablePdu.RequestID' - Id - - - - - - - - - 'List<VariableDatum>' - 'SetDataReliablePdu.VariableDatumRecords' - - - - - - - - - - - Pdu - 'SetRecordReliablePdu' - - - - - - - - - 'List<RecordSet>' - 'SetRecordReliablePdu.RecordSets' - - - - - - - - - ID - 'SetRecordReliablePdu.RequestID' - Id - - - - - - - - - - - RPMs - 'ShaftRPMs' - Rpms - - - - - RPMs - 'ShaftRPMs' - - - - - - - - - RPMs - 'ShaftRPMs.CurrentShaftRPMs' - Rpms - - - - - RPMs - 'ShaftRPMs.CurrentShaftRPMs' - - - - - - - - - Marshalled - 'ShaftRPMs.GetMarshalledSize()' - - - - - 'ShaftRPMs.GetMarshalledSize()' - - - - - - - - - RPMs - 'ShaftRPMs.OrderedShaftRPMs' - Rpms - - - - - RPMs - 'ShaftRPMs.OrderedShaftRPMs' - - - - - - - - - RPM - 'ShaftRPMs.ShaftRPMRateOfChange' - Rpm - - - - - - - - - 'ShaftRPMs.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - Pdu - 'SignalPdu' - - - - - - - - - 'SignalPdu.Data' - - - - - - - - - Tdl - 'SignalPdu.TdlType' - - - - - - - - - - - - - Marshalled - 'SimulationAddress.GetMarshalledSize()' - - - - - 'SimulationAddress.GetMarshalledSize()' - - - - - - - - - 'SimulationAddress.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - Pdu - 'SimulationManagementFamilyPdu' - - - - - - - - - ID - 'SimulationManagementFamilyPdu.OriginatingEntityID' - Id - - - - - - - - - ID - 'SimulationManagementFamilyPdu.ReceivingEntityID' - Id - - - - - - - - - - - Pdu - 'SimulationManagementWithReliabilityFamilyPdu' - - - - - - - - - ID - 'SimulationManagementWithReliabilityFamilyPdu.OriginatingEntityID' - Id - - - - - - - - - ID - 'SimulationManagementWithReliabilityFamilyPdu.ReceivingEntityID' - Id - - - - - - - - - - - - - Marshalled - 'SixByteChunk.GetMarshalledSize()' - - - - - 'SixByteChunk.GetMarshalledSize()' - - - - - - - - - 'SixByteChunk.OtherParameters' - - - - - - - - - 'SixByteChunk.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - - - Marshalled - 'SphericalHarmonicAntennaPattern.GetMarshalledSize()' - - - - - 'SphericalHarmonicAntennaPattern.GetMarshalledSize()' - - - - - - - - - 'SphericalHarmonicAntennaPattern.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - Pdu - 'StartResumePdu' - - - - - - - - - ID - 'StartResumePdu.RequestID' - Id - - - - - - - - - - - Pdu - 'StartResumeReliablePdu' - - - - - - - - - ID - 'StartResumeReliablePdu.RequestID' - Id - - - - - - - - - - - Pdu - 'StopFreezePdu' - - - - - - - - - ID - 'StopFreezePdu.RequestID' - Id - - - - - - - - - - - Pdu - 'StopFreezeReliablePdu' - - - - - - - - - ID - 'StopFreezeReliablePdu.RequestID' - Id - - - - - - - - - Reliablity - 'StopFreezeReliablePdu.RequiredReliablityService' - - - - - - - - - - - - - Marshalled - 'SupplyQuantity.GetMarshalledSize()' - - - - - 'SupplyQuantity.GetMarshalledSize()' - - - - - - - - - 'SupplyQuantity.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - Pdu - 'SyntheticEnvironmentFamilyPdu' - - - - - - - - - 'obj' - 'SyntheticEnvironmentFamilyPdu.Equals(SyntheticEnvironmentFamilyPdu)' - 'SyntheticEnvironmentFamilyPdu' - 'Pdu' - - - - - - - - - - - ID - 'SystemID' - Id - - - - - - - - - Marshalled - 'SystemID.GetMarshalledSize()' - - - - - 'SystemID.GetMarshalledSize()' - - - - - - - - - 'SystemID.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - - - ID - 'TrackJamTarget.BeamID' - Id - - - - - - - - - ID - 'TrackJamTarget.EmitterID' - Id - - - - - - - - - Marshalled - 'TrackJamTarget.GetMarshalledSize()' - - - - - 'TrackJamTarget.GetMarshalledSize()' - - - - - - - - - 'TrackJamTarget.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - Pdu - 'TransferControlRequestPdu' - - - - - - - - - ID - 'TransferControlRequestPdu.OrginatingEntityID' - Id - - - - - Orginating - 'TransferControlRequestPdu.OrginatingEntityID' - - - - - - - - - ID - 'TransferControlRequestPdu.RecevingEntityID' - Id - - - - - Receving - 'TransferControlRequestPdu.RecevingEntityID' - - - - - - - - - 'List<RecordSet>' - 'TransferControlRequestPdu.RecordSets' - - - - - - - - - ID - 'TransferControlRequestPdu.RequestID' - Id - - - - - - - - - Tranfer - 'TransferControlRequestPdu.TranferType' - - - - - - - - - ID - 'TransferControlRequestPdu.TransferEntityID' - Id - - - - - - - - - - - Pdu - 'TransmitterPdu' - - - - - - - - - 'List<Vector3Float>' - 'TransmitterPdu.AntennaPatternList' - - - - - - - - - CryptoSystem - 'TransmitterPdu.CryptoSystem' - Cryptosystem - - - - - - - - - 'List<Vector3Float>' - 'TransmitterPdu.ModulationParametersList' - - - - - - - - - - - - - Marshalled - 'TwoByteChunk.GetMarshalledSize()' - - - - - 'TwoByteChunk.GetMarshalledSize()' - - - - - - - - - 'TwoByteChunk.OtherParameters' - - - - - - - - - 'TwoByteChunk.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - Ua - 'UaPdu' - UA - - - - - Pdu - 'UaPdu' - - - - - Ua - 'UaPdu' - - - - - - - - - 'List<ApaData>' - 'UaPdu.ApaData' - - - - - Apa - 'UaPdu.ApaData' - - - - - - - - - 'List<AcousticEmitterSystemData>' - 'UaPdu.EmitterSystems' - - - - - - - - - ID - 'UaPdu.EmittingEntityID' - Id - - - - - - - - - ID - 'UaPdu.EventID' - Id - - - - - - - - - APAs - 'UaPdu.NumberOfAPAs' - Apas - - - - - APAs - 'UaPdu.NumberOfAPAs' - - - - - - - - - 'List<ShaftRPMs>' - 'UaPdu.ShaftRPMs' - - - - - RPMs - 'UaPdu.ShaftRPMs' - Rpms - - - - - RPMs - 'UaPdu.ShaftRPMs' - - - - - - - - - - - - - Marshalled - 'VariableDatum.GetMarshalledSize()' - - - - - 'VariableDatum.GetMarshalledSize()' - - - - - - - - - 'VariableDatum.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - ID - 'VariableDatum.VariableDatumID' - Id - - - - - - - - - 'List<EightByteChunk>' - 'VariableDatum.VariableDatums' - - - - - Datums - 'VariableDatum.VariableDatums' - - - - - - - - - - - - - Marshalled - 'Vector3Double.GetMarshalledSize()' - - - - - 'Vector3Double.GetMarshalledSize()' - - - - - - - - - 'Vector3Double.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - 'Vector3Double.X' - - - - - - - - - 'Vector3Double.Y' - - - - - - - - - 'Vector3Double.Z' - - - - - - - - - - - - - Marshalled - 'Vector3Float.GetMarshalledSize()' - - - - - 'Vector3Float.GetMarshalledSize()' - - - - - - - - - 'Vector3Float.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - 'Vector3Float.X' - - - - - - - - - 'Vector3Float.Y' - - - - - - - - - 'Vector3Float.Z' - - - - - - - - - - - - - Marshalled - 'VectoringNozzleSystemData.GetMarshalledSize()' - - - - - 'VectoringNozzleSystemData.GetMarshalledSize()' - - - - - - - - - 'VectoringNozzleSystemData.Unmarshal(DataInputStream)' - dis - 'dis' - - - - - - - - - - - Pdu - 'WarfareFamilyPdu' - - - - - - - - - ID - 'WarfareFamilyPdu.FiringEntityID' - Id - - - - - - - - - ID - 'WarfareFamilyPdu.TargetEntityID' - Id - - - - - - - - - - - - - - - 'AcknowledgeFlag' - - - - - Flag - 'AcknowledgeFlag' - - - - - - - - - 'AcousticEmitters' - - - - - 'AcousticEmitters' - - - - - - - - - - - 'AdditionalPassiveActivity.ReservedForClassifiedEnumerations' - - - - - - - - - - - 'ArticulatedPartsIndexNumber' - - - - - - - - - 'ArticulatedPartsOffsetNumber' - - - - - - - - - 'AttachedParts' - - - - - - - - - 'AuxiliaryCraft' - - - - - - - - - 'Byte11' - - - - - - - - - 'CISWeaponsForLifeForms' - - - - - 'CISWeaponsForLifeForms' - - - - - - - - - - - 'CommunicationType.Reserved' - - - - - - - - - - - 'CompanyBatteryTroop' - - - - - - - - - - - 'ControlType.Reserved' - - - - - - - - - - - 'CountryType' - - - - - - - - - 'DatumSpecificationRecord' - - - - - - - - - Flag - 'DatumSpecificationRecord.TrailFlag' - - - - - - - - - - - 'DriveTrain' - - - - - - - - - 'ElectromagneticEmitters' - - - - - 'ElectromagneticEmitters' - - - - - - - - - 'Electronics' - - - - - 'Electronics' - - - - - - - - - 'FirstCavHighLevelUnit' - - - - - - - - - 'FirstInfHighLevelUnit' - - - - - - - - - 'FrenchWeaponsForLifeForms' - - - - - 'FrenchWeaponsForLifeForms' - - - - - - - - - 'FuelSystems' - - - - - 'FuelSystems' - - - - - - - - - 'Function' - Function - - - - - - - - - 'GeometryRecordTypeField' - - - - - - - - - 'GermanWeaponsForLifeForms' - - - - - 'GermanWeaponsForLifeForms' - - - - - - - - - 'Helicopters' - - - - - - - - - 'HullAirframeBody' - - - - - - - - - 'HydraulicSystemsAndActuators' - - - - - 'HydraulicSystemsAndActuators' - - - - - - - - - 'InterfacesWithEnvironment' - - - - - - - - - 'LifeSupportSystems' - - - - - 'LifeSupportSystems' - - - - - - - - - 'OtherAcousticEmitters' - - - - - 'OtherAcousticEmitters' - - - - - - - - - 'RecordType' - - - - - - - - - 'ReferenceSystem' - - - - - - - - - Flag - 'ResponseFlag' - - - - - - - - - 'SensorTypes' - - - - - - - - - 'StateRecordTypeField' - - - - - - - - - 'SynchronizationState' - - - - - - - - - 'Tanks' - - - - - - - - - 'TDLType' - - - - - - - - - 'UKWeaponsForLifeForms' - - - - - 'UKWeaponsForLifeForms' - - - - - - - - - 'UserProtocolIDNum' - - - - - - - - - 'USWeaponsForLifeForms' - - - - - 'USWeaponsForLifeForms' - - - - - - - - - 'Vehicle' - - - - - - - - - 'Weapons' - - - - - 'Weapons' - - - - - - - - - 'XmitTermPriMode' - - - - - - - - - - - - - - - 'Conversion.GetArticulationTypeClass(int)' - parametertype - 'parametertype' - - - - - - - - - 'Conversion.GetArticulationTypeMetric(int)' - parametertype - 'parametertype' - - - - - - - - - 'Conversion.MakeArticulationParameterType(uint, uint)' - typeclass - 'typeclass' - - - - - 'Conversion.MakeArticulationParameterType(uint, uint)' - typemetric - 'typemetric' - - - - - - - - - - - 'DataInputStream' - Stream - - - - - - - - - Float - 'DataInputStream.ReadFloat()' - - - - - - - - - Int - 'DataInputStream.ReadInt()' - - - - - - - - - Long - 'DataInputStream.ReadLong()' - - - - - - - - - Short - 'DataInputStream.ReadShort()' - - - - - - - - - Unsigned - 'DataInputStream.ReadUnsignedByte()' - - - - - - - - - Int - 'DataInputStream.ReadUnsignedInt()' - - - - - Unsigned - 'DataInputStream.ReadUnsignedInt()' - - - - - - - - - Long - 'DataInputStream.ReadUnsignedLong()' - - - - - Unsigned - 'DataInputStream.ReadUnsignedLong()' - - - - - - - - - Short - 'DataInputStream.ReadUnsignedShort()' - - - - - Unsigned - 'DataInputStream.ReadUnsignedShort()' - - - - - - - - - - - 'DataOutputStream' - Stream - - - - - - - - - 'DataStream' - Stream - - - - - - - - - 'DataStream.ReturnByteArray(byte[], int, int)' - - - - - - - - - 'DataStream.StreamByteArray' - - - - - - - - - - - DIS - 'DIS1998ChunkConverter' - Dis - - - - - - - - - 'List<EightByteChunk>' - 'DIS1998ChunkConverter.ArrayToEightByteChunks(Array)' - - - - - - - - - 'List<FourByteChunk>' - 'DIS1998ChunkConverter.ArrayToFourByteChunks(Array)' - - - - - - - - - 'List<TwoByteChunk>' - 'DIS1998ChunkConverter.ArrayToTwoByteChunks(Array)' - - - - - - - - - 'List<EightByteChunk>' - 'DIS1998ChunkConverter.EightByteChunksToArray(List<EightByteChunk>)' - - - - - - - - - 'List<FourByteChunk>' - 'DIS1998ChunkConverter.FourByteChunksToArray(List<FourByteChunk>)' - - - - - - - - - 'List<EightByteChunk>' - 'DIS1998ChunkConverter.StringToEightByteChunks(string)' - - - - - - - - - 'List<FourByteChunk>' - 'DIS1998ChunkConverter.StringToFourByteChunks(string)' - - - - - - - - - 'List<TwoByteChunk>' - 'DIS1998ChunkConverter.StringToTwoByteChunks(string)' - - - - - - - - - 'List<TwoByteChunk>' - 'DIS1998ChunkConverter.TwoByteChunksToArray(List<TwoByteChunk>)' - - - - - - - - - - - DIS - 'DISEnumerations' - Dis - - - - - 'DISEnumerations' - - - - - - - - - 'DISEnumerations.EnumerationForValueExists<T>(int)' - 'T' - - - - - - - - - 'DISEnumerations.GetEnumerationForValue<T>(int)' - 'T' - - - - - 'int.ToString()' - 'DISEnumerations.GetEnumerationForValue<T>(int)' - 'int.ToString(IFormatProvider)' - - - - - - - - - - - 'EnumNotFoundException' - - - - - - - - - 'EnumNotFoundException.EnumNotFoundException(SerializationInfo, StreamingContext)' - protected - - - - - - - - - - - 'InternetDomainCodeAttribute' - - - - - - - - - Pdu - 'PduBank' - - - - - - - - - Pdu - 'PduBank.GetPdu(PduType1998)' - - - - - 'PduBank.GetPdu(PduType1998)' - pdu - 'pduType' - - - - - - - - - 'PduBank.GetPdu(uint)' - type - 'pdu_type' - Type - - - - - Pdu - 'PduBank.GetPdu(uint)' - - - - - 'PduBank.GetPdu(uint)' - pdu - 'pdu_type' - - - - - 'PduBank.GetPdu(uint)' - 'pdu_type' - - - - - - - - - - - Pdu - 'PduProcessor' - - - - - - - - - Pdu - 'PduProcessor.ConvertByteArrayToPdu1998(byte, byte[], Endian)' - - - 'PduProcessor.ConvertByteArrayToPdu1998(byte, byte[], Endian)' - Pdu - 'rawPdu' - - - - - 'PduProcessor.ConvertByteArrayToPdu1998(byte, byte[], Endian)' - pdu - 'pduType' - - - - - 'PduProcessor.ConvertByteArrayToPdu1998(byte, byte[], Endian)' - 'ds' - 'DataInputStream' - - - - - - - - - Pdu - 'PduProcessor.DecodePdu(object)' - - - - - 'PduProcessor.DecodePdu(object)' - pdu - 'pdu' - - - - - - - - - 'PduProcessor.ProcessPdu(byte[])' - 'object' - - - - - 'List<object>' - 'PduProcessor.ProcessPdu(byte[])' - - - - - Pdu - 'PduProcessor.ProcessPdu(byte[])' - - - - - - - - - 'List<object>' - 'PduProcessor.ProcessPdu(byte[], Endian)' - - - - - Pdu - 'PduProcessor.ProcessPdu(byte[], Endian)' - - - - - - - - - 'PduProcessor.ProcessPdu(Stream)' - 'object' - - - - - Pdu - 'PduProcessor.ProcessPdu(Stream)' - - - - - - - - - Pdu - 'PduProcessor.ProcessPdu(Stream, Endian)' - - - - - - - - - 'rawPdu' - - - - - Pdu - 'PduProcessor.ProcessPdu(Stream, Endian, out byte[])' - - - 'PduProcessor.ProcessPdu(Stream, Endian, out byte[])' - Pdu - 'rawPdu' - - - - - - - - - 'rawData' - - - - - 'PduProcessor.ProcessPdu(Stream, out byte[])' - 'object' - - - - - Pdu - 'PduProcessor.ProcessPdu(Stream, out byte[])' - - - - - - - - - 'PduProcessor.ProcessRawPdu(byte[])' - 'object' - - - - - 'List<byte[]>' - 'PduProcessor.ProcessRawPdu(byte[])' - - - - - Pdu - 'PduProcessor.ProcessRawPdu(byte[])' - - - - - 'PduProcessor.ProcessRawPdu(byte[])' - 'pduType' - 'byte' - - - - - 'PduProcessor.ProcessRawPdu(byte[])' - 'pduVersion' - 'byte' - - - - - - - - - 'List<byte[]>' - 'PduProcessor.ProcessRawPdu(byte[], Endian)' - - - - - Pdu - 'PduProcessor.ProcessRawPdu(byte[], Endian)' - - - - - - - - - 'dataQueue' - - - - - Pdu - 'PduProcessor.ProcessRawPdu(byte[], Endian, ref Queue<byte[]>)' - - - - - - - - - 'PduProcessor.ReturnUnmarshalledPdu(object, DataInputStream)' - - - - - - - - - 'PduProcessor.SwitchOnType(byte, uint, byte[])' - pdu - 'pduType' - - - 'PduProcessor.SwitchOnType(byte, uint, byte[])' - pdu - 'pduVersion' - - - - - - - - - Pdu - 'PduProcessor.UnmarshalRawPdu(PduType1998, DataInputStream)' - - - - - 'PduProcessor.UnmarshalRawPdu(PduType1998, DataInputStream)' - pdu - 'pduType' - - - - - - - - - Pdu - 'PduProcessor.UnmarshalRawPdu(PduType1998, byte[], Endian)' - - - 'PduProcessor.UnmarshalRawPdu(PduType1998, byte[], Endian)' - Pdu - 'rawPdu' - - - - - 'PduProcessor.UnmarshalRawPdu(PduType1998, byte[], Endian)' - pdu - 'pduType' - - - - - - - - - Pdu - 'PduProcessor.UnmarshalRawPdu(byte, DataInputStream)' - - - - - 'PduProcessor.UnmarshalRawPdu(byte, DataInputStream)' - pdu - 'pduType' - - - - - - - - - Pdu - 'PduProcessor.UnmarshalRawPdu(byte, byte[], Endian)' - - - 'PduProcessor.UnmarshalRawPdu(byte, byte[], Endian)' - Pdu - 'rawPdu' - - - - - 'PduProcessor.UnmarshalRawPdu(byte, byte[], Endian)' - pdu - 'pduType' - - - - - - - - - Pdu - 'PduProcessor.XmlDecodePdu(object)' - - - - - 'PduProcessor.XmlDecodePdu(object)' - pdu - 'pdu' - - - - - - - - - - - Pdu - 'PduType1998' - - - - - - - - - Resupply - 'PduType1998.ResupplyCancel' - - - - - - - - - Resupply - 'PduType1998.ResupplyOffer' - - - - - - - - - Resupply - 'PduType1998.ResupplyReceived' - - - - - - - - - - - - - - - - Sign {0} with a strong name key. - - - Consider a design that does not require that {0} be an out parameter. - - - {0} appears to have no upstream public or protected callers. - - - Seal {0}, if possible. - - - The compound word '{0}' in member name {1} exists as a discrete term. If your usage is intended to be single word, case it as '{2}' or strip the first token entirely if it represents any sort of Hungarian notation. - The compound word '{0}' in type name {1} exists as a discrete term. If your usage is intended to be single word, case it as '{2}'. - - - Consider changing the type of parameter {0} in {1} from {2} to its base type {3}. This method appears to only require base class members in its implementation. Suppress this violation if there is a compelling reason to require the more derived type in the method signature. - - - Modify {0} to catch a more specific exception than {1} or rethrow the exception. - - - Change {0} in {1} to use Collection<T>, ReadOnlyCollection<T> or KeyedCollection<K,V> - - - If {0} is not used in the current implementation, remove it. Otherwise give it a meaningful name. - - - Consider a design that does not require that {0} be a reference parameter. - - - Add a member to {0} that has a value of zero with a suggested name of 'None'. - - - Consider a design where {0} doesn't require explicit type parameter {1} in any call to it. - - - Correct the casing of '{0}' in member name {1} by changing it to '{2}'. - Correct the casing of '{0}' in member name {1} by changing it to '{2}'. '{2}' is an abbreviation and therefore is not subject to acronym casing guidelines. - In member {0}, correct the casing of '{1}' in parameter name {2} by changing it to '{3}'. - Correct the casing of '{0}' in type name {1} by changing it to '{2}'. - Correct the casing of '{0}' in type name {1} by changing it to '{2}'. '{2}' is an abbreviation and therefore is not subject to acronym casing guidelines. - - - Correct the spelling of '{0}' in assembly name {1}. - Correct the spelling of '{0}' in member name {1} or remove it entirely if it represents any sort of Hungarian notation. - Consider providing a more meaningful name than member name {0}. - In method {0}, correct the spelling of '{1}' in parameter name {2} or remove it entirely if it represents any sort of Hungarian notation. - Correct the spelling of '{0}' in namespace name '{1}'. - Correct the spelling of '{0}' in type name {1}. - - - Consider replacing the language-specific data type identifier '{0}' in member name {1} with either a language-independent equivalent or a more generic term, such as 'value'. - - - Remove the underscores from member name {0}. - In member {0}, remove the underscores from parameter name {1}. - Remove the underscores from type name {0}. - - - Either replace the suffix '{0}' in member name {1} with the suggested numeric alternate '2' or provide a more meaningful suffix that distinguishes it from the member it replaces. - Rename type name {0} so that it does not end in '{1}'. - - - Rename type {0} so that it no longer conflicts with the reserved language keyword '{1}'. Using a reserved keyword as the name of a type makes it harder for consumers in other languages to use the type. - - - Add an implementation of GetObjectData to type {0}. - - - Change the accessibility of {0} to {1}. - - - The constituent members of {0} appear to represent flags that can be combined rather than discrete values. If this is correct, mark the enumeration with FlagsAttribute. - - - The 'this' parameter (or 'Me' in Visual Basic) of {0} is never used. Mark the member as static (or Shared in Visual Basic) or use 'this'/'Me' in the method body or at least one property accessor, if appropriate. - - - If the name {0} is plural, change it to its singular form. - - - Change {0} to return a collection or make it a method. - - - {0} declares a variable, {1}, of type {2}, which is never used or is only assigned to. Use this variable or remove it. - - - Because the behavior of {0} could vary based on the current user's locale settings, replace this call in {1} with a call to {2}. If the result of {2} will be displayed to the user, specify 'CultureInfo.CurrentCulture' as the 'IFormatProvider' parameter. Otherwise, if the result will be stored and accessed by software, such as when it is persisted to disk or to a database, specify 'CultureInfo.InvariantCulture'. - - - Remove the public constructors from {0}. - - - Replace the term '{0}' in member name {1} with an appropriate alternate or remove it entirely. - Replace the term '{0}' in type name {1} with an appropriate alternate or remove it entirely. - - - Change {0} to a property if appropriate. - - - - + + + + True + c:\program files (x86)\microsoft fxcop 1.36\Xml\FxCopReport.xsl + + + + + + True + True + True + 10 + 1 + + False + + True + 120 + False + 3.5 + + + + + + + + + + + + + + + + + + + + + + + + + + Asiistech + Asiistech.OpenDis + + + + + Dis + Asiistech.OpenDis + + + + + + + + + Snet + DISnet + + + + + + + + + Snet + DISnet.Utilities + + + + + + + + + + + + + 'Asiistech.OpenDis.dll' + + + + + Asiistech + 'Asiistech.OpenDis.dll' + + + + + Dis + 'Asiistech.OpenDis.dll' + + + + + + + + + + + Pdu + 'AcknowledgePdu' + + + + + + + + + Flag + 'AcknowledgePdu.AcknowledgeFlag' + + + + + + + + + ID + 'AcknowledgePdu.RequestID' + Id + + + + + + + + + Flag + 'AcknowledgePdu.ResponseFlag' + + + + + + + + + + + Pdu + 'AcknowledgeReliablePdu' + + + + + + + + + Flag + 'AcknowledgeReliablePdu.AcknowledgeFlag' + + + + + + + + + ID + 'AcknowledgeReliablePdu.RequestID' + Id + + + + + + + + + Flag + 'AcknowledgeReliablePdu.ResponseFlag' + + + + + + + + + + + + + ID + 'AcousticBeamData.BeamIDNumber' + Id + + + + + + + + + Marshalled + 'AcousticBeamData.GetMarshalledSize()' + + + + + 'AcousticBeamData.GetMarshalledSize()' + + + + + + + + + 'AcousticBeamData.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + + + Azimuthal + 'AcousticBeamFundamentalParameter.AzimuthalBeamwidth' + + + + + Beamwidth + 'AcousticBeamFundamentalParameter.AzimuthalBeamwidth' + + + + + + + + + De + 'AcousticBeamFundamentalParameter.DeBeamwidth' + DE + + + + + Beamwidth + 'AcousticBeamFundamentalParameter.DeBeamwidth' + + + + + + + + + Marshalled + 'AcousticBeamFundamentalParameter.GetMarshalledSize()' + + + + + 'AcousticBeamFundamentalParameter.GetMarshalledSize()' + + + + + + + + + 'AcousticBeamFundamentalParameter.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + + + Marshalled + 'AcousticEmitter.GetMarshalledSize()' + + + + + 'AcousticEmitter.GetMarshalledSize()' + + + + + + + + + 'AcousticEmitter.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + + + ID + 'AcousticEmitterSystem.AcousticID' + Id + + + + + + + + + Marshalled + 'AcousticEmitterSystem.GetMarshalledSize()' + + + + + 'AcousticEmitterSystem.GetMarshalledSize()' + + + + + + + + + 'AcousticEmitterSystem.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + + + 'List<AcousticBeamData>' + 'AcousticEmitterSystemData.BeamRecords' + + + + + + + + + Marshalled + 'AcousticEmitterSystemData.GetMarshalledSize()' + + + + + 'AcousticEmitterSystemData.GetMarshalledSize()' + + + + + + + + + 'AcousticEmitterSystemData.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + Pdu + 'ActionRequestPdu' + + + + + + + + + ID + 'ActionRequestPdu.ActionID' + Id + + + + + + + + + 'List<FixedDatum>' + 'ActionRequestPdu.FixedDatums' + + + + + Datums + 'ActionRequestPdu.FixedDatums' + + + + + + + + + ID + 'ActionRequestPdu.RequestID' + Id + + + + + + + + + 'List<VariableDatum>' + 'ActionRequestPdu.VariableDatums' + + + + + Datums + 'ActionRequestPdu.VariableDatums' + + + + + + + + + + + Pdu + 'ActionRequestReliablePdu' + + + + + + + + + ID + 'ActionRequestReliablePdu.ActionID' + Id + + + + + + + + + 'List<FixedDatum>' + 'ActionRequestReliablePdu.FixedDatumRecords' + + + + + + + + + ID + 'ActionRequestReliablePdu.RequestID' + Id + + + + + + + + + 'List<VariableDatum>' + 'ActionRequestReliablePdu.VariableDatumRecords' + + + + + + + + + + + Pdu + 'ActionResponsePdu' + + + + + + + + + 'List<FixedDatum>' + 'ActionResponsePdu.FixedDatums' + + + + + Datums + 'ActionResponsePdu.FixedDatums' + + + + + + + + + ID + 'ActionResponsePdu.RequestID' + Id + + + + + + + + + 'List<VariableDatum>' + 'ActionResponsePdu.VariableDatums' + + + + + Datums + 'ActionResponsePdu.VariableDatums' + + + + + + + + + + + Pdu + 'ActionResponseReliablePdu' + + + + + + + + + 'List<FixedDatum>' + 'ActionResponseReliablePdu.FixedDatumRecords' + + + + + + + + + ID + 'ActionResponseReliablePdu.RequestID' + Id + + + + + + + + + 'List<VariableDatum>' + 'ActionResponseReliablePdu.VariableDatumRecords' + + + + + + + + + + + ID + 'AggregateID' + Id + + + + + + + + + ID + 'AggregateID.AggregateID_' + Id + + + + + 'AggregateID.AggregateID_' + + + + + + + + + Marshalled + 'AggregateID.GetMarshalledSize()' + + + + + 'AggregateID.GetMarshalledSize()' + + + + + + + + + 'AggregateID.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + + + 'AggregateMarking.Characters' + + + + + + + + + Marshalled + 'AggregateMarking.GetMarshalledSize()' + + + + + 'AggregateMarking.GetMarshalledSize()' + + + + + + + + + 'AggregateMarking.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + Pdu + 'AggregateStatePdu' + + + + + + + + + ID + 'AggregateStatePdu.AggregateID' + Id + + + + + + + + + 'List<AggregateID>' + 'AggregateStatePdu.AggregateIDList' + + + + + ID + 'AggregateStatePdu.AggregateIDList' + Id + + + + + + + + + 'List<EntityID>' + 'AggregateStatePdu.EntityIDList' + + + + + ID + 'AggregateStatePdu.EntityIDList' + Id + + + + + + + + + ID + 'AggregateStatePdu.ForceID' + Id + + + + + + + + + DisAggregates + 'AggregateStatePdu.NumberOfDisAggregates' + Disaggregates + + + + + Dis + 'AggregateStatePdu.NumberOfDisAggregates' + + + + + + + + + Dis + 'AggregateStatePdu.NumberOfDisEntities' + + + + + + + + + 'List<EntityType>' + 'AggregateStatePdu.SilentAggregateSystemList' + + + + + + + + + 'List<EntityType>' + 'AggregateStatePdu.SilentEntitySystemList' + + + + + + + + + 'List<VariableDatum>' + 'AggregateStatePdu.VariableDatumList' + + + + + + + + + + + + + Marshalled + 'AggregateType.GetMarshalledSize()' + + + + + 'AggregateType.GetMarshalledSize()' + + + + + + + + + 'AggregateType.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + + + Marshalled + 'AngularVelocityVector.GetMarshalledSize()' + + + + + 'AngularVelocityVector.GetMarshalledSize()' + + + + + + + + + 'AngularVelocityVector.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + 'AngularVelocityVector.X' + + + + + + + + + 'AngularVelocityVector.Y' + + + + + + + + + 'AngularVelocityVector.Z' + + + + + + + + + + + + + 'AntennaLocation.AntennaLocation_' + + + + + + + + + Marshalled + 'AntennaLocation.GetMarshalledSize()' + + + + + 'AntennaLocation.GetMarshalledSize()' + + + + + + + + + 'AntennaLocation.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + Apa + 'ApaData' + + + + + + + + + Marshalled + 'ApaData.GetMarshalledSize()' + + + + + 'ApaData.GetMarshalledSize()' + + + + + + + + + 'ApaData.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + Areal + 'ArealObjectStatePdu' + + + + + Pdu + 'ArealObjectStatePdu' + + + + + + + + + ID + 'ArealObjectStatePdu.ForceID' + Id + + + + + + + + + ID + 'ArealObjectStatePdu.ObjectID' + Id + + + + + + + + + 'List<Vector3Double>' + 'ArealObjectStatePdu.ObjectLocation' + + + + + + + + + ID + 'ArealObjectStatePdu.ReceivingID' + Id + + + + + + + + + ID + 'ArealObjectStatePdu.ReferencedObjectID' + Id + + + + + + + + + ID + 'ArealObjectStatePdu.RequesterID' + Id + + + + + + + + + + + + + Marshalled + 'ArticulationParameter.GetMarshalledSize()' + + + + + 'ArticulationParameter.GetMarshalledSize()' + + + + + + + + + 'ArticulationParameter.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + + + Beamwidth + 'BeamAntennaPattern.AzimuthBeamwidth' + + + + + + + + + Ex + 'BeamAntennaPattern.Ex' + + + + + + + + + Ez + 'BeamAntennaPattern.Ez' + EZ + + + + + Ez + 'BeamAntennaPattern.Ez' + + + + + + + + + Marshalled + 'BeamAntennaPattern.GetMarshalledSize()' + + + + + 'BeamAntennaPattern.GetMarshalledSize()' + + + + + + + + + 'BeamAntennaPattern.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + + + Marshalled + 'BeamData.GetMarshalledSize()' + + + + + 'BeamData.GetMarshalledSize()' + + + + + + + + + 'BeamData.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + + + Marshalled + 'BurstDescriptor.GetMarshalledSize()' + + + + + 'BurstDescriptor.GetMarshalledSize()' + + + + + + + + + Munition + 'BurstDescriptor.Munition' + + + + + + + + + 'BurstDescriptor.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + + + Marshalled + 'ClockTime.GetMarshalledSize()' + + + + + 'ClockTime.GetMarshalledSize()' + + + + + + + + + 'ClockTime.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + Pdu + 'CollisionElasticPdu' + + + + + + + + + ID + 'CollisionElasticPdu.CollidingEntityID' + Id + + + + + + + + + ID + 'CollisionElasticPdu.CollisionEventID' + Id + + + + + + + + + ID + 'CollisionElasticPdu.IssuingEntityID' + Id + + + + + + + + + + + Pdu + 'CollisionPdu' + + + + + + + + + ID + 'CollisionPdu.CollidingEntityID' + Id + + + + + + + + + ID + 'CollisionPdu.EventID' + Id + + + + + + + + + ID + 'CollisionPdu.IssuingEntityID' + Id + + + + + + + + + + + Pdu + 'CommentPdu' + + + + + + + + + 'List<FixedDatum>' + 'CommentPdu.FixedDatums' + + + + + Datums + 'CommentPdu.FixedDatums' + + + + + + + + + 'List<VariableDatum>' + 'CommentPdu.VariableDatums' + + + + + Datums + 'CommentPdu.VariableDatums' + + + + + + + + + + + Pdu + 'CommentReliablePdu' + + + + + + + + + 'List<FixedDatum>' + 'CommentReliablePdu.FixedDatumRecords' + + + + + + + + + 'List<VariableDatum>' + 'CommentReliablePdu.VariableDatumRecords' + + + + + + + + + + + Pdu + 'CreateEntityPdu' + + + + + + + + + ID + 'CreateEntityPdu.RequestID' + Id + + + + + + + + + + + Pdu + 'CreateEntityReliablePdu' + + + + + + + + + ID + 'CreateEntityReliablePdu.RequestID' + Id + + + + + + + + + + + Pdu + 'DataPdu' + + + + + + + + + 'List<FixedDatum>' + 'DataPdu.FixedDatums' + + + + + Datums + 'DataPdu.FixedDatums' + + + + + + + + + ID + 'DataPdu.RequestID' + Id + + + + + + + + + 'List<VariableDatum>' + 'DataPdu.VariableDatums' + + + + + Datums + 'DataPdu.VariableDatums' + + + + + + + + + + + Pdu + 'DataQueryPdu' + + + + + + + + + 'List<FixedDatum>' + 'DataQueryPdu.FixedDatums' + + + + + Datums + 'DataQueryPdu.FixedDatums' + + + + + + + + + ID + 'DataQueryPdu.RequestID' + Id + + + + + + + + + 'List<VariableDatum>' + 'DataQueryPdu.VariableDatums' + + + + + Datums + 'DataQueryPdu.VariableDatums' + + + + + + + + + + + Pdu + 'DataQueryReliablePdu' + + + + + + + + + 'List<FixedDatum>' + 'DataQueryReliablePdu.FixedDatumRecords' + + + + + + + + + ID + 'DataQueryReliablePdu.RequestID' + Id + + + + + + + + + 'List<VariableDatum>' + 'DataQueryReliablePdu.VariableDatumRecords' + + + + + + + + + + + Pdu + 'DataReliablePdu' + + + + + + + + + 'List<FixedDatum>' + 'DataReliablePdu.FixedDatumRecords' + + + + + + + + + ID + 'DataReliablePdu.RequestID' + Id + + + + + + + + + 'List<VariableDatum>' + 'DataReliablePdu.VariableDatumRecords' + + + + + + + + + + + + + Marshalled + 'DeadReckoningParameter.GetMarshalledSize()' + + + + + 'DeadReckoningParameter.GetMarshalledSize()' + + + + + + + + + 'DeadReckoningParameter.OtherParameters' + + + + + + + + + 'DeadReckoningParameter.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + Pdu + 'DesignatorPdu' + + + + + + + + + CodeName + 'DesignatorPdu.CodeName' + Codename + + + + + + + + + ID + 'DesignatorPdu.DesignatedEntityID' + Id + + + + + + + + + ID + 'DesignatorPdu.DesignatingEntityID' + Id + + + + + + + + + Wrt + 'DesignatorPdu.DesignatorSpotWrtDesignated' + + + + + + + + + + + Pdu + 'DetonationPdu' + + + + + + + + + 'List<ArticulationParameter>' + 'DetonationPdu.ArticulationParameters' + + + + + + + + + ID + 'DetonationPdu.EventID' + Id + + + + + + + + + ID + 'DetonationPdu.MunitionID' + Id + + + + + Munition + 'DetonationPdu.MunitionID' + + + + + + + + + + + Pdu + 'DistributedEmissionsFamilyPdu' + + + + + + + + + 'obj' + 'DistributedEmissionsFamilyPdu.Equals(DistributedEmissionsFamilyPdu)' + 'DistributedEmissionsFamilyPdu' + 'Pdu' + + + + + + + + + + + + + Marshalled + 'EightByteChunk.GetMarshalledSize()' + + + + + 'EightByteChunk.GetMarshalledSize()' + + + + + + + + + 'EightByteChunk.OtherParameters' + + + + + + + + + 'EightByteChunk.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + + + ID + 'ElectronicEmissionBeamData.BeamIDNumber' + Id + + + + + + + + + Marshalled + 'ElectronicEmissionBeamData.GetMarshalledSize()' + + + + + 'ElectronicEmissionBeamData.GetMarshalledSize()' + + + + + + + + + 'List<TrackJamTarget>' + 'ElectronicEmissionBeamData.TrackJamTargets' + + + + + + + + + 'ElectronicEmissionBeamData.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + Pdu + 'ElectronicEmissionsPdu' + + + + + + + + + ID + 'ElectronicEmissionsPdu.EmittingEntityID' + Id + + + + + + + + + ID + 'ElectronicEmissionsPdu.EventID' + Id + + + + + + + + + Pdu + 'ElectronicEmissionsPdu.PaddingForEmissionsPdu' + + + + + + + + + 'List<ElectronicEmissionSystemData>' + 'ElectronicEmissionsPdu.Systems' + + + + + + + + + + + + + 'List<ElectronicEmissionBeamData>' + 'ElectronicEmissionSystemData.BeamDataRecords' + + + + + + + + + Marshalled + 'ElectronicEmissionSystemData.GetMarshalledSize()' + + + + + 'ElectronicEmissionSystemData.GetMarshalledSize()' + + + + + + + + + 'ElectronicEmissionSystemData.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + + + Marshalled + 'EmitterSystem.GetMarshalledSize()' + + + + + 'EmitterSystem.GetMarshalledSize()' + + + + + + + + + 'EmitterSystem.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + ID + 'EntityID' + Id + + + + + + + + + Marshalled + 'EntityID.GetMarshalledSize()' + + + + + 'EntityID.GetMarshalledSize()' + + + + + + + + + 'EntityID.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + Pdu + 'EntityInformationFamilyPdu' + + + + + + + + + 'obj' + 'EntityInformationFamilyPdu.Equals(EntityInformationFamilyPdu)' + 'EntityInformationFamilyPdu' + 'Pdu' + + + + + + + + + + + Pdu + 'EntityManagementFamilyPdu' + + + + + + + + + 'obj' + 'EntityManagementFamilyPdu.Equals(EntityManagementFamilyPdu)' + 'EntityManagementFamilyPdu' + 'Pdu' + + + + + + + + + + + Pdu + 'EntityStatePdu' + + + + + + + + + 'List<ArticulationParameter>' + 'EntityStatePdu.ArticulationParameters' + + + + + + + + + ID + 'EntityStatePdu.EntityID' + Id + + + + + + + + + + + Pdu + 'EntityStateUpdatePdu' + + + + + + + + + 'List<ArticulationParameter>' + 'EntityStateUpdatePdu.ArticulationParameters' + + + + + + + + + ID + 'EntityStateUpdatePdu.EntityID' + Id + + + + + + + + + + + + + Marshalled + 'EntityType.GetMarshalledSize()' + + + + + 'EntityType.GetMarshalledSize()' + + + + + + + + + 'EntityType.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + + + Marshalled + 'Environment.GetMarshalledSize()' + + + + + 'Environment.GetMarshalledSize()' + + + + + + + + + 'Environment.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + Pdu + 'EnvironmentalProcessPdu' + + + + + + + + + ID + 'EnvironmentalProcessPdu.EnvironementalProcessID' + Id + + + + + Environemental + 'EnvironmentalProcessPdu.EnvironementalProcessID' + + + + + + + + + 'List<Environment>' + 'EnvironmentalProcessPdu.EnvironmentRecords' + + + + + + + + + + + ID + 'EventID' + Id + + + + + + + + + Marshalled + 'EventID.GetMarshalledSize()' + + + + + 'EventID.GetMarshalledSize()' + + + + + + + + + 'EventID.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + Pdu + 'EventReportPdu' + + + + + + + + + 'List<FixedDatum>' + 'EventReportPdu.FixedDatums' + + + + + Datums + 'EventReportPdu.FixedDatums' + + + + + + + + + 'List<VariableDatum>' + 'EventReportPdu.VariableDatums' + + + + + Datums + 'EventReportPdu.VariableDatums' + + + + + + + + + + + Pdu + 'EventReportReliablePdu' + + + + + + + + + 'List<FixedDatum>' + 'EventReportReliablePdu.FixedDatumRecords' + + + + + + + + + 'List<VariableDatum>' + 'EventReportReliablePdu.VariableDatumRecords' + + + + + + + + + + + Pdu + 'FastEntityStatePdu' + + + + + + + + + 'List<ArticulationParameter>' + 'FastEntityStatePdu.ArticulationParameters' + + + + + + + + + 'FastEntityStatePdu.Marking' + + + + + + + + + 'FastEntityStatePdu.OtherParameters' + + + + + + + + + Psi + 'FastEntityStatePdu.Psi' + + + + + + + + + + + Pdu + 'FirePdu' + + + + + + + + + ID + 'FirePdu.EventID' + Id + + + + + + + + + ID + 'FirePdu.MunitionID' + Id + + + + + Munition + 'FirePdu.MunitionID' + + + + + + + + + + + + + ID + 'FixedDatum.FixedDatumID' + Id + + + + + + + + + Marshalled + 'FixedDatum.GetMarshalledSize()' + + + + + 'FixedDatum.GetMarshalledSize()' + + + + + + + + + 'FixedDatum.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + + + Marshalled + 'FourByteChunk.GetMarshalledSize()' + + + + + 'FourByteChunk.GetMarshalledSize()' + + + + + + + + + 'FourByteChunk.OtherParameters' + + + + + + + + + 'FourByteChunk.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + + + Marshalled + 'FundamentalParameterData.GetMarshalledSize()' + + + + + 'FundamentalParameterData.GetMarshalledSize()' + + + + + + + + + 'FundamentalParameterData.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + Iff + 'FundamentalParameterDataIff' + + + + + + + + + Erp + 'FundamentalParameterDataIff.Erp' + + + + + + + + + Marshalled + 'FundamentalParameterDataIff.GetMarshalledSize()' + + + + + 'FundamentalParameterDataIff.GetMarshalledSize()' + + + + + + + + + Pgrf + 'FundamentalParameterDataIff.Pgrf' + + + + + + + + + 'FundamentalParameterDataIff.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + + + Marshalled + 'GridAxisRecord.GetMarshalledSize()' + + + + + 'GridAxisRecord.GetMarshalledSize()' + + + + + + + + + 'GridAxisRecord.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + + + 'GridAxisRecordRepresentation0.DataValues' + + + + + + + + + + + + + 'List<TwoByteChunk>' + 'GridAxisRecordRepresentation1.DataValues' + + + + + + + + + + + + + 'List<FourByteChunk>' + 'GridAxisRecordRepresentation2.DataValues' + + + + + + + + + + + Gridded + 'GriddedDataPdu' + + + + + Pdu + 'GriddedDataPdu' + + + + + + + + + ID + 'GriddedDataPdu.EnvironmentalSimulationApplicationID' + Id + + + + + + + + + 'List<GridAxisRecord>' + 'GriddedDataPdu.GridDataList' + + + + + + + + + Pdu + 'GriddedDataPdu.PduNumber' + + + + + + + + + Pdu + 'GriddedDataPdu.PduTotal' + + + + + + + + + + + Atc + 'IffAtcNavAidsLayer1Pdu' + + + + + Iff + 'IffAtcNavAidsLayer1Pdu' + + + + + Nav + 'IffAtcNavAidsLayer1Pdu' + + + + + Pdu + 'IffAtcNavAidsLayer1Pdu' + + + + + + + + + ID + 'IffAtcNavAidsLayer1Pdu.EventID' + Id + + + + + + + + + ID + 'IffAtcNavAidsLayer1Pdu.SystemID' + Id + + + + + + + + + + + Atc + 'IffAtcNavAidsLayer2Pdu' + + + + + Iff + 'IffAtcNavAidsLayer2Pdu' + + + + + Nav + 'IffAtcNavAidsLayer2Pdu' + + + + + Pdu + 'IffAtcNavAidsLayer2Pdu' + + + + + + + + + 'List<FundamentalParameterDataIff>' + 'IffAtcNavAidsLayer2Pdu.FundamentalIffParameters' + + + + + Iff + 'IffAtcNavAidsLayer2Pdu.FundamentalIffParameters' + + + + + + + + + + + Iff + 'IffFundamentalData' + + + + + + + + + Marshalled + 'IffFundamentalData.GetMarshalledSize()' + + + + + 'IffFundamentalData.GetMarshalledSize()' + + + + + + + + + 'IffFundamentalData.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + + + Marshalled + 'IntercomCommunicationsParameters.GetMarshalledSize()' + + + + + 'IntercomCommunicationsParameters.GetMarshalledSize()' + + + + + + + + + 'IntercomCommunicationsParameters.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + Pdu + 'IntercomControlPdu' + + + + + + + + + 'List<IntercomCommunicationsParameters>' + 'IntercomControlPdu.IntercomParameters' + + + + + + + + + ID + 'IntercomControlPdu.MasterCommunicationsDeviceID' + Id + + + + + + + + + ID + 'IntercomControlPdu.MasterEntityID' + Id + + + + + + + + + ID + 'IntercomControlPdu.SourceCommunicationsDeviceID' + Id + + + + + + + + + ID + 'IntercomControlPdu.SourceEntityID' + Id + + + + + + + + + ID + 'IntercomControlPdu.SourceLineID' + Id + + + + + + + + + + + Pdu + 'IntercomSignalPdu' + + + + + + + + + ID + 'IntercomSignalPdu.CommunicationsDeviceID' + Id + + + + + + + + + 'IntercomSignalPdu.Data' + + + + + + + + + ID + 'IntercomSignalPdu.EntityID' + Id + + + + + + + + + Tdl + 'IntercomSignalPdu.TdlType' + + + + + + + + + + + Pdu + 'IsGroupOfPdu' + + + + + + + + + 'List<VariableDatum>' + 'IsGroupOfPdu.GroupedEntityDescriptions' + + + + + + + + + ID + 'IsGroupOfPdu.GroupEntityID' + Id + + + + + + + + + + + Pdu + 'IsPartOfPdu' + + + + + + + + + ID + 'IsPartOfPdu.NamedLocationID' + Id + + + + + + + + + ID + 'IsPartOfPdu.OrginatingEntityID' + Id + + + + + Orginating + 'IsPartOfPdu.OrginatingEntityID' + + + + + + + + + ID + 'IsPartOfPdu.ReceivingEntityID' + Id + + + + + + + + + + + + + Marshalled + 'LayerHeader.GetMarshalledSize()' + + + + + 'LayerHeader.GetMarshalledSize()' + + + + + + + + + Informaiton + 'LayerHeader.LayerSpecificInformaiton' + + + + + + + + + 'LayerHeader.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + Pdu + 'LinearObjectStatePdu' + + + + + + + + + ID + 'LinearObjectStatePdu.ForceID' + Id + + + + + + + + + 'List<LinearSegmentParameter>' + 'LinearObjectStatePdu.LinearSegmentParameters' + + + + + + + + + ID + 'LinearObjectStatePdu.ObjectID' + Id + + + + + + + + + ID + 'LinearObjectStatePdu.ReceivingID' + Id + + + + + + + + + ID + 'LinearObjectStatePdu.ReferencedObjectID' + Id + + + + + + + + + ID + 'LinearObjectStatePdu.RequesterID' + Id + + + + + + + + + + + + + Marshalled + 'LinearSegmentParameter.GetMarshalledSize()' + + + + + 'LinearSegmentParameter.GetMarshalledSize()' + + + + + + + + + 'LinearSegmentParameter.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + Pdu + 'LogisticsFamilyPdu' + + + + + + + + + 'obj' + 'LogisticsFamilyPdu.Equals(LogisticsFamilyPdu)' + 'LogisticsFamilyPdu' + 'Pdu' + + + + + + + + + + + + + 'Marking.Characters' + + + + + + + + + Marshalled + 'Marking.GetMarshalledSize()' + + + + + 'Marking.GetMarshalledSize()' + + + + + + + + + 'Marking.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + Pdu + 'MinefieldDataPdu' + + + + + + + + + ID + 'MinefieldDataPdu.MinefieldID' + Id + + + + + + + + + Numbeer + 'MinefieldDataPdu.MinefieldSequenceNumbeer' + + + + + + + + + 'List<Vector3Float>' + 'MinefieldDataPdu.MineLocation' + + + + + + + + + Pdu + 'MinefieldDataPdu.NumberOfMinesInThisPdu' + + + + + + + + + Pdus + 'MinefieldDataPdu.NumberOfPdus' + + + + + + + + + Pdu + 'MinefieldDataPdu.PduSequenceNumber' + + + + + + + + + ID + 'MinefieldDataPdu.RequestID' + Id + + + + + + + + + ID + 'MinefieldDataPdu.RequestingEntityID' + Id + + + + + + + + + 'List<TwoByteChunk>' + 'MinefieldDataPdu.SensorTypes' + + + + + + + + + + + Pdu + 'MinefieldFamilyPdu' + + + + + + + + + 'obj' + 'MinefieldFamilyPdu.Equals(MinefieldFamilyPdu)' + 'MinefieldFamilyPdu' + 'Pdu' + + + + + + + + + + + Pdu + 'MinefieldQueryPdu' + + + + + + + + + ID + 'MinefieldQueryPdu.MinefieldID' + Id + + + + + + + + + 'List<Point>' + 'MinefieldQueryPdu.RequestedPerimeterPoints' + + + + + + + + + ID + 'MinefieldQueryPdu.RequestID' + Id + + + + + + + + + ID + 'MinefieldQueryPdu.RequestingEntityID' + Id + + + + + + + + + 'List<TwoByteChunk>' + 'MinefieldQueryPdu.SensorTypes' + + + + + + + + + + + Nack + 'MinefieldResponseNackPdu' + + + + + Pdu + 'MinefieldResponseNackPdu' + + + + + + + + + ID + 'MinefieldResponseNackPdu.MinefieldID' + Id + + + + + + + + + 'List<EightByteChunk>' + 'MinefieldResponseNackPdu.MissingPduSequenceNumbers' + + + + + Pdu + 'MinefieldResponseNackPdu.MissingPduSequenceNumbers' + + + + + + + + + Pdus + 'MinefieldResponseNackPdu.NumberOfMissingPdus' + + + + + + + + + ID + 'MinefieldResponseNackPdu.RequestID' + Id + + + + + + + + + ID + 'MinefieldResponseNackPdu.RequestingEntityID' + Id + + + + + + + + + + + Pdu + 'MinefieldStatePdu' + + + + + + + + + ID + 'MinefieldStatePdu.ForceID' + Id + + + + + + + + + ID + 'MinefieldStatePdu.MinefieldID' + Id + + + + + + + + + 'List<EntityType>' + 'MinefieldStatePdu.MineType' + + + + + + + + + 'List<Point>' + 'MinefieldStatePdu.PerimeterPoints' + + + + + + + + + + + + + Marshalled + 'ModulationType.GetMarshalledSize()' + + + + + 'ModulationType.GetMarshalledSize()' + + + + + + + + + 'ModulationType.System_' + + + + + + + + + 'ModulationType.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + + + Marshalled + 'NamedLocation.GetMarshalledSize()' + + + + + 'NamedLocation.GetMarshalledSize()' + + + + + + + + + 'NamedLocation.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + + + Marshalled + 'ObjectType.GetMarshalledSize()' + + + + + 'ObjectType.GetMarshalledSize()' + + + + + + + + + 'ObjectType.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + + + Marshalled + 'OneByteChunk.GetMarshalledSize()' + + + + + 'OneByteChunk.GetMarshalledSize()' + + + + + + + + + 'OneByteChunk.OtherParameters' + + + + + + + + + 'OneByteChunk.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + + + Marshalled + 'Orientation.GetMarshalledSize()' + + + + + 'Orientation.GetMarshalledSize()' + + + + + + + + + Psi + 'Orientation.Psi' + + + + + + + + + 'Orientation.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + Pdu + 'Pdu' + + + + + + + + + ID + 'Pdu.ExerciseID' + Id + + + + + + + + + Marshalled + 'Pdu.GetMarshalledSize()' + + + + + 'Pdu.GetMarshalledSize()' + + + + + + + + + Pdu + 'Pdu.PduType' + + + + + + + + + 'Pdu.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + Pdu + 'PduContainer' + + + + + + + + + Marshalled + 'PduContainer.GetMarshalledSize()' + + + + + 'PduContainer.GetMarshalledSize()' + + + + + + + + + Pdus + 'PduContainer.NumberOfPdus' + + + + + + + + + 'List<Pdu>' + 'PduContainer.Pdus' + + + + + Pdus + 'PduContainer.Pdus' + + + + + + + + + 'PduContainer.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + + + Marshalled + 'Point.GetMarshalledSize()' + + + + + 'Point.GetMarshalledSize()' + + + + + + + + + 'Point.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + 'Point.X' + + + + + + + + + 'Point.Y' + + + + + + + + + + + Pdu + 'PointObjectStatePdu' + + + + + + + + + ID + 'PointObjectStatePdu.ForceID' + Id + + + + + + + + + ID + 'PointObjectStatePdu.ObjectID' + Id + + + + + + + + + ID + 'PointObjectStatePdu.ReceivingID' + Id + + + + + + + + + ID + 'PointObjectStatePdu.ReferencedObjectID' + Id + + + + + + + + + ID + 'PointObjectStatePdu.RequesterID' + Id + + + + + + + + + + + + + Marshalled + 'PropulsionSystemData.GetMarshalledSize()' + + + + + 'PropulsionSystemData.GetMarshalledSize()' + + + + + + + + + 'PropulsionSystemData.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + Pdu + 'RadioCommunicationsFamilyPdu' + + + + + + + + + + + Marshalled + 'RadioEntityType.GetMarshalledSize()' + + + + + 'RadioEntityType.GetMarshalledSize()' + + + + + + + + + 'RadioEntityType.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + Pdu + 'ReceiverPdu' + + + + + + + + + Pdu + 'RecordQueryReliablePdu' + + + + + + + + + 'List<FourByteChunk>' + 'RecordQueryReliablePdu.RecordIDs' + + + + + IDs + 'RecordQueryReliablePdu.RecordIDs' + Ids + + + + + + + + + ID + 'RecordQueryReliablePdu.RequestID' + Id + + + + + + + + + + + + + Marshalled + 'RecordSet.GetMarshalledSize()' + + + + + 'RecordSet.GetMarshalledSize()' + + + + + + + + + ID + 'RecordSet.RecordID' + Id + + + + + + + + + 'RecordSet.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + + + Marshalled + 'Relationship.GetMarshalledSize()' + + + + + 'Relationship.GetMarshalledSize()' + + + + + + + + + 'Relationship.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + Pdu + 'RemoveEntityPdu' + + + + + + + + + ID + 'RemoveEntityPdu.RequestID' + Id + + + + + + + + + + + Pdu + 'RemoveEntityReliablePdu' + + + + + + + + + ID + 'RemoveEntityReliablePdu.RequestID' + Id + + + + + + + + + + + Pdu + 'RepairCompletePdu' + + + + + + + + + ID + 'RepairCompletePdu.ReceivingEntityID' + Id + + + + + + + + + ID + 'RepairCompletePdu.RepairingEntityID' + Id + + + + + + + + + + + Pdu + 'RepairResponsePdu' + + + + + + + + + ID + 'RepairResponsePdu.ReceivingEntityID' + Id + + + + + + + + + ID + 'RepairResponsePdu.RepairingEntityID' + Id + + + + + + + + + + + Pdu + 'ResupplyCancelPdu' + + + + + Resupply + 'ResupplyCancelPdu' + + + + + + + + + ID + 'ResupplyCancelPdu.ReceivingEntityID' + Id + + + + + + + + + ID + 'ResupplyCancelPdu.SupplyingEntityID' + Id + + + + + + + + + + + Pdu + 'ResupplyOfferPdu' + + + + + Resupply + 'ResupplyOfferPdu' + + + + + + + + + ID + 'ResupplyOfferPdu.ReceivingEntityID' + Id + + + + + + + + + 'List<SupplyQuantity>' + 'ResupplyOfferPdu.Supplies' + + + + + + + + + ID + 'ResupplyOfferPdu.SupplyingEntityID' + Id + + + + + + + + + + + Pdu + 'ResupplyReceivedPdu' + + + + + Resupply + 'ResupplyReceivedPdu' + + + + + + + + + ID + 'ResupplyReceivedPdu.ReceivingEntityID' + Id + + + + + + + + + 'List<SupplyQuantity>' + 'ResupplyReceivedPdu.Supplies' + + + + + + + + + ID + 'ResupplyReceivedPdu.SupplyingEntityID' + Id + + + + + + + + + + + Pdu + 'SeesPdu' + + + + + + + + + ID + 'SeesPdu.OrginatingEntityID' + Id + + + + + Orginating + 'SeesPdu.OrginatingEntityID' + + + + + + + + + 'List<PropulsionSystemData>' + 'SeesPdu.PropulsionSystemData' + + + + + + + + + 'List<VectoringNozzleSystemData>' + 'SeesPdu.VectoringSystemData' + + + + + + + + + + + Pdu + 'ServiceRequestPdu' + + + + + + + + + ID + 'ServiceRequestPdu.RequestingEntityID' + Id + + + + + + + + + ID + 'ServiceRequestPdu.ServicingEntityID' + Id + + + + + + + + + 'List<SupplyQuantity>' + 'ServiceRequestPdu.Supplies' + + + + + + + + + + + Pdu + 'SetDataPdu' + + + + + + + + + 'List<FixedDatum>' + 'SetDataPdu.FixedDatums' + + + + + Datums + 'SetDataPdu.FixedDatums' + + + + + + + + + ID + 'SetDataPdu.RequestID' + Id + + + + + + + + + 'List<VariableDatum>' + 'SetDataPdu.VariableDatums' + + + + + Datums + 'SetDataPdu.VariableDatums' + + + + + + + + + + + Pdu + 'SetDataReliablePdu' + + + + + + + + + 'List<FixedDatum>' + 'SetDataReliablePdu.FixedDatumRecords' + + + + + + + + + ID + 'SetDataReliablePdu.RequestID' + Id + + + + + + + + + 'List<VariableDatum>' + 'SetDataReliablePdu.VariableDatumRecords' + + + + + + + + + + + Pdu + 'SetRecordReliablePdu' + + + + + + + + + 'List<RecordSet>' + 'SetRecordReliablePdu.RecordSets' + + + + + + + + + ID + 'SetRecordReliablePdu.RequestID' + Id + + + + + + + + + + + RPMs + 'ShaftRPMs' + Rpms + + + + + RPMs + 'ShaftRPMs' + + + + + + + + + RPMs + 'ShaftRPMs.CurrentShaftRPMs' + Rpms + + + + + RPMs + 'ShaftRPMs.CurrentShaftRPMs' + + + + + + + + + Marshalled + 'ShaftRPMs.GetMarshalledSize()' + + + + + 'ShaftRPMs.GetMarshalledSize()' + + + + + + + + + RPMs + 'ShaftRPMs.OrderedShaftRPMs' + Rpms + + + + + RPMs + 'ShaftRPMs.OrderedShaftRPMs' + + + + + + + + + RPM + 'ShaftRPMs.ShaftRPMRateOfChange' + Rpm + + + + + + + + + 'ShaftRPMs.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + Pdu + 'SignalPdu' + + + + + + + + + 'SignalPdu.Data' + + + + + + + + + Tdl + 'SignalPdu.TdlType' + + + + + + + + + + + + + Marshalled + 'SimulationAddress.GetMarshalledSize()' + + + + + 'SimulationAddress.GetMarshalledSize()' + + + + + + + + + 'SimulationAddress.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + Pdu + 'SimulationManagementFamilyPdu' + + + + + + + + + ID + 'SimulationManagementFamilyPdu.OriginatingEntityID' + Id + + + + + + + + + ID + 'SimulationManagementFamilyPdu.ReceivingEntityID' + Id + + + + + + + + + + + Pdu + 'SimulationManagementWithReliabilityFamilyPdu' + + + + + + + + + ID + 'SimulationManagementWithReliabilityFamilyPdu.OriginatingEntityID' + Id + + + + + + + + + ID + 'SimulationManagementWithReliabilityFamilyPdu.ReceivingEntityID' + Id + + + + + + + + + + + + + Marshalled + 'SixByteChunk.GetMarshalledSize()' + + + + + 'SixByteChunk.GetMarshalledSize()' + + + + + + + + + 'SixByteChunk.OtherParameters' + + + + + + + + + 'SixByteChunk.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + + + Marshalled + 'SphericalHarmonicAntennaPattern.GetMarshalledSize()' + + + + + 'SphericalHarmonicAntennaPattern.GetMarshalledSize()' + + + + + + + + + 'SphericalHarmonicAntennaPattern.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + Pdu + 'StartResumePdu' + + + + + + + + + ID + 'StartResumePdu.RequestID' + Id + + + + + + + + + + + Pdu + 'StartResumeReliablePdu' + + + + + + + + + ID + 'StartResumeReliablePdu.RequestID' + Id + + + + + + + + + + + Pdu + 'StopFreezePdu' + + + + + + + + + ID + 'StopFreezePdu.RequestID' + Id + + + + + + + + + + + Pdu + 'StopFreezeReliablePdu' + + + + + + + + + ID + 'StopFreezeReliablePdu.RequestID' + Id + + + + + + + + + Reliablity + 'StopFreezeReliablePdu.RequiredReliablityService' + + + + + + + + + + + + + Marshalled + 'SupplyQuantity.GetMarshalledSize()' + + + + + 'SupplyQuantity.GetMarshalledSize()' + + + + + + + + + 'SupplyQuantity.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + Pdu + 'SyntheticEnvironmentFamilyPdu' + + + + + + + + + 'obj' + 'SyntheticEnvironmentFamilyPdu.Equals(SyntheticEnvironmentFamilyPdu)' + 'SyntheticEnvironmentFamilyPdu' + 'Pdu' + + + + + + + + + + + ID + 'SystemID' + Id + + + + + + + + + Marshalled + 'SystemID.GetMarshalledSize()' + + + + + 'SystemID.GetMarshalledSize()' + + + + + + + + + 'SystemID.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + + + ID + 'TrackJamTarget.BeamID' + Id + + + + + + + + + ID + 'TrackJamTarget.EmitterID' + Id + + + + + + + + + Marshalled + 'TrackJamTarget.GetMarshalledSize()' + + + + + 'TrackJamTarget.GetMarshalledSize()' + + + + + + + + + 'TrackJamTarget.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + Pdu + 'TransferControlRequestPdu' + + + + + + + + + ID + 'TransferControlRequestPdu.OrginatingEntityID' + Id + + + + + Orginating + 'TransferControlRequestPdu.OrginatingEntityID' + + + + + + + + + ID + 'TransferControlRequestPdu.RecevingEntityID' + Id + + + + + Receving + 'TransferControlRequestPdu.RecevingEntityID' + + + + + + + + + 'List<RecordSet>' + 'TransferControlRequestPdu.RecordSets' + + + + + + + + + ID + 'TransferControlRequestPdu.RequestID' + Id + + + + + + + + + Tranfer + 'TransferControlRequestPdu.TranferType' + + + + + + + + + ID + 'TransferControlRequestPdu.TransferEntityID' + Id + + + + + + + + + + + Pdu + 'TransmitterPdu' + + + + + + + + + 'List<Vector3Float>' + 'TransmitterPdu.AntennaPatternList' + + + + + + + + + CryptoSystem + 'TransmitterPdu.CryptoSystem' + Cryptosystem + + + + + + + + + 'List<Vector3Float>' + 'TransmitterPdu.ModulationParametersList' + + + + + + + + + + + + + Marshalled + 'TwoByteChunk.GetMarshalledSize()' + + + + + 'TwoByteChunk.GetMarshalledSize()' + + + + + + + + + 'TwoByteChunk.OtherParameters' + + + + + + + + + 'TwoByteChunk.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + Ua + 'UaPdu' + UA + + + + + Pdu + 'UaPdu' + + + + + Ua + 'UaPdu' + + + + + + + + + 'List<ApaData>' + 'UaPdu.ApaData' + + + + + Apa + 'UaPdu.ApaData' + + + + + + + + + 'List<AcousticEmitterSystemData>' + 'UaPdu.EmitterSystems' + + + + + + + + + ID + 'UaPdu.EmittingEntityID' + Id + + + + + + + + + ID + 'UaPdu.EventID' + Id + + + + + + + + + APAs + 'UaPdu.NumberOfAPAs' + Apas + + + + + APAs + 'UaPdu.NumberOfAPAs' + + + + + + + + + 'List<ShaftRPMs>' + 'UaPdu.ShaftRPMs' + + + + + RPMs + 'UaPdu.ShaftRPMs' + Rpms + + + + + RPMs + 'UaPdu.ShaftRPMs' + + + + + + + + + + + + + Marshalled + 'VariableDatum.GetMarshalledSize()' + + + + + 'VariableDatum.GetMarshalledSize()' + + + + + + + + + 'VariableDatum.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + ID + 'VariableDatum.VariableDatumID' + Id + + + + + + + + + 'List<EightByteChunk>' + 'VariableDatum.VariableDatums' + + + + + Datums + 'VariableDatum.VariableDatums' + + + + + + + + + + + + + Marshalled + 'Vector3Double.GetMarshalledSize()' + + + + + 'Vector3Double.GetMarshalledSize()' + + + + + + + + + 'Vector3Double.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + 'Vector3Double.X' + + + + + + + + + 'Vector3Double.Y' + + + + + + + + + 'Vector3Double.Z' + + + + + + + + + + + + + Marshalled + 'Vector3Float.GetMarshalledSize()' + + + + + 'Vector3Float.GetMarshalledSize()' + + + + + + + + + 'Vector3Float.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + 'Vector3Float.X' + + + + + + + + + 'Vector3Float.Y' + + + + + + + + + 'Vector3Float.Z' + + + + + + + + + + + + + Marshalled + 'VectoringNozzleSystemData.GetMarshalledSize()' + + + + + 'VectoringNozzleSystemData.GetMarshalledSize()' + + + + + + + + + 'VectoringNozzleSystemData.Unmarshal(DataInputStream)' + dis + 'dis' + + + + + + + + + + + Pdu + 'WarfareFamilyPdu' + + + + + + + + + ID + 'WarfareFamilyPdu.FiringEntityID' + Id + + + + + + + + + ID + 'WarfareFamilyPdu.TargetEntityID' + Id + + + + + + + + + + + + + + + 'AcknowledgeFlag' + + + + + Flag + 'AcknowledgeFlag' + + + + + + + + + 'AcousticEmitters' + + + + + 'AcousticEmitters' + + + + + + + + + + + 'AdditionalPassiveActivity.ReservedForClassifiedEnumerations' + + + + + + + + + + + 'ArticulatedPartsIndexNumber' + + + + + + + + + 'ArticulatedPartsOffsetNumber' + + + + + + + + + 'AttachedParts' + + + + + + + + + 'AuxiliaryCraft' + + + + + + + + + 'Byte11' + + + + + + + + + 'CISWeaponsForLifeForms' + + + + + 'CISWeaponsForLifeForms' + + + + + + + + + + + 'CommunicationType.Reserved' + + + + + + + + + + + 'CompanyBatteryTroop' + + + + + + + + + + + 'ControlType.Reserved' + + + + + + + + + + + 'CountryType' + + + + + + + + + 'DatumSpecificationRecord' + + + + + + + + + Flag + 'DatumSpecificationRecord.TrailFlag' + + + + + + + + + + + 'DriveTrain' + + + + + + + + + 'ElectromagneticEmitters' + + + + + 'ElectromagneticEmitters' + + + + + + + + + 'Electronics' + + + + + 'Electronics' + + + + + + + + + 'FirstCavHighLevelUnit' + + + + + + + + + 'FirstInfHighLevelUnit' + + + + + + + + + 'FrenchWeaponsForLifeForms' + + + + + 'FrenchWeaponsForLifeForms' + + + + + + + + + 'FuelSystems' + + + + + 'FuelSystems' + + + + + + + + + 'Function' + Function + + + + + + + + + 'GeometryRecordTypeField' + + + + + + + + + 'GermanWeaponsForLifeForms' + + + + + 'GermanWeaponsForLifeForms' + + + + + + + + + 'Helicopters' + + + + + + + + + 'HullAirframeBody' + + + + + + + + + 'HydraulicSystemsAndActuators' + + + + + 'HydraulicSystemsAndActuators' + + + + + + + + + 'InterfacesWithEnvironment' + + + + + + + + + 'LifeSupportSystems' + + + + + 'LifeSupportSystems' + + + + + + + + + 'OtherAcousticEmitters' + + + + + 'OtherAcousticEmitters' + + + + + + + + + 'RecordType' + + + + + + + + + 'ReferenceSystem' + + + + + + + + + Flag + 'ResponseFlag' + + + + + + + + + 'SensorTypes' + + + + + + + + + 'StateRecordTypeField' + + + + + + + + + 'SynchronizationState' + + + + + + + + + 'Tanks' + + + + + + + + + 'TDLType' + + + + + + + + + 'UKWeaponsForLifeForms' + + + + + 'UKWeaponsForLifeForms' + + + + + + + + + 'UserProtocolIDNum' + + + + + + + + + 'USWeaponsForLifeForms' + + + + + 'USWeaponsForLifeForms' + + + + + + + + + 'Vehicle' + + + + + + + + + 'Weapons' + + + + + 'Weapons' + + + + + + + + + 'XmitTermPriMode' + + + + + + + + + + + + + + + 'Conversion.GetArticulationTypeClass(int)' + parametertype + 'parametertype' + + + + + + + + + 'Conversion.GetArticulationTypeMetric(int)' + parametertype + 'parametertype' + + + + + + + + + 'Conversion.MakeArticulationParameterType(uint, uint)' + typeclass + 'typeclass' + + + + + 'Conversion.MakeArticulationParameterType(uint, uint)' + typemetric + 'typemetric' + + + + + + + + + + + 'DataInputStream' + Stream + + + + + + + + + Float + 'DataInputStream.ReadFloat()' + + + + + + + + + Int + 'DataInputStream.ReadInt()' + + + + + + + + + Long + 'DataInputStream.ReadLong()' + + + + + + + + + Short + 'DataInputStream.ReadShort()' + + + + + + + + + Unsigned + 'DataInputStream.ReadUnsignedByte()' + + + + + + + + + Int + 'DataInputStream.ReadUnsignedInt()' + + + + + Unsigned + 'DataInputStream.ReadUnsignedInt()' + + + + + + + + + Long + 'DataInputStream.ReadUnsignedLong()' + + + + + Unsigned + 'DataInputStream.ReadUnsignedLong()' + + + + + + + + + Short + 'DataInputStream.ReadUnsignedShort()' + + + + + Unsigned + 'DataInputStream.ReadUnsignedShort()' + + + + + + + + + + + 'DataOutputStream' + Stream + + + + + + + + + 'DataStream' + Stream + + + + + + + + + 'DataStream.ReturnByteArray(byte[], int, int)' + + + + + + + + + 'DataStream.StreamByteArray' + + + + + + + + + + + DIS + 'DIS1998ChunkConverter' + Dis + + + + + + + + + 'List<EightByteChunk>' + 'DIS1998ChunkConverter.ArrayToEightByteChunks(Array)' + + + + + + + + + 'List<FourByteChunk>' + 'DIS1998ChunkConverter.ArrayToFourByteChunks(Array)' + + + + + + + + + 'List<TwoByteChunk>' + 'DIS1998ChunkConverter.ArrayToTwoByteChunks(Array)' + + + + + + + + + 'List<EightByteChunk>' + 'DIS1998ChunkConverter.EightByteChunksToArray(List<EightByteChunk>)' + + + + + + + + + 'List<FourByteChunk>' + 'DIS1998ChunkConverter.FourByteChunksToArray(List<FourByteChunk>)' + + + + + + + + + 'List<EightByteChunk>' + 'DIS1998ChunkConverter.StringToEightByteChunks(string)' + + + + + + + + + 'List<FourByteChunk>' + 'DIS1998ChunkConverter.StringToFourByteChunks(string)' + + + + + + + + + 'List<TwoByteChunk>' + 'DIS1998ChunkConverter.StringToTwoByteChunks(string)' + + + + + + + + + 'List<TwoByteChunk>' + 'DIS1998ChunkConverter.TwoByteChunksToArray(List<TwoByteChunk>)' + + + + + + + + + + + DIS + 'DISEnumerations' + Dis + + + + + 'DISEnumerations' + + + + + + + + + 'DISEnumerations.EnumerationForValueExists<T>(int)' + 'T' + + + + + + + + + 'DISEnumerations.GetEnumerationForValue<T>(int)' + 'T' + + + + + 'int.ToString()' + 'DISEnumerations.GetEnumerationForValue<T>(int)' + 'int.ToString(IFormatProvider)' + + + + + + + + + + + 'EnumNotFoundException' + + + + + + + + + 'EnumNotFoundException.EnumNotFoundException(SerializationInfo, StreamingContext)' + protected + + + + + + + + + + + 'InternetDomainCodeAttribute' + + + + + + + + + Pdu + 'PduBank' + + + + + + + + + Pdu + 'PduBank.GetPdu(PduType1998)' + + + + + 'PduBank.GetPdu(PduType1998)' + pdu + 'pduType' + + + + + + + + + 'PduBank.GetPdu(uint)' + type + 'pdu_type' + Type + + + + + Pdu + 'PduBank.GetPdu(uint)' + + + + + 'PduBank.GetPdu(uint)' + pdu + 'pdu_type' + + + + + 'PduBank.GetPdu(uint)' + 'pdu_type' + + + + + + + + + + + Pdu + 'PduProcessor' + + + + + + + + + Pdu + 'PduProcessor.ConvertByteArrayToPdu1998(byte, byte[], Endian)' + + + 'PduProcessor.ConvertByteArrayToPdu1998(byte, byte[], Endian)' + Pdu + 'rawPdu' + + + + + 'PduProcessor.ConvertByteArrayToPdu1998(byte, byte[], Endian)' + pdu + 'pduType' + + + + + 'PduProcessor.ConvertByteArrayToPdu1998(byte, byte[], Endian)' + 'ds' + 'DataInputStream' + + + + + + + + + Pdu + 'PduProcessor.DecodePdu(object)' + + + + + 'PduProcessor.DecodePdu(object)' + pdu + 'pdu' + + + + + + + + + 'PduProcessor.ProcessPdu(byte[])' + 'object' + + + + + 'List<object>' + 'PduProcessor.ProcessPdu(byte[])' + + + + + Pdu + 'PduProcessor.ProcessPdu(byte[])' + + + + + + + + + 'List<object>' + 'PduProcessor.ProcessPdu(byte[], Endian)' + + + + + Pdu + 'PduProcessor.ProcessPdu(byte[], Endian)' + + + + + + + + + 'PduProcessor.ProcessPdu(Stream)' + 'object' + + + + + Pdu + 'PduProcessor.ProcessPdu(Stream)' + + + + + + + + + Pdu + 'PduProcessor.ProcessPdu(Stream, Endian)' + + + + + + + + + 'rawPdu' + + + + + Pdu + 'PduProcessor.ProcessPdu(Stream, Endian, out byte[])' + + + 'PduProcessor.ProcessPdu(Stream, Endian, out byte[])' + Pdu + 'rawPdu' + + + + + + + + + 'rawData' + + + + + 'PduProcessor.ProcessPdu(Stream, out byte[])' + 'object' + + + + + Pdu + 'PduProcessor.ProcessPdu(Stream, out byte[])' + + + + + + + + + 'PduProcessor.ProcessRawPdu(byte[])' + 'object' + + + + + 'List<byte[]>' + 'PduProcessor.ProcessRawPdu(byte[])' + + + + + Pdu + 'PduProcessor.ProcessRawPdu(byte[])' + + + + + 'PduProcessor.ProcessRawPdu(byte[])' + 'pduType' + 'byte' + + + + + 'PduProcessor.ProcessRawPdu(byte[])' + 'pduVersion' + 'byte' + + + + + + + + + 'List<byte[]>' + 'PduProcessor.ProcessRawPdu(byte[], Endian)' + + + + + Pdu + 'PduProcessor.ProcessRawPdu(byte[], Endian)' + + + + + + + + + 'dataQueue' + + + + + Pdu + 'PduProcessor.ProcessRawPdu(byte[], Endian, ref Queue<byte[]>)' + + + + + + + + + 'PduProcessor.ReturnUnmarshalledPdu(object, DataInputStream)' + + + + + + + + + 'PduProcessor.SwitchOnType(byte, uint, byte[])' + pdu + 'pduType' + + + 'PduProcessor.SwitchOnType(byte, uint, byte[])' + pdu + 'pduVersion' + + + + + + + + + Pdu + 'PduProcessor.UnmarshalRawPdu(PduType1998, DataInputStream)' + + + + + 'PduProcessor.UnmarshalRawPdu(PduType1998, DataInputStream)' + pdu + 'pduType' + + + + + + + + + Pdu + 'PduProcessor.UnmarshalRawPdu(PduType1998, byte[], Endian)' + + + 'PduProcessor.UnmarshalRawPdu(PduType1998, byte[], Endian)' + Pdu + 'rawPdu' + + + + + 'PduProcessor.UnmarshalRawPdu(PduType1998, byte[], Endian)' + pdu + 'pduType' + + + + + + + + + Pdu + 'PduProcessor.UnmarshalRawPdu(byte, DataInputStream)' + + + + + 'PduProcessor.UnmarshalRawPdu(byte, DataInputStream)' + pdu + 'pduType' + + + + + + + + + Pdu + 'PduProcessor.UnmarshalRawPdu(byte, byte[], Endian)' + + + 'PduProcessor.UnmarshalRawPdu(byte, byte[], Endian)' + Pdu + 'rawPdu' + + + + + 'PduProcessor.UnmarshalRawPdu(byte, byte[], Endian)' + pdu + 'pduType' + + + + + + + + + Pdu + 'PduProcessor.XmlDecodePdu(object)' + + + + + 'PduProcessor.XmlDecodePdu(object)' + pdu + 'pdu' + + + + + + + + + + + Pdu + 'PduType1998' + + + + + + + + + Resupply + 'PduType1998.ResupplyCancel' + + + + + + + + + Resupply + 'PduType1998.ResupplyOffer' + + + + + + + + + Resupply + 'PduType1998.ResupplyReceived' + + + + + + + + + + + + + + + + Sign {0} with a strong name key. + + + Consider a design that does not require that {0} be an out parameter. + + + {0} appears to have no upstream public or protected callers. + + + Seal {0}, if possible. + + + The compound word '{0}' in member name {1} exists as a discrete term. If your usage is intended to be single word, case it as '{2}' or strip the first token entirely if it represents any sort of Hungarian notation. + The compound word '{0}' in type name {1} exists as a discrete term. If your usage is intended to be single word, case it as '{2}'. + + + Consider changing the type of parameter {0} in {1} from {2} to its base type {3}. This method appears to only require base class members in its implementation. Suppress this violation if there is a compelling reason to require the more derived type in the method signature. + + + Modify {0} to catch a more specific exception than {1} or rethrow the exception. + + + Change {0} in {1} to use Collection<T>, ReadOnlyCollection<T> or KeyedCollection<K,V> + + + If {0} is not used in the current implementation, remove it. Otherwise give it a meaningful name. + + + Consider a design that does not require that {0} be a reference parameter. + + + Add a member to {0} that has a value of zero with a suggested name of 'None'. + + + Consider a design where {0} doesn't require explicit type parameter {1} in any call to it. + + + Correct the casing of '{0}' in member name {1} by changing it to '{2}'. + Correct the casing of '{0}' in member name {1} by changing it to '{2}'. '{2}' is an abbreviation and therefore is not subject to acronym casing guidelines. + In member {0}, correct the casing of '{1}' in parameter name {2} by changing it to '{3}'. + Correct the casing of '{0}' in type name {1} by changing it to '{2}'. + Correct the casing of '{0}' in type name {1} by changing it to '{2}'. '{2}' is an abbreviation and therefore is not subject to acronym casing guidelines. + + + Correct the spelling of '{0}' in assembly name {1}. + Correct the spelling of '{0}' in member name {1} or remove it entirely if it represents any sort of Hungarian notation. + Consider providing a more meaningful name than member name {0}. + In method {0}, correct the spelling of '{1}' in parameter name {2} or remove it entirely if it represents any sort of Hungarian notation. + Correct the spelling of '{0}' in namespace name '{1}'. + Correct the spelling of '{0}' in type name {1}. + + + Consider replacing the language-specific data type identifier '{0}' in member name {1} with either a language-independent equivalent or a more generic term, such as 'value'. + + + Remove the underscores from member name {0}. + In member {0}, remove the underscores from parameter name {1}. + Remove the underscores from type name {0}. + + + Either replace the suffix '{0}' in member name {1} with the suggested numeric alternate '2' or provide a more meaningful suffix that distinguishes it from the member it replaces. + Rename type name {0} so that it does not end in '{1}'. + + + Rename type {0} so that it no longer conflicts with the reserved language keyword '{1}'. Using a reserved keyword as the name of a type makes it harder for consumers in other languages to use the type. + + + Add an implementation of GetObjectData to type {0}. + + + Change the accessibility of {0} to {1}. + + + The constituent members of {0} appear to represent flags that can be combined rather than discrete values. If this is correct, mark the enumeration with FlagsAttribute. + + + The 'this' parameter (or 'Me' in Visual Basic) of {0} is never used. Mark the member as static (or Shared in Visual Basic) or use 'this'/'Me' in the method body or at least one property accessor, if appropriate. + + + If the name {0} is plural, change it to its singular form. + + + Change {0} to return a collection or make it a method. + + + {0} declares a variable, {1}, of type {2}, which is never used or is only assigned to. Use this variable or remove it. + + + Because the behavior of {0} could vary based on the current user's locale settings, replace this call in {1} with a call to {2}. If the result of {2} will be displayed to the user, specify 'CultureInfo.CurrentCulture' as the 'IFormatProvider' parameter. Otherwise, if the result will be stored and accessed by software, such as when it is persisted to disk or to a database, specify 'CultureInfo.InvariantCulture'. + + + Remove the public constructors from {0}. + + + Replace the term '{0}' in member name {1} with an appropriate alternate or remove it entirely. + Replace the term '{0}' in type name {1} with an appropriate alternate or remove it entirely. + + + Change {0} to a property if appropriate. + + + + diff --git a/Libs/CsharpDis6/OpenDis/FxCopCustomDictionary.xml b/Libs/CsharpDis6/FxCopCustomDictionary.xml similarity index 96% rename from Libs/CsharpDis6/OpenDis/FxCopCustomDictionary.xml rename to Libs/CsharpDis6/FxCopCustomDictionary.xml index f990686..ac065f0 100644 --- a/Libs/CsharpDis6/OpenDis/FxCopCustomDictionary.xml +++ b/Libs/CsharpDis6/FxCopCustomDictionary.xml @@ -1,26 +1,26 @@ - - - - Asiistech - Y - X - Z - x - y - z - uow - Blubit - Xpo - g - Resupply - dis - Dis - Pdu - pdu - Marshall - marshall - Marshalled - marshalled - - + + + + Asiistech + Y + X + Z + x + y + z + uow + Blubit + Xpo + g + Resupply + dis + Dis + Pdu + pdu + Marshall + marshall + Marshalled + marshalled + + \ No newline at end of file diff --git a/Libs/CsharpDis6/OpenDis.csproj b/Libs/CsharpDis6/OpenDis.csproj new file mode 100644 index 0000000..dd7ce0c --- /dev/null +++ b/Libs/CsharpDis6/OpenDis.csproj @@ -0,0 +1,9 @@ + + + + net5.0 + OpenDis_std + 6.0.0 + + + diff --git a/Libs/CsharpDis6/OpenDis/OpenDis.csproj.user b/Libs/CsharpDis6/OpenDis.csproj.user similarity index 50% rename from Libs/CsharpDis6/OpenDis/OpenDis.csproj.user rename to Libs/CsharpDis6/OpenDis.csproj.user index 566c009..d1cd772 100644 --- a/Libs/CsharpDis6/OpenDis/OpenDis.csproj.user +++ b/Libs/CsharpDis6/OpenDis.csproj.user @@ -1,6 +1,7 @@ - - - - ShowAllFiles - + + + + ShowAllFiles + false + \ No newline at end of file diff --git a/Libs/CsharpDis6/OpenDis.sln b/Libs/CsharpDis6/OpenDis.sln deleted file mode 100644 index 38e9cbf..0000000 --- a/Libs/CsharpDis6/OpenDis.sln +++ /dev/null @@ -1,47 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 11.00 -# Visual Studio 2010 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenDis", "OpenDis\OpenDis.csproj", "{628EE35F-450A-49B2-BA46-04FABB66D0BF}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenDis.Demo", "OpenDis.Demo\OpenDis.Demo.csproj", "{0FC1409E-A9F2-4409-85A3-D989A36C3CB8}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenDis.EspduReceiver", "EspduReceiver\OpenDis.EspduReceiver.csproj", "{70F94942-1466-4E6C-A2A3-89DB19C20159}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenDis.EspduSender", "EspduSender\OpenDis.EspduSender.csproj", "{AEF2FB06-9CCF-491A-9727-FE6E4C4CF664}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Analysis|x86 = Analysis|x86 - Debug|x86 = Debug|x86 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {628EE35F-450A-49B2-BA46-04FABB66D0BF}.Analysis|x86.ActiveCfg = Analysis|x86 - {628EE35F-450A-49B2-BA46-04FABB66D0BF}.Analysis|x86.Build.0 = Analysis|x86 - {628EE35F-450A-49B2-BA46-04FABB66D0BF}.Debug|x86.ActiveCfg = Debug|x86 - {628EE35F-450A-49B2-BA46-04FABB66D0BF}.Debug|x86.Build.0 = Debug|x86 - {628EE35F-450A-49B2-BA46-04FABB66D0BF}.Release|x86.ActiveCfg = Release|x86 - {628EE35F-450A-49B2-BA46-04FABB66D0BF}.Release|x86.Build.0 = Release|x86 - {0FC1409E-A9F2-4409-85A3-D989A36C3CB8}.Analysis|x86.ActiveCfg = Release|x86 - {0FC1409E-A9F2-4409-85A3-D989A36C3CB8}.Analysis|x86.Build.0 = Release|x86 - {0FC1409E-A9F2-4409-85A3-D989A36C3CB8}.Debug|x86.ActiveCfg = Debug|x86 - {0FC1409E-A9F2-4409-85A3-D989A36C3CB8}.Debug|x86.Build.0 = Debug|x86 - {0FC1409E-A9F2-4409-85A3-D989A36C3CB8}.Release|x86.ActiveCfg = Release|x86 - {0FC1409E-A9F2-4409-85A3-D989A36C3CB8}.Release|x86.Build.0 = Release|x86 - {70F94942-1466-4E6C-A2A3-89DB19C20159}.Analysis|x86.ActiveCfg = Release|x86 - {70F94942-1466-4E6C-A2A3-89DB19C20159}.Analysis|x86.Build.0 = Release|x86 - {70F94942-1466-4E6C-A2A3-89DB19C20159}.Debug|x86.ActiveCfg = Debug|x86 - {70F94942-1466-4E6C-A2A3-89DB19C20159}.Debug|x86.Build.0 = Debug|x86 - {70F94942-1466-4E6C-A2A3-89DB19C20159}.Release|x86.ActiveCfg = Release|x86 - {70F94942-1466-4E6C-A2A3-89DB19C20159}.Release|x86.Build.0 = Release|x86 - {AEF2FB06-9CCF-491A-9727-FE6E4C4CF664}.Analysis|x86.ActiveCfg = Release|x86 - {AEF2FB06-9CCF-491A-9727-FE6E4C4CF664}.Analysis|x86.Build.0 = Release|x86 - {AEF2FB06-9CCF-491A-9727-FE6E4C4CF664}.Debug|x86.ActiveCfg = Debug|x86 - {AEF2FB06-9CCF-491A-9727-FE6E4C4CF664}.Debug|x86.Build.0 = Debug|x86 - {AEF2FB06-9CCF-491A-9727-FE6E4C4CF664}.Release|x86.ActiveCfg = Release|x86 - {AEF2FB06-9CCF-491A-9727-FE6E4C4CF664}.Release|x86.Build.0 = Release|x86 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/Libs/CsharpDis6/OpenDis.suo b/Libs/CsharpDis6/OpenDis.suo deleted file mode 100644 index c5d5284fdc53bce7fdbf30a00acd5f78b98be16a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 286208 zcmeEv2YeL8`~HOvqJkhQqK2XZl8_Fe2&oY1gr**bkX%9}$%VU1AR;O#sMt}lAzwuS zMJy;{?}!}`5j&z{N2FL$;Qu^3JK4Rvz1vL!WaIC@`8=6zw=?gQciwsDop&~FXua*; zRqelW1RQ5O8afUfZ0=~HyWbe+5%Ri~!_ffeEr0_D4<3}aFXIVbdKAH903QAS!^SzV zA8BK`wg(ykEbnGOQ=mC;6u>fW2^X;B=r15Cxn8oC$OXx&qyRvw$QZ5$Fl@1`>c)QRwHU;vN>qyVWv8jucT0GYrbU@$NoI0qO436PykE;rUFI4g+MV-3X}kD zU>Z;ccmN;Z10+{jA>yV3U_ot{LFKf8`BZ)UHOcZHxlHV#?N{j?m+xi z`END;CiviSYW!>y4RFmeX#|iL@Lp4dyoEe~*KGgf1E&Fz0Pl4|$hOf1ATQv(GZD)6PhP-#Z0qC^(E#}X@3DO10Ok{U z0`HMmkOz=Yu>JF1UxefV{Qe0OaohQk&*(YCS8ezUnl~nWovgK<_x^c*uCnTPSk`V zypyN=z5s7UD`~i_WhCA5*u>{$FFbwyue0CI04yYGq@sp>A zI~YIvEym3w+`IDGu{ddOvHwk!KMD~te)gH{3$4cA7VmCVzh_2&tRgw9FB=4BApTQv zpZ&1a_)o;U|Ek|2hqNdEr92vnkGye|v+00yS59g;`1@xn`j#cvoGU+F%l31q@-Gvz zW}4DBrlF7WqW^KDhhpEASJj)bH>?DAn1Lt7j#n?gx!X-o{qlJEtB+sSZo}o%WD8_1 zkcV2xVS+6-p`WE~+<%L4NfC0PQYV{7L)xlTBne6cZbdo}qZiTBoY(oNQ5DO7OMdyT z^+^qHe1CB(w0D^+GGw;czyHAll$9Md^{<}oOvfK_7Wj|MPljQtTGgWtIFsWKbN)vOKJ-EU$JS4I z-)j6F@or0t{6AJ1MTC#Py7Zrc&vmsNKPd}+kbaKII8L)l|5#RC%4)D9Qmo${0gj*=KPo1 zl+XwHk3R0uZ)#6saB7|ZhnK(^|1tO;byMN$i59!iBe%88f5VSJ5WipE>*EP^-UkmF zSdKru29WeqpU1bX(mw$2O8)=fkbjKY54B8r;5!A13@y0$JztLB^u;YdF4((0wf8@p zwymO;Q(t?n<{*Bi9y|Y|{3lc4&?O505t5|H!R%w(P5mut_52T`?)#|!wNLKkSiUwn z_<6m`KW%P6KmO47kV8=0N}*pAxpnqB--elc_kOvutmm!)%Q`HsPR}N5SopAh^?#xA zZ-%N9&PRQljIpgt)y5jj3x7XXGUn&oK40|sgU_~UckT4MB=6VP!|=JLJ)K{#qWun4_@7I?D#86gxx&2v53d1a|D)%kTF!<(OUI)a%l#i` zctRhHzq;j~h0lGee$tHo@S{)8Sv81ggKu>Mto9zm@UB(*!;k(%{M09M-py+Kqw#Jt zHUIT;_*QRJ@fDZ%ZIZdO{o2KS+qI_Tqt9ET@2|E!|2EPNZEoq<(f*WkI-a$C#k@C4 zhYt^>9YO|}9QNlQ*5<#W!9xo0=d9AJC8}B_p+DlN&4bzS(fCURIHxChjnpoEpM2Me z-#)wen5*aRS$*e(y*;THH>*Ei+rIvc23O@wr5knM}pVPO#=;;1^?v7lavodW_lAoc&&dBdpCaqI$?MAF zT>Pj0h{qVE*Dg_dXwGm`0+O1iaY~z$Gt}f`!a~QbSOSRO_d)!$ZKzKCv^RP{{2VkN z?)e`p?MHhj8|6?4I&(oI=1oz~Pi}huqnxAWP_H2Cl?(&3a90{N z&ow`ms*0e4%7idyGKVTHl5-itPJ}I_MCoft39UGa!C^VmQGhdHXOOPYn5$SYF)fsc z#-rwV(6Yy>wMc6_9AD&PZjJe({e~l1*0_A-+my7ak7GU^&Vy`_{3AE5k8`Zo^XgU zHdIC(-70AterN*#-FNDpb3ppMBApbiKuTZDQIuibE@szeo^1X53Kw}U$dD>+B zpMn09b(U$#!A`f*%%&W2H$rfXU|F^?;dH`1G zFTlGUIB3N&26UDo|4B1By^tKp_snVM?@vYk_e5A7`Y*)$jcN3UV|w)T_-MDMuxDIM zOl;2y!-i((O>vdvIwB$*g#|^$E>x19hoEX^&Pa2YMUFsSPA~FCrj+IuS9*)Q(U~(8 zgK{Qbl?NOxnXn7SdDC5!%L_+(TwYhHPpQ%)bMvO6`uB(&hgO0r-aj@bTKVe{nO0ux zEBCnim%7S*p4{Rdkt53|7Z>FXaaE3SPj!{{pBxikkXX>GAT~BXF(x-Yx2Y1DjImMq zu%bMV+v_gyMUN};mgg2{`^xi++|f!B3SFM6lQC|0@%W4H+p1I zX=(1{VwZA}F~jF7^%hMoDn{dr9?6t?aVO7p)==fd<>BwLeQuA7bRJbF~m@5kZCViu0vuL2U0v{9tw zK?zA-OPj?gv`=B5NIt^$PmpW6(1Wn&;3y%lihH)X%;9*j>H5;G$E?kmvvBrxH>{1= zOe@ym_;RUYzfc0JQN~3ZMfOjr_yR2|({RNz$%l--#JGpzOB|<=kMNw_OdLkP;0*LR z;Iw&)btbJMIse4pj>lJgxIYC~GEVhFhCyTvF8R6_quI!B%43(SA|;A&t#a1C%Ra2>!hx&gQmxC!_T z$U}X)1>vngE-KS)2#XL(yY#zoy$F!k|HJt`z&pSa;6C7fU@5?NmLudC^+EOeA%rV| zhk-}bdygSp1w0Nsq27BE;Tqs6;A!9)fZux#;q$-?z>Dg=ml3`Kyb8Pq@V(a&t^?ix z-c;|&G ze4}3T-gh|v9{2(HQN8~&!X3abz)tnvE`+;*J-}Y|-tP$i0R9C20wy8N`w;#E{0r;{ zIMkv5el*f)t)2R}5pt+Jv>CQ*m(ptSv05BRV$e~WdqE!ya|2mWtD`l3Jq$Tf3@%cn za64g%M_U-Vwu!4w8Y;2$Ro1A?1ow;s56!?|JXW=3Vl6}h!WhhY@hlm=e;m$Iah-s7 zqwpjFZ>8W)Dz1~zYsBCz6RWwRQ3lfk;uYf;eXM6AcH>w>_dk{3i5!s?hs_`KKUHH7 zR9#jp(}Q(fz7!b$Fx03L#7gU+@yJp3gTNgSnt*4c>hgJ+eMMk77B;-piH>m$(zQ^Kw4E4B|fnmr;P#_;b*>ITOw!9iJHRU=fXqlAoIM=~(%f+fx7!5g!V;3=oNW~lZh(+Un{c&Z? ziE5e>j=CtDit&=wbWmr0Xw#u_602!QP|^?sKAr~2H~~C889hQ2_nhiaS>O0=7I#<-z@w;500)X39G3nMl#0N?TuL!tIQHHi7B1=Sn9i`9jB%8EiU*4I`P$}zvx0SMm*hdM6EA1!je zxqfnsjK{N{&1|&qxq^)^Ddghc;(@OmyXV2?>2vS<%js{_LbzBhC%=UXy?JJhEX?`>fl}JWx7x=pSsDs5?@>K>dRYJ#8Qt;#;8)>VHqd z<7mJt|Izbb*~_sXEJIq@^HUEYYAE}=@JCJN|8B-7R|tVjnH^xPLU)p1C9{dPVASLJ zr-%Ay(k&1Fr^Z)$`UfM|^YKTXpAGs;(c;)6@eVb@W=Cz~?*iUI?fXk20)O4hZ>FI&g zh`bPXi2c#V6O@$oP)m!wHG6>mN^NE>rX)kjo?r|o*Dwb8jSPIln0~=QjMpS1QXI_H z&}*1EpG930{V#;lJaH`a?%Kuan_}VyE*Q7-#Gg~voYfWg((zj_cpr6$Ty0A^kuzIb z3#M!-jy9JCYaj>W5<D3Mqe3<3xE|>Jr1rUE-_s*HQiYzYsrOt$skZf026HSBTYb zSx5=}L3osUDWx+Rs}@rJWZUb6TMV@)q0jW~FP!}Y^VbvlGs=^i@E^)RlcTPGzx);*yUqwlJ zqvcX}E;J!eqpsS)djMMu`yHp!@32jhm&vgi?R^CAk!!Ps?rXDY>Qm6R%g|1lJGuC} z(9BbArk$0T*LH%>I>FK66Y?eh~w(G`c7=3F-JHrE+>U zpf)wsm$Ir-G#aV!w|~io=AU^%`JJO8vmU4>_5Ti(z8wEjtC0aZ67Zi=aFjw-Ec$^c zT*V@#@$i)+xkPa5!1%Y?{qHKofBky$cKZ6U5E5!Y90G-A&ro`c~BRJp>}gu2iqPketDS3A17W6@xLbVKZgH}t{$?}Nv(ZiRkRdqUZ3 zv>LzkpA*=#r-1)Usf!wxY3L0&2JoR(XubIM6(3H2;m?!L|8mx>u2W}q@1;+POi}nz z!B2Hu|0Vqy;CIIU2dc|I^u6wIm3s)ju&}g$-ZfucbneXc({Jw3x={=@F*28ADCG>{ z(TF8LzXze#Ee~@1Vf*}J&T4cR%k`v>eUM&i6kZK@*9S>PSR`nk4E~IK_JWIVOBs^z z?e>S>UUdG)>?LI$%22bw7XA!(8pvxa|1@Tuh@#+sMl<_LM9ZFR2l9S zP(N%_+} z{`k<5;|cpewtY$|Z1-VbRv%KqdaC9ASLnY&eV6fbEF;S()O-5-YjM#C9G-r1xiI;+($<;<}dR}*8%bw>PzxMHu zCtUFP!|zj0lAK?L)ZqtP@99@O9H?dcIWqYt`%f*Oq78FKdNC9n-B+bS3!RIzQ4i+; z)QMeza4s+pxKh1$HNyG8HNds%z3UO)0Ne=Nq~5z3;Vr!%Pt4LqY> zKZo#n;05*iC4?^nuK=&A_tqkO9ayJczlrcI;BEE#U4-ueR2?wCwjq2U*aUo_-un>Y z7T_cG`V)ko0-veZUm)BHe5qc4h45?O8(=%|E$|)iJ@5nYBk&XOGq3~r1=tBRf>L-F z!rj0gfa&=S;qSm7>h)g;{|5E}|ETx&GX!XF&EK$P38_K!@WQL<%LbBCU3m4>yrM;d zUx@V}LLQHFP;;T5fsTd_MEXz@KBVnJMJU;aywn9=DENI6I2E}YdE*T5WolP01P(71 ztOHJT22C*^)(B_}Gy!mcUDbQt5uOF~P_LsA_5@o|n*Kmw4c-s^?1 zH;@eUQSbFb*dI7sy`F_I1xN+b)O#5SGl4RRU1r(_FrXVZ=E(E5k_ev0!0&ex1ZvQ-h z7x1a~DiBTwW~kQ}A)Eax`0BU07wLqfL;KfCnM|w^i{9>BRm@zpkAjSOa;=^>kNdM zz##QH3*kAy5cPT(LfTG`P_IWJ91UaxV}P;1IAA<50XP>p4>%ui0uuqIOClH7lYxBo z{+|dPD4U%KrvOFj{bDsNL0GDumm!=6c+~655S9ZKz;yLqCBlnb(Sni9iz2 zOTCwjun*8zz3z|jY+wK|P`#ImFbzmouQL%20tTzs=O7#c3{|g(BOC#YRIf)P%m&7& z*W(b52POdLs`t)E=maLJ*Et9$0lC0r^5A(tL0S>)WX$V|6^&|7(-{3oT=Y*I%3IUpOlr?x>0W=UaTR6L=2~^Z3p6 zKj=;l4#c+@@|$MIPk5oX<@n9#e+J-tDS*}Zf5p3JSdQOx{tbLo>{nwo{+^6mjejm= zjXA*Oz!d=d=6MLORL`$QI3Ku1y}l0N^}r44^-TyD05_}Gw<25!+@@aNf$&b?F7=w< zUySq5fqQ^^fh7R%-;Z!9uuQ#v0O5nc3iWy=!iUxKM-e`zo$^71pZR*?L+tv@Gr1my~p2D3E1d_Thn`A`Dn@A7d2b4aK`0H6>2@k z?b4wj|!+tM)t&mF0O3*J-8%D8OXInd4FMYS0J7JP>? zI}fw?X=4@cVEnY_O9iab{~6x3-v5}-KUA0gZHRvlz#~^#weGJ2T=(=zyMAqZaQ$WT zZfyK!*X)C|FVe@sbGg$`VtjP3UNO$>tn3j{qcbw2V&IiwMv1a!Ol?zxs?nO%ufb`8 zJIdoK;Mbz2_)3c5zohtN)n|#fqBPnyxgy`4r}(W6QYTAx- zEJX_e5AN|?P)ENLoTH-^fv^zZs(oR#+ZoiYwFz~h$2>x>F7@k~poC*&(n(tyK}kL+ zX%JzLatciepID#$8wyIPF|j`X=Ws+KAEIra58+3#(vl@wSWZ z^$2eO76CT_3xJyeKD!m+Lf|&_`VNG50(Ys`d}lGv{|DRy+zTuL?gQ=zmIBKFzDNB3 zsn>WXOxb~+JANTKu{0o(B7S8*eLOCYstHYD}zpeG#5#4xML}Xz&T?L(^&+IHx-kduB2f z$(Z3K=x>HzXy{*zo@X);rr|6FPlV?gdYws!rkg8{({Pv4m@<#Z%Bkwp6(b^8rDj*c z?`=u6<^a|kJ;+t+@)YGorxz(6VRJo|lj6=lUwtv#=P4>J>=9Yw&2xK-izaJseiJNv z`R&y!H!&|UDK5^xC=eGC6SqMZ|;rkI-_?|H)oYI>`37OJW{v- zkED-r=Y*1Cr*Mnzb;6OpSMiXp7M35wnb_?2aE)5e1O7{_?|d4yDwe`vY{Fz*S)bsr z2aEGBA|y~Tb{9Pt6W(y||HVRU^e;N?x~F_yggxX}Bh3uuJE3)S)pu6)R9?m%4yfcqYeb_uGVi>SsKlk*lsbcPstRi!`_2 zcv|Ks+uPn>abV+j{kJw6-`IdUj!>!3s@^)G#kQkA%TEv9ac%1%_uP5wixDIHt;~Jo zrI(r*P%g`ItTGO$UM{?B6Z(znztlen8yT({=SqCG2#$H=jQ8&oUwX1K@2S%ce&zUQ z?}EqLaBLxKen%MEP6CgW*D};rlD=3E=%?LSDC+ZP-O+4i(N|B!c4#-`xOXNs=&qx_ z6{zPLBT2Ok^?oK+*OLBEYx(=|t7FA}IBeB&zl(6b?DW-<0rJ0;fis& z7F+o4-%^h#kAZfB^N8H{g#4^fsim|PtyJuK*ssq3kE10U{gu@hn-@)Yub;J$l1Dix z*=GAv(x+T%M_JQk*@RlVgO9eQ2gDdvR+XGHI#6 znNKhJIL@P_snbt20)@icC;b8>u;8>46VT z3)T1W(zb+U#X3f+yyy>jP9490Z{HJCIBF?>Q6duFm#XhO*_yni=QDb4D%K?&{`k4h zqEIO>(E=Ewey@7wF=x-|A%^l5=fp&@3ns6`r=DYe=FkcW>1~wJJTTFSao@ruYWl7{ukphS7d$t z16T5dKIHn3biBek5&BK-3FF?UUYgTy?thUZUdkL+wkm&0ZMIzo(GQ^y5!pYvlc!5QqDE|NB?xs*OS#;U`{kj!K!^+ z-!)i-Gbf0U&v=Lo*kTj@t?z||6>se<^~cR`*#FX*S57QnI{b%sI{h7YhAwAbZZC4; zZtSeV9D1OOQO=0`G5c>9{f*}PClYPSx~HHw)}4O**0kTBX*T+syus7n-O>?@okac6 z{)fv0yU-t4e*$||?x0Qk9$IqgTaX$5p>068gZu|-F2_VbYgOTXfnB!2f4CPN5A*m< z*FRT#{a+U1|3gG?A%4^TFM@4IdKyqa8#WkLE&8qXf3miQjaYp+3h~SSZ}b-%`ak-? zNAtga*7@MD55GG`uH)qQ-i%cF0v7#{#+%Oy<`YlbkbhE&9|LKUIw~*5SDM|LzUJTl z*e}O4{PN_nSsV8C{O6-f*K!rB%*FRd2ujzgeMSbHQOqqVKV5## zdpmBgm^8=n(JLdSb7Ur|oUWF4N0|ALdJh~;2IhhtA#>_^rQNPIY@sRo(~6@2Vq{VdX$Iw z>0673l&Zyud%)61KYz*h&BXm@4;Z$y!ZB2iD){B`s0eKRdm#`o%z)dGKyJV0jSrrm z{C=|+C$E}Ey`-p<+W%0k(wzTMA`E@hg#S(f@1f5?9_I0*8HG6zzaOn(Uafjmg1DPm zjGw!bhC6CPzXx$|RzGS+f1>&RE7hjIJ>uV?#=pZR{Fn7!Zx<129}L=J1n&!Hynh6F z7}vLOPD%7{@qhjL)kjB~F(?lfvg0`p=OjDXnlFNEl5CIQsJN(IH{b*ihfaRnD7fI=}+rX5bG znf1_p4?Mnt(krSxGg+X-%DGRu&nIOLro{i=V7yVR=<|eKo#Yex`=XY@-zieEvDzt- z`}{^>=81MahkHIwvwspcDEj$1Y2l!^KDhx@Z8~gJS@-{AH0vv+zi<|E@Wl%X>|)Vn zL~I9W*Vo2~EsvV819m=Sb@aO|QlohtO-2PXkTw+N90}(xl&UhH?*g zvE?q@<*1pdutMU!H0+5fTBmG9n?Mn*kZNnEDy$5hh(&Av!itEtd@-1R(JT>HAx`_- zm+E^oX`SG2zsH>=#T;EedVJx>nI4H~0YYnG+GF~A>pB{g*QdT+@Zl`bT4pIPt!m1?I00l~hMBJub9+={JG$Vjw@^e)ZDd zTs+cSjJnKPEjh<`NbU2cImcDq#(T~mX*pHYW!7Lx!7Nblm`x}M%>7U!H{qk!F1~UC zQ|(`8=mUrr`JAzrdHy-_{BfJ+xsctA{VYC-blZh<2j+U9b*}&J3i_Q~B`1`nL7%^? zZBiPV3@t~;>|X=kOs~CJ|QPi?AQGX2Sh?GbQ z(p$hf7&^*_TVV&L=GuKFxk3NzVt-^r|42xNV__XYe_GV8a;GDXY6K^q+2DKcSr4D| z!mv+!uj;ukev^JK;#$znovhwKUc3&P7aRpothknWq-BF$=Fk26AWEnl>*)2FTtT{I z=NXWZrYu7 z{V#9d)Bm$8@4e^iJ7IKGl|#F`i}{30QB^pvuv)dms9Da5+%@Mvru?_s_LovP-SIG|-?aa&Dj%!yFF@SfyUtqt=JJOVAIb-; z#(x{)mirIwv`PDsl56mKanZ7&z{%ILlMwzuD*UWz@18~yee)WTq^V$BD<=_ zx1BTZ$`7u*@k_{#GPh)CRP)5WziiL{$QfB@e3*&QYtxP94kej~slb0AOkJn`Xzoh(BFsqyzHtws1&r&g6?0{xu+m3=yFIC1W$^mDBx zM`7)cE^L?e(M!9&T{!nH=g42EI`XSSEd4+_LtQ^>Yx+|Z36Xsab?KGpkA?N1$cKGV zolZUXv?tsAxo`ENb7v1LAWM=pUxuORmiOy>|6$I5O!co37a%k8)V!1V5-xlg8EuvS z(?@Z*qbB;l#}WTl^`mC=_p+dWn~ZN+tuKsr4dUNpIet_9YXlZJJ5B(Y2KBRHgJ%&x z=OB3m+W!rMNL1iw;P>CY!KfCDf z^y4SFek}YBGnIq>>3j9{SKN}Yx#IYa_jHTLpr{7)+j0E|*N+*^AUUDs*UxMR&r)vB zoz!UNfvXQ(a`UVgPy4d@D~(O_q%PzKz15wOzn<{rzB|9eCtI)Rf6J4P<{UltoSz=o zm-``X#`mGbu# zJe~$vjsG>oZ&m*9rC6_qk6)Iu)%f2){GY0yG|zu);}4mJ&?(iPyo30EQ!kC`zZ-pk zSCOJ?>aS|yb8mcb^Qf=qG+ojA(x*HR#_QMB4pzNQ{0|db*4l`c^5C<&;2)iB%sd&QN!1>p%2R&3_ot zODlF^#U$2JXqv7+|2MsN`?ja}avHYy^U(N@29txx=nJ%716MR!Co6xyIeG37rZ25W=v*UY(h+OMpR02W?WPP zPNRA!ro=~yar1?0zaCgxp=zCWKN9>Got^`WUM=%q?&~POV8;J?o6G+ZW%$^|)rkK+ zy!)4$0Q30G6tJ ztL>Ip^zwq_jDuHS@aT1;Q(UQl1HH{~zpPBhDKEf4Zu9J21a!3|=Q9{u`^QKy{w z3ydd%dekydZnV;?{?Jc9lpK9Y&#xN&16#iO$qQFK+3KFXU5@V5J>_bnnjg|{cXIFK zl=!5y__WmCvo4N~c8(aCF&vxmM5kvA8{u~mot8av^oVmV=4L$E8KbkE=ZzaNe8>oA zdPeq;F(XDQ??&O5&Y>y82aQb`l#%UB%O0FEdZcsA=&{3xII$Uz-?xXQWDOsmH9UR9 z_~;2K!-h6*f>Mk48?BWaQ#5IYtL34)t#rR+`+Zk`aR|~3iaN((6Bzwxoq=g*jcY^# z!uG|qc4;xxotvMTo9A5h+`z>wVus;p7JA1^Y zrDN<9%;D&PG&i#SIEwthx*ZYU4)z)o-lE9i=!TrI;|e?0K(o0k?ypcE_Gl002U7Oc zdkx73EuY$?9fg*btoChV!0)(c7%8L$ivwQ2?6V(6X!?XSDAw_FzoAg8+dZJhj$DuJ zM$b30pwE{j@D|d%-X=9n-`j*5QDi_CDufpYUl^YbUxB8{rZib!(|!qfs2A(l6QIRS zLe9w@rAiP_TU+!P`=M-^gVbCOTn)?xt^}?Dt^%$F<^$IOHv%^S*8}uQv~ll;3?o~;2Gdq;5p!V;01sq$(Mka0s10O175@VTHtkH9qw!(c*TDM#=TbiasMG%t_za+ry^j%o0&uRk0j@ts_ys`QBg$&q zfUkh>fNy|3z_-8w;CtW);78ym;Adb5@C&dL_!Za%>;@X*+j|lI4*UUdZsSkjZ{Qzb zAMh`*A2jjXMYHU}6pQ5Q$Ygm!zS6iCtc#HM6#JiNkRs()GD% z3l#HIQ_+^G(>2!Yvd1`Fd+KO>UHbVD_A=C9(A$T0HCpMp^gHFTW`AsZ3iVuHmXp5^ z7nUMz#kex3vZ_~T0qPE)w=%uu3gZp$FUv}=FdpUOfd-NPUGUXG4<|*6t*HOFgzfqV z+m~8!y$sYtv33UD3$CN&#C9n~E7FzpP~xwx3Z`o==%T;u;Ca9b)MiSUZg7*j<}QbO z#f-x-5c%+|Qk#1ZU{Bnl1+^m0*?5~Dg?|yv@vjN6V^r?}K7{HEEpgiXX#8u%SDOJ% zj={eZ(p}!7!cv!KWNxV|`aHM0WLU1xQ#7N=v3PiVc3E+eZ(NaUdh`fSk*m~~>nn1X zHfe=NZM8=uJw+wCp2{(~lbbLp?X)M^Q{2;)E1%2LSC1*~?iSDa@bacS8;Iyi_b_yPb$hA}P$S>C(v3+gM17Fql_kCqY_Uvx= zycgZKV(SfGY+nBX^AaMQ-+^0}54+fZ>HAAXZ*GAuivw);^d_rKY8d$PluM& z#QKqs3(Mp?w$`%z&Fo)#VcZh#p#5bLUT_1XBHX+3*`JU*t**cBG++lBDqbCwF(1-o1sMVN6oj2A}PI@2`;!(%i}GMTGR8gCRoXv3c5*>{@5H3s{P?5pN z=N$OPK~9+OylY)g$6Xd;VaweGW1~v&MB0s%U`#s!|BDgk<9{)pRzQEP9 zW}`IP5(qg^=6U^)KeLmvO<)rddYg8W&5 z6wUyw=6?%xk23!`sy$h?6;!*H=wYt>qTFaP7-a|5D5oSgmjB}LFOFw%am{kv%D{Sp zJUO>n!MMu~wr=?PqNoM4sW@Rd=nt_w^iD%gQP=C|1MR_&OrIaRx6qFkLRtI_0;h9> zb+?+8hJLp7R;0Q9*bRoZRd+bf1tmiFSogB0 zeujW^-Nyc%{CoWvq~9)5S77@6ZCrvqkH3Mmzih~dj=cU`pY~95_LP@tv+Z93FM*0T zZ9+w8P8K*96FBQ4rFiz-b!RhWCVwTHufO)|??8;{aSY^-ZR%U*@hfA!kl&>KYdW6F z{x;-`x(CPU8pfn4N*L;6 z-9i7&cu3uW)%gF$yBVCf!6DZ#o7H1~J0MYaAG*@fu3gzLzct*lbjyj}q<5%7k>wym zC6X}z>W}GIr}4Nmth$4>w*4F@G)vMLR(c|eeIvG zt#m)s=Z+Tc$g9^bYFCY1Xwt8=ytw#mN8}WrudGkcp3|pKkDeYM?e-M*jEjkh?KxrC z(CoY^u992_Mor_n_{&){` z$@P>ueV+2tsmkIrypmqzjZSx!xShjti%P|CCwfM1Nij=ECL~!+h*yc#8(mVA=W%=8 z1-|G!cS+CbMWqEZn6jjv{9(^BkIO6PH2IaO1x3X!kkPXiDV0mkGD^!!Tpne*)ay)h z`J5T0z9L_xGH{BX;h$>8?MO0>6u(k)1d)J>WW(lS3|8|6PfqB4{>bC z>h%K%9|TsY*DDb|3_PM@Hp^l?67aHm z?^T4a0dE4Y1M7e{0KQMWjq`Vach!6A5pDoBs@IzkegJG%ueTul2>4jN{uJS7z~}1q zR)q9Yx=p?Q8sRs={sMkLs{2AB*{G#6b72z&mH?RlT3;YKB4*UW91snwa z2KE8}0Cyul_9Hw1EW&vNaQNr10_9+Bw>A3172|bUka2F1ty-q_8PEZ_v$Hs`-S@W!~Ownx%oXEuMW$-s>}VmjAK$p_hKY;&x=xQ+0f^K7go=nB%DQ8eWG7jx%t!o>Bl$xx;w7q-A5~WZ0>pT ztbJD*w2^Q-+aCG)8>p2Fw9=a$yYHiY|NeQ?wA&iBbe{0-3L1(9)?n>=OD)^4UHrG3 zjlZ<|ADDk)EVgi1^6USe6hHBd$7c15S##%?9NuZUB+l3lxEG%0wQ8*6ky_?oP3w=g zJ0HFH3qMgMkWrkl6VFw80lnNp?#8**V#lthUf4b8>lG=BS|3}nrr)qNlnw*w4BXXA zuG37HE^Amd$&>n~u98if(G zyq^XxKz>lu_FI$k6aAO59wD$7xG3Se&(8g$^2hg1b9D2$$Np{93vhKuZRNkZpx@t* zPax%+mtOzz7a7N0`pA2$Q=Tr(j54BJlp_5OzFm*nuPFb}Yh!NpJ^jpe%gdg=A?Ci@ z&vR$*pn;UEul^y&(%g-s(qVu5J*(rNz} zEPsD_z>EuPRy;GnIr33HdBApPF6_Ocf_a+{sUqASF5KUiK7_cY%wK~d>}Q&SQoHP9 zYF18KZxLQv07)+a7e-139ccJeT?Nq);F)6QRfP5gOh-g5pon;)%NA5eeVf2eVU$c^=LuQ_GS#Hge(5A9Cb z{#xs4C#m((tZhs{{o}lv@Epz27V|j|AvIxQ4>(a*It_#c%-Y52n_}VyE*Q7-#Gg~v zoHZ1W{B>nxFv=7*UDUS;TMqrb6wFr9T8#c_jpIS%2#SYRUjFg0op3gX_GB)=SLI)d z>owCs6@8?p;7KXo;kl%SJd+k=T!G2CKzTo8dJO1J4@!?*YsyrK`OC40nf6-LJc^Ym z*6HO8&PdhT%nk0~0`;VUwqIF@VKUBz*I|~FIE<{p=sSS(#azA0-|+V%kS@VxIP&EF z=uDk;OSMk;CiSU|nco_XuZ;)zHTvA5U0LW9CEyWd7*bQL)B&b}ySj_IMm`|D7H6QI zaHWqY%=a?!Y#4q^zsGKHQ8zdytwYX1j`3cRQjY_#LzXqZ7FfsI;vVx$Z?~9+dyPZb zD^`z!#<5tqt#q(8%g+{y_j=fJAw@X)%u*U3Jxd8b{o9k}dk?IBc-y!|sbil%Cato{?AU_+bA%(MI8~AB;>Zjl0IAwWG%uVy7kDc(`TspoA%)Q{e)93%GEo(dfHwLv+ zFMn#QDfN=5%;n&a@-Kb)Gz6IT;5UNr=;hDA__I+;}dk{g;{F z;q;%{jJ~n`lxVs8Q`c;L`qH1jZQf(Ts#S9ndr)=_EFb?K&;I_OG}%GeKZyH(-qhGd!!ANg0MsM_( zBx?7LZ&u}RIi~-T(3cy59ue0^SC= zXZE|md%${N13*8D?*p5F4*>c#`ViOxd<4+X&?msBz-Ivc{(J#!1-=Bf0bc=M1K$AK zfp3BDfbW4HfFFUMfS-XKz%Rf~fP2X90(Jv?0PgAf8}K{u2S6X2e*u33`+$Fde}VnL z0pK72(a{kBGyoa`jey2L6QC*33}_Ct0FDA$0!IT}zke*y3TO=+2ebj&0>=aGfD?cd zfs=stz{x-d;1u9g;4~l-=m>NIIs;vR(}6R9Gl8x^H=sLk7SIEr>`wgu7cI|!l zB2~tH3c0U5C?OZ%chtZ_2!YM=Xh#Yt$$&mB9sg6Iry8WZ%sI@y=zFMNi>*2nb6*D! zvL_dLLanz?X}kOxS3FQZOb`5CIl&x$NNm5HXH9hYa}#3`c|gZ*dx_%SWl-Wb8udoGaULAy3E^b8|AH7l^3XA z*7BF0nvaC!W+i`RS~*K&WC_WvzW9}bNt({~i*1s9$b;Xmy%=ogN4hSCIQPdSS6myx+UjD2X6HIl1}{AD1H3+ctI zGT^@4U4!$)Y#VZfRbpGZq;)WDhG$@G%Tl4Go9Kl&eTmM;Z!2f%L{gEfl#8=RpI#ZE9RdjBm+f@^!7TuEs6?tHRPz7W9%y zdlIb#1{|RhU{6C$5chxx96KE;DcOqtO=}DKUPrcSE#K^&#wa-LTRwr0;%bzG%f9!Nsp8j z1JiCN{b7c}wP+7c8J@aBdS~<>8Tfl*rz~$Los6EF`0Hfsqvae3u%h7IBVWT=u62x?XhpWUjC@Q zo{9Yc+dFe#YK>tl2g=(@4)~8+JM1K%!x86HJja|Hng)T2` zZH|=1Jt!j~KWZg&31~TB`?_aMhT)tVM`Th@Rsw1ZQ8PJ4(==wBu@N$=teu^Z2gW0d;tan6RNNZp2%H&al4{?e?Z z={?Y77e1=*5kif!C>w~H>91K2?)@Z%&w#>BHYqjhoF_|X=`Gr!(5Y!7srx`zUHO)* z-RRzd+KJUpHYt#?qR0=@A_Z$CLF2A^MWe8X3%1EgLHQM;Eor-0 z>i7GU7NfL^!>Ul=U7JvC)K9TYIjb-nG9N97g`IA`Vkbwt4$bGCY-g{6qPJ~AkrjDw z1SoW2RbeIQqjldD(5rc$!a8Lem5>#B$V0dz2kRyIAkX|Y8=GxJk*r_AnvKAbGWB`v zp>hp+s5zkMNcB)7P(OUi%!^ztrtvzaF&Q4&!X5O#bSYkt^J?MVmCvriI&PL453~4V zu@=_M|E!Fgq4;X}{|_Pled;Ub@yCSC0s6nX7T>xCup0lPh`&XINPv0#vG5QP`k?h`V!tj6y{{J*K6JXG_y)@yz!Nln%}ZH}kcZ+$=d=li{TI!}8q=h1s+FK?pKNIK=Q z+4g$wz?L7}pGt{>GSdw7PQ{Kbtv9Y&ckGwfW`5MGZ@crhaRc9~7A7ed1$c!i{n9fj z`Dd=GW6i@^@Sb>-l|7CwklV7bx+5N`>7}ejr;R`Ni5dZ4D5KF=(oYK4sK->L_le>) zMU8*X@6@gA=1~XNw^{T~8!f%9P;8yy+Aiq?c)yqi?+~c2-Ju#vL$ld+67Da9KT#}` zzvdx_qx2|vsaON=8+g9%S-b68|?Go(9D?EwEYCGE{je6_x%Y?XSbZ)E8&f)J0>0IsjE3Fz;oy) zB@ekvo^^Dj1LZB`gHU!EfqitK20oO9ibLVrcG3O?Qem_csPuuXpNp1uvr-z2Lax;( zt-OBDIScKdHYJjl+d+$6Mqz>FqxBKwTEc4sYhE7YKid6|Lan8YC1$-s+l@R08vkqi z>7;@7V&sZgOID0|P0j!ct32vDIF6BJ+z<5IWk%a*JSN+hkb=rUlMnq2 zVHaLvg;R@mXRJw-WpfK?dfX->OSyuPZHl8T;lq(@TWDwHKgLf-y62gu`$$L~!t1JC z>bEw-Bx{IuEyKIW)4JJP^1E8fKXq+Cxu=%tKm6k#)&{A;m17)oXs&J1JaANJ_34!h zZ<}BK-UYV}-@f?y-=B^sq}EMJ!7{XJ*D399Wt}zGT!`_EzckT#d4p+dUZ3By_3ux% zdi%a+ed(=ArXvq`l1o>MtN3~ky!oPKiq7lyI|98U$=W}Rf z!w^$1>yO4g{Ac>bNL};QrI%YCdwAaTuf9xlEn3n2tAf3~zBSUQxT@xMG))XVn4+D9 zwgFsUFWa9-;Z|vAcY*Efl7E^eFMr_dp>eye-Sy-JKU5m!lYWJOUDl6S@4vE?*&d;L zC+7*RiEs0Lm(L#lx!10LCVl7nuGN5LMlDI3TbXeB(QnQky7k+Y3$lKB@cc_Bbu{4W z!5pft{f~3aef9Q$*F2GjYKO9ix(PX8S6gv^D?a1Zu6iF|a-=G0y9%_~e{TW3>=|l) zS6G7iz!3^Cv&KD?IFqmEo$&4pYIm59`RZCzDzr#!+4Ou$T>>>nfoqsG??(Fa9j@pb zG|dV3^w@3_imhnJ#(-*Sf4nF~%J3YG3L6-%NT=@1*k1uWRfAHy=ph0r)z@D+OCnn! z{e0EUn7L*=Q&>p*^UOf)y~Dw|RJ&MEnDwbnjD1|FWvp+M#5lhse4pqom7Ji+F1CxI zDWcYt)>Sjmg7T4Ku5GuA#xb~6&~|`1FLiU&VwicNaVUPKSKEZAS#|M>8m5AVBW2ZLHmeu99f;97X9NAU8?q!Of(pB=vI%S#fu8w9&o9?v=zDuf z&Do&lsw3Vagv8DL5NTZ_=lrp!1yWOAc)vCZ5H-fg8z*)V0Y!FME#Ys2FRV9f>tO)< zc7Vb?N4y3Z@2e2HRdbY|ugLVYUzL&~efyZ(A8{@#^g;V4mh$xgb(f*v)Sk?MQUS&r z%3&UVEG$t%AB>;z-hfxE#(#0O;*Wt1Oz4C5SBzI4q2JV=#3BB#)k`b%CulznI;%8F5spgjqFc4IZ^H>-b)cWE`^zXkFCr6zA2+HNGqy<)c! zv92$4%7dS@1N|_m;Z{19>E~WH+&_cIIB5AtVvIT(R#hW0m!IYsg8zeXCtCq6uSURL zIn>b|@t5Es^MFUF_w@It>f+D!6}e0K&|Oee?CR6AXV0`g&aqyX$LqYP!d*Jm?M!!h zr~2GwPIsBBG%CNy>nzSKEiBJ1ba|b5-YL1BGN;c|UOLs8*4de!mEAcmI>wn%T3+Jv zD4+H^(_Fr|n3yEo^cDFk$5fWNywNjCiWz5Eb#q5M}3_`>sJ?=tJZb@V&(&CNm zI-_?|H|MaTJdfM!F7QQ;EAp1-7Ds0L%JYldk+Cs|X+lY{GdpjJt0dR!#7CoNcqzPB zeb{_c-PJbH-|A%5?T)B)1QEp5wal{aLta`p}iDiFnVF(`q;v%5gBc9>sE43 z)Je{dAvJaxm4ueU)v+d{n-i(W?S zpSIDgrqMU_cQ&bM`W`UUYIZBLHmPVov>gnbvH29V-fvS{{Z}+Sh?LsJs?Cg>v0oF~ zE^QuFa)CvULIpTYg}>JNw0$|#(!hAW6#+FqK{q?ABSh9=2KKY3zQ$JK+B zV2Ux4%2%}Jl)kuwg|OffGo8aRUs!_K3(jT8`kR6riMD-?2)=1P>uJr8mekAFY%de+ z_li8Te?J+jUlb#s;1%m5K-D8Q={x-Gj479M-d8`85c3Uvk>;mul4c{@f0jY$)KlkY zC;tYY{a1f|vHz+L}^_ z<1$ca7Y?N_olr8bEHT<}gkI_NG^ko>lh&?rC{eeJ=Z0QKitRri8mgxd>vXxFbA6DS z^i;?;;qS|Yd$?u$`C9ZU{xLl8$w+C*rCyc5<{-RXdQ0SpT`Z?Ua}YkECs481h4f<| z4P86;#TN4bT2663oU>-My3pjquAp?MP1;;|N~ONhiVdKoTFS*@J*@28+Jff4>KV=S z_$T)SV;M@@#$h<4^^$%!J6c2XF4rOE!Fvi<%xYGF?Ld9~SWjA=x~=t|)cA&5Pl_e{ z^}y;?)3^)GMCcV0Lf$uCG2n140k!rY5epf@eEgS%dR_ntP)e(D;B{pd=Ktd{zZ3f4 z{O_%J3?~kj=Re(?Eajvr4)gi%cuVvDa&AO?HT-`s;{QW^#Y+4p{#O+HgIn-DrXhUH z;_2mx|KDoFZ{q((iFaW&;=ik!^v8rDisjE0GPhMD{{JEVUFtW@^FIz&QlXEU*gxEd z_zzSg{%{_UNI$)V)91R?@?Vblt=Ip!LvDYv8u7PO+h1L;->u2|)8JK0F(;S2)jn?U zF&8**`RBFYwk?Fa8KpENSMU$IIu)>pqR-@9tp6MJ(Wd~<$uvmg2u zJgnu9mG+lZm0Q6ltpCj2yYPr%@EgH*o<{xqNxf|)elz93Zx==%dbz{nDop<4BnKxhVpu1r{XXnWW0ICIJy?lYe_dR@eezlr=?ZTjCs{ME6) zwIcuC3wo^5|32d1qtc(J&UW_fIl9%|N&CL?HeG+-xBK=Nw^F|+c?Lt;eCe-wUf1iF ztKa^^X)kxC9a~X4<@gILzMlNq*}vbh%qSPsj8lX9*Zz%H_B{04joyY&e)-`Uj-tz! zci&TLPPxc{SL+@B6Fr{rRxbL?E63k-FlW@Q51n~h%&Pwle!$zwpq^{>-oO0cu1ECi zy#dNO8FT&@YwG{@CS=KdYM%M$j`7up)#QJNdi}*Gi2nyQY3B6D!xw7kqbB-?FA)E( zYQ%3szcT)M4&P%P4V_Z$$yYl1=}%Gak#gyy&ENQ9SGy&*OkS4o)o*>`Ig_K+dvT_H zMV#5C{p)8^tGheenB%8>ykJ&gr+!QSPVcwV)0X31GrDCy*v0>_o_@|GTd|bnibyN< z-)#I(PogiWc_#BETuA3T*8OiMnEAhscmk1e?Ig=AT)gtxkBGmEW&Lx)A=f`Qgd-X2 z%|Ej{DF0)PIZFtk5=`P0q`0eE$_m4bFJB$L^Lx(jPP8-+@{l zuQI0{Xf2(#aNRc-tQkD(oo-Kz`{d+aFLMNz+UpA!*RteHYBVR>IDJ zv+eW&I|2WT5$5B6F`ianMk-qIJ|2(%@%T+L?$X<4I)2A>D_q%{hZ<}A9qv3$j}@Hl zEW#er`Z-|{R|?|xpHU0GBWnMr^UFTJaN682{u-9E_L}B*ALPC-#yN!t21m^o*^R(@ zy!0Y(bh@j=?Hra{R64$>G~YcvdPc7Q;=1H1K3^FY_IbrJx#$wPo-R7iUD9(u63ex? zQQ(J-fW`oIgQoyZfabt4z)=9_42}k3fMbEyz;Qqu;CP@d&<;2eH~}~bI1T6koD6(~ zc)B7y6=(&V1#|*B17`r_$)^Kn0!@L3@qRai-GOKz3!qhFGlV^XK0quG2gCyjKq8O? z^a6SV$v_b>6o>-f?~m|oU;r=>NC8rTNATTrga?oxnFt2~gMpF2IlvHL63`DA4vYXM z0Hc7>KsGQ27z>O8#slXA=K|*eui*PmgcE@afP7#wkPGAhc|c#l1rz{jImT5|=2Rc==<%x1aWOpD z^v0UZXw3DeDx8g0EUDmhTo~Kmfvz7%Uu8~zCTu;{nDTF7BN1xyu5bzpVH8m!L2AVtmaW zoOM=ORdPjoXrG((x#&jk9=>KC{*uvVW`$-YShED43`*+D%2fS2A=U}ax3Mh$3Q$v@ zR;I~vk$Y`PIu?Kq`|ok7uTRn{)8A@$B-$%WN?JEc`i6i$JNopaW+t3X_{&JQU3|qE ztyvifo-!SZ9pas%YFwj3dPe-(3HbXr_ONcn0*dn=H38Be%kpAU({$(}d zpN#l9M&n@~f1(-vesYKSYWV-@i2q&n6)W*u(SKvJFw6Nrq?+`b+5hR~uJDwLrz5Kw zznT7Z6+ZiXHRvCU_&K)ZQP=u6BmEQTdL=zH^&=!@DW~E{a5x~i@XY6 zty0_Z-{GR)-~Um%G6E7*2^r_Q`P0^KS>ssz*29lG+eTD=)!3jWK+A-?+ro}lo_?*v zy{B|B`n9!D2AWZA6c4e<$%%%F2aiR?Lv6?3LKB*&wl{4q5ZWT-on3r`R9C7ArYihO zkC~vgzKqiJyXW{@088n=5Y*I_ZzkdADp@y{r)IUjGS%5yP_tZ)5N>swcZ1N z+_-;W_5kF3;HV`kCLuE=H8m+IJtj4C*2QwpD9>BwabI|GULR+<-Y08*l}}bX(jUm% zx;=E>rM+(-*ec<;dHa^;EM8?qe@M5od7YhbI;*&qb?M#8=FzQeY|OkPUjBOT?V1nD z;&x>ne}3}xLErV7w&63}~OrX@x7?wyoUT>I`rOjV8zfTaIa_6M&ODC?F1KCLdESdJo|%%A zrl+H}_P18rpPBxXv&S*+3^(WmUa8&5?NOwczcsCH_Q?qaclR1N`jVJS z&wKLp?aPd`x_Y12`mxZ{N4) zR5GN;?Q%%@l-`Y{ay$C3C;c1`&|0$y=@#<8ULu}0uzk1vbEi#uaomro7u@{UnluC2 zIX68jeY|;vSHt4NBUX+rPnrNKYJ4s@4F$tZ){?tg{NOy5 z?BQjZ%aA*GJ3%M)P^FG2(9FCH9IdUdW&JnjKfO);ztFDp6O{r4rpFuLKfkGOS&83_ z|1!ru$M+bTMvfQW(eXbk@tdswQRL6hsuBMN#BY85Yi~3E9}%1Ixy{vx{{zI|K%M^! zu2G>lP5AMDApbL3KOoygI8TNpQ+C|DWq!-qQJ*gRpSx4%HYqAyEL(YKdyeFFwoChG z&t`0QA^4v3x+HWSd#{c9{JRBrj=J~5eNQEg^=`>Bpi$xo!K6_cabwzt; zMH}RRHkR=po#9o#<3vXU?BDfA7hG83e`fN(Y?lo6-w$>EG58PpH4pRnlg-wD`SqOQ ztKt9Og7~+nuULuSME;JTEdL>3mHusrf4k-Qxh5v`!STlzc>F$KHU8~7`t3OXZ)L{8 zicZx(*J!(ZG?4y2)D~3=<&b(uv+b->3JX21!ra=RSBeNlBOwnv6Hk7h>9XV zLGg0cd*yh+gZ5q!<#0Wy$WeTN%28C{phrbL_y9zaD;#_xVDJCGzCD>)Yt8I6yQFKa zopklLvY*{E-^@4PeBb|j%weUq!}X)Cre=Udjf+aeY4tF8ilbt!q7hH$9R&oi)e>?gk`*8F`Rob=P_@_^ZR~Z8% zft^PW5C0G6ixo&mG3N1ng4R+?J4zm)RRbSA;m9M-Th#vcW3Rbq<>fnOVszC!s7LFO zbMOsJ*7|XeUo>u(p0;poz#5EM^u2RRbE;~`uDtTuYoEIHWk0*_vsXPnw7qu*L~xA8 z5%}zQT7{3@r?hnD?Wr+(_s)l|+}Z#7JN~c~IbWV$<1goA{rl*T%-ba0riOIW`Tug= z-yQyqlUCmU$)7B|X2Vl9dtqX+22Yq3%WLTmxew$q{*U{g(5R|(m{l6CzjH@p&DHyU z>~~+k;v=8`pPR3=trnqB{f%pW`WJUNC))6DF|_ZGzbs6|AHEFQzfl4G<7nR> z|5%t3;l{@BH6XQTwMP zwO{f2n+H3TconZ?`cFyBKlvVhhyEO2`kw^-{`GejPdfciqy3+wzr1|tPgwsIkN+Rg zzQX^K+iy&g{}s3Yl8VN^F>(F#yu450_MQJj(f%_Wd|W>CC-~nhrvH^_|4C`ytNjH0 zxxmQ5PviEb|46j2hZgZue{{9^+!DNhuc1VZ2wDNIJ7h#920ew zhCK9eUrzL2ANxb-*T}jp`g`rF^Zw88SN*T1)2_Vi#3K)R`;1p5jDrvVC&-^*|6!Cj z$2l~(ju*4RfByULf+YD{!#W|iRnY#iXy0G|WOlmyBK}6YZ?B;Jlh8i(1ztYmKTp1D z{mb@0i%%F&@9`{)r?IaTx+yvM%tG48jIxg(H39C1qj}wlTk{0{Z1U5PPYTyJ`nJY0Oq zkFP!clEF7$_QExvJod_;9Do7hSeaMSn7Kaxe#Yx3dHl5hK=gN?^TnTRdf{znpLX4M zx1RsVslU47oj1^NZ;lq9%ZRA!`!)Bd8z-d_kVhq#Ct_*M-hof51^dt$8S-7GX_IEVtJ|m z=`(*xIq_Q`*|zV;Z@KjHp_?17d+!GyIMEg_qcf)(7c%GQ3prUoKJ>50ESkQbElc*D zal@uf>yNp9^n+hpeM4KDWtFHrF`+h|VKvp_hw4Kkbi}VedE5bCzy78p|NOU~U2*0U z>$#Ig|&Zt}5WEnpsp|$t*_6+tE`?^p$(+tkDeCrzzIQ#13PkrYZww+QkKE=8lEWB9%ZL9`iDRM zyeJX>CrAING&AK}mQUwY@Uy?Hp#55yp9+6X9{K&4W1u}dmr30aPNzo^=4<59{0!N0k{t@z5Y8q9)$Z~+%GM?M|1k+xDUnsiqd<3 zkH=S*o*$3Lf53et?pKxGI|`4paUWfJeGDFt#eH1qHT!TPo}Yw!0q)o0o`ZWXZhrPU zJkG;iUwSAlnN_Zp5N4E7J z{KcPq;lkU$x7HTM&{8j~w$X?U#}O93 zxbNTtUtY85FGn8UF#D);zx&@VIU3DG`9deDGLx;E^fzXM5#bg+jx~S>3*UeEk#jn} z@Xsf;E#LN!uldV+FFo8sak+|cS>tbN{wu{_=nEJR;t+Yt0kM}ZjE+Jp!}Va-{quuQ zUb4^Uf8DY47pETf_N_l;^q1m_d_=FBtIrkvZTEec_Ml{;eF4(uRIK3j0sddvZqSVt zHdzueN>g%1sGN9kXig-enC=GBPQhdvCeU>ivgi)PYF(eH@qHZQ`<c{}Utb&%1KYLlAHA)r%_jtvlug1uHIj20j3agEHGphym zzz5O|9-wX*Ml50Df`+`vF}H-*J`1T8PTj&hGouikd46wB<|2uXc1XW5_@+c#*QXkE z1T;~$;w&HBd8y%U?k_LK7Likj9?r=unN+!Syvj3V3k9Bh`DjjPbaSGq4=DYnC$ck? z_o5aG?**k#=bloT=Opcrdm>|)ByWsT-X-gW3oRm(e@%UsahEsbWOg)$*c$SJ0SQJgZ_i0DIg<8D z5$r$lGOit!s|s`;eb0+cTdwca5ES>2`xUQmM*p)q(`8M7kPJc>qonbvC&ZQ9j~;Kr zecdE*4842dm>5}0b`GEBi$c#39cE4Lk5oH+pwA?!55DGW3ev zJB+`y+G*49Oi@OtD}0oeKe<|+@rBxVQ^?No!8+zoU>);=(W3pYbO96VI07T{)k)wz zpS*H~1CrZRH5OtBYV|U%yinst)NU*Dna?S0KX{S=`o5*ow$d>Xa3`n>vrnz{O;{%9Q2W!A3J!c?ddBoxV`7?7V1@1(+8@E zem{)AYyM5wTy^y`?|NVD^(Wu(+(+;0uuxB#A@V=3_1BX8Yb!R)d;Z3!9=&Dc%w<=7 z<5TbXIjy-UhnKT-)gF+S_^T-Yhv{DiNir1d`XVt78eewtmwxN2`ecTQCZYpr$mT79{!SVHCFs-=K63Bc2cc@l%H%d-E}O{QjVqefM)e_|A>1 zEZjn=vh2{70uo?chdXDA3FKr$6B60;#;?_|7rbMPwudc zQ}|S#YSRB$zl-@ef^n70M?L6OceXEj;pnRdI$pJOzlXnj@)FB9h!&lf_^rz3e=|m+ z7+^qx_Oezw$KxXCm)yTcL;BUB+h%^?p&!0>-N3&e{@k6veQaivWi)nID|oT_1CynH z(%S8TOp$T)M{0ku>q|%9_xKAtuNwH!r%%89oo_hFGB%R?6|EdENUynPjR$C45weBV z7)8<-3RmD4f8<2tf;v|G5nuqpHG@z7tEO#yWVC0Xu6d}xzo%=oZ)k9&?o7!Msax6? zywO=4-`H^8d8IG5jTZX`d*{p^80i`+_V;a?GyB}0;t2lV>5X;s_;1ea=CS_Kv0~5Z zgFR!T#m@dYv)7Jo>hJ41t7m-O(1ksNr*B%csB=Nrf`#>q=QsAuJ7w|tbJUNUy;$Bk zvSqY$Q-9Cowsk&oItnvOeV)}kG%(y*>?zJ-Yi)fO_Z0Ri%=$pNK`9MR%SB_I{e7e3 z>IXK~@6i!DpJfmV`j8$14}zzxK=15GgO?HaO^SjUU%-3AHL;fPh2qf z>KQ+|Z;`FigWjFumOywV@^kLB`fNGJ8>sMTl^{weL1H$^Nf-N%co+ z9!2ZF!c8?84~f@1pet5#{=;O~UwjYRf1uRMB>JiMB-OwBHGbX^*?KVj^Ft$Zr}EQgZ5SZpQQH5{|W6^JpQ}TK4k{4 zr1r^w^X047zq{lAe+m5GzV)Bje$x8qxN|&x$Nvzt|DzH$KJ+KVKh!Xm;^_+7e-qkQ z^6$oRUKudY(}5+6kKi|2KTZqfdo2aldNeB|F&tp4b|3(g;_VZ@=%(m)`yQ7=^obiKqA5_~ed~p09Hg zv-W>Ud>-?}nxO^LGC#dAtH2CVMmx~<=`Fk!F?*+A6`Y25MxhNzB%AdW(C6TH?XOppm*Ry)PQ? z;W!g*%%WYPcra+c&AzBM(TD9FzULn-|Gj*`upD?V-_kpwY0UZe(~Z3(J#`I?usqp+^Zbg$%&Gf>?qMf z;U170-xYSp6S{lzPyB%A4cT*wqll`TL-+}iA|gm8PNA*YsC}-{hdzu!e(*1Q@7IH> z4Ui_Rb4gpA*}FtpR)S`F^W@b4-q&;uVZ!f0lJ1{A5MZB|Si;{ng&!8qQ(!VE& z*I=z;>YWrRO*9v$7Oe2C^gb7AJ(X<8hW`K)=`I`vzg+S&tZ#b2sdUbT6BITCR# zpK%A}eW0|s(~#+Isc6ojsTJD#-5#^GY~Rwem{ycgdFtZx61Tpn(b1Od#+sAdGUf&A z-B{D~fk~gSHUn36Q_=xG8Nz-Wtxa$*`ctj7S1PHXSSS#^yQj2TGY6okW^L)(=cco_J+|M!AM*Y$6>j*}!N)(bFN=yE z8tK>Cp}xUU#*5Z=?5OP+2XwjLiR!oTc>7&%J?|Z>yWTj1$^36C{a-T>C+1 zqFh@CM;A8kfzaIjI{FZgJhE@c2%>Rkb!?O1;+Y73oi%I!*P@Rc*5Ez{PY%N^*VAXH zXW_^A`!(N(NAHKY)fa1y#WPMRubSiVhjSDi+?wO@CI?tuYUFB8z&jkh{paG3>fXWZ zEBu#*{lCGt%3KHYzXji%2{OxFWR>{k_y2FKSsHi~q~aeDCKbodbK)llb+%>l$K!I# zXDnU%&i()N*XFN`yk~f91o-U;}LZBH|iHNBH_&mMwC$w*H| zQZB(QIM4`k-g|%#QOl$TO00mj^H{TjsN@o~(_M;0B(hCSb{r_Hs(`F;1XfVc5mI`m z+=L0;6Ozq;q=a&gr|8o3iz>9Z4SOl$_qgki21vp%=q66feU|iVN+4P?ro;#P3ma49_&^7KS7&&LQH~5zAJ5!hLwI#fw$2vBe?sX~6w~4g4A|4bDq)$tUqFn29 z)m!o)@j1pXU2@XrD3ryprjkS6C!pwf^0m z_~Qn&|B2GCCAZ&@6n`9?B_`DS(O--C_m4ksNXkE`SpJ*}`u*1*eP-^9{P!e2=I{B= z{~OT$PfI_UJpPP;cVBE@jlFOCO=#ag|DZnU{I|jj=pOeI-}aZG{R6!Bzxqk%|Fh6O zLUs`W3&|8Mx@dECDAuR;6%`)_@c{!_91X+!(|`3DV2<6rZ8&|Xu4{&Nl5 z4*)eh43+RI6({L;)<_fuF>Ohgr9fX>F~E+92NM^zSG!>BM6%wRX21Io5fMf*mH^@C z1~rTbF}$+QVXI*@rzW z?CGi;^;Bou>v=yrcm3m-6Def`vF_)1=KYklmJ~@5uLWQ`?P_5O`=ftXA-xK7&=sJ` zKO3cJD4{XpIgS!@>g~kbDXaje^df$R5Pc^`rDF;s6w_tVg4-TIcP6{ww( z-ceR`VeMb>1Ghs;v0BY|c^>|Qc**Ek@bO8V+8BA(rPeuk9^52 zlX@kGD6e*uEVyn^Ad%=xKy^GWSL;-rxt&!_R~x8eJ^XlG7fna@QMTmHN}?g+o*TxZ zGTv74Gk07~VRz;;<>ULOEiV-yb?>E6}f})F6ma==1Mrsc*;;_fitG5(ax}j%<_z zvcOkeD~^3;B{#;y5v!y&HW=(8;Zr6!)>&jXy3k6yY$G-0vI6rIM-sK{?X}xE?pdru z_qbCtR1q&)R%Ee@xcgZ7E|L}^YsxxT|C_wxK~4#P)CjKkXh(-E-q&u z$>ZHYG<_FdDU?~S$}Ds`SAWf1fVfVVCpp&^p!b`DRk#*5xQW`Q<-zlj$LlfYQ4URO zzoQ;$Kdn~#LMyEbML98)lALh&-_(#zbj^l|5@95&7Oi4r`>tM^^ph)V z1byeq5?Z*Q30;GDq;^5AQbldVX-cd9k9#Ncp=lkY$4bkLWWP52dLN!Cz2Y@*WiQu# zC{Yy>MD`Jd=Gy58a>}?6@*S%t5@px6%<4eP+=S0f4_Fps6L)2zl&XG ziuQP8N^;7ya9m@%471POUMyX5i0p`Rz6q^gkxg;jFHiZh@tp7InCFR0Z28x5$)8rV zfXO8;WFd-JhtIe%z0Pqy$rEm=koIzWu$K92Ggzmt8Bjfsk8c*4)vjK$-UMq;Qf8R4 zkeYKjd^Jxru-`s*LR7+}6*J6w<7n_QoSHcIA&s|LN6o7vlu{s^he z2j@Ze|FV?izI)7NRaBn)&=A;@v}UyCRu6n#YTMKYb$vviqYd2~NNRGWvUtL|5Y?Ll zGT$-|ItQdaz_w@++3DU|CG)Sa@h;3@C+xb>V9)IhWDKLd82uHt>awpK@5kAUhbL|q zj;G>Y##z%VbvW~xGPNAVP3)n~KfyXwM1;CAH&UNzGbkd0Zu_>TGQU{4ik>YW4bJ^f zR~*xHWzUWF*%R)wS5Rk;m7D`fOm7S3PSdkFr`)JcTs3zEWpCQnnWiZF$YIVFwX)6)D*4cvtih3#dcEhd7f z$2f}^16QBR#Zu)74QdH?xh>$?CfH%r&UBua9@(_G*M}S2=#TDi77!N|Vukg>vXZTS_~nFD14eMx7F$Ma;Hq)QNid#%yQd z!EyDQHAqG$Vuz!AotBT&ha04)9Ote;H}6hFnzGpQ+~ce)rg#kh@{HD;%r>Qg!obX2 z&$Mb&QeGwDTM|vj8o`@N`i(yGortPb8_;`P_BrUn(f&A*T~gC39S6sUPqdm^C|JV; z3f52|3O2RIVgAH8%&%}9vX6kMl-re!y8zYBSRI}ynTp`Hd$}77Yd-sEB0qW=*+wsp zR0g3p)EclNah`<#~d%H(HPpM52OoF&B2ZpU6eE0?6xx_Sy%^n7%1lEAg)DT(ULJWRMu}IA4_zSxi?>$D>_XqgA`9z zHBs?xP@AGZ#H2r8sAuK$D|C&gRS!xKOc+EQ591wK+m>janN^vV4^}Ww@p;gKWz;}>aPq5; zHPgC#`nZgunlU)i*? za(G&v@Ie&~y#!Uu=_wZf689#FZyLrk?h)L*OoZ0-hvx|&6dj6nX-Ekp;<%4QIVr6k zlS`6fizIi>jsfbmn!Wcriu@7Lq#n@)zLClif@Ox^qh=RHF|)5=C6eAhI!a;u4M7C9 zqR4f+O!XoG^LHyArh1W1TQ=ZyKzMC*PX~n8Mz=r0TfK5?ftTFMKD*V_swzYD%I8T| zGgfILlxiO`5uWU0jX7(!JPEVvtj4y&aTomw8LrvKGQ}$hF}7_i(3hF3OGJ^8E|Oh%-R;JV+TORRRU_9$#=Mrm{6+9C3TK6ukd>S7VP1)w^gb}`Guls_mXI4SzhJ@99 zPs?8S={qfT)o=GH&RJktP8fuPVVTW3{9&0rnxl2< zs|zWum$a#>gwziuE2$i&-<%S)S{G@B)j^+0D{f{GX<43@Y;o(JmEx;rr8`xVOw&`n z_@XU>biqVqT{C8|Tm&>8q6TNbrdb)@xC&MPPi?2qR6JhvCNX!|#Ot&S%RXW$OsmajZO=Xp`}3-eqHv6)*qx)8 zBk^U2t6FC7WA&LMIrnxni1}nC$B{rgk%$RBJK66YCM{~b8PTOIx_0b-^dWD6Jn6(5 zqSmWUR#^#}cz(6uZv%Kg$v>XodXJi3+sW`k*9fGEWS9~KamVXsk1E<{HGF0j`%es< zh^gq#5@)En^BuX6{FV4D$dR8i9=tk@ZThNL_HQGw#|-AJcP@R;4MfAA3ZQ>9f!tnJ&mho^V8J_?&TB zN}}lAXCKFJ_TClc?eB3}0-A?QvSTdJILmumF3DV;OfLPDphf(n%pkJDm~qD7@pMee z7Bkm1t+Oa>UI&$Hz6Lx!iW%cy?)63VmD#zPL$kmKU3j=D&7x8wielvn7pK&6pLUdm z$H9eUa-~x*l}rvf-yk}&X-Qlk9N(_htOrMTgO7=?MSGtX#^%%e-HqX$XROaGJZvuR zQS=aL=yukI%%Wd64Z5<3VOr>!w7j=xmi9u6xBGC ztg%-=;qGMC3^(JE^5juj6X@*aswbyaQNd>pxEBpT#j({;)lk!VNYVl0&zoqo~+i)^My>?kwT4< zZ4P!GqGT%fS=ATU6y+0-pkJUE#L2Svl=T5qcAeRv% z>o@eujVbL_ez=MYnV|NgtXF1A7K3Os%~8uzqJmmi5hEygYBzL9j;X?XOf4%5y~Slu zHw7a`J{G%=r%v@@JjL$QqnL%p?&@<(z`3l1%ZN!i0g--7sh2C>l#!Umo)*?(YF=&% z7$qc;DXkcJJueqyMobGR)tQty*^7RMuG`itv0Mo0WM>h+} z@M3Ivo~9VK<@0owaXkL9oL!bD&Zbr*=iey_OuT#8kZoz{cBX7|af-`c7bkhImDGfS+4@f!3-cEK_wu4-13O6$Bd z_Zl%r`;NtLoqrLtfTXGN&~l>$w^yFXUY_aIESVOJsv*uU@r{BU6VEhjEU2hkEgw`|0`(M1-+0;=@$$L}UK5UwOWHmdrHa86Jb6a69NDZCr8j)1T5p+{2z1uEEvl+h~x1 zz!(@-)ZP(jNAzn%M_!{0>me7(*Q}~bF9`Q$>b~9hMN&~6&O8OgN-ZL)1vD(Oc}8b%|9twPg(lz#0D z!8wRT+D>~-D>}r)^<18nC7AEt(z+`KBi(7E!uxD%>X_MlrK2xX0b^%DE>CZ*IB%b8n_EzjH!DDSpx%pQk=6iJHXUdGd9% zLRyEj6Qf+6C!bPW|19TIN=sk%k%r_6YMI=F^_h4{oRUS&ao378DPRqpAJv zfCV*<9x{t@3--`KXf0Z19Y5KXud7)V~j?WMJ=!V zadfM3uB?(OoC)*Xq3kX7O1*|=+>SzH!qpS9ujWxHO$te`hpo)4VA}11J~6sDn&Uz{ zTb;07Jr!FdGl}TJIIx8tc=h9yEu4srZ=1-Bw$Jg@@^&vUW;A>5SS4%32Nu_;rAm_RG-NGdv#u5fsw*CJIV!eMiO!j{2? z6}9y1x%gGSGdI|K1xqJJ-ds2af0qUogpR?kMhv{Yl;<`WtSbJBM)h@mD>GD>sX)Jz zL%e*;on_YTM{22_KzuLOglpNKZ~(; zp>6SOkZ^WQ7VFQ|SA~1~piK}G=X3$*U*~j7gQnwC0r&o?VOXPv}5bMZp$D?^7d0*x>D|@K$1y^Q4Tw6<8 zVcGMcNmnw`$4b-8PgfRId2H|ET+NzET^P|49AyAlXZU?`F%cuKI%+0j!4KoLc!G3I zxu_>7E#I+!zB0;8&oI%J zVrgG92EokFVF~Qqt$r z3mrg@Ulur)3!QB$jUl}swCW^smL4JHTNyNZo(0zF>N$Cqd@0o);%9iJWj~v~1{Vfo z&lrg!LV1cxW{=%SxaQ@wuob^ijz-;w^>f|pJdHGW7RoWMK2r;iaz~ypO@(kr`vnaB%?rPiE~g+y~niIw02skh8CdONW%hf$3@)!rfMLi~kM12&5)${Bfz z^R*CvPv_+Oh zG7EQ2V514XX6oG4OJAcGeN)T#GT)FDqgAsCnfESx_V$uKS431_?*=)zJ+S(5HEGxHU@TiKbJJjaOhMl8gAQf9vVP6{XF&KtIbTpkR; z=on=&2x>J~rWH5j-U&_1$fQf{0_~tM>}%4!&#%`^_g-U=F7FC+_gR}E>O0Eo+>pnJ zA$4NKFgjev8JqiZ_O(yQSvD-*Zr8}lp>@{pw0xEp)|X<4`=FJH#84hk+gXa$HwMYp zU!`M^y%!*!CC(UaYTi84M*IS_c!?vZI5f&j?)X~PWS<>pqhmQ_BdcyN0X00UmA+1T zaGQeuk0;QSeWaRr{pfq4Hq{@gB%?<^dw;E#<2)^xYa&D|CY2{p1X28TFe)BZi9AUFAIV;CXrPb(Yr?p%7j5ZM? z>Si~7xSaC8x}OPw*|=OfI*2jJp+u@so|rsjmZUUU|gr-U#>XF>Yms&|oAOqkg# zmuEu0lY~Pu3Ws_HPfj0?jdGqaYSuJm%v!m6FIh-J*Z32?rPNb3CmHD>=hODb#yL+O ztyaiE#uBLd+0m7kmhI}phr>)xJ;hLU1)KSd-f5LemjizbSdPlK7_P{{pDksbJOlp)fo7( zNDXZY;Vf!oB1^?~m;Hd*GnYyx zO?pKUi(BI@W$$^n`(4J-Uutpmzi{5n=#LSsF47}A+gPxoDB(^2X!g1HHoD9cd&>L6^5v0< z;wVyOiCIY!J0Q93Dtb)G49#WPO9s=w6sIQYaZ;FuDG8OekS|)IJs0anPWCEdM`ARz zvR{cqhU*<=A0uYYi;EWf`!*k-DJ9}un0;I-@kg#1$^Mn~;?f_&o~IG$wyJ6iC5QGz zDIN`HHD>R74xa+vj?>DB5YkgZp474-3r{5R;$%-`7MUY1kBlpGB#Zn2S09r{G%dVL z@FS^X=kg6udoVM#!f}|iBb7FVf;rMGGXN zWIsqHRBC)td`HcXS_yjmv+$g{#@}v%M8`fY9l~eq?X}qAD3Ka>$(hLK=-YIHxE_$F z^~yEs7xR#(^HoIWh{gwy7L^Up^&I8;Jb8B1$r+MA8n4NfRulo{h28rnYnM8^Uk;P0 z`^NJls+*qp8lDb5s;PVCyh&O0&g24%U$Gt$Q|AC_6S=N!Hoae7o;lX*D_Q(}a?1Xc z)1Qci6AAbA#bl2^`i+KEN@o^{#1Ap1x)@X{qlYmrZ?pHo_|nCkdBIp&k6mmV?n>qA z1ZM9sH}&kwJWNWDWk!iQ0YCy+l`a_JK4|_ecUuou?X{llQn9QDw{imY; zn_+vCH{+Vxc;@od2g6(u#G`a$R^n)8U$ENNfjUMF^OYbD)coi#WCg9bA2fTP;qIZC zts(R;EkuaCXVzx3TZAG&g9|LgC#{AfzZw&t_&%c4UQm)ldP z3{nCy+II-LIwP{V0}I}!KM{*%IItwP7OuGVt2caX?)Pd;xY0VpfFqm(3#J+G@FFLjR;Vv5g4Iz!@vI^EY}YQX zCg}-t!4dUU8+2_^KR2(Xcp)>mA?Q&zTHo%l%<6!=wqPXe7Milc>QGN{9&W~iw8QqIB`A@lw0ni_ z`8ZFKSPM_xpq)6vQNl&LES;*insb!>7qyK==cDybbe7Ss;WM9^ctH8_OedZ$x!2|K5prvD>N78=)7a)( zd!5%~e956iSfo;doa@>R?jY(jjDJd#VXgry)({2dDdv>4JpWa#_Ba|dCsNtw^a%uJ zP6W_}+61*Gsxtmett5YA_a*|h#d#|y&*5|5+cA231tL!-K z5zV`0D*aQu#3*>pOHr&(aWmI+lC`3=duj(tL*QC2PR!=i9GSRnPpWn9%~YbgJoc+k zudi;JeUag*$=Pq3(01&cJyobSb-WQ+B=mr}(d3mAQfyD^qV2FzsDJudDSCcRK<_Sr zm#6{0q89v{kCV@r;q3WFJkEoDz-Nm=V*{Qw;dLXvI~Sic;#*7bP7_`)gp8kuXUhtg z;@8A#&{@XSy`sa&q#ieOpV|(ZtHX08bK%;-`6(>{(GInzRN=AHYoAV{daBHN+~ZpZ zZf--a5@Rohp*IEoYb3T!k&y_?I;F8GOwvZZvSFs%S~vtVp0sY%4uP)* zI9h)7fLZ8a7{_IwRsU&|OqKcd-QhUDN#9lD!?EHRO<#F$zz7ZXdy?Bt?X(rbPJ~jDFp=)Z);(VsQ5#_U~Y@yN5X0FF5?NgH%qWDXk7t}YR z<1rmDN8f0J>7~tA7K<>IQ2FvG9@mcj8|K>4aT$!!kl2i-)@O$|AKJhA<2$eX$>Dd` zy!rdDpnllayr+CqEkJBo`EM+U@;1*ljz=fBzZ;I%==t3xPu!i`cn!u(#3MCkYRWE!h`D6fR6(JWJO?iNr8b)Q*&(Yuk(ICe`TMi|Ovg zbXg^~a({SIeD`#)i1x-av#wG!JMqO~x-F=!#yDO+s$Vwu;wT2p?_oRNd%dU;ScBN* z(V&(L>yNRzm#&Y`h`xrPdYQY46H(A@mvOnjsXuwgj6&gd{qjXWGnz-$xb&}TZvX!S Dyup_D diff --git a/Libs/CsharpDis6/OpenDis/OpenDis.build.bat b/Libs/CsharpDis6/OpenDis/OpenDis.build.bat deleted file mode 100644 index 9858854..0000000 --- a/Libs/CsharpDis6/OpenDis/OpenDis.build.bat +++ /dev/null @@ -1,2 +0,0 @@ -msbuild /p:Platform="x86" /p:Configuration="Debug" OpenDis.build.csproj -msbuild /p:Platform="x86" /p:Configuration="Release" OpenDis.build.csproj \ No newline at end of file diff --git a/Libs/CsharpDis6/OpenDis/OpenDis.build.csproj b/Libs/CsharpDis6/OpenDis/OpenDis.build.csproj deleted file mode 100644 index a60fe07..0000000 --- a/Libs/CsharpDis6/OpenDis/OpenDis.build.csproj +++ /dev/null @@ -1,12 +0,0 @@ - - - - - copy "$(ProjectDir)Properties\Version.cs" "$(ProjectDir)Properties\Version.cs_temp" /y -cd "$(ProjectDir)" -"C:\Program Files\TortoiseSVN\bin\SubWCRev.exe" . "Properties\Version2.cs" "Properties\Version.cs" - - - copy "$(ProjectDir)Properties\Version.cs_temp" "$(ProjectDir)Properties\Version.cs" /y - - \ No newline at end of file diff --git a/Libs/CsharpDis6/OpenDis/OpenDis.csproj b/Libs/CsharpDis6/OpenDis/OpenDis.csproj deleted file mode 100644 index ae7b6bf..0000000 --- a/Libs/CsharpDis6/OpenDis/OpenDis.csproj +++ /dev/null @@ -1,826 +0,0 @@ - - - - Debug - AnyCPU - 9.0.30729 - 2.0 - {628EE35F-450A-49B2-BA46-04FABB66D0BF} - Library - Properties - OpenDis - OpenDis - v4.0 - 512 - 3.5 - publish\ - true - Disk - false - Foreground - 7 - Days - false - false - true - 0 - 1.0.0.%2a - false - false - true - - - - true - bin\x86\Debug\ - TRACE;DEBUG - full - x86 - true - GlobalSuppressions.cs - prompt - AllRules.ruleset - - - bin\x86\Release\ - TRACE - true - pdbonly - x86 - true - GlobalSuppressions.cs - prompt - AllRules.ruleset - bin\x86\Release\OpenDis.XML - - - true - - - key.snk - - - false - - - Always - - - true - bin\x86\Analyze\ - TRACE;DEBUG;CODE_ANALYSIS - full - x86 - bin\x86\Debug\OpenDis.dll.CodeAnalysisLog.xml - true - GlobalSuppressions.cs - prompt - AllRules.ruleset - ;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets - true - ;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules - true - false - true - false - - - - - 3.5 - - - 3.5 - - - 3.5 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Code - - - Code - - - - Code - - - - - Code - - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - - - Code - - - - Code - - - Code - - - - Code - - - Code - - - Code - - - Code - - - - Code - - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - - - - - - - - - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - - Code - - - Code - - - - - - - Code - - - Code - - - - - - - - - - - - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - - - - - Code - - - - - - Code - - - - - - Code - - - Code - - - - - Code - - - Code - - - Code - - - - - - - - - Code - - - - - - Code - - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - - - - Code - - - - - - - - Code - - - Code - - - Code - - - - - - - - - - - - - - - - - - - - - - - - - - - Designer - - - Designer - - - - - - - - - - False - .NET Framework 3.5 SP1 Client Profile - false - - - False - .NET Framework 3.5 SP1 - true - - - False - Windows Installer 3.1 - true - - - - - - - - - - - - - \ No newline at end of file diff --git a/Libs/CsharpDis6/OpenDis/Properties/AssemblyInfo.cs b/Libs/CsharpDis6/OpenDis/Properties/AssemblyInfo.cs deleted file mode 100644 index e82a9c0..0000000 --- a/Libs/CsharpDis6/OpenDis/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,25 +0,0 @@ -using System; -using System.Reflection; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("Open DIS Library")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Blubit d.o.o.")] -[assembly: AssemblyProduct("Open DIS, http://open-dis.sourceforge.org")] -[assembly: AssemblyCopyright("Copyright © Blubit d.o.o. 2010")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -[assembly: CLSCompliant(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("719719e6-e1a9-4428-aa7a-e8d2defd1b75")] diff --git a/Libs/CsharpDis6/OpenDis/Properties/Version.cs b/Libs/CsharpDis6/OpenDis/Properties/Version.cs deleted file mode 100644 index 87478fc..0000000 --- a/Libs/CsharpDis6/OpenDis/Properties/Version.cs +++ /dev/null @@ -1,4 +0,0 @@ -using System.Reflection; - -[assembly: AssemblyVersion("2.0.0.0")] -[assembly: AssemblyFileVersion("2.0.0.0")] diff --git a/Libs/CsharpDis6/OpenDis/Settings.StyleCop b/Libs/CsharpDis6/Settings.StyleCop similarity index 97% rename from Libs/CsharpDis6/OpenDis/Settings.StyleCop rename to Libs/CsharpDis6/Settings.StyleCop index bf4ade9..a0b5e0b 100644 --- a/Libs/CsharpDis6/OpenDis/Settings.StyleCop +++ b/Libs/CsharpDis6/Settings.StyleCop @@ -1,145 +1,145 @@ - - - False - - - - - False - True - - - - - - - - - False - - - - - False - - - - - - h - o - - - - - - - - False - - - - - False - - - - - False - - - - - - - - - - False - - - - - - - - - - False - - - - - False - - - - - - - - - - False - - - - - False - - - - - False - - - - - False - - - - - False - - - - - False - - - - - False - - - - - False - - - - - False - - - - - False - - - - - - - - - - False - - - - - - + + + False + + + + + False + True + + + + + + + + + False + + + + + False + + + + + + h + o + + + + + + + + False + + + + + False + + + + + False + + + + + + + + + + False + + + + + + + + + + False + + + + + False + + + + + + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + + + + + + False + + + + + + \ No newline at end of file diff --git a/Libs/CsharpDis6/OpenDis/Utilities/ChunkConverters.cs b/Libs/CsharpDis6/Utilities/ChunkConverters.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Utilities/ChunkConverters.cs rename to Libs/CsharpDis6/Utilities/ChunkConverters.cs index 26c5240..a0c314e 100644 --- a/Libs/CsharpDis6/OpenDis/Utilities/ChunkConverters.cs +++ b/Libs/CsharpDis6/Utilities/ChunkConverters.cs @@ -1,327 +1,327 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author Peter Smith (Naval Air Warfare Center - Training Systems Division) 01/23/2009 -// Modified by Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; -using OpenDis.Dis1998; - -namespace OpenDis.Core -{ - /// - /// Chunk Convertor for DIS 1998 (note: same methods could be reused with 1995). - /// - public static class DIS1998ChunkConverter - { - #regionMethods(9) - - /// - /// Method to convert a byte Array into Eigh tByte Chunks - /// - /// Byte array that contains data to convert - /// List containing EightByteChunks - public static List ArrayToEightByteChunks(Array data) - { - //If no data exists return null - if (data.Length == 0) - { - return null; - } - - // Used to get the length of the data - EightByteChunk byteChunkData = new EightByteChunk(); - int lengthByteChunkData = byteChunkData.OtherParameters.Length; - - // Calculate the size if not on the byte boundary then all 1 to make it so - int maxSize = System.Convert.ToInt32(Math.Ceiling((double)data.Length / (double)lengthByteChunkData)); //PES09182009 Modified so it would also work on Mobile - - // Create buffer to hold the data passed in from the array - byte[] chunkBuffer = new byte[maxSize * lengthByteChunkData]; - - // Copy data to the buffer created above - Buffer.BlockCopy(data, 0, chunkBuffer, 0, data.Length); - - List byteChunkList = new List(); - - // Iterate over the buffer and grab the appropriate number of bytes, store into the List - for (int i = 0; i < maxSize; i++) - { - byteChunkData = new EightByteChunk(); - Buffer.BlockCopy(chunkBuffer, i * lengthByteChunkData, byteChunkData.OtherParameters, 0, lengthByteChunkData); - - byteChunkList.Add(byteChunkData); - } - - return byteChunkList; - } - - /// - /// Method to convert a byte Array into Four tByte Chunks - /// - /// Byte array that contains data to convert - /// List containing FourByteChunks - public static List ArrayToFourByteChunks(Array data) - { - if (data.Length == 0) - { - return null; - } - - FourByteChunk byteChunkData = new FourByteChunk(); - int lengthByteChunkData = byteChunkData.OtherParameters.Length; - - // PES09182009 Modified so it would also work on Mobile - int maxSize = System.Convert.ToInt32(Math.Ceiling((double)data.Length / (double)lengthByteChunkData)); - - byte[] chunkBuffer = new byte[maxSize * lengthByteChunkData]; - Buffer.BlockCopy(data, 0, chunkBuffer, 0, data.Length); - - List byteChunkList = new List(); - - for (int i = 0; i < maxSize; i++) - { - byteChunkData = new FourByteChunk(); - Buffer.BlockCopy(chunkBuffer, i * lengthByteChunkData, byteChunkData.OtherParameters, 0, lengthByteChunkData); - - byteChunkList.Add(byteChunkData); - } - - return byteChunkList; - } - - /// - /// Method to convert a byte Array into Two tByte Chunks - /// - /// Byte array that contains data to convert - /// List containing TwoByteChunks - public static List ArrayToTwoByteChunks(Array data) - { - if (data.Length == 0) - { - return null; - } - - TwoByteChunk byteChunkData = new TwoByteChunk(); - int lengthByteChunkData = byteChunkData.OtherParameters.Length; - - // PES09182009 Modified so it would also work on Mobile - int maxSize = System.Convert.ToInt32(Math.Ceiling((double)data.Length / (double)lengthByteChunkData)); - - byte[] chunkBuffer = new byte[maxSize * lengthByteChunkData]; - Buffer.BlockCopy(data, 0, chunkBuffer, 0, data.Length); - - List byteChunkList = new List(); - - for (int i = 0; i < maxSize; i++) - { - byteChunkData = new TwoByteChunk(); - Buffer.BlockCopy(chunkBuffer, i * lengthByteChunkData, byteChunkData.OtherParameters, 0, lengthByteChunkData); - - byteChunkList.Add(byteChunkData); - } - - return byteChunkList; - } - - /// - /// Method to convert Eight Byte Chunks into an Array - /// - /// List that holds the EightByteChunks - /// Byte array - public static Array EightByteChunksToArray(List chunkList) - { - EightByteChunk byteChunkData = new EightByteChunk(); - int lengthByteChunkData = byteChunkData.OtherParameters.Length; - - //Data passed in does not exist. - if (chunkList.Count == 0) - { - return null; - } - - // Create the appropriate sized buffer for this type - byte[] chunkBuffer = new byte[chunkList.Count * lengthByteChunkData]; - - // Go through each item and append to the buffer - for (int i = 0; i < chunkList.Count; i++) - { - Buffer.BlockCopy(chunkList[i].OtherParameters, 0, chunkBuffer, i * lengthByteChunkData, lengthByteChunkData); - } - - return (Array)chunkBuffer; - } - - /// - /// Method to convert Four Byte Chunks into an Array - /// - /// List that holds the FourByteChunks - /// Byte array - public static Array FourByteChunksToArray(List chunkList) - { - FourByteChunk byteChunkData = new FourByteChunk(); - int lengthByteChunkData = byteChunkData.OtherParameters.Length; - - // Data passed in does not exist. - if (chunkList.Count == 0) - { - return null; - } - - byte[] chunkBuffer = new byte[chunkList.Count * lengthByteChunkData]; - - for (int i = 0; i < chunkList.Count; i++) - { - Buffer.BlockCopy(chunkList[i].OtherParameters, 0, chunkBuffer, i * lengthByteChunkData, lengthByteChunkData); - } - - return (Array)chunkBuffer; - } - - /// - /// Method to convert a string into Eight Byte Chunks into an Array. This method was provided as a means to transport 'other' - /// types of data via a PDU that uses variable or fixed Datum. - /// - /// String data to convert - /// List of EightByteChunk data - public static List StringToEightByteChunks(string data) - { - // If data does not exist return null - if (data.Length == 0) - { - return null; - } - - // Using standard ascii encoding - System.Text.ASCIIEncoding encoding = new ASCIIEncoding(); - - // Convert string into bytes - Array dataArray = encoding.GetBytes(data); - - return ArrayToEightByteChunks(dataArray); - } - - /// - /// Method to convert a string into Four Byte Chunks into an Array. This method was provided as a means to transport 'other' - /// types of data via a PDU that uses variable or fixed Datum. - /// - /// String data to convert - /// List of FourByteChunk data - public static List StringToFourByteChunks(string data) - { - if (data.Length == 0) - { - return null; - } - - System.Text.ASCIIEncoding encoding = new ASCIIEncoding(); - Array dataArray = encoding.GetBytes(data); - - return ArrayToFourByteChunks(dataArray); - } - - /// - /// Method to convert a string into Two Byte Chunks into an Array. This method was provided as a means to transport 'other' - /// types of data via a PDU that uses variable or fixed Datum. - /// - /// String data to convert - /// List of TwoByteChunk data - public static List StringToTwoByteChunks(string data) - { - if (data.Length == 0) - { - return null; - } - - System.Text.ASCIIEncoding encoding = new ASCIIEncoding(); - Array dataArray = encoding.GetBytes(data); - - return ArrayToTwoByteChunks(dataArray); - } - - /// - /// Method to convert Two Byte Chunks into an Array - /// - /// List that holds the TwoByteChunks - /// Byte array - public static Array TwoByteChunksToArray(List chunkList) - { - TwoByteChunk byteChunkData = new TwoByteChunk(); - int lengthByteChunkData = byteChunkData.OtherParameters.Length; - - // Data passed in does not exist. - if (chunkList.Count == 0) - { - return null; - } - - byte[] chunkBuffer = new byte[chunkList.Count * lengthByteChunkData]; - - for (int i = 0; i < chunkList.Count; i++) - { - Buffer.BlockCopy(chunkList[i].OtherParameters, 0, chunkBuffer, i * lengthByteChunkData, lengthByteChunkData); - } - - return (Array)chunkBuffer; - } - - #endregionMethods - } - - ///// - ///// Class originally created to provide chunk data using reflection. The method below does work, however I could not find a way to - ///// use reflection going from an Array to the appropriate chunk type data (eg. EightByteChunk). - ///// - ///// Type of Chunk data (eg. EightByteChunk) - //public class ChunkConvertersUsingReflection where T : class - //{ - // public Array ByteChunksToArrayUsingReflection(List chunkList) - // { - // T[] bufferArray = new T[chunkList.Count]; - // //Requires knowledge of the Property of the class. In the Chunk classes each one contains the 'OtherParameters' property. Note that - // //data has to exist within this otherwise an error will occur. Try catch could be implemented. - // byte[] otherParameter = (byte[])chunkList[0].GetType().GetProperty("OtherParameters", System.Reflection.BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.Public | BindingFlags.Default).GetValue(chunkList[0], null); - // byte[] chunkBuffer = new byte[chunkList.Count * otherParameter.Length]; - // for (int i = 0; i < bufferArray.Length; i++) - // { - // //Get the underlining data - // byte[] data = (byte[])chunkList[i].GetType().GetProperty("OtherParameters", System.Reflection.BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.Public | BindingFlags.Default).GetValue(chunkList[i], null); - // Buffer.BlockCopy(data, 0, chunkBuffer, i * otherParameter.Length, otherParameter.Length); - // } - // return chunkBuffer; - // } - //} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author Peter Smith (Naval Air Warfare Center - Training Systems Division) 01/23/2009 +// Modified by Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using OpenDis.Dis1998; + +namespace OpenDis.Core +{ + /// + /// Chunk Convertor for DIS 1998 (note: same methods could be reused with 1995). + /// + public static class DIS1998ChunkConverter + { + #regionMethods(9) + + /// + /// Method to convert a byte Array into Eigh tByte Chunks + /// + /// Byte array that contains data to convert + /// List containing EightByteChunks + public static List ArrayToEightByteChunks(Array data) + { + //If no data exists return null + if (data.Length == 0) + { + return null; + } + + // Used to get the length of the data + EightByteChunk byteChunkData = new EightByteChunk(); + int lengthByteChunkData = byteChunkData.OtherParameters.Length; + + // Calculate the size if not on the byte boundary then all 1 to make it so + int maxSize = System.Convert.ToInt32(Math.Ceiling((double)data.Length / (double)lengthByteChunkData)); //PES09182009 Modified so it would also work on Mobile + + // Create buffer to hold the data passed in from the array + byte[] chunkBuffer = new byte[maxSize * lengthByteChunkData]; + + // Copy data to the buffer created above + Buffer.BlockCopy(data, 0, chunkBuffer, 0, data.Length); + + List byteChunkList = new List(); + + // Iterate over the buffer and grab the appropriate number of bytes, store into the List + for (int i = 0; i < maxSize; i++) + { + byteChunkData = new EightByteChunk(); + Buffer.BlockCopy(chunkBuffer, i * lengthByteChunkData, byteChunkData.OtherParameters, 0, lengthByteChunkData); + + byteChunkList.Add(byteChunkData); + } + + return byteChunkList; + } + + /// + /// Method to convert a byte Array into Four tByte Chunks + /// + /// Byte array that contains data to convert + /// List containing FourByteChunks + public static List ArrayToFourByteChunks(Array data) + { + if (data.Length == 0) + { + return null; + } + + FourByteChunk byteChunkData = new FourByteChunk(); + int lengthByteChunkData = byteChunkData.OtherParameters.Length; + + // PES09182009 Modified so it would also work on Mobile + int maxSize = System.Convert.ToInt32(Math.Ceiling((double)data.Length / (double)lengthByteChunkData)); + + byte[] chunkBuffer = new byte[maxSize * lengthByteChunkData]; + Buffer.BlockCopy(data, 0, chunkBuffer, 0, data.Length); + + List byteChunkList = new List(); + + for (int i = 0; i < maxSize; i++) + { + byteChunkData = new FourByteChunk(); + Buffer.BlockCopy(chunkBuffer, i * lengthByteChunkData, byteChunkData.OtherParameters, 0, lengthByteChunkData); + + byteChunkList.Add(byteChunkData); + } + + return byteChunkList; + } + + /// + /// Method to convert a byte Array into Two tByte Chunks + /// + /// Byte array that contains data to convert + /// List containing TwoByteChunks + public static List ArrayToTwoByteChunks(Array data) + { + if (data.Length == 0) + { + return null; + } + + TwoByteChunk byteChunkData = new TwoByteChunk(); + int lengthByteChunkData = byteChunkData.OtherParameters.Length; + + // PES09182009 Modified so it would also work on Mobile + int maxSize = System.Convert.ToInt32(Math.Ceiling((double)data.Length / (double)lengthByteChunkData)); + + byte[] chunkBuffer = new byte[maxSize * lengthByteChunkData]; + Buffer.BlockCopy(data, 0, chunkBuffer, 0, data.Length); + + List byteChunkList = new List(); + + for (int i = 0; i < maxSize; i++) + { + byteChunkData = new TwoByteChunk(); + Buffer.BlockCopy(chunkBuffer, i * lengthByteChunkData, byteChunkData.OtherParameters, 0, lengthByteChunkData); + + byteChunkList.Add(byteChunkData); + } + + return byteChunkList; + } + + /// + /// Method to convert Eight Byte Chunks into an Array + /// + /// List that holds the EightByteChunks + /// Byte array + public static Array EightByteChunksToArray(List chunkList) + { + EightByteChunk byteChunkData = new EightByteChunk(); + int lengthByteChunkData = byteChunkData.OtherParameters.Length; + + //Data passed in does not exist. + if (chunkList.Count == 0) + { + return null; + } + + // Create the appropriate sized buffer for this type + byte[] chunkBuffer = new byte[chunkList.Count * lengthByteChunkData]; + + // Go through each item and append to the buffer + for (int i = 0; i < chunkList.Count; i++) + { + Buffer.BlockCopy(chunkList[i].OtherParameters, 0, chunkBuffer, i * lengthByteChunkData, lengthByteChunkData); + } + + return (Array)chunkBuffer; + } + + /// + /// Method to convert Four Byte Chunks into an Array + /// + /// List that holds the FourByteChunks + /// Byte array + public static Array FourByteChunksToArray(List chunkList) + { + FourByteChunk byteChunkData = new FourByteChunk(); + int lengthByteChunkData = byteChunkData.OtherParameters.Length; + + // Data passed in does not exist. + if (chunkList.Count == 0) + { + return null; + } + + byte[] chunkBuffer = new byte[chunkList.Count * lengthByteChunkData]; + + for (int i = 0; i < chunkList.Count; i++) + { + Buffer.BlockCopy(chunkList[i].OtherParameters, 0, chunkBuffer, i * lengthByteChunkData, lengthByteChunkData); + } + + return (Array)chunkBuffer; + } + + /// + /// Method to convert a string into Eight Byte Chunks into an Array. This method was provided as a means to transport 'other' + /// types of data via a PDU that uses variable or fixed Datum. + /// + /// String data to convert + /// List of EightByteChunk data + public static List StringToEightByteChunks(string data) + { + // If data does not exist return null + if (data.Length == 0) + { + return null; + } + + // Using standard ascii encoding + System.Text.ASCIIEncoding encoding = new ASCIIEncoding(); + + // Convert string into bytes + Array dataArray = encoding.GetBytes(data); + + return ArrayToEightByteChunks(dataArray); + } + + /// + /// Method to convert a string into Four Byte Chunks into an Array. This method was provided as a means to transport 'other' + /// types of data via a PDU that uses variable or fixed Datum. + /// + /// String data to convert + /// List of FourByteChunk data + public static List StringToFourByteChunks(string data) + { + if (data.Length == 0) + { + return null; + } + + System.Text.ASCIIEncoding encoding = new ASCIIEncoding(); + Array dataArray = encoding.GetBytes(data); + + return ArrayToFourByteChunks(dataArray); + } + + /// + /// Method to convert a string into Two Byte Chunks into an Array. This method was provided as a means to transport 'other' + /// types of data via a PDU that uses variable or fixed Datum. + /// + /// String data to convert + /// List of TwoByteChunk data + public static List StringToTwoByteChunks(string data) + { + if (data.Length == 0) + { + return null; + } + + System.Text.ASCIIEncoding encoding = new ASCIIEncoding(); + Array dataArray = encoding.GetBytes(data); + + return ArrayToTwoByteChunks(dataArray); + } + + /// + /// Method to convert Two Byte Chunks into an Array + /// + /// List that holds the TwoByteChunks + /// Byte array + public static Array TwoByteChunksToArray(List chunkList) + { + TwoByteChunk byteChunkData = new TwoByteChunk(); + int lengthByteChunkData = byteChunkData.OtherParameters.Length; + + // Data passed in does not exist. + if (chunkList.Count == 0) + { + return null; + } + + byte[] chunkBuffer = new byte[chunkList.Count * lengthByteChunkData]; + + for (int i = 0; i < chunkList.Count; i++) + { + Buffer.BlockCopy(chunkList[i].OtherParameters, 0, chunkBuffer, i * lengthByteChunkData, lengthByteChunkData); + } + + return (Array)chunkBuffer; + } + + #endregionMethods + } + + ///// + ///// Class originally created to provide chunk data using reflection. The method below does work, however I could not find a way to + ///// use reflection going from an Array to the appropriate chunk type data (eg. EightByteChunk). + ///// + ///// Type of Chunk data (eg. EightByteChunk) + //public class ChunkConvertersUsingReflection where T : class + //{ + // public Array ByteChunksToArrayUsingReflection(List chunkList) + // { + // T[] bufferArray = new T[chunkList.Count]; + // //Requires knowledge of the Property of the class. In the Chunk classes each one contains the 'OtherParameters' property. Note that + // //data has to exist within this otherwise an error will occur. Try catch could be implemented. + // byte[] otherParameter = (byte[])chunkList[0].GetType().GetProperty("OtherParameters", System.Reflection.BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.Public | BindingFlags.Default).GetValue(chunkList[0], null); + // byte[] chunkBuffer = new byte[chunkList.Count * otherParameter.Length]; + // for (int i = 0; i < bufferArray.Length; i++) + // { + // //Get the underlining data + // byte[] data = (byte[])chunkList[i].GetType().GetProperty("OtherParameters", System.Reflection.BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.Public | BindingFlags.Default).GetValue(chunkList[i], null); + // Buffer.BlockCopy(data, 0, chunkBuffer, i * otherParameter.Length, otherParameter.Length); + // } + // return chunkBuffer; + // } + //} } \ No newline at end of file diff --git a/Libs/CsharpDis6/OpenDis/Utilities/Conversion.cs b/Libs/CsharpDis6/Utilities/Conversion.cs similarity index 98% rename from Libs/CsharpDis6/OpenDis/Utilities/Conversion.cs rename to Libs/CsharpDis6/Utilities/Conversion.cs index cd44e04..b851a5a 100644 --- a/Libs/CsharpDis6/OpenDis/Utilities/Conversion.cs +++ b/Libs/CsharpDis6/Utilities/Conversion.cs @@ -1,110 +1,110 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author Peter Smith (Naval Air Warfare Center - Training Systems Division) 01/23/2009 -// Modified by Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.Text; - -namespace OpenDis.Core -{ - public static class Conversion - { - #regionFields(2) - - /// - /// The mask that will leave only the type metric from an - /// integer representing the Articulation Parameter's parameter type. - /// This mask is based on the IEEE Std 1278.1-1995 - /// - public const int ARTICULATION_PARAMETER_TYPE_METRIC_MASK = 0x001F; - - /// - /// The number of bits used to store the type metric value - /// within the Articulation Parameter's parameter type value. - /// This mask is based on the IEEE Std 1278.1-1995 - /// - public const byte ARTICULATION_PARAMETER_TYPE_METRIC_NUMBER_OF_BITS = 5; - - #endregionFields - - #regionMethods(3) - - /// - /// Extracts the data for the type class value stored within the parameter type value. - /// This an inverse to the function . - /// - /// The value storing the type metric and type class values. - /// The type class value, with ARTICULATION_PARAMETER_TYPE_METRIC_NUMBER_OF_BITS bits precision. - public static int GetArticulationTypeClass(int parametertype) - { - // wipe off the typemetric bits and return the typeclass bits - return parametertype >> ARTICULATION_PARAMETER_TYPE_METRIC_NUMBER_OF_BITS; - } - - /// - /// Extracts the data for the type metric value stored within the parameter type value. - /// This an inverse to the function . - /// - /// The value storing the type metric and type class values. - /// The type metric value, with ARTICULATION_PARAMETER_TYPE_METRIC_NUMBER_OF_BITS bits precision. - public static int GetArticulationTypeMetric(int parametertype) - { - // wipe off the typeclass bits and return the typemetric bits - return parametertype & ARTICULATION_PARAMETER_TYPE_METRIC_MASK; - } - - /// - /// Make the value needed for the ArticulationParameter's Parameter Type. - /// The enumeration for the articulated part. - /// This must have less precision than ARTICULATION_PARAMETER_TYPE_METRIC_NUMBER_OF_BITS. - /// The enumeration for the motion description. - /// This must have less precision than 32 - ARTICULATION_PARAMETER_TYPE_METRIC_NUMBER_OF_BITS. - /// The value to be used as the Parameter Type, with 32 bits precision. - public static uint MakeArticulationParameterType(uint typeclass, uint typemetric) - { - // enforce a ceiling on typemetric - typemetric = typemetric & ARTICULATION_PARAMETER_TYPE_METRIC_MASK; - - // shift the typeclass bits to the left by the precision amount of typemetric - // and then add the typemetric bits - return ((typeclass << ARTICULATION_PARAMETER_TYPE_METRIC_NUMBER_OF_BITS) - + typemetric); - } - - #endregionMethods - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author Peter Smith (Naval Air Warfare Center - Training Systems Division) 01/23/2009 +// Modified by Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; + +namespace OpenDis.Core +{ + public static class Conversion + { + #regionFields(2) + + /// + /// The mask that will leave only the type metric from an + /// integer representing the Articulation Parameter's parameter type. + /// This mask is based on the IEEE Std 1278.1-1995 + /// + public const int ARTICULATION_PARAMETER_TYPE_METRIC_MASK = 0x001F; + + /// + /// The number of bits used to store the type metric value + /// within the Articulation Parameter's parameter type value. + /// This mask is based on the IEEE Std 1278.1-1995 + /// + public const byte ARTICULATION_PARAMETER_TYPE_METRIC_NUMBER_OF_BITS = 5; + + #endregionFields + + #regionMethods(3) + + /// + /// Extracts the data for the type class value stored within the parameter type value. + /// This an inverse to the function . + /// + /// The value storing the type metric and type class values. + /// The type class value, with ARTICULATION_PARAMETER_TYPE_METRIC_NUMBER_OF_BITS bits precision. + public static int GetArticulationTypeClass(int parametertype) + { + // wipe off the typemetric bits and return the typeclass bits + return parametertype >> ARTICULATION_PARAMETER_TYPE_METRIC_NUMBER_OF_BITS; + } + + /// + /// Extracts the data for the type metric value stored within the parameter type value. + /// This an inverse to the function . + /// + /// The value storing the type metric and type class values. + /// The type metric value, with ARTICULATION_PARAMETER_TYPE_METRIC_NUMBER_OF_BITS bits precision. + public static int GetArticulationTypeMetric(int parametertype) + { + // wipe off the typeclass bits and return the typemetric bits + return parametertype & ARTICULATION_PARAMETER_TYPE_METRIC_MASK; + } + + /// + /// Make the value needed for the ArticulationParameter's Parameter Type. + /// The enumeration for the articulated part. + /// This must have less precision than ARTICULATION_PARAMETER_TYPE_METRIC_NUMBER_OF_BITS. + /// The enumeration for the motion description. + /// This must have less precision than 32 - ARTICULATION_PARAMETER_TYPE_METRIC_NUMBER_OF_BITS. + /// The value to be used as the Parameter Type, with 32 bits precision. + public static uint MakeArticulationParameterType(uint typeclass, uint typemetric) + { + // enforce a ceiling on typemetric + typemetric = typemetric & ARTICULATION_PARAMETER_TYPE_METRIC_MASK; + + // shift the typeclass bits to the left by the precision amount of typemetric + // and then add the typemetric bits + return ((typeclass << ARTICULATION_PARAMETER_TYPE_METRIC_NUMBER_OF_BITS) + + typemetric); + } + + #endregionMethods + } +} diff --git a/Libs/CsharpDis6/OpenDis/Utilities/CoordinateConversions.cs b/Libs/CsharpDis6/Utilities/CoordinateConversions.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Utilities/CoordinateConversions.cs rename to Libs/CsharpDis6/Utilities/CoordinateConversions.cs index 6f7a548..a206282 100644 --- a/Libs/CsharpDis6/OpenDis/Utilities/CoordinateConversions.cs +++ b/Libs/CsharpDis6/Utilities/CoordinateConversions.cs @@ -1,142 +1,142 @@ -using System; - -namespace OpenDis.Core -{ - /// - /// Converts DIS (x,y,z) rectilinear coordinates (earth-centered RH coordinate system) - /// to latitude and longitude, in radians. - /// @author loyaj - /// - public class CoordinateConversions - { - public static readonly double RADIANS_TO_DEGREES = 180.0 / Math.PI; - public static readonly double DEGREES_TO_RADIANS = Math.PI / 180.0; - - private CoordinateConversions() - { - } - /// - /// Converts DIS xyz world coordinates to latitude and longitude (IN RADIANS). This algorithm may not be 100% accurate - /// near the poles. Uses WGS84 , though you can change the ellipsoid constants a and b if you want to use something - /// else. These formulas were obtained from Military Handbook 600008 - /// A double array with the x, y, and z coordinates, in that order. - /// An array with the lat, long, and elevation corresponding to those coordinates. - /// Elevation is in meters, lat and long are in radians - public static double[] xyzToLatLonRadians(double[] xyz) - { - double x = xyz[0]; - double y = xyz[1]; - double z = xyz[2]; - double[] answer = new double[3]; - double a = 6378137.0; //semi major axis - double b = 6356752.3142; //semi minor axis - - double eSquared; //first eccentricity squared - double rSubN; //radius of the curvature of the prime vertical - double ePrimeSquared; //second eccentricity squared - double W = Math.Sqrt((x * x + y * y)); - - eSquared = (a * a - b * b) / (a * a); - ePrimeSquared = (a * a - b * b) / (b * b); - - /// - /// Get the longitude. - /// - if (x >= 0) - { - answer[1] = Math.Atan(y / x); - } - else if (x < 0 && y >= 0) - { - answer[1] = Math.Atan(y / x) + Math.PI; - } - else - { - answer[1] = Math.Atan(y / x) - Math.PI; - } - - /// - /// Longitude calculation done. Now calculate latitude. - /// NOTE: The handbook mentions using the calculated phi (latitude) value to recalculate B - /// using tan B = (1-f) tan phi and then performing the entire calculation again to get more accurate values. - /// However, for terrestrial applications, one iteration is accurate to .1 millimeter on the surface of the - /// earth (Rapp, 1984, p.124), so one iteration is enough for our purposes - /// - - double tanBZero = (a * z) / (b * W); - double BZero = Math.Atan((tanBZero)); - double tanPhi = (z + (ePrimeSquared * b * (Math.Pow(Math.Sin(BZero), 3)))) / (W - (a * eSquared * (Math.Pow(Math.Cos(BZero), 3)))); - double phi = Math.Atan(tanPhi); - answer[0] = phi; - /// - /// Latitude done, now get the elevation. Note: The handbook states that near the poles, it is preferable to use - /// h = (Z / sin phi ) - rSubN + (eSquared * rSubN). Our applications are never near the poles, so this formula - /// was left unimplemented. - /// - rSubN = (a * a) / Math.Sqrt(((a * a) * (Math.Cos(phi) * Math.Cos(phi)) + ((b * b) * (Math.Sin(phi) * Math.Sin(phi))))); - - answer[2] = (W / Math.Cos(phi)) - rSubN; - - return answer; - } - - /// - /// Converts DIS xyz world coordinates to latitude and longitude (IN DEGREES). This algorithm may not be 100% accurate - /// near the poles. Uses WGS84 , though you can change the ellipsoid constants a and b if you want to use something - /// else. These formulas were obtained from Military Handbook 600008 - /// A double array with the x, y, and z coordinates, in that order. - /// An array with the lat, lon, and elevation corresponding to those coordinates. - /// Elevation is in meters, lat and long are in degrees - public static double[] xyzToLatLonDegrees(double[] xyz) - { - double[] degrees = CoordinateConversions.xyzToLatLonRadians(xyz); - - degrees[0] = degrees[0] * 180.0 / Math.PI; - degrees[1] = degrees[1] * 180.0 / Math.PI; - - return degrees; - - } - - /// - /// Converts lat long and geodetic height (elevation) into DIS XYZ - /// This algorithm also uses the WGS84 ellipsoid, though you can change the values - /// of a and b for a different ellipsoid. Adapted from Military Handbook 600008 - /// The latitude, IN RADIANS - /// The longitude, in RADIANS - /// The elevation, in meters - /// a double array with the calculated X, Y, and Z values, in that order - public static double[] getXYZfromLatLonRadians(double latitude, double longitude, double height) - { - double a = 6378137.0; //semi major axis - double b = 6356752.3142; //semi minor axis - double cosLat = Math.Cos(latitude); - double sinLat = Math.Sin(latitude); - - - double rSubN = (a * a) / Math.Sqrt(((a * a) * (cosLat * cosLat) + ((b * b) * (sinLat * sinLat)))); - - double X = (rSubN + height) * cosLat * Math.Cos(longitude); - double Y = (rSubN + height) * cosLat * Math.Sin(longitude); - double Z = ((((b * b) / (a * a)) * rSubN) + height) * sinLat; - - return new double[] { X, Y, Z }; - } - - /// - /// Converts lat long IN DEGREES and geodetic height (elevation) into DIS XYZ - /// This algorithm also uses the WGS84 ellipsoid, though you can change the values - /// of a and b for a different ellipsoid. Adapted from Military Handbook 600008 - /// The latitude, IN DEGREES - /// The longitude, in DEGREES - /// The elevation, in meters - /// a double array with the calculated X, Y, and Z values, in that order - public static double[] getXYZfromLatLonDegrees(double latitude, double longitude, double height) - { - double[] degrees = CoordinateConversions.getXYZfromLatLonRadians(latitude * CoordinateConversions.DEGREES_TO_RADIANS, longitude * CoordinateConversions.DEGREES_TO_RADIANS, height); - - return degrees; - } - } - -} +using System; + +namespace OpenDis.Core +{ + /// + /// Converts DIS (x,y,z) rectilinear coordinates (earth-centered RH coordinate system) + /// to latitude and longitude, in radians. + /// @author loyaj + /// + public class CoordinateConversions + { + public static readonly double RADIANS_TO_DEGREES = 180.0 / Math.PI; + public static readonly double DEGREES_TO_RADIANS = Math.PI / 180.0; + + private CoordinateConversions() + { + } + /// + /// Converts DIS xyz world coordinates to latitude and longitude (IN RADIANS). This algorithm may not be 100% accurate + /// near the poles. Uses WGS84 , though you can change the ellipsoid constants a and b if you want to use something + /// else. These formulas were obtained from Military Handbook 600008 + /// A double array with the x, y, and z coordinates, in that order. + /// An array with the lat, long, and elevation corresponding to those coordinates. + /// Elevation is in meters, lat and long are in radians + public static double[] xyzToLatLonRadians(double[] xyz) + { + double x = xyz[0]; + double y = xyz[1]; + double z = xyz[2]; + double[] answer = new double[3]; + double a = 6378137.0; //semi major axis + double b = 6356752.3142; //semi minor axis + + double eSquared; //first eccentricity squared + double rSubN; //radius of the curvature of the prime vertical + double ePrimeSquared; //second eccentricity squared + double W = Math.Sqrt((x * x + y * y)); + + eSquared = (a * a - b * b) / (a * a); + ePrimeSquared = (a * a - b * b) / (b * b); + + /// + /// Get the longitude. + /// + if (x >= 0) + { + answer[1] = Math.Atan(y / x); + } + else if (x < 0 && y >= 0) + { + answer[1] = Math.Atan(y / x) + Math.PI; + } + else + { + answer[1] = Math.Atan(y / x) - Math.PI; + } + + /// + /// Longitude calculation done. Now calculate latitude. + /// NOTE: The handbook mentions using the calculated phi (latitude) value to recalculate B + /// using tan B = (1-f) tan phi and then performing the entire calculation again to get more accurate values. + /// However, for terrestrial applications, one iteration is accurate to .1 millimeter on the surface of the + /// earth (Rapp, 1984, p.124), so one iteration is enough for our purposes + /// + + double tanBZero = (a * z) / (b * W); + double BZero = Math.Atan((tanBZero)); + double tanPhi = (z + (ePrimeSquared * b * (Math.Pow(Math.Sin(BZero), 3)))) / (W - (a * eSquared * (Math.Pow(Math.Cos(BZero), 3)))); + double phi = Math.Atan(tanPhi); + answer[0] = phi; + /// + /// Latitude done, now get the elevation. Note: The handbook states that near the poles, it is preferable to use + /// h = (Z / sin phi ) - rSubN + (eSquared * rSubN). Our applications are never near the poles, so this formula + /// was left unimplemented. + /// + rSubN = (a * a) / Math.Sqrt(((a * a) * (Math.Cos(phi) * Math.Cos(phi)) + ((b * b) * (Math.Sin(phi) * Math.Sin(phi))))); + + answer[2] = (W / Math.Cos(phi)) - rSubN; + + return answer; + } + + /// + /// Converts DIS xyz world coordinates to latitude and longitude (IN DEGREES). This algorithm may not be 100% accurate + /// near the poles. Uses WGS84 , though you can change the ellipsoid constants a and b if you want to use something + /// else. These formulas were obtained from Military Handbook 600008 + /// A double array with the x, y, and z coordinates, in that order. + /// An array with the lat, lon, and elevation corresponding to those coordinates. + /// Elevation is in meters, lat and long are in degrees + public static double[] xyzToLatLonDegrees(double[] xyz) + { + double[] degrees = CoordinateConversions.xyzToLatLonRadians(xyz); + + degrees[0] = degrees[0] * 180.0 / Math.PI; + degrees[1] = degrees[1] * 180.0 / Math.PI; + + return degrees; + + } + + /// + /// Converts lat long and geodetic height (elevation) into DIS XYZ + /// This algorithm also uses the WGS84 ellipsoid, though you can change the values + /// of a and b for a different ellipsoid. Adapted from Military Handbook 600008 + /// The latitude, IN RADIANS + /// The longitude, in RADIANS + /// The elevation, in meters + /// a double array with the calculated X, Y, and Z values, in that order + public static double[] getXYZfromLatLonRadians(double latitude, double longitude, double height) + { + double a = 6378137.0; //semi major axis + double b = 6356752.3142; //semi minor axis + double cosLat = Math.Cos(latitude); + double sinLat = Math.Sin(latitude); + + + double rSubN = (a * a) / Math.Sqrt(((a * a) * (cosLat * cosLat) + ((b * b) * (sinLat * sinLat)))); + + double X = (rSubN + height) * cosLat * Math.Cos(longitude); + double Y = (rSubN + height) * cosLat * Math.Sin(longitude); + double Z = ((((b * b) / (a * a)) * rSubN) + height) * sinLat; + + return new double[] { X, Y, Z }; + } + + /// + /// Converts lat long IN DEGREES and geodetic height (elevation) into DIS XYZ + /// This algorithm also uses the WGS84 ellipsoid, though you can change the values + /// of a and b for a different ellipsoid. Adapted from Military Handbook 600008 + /// The latitude, IN DEGREES + /// The longitude, in DEGREES + /// The elevation, in meters + /// a double array with the calculated X, Y, and Z values, in that order + public static double[] getXYZfromLatLonDegrees(double latitude, double longitude, double height) + { + double[] degrees = CoordinateConversions.getXYZfromLatLonRadians(latitude * CoordinateConversions.DEGREES_TO_RADIANS, longitude * CoordinateConversions.DEGREES_TO_RADIANS, height); + + return degrees; + } + } + +} diff --git a/Libs/CsharpDis6/OpenDis/Utilities/DataInputStream.cs b/Libs/CsharpDis6/Utilities/DataInputStream.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Utilities/DataInputStream.cs rename to Libs/CsharpDis6/Utilities/DataInputStream.cs index c84406a..fc70667 100644 --- a/Libs/CsharpDis6/OpenDis/Utilities/DataInputStream.cs +++ b/Libs/CsharpDis6/Utilities/DataInputStream.cs @@ -1,320 +1,320 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author Peter Smith (Naval Air Warfare Center - Training Systems Division) 01/23/2009 -// Modified by Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.IO; -using System.Runtime.InteropServices; -using System.Runtime.Serialization; -using System.Runtime.Serialization.Formatters.Binary; -using System.Security.Cryptography; -using System.Text; - -namespace OpenDis.Core -{ - /// - /// Class used to read in PDU Bytes via the DataStream class - /// - public class DataInputStream - { - #regionFields(1) - - private DataStream pduDataStream; - - #endregionFields - - #regionConstructors(2) - - /// - /// Initializes a new instance of the class with - /// Endian set to Little. - /// - public DataInputStream() - : this(Endian.Little) - { - } - - /// - /// Initializes a new instance of the class. - /// - /// The endian. - public DataInputStream(Endian endian) - { - this.pduDataStream = new DataStream(); - this.pduDataStream.StreamCounter = 0; - this.Endian = endian; - } - - /// - /// Initializes a new instance of the class. - /// - /// byte array - /// type of endian - public DataInputStream(byte[] ds, Endian endian) - : this(endian) - { - this.pduDataStream.StreamByteArray = ds; - this.pduDataStream.Endian = endian; - } - - #endregionConstructors - - #regionProperties(1) - - ///// - ///// Used to convert an array of bytes to a MemoryStream - ///// - ///// byte array - ///// MemoryStream - ////private MemoryStream ConvertBytesMemoryStream(byte[] data) - ////{ - //// MemoryStream ms = new MemoryStream(); - - //// ms.Write(data, 0, data.Length); - - //// return ms; - ////} - - /// - /// Gets or sets the endian value currently being used to process PDU data - /// - public Endian Endian - { - get - { - return this.pduDataStream.Endian; - } - - set - { - this.pduDataStream.Endian = value; - } - } - - #endregionProperties - - #regionMethods(11) - - /// - /// Reads from DataStream's byte array a byte - /// - /// byte value - public byte ReadByte() - { - byte returnedData = this.pduDataStream.StreamByteArray[this.pduDataStream.StreamCounter]; - this.pduDataStream.StreamCounter++; - return returnedData; - } - - /// - /// Reads from DataStream's byte array a byte - /// - /// byte value - public byte[] ReadByteArray(int length) - { - byte[] returnedData = DataStream.ReturnByteArray(this.pduDataStream.StreamByteArray, this.pduDataStream.StreamCounter, length); - - this.pduDataStream.StreamCounter += length; - return returnedData; - } - - /// - /// Reads from DataStream's byte array a double value - /// - /// double value - public double ReadDouble() - { - int size = sizeof(double); - byte[] temp = DataStream.ReturnByteArray(this.pduDataStream.StreamByteArray, this.pduDataStream.StreamCounter, size); - - if (this.Endian == Endian.Big) - { - Array.Reverse(temp); - } - - double returnedData = System.BitConverter.ToDouble(temp, 0); - this.pduDataStream.StreamCounter += size; - return returnedData; - } - - /// - /// Reads from DataStream's byte array a float value - /// - /// float value - public float ReadFloat() - { - int size = sizeof(float); - byte[] temp = DataStream.ReturnByteArray(this.pduDataStream.StreamByteArray, this.pduDataStream.StreamCounter, size); - - if (this.Endian == Endian.Big) - { - Array.Reverse(temp); - } - - float returnedData = System.BitConverter.ToSingle(temp, 0); - this.pduDataStream.StreamCounter += size; - return returnedData; - } - - /// - /// Reads from DataStream's byte array an int value - /// - /// int value - public int ReadInt() - { - int size = sizeof(int); - byte[] temp = DataStream.ReturnByteArray(this.pduDataStream.StreamByteArray, this.pduDataStream.StreamCounter, size); - - if (this.Endian == Endian.Big) - { - Array.Reverse(temp); - } - - int returnedData = System.BitConverter.ToInt32(temp, 0); - this.pduDataStream.StreamCounter += size; - return returnedData; - - } - - /// - /// Reads from DataStream's byte array a long - /// - /// long value - public long ReadLong() - { - int size = sizeof(long); - byte[] temp = DataStream.ReturnByteArray(this.pduDataStream.StreamByteArray, this.pduDataStream.StreamCounter, size); - - if (this.Endian == Endian.Big) - { - Array.Reverse(temp); - } - - long returnedData = System.BitConverter.ToInt64(temp, 0); - this.pduDataStream.StreamCounter += size; - return returnedData; - } - - /// - /// Reads from DataStream's byte array a short value - /// - /// short value - public short ReadShort() - { - int size = sizeof(short); - byte[] temp = DataStream.ReturnByteArray(this.pduDataStream.StreamByteArray, this.pduDataStream.StreamCounter, size); - - if (this.Endian == Endian.Big) - { - Array.Reverse(temp); - } - - short returnedData = System.BitConverter.ToInt16(temp, 0); - this.pduDataStream.StreamCounter += size; - return returnedData; - } - - /// - /// Reads from DataStream's byte array a byte - /// - /// byte value - public byte ReadUnsignedByte() - { - return this.ReadByte(); - } - - /// - /// Reads from DataStream's byte array a unsigned int - /// - /// unsigned int value - public uint ReadUnsignedInt() - { - int size = sizeof(uint); - byte[] temp = DataStream.ReturnByteArray(this.pduDataStream.StreamByteArray, this.pduDataStream.StreamCounter, size); - - if (this.Endian == Endian.Big) - { - Array.Reverse(temp); - } - - uint returnedData = System.BitConverter.ToUInt32(temp, 0); - - this.pduDataStream.StreamCounter += size; - return returnedData; - } - - /// - /// Reads from DataStream's byte array a unsigned long - /// - /// ulong value - public ulong ReadUnsignedLong() - { - int size = sizeof(ulong); - byte[] temp = DataStream.ReturnByteArray(this.pduDataStream.StreamByteArray, this.pduDataStream.StreamCounter, size); - - if (this.Endian == Endian.Big) - { - Array.Reverse(temp); - } - - ulong returnedData = System.BitConverter.ToUInt64(temp, 0); - this.pduDataStream.StreamCounter += size; - return returnedData; - } - - /// - /// Reads from DataStream's byte array a unsigned short - /// - /// unsigned short value - public ushort ReadUnsignedShort() - { - int size = sizeof(ushort); - byte[] temp = DataStream.ReturnByteArray(this.pduDataStream.StreamByteArray, this.pduDataStream.StreamCounter, size); - - if (this.Endian == Endian.Big) - { - Array.Reverse(temp); - } - - ushort returnedData = System.BitConverter.ToUInt16(temp, 0); - this.pduDataStream.StreamCounter += size; - return returnedData; - } - - #endregionMethods - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author Peter Smith (Naval Air Warfare Center - Training Systems Division) 01/23/2009 +// Modified by Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.IO; +using System.Runtime.InteropServices; +using System.Runtime.Serialization; +using System.Runtime.Serialization.Formatters.Binary; +using System.Security.Cryptography; +using System.Text; + +namespace OpenDis.Core +{ + /// + /// Class used to read in PDU Bytes via the DataStream class + /// + public class DataInputStream + { + #regionFields(1) + + private DataStream pduDataStream; + + #endregionFields + + #regionConstructors(2) + + /// + /// Initializes a new instance of the class with + /// Endian set to Little. + /// + public DataInputStream() + : this(Endian.Little) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// The endian. + public DataInputStream(Endian endian) + { + this.pduDataStream = new DataStream(); + this.pduDataStream.StreamCounter = 0; + this.Endian = endian; + } + + /// + /// Initializes a new instance of the class. + /// + /// byte array + /// type of endian + public DataInputStream(byte[] ds, Endian endian) + : this(endian) + { + this.pduDataStream.StreamByteArray = ds; + this.pduDataStream.Endian = endian; + } + + #endregionConstructors + + #regionProperties(1) + + ///// + ///// Used to convert an array of bytes to a MemoryStream + ///// + ///// byte array + ///// MemoryStream + ////private MemoryStream ConvertBytesMemoryStream(byte[] data) + ////{ + //// MemoryStream ms = new MemoryStream(); + + //// ms.Write(data, 0, data.Length); + + //// return ms; + ////} + + /// + /// Gets or sets the endian value currently being used to process PDU data + /// + public Endian Endian + { + get + { + return this.pduDataStream.Endian; + } + + set + { + this.pduDataStream.Endian = value; + } + } + + #endregionProperties + + #regionMethods(11) + + /// + /// Reads from DataStream's byte array a byte + /// + /// byte value + public byte ReadByte() + { + byte returnedData = this.pduDataStream.StreamByteArray[this.pduDataStream.StreamCounter]; + this.pduDataStream.StreamCounter++; + return returnedData; + } + + /// + /// Reads from DataStream's byte array a byte + /// + /// byte value + public byte[] ReadByteArray(int length) + { + byte[] returnedData = DataStream.ReturnByteArray(this.pduDataStream.StreamByteArray, this.pduDataStream.StreamCounter, length); + + this.pduDataStream.StreamCounter += length; + return returnedData; + } + + /// + /// Reads from DataStream's byte array a double value + /// + /// double value + public double ReadDouble() + { + int size = sizeof(double); + byte[] temp = DataStream.ReturnByteArray(this.pduDataStream.StreamByteArray, this.pduDataStream.StreamCounter, size); + + if (this.Endian == Endian.Big) + { + Array.Reverse(temp); + } + + double returnedData = System.BitConverter.ToDouble(temp, 0); + this.pduDataStream.StreamCounter += size; + return returnedData; + } + + /// + /// Reads from DataStream's byte array a float value + /// + /// float value + public float ReadFloat() + { + int size = sizeof(float); + byte[] temp = DataStream.ReturnByteArray(this.pduDataStream.StreamByteArray, this.pduDataStream.StreamCounter, size); + + if (this.Endian == Endian.Big) + { + Array.Reverse(temp); + } + + float returnedData = System.BitConverter.ToSingle(temp, 0); + this.pduDataStream.StreamCounter += size; + return returnedData; + } + + /// + /// Reads from DataStream's byte array an int value + /// + /// int value + public int ReadInt() + { + int size = sizeof(int); + byte[] temp = DataStream.ReturnByteArray(this.pduDataStream.StreamByteArray, this.pduDataStream.StreamCounter, size); + + if (this.Endian == Endian.Big) + { + Array.Reverse(temp); + } + + int returnedData = System.BitConverter.ToInt32(temp, 0); + this.pduDataStream.StreamCounter += size; + return returnedData; + + } + + /// + /// Reads from DataStream's byte array a long + /// + /// long value + public long ReadLong() + { + int size = sizeof(long); + byte[] temp = DataStream.ReturnByteArray(this.pduDataStream.StreamByteArray, this.pduDataStream.StreamCounter, size); + + if (this.Endian == Endian.Big) + { + Array.Reverse(temp); + } + + long returnedData = System.BitConverter.ToInt64(temp, 0); + this.pduDataStream.StreamCounter += size; + return returnedData; + } + + /// + /// Reads from DataStream's byte array a short value + /// + /// short value + public short ReadShort() + { + int size = sizeof(short); + byte[] temp = DataStream.ReturnByteArray(this.pduDataStream.StreamByteArray, this.pduDataStream.StreamCounter, size); + + if (this.Endian == Endian.Big) + { + Array.Reverse(temp); + } + + short returnedData = System.BitConverter.ToInt16(temp, 0); + this.pduDataStream.StreamCounter += size; + return returnedData; + } + + /// + /// Reads from DataStream's byte array a byte + /// + /// byte value + public byte ReadUnsignedByte() + { + return this.ReadByte(); + } + + /// + /// Reads from DataStream's byte array a unsigned int + /// + /// unsigned int value + public uint ReadUnsignedInt() + { + int size = sizeof(uint); + byte[] temp = DataStream.ReturnByteArray(this.pduDataStream.StreamByteArray, this.pduDataStream.StreamCounter, size); + + if (this.Endian == Endian.Big) + { + Array.Reverse(temp); + } + + uint returnedData = System.BitConverter.ToUInt32(temp, 0); + + this.pduDataStream.StreamCounter += size; + return returnedData; + } + + /// + /// Reads from DataStream's byte array a unsigned long + /// + /// ulong value + public ulong ReadUnsignedLong() + { + int size = sizeof(ulong); + byte[] temp = DataStream.ReturnByteArray(this.pduDataStream.StreamByteArray, this.pduDataStream.StreamCounter, size); + + if (this.Endian == Endian.Big) + { + Array.Reverse(temp); + } + + ulong returnedData = System.BitConverter.ToUInt64(temp, 0); + this.pduDataStream.StreamCounter += size; + return returnedData; + } + + /// + /// Reads from DataStream's byte array a unsigned short + /// + /// unsigned short value + public ushort ReadUnsignedShort() + { + int size = sizeof(ushort); + byte[] temp = DataStream.ReturnByteArray(this.pduDataStream.StreamByteArray, this.pduDataStream.StreamCounter, size); + + if (this.Endian == Endian.Big) + { + Array.Reverse(temp); + } + + ushort returnedData = System.BitConverter.ToUInt16(temp, 0); + this.pduDataStream.StreamCounter += size; + return returnedData; + } + + #endregionMethods + } +} diff --git a/Libs/CsharpDis6/OpenDis/Utilities/DataOutputStream.cs b/Libs/CsharpDis6/Utilities/DataOutputStream.cs similarity index 96% rename from Libs/CsharpDis6/OpenDis/Utilities/DataOutputStream.cs rename to Libs/CsharpDis6/Utilities/DataOutputStream.cs index 4b48e50..ab7e74e 100644 --- a/Libs/CsharpDis6/OpenDis/Utilities/DataOutputStream.cs +++ b/Libs/CsharpDis6/Utilities/DataOutputStream.cs @@ -1,324 +1,324 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author Peter Smith (Naval Air Warfare Center - Training Systems Division) 01/23/2009 -// Modified by Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.IO; -using System.Runtime.InteropServices; -using System.Runtime.Serialization; -using System.Runtime.Serialization.Formatters.Binary; -using System.Text; - -namespace OpenDis.Core -{ - /// - /// Class used to export PDU information from a DataStream - /// - public class DataOutputStream - { - #regionFields(1) - - DataStream pduDataStream; - - #endregionFields - - #regionConstructors(2) - - /// - /// Initializes a new instance of the DataOutputStream class from an - /// existing DataStream and sets Endian type to use. - /// - /// The data stream. - /// The endian to be used. - public DataOutputStream(DataStream ds, Endian endian) - { - this.pduDataStream = ds; - this.Endian = endian; - } - - /// - /// Initializes a new instance of the DataOutputStream class and - /// with Endian set to Little. - /// - /// The endian to be used. - public DataOutputStream() - : this(Endian.Little) - { - } - - /// - /// Initializes a new instance of the DataOutputStream class and - /// sets the Endian to use. - /// - /// The endian to be used. - public DataOutputStream(Endian endian) - { - this.pduDataStream = new DataStream(); - this.Endian = endian; - } - - #endregionConstructors - - #regionProperties(2) - - /// - /// Gets the underlining DataStream - /// - public DataStream DS - { - get - { - return this.pduDataStream; - } - } - - /// - /// Gets or sets the Endian type - /// - public Endian Endian - { - get - { - return this.DS.Endian; - } - - set - { - this.DS.Endian = value; - } - } - - #endregionProperties - - #regionMethods(15) - - /// - /// Converts the DataStream to a byte array - /// - /// byte array - public byte[] ConvertToBytes() - { - return this.DS.ConvertToBytes(); - } - - /// - /// Write a byte value to the DataStream - /// - /// byte - public void WriteByte(byte data) - { - this.WriteData(data); - } - - /// - /// Write a byte array value to the DataStream - /// - /// byte - public void WriteByte(byte[] data) - { - this.WriteData(data); - } - - /// - /// Write a double value to the DataStream - /// - /// double - public void WriteDouble(double data) - { - byte[] serializedData = System.BitConverter.GetBytes(data); - - if (this.Endian == Endian.Big) - { - Array.Reverse(serializedData); - } - - this.WriteData(serializedData); - } - - /// - /// Write a float value to the DataStream - /// - /// float - public void WriteFloat(float data) - { - byte[] serializedData = System.BitConverter.GetBytes(data); - - if (this.Endian == Endian.Big) - { - Array.Reverse(serializedData); - } - - this.WriteData(serializedData); - } - - /// - /// Write a int value to the DataStream - /// - /// int32 - public void WriteInt(int data) - { - byte[] serializedData = System.BitConverter.GetBytes(data); - - if (this.Endian == Endian.Big) - { - Array.Reverse(serializedData); - } - - this.WriteData(serializedData); - } - - /// - /// Write a long value to the DataStream - /// - /// long - public void WriteLong(long data) - { - byte[] serializedData = System.BitConverter.GetBytes(data); - - if (this.Endian == Endian.Big) - { - Array.Reverse(serializedData); - } - - this.WriteData(serializedData); - } - - /// - /// Write a short value to the DataStream - /// - /// short value - public void WriteShort(short data) - { - byte[] serializedData = System.BitConverter.GetBytes(data); - - if (this.Endian == Endian.Big) - { - Array.Reverse(serializedData); - } - - this.WriteData(serializedData); - } - - /// - /// Write a byte value to the DataStream - /// - /// byte - public void WriteUnsignedByte(byte data) - { - this.WriteData(data); - } - - /// - /// Write a byte array value to the DataStream - /// - /// byte - public void WriteUnsignedByte(byte[] data) - { - this.WriteData(data); - } - - /// - /// Write a unsigned int value to the DataStream - /// - /// unsigned int - public void WriteUnsignedInt(uint data) - { - byte[] serializedData = System.BitConverter.GetBytes(data); - - if (this.Endian == Endian.Big) - { - Array.Reverse(serializedData); - } - - this.WriteData(serializedData); - } - - /// - /// Write a unsigned long value to the DataStream - /// - /// long - public void WriteUnsignedLong(ulong data) - { - byte[] serializedData = System.BitConverter.GetBytes(data); - - if (this.Endian == Endian.Big) - { - Array.Reverse(serializedData); - } - - this.WriteData(serializedData); - } - - /// - /// Write a unsigned short value to the DataStream - /// - /// unsigned short - public void WriteUnsignedShort(ushort data) - { - byte[] serializedData = System.BitConverter.GetBytes(data); - - if (this.Endian == Endian.Big) - { - Array.Reverse(serializedData); - } - - this.WriteData(serializedData); - } - - /// - /// Base method to write a byte value to the DataStream - /// - /// byte - private void WriteData(byte data) - { - this.pduDataStream.Append(data); - this.pduDataStream.StreamCounter += 1; - } - - /// - /// Base method to write an array of bytes to the DataStream - /// - /// byte array - private void WriteData(byte[] data) - { - this.pduDataStream.Append(data); - this.pduDataStream.StreamCounter += data.Length; - } - - #endregionMethods - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author Peter Smith (Naval Air Warfare Center - Training Systems Division) 01/23/2009 +// Modified by Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.IO; +using System.Runtime.InteropServices; +using System.Runtime.Serialization; +using System.Runtime.Serialization.Formatters.Binary; +using System.Text; + +namespace OpenDis.Core +{ + /// + /// Class used to export PDU information from a DataStream + /// + public class DataOutputStream + { + #regionFields(1) + + DataStream pduDataStream; + + #endregionFields + + #regionConstructors(2) + + /// + /// Initializes a new instance of the DataOutputStream class from an + /// existing DataStream and sets Endian type to use. + /// + /// The data stream. + /// The endian to be used. + public DataOutputStream(DataStream ds, Endian endian) + { + this.pduDataStream = ds; + this.Endian = endian; + } + + /// + /// Initializes a new instance of the DataOutputStream class and + /// with Endian set to Little. + /// + /// The endian to be used. + public DataOutputStream() + : this(Endian.Little) + { + } + + /// + /// Initializes a new instance of the DataOutputStream class and + /// sets the Endian to use. + /// + /// The endian to be used. + public DataOutputStream(Endian endian) + { + this.pduDataStream = new DataStream(); + this.Endian = endian; + } + + #endregionConstructors + + #regionProperties(2) + + /// + /// Gets the underlining DataStream + /// + public DataStream DS + { + get + { + return this.pduDataStream; + } + } + + /// + /// Gets or sets the Endian type + /// + public Endian Endian + { + get + { + return this.DS.Endian; + } + + set + { + this.DS.Endian = value; + } + } + + #endregionProperties + + #regionMethods(15) + + /// + /// Converts the DataStream to a byte array + /// + /// byte array + public byte[] ConvertToBytes() + { + return this.DS.ConvertToBytes(); + } + + /// + /// Write a byte value to the DataStream + /// + /// byte + public void WriteByte(byte data) + { + this.WriteData(data); + } + + /// + /// Write a byte array value to the DataStream + /// + /// byte + public void WriteByte(byte[] data) + { + this.WriteData(data); + } + + /// + /// Write a double value to the DataStream + /// + /// double + public void WriteDouble(double data) + { + byte[] serializedData = System.BitConverter.GetBytes(data); + + if (this.Endian == Endian.Big) + { + Array.Reverse(serializedData); + } + + this.WriteData(serializedData); + } + + /// + /// Write a float value to the DataStream + /// + /// float + public void WriteFloat(float data) + { + byte[] serializedData = System.BitConverter.GetBytes(data); + + if (this.Endian == Endian.Big) + { + Array.Reverse(serializedData); + } + + this.WriteData(serializedData); + } + + /// + /// Write a int value to the DataStream + /// + /// int32 + public void WriteInt(int data) + { + byte[] serializedData = System.BitConverter.GetBytes(data); + + if (this.Endian == Endian.Big) + { + Array.Reverse(serializedData); + } + + this.WriteData(serializedData); + } + + /// + /// Write a long value to the DataStream + /// + /// long + public void WriteLong(long data) + { + byte[] serializedData = System.BitConverter.GetBytes(data); + + if (this.Endian == Endian.Big) + { + Array.Reverse(serializedData); + } + + this.WriteData(serializedData); + } + + /// + /// Write a short value to the DataStream + /// + /// short value + public void WriteShort(short data) + { + byte[] serializedData = System.BitConverter.GetBytes(data); + + if (this.Endian == Endian.Big) + { + Array.Reverse(serializedData); + } + + this.WriteData(serializedData); + } + + /// + /// Write a byte value to the DataStream + /// + /// byte + public void WriteUnsignedByte(byte data) + { + this.WriteData(data); + } + + /// + /// Write a byte array value to the DataStream + /// + /// byte + public void WriteUnsignedByte(byte[] data) + { + this.WriteData(data); + } + + /// + /// Write a unsigned int value to the DataStream + /// + /// unsigned int + public void WriteUnsignedInt(uint data) + { + byte[] serializedData = System.BitConverter.GetBytes(data); + + if (this.Endian == Endian.Big) + { + Array.Reverse(serializedData); + } + + this.WriteData(serializedData); + } + + /// + /// Write a unsigned long value to the DataStream + /// + /// long + public void WriteUnsignedLong(ulong data) + { + byte[] serializedData = System.BitConverter.GetBytes(data); + + if (this.Endian == Endian.Big) + { + Array.Reverse(serializedData); + } + + this.WriteData(serializedData); + } + + /// + /// Write a unsigned short value to the DataStream + /// + /// unsigned short + public void WriteUnsignedShort(ushort data) + { + byte[] serializedData = System.BitConverter.GetBytes(data); + + if (this.Endian == Endian.Big) + { + Array.Reverse(serializedData); + } + + this.WriteData(serializedData); + } + + /// + /// Base method to write a byte value to the DataStream + /// + /// byte + private void WriteData(byte data) + { + this.pduDataStream.Append(data); + this.pduDataStream.StreamCounter += 1; + } + + /// + /// Base method to write an array of bytes to the DataStream + /// + /// byte array + private void WriteData(byte[] data) + { + this.pduDataStream.Append(data); + this.pduDataStream.StreamCounter += data.Length; + } + + #endregionMethods + } +} diff --git a/Libs/CsharpDis6/OpenDis/Utilities/DataStream.cs b/Libs/CsharpDis6/Utilities/DataStream.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Utilities/DataStream.cs rename to Libs/CsharpDis6/Utilities/DataStream.cs index 72c2b59..3838686 100644 --- a/Libs/CsharpDis6/OpenDis/Utilities/DataStream.cs +++ b/Libs/CsharpDis6/Utilities/DataStream.cs @@ -1,196 +1,196 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author Peter Smith (Naval Air Warfare Center - Training Systems Division) 01/23/2009 -// Modified by Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) - -using System; -using System.Collections.Generic; -using System.IO; -using System.Runtime.Serialization.Formatters.Binary; -using System.Text; - -namespace OpenDis.Core -{ - /// - /// Base class for storing PDU information - /// - public class DataStream : IDisposable - { - #regionFields(1) - - /// - /// The endian type. - /// - private Endian endianType; - - #endregionFields - - #regionConstructors(1) - - /// - /// Initializes a new instance of the DataStream class. - /// This will store all PDU information for either an InputStream or OutputStream. - /// - public DataStream() - { - // Test the machine to determine to see what it supports. - this.endianType = (BitConverter.IsLittleEndian ? Endian.Little : Endian.Big); - - // create a new MemoryStream - this.Stream = new MemoryStream(); - } - - #endregionConstructors - - #regionProperties(4) - - /// - /// Gets or sets the endian type - /// - public Endian Endian - { - get - { - return this.endianType; - } - - set - { - this.endianType = value; - } - } - - /// - /// Gets or sets the MemoryStream that will be used to hold the PDU data. - /// - public MemoryStream Stream - { - get; - set; - } - - /// - /// Gets or sets the location to store a byte representation of the PDU. - /// - public byte[] StreamByteArray - { - get; - set; - } - - /// - /// Gets or sets the counter used to keep track of where pointer is for the stream. - /// - public int StreamCounter - { - get; - set; - } - - #endregionProperties - - #regionMethods(6) - - /// - /// Appends the byte array data to the MemoryStream - /// - /// byte array - public void Append(byte[] data) - { - this.Stream.Seek(this.Stream.Length, SeekOrigin.Begin); - this.Stream.Write(data, 0, data.Length); - } - - /// - /// Appends a single byte to the MemoryStream - /// - /// - public void Append(byte data) - { - this.Stream.Seek(this.Stream.Length, SeekOrigin.Begin); - this.Stream.WriteByte(data); - } - - /// - /// Re-Initializes the MemoryStream and streamCounter back to zero - /// - public void Clear() - { - this.StreamCounter = 0; - this.Stream = new MemoryStream(); - } - - /// - /// Convert a MemoryStream to a byte array - /// - /// byte array - public byte[] ConvertToBytes() - { - return ReturnByteArray(this.Stream.GetBuffer(), 0, (int)this.Stream.Length); - } - - public void Dispose() - { - if (this.Stream != null) - { - try - { - this.Stream.Close(); - this.Stream.Dispose(); - } - catch - { - } - } - } - - /// - /// Returns a portion of a byte array for Endian conversion - /// - /// source bytearray - /// A 32-bit integer that represents the start index at which the conversion should begin - /// A 32-bit integer that represents the size of the value type - /// A byte array that will hold the byte representation of the value - public static byte[] ReturnByteArray(byte[] byteStream, int startIndex, int sizeOfData) - { - byte[] temp = new byte[sizeOfData]; - Array.Copy(byteStream, startIndex, temp, 0, sizeOfData); - - return temp; - } - - #endregionMethods - } -} +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author Peter Smith (Naval Air Warfare Center - Training Systems Division) 01/23/2009 +// Modified by Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.IO; +using System.Runtime.Serialization.Formatters.Binary; +using System.Text; + +namespace OpenDis.Core +{ + /// + /// Base class for storing PDU information + /// + public class DataStream : IDisposable + { + #regionFields(1) + + /// + /// The endian type. + /// + private Endian endianType; + + #endregionFields + + #regionConstructors(1) + + /// + /// Initializes a new instance of the DataStream class. + /// This will store all PDU information for either an InputStream or OutputStream. + /// + public DataStream() + { + // Test the machine to determine to see what it supports. + this.endianType = (BitConverter.IsLittleEndian ? Endian.Little : Endian.Big); + + // create a new MemoryStream + this.Stream = new MemoryStream(); + } + + #endregionConstructors + + #regionProperties(4) + + /// + /// Gets or sets the endian type + /// + public Endian Endian + { + get + { + return this.endianType; + } + + set + { + this.endianType = value; + } + } + + /// + /// Gets or sets the MemoryStream that will be used to hold the PDU data. + /// + public MemoryStream Stream + { + get; + set; + } + + /// + /// Gets or sets the location to store a byte representation of the PDU. + /// + public byte[] StreamByteArray + { + get; + set; + } + + /// + /// Gets or sets the counter used to keep track of where pointer is for the stream. + /// + public int StreamCounter + { + get; + set; + } + + #endregionProperties + + #regionMethods(6) + + /// + /// Appends the byte array data to the MemoryStream + /// + /// byte array + public void Append(byte[] data) + { + this.Stream.Seek(this.Stream.Length, SeekOrigin.Begin); + this.Stream.Write(data, 0, data.Length); + } + + /// + /// Appends a single byte to the MemoryStream + /// + /// + public void Append(byte data) + { + this.Stream.Seek(this.Stream.Length, SeekOrigin.Begin); + this.Stream.WriteByte(data); + } + + /// + /// Re-Initializes the MemoryStream and streamCounter back to zero + /// + public void Clear() + { + this.StreamCounter = 0; + this.Stream = new MemoryStream(); + } + + /// + /// Convert a MemoryStream to a byte array + /// + /// byte array + public byte[] ConvertToBytes() + { + return ReturnByteArray(this.Stream.GetBuffer(), 0, (int)this.Stream.Length); + } + + public void Dispose() + { + if (this.Stream != null) + { + try + { + this.Stream.Close(); + this.Stream.Dispose(); + } + catch + { + } + } + } + + /// + /// Returns a portion of a byte array for Endian conversion + /// + /// source bytearray + /// A 32-bit integer that represents the start index at which the conversion should begin + /// A 32-bit integer that represents the size of the value type + /// A byte array that will hold the byte representation of the value + public static byte[] ReturnByteArray(byte[] byteStream, int startIndex, int sizeOfData) + { + byte[] temp = new byte[sizeOfData]; + Array.Copy(byteStream, startIndex, temp, 0, sizeOfData); + + return temp; + } + + #endregionMethods + } +} diff --git a/Libs/CsharpDis6/OpenDis/Utilities/PDUProcessor.cs b/Libs/CsharpDis6/Utilities/PDUProcessor.cs similarity index 97% rename from Libs/CsharpDis6/OpenDis/Utilities/PDUProcessor.cs rename to Libs/CsharpDis6/Utilities/PDUProcessor.cs index 7c5e24e..14ef093 100644 --- a/Libs/CsharpDis6/OpenDis/Utilities/PDUProcessor.cs +++ b/Libs/CsharpDis6/Utilities/PDUProcessor.cs @@ -1,666 +1,666 @@ -// Copyright (c) 1995-2009 held by the author(s). All rights reserved. -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions -// are met: -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above copyright -// notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the names of the Naval Postgraduate School (NPS) -// Modeling Virtual Environments and Simulation (MOVES) Institute -// (http://www.nps.edu and http://www.MovesInstitute.org) -// nor the names of its contributors may be used to endorse or -// promote products derived from this software without specific -// prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -// POSSIBILITY OF SUCH DAMAGE. -// -// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All -// rights reserved. This work is licensed under the BSD open source license, -// available at https://www.movesinstitute.org/licenses/bsd.html -// -// Author Peter Smith (Naval Air Warfare Center - Training Systems Division) 01/23/2009 -// Modified by Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) -// - -using System; -using System.Collections.Generic; -using System.Globalization; -using System.IO; -using System.Text; -using System.Xml; -using System.Xml.Serialization; -using OpenDis.Dis1998; -using OpenDis.Enumerations; - -namespace OpenDis.Core -{ - public class PduProcessor - { - #region Fields (5)  - - public const uint PDU_LENGTH_POSITION = 8; - public const uint PDU_TYPE_POSITION = 2; - public const uint PDU_VERSION_POSITION = 0; - - private Endian endian; - private System.Xml.Serialization.XmlSerializer xmlSerializedData; - - #endregion Fields  - - #region Constructors (1)  - - public PduProcessor() - { - this.endian = (BitConverter.IsLittleEndian ? Endian.Little : Endian.Big); - } - - #endregion Constructors  - - #region Properties (1)  - - /// - /// Gets or sets the type of endian used to process the data - /// - public Endian Endian - { - get - { - return this.endian; - } - - set - { - this.endian = value; - } - } - - #endregion Properties  - - #region Methods (18)  - - /// - /// Converts a byte array into a DIS1998 PDU - /// - /// Type of the PDU. - /// Byte array that hold raw 1998 PDU. - /// The Endian type used for conversion. - /// PDU object - public static Pdu ConvertByteArrayToPdu1998(byte pduType, byte[] rawPdu, Endian endian) - { - return UnmarshalRawPdu(pduType, rawPdu, endian); - } - - /// - /// Provided as a means to return a string representation of the underlining PDU data. Note format is not yet optimized. - /// - /// The PDU to parse - /// StringBuilder that represents the state of the PDU - public static StringBuilder DecodePdu(object pdu) - { - StringBuilder sb = new StringBuilder(); - pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }, CultureInfo.InvariantCulture); - - return sb; - } - - /// - /// Provides a means of processing PDU data - /// - /// byte array containing the pdu data to process - /// format of value types - /// Collection of PDUs which are represented in base object class - public List ProcessPdu(byte[] buffer, Endian endian) - { - this.Endian = endian; - return this.ProcessPdu(buffer); - } - - /// - /// Processes the pdu. - /// - /// The stream. - /// format of value types - /// The PDU instance. - public object ProcessPdu(Stream stream, Endian endian) - { - this.Endian = endian; - return this.ProcessPdu(stream); - } - - /// - /// Processes the pdu. - /// - /// The stream. - /// format of value types - /// The raw pdu. - public void ProcessPdu(Stream stream, Endian endian, out byte[] rawPdu) - { - this.Endian = endian; - this.ProcessPdu(stream, out rawPdu); - } - - /// - /// Provides a means of processing PDU data - /// - /// byte array containing the pdu data to process - /// format of value types - /// Added to support passing back just the byte array. - /// Collection of Raw byte[] PDUs - public List ProcessRawPdu(byte[] buffer, Endian endian) - { - this.Endian = endian; - return this.ProcessRawPdu(buffer); - } - - /// - /// Provides a means of processing PDU data - /// - /// byte array containing the pdu data to process - /// format of value types - /// Returns raw packets to a referenced Queue - /// Added to support passing back just the byte array into a Queue. - public void ProcessRawPdu(byte[] buffer, Endian endian, ref Queue dataQueue) - { - this.Endian = endian; - - // Calling the method to get PDUs, increment through each in case more than one pdu in packet - foreach (byte[] pduRawByteArray in this.ProcessRawPdu(buffer)) - { - dataQueue.Enqueue(pduRawByteArray); - } - } - - /// - /// Used to unmarshal data back into the correct PDU type. - /// - /// PDU type - /// Datastream which contains the raw packet and Endian Type - /// Added by PES to work with Mobile. - /// The PDU instance. - public static Pdu UnmarshalRawPdu(byte pduType, DataInputStream ds) - { - return UnmarshalRawPdu((PduType)pduType, ds); - } - - /// - /// Used to unmarshal data back into the correct PDU type. - /// - /// PDU type - /// Datastream which contains the raw packet and Endian Type - /// Added by PES to work with Mobile. - /// The PDU instance. - public static Pdu UnmarshalRawPdu(PduType pduType, DataInputStream ds) - { - Pdu pdu = new Pdu(); - - switch (pduType) - { - case PduType.EntityState: - EntityStatePdu entityStatePdu = new EntityStatePdu(); - entityStatePdu.Unmarshal(ds); - pdu = (Pdu)entityStatePdu; - break; - case PduType.Fire: - FirePdu firePdu = new FirePdu(); - firePdu.Unmarshal(ds); - pdu = (Pdu)firePdu; - break; - case PduType.Detonation: - DetonationPdu detonationPdu = new DetonationPdu(); - detonationPdu.Unmarshal(ds); - pdu = (Pdu)detonationPdu; - break; - case PduType.Collision: - CollisionPdu collisionPdu = new CollisionPdu(); - collisionPdu.Unmarshal(ds); - pdu = (Pdu)collisionPdu; - break; - case PduType.ServiceRequest: - ServiceRequestPdu serviceRequestPdu = new ServiceRequestPdu(); - serviceRequestPdu.Unmarshal(ds); - pdu = (Pdu)serviceRequestPdu; - break; - case PduType.ResupplyOffer: - ResupplyOfferPdu resupplyOfferPdu = new ResupplyOfferPdu(); - resupplyOfferPdu.Unmarshal(ds); - pdu = (Pdu)resupplyOfferPdu; - break; - case PduType.ResupplyReceived: - ResupplyReceivedPdu resupplyReceivedPdu = new ResupplyReceivedPdu(); - resupplyReceivedPdu.Unmarshal(ds); - pdu = (Pdu)resupplyReceivedPdu; - break; - case PduType.ResupplyCancel: - ResupplyCancelPdu resupplyCancelPdu = new ResupplyCancelPdu(); - resupplyCancelPdu.Unmarshal(ds); - pdu = (Pdu)resupplyCancelPdu; - break; - case PduType.RepairComplete: - RepairCompletePdu repairCompletePdu = new RepairCompletePdu(); - repairCompletePdu.Unmarshal(ds); - pdu = (Pdu)repairCompletePdu; - break; - case PduType.RepairResponse: - RepairResponsePdu repairResponsePdu = new RepairResponsePdu(); - repairResponsePdu.Unmarshal(ds); - pdu = (Pdu)repairResponsePdu; - break; - case PduType.CreateEntity: - CreateEntityPdu createEntityPdu = new CreateEntityPdu(); - createEntityPdu.Unmarshal(ds); - pdu = (Pdu)createEntityPdu; - break; - case PduType.RemoveEntity: - RemoveEntityPdu removeEntityPdu = new RemoveEntityPdu(); - removeEntityPdu.Unmarshal(ds); - pdu = (Pdu)removeEntityPdu; - break; - case PduType.StartResume: - StartResumePdu startResumePdu = new StartResumePdu(); - startResumePdu.Unmarshal(ds); - pdu = (Pdu)startResumePdu; - break; - case PduType.Acknowledge: - AcknowledgePdu acknowledgePdu = new AcknowledgePdu(); - acknowledgePdu.Unmarshal(ds); - pdu = (Pdu)acknowledgePdu; - break; - case PduType.ActionRequest: - ActionRequestPdu actionRequestPdu = new ActionRequestPdu(); - actionRequestPdu.Unmarshal(ds); - pdu = (Pdu)actionRequestPdu; - break; - case PduType.ActionResponse: - ActionResponsePdu actionResponsePdu = new ActionResponsePdu(); - actionResponsePdu.Unmarshal(ds); - pdu = (Pdu)actionResponsePdu; - break; - case PduType.DataQuery: - DataQueryPdu dataQueryPdu = new DataQueryPdu(); - dataQueryPdu.Unmarshal(ds); - pdu = (Pdu)dataQueryPdu; - break; - case PduType.SetData: - SetDataPdu setDataPdu = new SetDataPdu(); - setDataPdu.Unmarshal(ds); - pdu = (Pdu)setDataPdu; - break; - case PduType.EventReport: - EventReportPdu eventReportPdu = new EventReportPdu(); - eventReportPdu.Unmarshal(ds); - pdu = (Pdu)eventReportPdu; - break; - case PduType.Comment: - CommentPdu commentPdu = new CommentPdu(); - commentPdu.Unmarshal(ds); - pdu = (Pdu)commentPdu; - break; - case PduType.StopFreeze: - StopFreezePdu stopFreezePdu = new StopFreezePdu(); - stopFreezePdu.Unmarshal(ds); - pdu = (Pdu)stopFreezePdu; - break; - case PduType.Signal: - SignalPdu signalPdu = new SignalPdu(); - signalPdu.Unmarshal(ds); - pdu = (Pdu)signalPdu; - break; - case PduType.Transmitter: - TransmitterPdu transmitterPdu = new TransmitterPdu(); - transmitterPdu.Unmarshal(ds); - pdu = (Pdu)transmitterPdu; - break; - } - - return pdu; - } - - /// - /// Used to unmarshal data back into the correct PDU type. - /// - /// PDU type - /// byte array containing the raw packets - /// Endian type - /// Added by PES to work with Mobile. - /// The PDU instance - public static Pdu UnmarshalRawPdu(byte pduType, byte[] rawPdu, Endian endian) - { - DataInputStream ds = new DataInputStream(rawPdu, endian); - return UnmarshalRawPdu((PduType)pduType, ds); - } - - /// - /// Used to unmarshal data back into the correct PDU type. - /// - /// PDU type - /// byte array containing the raw packets - /// Endian type - /// Added by PES to work with Mobile. - /// The PDU instance. - public static Pdu UnmarshalRawPdu(PduType pduType, byte[] rawPdu, Endian endian) - { - DataInputStream ds = new DataInputStream(rawPdu, endian); - return UnmarshalRawPdu(pduType, ds); - } - - /// - /// Returns an XML version of the reflected PDU - /// - /// PDU to reflect into XML - /// StringBuilder - public StringBuilder XmlDecodePdu(object pdu) - { - StringBuilder sb = new StringBuilder(); - - using (System.IO.StringWriter stringWriter = new System.IO.StringWriter(CultureInfo.InvariantCulture)) - { - try - { - this.xmlSerializedData = new XmlSerializer(pdu.GetType()); - this.xmlSerializedData.Serialize(stringWriter, pdu); - - } - catch - { - throw; - } - finally - { - sb.Append(stringWriter.ToString()); - stringWriter.Close(); - } - } - - return sb; - } - // Protected Methods (5)  - - protected virtual object ProcessPdu(Stream stream) - { - int upToPduLength = (int)PDU_LENGTH_POSITION + sizeof(ushort); - int pduLength = 0; - byte pduType; - byte pdu_version; - object pdu = null; - - long startingPosition = stream.Position; - - byte[] buffer = new byte[upToPduLength]; - - // Read in part of the stream up to the pdu length - stream.Read(buffer, 0, upToPduLength); - - try - { - pduLength = PduProcessor.pduLength(buffer, this.endian); - - // Allocate space for the whole PDU - byte[] pduBufferStorage = new byte[pduLength]; - - // Reset back to beginning - stream.Position = startingPosition; - - // Read in the whole PDU - stream.Read(pduBufferStorage, 0, pduLength); - - pduType = pduBufferStorage[PDU_TYPE_POSITION]; - - pdu_version = pduBufferStorage[PDU_VERSION_POSITION]; - - pdu = this.SwitchOnType(pdu_version, pduType, pduBufferStorage); - - } - catch - { - // Wow something bad just happened, could be bad/misalgined PDU - pdu = null; - } - - return pdu; - } - - /// - /// Process a received PDU. Note that a datastream can contain multiple PDUs. Therefore a - /// List is used to hold one or more after decoding. - /// - /// byte array of PDU(s) - /// Collection of all PDU(s) decoded - protected virtual List ProcessPdu(byte[] buffer) - { - List pduCollection = new List(); - - if (buffer.Length < 1) - { - return pduCollection; - } - - int length = buffer.Length; - byte pduType; - byte pdu_version; - int countBytes = 0; - uint pduLength = 0; - - //used to interate over all PDU(s) within the byte array - while (countBytes < length) - { - try - { - pduLength = PduProcessor.pduLength(buffer, this.endian, (uint)(PDU_LENGTH_POSITION + countBytes)); - - // Must be at end of datastream - if (pduLength == 0) - { - break; - } - - pduType = buffer[PDU_TYPE_POSITION + countBytes]; - - pdu_version = buffer[PDU_VERSION_POSITION + countBytes]; - - byte[] pduBufferStorage = new byte[pduLength]; - - // Could potentially be a problem since pduLength is an unsigned int, - // changed due to windows mobile does not accept a long for 4th parameter - Array.Copy(buffer, countBytes, pduBufferStorage, 0, (int)pduLength); - - pduCollection.Add(SwitchOnType(pdu_version, pduType, pduBufferStorage)); - - countBytes += (int)pduLength; - - } - catch - { - // Wow something bad just happened, could be bad/misalgined PDU - break; - } - } - - return pduCollection; - } - - protected virtual void ProcessPdu(Stream stream, out byte[] rawData) - { - int upToPduLength = (int)PDU_LENGTH_POSITION + sizeof(ushort); - int pduLength = 0; - - long startingPosition = stream.Position; - - byte[] buffer = new byte[upToPduLength]; - - // Read in part of the stream up to the pdu length - stream.Read(buffer, 0, upToPduLength); - - try - { - pduLength = PduProcessor.pduLength(buffer, this.endian); - - // Allocate space for the whole PDU - rawData = new byte[pduLength]; - - // Reset back to beginning - stream.Position = startingPosition; - - // Read in the whole PDU - stream.Read(rawData, 0, pduLength); - } - catch - { - // Wow something bad just happened, could be bad/misalgined PDU - rawData = null; - } - } - - /// - /// Process a received PDU. Note that a datastream can contain multiple PDUs. Therefore a - /// List is used to hold one or more after decoding. - /// - /// Added by PES to support passing back just the byte array. - /// byte array of PDU(s) - /// Collection of all PDU(s) in raw byte format - protected virtual List ProcessRawPdu(byte[] buffer) - { - List pduCollection = new List(); - - if (buffer.Length < 1) - { - return pduCollection; - } - - int length = buffer.Length; - byte pduType; - byte pduVersion; - int countBytes = 0; - uint pduLength = 0; - - //used to interate over all PDU(s) within the byte array - while (countBytes < length) - { - try - { - pduLength = PduProcessor.pduLength(buffer, this.endian); - - // Must be at end of datastream - if (pduLength == 0) - { - break; - } - - pduType = buffer[PDU_TYPE_POSITION + countBytes]; - - pduVersion = buffer[PDU_VERSION_POSITION + countBytes]; - - byte[] pduBufferStorage = new byte[pduLength]; - - // Could potentially be a problem since pduLength is an unsigned int, - // changed due to windows mobile does not accept a long for 4th parameter - Array.Copy(buffer, countBytes, pduBufferStorage, 0, (int)pduLength); - - pduCollection.Add(pduBufferStorage); - - countBytes += (int)pduLength; - } - catch - { - // Wow something bad just happened, could be bad/misalgined PDU - break; - } - } - - return pduCollection; - } - - /// - /// Returns an instance of the PDU based upon the pdu type passed in. Note PDU will be represented as an Object for simplicity. - /// - /// Version of IEEE standard - /// Type of PDU - /// PDU byte array containing the data - /// PDU instance. - protected virtual object SwitchOnType(byte pduVersion, uint pduType, byte[] ds) - { - object pdu = null; - - DataInputStream dStream = new DataInputStream(ds, this.Endian); - - switch (pduVersion) - { - case 5: - // DIS 1995 - break; - case 6: - // DIS 1998 - // pdu = OpenDis.Utilities.PDUBank.GetPDU(pduType); - pdu = UnmarshalRawPdu((PduType)pduType, dStream); - break; - default: - break; - } - - //if (pdu != null) - //{ - // //Call the method of the underlining Type vice the Upper class method. - // ReturnUnmarshalledPDU(pdu, dStream); - //} - - return pdu; - } - - - /// - /// Extracts length of PDU without altering byte array/stream so that future access to this field is still valid - /// - /// Byte array holding PDU data. - /// Position of 'length' field. generally at pos 8, but if this byte array holds more than one PDU - /// The Endian type used for conversion. - /// length - private static UInt16 pduLength(byte[] buf, Endian endian, uint pos = PDU_LENGTH_POSITION) - { - byte[] temp = new byte[2]; - - if (endian == Endian.Big) //Reverse - { - temp[0] = buf[pos + 1]; - temp[1] = buf[pos]; - } - else //Leave as is - { - temp[0] = buf[pos]; - temp[1] = buf[pos + 1]; - } - - return System.BitConverter.ToUInt16(temp, 0); - } - - - /// - /// Unmarshal all data into the pdu object. This method calls the all the base unmarshals. - /// Deprecated: This method used Reflection, use method instead. - /// - /// object where the unmarshalled data will be stored - /// location of where the unmarshalled data is located - [Obsolete("This method used Reflection which is slow, new method 'UnmarshallRawPdu' should be used instead.")] - private static void ReturnUnmarshalledPdu(object pdu, DataInputStream dStream) - { - // Unmarshal is the method name found in each of the PDU classes - pdu.GetType().InvokeMember("Unmarshal", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { dStream }, CultureInfo.InvariantCulture); - } - - - - #endregion Methods  - } +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author Peter Smith (Naval Air Warfare Center - Training Systems Division) 01/23/2009 +// Modified by Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) +// + +using System; +using System.Collections.Generic; +using System.Globalization; +using System.IO; +using System.Text; +using System.Xml; +using System.Xml.Serialization; +using OpenDis.Dis1998; +using OpenDis.Enumerations; + +namespace OpenDis.Core +{ + public class PduProcessor + { + #region Fields (5)  + + public const uint PDU_LENGTH_POSITION = 8; + public const uint PDU_TYPE_POSITION = 2; + public const uint PDU_VERSION_POSITION = 0; + + private Endian endian; + private System.Xml.Serialization.XmlSerializer xmlSerializedData; + + #endregion Fields  + + #region Constructors (1)  + + public PduProcessor() + { + this.endian = (BitConverter.IsLittleEndian ? Endian.Little : Endian.Big); + } + + #endregion Constructors  + + #region Properties (1)  + + /// + /// Gets or sets the type of endian used to process the data + /// + public Endian Endian + { + get + { + return this.endian; + } + + set + { + this.endian = value; + } + } + + #endregion Properties  + + #region Methods (18)  + + /// + /// Converts a byte array into a DIS1998 PDU + /// + /// Type of the PDU. + /// Byte array that hold raw 1998 PDU. + /// The Endian type used for conversion. + /// PDU object + public static Pdu ConvertByteArrayToPdu1998(byte pduType, byte[] rawPdu, Endian endian) + { + return UnmarshalRawPdu(pduType, rawPdu, endian); + } + + /// + /// Provided as a means to return a string representation of the underlining PDU data. Note format is not yet optimized. + /// + /// The PDU to parse + /// StringBuilder that represents the state of the PDU + public static StringBuilder DecodePdu(object pdu) + { + StringBuilder sb = new StringBuilder(); + pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }, CultureInfo.InvariantCulture); + + return sb; + } + + /// + /// Provides a means of processing PDU data + /// + /// byte array containing the pdu data to process + /// format of value types + /// Collection of PDUs which are represented in base object class + public List ProcessPdu(byte[] buffer, Endian endian) + { + this.Endian = endian; + return this.ProcessPdu(buffer); + } + + /// + /// Processes the pdu. + /// + /// The stream. + /// format of value types + /// The PDU instance. + public object ProcessPdu(Stream stream, Endian endian) + { + this.Endian = endian; + return this.ProcessPdu(stream); + } + + /// + /// Processes the pdu. + /// + /// The stream. + /// format of value types + /// The raw pdu. + public void ProcessPdu(Stream stream, Endian endian, out byte[] rawPdu) + { + this.Endian = endian; + this.ProcessPdu(stream, out rawPdu); + } + + /// + /// Provides a means of processing PDU data + /// + /// byte array containing the pdu data to process + /// format of value types + /// Added to support passing back just the byte array. + /// Collection of Raw byte[] PDUs + public List ProcessRawPdu(byte[] buffer, Endian endian) + { + this.Endian = endian; + return this.ProcessRawPdu(buffer); + } + + /// + /// Provides a means of processing PDU data + /// + /// byte array containing the pdu data to process + /// format of value types + /// Returns raw packets to a referenced Queue + /// Added to support passing back just the byte array into a Queue. + public void ProcessRawPdu(byte[] buffer, Endian endian, ref Queue dataQueue) + { + this.Endian = endian; + + // Calling the method to get PDUs, increment through each in case more than one pdu in packet + foreach (byte[] pduRawByteArray in this.ProcessRawPdu(buffer)) + { + dataQueue.Enqueue(pduRawByteArray); + } + } + + /// + /// Used to unmarshal data back into the correct PDU type. + /// + /// PDU type + /// Datastream which contains the raw packet and Endian Type + /// Added by PES to work with Mobile. + /// The PDU instance. + public static Pdu UnmarshalRawPdu(byte pduType, DataInputStream ds) + { + return UnmarshalRawPdu((PduType)pduType, ds); + } + + /// + /// Used to unmarshal data back into the correct PDU type. + /// + /// PDU type + /// Datastream which contains the raw packet and Endian Type + /// Added by PES to work with Mobile. + /// The PDU instance. + public static Pdu UnmarshalRawPdu(PduType pduType, DataInputStream ds) + { + Pdu pdu = new Pdu(); + + switch (pduType) + { + case PduType.EntityState: + EntityStatePdu entityStatePdu = new EntityStatePdu(); + entityStatePdu.Unmarshal(ds); + pdu = (Pdu)entityStatePdu; + break; + case PduType.Fire: + FirePdu firePdu = new FirePdu(); + firePdu.Unmarshal(ds); + pdu = (Pdu)firePdu; + break; + case PduType.Detonation: + DetonationPdu detonationPdu = new DetonationPdu(); + detonationPdu.Unmarshal(ds); + pdu = (Pdu)detonationPdu; + break; + case PduType.Collision: + CollisionPdu collisionPdu = new CollisionPdu(); + collisionPdu.Unmarshal(ds); + pdu = (Pdu)collisionPdu; + break; + case PduType.ServiceRequest: + ServiceRequestPdu serviceRequestPdu = new ServiceRequestPdu(); + serviceRequestPdu.Unmarshal(ds); + pdu = (Pdu)serviceRequestPdu; + break; + case PduType.ResupplyOffer: + ResupplyOfferPdu resupplyOfferPdu = new ResupplyOfferPdu(); + resupplyOfferPdu.Unmarshal(ds); + pdu = (Pdu)resupplyOfferPdu; + break; + case PduType.ResupplyReceived: + ResupplyReceivedPdu resupplyReceivedPdu = new ResupplyReceivedPdu(); + resupplyReceivedPdu.Unmarshal(ds); + pdu = (Pdu)resupplyReceivedPdu; + break; + case PduType.ResupplyCancel: + ResupplyCancelPdu resupplyCancelPdu = new ResupplyCancelPdu(); + resupplyCancelPdu.Unmarshal(ds); + pdu = (Pdu)resupplyCancelPdu; + break; + case PduType.RepairComplete: + RepairCompletePdu repairCompletePdu = new RepairCompletePdu(); + repairCompletePdu.Unmarshal(ds); + pdu = (Pdu)repairCompletePdu; + break; + case PduType.RepairResponse: + RepairResponsePdu repairResponsePdu = new RepairResponsePdu(); + repairResponsePdu.Unmarshal(ds); + pdu = (Pdu)repairResponsePdu; + break; + case PduType.CreateEntity: + CreateEntityPdu createEntityPdu = new CreateEntityPdu(); + createEntityPdu.Unmarshal(ds); + pdu = (Pdu)createEntityPdu; + break; + case PduType.RemoveEntity: + RemoveEntityPdu removeEntityPdu = new RemoveEntityPdu(); + removeEntityPdu.Unmarshal(ds); + pdu = (Pdu)removeEntityPdu; + break; + case PduType.StartResume: + StartResumePdu startResumePdu = new StartResumePdu(); + startResumePdu.Unmarshal(ds); + pdu = (Pdu)startResumePdu; + break; + case PduType.Acknowledge: + AcknowledgePdu acknowledgePdu = new AcknowledgePdu(); + acknowledgePdu.Unmarshal(ds); + pdu = (Pdu)acknowledgePdu; + break; + case PduType.ActionRequest: + ActionRequestPdu actionRequestPdu = new ActionRequestPdu(); + actionRequestPdu.Unmarshal(ds); + pdu = (Pdu)actionRequestPdu; + break; + case PduType.ActionResponse: + ActionResponsePdu actionResponsePdu = new ActionResponsePdu(); + actionResponsePdu.Unmarshal(ds); + pdu = (Pdu)actionResponsePdu; + break; + case PduType.DataQuery: + DataQueryPdu dataQueryPdu = new DataQueryPdu(); + dataQueryPdu.Unmarshal(ds); + pdu = (Pdu)dataQueryPdu; + break; + case PduType.SetData: + SetDataPdu setDataPdu = new SetDataPdu(); + setDataPdu.Unmarshal(ds); + pdu = (Pdu)setDataPdu; + break; + case PduType.EventReport: + EventReportPdu eventReportPdu = new EventReportPdu(); + eventReportPdu.Unmarshal(ds); + pdu = (Pdu)eventReportPdu; + break; + case PduType.Comment: + CommentPdu commentPdu = new CommentPdu(); + commentPdu.Unmarshal(ds); + pdu = (Pdu)commentPdu; + break; + case PduType.StopFreeze: + StopFreezePdu stopFreezePdu = new StopFreezePdu(); + stopFreezePdu.Unmarshal(ds); + pdu = (Pdu)stopFreezePdu; + break; + case PduType.Signal: + SignalPdu signalPdu = new SignalPdu(); + signalPdu.Unmarshal(ds); + pdu = (Pdu)signalPdu; + break; + case PduType.Transmitter: + TransmitterPdu transmitterPdu = new TransmitterPdu(); + transmitterPdu.Unmarshal(ds); + pdu = (Pdu)transmitterPdu; + break; + } + + return pdu; + } + + /// + /// Used to unmarshal data back into the correct PDU type. + /// + /// PDU type + /// byte array containing the raw packets + /// Endian type + /// Added by PES to work with Mobile. + /// The PDU instance + public static Pdu UnmarshalRawPdu(byte pduType, byte[] rawPdu, Endian endian) + { + DataInputStream ds = new DataInputStream(rawPdu, endian); + return UnmarshalRawPdu((PduType)pduType, ds); + } + + /// + /// Used to unmarshal data back into the correct PDU type. + /// + /// PDU type + /// byte array containing the raw packets + /// Endian type + /// Added by PES to work with Mobile. + /// The PDU instance. + public static Pdu UnmarshalRawPdu(PduType pduType, byte[] rawPdu, Endian endian) + { + DataInputStream ds = new DataInputStream(rawPdu, endian); + return UnmarshalRawPdu(pduType, ds); + } + + /// + /// Returns an XML version of the reflected PDU + /// + /// PDU to reflect into XML + /// StringBuilder + public StringBuilder XmlDecodePdu(object pdu) + { + StringBuilder sb = new StringBuilder(); + + using (System.IO.StringWriter stringWriter = new System.IO.StringWriter(CultureInfo.InvariantCulture)) + { + try + { + this.xmlSerializedData = new XmlSerializer(pdu.GetType()); + this.xmlSerializedData.Serialize(stringWriter, pdu); + + } + catch + { + throw; + } + finally + { + sb.Append(stringWriter.ToString()); + stringWriter.Close(); + } + } + + return sb; + } + // Protected Methods (5)  + + protected virtual object ProcessPdu(Stream stream) + { + int upToPduLength = (int)PDU_LENGTH_POSITION + sizeof(ushort); + int pduLength = 0; + byte pduType; + byte pdu_version; + object pdu = null; + + long startingPosition = stream.Position; + + byte[] buffer = new byte[upToPduLength]; + + // Read in part of the stream up to the pdu length + stream.Read(buffer, 0, upToPduLength); + + try + { + pduLength = PduProcessor.pduLength(buffer, this.endian); + + // Allocate space for the whole PDU + byte[] pduBufferStorage = new byte[pduLength]; + + // Reset back to beginning + stream.Position = startingPosition; + + // Read in the whole PDU + stream.Read(pduBufferStorage, 0, pduLength); + + pduType = pduBufferStorage[PDU_TYPE_POSITION]; + + pdu_version = pduBufferStorage[PDU_VERSION_POSITION]; + + pdu = this.SwitchOnType(pdu_version, pduType, pduBufferStorage); + + } + catch + { + // Wow something bad just happened, could be bad/misalgined PDU + pdu = null; + } + + return pdu; + } + + /// + /// Process a received PDU. Note that a datastream can contain multiple PDUs. Therefore a + /// List is used to hold one or more after decoding. + /// + /// byte array of PDU(s) + /// Collection of all PDU(s) decoded + protected virtual List ProcessPdu(byte[] buffer) + { + List pduCollection = new List(); + + if (buffer.Length < 1) + { + return pduCollection; + } + + int length = buffer.Length; + byte pduType; + byte pdu_version; + int countBytes = 0; + uint pduLength = 0; + + //used to interate over all PDU(s) within the byte array + while (countBytes < length) + { + try + { + pduLength = PduProcessor.pduLength(buffer, this.endian, (uint)(PDU_LENGTH_POSITION + countBytes)); + + // Must be at end of datastream + if (pduLength == 0) + { + break; + } + + pduType = buffer[PDU_TYPE_POSITION + countBytes]; + + pdu_version = buffer[PDU_VERSION_POSITION + countBytes]; + + byte[] pduBufferStorage = new byte[pduLength]; + + // Could potentially be a problem since pduLength is an unsigned int, + // changed due to windows mobile does not accept a long for 4th parameter + Array.Copy(buffer, countBytes, pduBufferStorage, 0, (int)pduLength); + + pduCollection.Add(SwitchOnType(pdu_version, pduType, pduBufferStorage)); + + countBytes += (int)pduLength; + + } + catch + { + // Wow something bad just happened, could be bad/misalgined PDU + break; + } + } + + return pduCollection; + } + + protected virtual void ProcessPdu(Stream stream, out byte[] rawData) + { + int upToPduLength = (int)PDU_LENGTH_POSITION + sizeof(ushort); + int pduLength = 0; + + long startingPosition = stream.Position; + + byte[] buffer = new byte[upToPduLength]; + + // Read in part of the stream up to the pdu length + stream.Read(buffer, 0, upToPduLength); + + try + { + pduLength = PduProcessor.pduLength(buffer, this.endian); + + // Allocate space for the whole PDU + rawData = new byte[pduLength]; + + // Reset back to beginning + stream.Position = startingPosition; + + // Read in the whole PDU + stream.Read(rawData, 0, pduLength); + } + catch + { + // Wow something bad just happened, could be bad/misalgined PDU + rawData = null; + } + } + + /// + /// Process a received PDU. Note that a datastream can contain multiple PDUs. Therefore a + /// List is used to hold one or more after decoding. + /// + /// Added by PES to support passing back just the byte array. + /// byte array of PDU(s) + /// Collection of all PDU(s) in raw byte format + protected virtual List ProcessRawPdu(byte[] buffer) + { + List pduCollection = new List(); + + if (buffer.Length < 1) + { + return pduCollection; + } + + int length = buffer.Length; + byte pduType; + byte pduVersion; + int countBytes = 0; + uint pduLength = 0; + + //used to interate over all PDU(s) within the byte array + while (countBytes < length) + { + try + { + pduLength = PduProcessor.pduLength(buffer, this.endian); + + // Must be at end of datastream + if (pduLength == 0) + { + break; + } + + pduType = buffer[PDU_TYPE_POSITION + countBytes]; + + pduVersion = buffer[PDU_VERSION_POSITION + countBytes]; + + byte[] pduBufferStorage = new byte[pduLength]; + + // Could potentially be a problem since pduLength is an unsigned int, + // changed due to windows mobile does not accept a long for 4th parameter + Array.Copy(buffer, countBytes, pduBufferStorage, 0, (int)pduLength); + + pduCollection.Add(pduBufferStorage); + + countBytes += (int)pduLength; + } + catch + { + // Wow something bad just happened, could be bad/misalgined PDU + break; + } + } + + return pduCollection; + } + + /// + /// Returns an instance of the PDU based upon the pdu type passed in. Note PDU will be represented as an Object for simplicity. + /// + /// Version of IEEE standard + /// Type of PDU + /// PDU byte array containing the data + /// PDU instance. + protected virtual object SwitchOnType(byte pduVersion, uint pduType, byte[] ds) + { + object pdu = null; + + DataInputStream dStream = new DataInputStream(ds, this.Endian); + + switch (pduVersion) + { + case 5: + // DIS 1995 + break; + case 6: + // DIS 1998 + // pdu = OpenDis.Utilities.PDUBank.GetPDU(pduType); + pdu = UnmarshalRawPdu((PduType)pduType, dStream); + break; + default: + break; + } + + //if (pdu != null) + //{ + // //Call the method of the underlining Type vice the Upper class method. + // ReturnUnmarshalledPDU(pdu, dStream); + //} + + return pdu; + } + + + /// + /// Extracts length of PDU without altering byte array/stream so that future access to this field is still valid + /// + /// Byte array holding PDU data. + /// Position of 'length' field. generally at pos 8, but if this byte array holds more than one PDU + /// The Endian type used for conversion. + /// length + private static UInt16 pduLength(byte[] buf, Endian endian, uint pos = PDU_LENGTH_POSITION) + { + byte[] temp = new byte[2]; + + if (endian == Endian.Big) //Reverse + { + temp[0] = buf[pos + 1]; + temp[1] = buf[pos]; + } + else //Leave as is + { + temp[0] = buf[pos]; + temp[1] = buf[pos + 1]; + } + + return System.BitConverter.ToUInt16(temp, 0); + } + + + /// + /// Unmarshal all data into the pdu object. This method calls the all the base unmarshals. + /// Deprecated: This method used Reflection, use method instead. + /// + /// object where the unmarshalled data will be stored + /// location of where the unmarshalled data is located + [Obsolete("This method used Reflection which is slow, new method 'UnmarshallRawPdu' should be used instead.")] + private static void ReturnUnmarshalledPdu(object pdu, DataInputStream dStream) + { + // Unmarshal is the method name found in each of the PDU classes + pdu.GetType().InvokeMember("Unmarshal", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { dStream }, CultureInfo.InvariantCulture); + } + + + + #endregion Methods  + } } \ No newline at end of file diff --git a/Libs/CsharpDis6/OpenDis/key.snk b/Libs/CsharpDis6/key.snk similarity index 100% rename from Libs/CsharpDis6/OpenDis/key.snk rename to Libs/CsharpDis6/key.snk diff --git a/OpenDis.sln b/OpenDis.sln index 22c11f0..b1c8259 100644 --- a/OpenDis.sln +++ b/OpenDis.sln @@ -3,10 +3,79 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 16 VisualStudioVersion = 16.0.31727.386 MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OpenDis", "Libs\CSharpDis6\OpenDis.csproj", "{628EE35F-450A-49B2-BA46-04FABB66D0BF}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Libs", "Libs", "{4435AFF6-7D8B-496B-856C-A17536362474}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenDis.Demo", "Samples\OpenDis.Demo\OpenDis.Demo.csproj", "{0FC1409E-A9F2-4409-85A3-D989A36C3CB8}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Samples", "Samples", "{0B45384E-D921-4F45-9E78-4D353B86C59F}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenDis.EspduSender", "Samples\EspduSender\OpenDis.EspduSender.csproj", "{AEF2FB06-9CCF-491A-9727-FE6E4C4CF664}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenDis.EspduReceiver", "Samples\EspduReceiver\OpenDis.EspduReceiver.csproj", "{70F94942-1466-4E6C-A2A3-89DB19C20159}" +EndProject Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Analysis|Any CPU = Analysis|Any CPU + Analysis|x86 = Analysis|x86 + Debug|Any CPU = Debug|Any CPU + Debug|x86 = Debug|x86 + Release|Any CPU = Release|Any CPU + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {628EE35F-450A-49B2-BA46-04FABB66D0BF}.Analysis|Any CPU.ActiveCfg = Analysis|x86 + {628EE35F-450A-49B2-BA46-04FABB66D0BF}.Analysis|x86.ActiveCfg = Analysis|x86 + {628EE35F-450A-49B2-BA46-04FABB66D0BF}.Analysis|x86.Build.0 = Analysis|x86 + {628EE35F-450A-49B2-BA46-04FABB66D0BF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {628EE35F-450A-49B2-BA46-04FABB66D0BF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {628EE35F-450A-49B2-BA46-04FABB66D0BF}.Debug|x86.ActiveCfg = Debug|Any CPU + {628EE35F-450A-49B2-BA46-04FABB66D0BF}.Debug|x86.Build.0 = Debug|Any CPU + {628EE35F-450A-49B2-BA46-04FABB66D0BF}.Release|Any CPU.ActiveCfg = Release|x86 + {628EE35F-450A-49B2-BA46-04FABB66D0BF}.Release|x86.ActiveCfg = Release|x86 + {628EE35F-450A-49B2-BA46-04FABB66D0BF}.Release|x86.Build.0 = Release|x86 + {0FC1409E-A9F2-4409-85A3-D989A36C3CB8}.Analysis|Any CPU.ActiveCfg = Debug|x86 + {0FC1409E-A9F2-4409-85A3-D989A36C3CB8}.Analysis|Any CPU.Build.0 = Debug|x86 + {0FC1409E-A9F2-4409-85A3-D989A36C3CB8}.Analysis|x86.ActiveCfg = Debug|x86 + {0FC1409E-A9F2-4409-85A3-D989A36C3CB8}.Analysis|x86.Build.0 = Debug|x86 + {0FC1409E-A9F2-4409-85A3-D989A36C3CB8}.Debug|Any CPU.ActiveCfg = Debug|x86 + {0FC1409E-A9F2-4409-85A3-D989A36C3CB8}.Debug|x86.ActiveCfg = Debug|x86 + {0FC1409E-A9F2-4409-85A3-D989A36C3CB8}.Debug|x86.Build.0 = Debug|x86 + {0FC1409E-A9F2-4409-85A3-D989A36C3CB8}.Release|Any CPU.ActiveCfg = Release|x86 + {0FC1409E-A9F2-4409-85A3-D989A36C3CB8}.Release|x86.ActiveCfg = Release|x86 + {0FC1409E-A9F2-4409-85A3-D989A36C3CB8}.Release|x86.Build.0 = Release|x86 + {AEF2FB06-9CCF-491A-9727-FE6E4C4CF664}.Analysis|Any CPU.ActiveCfg = Debug|x86 + {AEF2FB06-9CCF-491A-9727-FE6E4C4CF664}.Analysis|Any CPU.Build.0 = Debug|x86 + {AEF2FB06-9CCF-491A-9727-FE6E4C4CF664}.Analysis|x86.ActiveCfg = Debug|x86 + {AEF2FB06-9CCF-491A-9727-FE6E4C4CF664}.Analysis|x86.Build.0 = Debug|x86 + {AEF2FB06-9CCF-491A-9727-FE6E4C4CF664}.Debug|Any CPU.ActiveCfg = Debug|x86 + {AEF2FB06-9CCF-491A-9727-FE6E4C4CF664}.Debug|x86.ActiveCfg = Debug|x86 + {AEF2FB06-9CCF-491A-9727-FE6E4C4CF664}.Debug|x86.Build.0 = Debug|x86 + {AEF2FB06-9CCF-491A-9727-FE6E4C4CF664}.Release|Any CPU.ActiveCfg = Release|x86 + {AEF2FB06-9CCF-491A-9727-FE6E4C4CF664}.Release|x86.ActiveCfg = Release|x86 + {AEF2FB06-9CCF-491A-9727-FE6E4C4CF664}.Release|x86.Build.0 = Release|x86 + {70F94942-1466-4E6C-A2A3-89DB19C20159}.Analysis|Any CPU.ActiveCfg = Debug|x86 + {70F94942-1466-4E6C-A2A3-89DB19C20159}.Analysis|Any CPU.Build.0 = Debug|x86 + {70F94942-1466-4E6C-A2A3-89DB19C20159}.Analysis|x86.ActiveCfg = Debug|x86 + {70F94942-1466-4E6C-A2A3-89DB19C20159}.Analysis|x86.Build.0 = Debug|x86 + {70F94942-1466-4E6C-A2A3-89DB19C20159}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {70F94942-1466-4E6C-A2A3-89DB19C20159}.Debug|Any CPU.Build.0 = Debug|Any CPU + {70F94942-1466-4E6C-A2A3-89DB19C20159}.Debug|x86.ActiveCfg = Debug|x86 + {70F94942-1466-4E6C-A2A3-89DB19C20159}.Debug|x86.Build.0 = Debug|x86 + {70F94942-1466-4E6C-A2A3-89DB19C20159}.Release|Any CPU.ActiveCfg = Release|x86 + {70F94942-1466-4E6C-A2A3-89DB19C20159}.Release|x86.ActiveCfg = Release|x86 + {70F94942-1466-4E6C-A2A3-89DB19C20159}.Release|x86.Build.0 = Release|x86 + EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {628EE35F-450A-49B2-BA46-04FABB66D0BF} = {4435AFF6-7D8B-496B-856C-A17536362474} + {0FC1409E-A9F2-4409-85A3-D989A36C3CB8} = {0B45384E-D921-4F45-9E78-4D353B86C59F} + {AEF2FB06-9CCF-491A-9727-FE6E4C4CF664} = {0B45384E-D921-4F45-9E78-4D353B86C59F} + {70F94942-1466-4E6C-A2A3-89DB19C20159} = {0B45384E-D921-4F45-9E78-4D353B86C59F} + EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {4E0885B8-C82C-47CC-B3D4-9E09D28C4C26} EndGlobalSection diff --git a/Samples/EspduReceiver/OpenDis.EspduReceiver.csproj b/Samples/EspduReceiver/OpenDis.EspduReceiver.csproj index 63684e3..ec77ef6 100644 --- a/Samples/EspduReceiver/OpenDis.EspduReceiver.csproj +++ b/Samples/EspduReceiver/OpenDis.EspduReceiver.csproj @@ -1,63 +1,13 @@ - - + + - Debug - x86 - 8.0.30703 - 2.0 - {70F94942-1466-4E6C-A2A3-89DB19C20159} - Exe - Properties + net5.0 EspduReceiver - EspduReceiver - v4.0 - Client - 512 + 6.0.0 - - x86 - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - x86 - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - - - - + - - {628EE35F-450A-49B2-BA46-04FABB66D0BF} - OpenDis - + - - + \ No newline at end of file diff --git a/Samples/EspduReceiver/Properties/AssemblyInfo.cs b/Samples/EspduReceiver/Properties/AssemblyInfo.cs deleted file mode 100644 index d9985b5..0000000 --- a/Samples/EspduReceiver/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("EspduReceiver")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("EspduReceiver")] -[assembly: AssemblyCopyright("Copyright © 2017")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("b895fb76-1cfa-4ca3-a2ca-6eb63c18250f")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Samples/EspduSender/OpenDis.EspduSender.csproj b/Samples/EspduSender/OpenDis.EspduSender.csproj index e521ff6..b999cef 100644 --- a/Samples/EspduSender/OpenDis.EspduSender.csproj +++ b/Samples/EspduSender/OpenDis.EspduSender.csproj @@ -1,63 +1,13 @@ - - + + - Debug - x86 - 8.0.30703 - 2.0 - {AEF2FB06-9CCF-491A-9727-FE6E4C4CF664} - Exe - Properties + net5.0 EspduSender - EspduSender - v4.0 - Client - 512 + 6.0.0 - - x86 - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - x86 - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - - - - + - - {628EE35F-450A-49B2-BA46-04FABB66D0BF} - OpenDis - + - - + \ No newline at end of file diff --git a/Samples/OpenDis.Demo/OpenDis.Demo.csproj b/Samples/OpenDis.Demo/OpenDis.Demo.csproj index e69fe66..2dfa671 100644 --- a/Samples/OpenDis.Demo/OpenDis.Demo.csproj +++ b/Samples/OpenDis.Demo/OpenDis.Demo.csproj @@ -93,12 +93,17 @@ - + {628EE35F-450A-49B2-BA46-04FABB66D0BF} OpenDis + + + all + + \ No newline at end of file From 20d6d3aa8ab16c04bd4bec1fcc298c6569fe3950 Mon Sep 17 00:00:00 2001 From: Nicolas Baudrey Date: Sat, 9 Oct 2021 18:53:07 +0200 Subject: [PATCH 08/25] [BLD] Fix wpf build with .NET 5 --- Libs/CsharpDis6/OpenDis.csproj | 9 ++- .../OpenDis.EspduReceiver.csproj | 5 +- .../EspduSender/OpenDis.EspduSender.csproj | 4 +- Samples/OpenDis.Demo/OpenDis.Demo.csproj | 5 +- Samples/OpenDis.Demo/OpenDis.Demo.csproj.user | 6 ++ .../OpenDis.Demo/Properties/AssemblyInfo.cs | 55 ------------------- 6 files changed, 20 insertions(+), 64 deletions(-) create mode 100644 Samples/OpenDis.Demo/OpenDis.Demo.csproj.user delete mode 100644 Samples/OpenDis.Demo/Properties/AssemblyInfo.cs diff --git a/Libs/CsharpDis6/OpenDis.csproj b/Libs/CsharpDis6/OpenDis.csproj index dd7ce0c..df93166 100644 --- a/Libs/CsharpDis6/OpenDis.csproj +++ b/Libs/CsharpDis6/OpenDis.csproj @@ -2,8 +2,15 @@ net5.0 - OpenDis_std + OpenDis 6.0.0 + + + + + + + diff --git a/Samples/EspduReceiver/OpenDis.EspduReceiver.csproj b/Samples/EspduReceiver/OpenDis.EspduReceiver.csproj index 30d9bff..d41a444 100644 --- a/Samples/EspduReceiver/OpenDis.EspduReceiver.csproj +++ b/Samples/EspduReceiver/OpenDis.EspduReceiver.csproj @@ -1,13 +1,10 @@  - net5.0 - EspduReceiver Exe + net5.0 false 6.0.0 - - EspduReceiver.EspduReceiver diff --git a/Samples/EspduSender/OpenDis.EspduSender.csproj b/Samples/EspduSender/OpenDis.EspduSender.csproj index 4611ad0..d41a444 100644 --- a/Samples/EspduSender/OpenDis.EspduSender.csproj +++ b/Samples/EspduSender/OpenDis.EspduSender.csproj @@ -1,12 +1,10 @@  - net5.0 - EspduSender Exe + net5.0 false 6.0.0 - EspduSender.EspduSender diff --git a/Samples/OpenDis.Demo/OpenDis.Demo.csproj b/Samples/OpenDis.Demo/OpenDis.Demo.csproj index aab1f04..e94fb3b 100644 --- a/Samples/OpenDis.Demo/OpenDis.Demo.csproj +++ b/Samples/OpenDis.Demo/OpenDis.Demo.csproj @@ -1,7 +1,7 @@  - net5.0-windows WinExe + net5.0-windows false true @@ -12,4 +12,7 @@ + + + \ No newline at end of file diff --git a/Samples/OpenDis.Demo/OpenDis.Demo.csproj.user b/Samples/OpenDis.Demo/OpenDis.Demo.csproj.user new file mode 100644 index 0000000..966b4ff --- /dev/null +++ b/Samples/OpenDis.Demo/OpenDis.Demo.csproj.user @@ -0,0 +1,6 @@ + + + + true + + \ No newline at end of file diff --git a/Samples/OpenDis.Demo/Properties/AssemblyInfo.cs b/Samples/OpenDis.Demo/Properties/AssemblyInfo.cs deleted file mode 100644 index 6b2a115..0000000 --- a/Samples/OpenDis.Demo/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,55 +0,0 @@ -using System.Reflection; -using System.Resources; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Windows; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("OpenDis.Demo")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Microsoft")] -[assembly: AssemblyProduct("OpenDis.Demo")] -[assembly: AssemblyCopyright("Copyright © Microsoft 2011")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -//In order to begin building localizable applications, set -//CultureYouAreCodingWith in your .csproj file -//inside a . For example, if you are using US english -//in your source files, set the to en-US. Then uncomment -//the NeutralResourceLanguage attribute below. Update the "en-US" in -//the line below to match the UICulture setting in the project file. - -//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)] - - -[assembly: ThemeInfo( - ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located - //(used if a resource is not found in the page, - // or application resource dictionaries) - ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located - //(used if a resource is not found in the page, - // app, or any theme specific resource dictionaries) -)] - - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] From c2930d181c988ef856f6d79fbab0b32a897b3e41 Mon Sep 17 00:00:00 2001 From: Nicolas Baudrey Date: Sun, 10 Oct 2021 19:40:47 +0200 Subject: [PATCH 09/25] [BLD] Set a simple process with nuke --- .nuke/build.schema.json | 109 ++++++++++++++++++++++++++++++++ .nuke/parameters.json | 4 ++ .nuke/temp/build-attempt.log | 3 + OpenDis.sln | 4 ++ build.cmd | 7 ++ build.ps1 | 69 ++++++++++++++++++++ build.sh | 62 ++++++++++++++++++ build/.editorconfig | 11 ++++ build/Build.cs | 70 ++++++++++++++++++++ build/Configuration.cs | 16 +++++ build/Directory.Build.props | 8 +++ build/Directory.Build.targets | 8 +++ build/_build.csproj | 18 ++++++ build/_build.csproj.DotSettings | 26 ++++++++ global.json | 5 ++ 15 files changed, 420 insertions(+) create mode 100644 .nuke/build.schema.json create mode 100644 .nuke/parameters.json create mode 100644 .nuke/temp/build-attempt.log create mode 100755 build.cmd create mode 100644 build.ps1 create mode 100755 build.sh create mode 100644 build/.editorconfig create mode 100644 build/Build.cs create mode 100644 build/Configuration.cs create mode 100644 build/Directory.Build.props create mode 100644 build/Directory.Build.targets create mode 100644 build/_build.csproj create mode 100644 build/_build.csproj.DotSettings create mode 100644 global.json diff --git a/.nuke/build.schema.json b/.nuke/build.schema.json new file mode 100644 index 0000000..0a1f83f --- /dev/null +++ b/.nuke/build.schema.json @@ -0,0 +1,109 @@ +{ + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Build Schema", + "$ref": "#/definitions/build", + "definitions": { + "build": { + "type": "object", + "properties": { + "Configuration": { + "type": "string", + "description": "Configuration to build - Default is 'Debug' (local) or 'Release' (server)", + "enum": [ + "Debug", + "Release" + ] + }, + "Continue": { + "type": "boolean", + "description": "Indicates to continue a previously failed build attempt" + }, + "Help": { + "type": "boolean", + "description": "Shows the help text for this build assembly" + }, + "Host": { + "type": "string", + "description": "Host for execution. Default is 'automatic'", + "enum": [ + "AppVeyor", + "AzurePipelines", + "Bamboo", + "Bitrise", + "GitHubActions", + "GitLab", + "Jenkins", + "Rider", + "SpaceAutomation", + "TeamCity", + "Terminal", + "TravisCI", + "VisualStudio", + "VSCode" + ] + }, + "NoLogo": { + "type": "boolean", + "description": "Disables displaying the NUKE logo" + }, + "Partition": { + "type": "string", + "description": "Partition to use on CI" + }, + "Plan": { + "type": "boolean", + "description": "Shows the execution plan (HTML)" + }, + "Profile": { + "type": "array", + "description": "Defines the profiles to load", + "items": { + "type": "string" + } + }, + "Root": { + "type": "string", + "description": "Root directory during build execution" + }, + "Skip": { + "type": "array", + "description": "List of targets to be skipped. Empty list skips all dependencies", + "items": { + "type": "string", + "enum": [ + "Clean", + "Compile", + "Restore" + ] + } + }, + "Solution": { + "type": "string", + "description": "Path to a solution file that is automatically loaded" + }, + "Target": { + "type": "array", + "description": "List of targets to be invoked. Default is '{default_target}'", + "items": { + "type": "string", + "enum": [ + "Clean", + "Compile", + "Restore" + ] + } + }, + "Verbosity": { + "type": "string", + "description": "Logging verbosity during build execution. Default is 'Normal'", + "enum": [ + "Minimal", + "Normal", + "Quiet", + "Verbose" + ] + } + } + } + } +} \ No newline at end of file diff --git a/.nuke/parameters.json b/.nuke/parameters.json new file mode 100644 index 0000000..add4f5a --- /dev/null +++ b/.nuke/parameters.json @@ -0,0 +1,4 @@ +{ + "$schema": "./build.schema.json", + "Solution": "OpenDis.sln" +} \ No newline at end of file diff --git a/.nuke/temp/build-attempt.log b/.nuke/temp/build-attempt.log new file mode 100644 index 0000000..5960200 --- /dev/null +++ b/.nuke/temp/build-attempt.log @@ -0,0 +1,3 @@ +de70cc5a0b3d2927dc355e752102af8c +Restore +Compile diff --git a/OpenDis.sln b/OpenDis.sln index 5e56001..7889b91 100644 --- a/OpenDis.sln +++ b/OpenDis.sln @@ -15,12 +15,16 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenDis.EspduSender", "Samp EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenDis.EspduReceiver", "Samples\EspduReceiver\OpenDis.EspduReceiver.csproj", "{70F94942-1466-4E6C-A2A3-89DB19C20159}" EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "_build", "build\_build.csproj", "{E6CD71C8-8157-43AC-94EA-7FE0D664B1A4}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution + {E6CD71C8-8157-43AC-94EA-7FE0D664B1A4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E6CD71C8-8157-43AC-94EA-7FE0D664B1A4}.Release|Any CPU.ActiveCfg = Release|Any CPU {628EE35F-450A-49B2-BA46-04FABB66D0BF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {628EE35F-450A-49B2-BA46-04FABB66D0BF}.Debug|Any CPU.Build.0 = Debug|Any CPU {628EE35F-450A-49B2-BA46-04FABB66D0BF}.Release|Any CPU.ActiveCfg = Release|Any CPU diff --git a/build.cmd b/build.cmd new file mode 100755 index 0000000..b08cc59 --- /dev/null +++ b/build.cmd @@ -0,0 +1,7 @@ +:; set -eo pipefail +:; SCRIPT_DIR=$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd) +:; ${SCRIPT_DIR}/build.sh "$@" +:; exit $? + +@ECHO OFF +powershell -ExecutionPolicy ByPass -NoProfile -File "%~dp0build.ps1" %* diff --git a/build.ps1 b/build.ps1 new file mode 100644 index 0000000..1c774e5 --- /dev/null +++ b/build.ps1 @@ -0,0 +1,69 @@ +[CmdletBinding()] +Param( + [Parameter(Position=0,Mandatory=$false,ValueFromRemainingArguments=$true)] + [string[]]$BuildArguments +) + +Write-Output "PowerShell $($PSVersionTable.PSEdition) version $($PSVersionTable.PSVersion)" + +Set-StrictMode -Version 2.0; $ErrorActionPreference = "Stop"; $ConfirmPreference = "None"; trap { Write-Error $_ -ErrorAction Continue; exit 1 } +$PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent + +########################################################################### +# CONFIGURATION +########################################################################### + +$BuildProjectFile = "$PSScriptRoot\build\_build.csproj" +$TempDirectory = "$PSScriptRoot\\.nuke\temp" + +$DotNetGlobalFile = "$PSScriptRoot\\global.json" +$DotNetInstallUrl = "https://dot.net/v1/dotnet-install.ps1" +$DotNetChannel = "Current" + +$env:DOTNET_SKIP_FIRST_TIME_EXPERIENCE = 1 +$env:DOTNET_CLI_TELEMETRY_OPTOUT = 1 +$env:DOTNET_MULTILEVEL_LOOKUP = 0 + +########################################################################### +# EXECUTION +########################################################################### + +function ExecSafe([scriptblock] $cmd) { + & $cmd + if ($LASTEXITCODE) { exit $LASTEXITCODE } +} + +# If dotnet CLI is installed globally and it matches requested version, use for execution +if ($null -ne (Get-Command "dotnet" -ErrorAction SilentlyContinue) -and ` + $(dotnet --version) -and $LASTEXITCODE -eq 0) { + $env:DOTNET_EXE = (Get-Command "dotnet").Path +} +else { + # Download install script + $DotNetInstallFile = "$TempDirectory\dotnet-install.ps1" + New-Item -ItemType Directory -Path $TempDirectory -Force | Out-Null + [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 + (New-Object System.Net.WebClient).DownloadFile($DotNetInstallUrl, $DotNetInstallFile) + + # If global.json exists, load expected version + if (Test-Path $DotNetGlobalFile) { + $DotNetGlobal = $(Get-Content $DotNetGlobalFile | Out-String | ConvertFrom-Json) + if ($DotNetGlobal.PSObject.Properties["sdk"] -and $DotNetGlobal.sdk.PSObject.Properties["version"]) { + $DotNetVersion = $DotNetGlobal.sdk.version + } + } + + # Install by channel or version + $DotNetDirectory = "$TempDirectory\dotnet-win" + if (!(Test-Path variable:DotNetVersion)) { + ExecSafe { & powershell $DotNetInstallFile -InstallDir $DotNetDirectory -Channel $DotNetChannel -NoPath } + } else { + ExecSafe { & powershell $DotNetInstallFile -InstallDir $DotNetDirectory -Version $DotNetVersion -NoPath } + } + $env:DOTNET_EXE = "$DotNetDirectory\dotnet.exe" +} + +Write-Output "Microsoft (R) .NET Core SDK version $(& $env:DOTNET_EXE --version)" + +ExecSafe { & $env:DOTNET_EXE build $BuildProjectFile /nodeReuse:false /p:UseSharedCompilation=false -nologo -clp:NoSummary --verbosity quiet } +ExecSafe { & $env:DOTNET_EXE run --project $BuildProjectFile --no-build -- $BuildArguments } diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..e8961f9 --- /dev/null +++ b/build.sh @@ -0,0 +1,62 @@ +#!/usr/bin/env bash + +bash --version 2>&1 | head -n 1 + +set -eo pipefail +SCRIPT_DIR=$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd) + +########################################################################### +# CONFIGURATION +########################################################################### + +BUILD_PROJECT_FILE="$SCRIPT_DIR/build/_build.csproj" +TEMP_DIRECTORY="$SCRIPT_DIR//.nuke/temp" + +DOTNET_GLOBAL_FILE="$SCRIPT_DIR//global.json" +DOTNET_INSTALL_URL="https://dot.net/v1/dotnet-install.sh" +DOTNET_CHANNEL="Current" + +export DOTNET_CLI_TELEMETRY_OPTOUT=1 +export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 +export DOTNET_MULTILEVEL_LOOKUP=0 + +########################################################################### +# EXECUTION +########################################################################### + +function FirstJsonValue { + perl -nle 'print $1 if m{"'"$1"'": "([^"]+)",?}' <<< "${@:2}" +} + +# If dotnet CLI is installed globally and it matches requested version, use for execution +if [ -x "$(command -v dotnet)" ] && dotnet --version &>/dev/null; then + export DOTNET_EXE="$(command -v dotnet)" +else + # Download install script + DOTNET_INSTALL_FILE="$TEMP_DIRECTORY/dotnet-install.sh" + mkdir -p "$TEMP_DIRECTORY" + curl -Lsfo "$DOTNET_INSTALL_FILE" "$DOTNET_INSTALL_URL" + chmod +x "$DOTNET_INSTALL_FILE" + + # If global.json exists, load expected version + if [[ -f "$DOTNET_GLOBAL_FILE" ]]; then + DOTNET_VERSION=$(FirstJsonValue "version" "$(cat "$DOTNET_GLOBAL_FILE")") + if [[ "$DOTNET_VERSION" == "" ]]; then + unset DOTNET_VERSION + fi + fi + + # Install by channel or version + DOTNET_DIRECTORY="$TEMP_DIRECTORY/dotnet-unix" + if [[ -z ${DOTNET_VERSION+x} ]]; then + "$DOTNET_INSTALL_FILE" --install-dir "$DOTNET_DIRECTORY" --channel "$DOTNET_CHANNEL" --no-path + else + "$DOTNET_INSTALL_FILE" --install-dir "$DOTNET_DIRECTORY" --version "$DOTNET_VERSION" --no-path + fi + export DOTNET_EXE="$DOTNET_DIRECTORY/dotnet" +fi + +echo "Microsoft (R) .NET Core SDK version $("$DOTNET_EXE" --version)" + +"$DOTNET_EXE" build "$BUILD_PROJECT_FILE" /nodeReuse:false /p:UseSharedCompilation=false -nologo -clp:NoSummary --verbosity quiet +"$DOTNET_EXE" run --project "$BUILD_PROJECT_FILE" --no-build -- "$@" diff --git a/build/.editorconfig b/build/.editorconfig new file mode 100644 index 0000000..31e43dc --- /dev/null +++ b/build/.editorconfig @@ -0,0 +1,11 @@ +[*.cs] +dotnet_style_qualification_for_field = false:warning +dotnet_style_qualification_for_property = false:warning +dotnet_style_qualification_for_method = false:warning +dotnet_style_qualification_for_event = false:warning +dotnet_style_require_accessibility_modifiers = never:warning + +csharp_style_expression_bodied_methods = true:silent +csharp_style_expression_bodied_properties = true:warning +csharp_style_expression_bodied_indexers = true:warning +csharp_style_expression_bodied_accessors = true:warning diff --git a/build/Build.cs b/build/Build.cs new file mode 100644 index 0000000..c6155f3 --- /dev/null +++ b/build/Build.cs @@ -0,0 +1,70 @@ +using System; +using System.Linq; +using Nuke.Common; +using Nuke.Common.CI; +using Nuke.Common.Execution; +using Nuke.Common.Git; +using Nuke.Common.IO; +using Nuke.Common.ProjectModel; +using Nuke.Common.Tooling; +using Nuke.Common.Tools.DotNet; +using Nuke.Common.Tools.GitVersion; +using Nuke.Common.Utilities.Collections; +using static Nuke.Common.EnvironmentInfo; +using static Nuke.Common.IO.FileSystemTasks; +using static Nuke.Common.IO.PathConstruction; +using static Nuke.Common.Tools.DotNet.DotNetTasks; + +[CheckBuildProjectConfigurations] +[ShutdownDotNetAfterServerBuild] +class Build : NukeBuild +{ + /// Support plugins are available for: + /// - JetBrains ReSharper https://nuke.build/resharper + /// - JetBrains Rider https://nuke.build/rider + /// - Microsoft VisualStudio https://nuke.build/visualstudio + /// - Microsoft VSCode https://nuke.build/vscode + + public static int Main () => Execute(x => x.Compile); + + [Parameter("Configuration to build - Default is 'Debug' (local) or 'Release' (server)")] + readonly Configuration Configuration = IsLocalBuild ? Configuration.Debug : Configuration.Release; + + [Solution] readonly Solution Solution; + [GitRepository] readonly GitRepository GitRepository; + [GitVersion] readonly GitVersion GitVersion; + + AbsolutePath SourceDirectory => RootDirectory / "source"; + AbsolutePath TestsDirectory => RootDirectory / "tests"; + AbsolutePath ArtifactsDirectory => RootDirectory / "artifacts"; + + Target Clean => _ => _ + .Before(Restore) + .Executes(() => + { + SourceDirectory.GlobDirectories("**/bin", "**/obj").ForEach(DeleteDirectory); + TestsDirectory.GlobDirectories("**/bin", "**/obj").ForEach(DeleteDirectory); + EnsureCleanDirectory(ArtifactsDirectory); + }); + + Target Restore => _ => _ + .Executes(() => + { + DotNetRestore(s => s + .SetProjectFile(Solution)); + }); + + Target Compile => _ => _ + .DependsOn(Restore) + .Executes(() => + { + DotNetBuild(s => s + .SetProjectFile(Solution) + .SetConfiguration(Configuration) + .SetAssemblyVersion(GitVersion.AssemblySemVer) + .SetFileVersion(GitVersion.AssemblySemFileVer) + .SetInformationalVersion(GitVersion.InformationalVersion) + .EnableNoRestore()); + }); + +} diff --git a/build/Configuration.cs b/build/Configuration.cs new file mode 100644 index 0000000..9c08b1a --- /dev/null +++ b/build/Configuration.cs @@ -0,0 +1,16 @@ +using System; +using System.ComponentModel; +using System.Linq; +using Nuke.Common.Tooling; + +[TypeConverter(typeof(TypeConverter))] +public class Configuration : Enumeration +{ + public static Configuration Debug = new Configuration { Value = nameof(Debug) }; + public static Configuration Release = new Configuration { Value = nameof(Release) }; + + public static implicit operator string(Configuration configuration) + { + return configuration.Value; + } +} diff --git a/build/Directory.Build.props b/build/Directory.Build.props new file mode 100644 index 0000000..e147d63 --- /dev/null +++ b/build/Directory.Build.props @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/build/Directory.Build.targets b/build/Directory.Build.targets new file mode 100644 index 0000000..2532609 --- /dev/null +++ b/build/Directory.Build.targets @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/build/_build.csproj b/build/_build.csproj new file mode 100644 index 0000000..f5f3fee --- /dev/null +++ b/build/_build.csproj @@ -0,0 +1,18 @@ + + + + Exe + net5.0 + + CS0649;CS0169 + .. + .. + 1 + + + + + + + + diff --git a/build/_build.csproj.DotSettings b/build/_build.csproj.DotSettings new file mode 100644 index 0000000..c8947fc --- /dev/null +++ b/build/_build.csproj.DotSettings @@ -0,0 +1,26 @@ + + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + DO_NOT_SHOW + Implicit + Implicit + ExpressionBody + 0 + NEXT_LINE + True + False + 120 + IF_OWNER_IS_SINGLE_LINE + WRAP_IF_LONG + False + <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> + <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> + True + True + True + True + True + True + True + True diff --git a/global.json b/global.json new file mode 100644 index 0000000..6e34824 --- /dev/null +++ b/global.json @@ -0,0 +1,5 @@ +{ + "sdk": { + "version": "5.0.401" + } +} \ No newline at end of file From f15c8fda0bb86f4c953c7fa1a811d7fa390e2d32 Mon Sep 17 00:00:00 2001 From: Nicolas Baudrey Date: Sun, 10 Oct 2021 19:50:42 +0200 Subject: [PATCH 10/25] Update README.md --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index d32755a..7ea956f 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,13 @@ C-Sharp implementation of the Distributed Interactive Simulation (DIS) standard. Many of the classes were initially generated with [XMLPG](http://github.com/open-dis/xmlpg). + +# Build Process + +- Install .NET SDK 5.0 from : https://dotnet.microsoft.com/download/dotnet/5.0 +- Depending on your OS, call build.cmd or build.sh + +The available commands are : +- Restore : Restore all dependencies from Nuget +- Clean : Clean all projects +- Compile : Compile all projects From 6b23ef42f6f76e1c7b28bce768259abb89298036 Mon Sep 17 00:00:00 2001 From: Nicolas Baudrey Date: Sun, 10 Oct 2021 21:04:51 +0200 Subject: [PATCH 11/25] [BLD] Add pack process for nuget --- .nuke/build.schema.json | 2 ++ build/Build.cs | 14 ++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/.nuke/build.schema.json b/.nuke/build.schema.json index 0a1f83f..38767b2 100644 --- a/.nuke/build.schema.json +++ b/.nuke/build.schema.json @@ -73,6 +73,7 @@ "enum": [ "Clean", "Compile", + "Pack", "Restore" ] } @@ -89,6 +90,7 @@ "enum": [ "Clean", "Compile", + "Pack", "Restore" ] } diff --git a/build/Build.cs b/build/Build.cs index c6155f3..45b531c 100644 --- a/build/Build.cs +++ b/build/Build.cs @@ -67,4 +67,18 @@ class Build : NukeBuild .EnableNoRestore()); }); + Target Pack => _ => _ + .DependsOn(Compile) + .Executes(() => + { + DotNetPack(s => s + .SetProject(Solution.GetProject("OpenDis")) + .SetConfiguration(Configuration) + .EnableNoBuild() + .EnableNoRestore() + .SetNoDependencies(true) + .SetOutputDirectory(ArtifactsDirectory / "nuget")); + + }); + } From f448f5685e4543dfd1b0b0c724ca76fbd84e44f6 Mon Sep 17 00:00:00 2001 From: Nicolas Baudrey Date: Sun, 10 Oct 2021 21:09:35 +0200 Subject: [PATCH 12/25] [QLTY] Remove temp directory --- .nuke/temp/build-attempt.log | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 .nuke/temp/build-attempt.log diff --git a/.nuke/temp/build-attempt.log b/.nuke/temp/build-attempt.log deleted file mode 100644 index 5960200..0000000 --- a/.nuke/temp/build-attempt.log +++ /dev/null @@ -1,3 +0,0 @@ -de70cc5a0b3d2927dc355e752102af8c -Restore -Compile From c73bd63c714efdcb1268ac27a060f7e902674ecb Mon Sep 17 00:00:00 2001 From: Nicolas Baudrey Date: Sun, 10 Oct 2021 21:12:27 +0200 Subject: [PATCH 13/25] [QLTY] Change readme with pack --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7ea956f..7f14175 100644 --- a/README.md +++ b/README.md @@ -7,9 +7,10 @@ Many of the classes were initially generated with [XMLPG](http://github.com/open # Build Process - Install .NET SDK 5.0 from : https://dotnet.microsoft.com/download/dotnet/5.0 -- Depending on your OS, call build.cmd or build.sh +- Depending on your OS, call build.ps1 or build.sh The available commands are : - Restore : Restore all dependencies from Nuget - Clean : Clean all projects - Compile : Compile all projects +- Pack : Create a nuget package in sub-directory (artifacts) From 37a3e350f0367924c3e5b81ae750b7022b8f4ad2 Mon Sep 17 00:00:00 2001 From: Nicolas Baudrey Date: Sun, 10 Oct 2021 21:13:52 +0200 Subject: [PATCH 14/25] [QLTY] Add more informations --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 7f14175..325515f 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,8 @@ Many of the classes were initially generated with [XMLPG](http://github.com/open - Install .NET SDK 5.0 from : https://dotnet.microsoft.com/download/dotnet/5.0 - Depending on your OS, call build.ps1 or build.sh +-- To compile in release : build --configuration release +-- To compile in debug : build The available commands are : - Restore : Restore all dependencies from Nuget From c6476b08aab6964f198499672d3120225170eafa Mon Sep 17 00:00:00 2001 From: Nicolas Baudrey Date: Sun, 10 Oct 2021 21:16:23 +0200 Subject: [PATCH 15/25] [QLTY] Add DIS7 lib (to integrate) --- Libs/CSharpDis7/AcknowledgePdu.cs | 414 +++++ Libs/CSharpDis7/AcknowledgeReliablePdu.cs | 345 ++++ Libs/CSharpDis7/AcousticEmitter.cs | 341 ++++ Libs/CSharpDis7/ActionRequestPdu.cs | 588 ++++++ Libs/CSharpDis7/ActionRequestReliablePdu.cs | 615 +++++++ Libs/CSharpDis7/ActionResponsePdu.cs | 588 ++++++ Libs/CSharpDis7/ActionResponseReliablePdu.cs | 519 ++++++ Libs/CSharpDis7/AggregateIdentifier.cs | 312 ++++ Libs/CSharpDis7/AggregateMarking.cs | 335 ++++ Libs/CSharpDis7/AggregateType.cs | 463 +++++ Libs/CSharpDis7/AngleDeception.cs | 661 +++++++ Libs/CSharpDis7/AngularVelocityVector.cs | 341 ++++ Libs/CSharpDis7/AntennaLocation.cs | 315 ++++ Libs/CSharpDis7/ArealObjectStatePdu.cs | 685 +++++++ Libs/CSharpDis7/ArticulatedParts.cs | 405 +++++ Libs/CSharpDis7/Association.cs | 367 ++++ Libs/CSharpDis7/AttachedParts.cs | 405 +++++ Libs/CSharpDis7/Attribute.cs | 323 ++++ Libs/CSharpDis7/AttributePdu.cs | 539 ++++++ Libs/CSharpDis7/BeamAntennaPattern.cs | 538 ++++++ Libs/CSharpDis7/BeamData.cs | 405 +++++ Libs/CSharpDis7/BeamStatus.cs | 277 +++ Libs/CSharpDis7/BlankingSector.cs | 505 ++++++ Libs/CSharpDis7/ChangeOptions.cs | 245 +++ Libs/CSharpDis7/ClockTime.cs | 309 ++++ Libs/CSharpDis7/CollisionElasticPdu.cs | 745 ++++++++ Libs/CSharpDis7/CollisionPdu.cs | 519 ++++++ Libs/CSharpDis7/CommentPdu.cs | 455 +++++ Libs/CSharpDis7/CommentReliablePdu.cs | 455 +++++ Libs/CSharpDis7/CommunicationsNodeID.cs | 300 ++++ Libs/CSharpDis7/CreateEntityPdu.cs | 350 ++++ Libs/CSharpDis7/CreateEntityReliablePdu.cs | 377 ++++ Libs/CSharpDis7/DataPdu.cs | 519 ++++++ .../CSharpDis7/DataQueryDatumSpecification.cs | 451 +++++ Libs/CSharpDis7/DataQueryPdu.cs | 519 ++++++ Libs/CSharpDis7/DataQueryReliablePdu.cs | 615 +++++++ Libs/CSharpDis7/DataReliablePdu.cs | 583 ++++++ Libs/CSharpDis7/DatumSpecification.cs | 451 +++++ Libs/CSharpDis7/DeadReckoningParameters.cs | 404 +++++ Libs/CSharpDis7/DesignatorPdu.cs | 646 +++++++ Libs/CSharpDis7/DetonationPdu.cs | 625 +++++++ Libs/CSharpDis7/DirectedEnergyAreaAimpoint.cs | 547 ++++++ Libs/CSharpDis7/DirectedEnergyDamage.cs | 635 +++++++ Libs/CSharpDis7/DirectedEnergyFirePdu.cs | 809 +++++++++ .../DirectedEnergyPrecisionAimpoint.cs | 674 +++++++ .../DirectedEnergyTargetEnergyDeposition.cs | 344 ++++ .../DistributedEmissionsFamilyPdu.cs | 248 +++ Libs/CSharpDis7/EEFundamentalParameterData.cs | 405 +++++ Libs/CSharpDis7/EightByteChunk.cs | 303 ++++ Libs/CSharpDis7/ElectronicEmissionsPdu.cs | 620 +++++++ Libs/CSharpDis7/EmitterSystem.cs | 341 ++++ Libs/CSharpDis7/EngineFuel.cs | 405 +++++ Libs/CSharpDis7/EngineFuelReload.cs | 469 +++++ Libs/CSharpDis7/EntityAssociation.cs | 536 ++++++ Libs/CSharpDis7/EntityDamageStatusPdu.cs | 451 +++++ Libs/CSharpDis7/EntityID.cs | 312 ++++ Libs/CSharpDis7/EntityInformationFamilyPdu.cs | 248 +++ Libs/CSharpDis7/EntityManagementFamilyPdu.cs | 248 +++ Libs/CSharpDis7/EntityMarking.cs | 335 ++++ Libs/CSharpDis7/EntityStatePdu.cs | 721 ++++++++ Libs/CSharpDis7/EntityStateUpdatePdu.cs | 557 ++++++ Libs/CSharpDis7/EntityType.cs | 463 +++++ Libs/CSharpDis7/EntityTypeVP.cs | 408 +++++ Libs/CSharpDis7/Environment.cs | 373 ++++ Libs/CSharpDis7/EnvironmentGeneral.cs | 437 +++++ Libs/CSharpDis7/EnvironmentType.cs | 463 +++++ Libs/CSharpDis7/EulerAngles.cs | 323 ++++ Libs/CSharpDis7/EventIdentifier.cs | 306 ++++ Libs/CSharpDis7/EventIdentifierLiveEntity.cs | 323 ++++ Libs/CSharpDis7/EventReportPdu.cs | 519 ++++++ Libs/CSharpDis7/EventReportReliablePdu.cs | 519 ++++++ Libs/CSharpDis7/Expendable.cs | 384 ++++ Libs/CSharpDis7/ExpendableDescriptor.cs | 312 ++++ Libs/CSharpDis7/ExpendableReload.cs | 410 +++++ Libs/CSharpDis7/ExplosionDescriptor.cs | 376 ++++ Libs/CSharpDis7/FalseTargetsAttribute.cs | 609 +++++++ Libs/CSharpDis7/FastEntityStatePdu.cs | 1590 +++++++++++++++++ Libs/CSharpDis7/FirePdu.cs | 488 +++++ Libs/CSharpDis7/FixedDatum.cs | 309 ++++ Libs/CSharpDis7/FourByteChunk.cs | 303 ++++ Libs/CSharpDis7/FundamentalOperationalData.cs | 565 ++++++ Libs/CSharpDis7/GridAxis.cs | 469 +++++ Libs/CSharpDis7/GroupIdentifier.cs | 312 ++++ .../CSharpDis7/IFFFundamentalParameterData.cs | 495 +++++ Libs/CSharpDis7/IOCommunicationsNode.cs | 404 +++++ Libs/CSharpDis7/IOEffect.cs | 482 +++++ Libs/CSharpDis7/IffDataSpecification.cs | 280 +++ .../IntercomCommunicationsParameters.cs | 341 ++++ Libs/CSharpDis7/IntercomIdentifier.cs | 349 ++++ Libs/CSharpDis7/IntercomSignalPdu.cs | 525 ++++++ Libs/CSharpDis7/IsPartOfPdu.cs | 458 +++++ Libs/CSharpDis7/JammingTechnique.cs | 349 ++++ Libs/CSharpDis7/LaunchedMunitionRecord.cs | 437 +++++ Libs/CSharpDis7/LayerHeader.cs | 335 ++++ Libs/CSharpDis7/LinearObjectStatePdu.cs | 589 ++++++ Libs/CSharpDis7/LinearSegmentParameter.cs | 571 ++++++ Libs/CSharpDis7/LiveEntityIdentifier.cs | 312 ++++ Libs/CSharpDis7/LiveEntityPdu.cs | 301 ++++ Libs/CSharpDis7/LiveSimulationAddress.cs | 309 ++++ Libs/CSharpDis7/LogisticsFamilyPdu.cs | 248 +++ Libs/CSharpDis7/MineEntityIdentifier.cs | 312 ++++ Libs/CSharpDis7/MinefieldFamilyPdu.cs | 248 +++ Libs/CSharpDis7/MinefieldIdentifier.cs | 312 ++++ Libs/CSharpDis7/MinefieldResponseNackPdu.cs | 453 +++++ Libs/CSharpDis7/MinefieldStatePdu.cs | 723 ++++++++ Libs/CSharpDis7/ModulationParameters.cs | 245 +++ Libs/CSharpDis7/ModulationType.cs | 373 ++++ Libs/CSharpDis7/Munition.cs | 408 +++++ Libs/CSharpDis7/MunitionDescriptor.cs | 408 +++++ Libs/CSharpDis7/MunitionReload.cs | 440 +++++ .../CSharpDis7/NamedLocationIdentification.cs | 309 ++++ Libs/CSharpDis7/ObjectIdentifier.cs | 312 ++++ Libs/CSharpDis7/ObjectType.cs | 373 ++++ Libs/CSharpDis7/OneByteChunk.cs | 303 ++++ Libs/CSharpDis7/OwnershipStatus.cs | 344 ++++ Libs/CSharpDis7/Pdu.cs | 301 ++++ Libs/CSharpDis7/PduContainer.cs | 348 ++++ Libs/CSharpDis7/PduHeader.cs | 501 ++++++ Libs/CSharpDis7/PduStatus.cs | 277 +++ Libs/CSharpDis7/PduSuperclass.cs | 437 +++++ Libs/CSharpDis7/PointObjectStatePdu.cs | 652 +++++++ Libs/CSharpDis7/PropulsionSystemData.cs | 309 ++++ .../RadioCommunicationsFamilyPdu.cs | 316 ++++ Libs/CSharpDis7/RadioIdentifier.cs | 373 ++++ Libs/CSharpDis7/RadioType.cs | 457 +++++ Libs/CSharpDis7/ReceiverPdu.cs | 412 +++++ Libs/CSharpDis7/RecordQueryReliablePdu.cs | 544 ++++++ Libs/CSharpDis7/RecordQuerySpecification.cs | 345 ++++ Libs/CSharpDis7/RecordSpecification.cs | 348 ++++ Libs/CSharpDis7/RecordSpecificationElement.cs | 437 +++++ Libs/CSharpDis7/Relationship.cs | 309 ++++ Libs/CSharpDis7/RemoveEntityPdu.cs | 350 ++++ Libs/CSharpDis7/RemoveEntityReliablePdu.cs | 377 ++++ Libs/CSharpDis7/RepairCompletePdu.cs | 382 ++++ Libs/CSharpDis7/RepairResponsePdu.cs | 414 +++++ Libs/CSharpDis7/ResupplyOfferPdu.cs | 485 +++++ Libs/CSharpDis7/ResupplyReceivedPdu.cs | 485 +++++ Libs/CSharpDis7/SecondaryOperationalData.cs | 341 ++++ Libs/CSharpDis7/SeesPdu.cs | 586 ++++++ Libs/CSharpDis7/Sensor.cs | 437 +++++ Libs/CSharpDis7/SeparationVP.cs | 472 +++++ Libs/CSharpDis7/ServiceRequestPdu.cs | 479 +++++ Libs/CSharpDis7/SetDataPdu.cs | 519 ++++++ Libs/CSharpDis7/SetDataReliablePdu.cs | 583 ++++++ Libs/CSharpDis7/SimulationAddress.cs | 309 ++++ Libs/CSharpDis7/SimulationIdentifier.cs | 312 ++++ .../SimulationManagementFamilyPdu.cs | 318 ++++ .../SimulationManagementPduHeader.cs | 349 ++++ ...ationManagementWithReliabilityFamilyPdu.cs | 318 ++++ .../StandardVariableSpecification.cs | 348 ++++ Libs/CSharpDis7/StartResumePdu.cs | 419 +++++ Libs/CSharpDis7/StartResumeReliablePdu.cs | 446 +++++ Libs/CSharpDis7/StopFreezePdu.cs | 481 +++++ Libs/CSharpDis7/StopFreezeReliablePdu.cs | 444 +++++ Libs/CSharpDis7/StorageFuel.cs | 405 +++++ Libs/CSharpDis7/StorageFuelReload.cs | 501 ++++++ Libs/CSharpDis7/SupplyQuantity.cs | 312 ++++ .../SyntheticEnvironmentFamilyPdu.cs | 248 +++ Libs/CSharpDis7/SystemIdentifier.cs | 376 ++++ Libs/CSharpDis7/TotalRecordSets.cs | 309 ++++ Libs/CSharpDis7/TrackJamData.cs | 344 ++++ Libs/CSharpDis7/TwoByteChunk.cs | 303 ++++ Libs/CSharpDis7/UAFundamentalParameter.cs | 437 +++++ Libs/CSharpDis7/UaPdu.cs | 756 ++++++++ Libs/CSharpDis7/UnattachedIdentifier.cs | 312 ++++ Libs/CSharpDis7/UnsignedDISInteger.cs | 277 +++ Libs/CSharpDis7/VariableDatum.cs | 373 ++++ Libs/CSharpDis7/VariableParameter.cs | 405 +++++ .../VariableTransmitterParameters.cs | 309 ++++ Libs/CSharpDis7/Vector2Float.cs | 309 ++++ Libs/CSharpDis7/Vector3Double.cs | 341 ++++ Libs/CSharpDis7/Vector3Float.cs | 341 ++++ Libs/CSharpDis7/VectoringNozzleSystem.cs | 309 ++++ Libs/CSharpDis7/WarfareFamilyPdu.cs | 318 ++++ 174 files changed, 73976 insertions(+) create mode 100644 Libs/CSharpDis7/AcknowledgePdu.cs create mode 100644 Libs/CSharpDis7/AcknowledgeReliablePdu.cs create mode 100644 Libs/CSharpDis7/AcousticEmitter.cs create mode 100644 Libs/CSharpDis7/ActionRequestPdu.cs create mode 100644 Libs/CSharpDis7/ActionRequestReliablePdu.cs create mode 100644 Libs/CSharpDis7/ActionResponsePdu.cs create mode 100644 Libs/CSharpDis7/ActionResponseReliablePdu.cs create mode 100644 Libs/CSharpDis7/AggregateIdentifier.cs create mode 100644 Libs/CSharpDis7/AggregateMarking.cs create mode 100644 Libs/CSharpDis7/AggregateType.cs create mode 100644 Libs/CSharpDis7/AngleDeception.cs create mode 100644 Libs/CSharpDis7/AngularVelocityVector.cs create mode 100644 Libs/CSharpDis7/AntennaLocation.cs create mode 100644 Libs/CSharpDis7/ArealObjectStatePdu.cs create mode 100644 Libs/CSharpDis7/ArticulatedParts.cs create mode 100644 Libs/CSharpDis7/Association.cs create mode 100644 Libs/CSharpDis7/AttachedParts.cs create mode 100644 Libs/CSharpDis7/Attribute.cs create mode 100644 Libs/CSharpDis7/AttributePdu.cs create mode 100644 Libs/CSharpDis7/BeamAntennaPattern.cs create mode 100644 Libs/CSharpDis7/BeamData.cs create mode 100644 Libs/CSharpDis7/BeamStatus.cs create mode 100644 Libs/CSharpDis7/BlankingSector.cs create mode 100644 Libs/CSharpDis7/ChangeOptions.cs create mode 100644 Libs/CSharpDis7/ClockTime.cs create mode 100644 Libs/CSharpDis7/CollisionElasticPdu.cs create mode 100644 Libs/CSharpDis7/CollisionPdu.cs create mode 100644 Libs/CSharpDis7/CommentPdu.cs create mode 100644 Libs/CSharpDis7/CommentReliablePdu.cs create mode 100644 Libs/CSharpDis7/CommunicationsNodeID.cs create mode 100644 Libs/CSharpDis7/CreateEntityPdu.cs create mode 100644 Libs/CSharpDis7/CreateEntityReliablePdu.cs create mode 100644 Libs/CSharpDis7/DataPdu.cs create mode 100644 Libs/CSharpDis7/DataQueryDatumSpecification.cs create mode 100644 Libs/CSharpDis7/DataQueryPdu.cs create mode 100644 Libs/CSharpDis7/DataQueryReliablePdu.cs create mode 100644 Libs/CSharpDis7/DataReliablePdu.cs create mode 100644 Libs/CSharpDis7/DatumSpecification.cs create mode 100644 Libs/CSharpDis7/DeadReckoningParameters.cs create mode 100644 Libs/CSharpDis7/DesignatorPdu.cs create mode 100644 Libs/CSharpDis7/DetonationPdu.cs create mode 100644 Libs/CSharpDis7/DirectedEnergyAreaAimpoint.cs create mode 100644 Libs/CSharpDis7/DirectedEnergyDamage.cs create mode 100644 Libs/CSharpDis7/DirectedEnergyFirePdu.cs create mode 100644 Libs/CSharpDis7/DirectedEnergyPrecisionAimpoint.cs create mode 100644 Libs/CSharpDis7/DirectedEnergyTargetEnergyDeposition.cs create mode 100644 Libs/CSharpDis7/DistributedEmissionsFamilyPdu.cs create mode 100644 Libs/CSharpDis7/EEFundamentalParameterData.cs create mode 100644 Libs/CSharpDis7/EightByteChunk.cs create mode 100644 Libs/CSharpDis7/ElectronicEmissionsPdu.cs create mode 100644 Libs/CSharpDis7/EmitterSystem.cs create mode 100644 Libs/CSharpDis7/EngineFuel.cs create mode 100644 Libs/CSharpDis7/EngineFuelReload.cs create mode 100644 Libs/CSharpDis7/EntityAssociation.cs create mode 100644 Libs/CSharpDis7/EntityDamageStatusPdu.cs create mode 100644 Libs/CSharpDis7/EntityID.cs create mode 100644 Libs/CSharpDis7/EntityInformationFamilyPdu.cs create mode 100644 Libs/CSharpDis7/EntityManagementFamilyPdu.cs create mode 100644 Libs/CSharpDis7/EntityMarking.cs create mode 100644 Libs/CSharpDis7/EntityStatePdu.cs create mode 100644 Libs/CSharpDis7/EntityStateUpdatePdu.cs create mode 100644 Libs/CSharpDis7/EntityType.cs create mode 100644 Libs/CSharpDis7/EntityTypeVP.cs create mode 100644 Libs/CSharpDis7/Environment.cs create mode 100644 Libs/CSharpDis7/EnvironmentGeneral.cs create mode 100644 Libs/CSharpDis7/EnvironmentType.cs create mode 100644 Libs/CSharpDis7/EulerAngles.cs create mode 100644 Libs/CSharpDis7/EventIdentifier.cs create mode 100644 Libs/CSharpDis7/EventIdentifierLiveEntity.cs create mode 100644 Libs/CSharpDis7/EventReportPdu.cs create mode 100644 Libs/CSharpDis7/EventReportReliablePdu.cs create mode 100644 Libs/CSharpDis7/Expendable.cs create mode 100644 Libs/CSharpDis7/ExpendableDescriptor.cs create mode 100644 Libs/CSharpDis7/ExpendableReload.cs create mode 100644 Libs/CSharpDis7/ExplosionDescriptor.cs create mode 100644 Libs/CSharpDis7/FalseTargetsAttribute.cs create mode 100644 Libs/CSharpDis7/FastEntityStatePdu.cs create mode 100644 Libs/CSharpDis7/FirePdu.cs create mode 100644 Libs/CSharpDis7/FixedDatum.cs create mode 100644 Libs/CSharpDis7/FourByteChunk.cs create mode 100644 Libs/CSharpDis7/FundamentalOperationalData.cs create mode 100644 Libs/CSharpDis7/GridAxis.cs create mode 100644 Libs/CSharpDis7/GroupIdentifier.cs create mode 100644 Libs/CSharpDis7/IFFFundamentalParameterData.cs create mode 100644 Libs/CSharpDis7/IOCommunicationsNode.cs create mode 100644 Libs/CSharpDis7/IOEffect.cs create mode 100644 Libs/CSharpDis7/IffDataSpecification.cs create mode 100644 Libs/CSharpDis7/IntercomCommunicationsParameters.cs create mode 100644 Libs/CSharpDis7/IntercomIdentifier.cs create mode 100644 Libs/CSharpDis7/IntercomSignalPdu.cs create mode 100644 Libs/CSharpDis7/IsPartOfPdu.cs create mode 100644 Libs/CSharpDis7/JammingTechnique.cs create mode 100644 Libs/CSharpDis7/LaunchedMunitionRecord.cs create mode 100644 Libs/CSharpDis7/LayerHeader.cs create mode 100644 Libs/CSharpDis7/LinearObjectStatePdu.cs create mode 100644 Libs/CSharpDis7/LinearSegmentParameter.cs create mode 100644 Libs/CSharpDis7/LiveEntityIdentifier.cs create mode 100644 Libs/CSharpDis7/LiveEntityPdu.cs create mode 100644 Libs/CSharpDis7/LiveSimulationAddress.cs create mode 100644 Libs/CSharpDis7/LogisticsFamilyPdu.cs create mode 100644 Libs/CSharpDis7/MineEntityIdentifier.cs create mode 100644 Libs/CSharpDis7/MinefieldFamilyPdu.cs create mode 100644 Libs/CSharpDis7/MinefieldIdentifier.cs create mode 100644 Libs/CSharpDis7/MinefieldResponseNackPdu.cs create mode 100644 Libs/CSharpDis7/MinefieldStatePdu.cs create mode 100644 Libs/CSharpDis7/ModulationParameters.cs create mode 100644 Libs/CSharpDis7/ModulationType.cs create mode 100644 Libs/CSharpDis7/Munition.cs create mode 100644 Libs/CSharpDis7/MunitionDescriptor.cs create mode 100644 Libs/CSharpDis7/MunitionReload.cs create mode 100644 Libs/CSharpDis7/NamedLocationIdentification.cs create mode 100644 Libs/CSharpDis7/ObjectIdentifier.cs create mode 100644 Libs/CSharpDis7/ObjectType.cs create mode 100644 Libs/CSharpDis7/OneByteChunk.cs create mode 100644 Libs/CSharpDis7/OwnershipStatus.cs create mode 100644 Libs/CSharpDis7/Pdu.cs create mode 100644 Libs/CSharpDis7/PduContainer.cs create mode 100644 Libs/CSharpDis7/PduHeader.cs create mode 100644 Libs/CSharpDis7/PduStatus.cs create mode 100644 Libs/CSharpDis7/PduSuperclass.cs create mode 100644 Libs/CSharpDis7/PointObjectStatePdu.cs create mode 100644 Libs/CSharpDis7/PropulsionSystemData.cs create mode 100644 Libs/CSharpDis7/RadioCommunicationsFamilyPdu.cs create mode 100644 Libs/CSharpDis7/RadioIdentifier.cs create mode 100644 Libs/CSharpDis7/RadioType.cs create mode 100644 Libs/CSharpDis7/ReceiverPdu.cs create mode 100644 Libs/CSharpDis7/RecordQueryReliablePdu.cs create mode 100644 Libs/CSharpDis7/RecordQuerySpecification.cs create mode 100644 Libs/CSharpDis7/RecordSpecification.cs create mode 100644 Libs/CSharpDis7/RecordSpecificationElement.cs create mode 100644 Libs/CSharpDis7/Relationship.cs create mode 100644 Libs/CSharpDis7/RemoveEntityPdu.cs create mode 100644 Libs/CSharpDis7/RemoveEntityReliablePdu.cs create mode 100644 Libs/CSharpDis7/RepairCompletePdu.cs create mode 100644 Libs/CSharpDis7/RepairResponsePdu.cs create mode 100644 Libs/CSharpDis7/ResupplyOfferPdu.cs create mode 100644 Libs/CSharpDis7/ResupplyReceivedPdu.cs create mode 100644 Libs/CSharpDis7/SecondaryOperationalData.cs create mode 100644 Libs/CSharpDis7/SeesPdu.cs create mode 100644 Libs/CSharpDis7/Sensor.cs create mode 100644 Libs/CSharpDis7/SeparationVP.cs create mode 100644 Libs/CSharpDis7/ServiceRequestPdu.cs create mode 100644 Libs/CSharpDis7/SetDataPdu.cs create mode 100644 Libs/CSharpDis7/SetDataReliablePdu.cs create mode 100644 Libs/CSharpDis7/SimulationAddress.cs create mode 100644 Libs/CSharpDis7/SimulationIdentifier.cs create mode 100644 Libs/CSharpDis7/SimulationManagementFamilyPdu.cs create mode 100644 Libs/CSharpDis7/SimulationManagementPduHeader.cs create mode 100644 Libs/CSharpDis7/SimulationManagementWithReliabilityFamilyPdu.cs create mode 100644 Libs/CSharpDis7/StandardVariableSpecification.cs create mode 100644 Libs/CSharpDis7/StartResumePdu.cs create mode 100644 Libs/CSharpDis7/StartResumeReliablePdu.cs create mode 100644 Libs/CSharpDis7/StopFreezePdu.cs create mode 100644 Libs/CSharpDis7/StopFreezeReliablePdu.cs create mode 100644 Libs/CSharpDis7/StorageFuel.cs create mode 100644 Libs/CSharpDis7/StorageFuelReload.cs create mode 100644 Libs/CSharpDis7/SupplyQuantity.cs create mode 100644 Libs/CSharpDis7/SyntheticEnvironmentFamilyPdu.cs create mode 100644 Libs/CSharpDis7/SystemIdentifier.cs create mode 100644 Libs/CSharpDis7/TotalRecordSets.cs create mode 100644 Libs/CSharpDis7/TrackJamData.cs create mode 100644 Libs/CSharpDis7/TwoByteChunk.cs create mode 100644 Libs/CSharpDis7/UAFundamentalParameter.cs create mode 100644 Libs/CSharpDis7/UaPdu.cs create mode 100644 Libs/CSharpDis7/UnattachedIdentifier.cs create mode 100644 Libs/CSharpDis7/UnsignedDISInteger.cs create mode 100644 Libs/CSharpDis7/VariableDatum.cs create mode 100644 Libs/CSharpDis7/VariableParameter.cs create mode 100644 Libs/CSharpDis7/VariableTransmitterParameters.cs create mode 100644 Libs/CSharpDis7/Vector2Float.cs create mode 100644 Libs/CSharpDis7/Vector3Double.cs create mode 100644 Libs/CSharpDis7/Vector3Float.cs create mode 100644 Libs/CSharpDis7/VectoringNozzleSystem.cs create mode 100644 Libs/CSharpDis7/WarfareFamilyPdu.cs diff --git a/Libs/CSharpDis7/AcknowledgePdu.cs b/Libs/CSharpDis7/AcknowledgePdu.cs new file mode 100644 index 0000000..7897ac4 --- /dev/null +++ b/Libs/CSharpDis7/AcknowledgePdu.cs @@ -0,0 +1,414 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Section 7.5.6. Acknowledge the receipt of a start/resume, stop/freeze, or RemoveEntityPDU. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + public partial class AcknowledgePdu : SimulationManagementFamilyPdu, IEquatable + { + /// + /// Identifier for originating entity(or simulation) + /// + private EntityID _originatingID = new EntityID(); + + /// + /// Identifier for the receiving entity(or simulation) + /// + private EntityID _receivingID = new EntityID(); + + /// + /// type of message being acknowledged + /// + private ushort _acknowledgeFlag; + + /// + /// Whether or not the receiving entity was able to comply with the request + /// + private ushort _responseFlag; + + /// + /// Request ID that is unique + /// + private uint _requestID; + + /// + /// Initializes a new instance of the class. + /// + public AcknowledgePdu() + { + PduType = (byte)15; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(AcknowledgePdu left, AcknowledgePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(AcknowledgePdu left, AcknowledgePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._originatingID.GetMarshalledSize(); // this._originatingID + marshalSize += this._receivingID.GetMarshalledSize(); // this._receivingID + marshalSize += 2; // this._acknowledgeFlag + marshalSize += 2; // this._responseFlag + marshalSize += 4; // this._requestID + return marshalSize; + } + + /// + /// Gets or sets the Identifier for originating entity(or simulation) + /// + [XmlElement(Type = typeof(EntityID), ElementName = "originatingID")] + public EntityID OriginatingID + { + get + { + return this._originatingID; + } + + set + { + this._originatingID = value; + } + } + + /// + /// Gets or sets the Identifier for the receiving entity(or simulation) + /// + [XmlElement(Type = typeof(EntityID), ElementName = "receivingID")] + public EntityID ReceivingID + { + get + { + return this._receivingID; + } + + set + { + this._receivingID = value; + } + } + + /// + /// Gets or sets the type of message being acknowledged + /// + [XmlElement(Type = typeof(ushort), ElementName = "acknowledgeFlag")] + public ushort AcknowledgeFlag + { + get + { + return this._acknowledgeFlag; + } + + set + { + this._acknowledgeFlag = value; + } + } + + /// + /// Gets or sets the Whether or not the receiving entity was able to comply with the request + /// + [XmlElement(Type = typeof(ushort), ElementName = "responseFlag")] + public ushort ResponseFlag + { + get + { + return this._responseFlag; + } + + set + { + this._responseFlag = value; + } + } + + /// + /// Gets or sets the Request ID that is unique + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._originatingID.Marshal(dos); + this._receivingID.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._acknowledgeFlag); + dos.WriteUnsignedShort((ushort)this._responseFlag); + dos.WriteUnsignedInt((uint)this._requestID); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._originatingID.Unmarshal(dis); + this._receivingID.Unmarshal(dis); + this._acknowledgeFlag = dis.ReadUnsignedShort(); + this._responseFlag = dis.ReadUnsignedShort(); + this._requestID = dis.ReadUnsignedInt(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._originatingID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._receivingID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._acknowledgeFlag.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._responseFlag.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as AcknowledgePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(AcknowledgePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._originatingID.Equals(obj._originatingID)) + { + ivarsEqual = false; + } + + if (!this._receivingID.Equals(obj._receivingID)) + { + ivarsEqual = false; + } + + if (this._acknowledgeFlag != obj._acknowledgeFlag) + { + ivarsEqual = false; + } + + if (this._responseFlag != obj._responseFlag) + { + ivarsEqual = false; + } + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._originatingID.GetHashCode(); + result = GenerateHash(result) ^ this._receivingID.GetHashCode(); + result = GenerateHash(result) ^ this._acknowledgeFlag.GetHashCode(); + result = GenerateHash(result) ^ this._responseFlag.GetHashCode(); + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/AcknowledgeReliablePdu.cs b/Libs/CSharpDis7/AcknowledgeReliablePdu.cs new file mode 100644 index 0000000..515cd4d --- /dev/null +++ b/Libs/CSharpDis7/AcknowledgeReliablePdu.cs @@ -0,0 +1,345 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Section 5.3.12.5: Ack receipt of a start-resume, stop-freeze, create-entity or remove enitty (reliable) pdus. COMPLETE + /// + [Serializable] + [XmlRoot] + public partial class AcknowledgeReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable + { + /// + /// ack flags + /// + private ushort _acknowledgeFlag; + + /// + /// response flags + /// + private ushort _responseFlag; + + /// + /// Request ID + /// + private uint _requestID; + + /// + /// Initializes a new instance of the class. + /// + public AcknowledgeReliablePdu() + { + PduType = (byte)55; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(AcknowledgeReliablePdu left, AcknowledgeReliablePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(AcknowledgeReliablePdu left, AcknowledgeReliablePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 2; // this._acknowledgeFlag + marshalSize += 2; // this._responseFlag + marshalSize += 4; // this._requestID + return marshalSize; + } + + /// + /// Gets or sets the ack flags + /// + [XmlElement(Type = typeof(ushort), ElementName = "acknowledgeFlag")] + public ushort AcknowledgeFlag + { + get + { + return this._acknowledgeFlag; + } + + set + { + this._acknowledgeFlag = value; + } + } + + /// + /// Gets or sets the response flags + /// + [XmlElement(Type = typeof(ushort), ElementName = "responseFlag")] + public ushort ResponseFlag + { + get + { + return this._responseFlag; + } + + set + { + this._responseFlag = value; + } + } + + /// + /// Gets or sets the Request ID + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._acknowledgeFlag); + dos.WriteUnsignedShort((ushort)this._responseFlag); + dos.WriteUnsignedInt((uint)this._requestID); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._acknowledgeFlag = dis.ReadUnsignedShort(); + this._responseFlag = dis.ReadUnsignedShort(); + this._requestID = dis.ReadUnsignedInt(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._acknowledgeFlag.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._responseFlag.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as AcknowledgeReliablePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(AcknowledgeReliablePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._acknowledgeFlag != obj._acknowledgeFlag) + { + ivarsEqual = false; + } + + if (this._responseFlag != obj._responseFlag) + { + ivarsEqual = false; + } + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._acknowledgeFlag.GetHashCode(); + result = GenerateHash(result) ^ this._responseFlag.GetHashCode(); + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/AcousticEmitter.cs b/Libs/CSharpDis7/AcousticEmitter.cs new file mode 100644 index 0000000..ea7d371 --- /dev/null +++ b/Libs/CSharpDis7/AcousticEmitter.cs @@ -0,0 +1,341 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// information about a specific UA emmtter. Section 6.2.2. + /// + [Serializable] + [XmlRoot] + public partial class AcousticEmitter + { + /// + /// the system for a particular UA emitter, and an enumeration + /// + private ushort _acousticName; + + /// + /// The function of the acoustic system + /// + private byte _function; + + /// + /// The UA emitter identification number relative to a specific system + /// + private byte _acousticIdNumber; + + /// + /// Initializes a new instance of the class. + /// + public AcousticEmitter() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(AcousticEmitter left, AcousticEmitter right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(AcousticEmitter left, AcousticEmitter right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 2; // this._acousticName + marshalSize += 1; // this._function + marshalSize += 1; // this._acousticIdNumber + return marshalSize; + } + + /// + /// Gets or sets the the system for a particular UA emitter, and an enumeration + /// + [XmlElement(Type = typeof(ushort), ElementName = "acousticName")] + public ushort AcousticName + { + get + { + return this._acousticName; + } + + set + { + this._acousticName = value; + } + } + + /// + /// Gets or sets the The function of the acoustic system + /// + [XmlElement(Type = typeof(byte), ElementName = "function")] + public byte Function + { + get + { + return this._function; + } + + set + { + this._function = value; + } + } + + /// + /// Gets or sets the The UA emitter identification number relative to a specific system + /// + [XmlElement(Type = typeof(byte), ElementName = "acousticIdNumber")] + public byte AcousticIdNumber + { + get + { + return this._acousticIdNumber; + } + + set + { + this._acousticIdNumber = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._acousticName); + dos.WriteUnsignedByte((byte)this._function); + dos.WriteUnsignedByte((byte)this._acousticIdNumber); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._acousticName = dis.ReadUnsignedShort(); + this._function = dis.ReadUnsignedByte(); + this._acousticIdNumber = dis.ReadUnsignedByte(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._acousticName.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._function.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._acousticIdNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as AcousticEmitter; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(AcousticEmitter obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._acousticName != obj._acousticName) + { + ivarsEqual = false; + } + + if (this._function != obj._function) + { + ivarsEqual = false; + } + + if (this._acousticIdNumber != obj._acousticIdNumber) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._acousticName.GetHashCode(); + result = GenerateHash(result) ^ this._function.GetHashCode(); + result = GenerateHash(result) ^ this._acousticIdNumber.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/ActionRequestPdu.cs b/Libs/CSharpDis7/ActionRequestPdu.cs new file mode 100644 index 0000000..4622583 --- /dev/null +++ b/Libs/CSharpDis7/ActionRequestPdu.cs @@ -0,0 +1,588 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Section 7.5.7. Request from simulation manager to a managed entity to perform a specified action. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(FixedDatum))] + [XmlInclude(typeof(VariableDatum))] + public partial class ActionRequestPdu : SimulationManagementFamilyPdu, IEquatable + { + /// + /// Identifier for originating entity(or simulation) + /// + private EntityID _originatingID = new EntityID(); + + /// + /// Identifier for the receiving entity(or simulation) + /// + private EntityID _receivingID = new EntityID(); + + /// + /// identifies the request being made by the simulaton manager + /// + private uint _requestID; + + /// + /// identifies the particular action being requested(see Section 7 of SISO-REF-010). + /// + private uint _actionID; + + /// + /// Number of fixed datum records + /// + private uint _numberOfFixedDatumRecords; + + /// + /// Number of variable datum records + /// + private uint _numberOfVariableDatumRecords; + + /// + /// variable length list of fixed datums + /// + private List _fixedDatums = new List(); + + /// + /// variable length list of variable length datums + /// + private List _variableDatums = new List(); + + /// + /// Initializes a new instance of the class. + /// + public ActionRequestPdu() + { + PduType = (byte)16; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ActionRequestPdu left, ActionRequestPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ActionRequestPdu left, ActionRequestPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._originatingID.GetMarshalledSize(); // this._originatingID + marshalSize += this._receivingID.GetMarshalledSize(); // this._receivingID + marshalSize += 4; // this._requestID + marshalSize += 4; // this._actionID + marshalSize += 4; // this._numberOfFixedDatumRecords + marshalSize += 4; // this._numberOfVariableDatumRecords + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + FixedDatum listElement = (FixedDatum)this._fixedDatums[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + VariableDatum listElement = (VariableDatum)this._variableDatums[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Identifier for originating entity(or simulation) + /// + [XmlElement(Type = typeof(EntityID), ElementName = "originatingID")] + public EntityID OriginatingID + { + get + { + return this._originatingID; + } + + set + { + this._originatingID = value; + } + } + + /// + /// Gets or sets the Identifier for the receiving entity(or simulation) + /// + [XmlElement(Type = typeof(EntityID), ElementName = "receivingID")] + public EntityID ReceivingID + { + get + { + return this._receivingID; + } + + set + { + this._receivingID = value; + } + } + + /// + /// Gets or sets the identifies the request being made by the simulaton manager + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Gets or sets the identifies the particular action being requested(see Section 7 of SISO-REF-010). + /// + [XmlElement(Type = typeof(uint), ElementName = "actionID")] + public uint ActionID + { + get + { + return this._actionID; + } + + set + { + this._actionID = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] + public uint NumberOfFixedDatumRecords + { + get + { + return this._numberOfFixedDatumRecords; + } + + set + { + this._numberOfFixedDatumRecords = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] + public uint NumberOfVariableDatumRecords + { + get + { + return this._numberOfVariableDatumRecords; + } + + set + { + this._numberOfVariableDatumRecords = value; + } + } + + /// + /// Gets or sets the variable length list of fixed datums + /// + [XmlElement(ElementName = "fixedDatumsList", Type = typeof(List))] + public List FixedDatums + { + get + { + return this._fixedDatums; + } + } + + /// + /// Gets or sets the variable length list of variable length datums + /// + [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] + public List VariableDatums + { + get + { + return this._variableDatums; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._originatingID.Marshal(dos); + this._receivingID.Marshal(dos); + dos.WriteUnsignedInt((uint)this._requestID); + dos.WriteUnsignedInt((uint)this._actionID); + dos.WriteUnsignedInt((uint)this._fixedDatums.Count); + dos.WriteUnsignedInt((uint)this._variableDatums.Count); + + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; + aFixedDatum.Marshal(dos); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; + aVariableDatum.Marshal(dos); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._originatingID.Unmarshal(dis); + this._receivingID.Unmarshal(dis); + this._requestID = dis.ReadUnsignedInt(); + this._actionID = dis.ReadUnsignedInt(); + this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); + this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); + for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) + { + FixedDatum anX = new FixedDatum(); + anX.Unmarshal(dis); + this._fixedDatums.Add(anX); + }; + + for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) + { + VariableDatum anX = new VariableDatum(); + anX.Unmarshal(dis); + this._variableDatums.Add(anX); + }; + + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._originatingID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._receivingID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._actionID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fixedDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + sb.AppendLine(""); + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; + aFixedDatum.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + sb.AppendLine(""); + VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; + aVariableDatum.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ActionRequestPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ActionRequestPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._originatingID.Equals(obj._originatingID)) + { + ivarsEqual = false; + } + + if (!this._receivingID.Equals(obj._receivingID)) + { + ivarsEqual = false; + } + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + if (this._actionID != obj._actionID) + { + ivarsEqual = false; + } + + if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) + { + ivarsEqual = false; + } + + if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) + { + ivarsEqual = false; + } + + if (this._fixedDatums.Count != obj._fixedDatums.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + if (!this._fixedDatums[idx].Equals(obj._fixedDatums[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._variableDatums.Count != obj._variableDatums.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._originatingID.GetHashCode(); + result = GenerateHash(result) ^ this._receivingID.GetHashCode(); + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + result = GenerateHash(result) ^ this._actionID.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); + + if (this._fixedDatums.Count > 0) + { + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + result = GenerateHash(result) ^ this._fixedDatums[idx].GetHashCode(); + } + } + + if (this._variableDatums.Count > 0) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/ActionRequestReliablePdu.cs b/Libs/CSharpDis7/ActionRequestReliablePdu.cs new file mode 100644 index 0000000..0538f7a --- /dev/null +++ b/Libs/CSharpDis7/ActionRequestReliablePdu.cs @@ -0,0 +1,615 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Section 5.3.12.6: request from a simulation manager to a managed entity to perform a specified action. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(FixedDatum))] + [XmlInclude(typeof(VariableDatum))] + public partial class ActionRequestReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable + { + /// + /// level of reliability service used for this transaction + /// + private byte _requiredReliabilityService; + + /// + /// padding + /// + private ushort _pad1; + + /// + /// padding + /// + private byte _pad2; + + /// + /// request ID + /// + private uint _requestID; + + /// + /// request ID + /// + private uint _actionID; + + /// + /// Fixed datum record count + /// + private uint _numberOfFixedDatumRecords; + + /// + /// variable datum record count + /// + private uint _numberOfVariableDatumRecords; + + /// + /// Fixed datum records + /// + private List _fixedDatumRecords = new List(); + + /// + /// Variable datum records + /// + private List _variableDatumRecords = new List(); + + /// + /// Initializes a new instance of the class. + /// + public ActionRequestReliablePdu() + { + PduType = (byte)56; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ActionRequestReliablePdu left, ActionRequestReliablePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ActionRequestReliablePdu left, ActionRequestReliablePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 1; // this._requiredReliabilityService + marshalSize += 2; // this._pad1 + marshalSize += 1; // this._pad2 + marshalSize += 4; // this._requestID + marshalSize += 4; // this._actionID + marshalSize += 4; // this._numberOfFixedDatumRecords + marshalSize += 4; // this._numberOfVariableDatumRecords + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + FixedDatum listElement = (FixedDatum)this._fixedDatumRecords[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + VariableDatum listElement = (VariableDatum)this._variableDatumRecords[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the level of reliability service used for this transaction + /// + [XmlElement(Type = typeof(byte), ElementName = "requiredReliabilityService")] + public byte RequiredReliabilityService + { + get + { + return this._requiredReliabilityService; + } + + set + { + this._requiredReliabilityService = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(ushort), ElementName = "pad1")] + public ushort Pad1 + { + get + { + return this._pad1; + } + + set + { + this._pad1 = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "pad2")] + public byte Pad2 + { + get + { + return this._pad2; + } + + set + { + this._pad2 = value; + } + } + + /// + /// Gets or sets the request ID + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Gets or sets the request ID + /// + [XmlElement(Type = typeof(uint), ElementName = "actionID")] + public uint ActionID + { + get + { + return this._actionID; + } + + set + { + this._actionID = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] + public uint NumberOfFixedDatumRecords + { + get + { + return this._numberOfFixedDatumRecords; + } + + set + { + this._numberOfFixedDatumRecords = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] + public uint NumberOfVariableDatumRecords + { + get + { + return this._numberOfVariableDatumRecords; + } + + set + { + this._numberOfVariableDatumRecords = value; + } + } + + /// + /// Gets or sets the Fixed datum records + /// + [XmlElement(ElementName = "fixedDatumRecordsList", Type = typeof(List))] + public List FixedDatumRecords + { + get + { + return this._fixedDatumRecords; + } + } + + /// + /// Gets or sets the Variable datum records + /// + [XmlElement(ElementName = "variableDatumRecordsList", Type = typeof(List))] + public List VariableDatumRecords + { + get + { + return this._variableDatumRecords; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._requiredReliabilityService); + dos.WriteUnsignedShort((ushort)this._pad1); + dos.WriteUnsignedByte((byte)this._pad2); + dos.WriteUnsignedInt((uint)this._requestID); + dos.WriteUnsignedInt((uint)this._actionID); + dos.WriteUnsignedInt((uint)this._fixedDatumRecords.Count); + dos.WriteUnsignedInt((uint)this._variableDatumRecords.Count); + + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; + aFixedDatum.Marshal(dos); + } + + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; + aVariableDatum.Marshal(dos); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._requiredReliabilityService = dis.ReadUnsignedByte(); + this._pad1 = dis.ReadUnsignedShort(); + this._pad2 = dis.ReadUnsignedByte(); + this._requestID = dis.ReadUnsignedInt(); + this._actionID = dis.ReadUnsignedInt(); + this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); + this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); + for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) + { + FixedDatum anX = new FixedDatum(); + anX.Unmarshal(dis); + this._fixedDatumRecords.Add(anX); + }; + + for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) + { + VariableDatum anX = new VariableDatum(); + anX.Unmarshal(dis); + this._variableDatumRecords.Add(anX); + }; + + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._requiredReliabilityService.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._actionID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fixedDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + sb.AppendLine(""); + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; + aFixedDatum.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + sb.AppendLine(""); + VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; + aVariableDatum.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ActionRequestReliablePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ActionRequestReliablePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._requiredReliabilityService != obj._requiredReliabilityService) + { + ivarsEqual = false; + } + + if (this._pad1 != obj._pad1) + { + ivarsEqual = false; + } + + if (this._pad2 != obj._pad2) + { + ivarsEqual = false; + } + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + if (this._actionID != obj._actionID) + { + ivarsEqual = false; + } + + if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) + { + ivarsEqual = false; + } + + if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) + { + ivarsEqual = false; + } + + if (this._fixedDatumRecords.Count != obj._fixedDatumRecords.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + if (!this._fixedDatumRecords[idx].Equals(obj._fixedDatumRecords[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._variableDatumRecords.Count != obj._variableDatumRecords.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + if (!this._variableDatumRecords[idx].Equals(obj._variableDatumRecords[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._requiredReliabilityService.GetHashCode(); + result = GenerateHash(result) ^ this._pad1.GetHashCode(); + result = GenerateHash(result) ^ this._pad2.GetHashCode(); + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + result = GenerateHash(result) ^ this._actionID.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); + + if (this._fixedDatumRecords.Count > 0) + { + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + result = GenerateHash(result) ^ this._fixedDatumRecords[idx].GetHashCode(); + } + } + + if (this._variableDatumRecords.Count > 0) + { + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + result = GenerateHash(result) ^ this._variableDatumRecords[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/ActionResponsePdu.cs b/Libs/CSharpDis7/ActionResponsePdu.cs new file mode 100644 index 0000000..2a7fcd5 --- /dev/null +++ b/Libs/CSharpDis7/ActionResponsePdu.cs @@ -0,0 +1,588 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Section 7.5.8. response to an action request PDU. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(FixedDatum))] + [XmlInclude(typeof(VariableDatum))] + public partial class ActionResponsePdu : SimulationManagementFamilyPdu, IEquatable + { + /// + /// Identifier for originating entity(or simulation) + /// + private EntityID _originatingID = new EntityID(); + + /// + /// Identifier for the receiving entity(or simulation) + /// + private EntityID _receivingID = new EntityID(); + + /// + /// Request ID that is unique + /// + private uint _requestID; + + /// + /// Status of response + /// + private uint _requestStatus; + + /// + /// Number of fixed datum records + /// + private uint _numberOfFixedDatumRecords; + + /// + /// Number of variable datum records + /// + private uint _numberOfVariableDatumRecords; + + /// + /// variable length list of fixed datums + /// + private List _fixedDatums = new List(); + + /// + /// variable length list of variable length datums + /// + private List _variableDatums = new List(); + + /// + /// Initializes a new instance of the class. + /// + public ActionResponsePdu() + { + PduType = (byte)17; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ActionResponsePdu left, ActionResponsePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ActionResponsePdu left, ActionResponsePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._originatingID.GetMarshalledSize(); // this._originatingID + marshalSize += this._receivingID.GetMarshalledSize(); // this._receivingID + marshalSize += 4; // this._requestID + marshalSize += 4; // this._requestStatus + marshalSize += 4; // this._numberOfFixedDatumRecords + marshalSize += 4; // this._numberOfVariableDatumRecords + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + FixedDatum listElement = (FixedDatum)this._fixedDatums[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + VariableDatum listElement = (VariableDatum)this._variableDatums[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Identifier for originating entity(or simulation) + /// + [XmlElement(Type = typeof(EntityID), ElementName = "originatingID")] + public EntityID OriginatingID + { + get + { + return this._originatingID; + } + + set + { + this._originatingID = value; + } + } + + /// + /// Gets or sets the Identifier for the receiving entity(or simulation) + /// + [XmlElement(Type = typeof(EntityID), ElementName = "receivingID")] + public EntityID ReceivingID + { + get + { + return this._receivingID; + } + + set + { + this._receivingID = value; + } + } + + /// + /// Gets or sets the Request ID that is unique + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Gets or sets the Status of response + /// + [XmlElement(Type = typeof(uint), ElementName = "requestStatus")] + public uint RequestStatus + { + get + { + return this._requestStatus; + } + + set + { + this._requestStatus = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] + public uint NumberOfFixedDatumRecords + { + get + { + return this._numberOfFixedDatumRecords; + } + + set + { + this._numberOfFixedDatumRecords = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] + public uint NumberOfVariableDatumRecords + { + get + { + return this._numberOfVariableDatumRecords; + } + + set + { + this._numberOfVariableDatumRecords = value; + } + } + + /// + /// Gets or sets the variable length list of fixed datums + /// + [XmlElement(ElementName = "fixedDatumsList", Type = typeof(List))] + public List FixedDatums + { + get + { + return this._fixedDatums; + } + } + + /// + /// Gets or sets the variable length list of variable length datums + /// + [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] + public List VariableDatums + { + get + { + return this._variableDatums; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._originatingID.Marshal(dos); + this._receivingID.Marshal(dos); + dos.WriteUnsignedInt((uint)this._requestID); + dos.WriteUnsignedInt((uint)this._requestStatus); + dos.WriteUnsignedInt((uint)this._fixedDatums.Count); + dos.WriteUnsignedInt((uint)this._variableDatums.Count); + + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; + aFixedDatum.Marshal(dos); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; + aVariableDatum.Marshal(dos); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._originatingID.Unmarshal(dis); + this._receivingID.Unmarshal(dis); + this._requestID = dis.ReadUnsignedInt(); + this._requestStatus = dis.ReadUnsignedInt(); + this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); + this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); + for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) + { + FixedDatum anX = new FixedDatum(); + anX.Unmarshal(dis); + this._fixedDatums.Add(anX); + }; + + for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) + { + VariableDatum anX = new VariableDatum(); + anX.Unmarshal(dis); + this._variableDatums.Add(anX); + }; + + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._originatingID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._receivingID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._requestStatus.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fixedDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + sb.AppendLine(""); + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; + aFixedDatum.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + sb.AppendLine(""); + VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; + aVariableDatum.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ActionResponsePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ActionResponsePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._originatingID.Equals(obj._originatingID)) + { + ivarsEqual = false; + } + + if (!this._receivingID.Equals(obj._receivingID)) + { + ivarsEqual = false; + } + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + if (this._requestStatus != obj._requestStatus) + { + ivarsEqual = false; + } + + if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) + { + ivarsEqual = false; + } + + if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) + { + ivarsEqual = false; + } + + if (this._fixedDatums.Count != obj._fixedDatums.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + if (!this._fixedDatums[idx].Equals(obj._fixedDatums[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._variableDatums.Count != obj._variableDatums.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._originatingID.GetHashCode(); + result = GenerateHash(result) ^ this._receivingID.GetHashCode(); + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + result = GenerateHash(result) ^ this._requestStatus.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); + + if (this._fixedDatums.Count > 0) + { + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + result = GenerateHash(result) ^ this._fixedDatums[idx].GetHashCode(); + } + } + + if (this._variableDatums.Count > 0) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/ActionResponseReliablePdu.cs b/Libs/CSharpDis7/ActionResponseReliablePdu.cs new file mode 100644 index 0000000..e6d6197 --- /dev/null +++ b/Libs/CSharpDis7/ActionResponseReliablePdu.cs @@ -0,0 +1,519 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Section 5.3.12.7: Response from an entity to an action request PDU. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(FixedDatum))] + [XmlInclude(typeof(VariableDatum))] + public partial class ActionResponseReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable + { + /// + /// request ID + /// + private uint _requestID; + + /// + /// status of response + /// + private uint _responseStatus; + + /// + /// Fixed datum record count + /// + private uint _numberOfFixedDatumRecords; + + /// + /// variable datum record count + /// + private uint _numberOfVariableDatumRecords; + + /// + /// Fixed datum records + /// + private List _fixedDatumRecords = new List(); + + /// + /// Variable datum records + /// + private List _variableDatumRecords = new List(); + + /// + /// Initializes a new instance of the class. + /// + public ActionResponseReliablePdu() + { + PduType = (byte)57; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ActionResponseReliablePdu left, ActionResponseReliablePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ActionResponseReliablePdu left, ActionResponseReliablePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 4; // this._requestID + marshalSize += 4; // this._responseStatus + marshalSize += 4; // this._numberOfFixedDatumRecords + marshalSize += 4; // this._numberOfVariableDatumRecords + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + FixedDatum listElement = (FixedDatum)this._fixedDatumRecords[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + VariableDatum listElement = (VariableDatum)this._variableDatumRecords[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the request ID + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Gets or sets the status of response + /// + [XmlElement(Type = typeof(uint), ElementName = "responseStatus")] + public uint ResponseStatus + { + get + { + return this._responseStatus; + } + + set + { + this._responseStatus = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] + public uint NumberOfFixedDatumRecords + { + get + { + return this._numberOfFixedDatumRecords; + } + + set + { + this._numberOfFixedDatumRecords = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] + public uint NumberOfVariableDatumRecords + { + get + { + return this._numberOfVariableDatumRecords; + } + + set + { + this._numberOfVariableDatumRecords = value; + } + } + + /// + /// Gets or sets the Fixed datum records + /// + [XmlElement(ElementName = "fixedDatumRecordsList", Type = typeof(List))] + public List FixedDatumRecords + { + get + { + return this._fixedDatumRecords; + } + } + + /// + /// Gets or sets the Variable datum records + /// + [XmlElement(ElementName = "variableDatumRecordsList", Type = typeof(List))] + public List VariableDatumRecords + { + get + { + return this._variableDatumRecords; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._requestID); + dos.WriteUnsignedInt((uint)this._responseStatus); + dos.WriteUnsignedInt((uint)this._fixedDatumRecords.Count); + dos.WriteUnsignedInt((uint)this._variableDatumRecords.Count); + + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; + aFixedDatum.Marshal(dos); + } + + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; + aVariableDatum.Marshal(dos); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._requestID = dis.ReadUnsignedInt(); + this._responseStatus = dis.ReadUnsignedInt(); + this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); + this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); + for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) + { + FixedDatum anX = new FixedDatum(); + anX.Unmarshal(dis); + this._fixedDatumRecords.Add(anX); + }; + + for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) + { + VariableDatum anX = new VariableDatum(); + anX.Unmarshal(dis); + this._variableDatumRecords.Add(anX); + }; + + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._responseStatus.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fixedDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + sb.AppendLine(""); + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; + aFixedDatum.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + sb.AppendLine(""); + VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; + aVariableDatum.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ActionResponseReliablePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ActionResponseReliablePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + if (this._responseStatus != obj._responseStatus) + { + ivarsEqual = false; + } + + if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) + { + ivarsEqual = false; + } + + if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) + { + ivarsEqual = false; + } + + if (this._fixedDatumRecords.Count != obj._fixedDatumRecords.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + if (!this._fixedDatumRecords[idx].Equals(obj._fixedDatumRecords[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._variableDatumRecords.Count != obj._variableDatumRecords.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + if (!this._variableDatumRecords[idx].Equals(obj._variableDatumRecords[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + result = GenerateHash(result) ^ this._responseStatus.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); + + if (this._fixedDatumRecords.Count > 0) + { + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + result = GenerateHash(result) ^ this._fixedDatumRecords[idx].GetHashCode(); + } + } + + if (this._variableDatumRecords.Count > 0) + { + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + result = GenerateHash(result) ^ this._variableDatumRecords[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/AggregateIdentifier.cs b/Libs/CSharpDis7/AggregateIdentifier.cs new file mode 100644 index 0000000..4d02b8a --- /dev/null +++ b/Libs/CSharpDis7/AggregateIdentifier.cs @@ -0,0 +1,312 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// The unique designation of each aggrgate in an exercise is specified by an aggregate identifier record. The aggregate ID is not an entity and shall not be treated as such. Section 6.2.3. + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(SimulationAddress))] + public partial class AggregateIdentifier + { + /// + /// Simulation address, ie site and application, the first two fields of the entity ID + /// + private SimulationAddress _simulationAddress = new SimulationAddress(); + + /// + /// the aggregate ID + /// + private ushort _aggregateID; + + /// + /// Initializes a new instance of the class. + /// + public AggregateIdentifier() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(AggregateIdentifier left, AggregateIdentifier right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(AggregateIdentifier left, AggregateIdentifier right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += this._simulationAddress.GetMarshalledSize(); // this._simulationAddress + marshalSize += 2; // this._aggregateID + return marshalSize; + } + + /// + /// Gets or sets the Simulation address, ie site and application, the first two fields of the entity ID + /// + [XmlElement(Type = typeof(SimulationAddress), ElementName = "simulationAddress")] + public SimulationAddress SimulationAddress + { + get + { + return this._simulationAddress; + } + + set + { + this._simulationAddress = value; + } + } + + /// + /// Gets or sets the the aggregate ID + /// + [XmlElement(Type = typeof(ushort), ElementName = "aggregateID")] + public ushort AggregateID + { + get + { + return this._aggregateID; + } + + set + { + this._aggregateID = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + this._simulationAddress.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._aggregateID); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._simulationAddress.Unmarshal(dis); + this._aggregateID = dis.ReadUnsignedShort(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine(""); + this._simulationAddress.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._aggregateID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as AggregateIdentifier; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(AggregateIdentifier obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (!this._simulationAddress.Equals(obj._simulationAddress)) + { + ivarsEqual = false; + } + + if (this._aggregateID != obj._aggregateID) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._simulationAddress.GetHashCode(); + result = GenerateHash(result) ^ this._aggregateID.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/AggregateMarking.cs b/Libs/CSharpDis7/AggregateMarking.cs new file mode 100644 index 0000000..0bebe1a --- /dev/null +++ b/Libs/CSharpDis7/AggregateMarking.cs @@ -0,0 +1,335 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Specifies the character set used in the first byte, followed by up to 31 characters of text data. Section 6.2.4. + /// + [Serializable] + [XmlRoot] + public partial class AggregateMarking + { + /// + /// The character set + /// + private byte _characterSet; + + /// + /// The characters + /// + private byte[] _characters = new byte[31]; + + /// + /// Initializes a new instance of the class. + /// + public AggregateMarking() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(AggregateMarking left, AggregateMarking right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(AggregateMarking left, AggregateMarking right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._characterSet + marshalSize += 31 * 1; // _characters + return marshalSize; + } + + /// + /// Gets or sets the The character set + /// + [XmlElement(Type = typeof(byte), ElementName = "characterSet")] + public byte CharacterSet + { + get + { + return this._characterSet; + } + + set + { + this._characterSet = value; + } + } + + /// + /// Gets or sets the The characters + /// + [XmlArray(ElementName = "characters")] + public byte[] Characters + { + get + { + return this._characters; + } + + set + { + this._characters = value; + } +} + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._characterSet); + + for (int idx = 0; idx < this._characters.Length; idx++) + { + dos.WriteUnsignedByte(this._characters[idx]); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._characterSet = dis.ReadUnsignedByte(); + for (int idx = 0; idx < this._characters.Length; idx++) + { + this._characters[idx] = dis.ReadUnsignedByte(); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._characterSet.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._characters.Length; idx++) + { + sb.AppendLine("" + this._characters[idx] + ""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as AggregateMarking; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(AggregateMarking obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._characterSet != obj._characterSet) + { + ivarsEqual = false; + } + + if (obj._characters.Length != 31) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < 31; idx++) + { + if (this._characters[idx] != obj._characters[idx]) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._characterSet.GetHashCode(); + + for (int idx = 0; idx < 31; idx++) + { + result = GenerateHash(result) ^ this._characters[idx].GetHashCode(); + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/AggregateType.cs b/Libs/CSharpDis7/AggregateType.cs new file mode 100644 index 0000000..9caa34b --- /dev/null +++ b/Libs/CSharpDis7/AggregateType.cs @@ -0,0 +1,463 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Identifies the type and organization of an aggregate. Section 6.2.5 + /// + [Serializable] + [XmlRoot] + public partial class AggregateType + { + /// + /// Grouping criterion used to group the aggregate. Enumeration from EBV document + /// + private byte _aggregateKind; + + /// + /// Domain of entity (air, surface, subsurface, space, etc) Zero means domain does not apply. + /// + private byte _domain; + + /// + /// country to which the design of the entity is attributed + /// + private ushort _country; + + /// + /// category of entity + /// + private byte _category; + + /// + /// subcategory of entity + /// + private byte _subcategory; + + /// + /// specific info based on subcategory field + /// + private byte _specific; + + private byte _extra; + + /// + /// Initializes a new instance of the class. + /// + public AggregateType() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(AggregateType left, AggregateType right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(AggregateType left, AggregateType right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._aggregateKind + marshalSize += 1; // this._domain + marshalSize += 2; // this._country + marshalSize += 1; // this._category + marshalSize += 1; // this._subcategory + marshalSize += 1; // this._specific + marshalSize += 1; // this._extra + return marshalSize; + } + + /// + /// Gets or sets the Grouping criterion used to group the aggregate. Enumeration from EBV document + /// + [XmlElement(Type = typeof(byte), ElementName = "aggregateKind")] + public byte AggregateKind + { + get + { + return this._aggregateKind; + } + + set + { + this._aggregateKind = value; + } + } + + /// + /// Gets or sets the Domain of entity (air, surface, subsurface, space, etc) Zero means domain does not apply. + /// + [XmlElement(Type = typeof(byte), ElementName = "domain")] + public byte Domain + { + get + { + return this._domain; + } + + set + { + this._domain = value; + } + } + + /// + /// Gets or sets the country to which the design of the entity is attributed + /// + [XmlElement(Type = typeof(ushort), ElementName = "country")] + public ushort Country + { + get + { + return this._country; + } + + set + { + this._country = value; + } + } + + /// + /// Gets or sets the category of entity + /// + [XmlElement(Type = typeof(byte), ElementName = "category")] + public byte Category + { + get + { + return this._category; + } + + set + { + this._category = value; + } + } + + /// + /// Gets or sets the subcategory of entity + /// + [XmlElement(Type = typeof(byte), ElementName = "subcategory")] + public byte Subcategory + { + get + { + return this._subcategory; + } + + set + { + this._subcategory = value; + } + } + + /// + /// Gets or sets the specific info based on subcategory field + /// + [XmlElement(Type = typeof(byte), ElementName = "specific")] + public byte Specific + { + get + { + return this._specific; + } + + set + { + this._specific = value; + } + } + + [XmlElement(Type = typeof(byte), ElementName = "extra")] + public byte Extra + { + get + { + return this._extra; + } + + set + { + this._extra = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._aggregateKind); + dos.WriteUnsignedByte((byte)this._domain); + dos.WriteUnsignedShort((ushort)this._country); + dos.WriteUnsignedByte((byte)this._category); + dos.WriteUnsignedByte((byte)this._subcategory); + dos.WriteUnsignedByte((byte)this._specific); + dos.WriteUnsignedByte((byte)this._extra); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._aggregateKind = dis.ReadUnsignedByte(); + this._domain = dis.ReadUnsignedByte(); + this._country = dis.ReadUnsignedShort(); + this._category = dis.ReadUnsignedByte(); + this._subcategory = dis.ReadUnsignedByte(); + this._specific = dis.ReadUnsignedByte(); + this._extra = dis.ReadUnsignedByte(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._aggregateKind.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._domain.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._country.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._category.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._subcategory.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._specific.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._extra.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as AggregateType; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(AggregateType obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._aggregateKind != obj._aggregateKind) + { + ivarsEqual = false; + } + + if (this._domain != obj._domain) + { + ivarsEqual = false; + } + + if (this._country != obj._country) + { + ivarsEqual = false; + } + + if (this._category != obj._category) + { + ivarsEqual = false; + } + + if (this._subcategory != obj._subcategory) + { + ivarsEqual = false; + } + + if (this._specific != obj._specific) + { + ivarsEqual = false; + } + + if (this._extra != obj._extra) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._aggregateKind.GetHashCode(); + result = GenerateHash(result) ^ this._domain.GetHashCode(); + result = GenerateHash(result) ^ this._country.GetHashCode(); + result = GenerateHash(result) ^ this._category.GetHashCode(); + result = GenerateHash(result) ^ this._subcategory.GetHashCode(); + result = GenerateHash(result) ^ this._specific.GetHashCode(); + result = GenerateHash(result) ^ this._extra.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/AngleDeception.cs b/Libs/CSharpDis7/AngleDeception.cs new file mode 100644 index 0000000..9cd9d41 --- /dev/null +++ b/Libs/CSharpDis7/AngleDeception.cs @@ -0,0 +1,661 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// The Angle Deception attribute record may be used to communicate discrete values that are associated with angle deception jamming that cannot be referenced to an emitter mode. The values provided in the record records (provided in the associated Electromagnetic Emission PDU). (The victim radar beams are those that are targeted by the jammer.) Section 6.2.12.2 + /// + [Serializable] + [XmlRoot] + public partial class AngleDeception + { + private uint _recordType = 3501; + + private ushort _recordLength = 48; + + private ushort _padding; + + private byte _emitterNumber; + + private byte _beamNumber; + + private byte _stateIndicator; + + private uint _padding2; + + private float _azimuthOffset; + + private float _azimuthWidth; + + private float _azimuthPullRate; + + private float _azimuthPullAcceleration; + + private float _elevationOffset; + + private float _elevationWidth; + + private float _elevationPullRate; + + private float _elevationPullAcceleration; + + private uint _padding3; + + /// + /// Initializes a new instance of the class. + /// + public AngleDeception() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(AngleDeception left, AngleDeception right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(AngleDeception left, AngleDeception right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._recordType + marshalSize += 2; // this._recordLength + marshalSize += 2; // this._padding + marshalSize += 1; // this._emitterNumber + marshalSize += 1; // this._beamNumber + marshalSize += 1; // this._stateIndicator + marshalSize += 4; // this._padding2 + marshalSize += 4; // this._azimuthOffset + marshalSize += 4; // this._azimuthWidth + marshalSize += 4; // this._azimuthPullRate + marshalSize += 4; // this._azimuthPullAcceleration + marshalSize += 4; // this._elevationOffset + marshalSize += 4; // this._elevationWidth + marshalSize += 4; // this._elevationPullRate + marshalSize += 4; // this._elevationPullAcceleration + marshalSize += 4; // this._padding3 + return marshalSize; + } + + [XmlElement(Type = typeof(uint), ElementName = "recordType")] + public uint RecordType + { + get + { + return this._recordType; + } + + set + { + this._recordType = value; + } + } + + [XmlElement(Type = typeof(ushort), ElementName = "recordLength")] + public ushort RecordLength + { + get + { + return this._recordLength; + } + + set + { + this._recordLength = value; + } + } + + [XmlElement(Type = typeof(ushort), ElementName = "padding")] + public ushort Padding + { + get + { + return this._padding; + } + + set + { + this._padding = value; + } + } + + [XmlElement(Type = typeof(byte), ElementName = "emitterNumber")] + public byte EmitterNumber + { + get + { + return this._emitterNumber; + } + + set + { + this._emitterNumber = value; + } + } + + [XmlElement(Type = typeof(byte), ElementName = "beamNumber")] + public byte BeamNumber + { + get + { + return this._beamNumber; + } + + set + { + this._beamNumber = value; + } + } + + [XmlElement(Type = typeof(byte), ElementName = "stateIndicator")] + public byte StateIndicator + { + get + { + return this._stateIndicator; + } + + set + { + this._stateIndicator = value; + } + } + + [XmlElement(Type = typeof(uint), ElementName = "padding2")] + public uint Padding2 + { + get + { + return this._padding2; + } + + set + { + this._padding2 = value; + } + } + + [XmlElement(Type = typeof(float), ElementName = "azimuthOffset")] + public float AzimuthOffset + { + get + { + return this._azimuthOffset; + } + + set + { + this._azimuthOffset = value; + } + } + + [XmlElement(Type = typeof(float), ElementName = "azimuthWidth")] + public float AzimuthWidth + { + get + { + return this._azimuthWidth; + } + + set + { + this._azimuthWidth = value; + } + } + + [XmlElement(Type = typeof(float), ElementName = "azimuthPullRate")] + public float AzimuthPullRate + { + get + { + return this._azimuthPullRate; + } + + set + { + this._azimuthPullRate = value; + } + } + + [XmlElement(Type = typeof(float), ElementName = "azimuthPullAcceleration")] + public float AzimuthPullAcceleration + { + get + { + return this._azimuthPullAcceleration; + } + + set + { + this._azimuthPullAcceleration = value; + } + } + + [XmlElement(Type = typeof(float), ElementName = "elevationOffset")] + public float ElevationOffset + { + get + { + return this._elevationOffset; + } + + set + { + this._elevationOffset = value; + } + } + + [XmlElement(Type = typeof(float), ElementName = "elevationWidth")] + public float ElevationWidth + { + get + { + return this._elevationWidth; + } + + set + { + this._elevationWidth = value; + } + } + + [XmlElement(Type = typeof(float), ElementName = "elevationPullRate")] + public float ElevationPullRate + { + get + { + return this._elevationPullRate; + } + + set + { + this._elevationPullRate = value; + } + } + + [XmlElement(Type = typeof(float), ElementName = "elevationPullAcceleration")] + public float ElevationPullAcceleration + { + get + { + return this._elevationPullAcceleration; + } + + set + { + this._elevationPullAcceleration = value; + } + } + + [XmlElement(Type = typeof(uint), ElementName = "padding3")] + public uint Padding3 + { + get + { + return this._padding3; + } + + set + { + this._padding3 = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._recordType); + dos.WriteUnsignedShort((ushort)this._recordLength); + dos.WriteUnsignedShort((ushort)this._padding); + dos.WriteUnsignedByte((byte)this._emitterNumber); + dos.WriteUnsignedByte((byte)this._beamNumber); + dos.WriteUnsignedByte((byte)this._stateIndicator); + dos.WriteUnsignedInt((uint)this._padding2); + dos.WriteFloat((float)this._azimuthOffset); + dos.WriteFloat((float)this._azimuthWidth); + dos.WriteFloat((float)this._azimuthPullRate); + dos.WriteFloat((float)this._azimuthPullAcceleration); + dos.WriteFloat((float)this._elevationOffset); + dos.WriteFloat((float)this._elevationWidth); + dos.WriteFloat((float)this._elevationPullRate); + dos.WriteFloat((float)this._elevationPullAcceleration); + dos.WriteUnsignedInt((uint)this._padding3); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._recordType = dis.ReadUnsignedInt(); + this._recordLength = dis.ReadUnsignedShort(); + this._padding = dis.ReadUnsignedShort(); + this._emitterNumber = dis.ReadUnsignedByte(); + this._beamNumber = dis.ReadUnsignedByte(); + this._stateIndicator = dis.ReadUnsignedByte(); + this._padding2 = dis.ReadUnsignedInt(); + this._azimuthOffset = dis.ReadFloat(); + this._azimuthWidth = dis.ReadFloat(); + this._azimuthPullRate = dis.ReadFloat(); + this._azimuthPullAcceleration = dis.ReadFloat(); + this._elevationOffset = dis.ReadFloat(); + this._elevationWidth = dis.ReadFloat(); + this._elevationPullRate = dis.ReadFloat(); + this._elevationPullAcceleration = dis.ReadFloat(); + this._padding3 = dis.ReadUnsignedInt(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._recordType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._recordLength.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._emitterNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._beamNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._stateIndicator.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._azimuthOffset.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._azimuthWidth.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._azimuthPullRate.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._azimuthPullAcceleration.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._elevationOffset.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._elevationWidth.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._elevationPullRate.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._elevationPullAcceleration.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding3.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as AngleDeception; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(AngleDeception obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._recordType != obj._recordType) + { + ivarsEqual = false; + } + + if (this._recordLength != obj._recordLength) + { + ivarsEqual = false; + } + + if (this._padding != obj._padding) + { + ivarsEqual = false; + } + + if (this._emitterNumber != obj._emitterNumber) + { + ivarsEqual = false; + } + + if (this._beamNumber != obj._beamNumber) + { + ivarsEqual = false; + } + + if (this._stateIndicator != obj._stateIndicator) + { + ivarsEqual = false; + } + + if (this._padding2 != obj._padding2) + { + ivarsEqual = false; + } + + if (this._azimuthOffset != obj._azimuthOffset) + { + ivarsEqual = false; + } + + if (this._azimuthWidth != obj._azimuthWidth) + { + ivarsEqual = false; + } + + if (this._azimuthPullRate != obj._azimuthPullRate) + { + ivarsEqual = false; + } + + if (this._azimuthPullAcceleration != obj._azimuthPullAcceleration) + { + ivarsEqual = false; + } + + if (this._elevationOffset != obj._elevationOffset) + { + ivarsEqual = false; + } + + if (this._elevationWidth != obj._elevationWidth) + { + ivarsEqual = false; + } + + if (this._elevationPullRate != obj._elevationPullRate) + { + ivarsEqual = false; + } + + if (this._elevationPullAcceleration != obj._elevationPullAcceleration) + { + ivarsEqual = false; + } + + if (this._padding3 != obj._padding3) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._recordType.GetHashCode(); + result = GenerateHash(result) ^ this._recordLength.GetHashCode(); + result = GenerateHash(result) ^ this._padding.GetHashCode(); + result = GenerateHash(result) ^ this._emitterNumber.GetHashCode(); + result = GenerateHash(result) ^ this._beamNumber.GetHashCode(); + result = GenerateHash(result) ^ this._stateIndicator.GetHashCode(); + result = GenerateHash(result) ^ this._padding2.GetHashCode(); + result = GenerateHash(result) ^ this._azimuthOffset.GetHashCode(); + result = GenerateHash(result) ^ this._azimuthWidth.GetHashCode(); + result = GenerateHash(result) ^ this._azimuthPullRate.GetHashCode(); + result = GenerateHash(result) ^ this._azimuthPullAcceleration.GetHashCode(); + result = GenerateHash(result) ^ this._elevationOffset.GetHashCode(); + result = GenerateHash(result) ^ this._elevationWidth.GetHashCode(); + result = GenerateHash(result) ^ this._elevationPullRate.GetHashCode(); + result = GenerateHash(result) ^ this._elevationPullAcceleration.GetHashCode(); + result = GenerateHash(result) ^ this._padding3.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/AngularVelocityVector.cs b/Libs/CSharpDis7/AngularVelocityVector.cs new file mode 100644 index 0000000..94e683c --- /dev/null +++ b/Libs/CSharpDis7/AngularVelocityVector.cs @@ -0,0 +1,341 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Angular velocity measured in radians per second out each of the entity's own coordinate axes. Order of measurement is angular velocity around the x, y, and z axis of the entity. The positive direction is determined by the right hand rule. Section 6.2.7 + /// + [Serializable] + [XmlRoot] + public partial class AngularVelocityVector + { + /// + /// velocity about the x axis + /// + private float _x; + + /// + /// velocity about the y axis + /// + private float _y; + + /// + /// velocity about the zaxis + /// + private float _z; + + /// + /// Initializes a new instance of the class. + /// + public AngularVelocityVector() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(AngularVelocityVector left, AngularVelocityVector right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(AngularVelocityVector left, AngularVelocityVector right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._x + marshalSize += 4; // this._y + marshalSize += 4; // this._z + return marshalSize; + } + + /// + /// Gets or sets the velocity about the x axis + /// + [XmlElement(Type = typeof(float), ElementName = "x")] + public float X + { + get + { + return this._x; + } + + set + { + this._x = value; + } + } + + /// + /// Gets or sets the velocity about the y axis + /// + [XmlElement(Type = typeof(float), ElementName = "y")] + public float Y + { + get + { + return this._y; + } + + set + { + this._y = value; + } + } + + /// + /// Gets or sets the velocity about the zaxis + /// + [XmlElement(Type = typeof(float), ElementName = "z")] + public float Z + { + get + { + return this._z; + } + + set + { + this._z = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteFloat((float)this._x); + dos.WriteFloat((float)this._y); + dos.WriteFloat((float)this._z); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._x = dis.ReadFloat(); + this._y = dis.ReadFloat(); + this._z = dis.ReadFloat(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._x.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._y.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._z.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as AngularVelocityVector; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(AngularVelocityVector obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._x != obj._x) + { + ivarsEqual = false; + } + + if (this._y != obj._y) + { + ivarsEqual = false; + } + + if (this._z != obj._z) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._x.GetHashCode(); + result = GenerateHash(result) ^ this._y.GetHashCode(); + result = GenerateHash(result) ^ this._z.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/AntennaLocation.cs b/Libs/CSharpDis7/AntennaLocation.cs new file mode 100644 index 0000000..295c55f --- /dev/null +++ b/Libs/CSharpDis7/AntennaLocation.cs @@ -0,0 +1,315 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Location of the radiating portion of the antenna, specified in world coordinates and entity coordinates. Section 6.2.8 + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(Vector3Double))] + [XmlInclude(typeof(Vector3Float))] + public partial class AntennaLocation + { + /// + /// Location of the radiating portion of the antenna in world coordinates + /// + private Vector3Double _antennaLocation = new Vector3Double(); + + /// + /// Location of the radiating portion of the antenna in entity coordinates + /// + private Vector3Float _relativeAntennaLocation = new Vector3Float(); + + /// + /// Initializes a new instance of the class. + /// + public AntennaLocation() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(AntennaLocation left, AntennaLocation right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(AntennaLocation left, AntennaLocation right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += this._antennaLocation.GetMarshalledSize(); // this._antennaLocation + marshalSize += this._relativeAntennaLocation.GetMarshalledSize(); // this._relativeAntennaLocation + return marshalSize; + } + + /// + /// Gets or sets the Location of the radiating portion of the antenna in world coordinates + /// + [XmlElement(Type = typeof(Vector3Double), ElementName = "antennaLocation")] + public Vector3Double AntennaLocation_ + { + get + { + return this._antennaLocation; + } + + set + { + this._antennaLocation = value; + } + } + + /// + /// Gets or sets the Location of the radiating portion of the antenna in entity coordinates + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "relativeAntennaLocation")] + public Vector3Float RelativeAntennaLocation + { + get + { + return this._relativeAntennaLocation; + } + + set + { + this._relativeAntennaLocation = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + this._antennaLocation.Marshal(dos); + this._relativeAntennaLocation.Marshal(dos); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._antennaLocation.Unmarshal(dis); + this._relativeAntennaLocation.Unmarshal(dis); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine(""); + this._antennaLocation.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._relativeAntennaLocation.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as AntennaLocation; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(AntennaLocation obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (!this._antennaLocation.Equals(obj._antennaLocation)) + { + ivarsEqual = false; + } + + if (!this._relativeAntennaLocation.Equals(obj._relativeAntennaLocation)) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._antennaLocation.GetHashCode(); + result = GenerateHash(result) ^ this._relativeAntennaLocation.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/ArealObjectStatePdu.cs b/Libs/CSharpDis7/ArealObjectStatePdu.cs new file mode 100644 index 0000000..5745e61 --- /dev/null +++ b/Libs/CSharpDis7/ArealObjectStatePdu.cs @@ -0,0 +1,685 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Information about the addition/modification of an oobject that is geometrically anchored to the terrain with a set of three or more points that come to a closure. Section 7.10.6 COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(EntityType))] + [XmlInclude(typeof(SimulationAddress))] + [XmlInclude(typeof(Vector3Double))] + public partial class ArealObjectStatePdu : SyntheticEnvironmentFamilyPdu, IEquatable + { + /// + /// Object in synthetic environment + /// + private EntityID _objectID = new EntityID(); + + /// + /// Object with which this point object is associated + /// + private EntityID _referencedObjectID = new EntityID(); + + /// + /// unique update number of each state transition of an object + /// + private ushort _updateNumber; + + /// + /// force ID + /// + private byte _forceID; + + /// + /// modifications enumeration + /// + private byte _modifications; + + /// + /// Object type + /// + private EntityType _objectType = new EntityType(); + + /// + /// Object appearance + /// + private uint _specificObjectAppearance; + + /// + /// Object appearance + /// + private ushort _generalObjectAppearance; + + /// + /// Number of points + /// + private ushort _numberOfPoints; + + /// + /// requesterID + /// + private SimulationAddress _requesterID = new SimulationAddress(); + + /// + /// receiver ID + /// + private SimulationAddress _receivingID = new SimulationAddress(); + + /// + /// location of object + /// + private List _objectLocation = new List(); + + /// + /// Initializes a new instance of the class. + /// + public ArealObjectStatePdu() + { + PduType = (byte)45; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ArealObjectStatePdu left, ArealObjectStatePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ArealObjectStatePdu left, ArealObjectStatePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._objectID.GetMarshalledSize(); // this._objectID + marshalSize += this._referencedObjectID.GetMarshalledSize(); // this._referencedObjectID + marshalSize += 2; // this._updateNumber + marshalSize += 1; // this._forceID + marshalSize += 1; // this._modifications + marshalSize += this._objectType.GetMarshalledSize(); // this._objectType + marshalSize += 4; // this._specificObjectAppearance + marshalSize += 2; // this._generalObjectAppearance + marshalSize += 2; // this._numberOfPoints + marshalSize += this._requesterID.GetMarshalledSize(); // this._requesterID + marshalSize += this._receivingID.GetMarshalledSize(); // this._receivingID + for (int idx = 0; idx < this._objectLocation.Count; idx++) + { + Vector3Double listElement = (Vector3Double)this._objectLocation[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Object in synthetic environment + /// + [XmlElement(Type = typeof(EntityID), ElementName = "objectID")] + public EntityID ObjectID + { + get + { + return this._objectID; + } + + set + { + this._objectID = value; + } + } + + /// + /// Gets or sets the Object with which this point object is associated + /// + [XmlElement(Type = typeof(EntityID), ElementName = "referencedObjectID")] + public EntityID ReferencedObjectID + { + get + { + return this._referencedObjectID; + } + + set + { + this._referencedObjectID = value; + } + } + + /// + /// Gets or sets the unique update number of each state transition of an object + /// + [XmlElement(Type = typeof(ushort), ElementName = "updateNumber")] + public ushort UpdateNumber + { + get + { + return this._updateNumber; + } + + set + { + this._updateNumber = value; + } + } + + /// + /// Gets or sets the force ID + /// + [XmlElement(Type = typeof(byte), ElementName = "forceID")] + public byte ForceID + { + get + { + return this._forceID; + } + + set + { + this._forceID = value; + } + } + + /// + /// Gets or sets the modifications enumeration + /// + [XmlElement(Type = typeof(byte), ElementName = "modifications")] + public byte Modifications + { + get + { + return this._modifications; + } + + set + { + this._modifications = value; + } + } + + /// + /// Gets or sets the Object type + /// + [XmlElement(Type = typeof(EntityType), ElementName = "objectType")] + public EntityType ObjectType + { + get + { + return this._objectType; + } + + set + { + this._objectType = value; + } + } + + /// + /// Gets or sets the Object appearance + /// + [XmlElement(Type = typeof(uint), ElementName = "specificObjectAppearance")] + public uint SpecificObjectAppearance + { + get + { + return this._specificObjectAppearance; + } + + set + { + this._specificObjectAppearance = value; + } + } + + /// + /// Gets or sets the Object appearance + /// + [XmlElement(Type = typeof(ushort), ElementName = "generalObjectAppearance")] + public ushort GeneralObjectAppearance + { + get + { + return this._generalObjectAppearance; + } + + set + { + this._generalObjectAppearance = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfPoints method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(ushort), ElementName = "numberOfPoints")] + public ushort NumberOfPoints + { + get + { + return this._numberOfPoints; + } + + set + { + this._numberOfPoints = value; + } + } + + /// + /// Gets or sets the requesterID + /// + [XmlElement(Type = typeof(SimulationAddress), ElementName = "requesterID")] + public SimulationAddress RequesterID + { + get + { + return this._requesterID; + } + + set + { + this._requesterID = value; + } + } + + /// + /// Gets or sets the receiver ID + /// + [XmlElement(Type = typeof(SimulationAddress), ElementName = "receivingID")] + public SimulationAddress ReceivingID + { + get + { + return this._receivingID; + } + + set + { + this._receivingID = value; + } + } + + /// + /// Gets or sets the location of object + /// + [XmlElement(ElementName = "objectLocationList", Type = typeof(List))] + public List ObjectLocation + { + get + { + return this._objectLocation; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._objectID.Marshal(dos); + this._referencedObjectID.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._updateNumber); + dos.WriteUnsignedByte((byte)this._forceID); + dos.WriteUnsignedByte((byte)this._modifications); + this._objectType.Marshal(dos); + dos.WriteUnsignedInt((uint)this._specificObjectAppearance); + dos.WriteUnsignedShort((ushort)this._generalObjectAppearance); + dos.WriteUnsignedShort((ushort)this._objectLocation.Count); + this._requesterID.Marshal(dos); + this._receivingID.Marshal(dos); + + for (int idx = 0; idx < this._objectLocation.Count; idx++) + { + Vector3Double aVector3Double = (Vector3Double)this._objectLocation[idx]; + aVector3Double.Marshal(dos); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._objectID.Unmarshal(dis); + this._referencedObjectID.Unmarshal(dis); + this._updateNumber = dis.ReadUnsignedShort(); + this._forceID = dis.ReadUnsignedByte(); + this._modifications = dis.ReadUnsignedByte(); + this._objectType.Unmarshal(dis); + this._specificObjectAppearance = dis.ReadUnsignedInt(); + this._generalObjectAppearance = dis.ReadUnsignedShort(); + this._numberOfPoints = dis.ReadUnsignedShort(); + this._requesterID.Unmarshal(dis); + this._receivingID.Unmarshal(dis); + for (int idx = 0; idx < this.NumberOfPoints; idx++) + { + Vector3Double anX = new Vector3Double(); + anX.Unmarshal(dis); + this._objectLocation.Add(anX); + }; + + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._objectID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._referencedObjectID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._updateNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._forceID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._modifications.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._objectType.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._specificObjectAppearance.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._generalObjectAppearance.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._objectLocation.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._requesterID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._receivingID.Reflection(sb); + sb.AppendLine(""); + for (int idx = 0; idx < this._objectLocation.Count; idx++) + { + sb.AppendLine(""); + Vector3Double aVector3Double = (Vector3Double)this._objectLocation[idx]; + aVector3Double.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ArealObjectStatePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ArealObjectStatePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._objectID.Equals(obj._objectID)) + { + ivarsEqual = false; + } + + if (!this._referencedObjectID.Equals(obj._referencedObjectID)) + { + ivarsEqual = false; + } + + if (this._updateNumber != obj._updateNumber) + { + ivarsEqual = false; + } + + if (this._forceID != obj._forceID) + { + ivarsEqual = false; + } + + if (this._modifications != obj._modifications) + { + ivarsEqual = false; + } + + if (!this._objectType.Equals(obj._objectType)) + { + ivarsEqual = false; + } + + if (this._specificObjectAppearance != obj._specificObjectAppearance) + { + ivarsEqual = false; + } + + if (this._generalObjectAppearance != obj._generalObjectAppearance) + { + ivarsEqual = false; + } + + if (this._numberOfPoints != obj._numberOfPoints) + { + ivarsEqual = false; + } + + if (!this._requesterID.Equals(obj._requesterID)) + { + ivarsEqual = false; + } + + if (!this._receivingID.Equals(obj._receivingID)) + { + ivarsEqual = false; + } + + if (this._objectLocation.Count != obj._objectLocation.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._objectLocation.Count; idx++) + { + if (!this._objectLocation[idx].Equals(obj._objectLocation[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._objectID.GetHashCode(); + result = GenerateHash(result) ^ this._referencedObjectID.GetHashCode(); + result = GenerateHash(result) ^ this._updateNumber.GetHashCode(); + result = GenerateHash(result) ^ this._forceID.GetHashCode(); + result = GenerateHash(result) ^ this._modifications.GetHashCode(); + result = GenerateHash(result) ^ this._objectType.GetHashCode(); + result = GenerateHash(result) ^ this._specificObjectAppearance.GetHashCode(); + result = GenerateHash(result) ^ this._generalObjectAppearance.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfPoints.GetHashCode(); + result = GenerateHash(result) ^ this._requesterID.GetHashCode(); + result = GenerateHash(result) ^ this._receivingID.GetHashCode(); + + if (this._objectLocation.Count > 0) + { + for (int idx = 0; idx < this._objectLocation.Count; idx++) + { + result = GenerateHash(result) ^ this._objectLocation[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/ArticulatedParts.cs b/Libs/CSharpDis7/ArticulatedParts.cs new file mode 100644 index 0000000..2276f66 --- /dev/null +++ b/Libs/CSharpDis7/ArticulatedParts.cs @@ -0,0 +1,405 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// articulated parts for movable parts and a combination of moveable/attached parts of an entity. Section 6.2.93.2 + /// + [Serializable] + [XmlRoot] + public partial class ArticulatedParts + { + /// + /// the identification of the Variable Parameter record. Enumeration from EBV + /// + private byte _recordType; + + /// + /// indicate the change of any parameter for any articulated part. Starts at zero, incremented for each change + /// + private byte _changeIndicator; + + /// + /// the identification of the articulated part to which this articulation parameter is attached. This field shall be specified by a 16-bit unsigned integer. This field shall contain the value zero if the articulated part is attached directly to the entity. + /// + private ushort _partAttachedTo; + + /// + /// the type of parameter represented, 32 bit enumeration + /// + private uint _parameterType; + + /// + /// The definition of the 64 bits shall be determined based on the type of parameter specified in the Parameter Type field + /// + private ulong _parameterValue; + + /// + /// Initializes a new instance of the class. + /// + public ArticulatedParts() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ArticulatedParts left, ArticulatedParts right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ArticulatedParts left, ArticulatedParts right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._recordType + marshalSize += 1; // this._changeIndicator + marshalSize += 2; // this._partAttachedTo + marshalSize += 4; // this._parameterType + marshalSize += 8; // this._parameterValue + return marshalSize; + } + + /// + /// Gets or sets the the identification of the Variable Parameter record. Enumeration from EBV + /// + [XmlElement(Type = typeof(byte), ElementName = "recordType")] + public byte RecordType + { + get + { + return this._recordType; + } + + set + { + this._recordType = value; + } + } + + /// + /// Gets or sets the indicate the change of any parameter for any articulated part. Starts at zero, incremented for each change + /// + [XmlElement(Type = typeof(byte), ElementName = "changeIndicator")] + public byte ChangeIndicator + { + get + { + return this._changeIndicator; + } + + set + { + this._changeIndicator = value; + } + } + + /// + /// Gets or sets the the identification of the articulated part to which this articulation parameter is attached. This field shall be specified by a 16-bit unsigned integer. This field shall contain the value zero if the articulated part is attached directly to the entity. + /// + [XmlElement(Type = typeof(ushort), ElementName = "partAttachedTo")] + public ushort PartAttachedTo + { + get + { + return this._partAttachedTo; + } + + set + { + this._partAttachedTo = value; + } + } + + /// + /// Gets or sets the the type of parameter represented, 32 bit enumeration + /// + [XmlElement(Type = typeof(uint), ElementName = "parameterType")] + public uint ParameterType + { + get + { + return this._parameterType; + } + + set + { + this._parameterType = value; + } + } + + /// + /// Gets or sets the The definition of the 64 bits shall be determined based on the type of parameter specified in the Parameter Type field + /// + [XmlElement(Type = typeof(ulong), ElementName = "parameterValue")] + public ulong ParameterValue + { + get + { + return this._parameterValue; + } + + set + { + this._parameterValue = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._recordType); + dos.WriteUnsignedByte((byte)this._changeIndicator); + dos.WriteUnsignedShort((ushort)this._partAttachedTo); + dos.WriteUnsignedInt((uint)this._parameterType); + dos.WriteUnsignedLong((ulong)this._parameterValue); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._recordType = dis.ReadUnsignedByte(); + this._changeIndicator = dis.ReadUnsignedByte(); + this._partAttachedTo = dis.ReadUnsignedShort(); + this._parameterType = dis.ReadUnsignedInt(); + this._parameterValue = dis.ReadUnsignedLong(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._recordType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._changeIndicator.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._partAttachedTo.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._parameterType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._parameterValue.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ArticulatedParts; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ArticulatedParts obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._recordType != obj._recordType) + { + ivarsEqual = false; + } + + if (this._changeIndicator != obj._changeIndicator) + { + ivarsEqual = false; + } + + if (this._partAttachedTo != obj._partAttachedTo) + { + ivarsEqual = false; + } + + if (this._parameterType != obj._parameterType) + { + ivarsEqual = false; + } + + if (this._parameterValue != obj._parameterValue) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._recordType.GetHashCode(); + result = GenerateHash(result) ^ this._changeIndicator.GetHashCode(); + result = GenerateHash(result) ^ this._partAttachedTo.GetHashCode(); + result = GenerateHash(result) ^ this._parameterType.GetHashCode(); + result = GenerateHash(result) ^ this._parameterValue.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/Association.cs b/Libs/CSharpDis7/Association.cs new file mode 100644 index 0000000..9e03f80 --- /dev/null +++ b/Libs/CSharpDis7/Association.cs @@ -0,0 +1,367 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// An entity's associations with other entities and/or locations. For each association, this record shall specify the type of the association, the associated entity's EntityID and/or the associated location's world coordinates. This record may be used (optionally) in a transfer transaction to send internal state data from the divesting simulation to the acquiring simulation (see 5.9.4). This record may also be used for other purposes. Section 6.2.10 + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(Vector3Double))] + public partial class Association + { + private byte _associationType; + + private byte _padding4; + + /// + /// identity of associated entity. If none, NO_SPECIFIC_ENTITY + /// + private EntityID _associatedEntityID = new EntityID(); + + /// + /// location, in world coordinates + /// + private Vector3Double _associatedLocation = new Vector3Double(); + + /// + /// Initializes a new instance of the class. + /// + public Association() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(Association left, Association right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(Association left, Association right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._associationType + marshalSize += 1; // this._padding4 + marshalSize += this._associatedEntityID.GetMarshalledSize(); // this._associatedEntityID + marshalSize += this._associatedLocation.GetMarshalledSize(); // this._associatedLocation + return marshalSize; + } + + [XmlElement(Type = typeof(byte), ElementName = "associationType")] + public byte AssociationType + { + get + { + return this._associationType; + } + + set + { + this._associationType = value; + } + } + + [XmlElement(Type = typeof(byte), ElementName = "padding4")] + public byte Padding4 + { + get + { + return this._padding4; + } + + set + { + this._padding4 = value; + } + } + + /// + /// Gets or sets the identity of associated entity. If none, NO_SPECIFIC_ENTITY + /// + [XmlElement(Type = typeof(EntityID), ElementName = "associatedEntityID")] + public EntityID AssociatedEntityID + { + get + { + return this._associatedEntityID; + } + + set + { + this._associatedEntityID = value; + } + } + + /// + /// Gets or sets the location, in world coordinates + /// + [XmlElement(Type = typeof(Vector3Double), ElementName = "associatedLocation")] + public Vector3Double AssociatedLocation + { + get + { + return this._associatedLocation; + } + + set + { + this._associatedLocation = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._associationType); + dos.WriteUnsignedByte((byte)this._padding4); + this._associatedEntityID.Marshal(dos); + this._associatedLocation.Marshal(dos); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._associationType = dis.ReadUnsignedByte(); + this._padding4 = dis.ReadUnsignedByte(); + this._associatedEntityID.Unmarshal(dis); + this._associatedLocation.Unmarshal(dis); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._associationType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding4.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._associatedEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._associatedLocation.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as Association; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(Association obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._associationType != obj._associationType) + { + ivarsEqual = false; + } + + if (this._padding4 != obj._padding4) + { + ivarsEqual = false; + } + + if (!this._associatedEntityID.Equals(obj._associatedEntityID)) + { + ivarsEqual = false; + } + + if (!this._associatedLocation.Equals(obj._associatedLocation)) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._associationType.GetHashCode(); + result = GenerateHash(result) ^ this._padding4.GetHashCode(); + result = GenerateHash(result) ^ this._associatedEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._associatedLocation.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/AttachedParts.cs b/Libs/CSharpDis7/AttachedParts.cs new file mode 100644 index 0000000..3e41b87 --- /dev/null +++ b/Libs/CSharpDis7/AttachedParts.cs @@ -0,0 +1,405 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Removable parts that may be attached to an entity. Section 6.2.93.3 + /// + [Serializable] + [XmlRoot] + public partial class AttachedParts + { + /// + /// the identification of the Variable Parameter record. Enumeration from EBV + /// + private byte _recordType = 1; + + /// + /// 0 = attached, 1 = detached. See I.2.3.1 for state transition diagram + /// + private byte _detachedIndicator; + + /// + /// the identification of the articulated part to which this articulation parameter is attached. This field shall be specified by a 16-bit unsigned integer. This field shall contain the value zero if the articulated part is attached directly to the entity. + /// + private ushort _partAttachedTo; + + /// + /// The location or station to which the part is attached + /// + private uint _parameterType; + + /// + /// The definition of the 64 bits shall be determined based on the type of parameter specified in the Parameter Type field + /// + private ulong _parameterValue; + + /// + /// Initializes a new instance of the class. + /// + public AttachedParts() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(AttachedParts left, AttachedParts right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(AttachedParts left, AttachedParts right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._recordType + marshalSize += 1; // this._detachedIndicator + marshalSize += 2; // this._partAttachedTo + marshalSize += 4; // this._parameterType + marshalSize += 8; // this._parameterValue + return marshalSize; + } + + /// + /// Gets or sets the the identification of the Variable Parameter record. Enumeration from EBV + /// + [XmlElement(Type = typeof(byte), ElementName = "recordType")] + public byte RecordType + { + get + { + return this._recordType; + } + + set + { + this._recordType = value; + } + } + + /// + /// Gets or sets the 0 = attached, 1 = detached. See I.2.3.1 for state transition diagram + /// + [XmlElement(Type = typeof(byte), ElementName = "detachedIndicator")] + public byte DetachedIndicator + { + get + { + return this._detachedIndicator; + } + + set + { + this._detachedIndicator = value; + } + } + + /// + /// Gets or sets the the identification of the articulated part to which this articulation parameter is attached. This field shall be specified by a 16-bit unsigned integer. This field shall contain the value zero if the articulated part is attached directly to the entity. + /// + [XmlElement(Type = typeof(ushort), ElementName = "partAttachedTo")] + public ushort PartAttachedTo + { + get + { + return this._partAttachedTo; + } + + set + { + this._partAttachedTo = value; + } + } + + /// + /// Gets or sets the The location or station to which the part is attached + /// + [XmlElement(Type = typeof(uint), ElementName = "parameterType")] + public uint ParameterType + { + get + { + return this._parameterType; + } + + set + { + this._parameterType = value; + } + } + + /// + /// Gets or sets the The definition of the 64 bits shall be determined based on the type of parameter specified in the Parameter Type field + /// + [XmlElement(Type = typeof(ulong), ElementName = "parameterValue")] + public ulong ParameterValue + { + get + { + return this._parameterValue; + } + + set + { + this._parameterValue = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._recordType); + dos.WriteUnsignedByte((byte)this._detachedIndicator); + dos.WriteUnsignedShort((ushort)this._partAttachedTo); + dos.WriteUnsignedInt((uint)this._parameterType); + dos.WriteUnsignedLong((ulong)this._parameterValue); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._recordType = dis.ReadUnsignedByte(); + this._detachedIndicator = dis.ReadUnsignedByte(); + this._partAttachedTo = dis.ReadUnsignedShort(); + this._parameterType = dis.ReadUnsignedInt(); + this._parameterValue = dis.ReadUnsignedLong(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._recordType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._detachedIndicator.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._partAttachedTo.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._parameterType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._parameterValue.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as AttachedParts; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(AttachedParts obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._recordType != obj._recordType) + { + ivarsEqual = false; + } + + if (this._detachedIndicator != obj._detachedIndicator) + { + ivarsEqual = false; + } + + if (this._partAttachedTo != obj._partAttachedTo) + { + ivarsEqual = false; + } + + if (this._parameterType != obj._parameterType) + { + ivarsEqual = false; + } + + if (this._parameterValue != obj._parameterValue) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._recordType.GetHashCode(); + result = GenerateHash(result) ^ this._detachedIndicator.GetHashCode(); + result = GenerateHash(result) ^ this._partAttachedTo.GetHashCode(); + result = GenerateHash(result) ^ this._parameterType.GetHashCode(); + result = GenerateHash(result) ^ this._parameterValue.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/Attribute.cs b/Libs/CSharpDis7/Attribute.cs new file mode 100644 index 0000000..af8503c --- /dev/null +++ b/Libs/CSharpDis7/Attribute.cs @@ -0,0 +1,323 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Used to convey information for one or more attributes. Attributes conform to the standard variable record format of 6.2.82. Section 6.2.11 + /// + [Serializable] + [XmlRoot] + public partial class Attribute + { + private uint _recordType; + + private byte _recordLength; + + private ulong _recordSpecificFields; + + /// + /// Initializes a new instance of the class. + /// + public Attribute() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(Attribute left, Attribute right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(Attribute left, Attribute right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._recordType + marshalSize += 1; // this._recordLength + marshalSize += 8; // this._recordSpecificFields + return marshalSize; + } + + [XmlElement(Type = typeof(uint), ElementName = "recordType")] + public uint RecordType + { + get + { + return this._recordType; + } + + set + { + this._recordType = value; + } + } + + [XmlElement(Type = typeof(byte), ElementName = "recordLength")] + public byte RecordLength + { + get + { + return this._recordLength; + } + + set + { + this._recordLength = value; + } + } + + [XmlElement(Type = typeof(ulong), ElementName = "recordSpecificFields")] + public ulong RecordSpecificFields + { + get + { + return this._recordSpecificFields; + } + + set + { + this._recordSpecificFields = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._recordType); + dos.WriteUnsignedByte((byte)this._recordLength); + dos.WriteUnsignedLong((ulong)this._recordSpecificFields); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._recordType = dis.ReadUnsignedInt(); + this._recordLength = dis.ReadUnsignedByte(); + this._recordSpecificFields = dis.ReadUnsignedLong(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._recordType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._recordLength.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._recordSpecificFields.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as Attribute; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(Attribute obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._recordType != obj._recordType) + { + ivarsEqual = false; + } + + if (this._recordLength != obj._recordLength) + { + ivarsEqual = false; + } + + if (this._recordSpecificFields != obj._recordSpecificFields) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._recordType.GetHashCode(); + result = GenerateHash(result) ^ this._recordLength.GetHashCode(); + result = GenerateHash(result) ^ this._recordSpecificFields.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/AttributePdu.cs b/Libs/CSharpDis7/AttributePdu.cs new file mode 100644 index 0000000..466a155 --- /dev/null +++ b/Libs/CSharpDis7/AttributePdu.cs @@ -0,0 +1,539 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Information about individual attributes for a particular entity, other object, or event may be communicated using an Attribute PDU. The Attribute PDU shall not be used to exchange data available in any other PDU except where explicitly mentioned in the PDU issuance instructions within this standard. See 5.3.6 for the information requirements and issuance and receipt rules for this PDU. Section 7.2.6. INCOMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(SimulationAddress))] + public partial class AttributePdu : EntityInformationFamilyPdu, IEquatable + { + /// + /// This field shall identify the simulation issuing the Attribute PDU. It shall be represented by a Simulation Address record (see 6.2.79). + /// + private SimulationAddress _originatingSimulationAddress = new SimulationAddress(); + + /// + /// Padding + /// + private int _padding1; + + /// + /// Padding + /// + private short _padding2; + + /// + /// This field shall represent the type of the PDU that is being extended or updated, if applicable. It shall be represented by an 8-bit enumeration. + /// + private byte _attributeRecordPduType; + + /// + /// This field shall indicate the Protocol Version associated with the Attribute Record PDU Type. It shall be represented by an 8-bit enumeration. + /// + private byte _attributeRecordProtocolVersion; + + /// + /// This field shall contain the Attribute record type of the Attribute records in the PDU if they all have the same Attribute record type. It shall be represented by a 32-bit enumeration. + /// + private uint _masterAttributeRecordType; + + /// + /// This field shall identify the action code applicable to this Attribute PDU. The Action Code shall apply to all Attribute records contained in the PDU. It shall be represented by an 8-bit enumeration. + /// + private byte _actionCode; + + /// + /// Padding + /// + private byte _padding3; + + /// + /// This field shall specify the number of Attribute Record Sets that make up the remainder of the PDU. It shall be represented by a 16-bit unsigned integer. + /// + private ushort _numberAttributeRecordSet; + + /// + /// Initializes a new instance of the class. + /// + public AttributePdu() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(AttributePdu left, AttributePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(AttributePdu left, AttributePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._originatingSimulationAddress.GetMarshalledSize(); // this._originatingSimulationAddress + marshalSize += 4; // this._padding1 + marshalSize += 2; // this._padding2 + marshalSize += 1; // this._attributeRecordPduType + marshalSize += 1; // this._attributeRecordProtocolVersion + marshalSize += 4; // this._masterAttributeRecordType + marshalSize += 1; // this._actionCode + marshalSize += 1; // this._padding3 + marshalSize += 2; // this._numberAttributeRecordSet + return marshalSize; + } + + /// + /// Gets or sets the This field shall identify the simulation issuing the Attribute PDU. It shall be represented by a Simulation Address record (see 6.2.79). + /// + [XmlElement(Type = typeof(SimulationAddress), ElementName = "originatingSimulationAddress")] + public SimulationAddress OriginatingSimulationAddress + { + get + { + return this._originatingSimulationAddress; + } + + set + { + this._originatingSimulationAddress = value; + } + } + + /// + /// Gets or sets the Padding + /// + [XmlElement(Type = typeof(int), ElementName = "padding1")] + public int Padding1 + { + get + { + return this._padding1; + } + + set + { + this._padding1 = value; + } + } + + /// + /// Gets or sets the Padding + /// + [XmlElement(Type = typeof(short), ElementName = "padding2")] + public short Padding2 + { + get + { + return this._padding2; + } + + set + { + this._padding2 = value; + } + } + + /// + /// Gets or sets the This field shall represent the type of the PDU that is being extended or updated, if applicable. It shall be represented by an 8-bit enumeration. + /// + [XmlElement(Type = typeof(byte), ElementName = "attributeRecordPduType")] + public byte AttributeRecordPduType + { + get + { + return this._attributeRecordPduType; + } + + set + { + this._attributeRecordPduType = value; + } + } + + /// + /// Gets or sets the This field shall indicate the Protocol Version associated with the Attribute Record PDU Type. It shall be represented by an 8-bit enumeration. + /// + [XmlElement(Type = typeof(byte), ElementName = "attributeRecordProtocolVersion")] + public byte AttributeRecordProtocolVersion + { + get + { + return this._attributeRecordProtocolVersion; + } + + set + { + this._attributeRecordProtocolVersion = value; + } + } + + /// + /// Gets or sets the This field shall contain the Attribute record type of the Attribute records in the PDU if they all have the same Attribute record type. It shall be represented by a 32-bit enumeration. + /// + [XmlElement(Type = typeof(uint), ElementName = "masterAttributeRecordType")] + public uint MasterAttributeRecordType + { + get + { + return this._masterAttributeRecordType; + } + + set + { + this._masterAttributeRecordType = value; + } + } + + /// + /// Gets or sets the This field shall identify the action code applicable to this Attribute PDU. The Action Code shall apply to all Attribute records contained in the PDU. It shall be represented by an 8-bit enumeration. + /// + [XmlElement(Type = typeof(byte), ElementName = "actionCode")] + public byte ActionCode + { + get + { + return this._actionCode; + } + + set + { + this._actionCode = value; + } + } + + /// + /// Gets or sets the Padding + /// + [XmlElement(Type = typeof(byte), ElementName = "padding3")] + public byte Padding3 + { + get + { + return this._padding3; + } + + set + { + this._padding3 = value; + } + } + + /// + /// Gets or sets the This field shall specify the number of Attribute Record Sets that make up the remainder of the PDU. It shall be represented by a 16-bit unsigned integer. + /// + [XmlElement(Type = typeof(ushort), ElementName = "numberAttributeRecordSet")] + public ushort NumberAttributeRecordSet + { + get + { + return this._numberAttributeRecordSet; + } + + set + { + this._numberAttributeRecordSet = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._originatingSimulationAddress.Marshal(dos); + dos.WriteInt((int)this._padding1); + dos.WriteShort((short)this._padding2); + dos.WriteUnsignedByte((byte)this._attributeRecordPduType); + dos.WriteUnsignedByte((byte)this._attributeRecordProtocolVersion); + dos.WriteUnsignedInt((uint)this._masterAttributeRecordType); + dos.WriteUnsignedByte((byte)this._actionCode); + dos.WriteByte((byte)this._padding3); + dos.WriteUnsignedShort((ushort)this._numberAttributeRecordSet); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._originatingSimulationAddress.Unmarshal(dis); + this._padding1 = dis.ReadInt(); + this._padding2 = dis.ReadShort(); + this._attributeRecordPduType = dis.ReadUnsignedByte(); + this._attributeRecordProtocolVersion = dis.ReadUnsignedByte(); + this._masterAttributeRecordType = dis.ReadUnsignedInt(); + this._actionCode = dis.ReadUnsignedByte(); + this._padding3 = dis.ReadByte(); + this._numberAttributeRecordSet = dis.ReadUnsignedShort(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._originatingSimulationAddress.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._attributeRecordPduType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._attributeRecordProtocolVersion.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._masterAttributeRecordType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._actionCode.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding3.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._numberAttributeRecordSet.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as AttributePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(AttributePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._originatingSimulationAddress.Equals(obj._originatingSimulationAddress)) + { + ivarsEqual = false; + } + + if (this._padding1 != obj._padding1) + { + ivarsEqual = false; + } + + if (this._padding2 != obj._padding2) + { + ivarsEqual = false; + } + + if (this._attributeRecordPduType != obj._attributeRecordPduType) + { + ivarsEqual = false; + } + + if (this._attributeRecordProtocolVersion != obj._attributeRecordProtocolVersion) + { + ivarsEqual = false; + } + + if (this._masterAttributeRecordType != obj._masterAttributeRecordType) + { + ivarsEqual = false; + } + + if (this._actionCode != obj._actionCode) + { + ivarsEqual = false; + } + + if (this._padding3 != obj._padding3) + { + ivarsEqual = false; + } + + if (this._numberAttributeRecordSet != obj._numberAttributeRecordSet) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._originatingSimulationAddress.GetHashCode(); + result = GenerateHash(result) ^ this._padding1.GetHashCode(); + result = GenerateHash(result) ^ this._padding2.GetHashCode(); + result = GenerateHash(result) ^ this._attributeRecordPduType.GetHashCode(); + result = GenerateHash(result) ^ this._attributeRecordProtocolVersion.GetHashCode(); + result = GenerateHash(result) ^ this._masterAttributeRecordType.GetHashCode(); + result = GenerateHash(result) ^ this._actionCode.GetHashCode(); + result = GenerateHash(result) ^ this._padding3.GetHashCode(); + result = GenerateHash(result) ^ this._numberAttributeRecordSet.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/BeamAntennaPattern.cs b/Libs/CSharpDis7/BeamAntennaPattern.cs new file mode 100644 index 0000000..8787d61 --- /dev/null +++ b/Libs/CSharpDis7/BeamAntennaPattern.cs @@ -0,0 +1,538 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Used when the antenna pattern type field has a value of 1. Specifies the direction, pattern, and polarization of radiation from an antenna. Section 6.2.9.2 + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EulerAngles))] + public partial class BeamAntennaPattern + { + /// + /// The rotation that transforms the reference coordinate sytem into the beam coordinate system. Either world coordinates or entity coordinates may be used as the reference coordinate system, as specified by the reference system field of the antenna pattern record. + /// + private EulerAngles _beamDirection = new EulerAngles(); + + private float _azimuthBeamwidth; + + private float _elevationBeamwidth; + + private float _referenceSystem; + + private byte _padding1; + + private ushort _padding2; + + /// + /// This field shall specify the magnitude of the Z-component (in beam coordinates) of the Electrical field at some arbitrary single point in the main beam and in the far field of the antenna. + /// + private float _ez = 0.0; + + /// + /// This field shall specify the magnitude of the X-component (in beam coordinates) of the Electri- cal field at some arbitrary single point in the main beam and in the far field of the antenna. + /// + private float _ex = 0.0; + + /// + /// This field shall specify the phase angle between EZ and EX in radians. If fully omni-direc- tional antenna is modeled using beam pattern type one, the omni-directional antenna shall be repre- sented by beam direction Euler angles psi, theta, and phi of zero, an azimuth beamwidth of 2PI, and an elevation beamwidth of PI + /// + private float _phase = 0.0; + + /// + /// padding + /// + private uint _padding3; + + /// + /// Initializes a new instance of the class. + /// + public BeamAntennaPattern() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(BeamAntennaPattern left, BeamAntennaPattern right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(BeamAntennaPattern left, BeamAntennaPattern right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += this._beamDirection.GetMarshalledSize(); // this._beamDirection + marshalSize += 4; // this._azimuthBeamwidth + marshalSize += 4; // this._elevationBeamwidth + marshalSize += 4; // this._referenceSystem + marshalSize += 1; // this._padding1 + marshalSize += 2; // this._padding2 + marshalSize += 4; // this._ez + marshalSize += 4; // this._ex + marshalSize += 4; // this._phase + marshalSize += 4; // this._padding3 + return marshalSize; + } + + /// + /// Gets or sets the The rotation that transforms the reference coordinate sytem into the beam coordinate system. Either world coordinates or entity coordinates may be used as the reference coordinate system, as specified by the reference system field of the antenna pattern record. + /// + [XmlElement(Type = typeof(EulerAngles), ElementName = "beamDirection")] + public EulerAngles BeamDirection + { + get + { + return this._beamDirection; + } + + set + { + this._beamDirection = value; + } + } + + [XmlElement(Type = typeof(float), ElementName = "azimuthBeamwidth")] + public float AzimuthBeamwidth + { + get + { + return this._azimuthBeamwidth; + } + + set + { + this._azimuthBeamwidth = value; + } + } + + [XmlElement(Type = typeof(float), ElementName = "elevationBeamwidth")] + public float ElevationBeamwidth + { + get + { + return this._elevationBeamwidth; + } + + set + { + this._elevationBeamwidth = value; + } + } + + [XmlElement(Type = typeof(float), ElementName = "referenceSystem")] + public float ReferenceSystem + { + get + { + return this._referenceSystem; + } + + set + { + this._referenceSystem = value; + } + } + + [XmlElement(Type = typeof(byte), ElementName = "padding1")] + public byte Padding1 + { + get + { + return this._padding1; + } + + set + { + this._padding1 = value; + } + } + + [XmlElement(Type = typeof(ushort), ElementName = "padding2")] + public ushort Padding2 + { + get + { + return this._padding2; + } + + set + { + this._padding2 = value; + } + } + + /// + /// Gets or sets the This field shall specify the magnitude of the Z-component (in beam coordinates) of the Electrical field at some arbitrary single point in the main beam and in the far field of the antenna. + /// + [XmlElement(Type = typeof(float), ElementName = "ez")] + public float Ez + { + get + { + return this._ez; + } + + set + { + this._ez = value; + } + } + + /// + /// Gets or sets the This field shall specify the magnitude of the X-component (in beam coordinates) of the Electri- cal field at some arbitrary single point in the main beam and in the far field of the antenna. + /// + [XmlElement(Type = typeof(float), ElementName = "ex")] + public float Ex + { + get + { + return this._ex; + } + + set + { + this._ex = value; + } + } + + /// + /// Gets or sets the This field shall specify the phase angle between EZ and EX in radians. If fully omni-direc- tional antenna is modeled using beam pattern type one, the omni-directional antenna shall be repre- sented by beam direction Euler angles psi, theta, and phi of zero, an azimuth beamwidth of 2PI, and an elevation beamwidth of PI + /// + [XmlElement(Type = typeof(float), ElementName = "phase")] + public float Phase + { + get + { + return this._phase; + } + + set + { + this._phase = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(uint), ElementName = "padding3")] + public uint Padding3 + { + get + { + return this._padding3; + } + + set + { + this._padding3 = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + this._beamDirection.Marshal(dos); + dos.WriteFloat((float)this._azimuthBeamwidth); + dos.WriteFloat((float)this._elevationBeamwidth); + dos.WriteFloat((float)this._referenceSystem); + dos.WriteUnsignedByte((byte)this._padding1); + dos.WriteUnsignedShort((ushort)this._padding2); + dos.WriteFloat((float)this._ez); + dos.WriteFloat((float)this._ex); + dos.WriteFloat((float)this._phase); + dos.WriteUnsignedInt((uint)this._padding3); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._beamDirection.Unmarshal(dis); + this._azimuthBeamwidth = dis.ReadFloat(); + this._elevationBeamwidth = dis.ReadFloat(); + this._referenceSystem = dis.ReadFloat(); + this._padding1 = dis.ReadUnsignedByte(); + this._padding2 = dis.ReadUnsignedShort(); + this._ez = dis.ReadFloat(); + this._ex = dis.ReadFloat(); + this._phase = dis.ReadFloat(); + this._padding3 = dis.ReadUnsignedInt(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine(""); + this._beamDirection.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._azimuthBeamwidth.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._elevationBeamwidth.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._referenceSystem.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._ez.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._ex.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._phase.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding3.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as BeamAntennaPattern; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(BeamAntennaPattern obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (!this._beamDirection.Equals(obj._beamDirection)) + { + ivarsEqual = false; + } + + if (this._azimuthBeamwidth != obj._azimuthBeamwidth) + { + ivarsEqual = false; + } + + if (this._elevationBeamwidth != obj._elevationBeamwidth) + { + ivarsEqual = false; + } + + if (this._referenceSystem != obj._referenceSystem) + { + ivarsEqual = false; + } + + if (this._padding1 != obj._padding1) + { + ivarsEqual = false; + } + + if (this._padding2 != obj._padding2) + { + ivarsEqual = false; + } + + if (this._ez != obj._ez) + { + ivarsEqual = false; + } + + if (this._ex != obj._ex) + { + ivarsEqual = false; + } + + if (this._phase != obj._phase) + { + ivarsEqual = false; + } + + if (this._padding3 != obj._padding3) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._beamDirection.GetHashCode(); + result = GenerateHash(result) ^ this._azimuthBeamwidth.GetHashCode(); + result = GenerateHash(result) ^ this._elevationBeamwidth.GetHashCode(); + result = GenerateHash(result) ^ this._referenceSystem.GetHashCode(); + result = GenerateHash(result) ^ this._padding1.GetHashCode(); + result = GenerateHash(result) ^ this._padding2.GetHashCode(); + result = GenerateHash(result) ^ this._ez.GetHashCode(); + result = GenerateHash(result) ^ this._ex.GetHashCode(); + result = GenerateHash(result) ^ this._phase.GetHashCode(); + result = GenerateHash(result) ^ this._padding3.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/BeamData.cs b/Libs/CSharpDis7/BeamData.cs new file mode 100644 index 0000000..ccbe7a7 --- /dev/null +++ b/Libs/CSharpDis7/BeamData.cs @@ -0,0 +1,405 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Describes the scan volue of an emitter beam. Section 6.2.13. + /// + [Serializable] + [XmlRoot] + public partial class BeamData + { + /// + /// Specifies the beam azimuth an elevation centers and corresponding half-angles to describe the scan volume + /// + private float _beamAzimuthCenter; + + /// + /// Specifies the beam azimuth sweep to determine scan volume + /// + private float _beamAzimuthSweep; + + /// + /// Specifies the beam elevation center to determine scan volume + /// + private float _beamElevationCenter; + + /// + /// Specifies the beam elevation sweep to determine scan volume + /// + private float _beamElevationSweep; + + /// + /// allows receiver to synchronize its regenerated scan pattern to that of the emmitter. Specifies the percentage of time a scan is through its pattern from its origion. + /// + private float _beamSweepSync; + + /// + /// Initializes a new instance of the class. + /// + public BeamData() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(BeamData left, BeamData right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(BeamData left, BeamData right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._beamAzimuthCenter + marshalSize += 4; // this._beamAzimuthSweep + marshalSize += 4; // this._beamElevationCenter + marshalSize += 4; // this._beamElevationSweep + marshalSize += 4; // this._beamSweepSync + return marshalSize; + } + + /// + /// Gets or sets the Specifies the beam azimuth an elevation centers and corresponding half-angles to describe the scan volume + /// + [XmlElement(Type = typeof(float), ElementName = "beamAzimuthCenter")] + public float BeamAzimuthCenter + { + get + { + return this._beamAzimuthCenter; + } + + set + { + this._beamAzimuthCenter = value; + } + } + + /// + /// Gets or sets the Specifies the beam azimuth sweep to determine scan volume + /// + [XmlElement(Type = typeof(float), ElementName = "beamAzimuthSweep")] + public float BeamAzimuthSweep + { + get + { + return this._beamAzimuthSweep; + } + + set + { + this._beamAzimuthSweep = value; + } + } + + /// + /// Gets or sets the Specifies the beam elevation center to determine scan volume + /// + [XmlElement(Type = typeof(float), ElementName = "beamElevationCenter")] + public float BeamElevationCenter + { + get + { + return this._beamElevationCenter; + } + + set + { + this._beamElevationCenter = value; + } + } + + /// + /// Gets or sets the Specifies the beam elevation sweep to determine scan volume + /// + [XmlElement(Type = typeof(float), ElementName = "beamElevationSweep")] + public float BeamElevationSweep + { + get + { + return this._beamElevationSweep; + } + + set + { + this._beamElevationSweep = value; + } + } + + /// + /// Gets or sets the allows receiver to synchronize its regenerated scan pattern to that of the emmitter. Specifies the percentage of time a scan is through its pattern from its origion. + /// + [XmlElement(Type = typeof(float), ElementName = "beamSweepSync")] + public float BeamSweepSync + { + get + { + return this._beamSweepSync; + } + + set + { + this._beamSweepSync = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteFloat((float)this._beamAzimuthCenter); + dos.WriteFloat((float)this._beamAzimuthSweep); + dos.WriteFloat((float)this._beamElevationCenter); + dos.WriteFloat((float)this._beamElevationSweep); + dos.WriteFloat((float)this._beamSweepSync); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._beamAzimuthCenter = dis.ReadFloat(); + this._beamAzimuthSweep = dis.ReadFloat(); + this._beamElevationCenter = dis.ReadFloat(); + this._beamElevationSweep = dis.ReadFloat(); + this._beamSweepSync = dis.ReadFloat(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._beamAzimuthCenter.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._beamAzimuthSweep.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._beamElevationCenter.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._beamElevationSweep.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._beamSweepSync.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as BeamData; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(BeamData obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._beamAzimuthCenter != obj._beamAzimuthCenter) + { + ivarsEqual = false; + } + + if (this._beamAzimuthSweep != obj._beamAzimuthSweep) + { + ivarsEqual = false; + } + + if (this._beamElevationCenter != obj._beamElevationCenter) + { + ivarsEqual = false; + } + + if (this._beamElevationSweep != obj._beamElevationSweep) + { + ivarsEqual = false; + } + + if (this._beamSweepSync != obj._beamSweepSync) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._beamAzimuthCenter.GetHashCode(); + result = GenerateHash(result) ^ this._beamAzimuthSweep.GetHashCode(); + result = GenerateHash(result) ^ this._beamElevationCenter.GetHashCode(); + result = GenerateHash(result) ^ this._beamElevationSweep.GetHashCode(); + result = GenerateHash(result) ^ this._beamSweepSync.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/BeamStatus.cs b/Libs/CSharpDis7/BeamStatus.cs new file mode 100644 index 0000000..44d9960 --- /dev/null +++ b/Libs/CSharpDis7/BeamStatus.cs @@ -0,0 +1,277 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Information related to the status of a beam. This is contained in the beam status field of the electromagnitec emission PDU. The first bit determines whether the beam is active (0) or deactivated (1). + /// + [Serializable] + [XmlRoot] + public partial class BeamStatus + { + /// + /// First bit zero means beam is active, first bit = 1 means deactivated. The rest is padding. + /// + private byte _beamState; + + /// + /// Initializes a new instance of the class. + /// + public BeamStatus() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(BeamStatus left, BeamStatus right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(BeamStatus left, BeamStatus right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._beamState + return marshalSize; + } + + /// + /// Gets or sets the First bit zero means beam is active, first bit = 1 means deactivated. The rest is padding. + /// + [XmlElement(Type = typeof(byte), ElementName = "beamState")] + public byte BeamState + { + get + { + return this._beamState; + } + + set + { + this._beamState = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._beamState); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._beamState = dis.ReadUnsignedByte(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._beamState.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as BeamStatus; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(BeamStatus obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._beamState != obj._beamState) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._beamState.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/BlankingSector.cs b/Libs/CSharpDis7/BlankingSector.cs new file mode 100644 index 0000000..f257d78 --- /dev/null +++ b/Libs/CSharpDis7/BlankingSector.cs @@ -0,0 +1,505 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// The Blanking Sector attribute record may be used to convey persistent areas within a scan volume where emitter power for a specific active emitter beam is reduced to an insignificant value. Section 6.2.12 + /// + [Serializable] + [XmlRoot] + public partial class BlankingSector + { + private uint _recordType = 3500; + + private ushort _recordLength; + + private byte _emitterNumber; + + private byte _beamNumber; + + private byte _stateIndicator; + + private float _leftAzimuth; + + private float _rightAzimuth; + + private float _lowerElevation; + + private float _upperElevation; + + private float _residualPower; + + /// + /// Initializes a new instance of the class. + /// + public BlankingSector() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(BlankingSector left, BlankingSector right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(BlankingSector left, BlankingSector right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._recordType + marshalSize += 2; // this._recordLength + marshalSize += 1; // this._emitterNumber + marshalSize += 1; // this._beamNumber + marshalSize += 1; // this._stateIndicator + marshalSize += 4; // this._leftAzimuth + marshalSize += 4; // this._rightAzimuth + marshalSize += 4; // this._lowerElevation + marshalSize += 4; // this._upperElevation + marshalSize += 4; // this._residualPower + return marshalSize; + } + + [XmlElement(Type = typeof(uint), ElementName = "recordType")] + public uint RecordType + { + get + { + return this._recordType; + } + + set + { + this._recordType = value; + } + } + + [XmlElement(Type = typeof(ushort), ElementName = "recordLength")] + public ushort RecordLength + { + get + { + return this._recordLength; + } + + set + { + this._recordLength = value; + } + } + + [XmlElement(Type = typeof(byte), ElementName = "emitterNumber")] + public byte EmitterNumber + { + get + { + return this._emitterNumber; + } + + set + { + this._emitterNumber = value; + } + } + + [XmlElement(Type = typeof(byte), ElementName = "beamNumber")] + public byte BeamNumber + { + get + { + return this._beamNumber; + } + + set + { + this._beamNumber = value; + } + } + + [XmlElement(Type = typeof(byte), ElementName = "stateIndicator")] + public byte StateIndicator + { + get + { + return this._stateIndicator; + } + + set + { + this._stateIndicator = value; + } + } + + [XmlElement(Type = typeof(float), ElementName = "leftAzimuth")] + public float LeftAzimuth + { + get + { + return this._leftAzimuth; + } + + set + { + this._leftAzimuth = value; + } + } + + [XmlElement(Type = typeof(float), ElementName = "rightAzimuth")] + public float RightAzimuth + { + get + { + return this._rightAzimuth; + } + + set + { + this._rightAzimuth = value; + } + } + + [XmlElement(Type = typeof(float), ElementName = "lowerElevation")] + public float LowerElevation + { + get + { + return this._lowerElevation; + } + + set + { + this._lowerElevation = value; + } + } + + [XmlElement(Type = typeof(float), ElementName = "upperElevation")] + public float UpperElevation + { + get + { + return this._upperElevation; + } + + set + { + this._upperElevation = value; + } + } + + [XmlElement(Type = typeof(float), ElementName = "residualPower")] + public float ResidualPower + { + get + { + return this._residualPower; + } + + set + { + this._residualPower = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._recordType); + dos.WriteUnsignedShort((ushort)this._recordLength); + dos.WriteUnsignedByte((byte)this._emitterNumber); + dos.WriteUnsignedByte((byte)this._beamNumber); + dos.WriteUnsignedByte((byte)this._stateIndicator); + dos.WriteFloat((float)this._leftAzimuth); + dos.WriteFloat((float)this._rightAzimuth); + dos.WriteFloat((float)this._lowerElevation); + dos.WriteFloat((float)this._upperElevation); + dos.WriteFloat((float)this._residualPower); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._recordType = dis.ReadUnsignedInt(); + this._recordLength = dis.ReadUnsignedShort(); + this._emitterNumber = dis.ReadUnsignedByte(); + this._beamNumber = dis.ReadUnsignedByte(); + this._stateIndicator = dis.ReadUnsignedByte(); + this._leftAzimuth = dis.ReadFloat(); + this._rightAzimuth = dis.ReadFloat(); + this._lowerElevation = dis.ReadFloat(); + this._upperElevation = dis.ReadFloat(); + this._residualPower = dis.ReadFloat(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._recordType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._recordLength.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._emitterNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._beamNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._stateIndicator.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._leftAzimuth.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._rightAzimuth.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._lowerElevation.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._upperElevation.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._residualPower.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as BlankingSector; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(BlankingSector obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._recordType != obj._recordType) + { + ivarsEqual = false; + } + + if (this._recordLength != obj._recordLength) + { + ivarsEqual = false; + } + + if (this._emitterNumber != obj._emitterNumber) + { + ivarsEqual = false; + } + + if (this._beamNumber != obj._beamNumber) + { + ivarsEqual = false; + } + + if (this._stateIndicator != obj._stateIndicator) + { + ivarsEqual = false; + } + + if (this._leftAzimuth != obj._leftAzimuth) + { + ivarsEqual = false; + } + + if (this._rightAzimuth != obj._rightAzimuth) + { + ivarsEqual = false; + } + + if (this._lowerElevation != obj._lowerElevation) + { + ivarsEqual = false; + } + + if (this._upperElevation != obj._upperElevation) + { + ivarsEqual = false; + } + + if (this._residualPower != obj._residualPower) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._recordType.GetHashCode(); + result = GenerateHash(result) ^ this._recordLength.GetHashCode(); + result = GenerateHash(result) ^ this._emitterNumber.GetHashCode(); + result = GenerateHash(result) ^ this._beamNumber.GetHashCode(); + result = GenerateHash(result) ^ this._stateIndicator.GetHashCode(); + result = GenerateHash(result) ^ this._leftAzimuth.GetHashCode(); + result = GenerateHash(result) ^ this._rightAzimuth.GetHashCode(); + result = GenerateHash(result) ^ this._lowerElevation.GetHashCode(); + result = GenerateHash(result) ^ this._upperElevation.GetHashCode(); + result = GenerateHash(result) ^ this._residualPower.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/ChangeOptions.cs b/Libs/CSharpDis7/ChangeOptions.cs new file mode 100644 index 0000000..92faa76 --- /dev/null +++ b/Libs/CSharpDis7/ChangeOptions.cs @@ -0,0 +1,245 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// This is wrong and breaks serialization. See section 6.2.15 aka B.2.41 + /// + [Serializable] + [XmlRoot] + public partial class ChangeOptions + { + /// + /// Initializes a new instance of the class. + /// + public ChangeOptions() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ChangeOptions left, ChangeOptions right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ChangeOptions left, ChangeOptions right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + return marshalSize; + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ChangeOptions; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ChangeOptions obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + + return result; + } + } +} diff --git a/Libs/CSharpDis7/ClockTime.cs b/Libs/CSharpDis7/ClockTime.cs new file mode 100644 index 0000000..a7348fd --- /dev/null +++ b/Libs/CSharpDis7/ClockTime.cs @@ -0,0 +1,309 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Time measurements that exceed one hour are represented by this record. The first field is the hours since the unix epoch (Jan 1 1970, used by most Unix systems and java) and the second field the timestamp units since the top of the hour. Section 6.2.16 + /// + [Serializable] + [XmlRoot] + public partial class ClockTime + { + /// + /// Hours in UTC + /// + private uint _hour; + + /// + /// Time past the hour + /// + private uint _timePastHour; + + /// + /// Initializes a new instance of the class. + /// + public ClockTime() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ClockTime left, ClockTime right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ClockTime left, ClockTime right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._hour + marshalSize += 4; // this._timePastHour + return marshalSize; + } + + /// + /// Gets or sets the Hours in UTC + /// + [XmlElement(Type = typeof(uint), ElementName = "hour")] + public uint Hour + { + get + { + return this._hour; + } + + set + { + this._hour = value; + } + } + + /// + /// Gets or sets the Time past the hour + /// + [XmlElement(Type = typeof(uint), ElementName = "timePastHour")] + public uint TimePastHour + { + get + { + return this._timePastHour; + } + + set + { + this._timePastHour = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._hour); + dos.WriteUnsignedInt((uint)this._timePastHour); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._hour = dis.ReadUnsignedInt(); + this._timePastHour = dis.ReadUnsignedInt(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._hour.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._timePastHour.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ClockTime; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ClockTime obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._hour != obj._hour) + { + ivarsEqual = false; + } + + if (this._timePastHour != obj._timePastHour) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._hour.GetHashCode(); + result = GenerateHash(result) ^ this._timePastHour.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/CollisionElasticPdu.cs b/Libs/CSharpDis7/CollisionElasticPdu.cs new file mode 100644 index 0000000..892252d --- /dev/null +++ b/Libs/CSharpDis7/CollisionElasticPdu.cs @@ -0,0 +1,745 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Information about elastic collisions in a DIS exercise shall be communicated using a Collision-Elastic PDU. Section 7.2.4. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(EventIdentifier))] + [XmlInclude(typeof(Vector3Float))] + public partial class CollisionElasticPdu : EntityInformationFamilyPdu, IEquatable + { + /// + /// This field shall identify the entity that is issuing the PDU and shall be represented by an Entity Identifier record (see 6.2.28) + /// + private EntityID _issuingEntityID = new EntityID(); + + /// + /// This field shall identify the entity that has collided with the issuing entity. This field shall be a valid identifier of an entity or server capable of responding to the receipt of this Collision-Elastic PDU. This field shall be represented by an Entity Identifier record (see 6.2.28). + /// + private EntityID _collidingEntityID = new EntityID(); + + /// + /// This field shall contain an identification generated by the issuing simulation application to associate related collision events. This field shall be represented by an Event Identifier record (see 6.2.34). + /// + private EventIdentifier _collisionEventID = new EventIdentifier(); + + /// + /// some padding + /// + private short _pad; + + /// + /// This field shall contain the velocity at the time the collision is detected at the point the collision is detected. The velocity shall be represented in world coordinates. This field shall be represented by the Linear Velocity Vector record [see 6.2.95 item c)] + /// + private Vector3Float _contactVelocity = new Vector3Float(); + + /// + /// This field shall contain the mass of the issuing entity and shall be represented by a 32-bit floating point number representing kilograms + /// + private float _mass; + + /// + /// This field shall specify the location of the collision with respect to the entity with which the issuing entity collided. This field shall be represented by an Entity Coordinate Vector record [see 6.2.95 item a)]. + /// + private Vector3Float _locationOfImpact = new Vector3Float(); + + /// + /// These six records represent the six independent components of a positive semi-definite matrix formed by pre-multiplying and post-multiplying the tensor of inertia, by the anti-symmetric matrix generated by the moment arm, and shall be represented by 32-bit floating point numbers (see 5.3.4.4) + /// + private float _collisionIntermediateResultXX; + + /// + /// tensor values + /// + private float _collisionIntermediateResultXY; + + /// + /// tensor values + /// + private float _collisionIntermediateResultXZ; + + /// + /// tensor values + /// + private float _collisionIntermediateResultYY; + + /// + /// tensor values + /// + private float _collisionIntermediateResultYZ; + + /// + /// tensor values + /// + private float _collisionIntermediateResultZZ; + + /// + /// This record shall represent the normal vector to the surface at the point of collision detection. The surface normal shall be represented in world coordinates. This field shall be represented by an Entity Coordinate Vector record [see 6.2.95 item a)]. + /// + private Vector3Float _unitSurfaceNormal = new Vector3Float(); + + /// + /// This field shall represent the degree to which energy is conserved in a collision and shall be represented by a 32-bit floating point number. In addition, it represents a free parameter by which simulation application developers may “tune” their collision interactions. + /// + private float _coefficientOfRestitution; + + /// + /// Initializes a new instance of the class. + /// + public CollisionElasticPdu() + { + PduType = (byte)66; + ProtocolFamily = (byte)1; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(CollisionElasticPdu left, CollisionElasticPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(CollisionElasticPdu left, CollisionElasticPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._issuingEntityID.GetMarshalledSize(); // this._issuingEntityID + marshalSize += this._collidingEntityID.GetMarshalledSize(); // this._collidingEntityID + marshalSize += this._collisionEventID.GetMarshalledSize(); // this._collisionEventID + marshalSize += 2; // this._pad + marshalSize += this._contactVelocity.GetMarshalledSize(); // this._contactVelocity + marshalSize += 4; // this._mass + marshalSize += this._locationOfImpact.GetMarshalledSize(); // this._locationOfImpact + marshalSize += 4; // this._collisionIntermediateResultXX + marshalSize += 4; // this._collisionIntermediateResultXY + marshalSize += 4; // this._collisionIntermediateResultXZ + marshalSize += 4; // this._collisionIntermediateResultYY + marshalSize += 4; // this._collisionIntermediateResultYZ + marshalSize += 4; // this._collisionIntermediateResultZZ + marshalSize += this._unitSurfaceNormal.GetMarshalledSize(); // this._unitSurfaceNormal + marshalSize += 4; // this._coefficientOfRestitution + return marshalSize; + } + + /// + /// Gets or sets the This field shall identify the entity that is issuing the PDU and shall be represented by an Entity Identifier record (see 6.2.28) + /// + [XmlElement(Type = typeof(EntityID), ElementName = "issuingEntityID")] + public EntityID IssuingEntityID + { + get + { + return this._issuingEntityID; + } + + set + { + this._issuingEntityID = value; + } + } + + /// + /// Gets or sets the This field shall identify the entity that has collided with the issuing entity. This field shall be a valid identifier of an entity or server capable of responding to the receipt of this Collision-Elastic PDU. This field shall be represented by an Entity Identifier record (see 6.2.28). + /// + [XmlElement(Type = typeof(EntityID), ElementName = "collidingEntityID")] + public EntityID CollidingEntityID + { + get + { + return this._collidingEntityID; + } + + set + { + this._collidingEntityID = value; + } + } + + /// + /// Gets or sets the This field shall contain an identification generated by the issuing simulation application to associate related collision events. This field shall be represented by an Event Identifier record (see 6.2.34). + /// + [XmlElement(Type = typeof(EventIdentifier), ElementName = "collisionEventID")] + public EventIdentifier CollisionEventID + { + get + { + return this._collisionEventID; + } + + set + { + this._collisionEventID = value; + } + } + + /// + /// Gets or sets the some padding + /// + [XmlElement(Type = typeof(short), ElementName = "pad")] + public short Pad + { + get + { + return this._pad; + } + + set + { + this._pad = value; + } + } + + /// + /// Gets or sets the This field shall contain the velocity at the time the collision is detected at the point the collision is detected. The velocity shall be represented in world coordinates. This field shall be represented by the Linear Velocity Vector record [see 6.2.95 item c)] + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "contactVelocity")] + public Vector3Float ContactVelocity + { + get + { + return this._contactVelocity; + } + + set + { + this._contactVelocity = value; + } + } + + /// + /// Gets or sets the This field shall contain the mass of the issuing entity and shall be represented by a 32-bit floating point number representing kilograms + /// + [XmlElement(Type = typeof(float), ElementName = "mass")] + public float Mass + { + get + { + return this._mass; + } + + set + { + this._mass = value; + } + } + + /// + /// Gets or sets the This field shall specify the location of the collision with respect to the entity with which the issuing entity collided. This field shall be represented by an Entity Coordinate Vector record [see 6.2.95 item a)]. + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "locationOfImpact")] + public Vector3Float LocationOfImpact + { + get + { + return this._locationOfImpact; + } + + set + { + this._locationOfImpact = value; + } + } + + /// + /// Gets or sets the These six records represent the six independent components of a positive semi-definite matrix formed by pre-multiplying and post-multiplying the tensor of inertia, by the anti-symmetric matrix generated by the moment arm, and shall be represented by 32-bit floating point numbers (see 5.3.4.4) + /// + [XmlElement(Type = typeof(float), ElementName = "collisionIntermediateResultXX")] + public float CollisionIntermediateResultXX + { + get + { + return this._collisionIntermediateResultXX; + } + + set + { + this._collisionIntermediateResultXX = value; + } + } + + /// + /// Gets or sets the tensor values + /// + [XmlElement(Type = typeof(float), ElementName = "collisionIntermediateResultXY")] + public float CollisionIntermediateResultXY + { + get + { + return this._collisionIntermediateResultXY; + } + + set + { + this._collisionIntermediateResultXY = value; + } + } + + /// + /// Gets or sets the tensor values + /// + [XmlElement(Type = typeof(float), ElementName = "collisionIntermediateResultXZ")] + public float CollisionIntermediateResultXZ + { + get + { + return this._collisionIntermediateResultXZ; + } + + set + { + this._collisionIntermediateResultXZ = value; + } + } + + /// + /// Gets or sets the tensor values + /// + [XmlElement(Type = typeof(float), ElementName = "collisionIntermediateResultYY")] + public float CollisionIntermediateResultYY + { + get + { + return this._collisionIntermediateResultYY; + } + + set + { + this._collisionIntermediateResultYY = value; + } + } + + /// + /// Gets or sets the tensor values + /// + [XmlElement(Type = typeof(float), ElementName = "collisionIntermediateResultYZ")] + public float CollisionIntermediateResultYZ + { + get + { + return this._collisionIntermediateResultYZ; + } + + set + { + this._collisionIntermediateResultYZ = value; + } + } + + /// + /// Gets or sets the tensor values + /// + [XmlElement(Type = typeof(float), ElementName = "collisionIntermediateResultZZ")] + public float CollisionIntermediateResultZZ + { + get + { + return this._collisionIntermediateResultZZ; + } + + set + { + this._collisionIntermediateResultZZ = value; + } + } + + /// + /// Gets or sets the This record shall represent the normal vector to the surface at the point of collision detection. The surface normal shall be represented in world coordinates. This field shall be represented by an Entity Coordinate Vector record [see 6.2.95 item a)]. + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "unitSurfaceNormal")] + public Vector3Float UnitSurfaceNormal + { + get + { + return this._unitSurfaceNormal; + } + + set + { + this._unitSurfaceNormal = value; + } + } + + /// + /// Gets or sets the This field shall represent the degree to which energy is conserved in a collision and shall be represented by a 32-bit floating point number. In addition, it represents a free parameter by which simulation application developers may “tune” their collision interactions. + /// + [XmlElement(Type = typeof(float), ElementName = "coefficientOfRestitution")] + public float CoefficientOfRestitution + { + get + { + return this._coefficientOfRestitution; + } + + set + { + this._coefficientOfRestitution = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._issuingEntityID.Marshal(dos); + this._collidingEntityID.Marshal(dos); + this._collisionEventID.Marshal(dos); + dos.WriteShort((short)this._pad); + this._contactVelocity.Marshal(dos); + dos.WriteFloat((float)this._mass); + this._locationOfImpact.Marshal(dos); + dos.WriteFloat((float)this._collisionIntermediateResultXX); + dos.WriteFloat((float)this._collisionIntermediateResultXY); + dos.WriteFloat((float)this._collisionIntermediateResultXZ); + dos.WriteFloat((float)this._collisionIntermediateResultYY); + dos.WriteFloat((float)this._collisionIntermediateResultYZ); + dos.WriteFloat((float)this._collisionIntermediateResultZZ); + this._unitSurfaceNormal.Marshal(dos); + dos.WriteFloat((float)this._coefficientOfRestitution); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._issuingEntityID.Unmarshal(dis); + this._collidingEntityID.Unmarshal(dis); + this._collisionEventID.Unmarshal(dis); + this._pad = dis.ReadShort(); + this._contactVelocity.Unmarshal(dis); + this._mass = dis.ReadFloat(); + this._locationOfImpact.Unmarshal(dis); + this._collisionIntermediateResultXX = dis.ReadFloat(); + this._collisionIntermediateResultXY = dis.ReadFloat(); + this._collisionIntermediateResultXZ = dis.ReadFloat(); + this._collisionIntermediateResultYY = dis.ReadFloat(); + this._collisionIntermediateResultYZ = dis.ReadFloat(); + this._collisionIntermediateResultZZ = dis.ReadFloat(); + this._unitSurfaceNormal.Unmarshal(dis); + this._coefficientOfRestitution = dis.ReadFloat(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._issuingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._collidingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._collisionEventID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._pad.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._contactVelocity.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._mass.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._locationOfImpact.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._collisionIntermediateResultXX.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._collisionIntermediateResultXY.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._collisionIntermediateResultXZ.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._collisionIntermediateResultYY.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._collisionIntermediateResultYZ.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._collisionIntermediateResultZZ.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._unitSurfaceNormal.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._coefficientOfRestitution.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as CollisionElasticPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(CollisionElasticPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._issuingEntityID.Equals(obj._issuingEntityID)) + { + ivarsEqual = false; + } + + if (!this._collidingEntityID.Equals(obj._collidingEntityID)) + { + ivarsEqual = false; + } + + if (!this._collisionEventID.Equals(obj._collisionEventID)) + { + ivarsEqual = false; + } + + if (this._pad != obj._pad) + { + ivarsEqual = false; + } + + if (!this._contactVelocity.Equals(obj._contactVelocity)) + { + ivarsEqual = false; + } + + if (this._mass != obj._mass) + { + ivarsEqual = false; + } + + if (!this._locationOfImpact.Equals(obj._locationOfImpact)) + { + ivarsEqual = false; + } + + if (this._collisionIntermediateResultXX != obj._collisionIntermediateResultXX) + { + ivarsEqual = false; + } + + if (this._collisionIntermediateResultXY != obj._collisionIntermediateResultXY) + { + ivarsEqual = false; + } + + if (this._collisionIntermediateResultXZ != obj._collisionIntermediateResultXZ) + { + ivarsEqual = false; + } + + if (this._collisionIntermediateResultYY != obj._collisionIntermediateResultYY) + { + ivarsEqual = false; + } + + if (this._collisionIntermediateResultYZ != obj._collisionIntermediateResultYZ) + { + ivarsEqual = false; + } + + if (this._collisionIntermediateResultZZ != obj._collisionIntermediateResultZZ) + { + ivarsEqual = false; + } + + if (!this._unitSurfaceNormal.Equals(obj._unitSurfaceNormal)) + { + ivarsEqual = false; + } + + if (this._coefficientOfRestitution != obj._coefficientOfRestitution) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._issuingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._collidingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._collisionEventID.GetHashCode(); + result = GenerateHash(result) ^ this._pad.GetHashCode(); + result = GenerateHash(result) ^ this._contactVelocity.GetHashCode(); + result = GenerateHash(result) ^ this._mass.GetHashCode(); + result = GenerateHash(result) ^ this._locationOfImpact.GetHashCode(); + result = GenerateHash(result) ^ this._collisionIntermediateResultXX.GetHashCode(); + result = GenerateHash(result) ^ this._collisionIntermediateResultXY.GetHashCode(); + result = GenerateHash(result) ^ this._collisionIntermediateResultXZ.GetHashCode(); + result = GenerateHash(result) ^ this._collisionIntermediateResultYY.GetHashCode(); + result = GenerateHash(result) ^ this._collisionIntermediateResultYZ.GetHashCode(); + result = GenerateHash(result) ^ this._collisionIntermediateResultZZ.GetHashCode(); + result = GenerateHash(result) ^ this._unitSurfaceNormal.GetHashCode(); + result = GenerateHash(result) ^ this._coefficientOfRestitution.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/CollisionPdu.cs b/Libs/CSharpDis7/CollisionPdu.cs new file mode 100644 index 0000000..c4d4e5a --- /dev/null +++ b/Libs/CSharpDis7/CollisionPdu.cs @@ -0,0 +1,519 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Section 7.2.3 Collisions between entities shall be communicated by issuing a Collision PDU. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(EventIdentifier))] + [XmlInclude(typeof(Vector3Float))] + public partial class CollisionPdu : EntityInformationFamilyPdu, IEquatable + { + /// + /// This field shall identify the entity that is issuing the PDU, and shall be represented by an Entity Identifier record (see 6.2.28). + /// + private EntityID _issuingEntityID = new EntityID(); + + /// + /// This field shall identify the entity that has collided with the issuing entity (see 5.3.3.4). This field shall be represented by an Entity Identifier record (see 6.2.28). + /// + private EntityID _collidingEntityID = new EntityID(); + + /// + /// This field shall contain an identification generated by the issuing simulation application to associate related collision events. This field shall be represented by an Event Identifier record (see 6.2.34). + /// + private EventIdentifier _eventID = new EventIdentifier(); + + /// + /// This field shall identify the type of collision. The Collision Type field shall be represented by an 8-bit record of enumerations + /// + private byte _collisionType; + + /// + /// some padding + /// + private byte _pad; + + /// + /// This field shall contain the velocity (at the time the collision is detected) of the issuing entity. The velocity shall be represented in world coordinates. This field shall be represented by the Linear Velocity Vector record [see 6.2.95 item c)]. + /// + private Vector3Float _velocity = new Vector3Float(); + + /// + /// This field shall contain the mass of the issuing entity, and shall be represented by a 32-bit floating point number representing kilograms. + /// + private float _mass; + + /// + /// This field shall specify the location of the collision with respect to the entity with which the issuing entity collided. The Location field shall be represented by an Entity Coordinate Vector record [see 6.2.95 item a)]. + /// + private Vector3Float _location = new Vector3Float(); + + /// + /// Initializes a new instance of the class. + /// + public CollisionPdu() + { + PduType = (byte)4; + ProtocolFamily = (byte)1; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(CollisionPdu left, CollisionPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(CollisionPdu left, CollisionPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._issuingEntityID.GetMarshalledSize(); // this._issuingEntityID + marshalSize += this._collidingEntityID.GetMarshalledSize(); // this._collidingEntityID + marshalSize += this._eventID.GetMarshalledSize(); // this._eventID + marshalSize += 1; // this._collisionType + marshalSize += 1; // this._pad + marshalSize += this._velocity.GetMarshalledSize(); // this._velocity + marshalSize += 4; // this._mass + marshalSize += this._location.GetMarshalledSize(); // this._location + return marshalSize; + } + + /// + /// Gets or sets the This field shall identify the entity that is issuing the PDU, and shall be represented by an Entity Identifier record (see 6.2.28). + /// + [XmlElement(Type = typeof(EntityID), ElementName = "issuingEntityID")] + public EntityID IssuingEntityID + { + get + { + return this._issuingEntityID; + } + + set + { + this._issuingEntityID = value; + } + } + + /// + /// Gets or sets the This field shall identify the entity that has collided with the issuing entity (see 5.3.3.4). This field shall be represented by an Entity Identifier record (see 6.2.28). + /// + [XmlElement(Type = typeof(EntityID), ElementName = "collidingEntityID")] + public EntityID CollidingEntityID + { + get + { + return this._collidingEntityID; + } + + set + { + this._collidingEntityID = value; + } + } + + /// + /// Gets or sets the This field shall contain an identification generated by the issuing simulation application to associate related collision events. This field shall be represented by an Event Identifier record (see 6.2.34). + /// + [XmlElement(Type = typeof(EventIdentifier), ElementName = "eventID")] + public EventIdentifier EventID + { + get + { + return this._eventID; + } + + set + { + this._eventID = value; + } + } + + /// + /// Gets or sets the This field shall identify the type of collision. The Collision Type field shall be represented by an 8-bit record of enumerations + /// + [XmlElement(Type = typeof(byte), ElementName = "collisionType")] + public byte CollisionType + { + get + { + return this._collisionType; + } + + set + { + this._collisionType = value; + } + } + + /// + /// Gets or sets the some padding + /// + [XmlElement(Type = typeof(byte), ElementName = "pad")] + public byte Pad + { + get + { + return this._pad; + } + + set + { + this._pad = value; + } + } + + /// + /// Gets or sets the This field shall contain the velocity (at the time the collision is detected) of the issuing entity. The velocity shall be represented in world coordinates. This field shall be represented by the Linear Velocity Vector record [see 6.2.95 item c)]. + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "velocity")] + public Vector3Float Velocity + { + get + { + return this._velocity; + } + + set + { + this._velocity = value; + } + } + + /// + /// Gets or sets the This field shall contain the mass of the issuing entity, and shall be represented by a 32-bit floating point number representing kilograms. + /// + [XmlElement(Type = typeof(float), ElementName = "mass")] + public float Mass + { + get + { + return this._mass; + } + + set + { + this._mass = value; + } + } + + /// + /// Gets or sets the This field shall specify the location of the collision with respect to the entity with which the issuing entity collided. The Location field shall be represented by an Entity Coordinate Vector record [see 6.2.95 item a)]. + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "location")] + public Vector3Float Location + { + get + { + return this._location; + } + + set + { + this._location = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._issuingEntityID.Marshal(dos); + this._collidingEntityID.Marshal(dos); + this._eventID.Marshal(dos); + dos.WriteUnsignedByte((byte)this._collisionType); + dos.WriteByte((byte)this._pad); + this._velocity.Marshal(dos); + dos.WriteFloat((float)this._mass); + this._location.Marshal(dos); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._issuingEntityID.Unmarshal(dis); + this._collidingEntityID.Unmarshal(dis); + this._eventID.Unmarshal(dis); + this._collisionType = dis.ReadUnsignedByte(); + this._pad = dis.ReadByte(); + this._velocity.Unmarshal(dis); + this._mass = dis.ReadFloat(); + this._location.Unmarshal(dis); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._issuingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._collidingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._eventID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._collisionType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._velocity.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._mass.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._location.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as CollisionPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(CollisionPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._issuingEntityID.Equals(obj._issuingEntityID)) + { + ivarsEqual = false; + } + + if (!this._collidingEntityID.Equals(obj._collidingEntityID)) + { + ivarsEqual = false; + } + + if (!this._eventID.Equals(obj._eventID)) + { + ivarsEqual = false; + } + + if (this._collisionType != obj._collisionType) + { + ivarsEqual = false; + } + + if (this._pad != obj._pad) + { + ivarsEqual = false; + } + + if (!this._velocity.Equals(obj._velocity)) + { + ivarsEqual = false; + } + + if (this._mass != obj._mass) + { + ivarsEqual = false; + } + + if (!this._location.Equals(obj._location)) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._issuingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._collidingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._eventID.GetHashCode(); + result = GenerateHash(result) ^ this._collisionType.GetHashCode(); + result = GenerateHash(result) ^ this._pad.GetHashCode(); + result = GenerateHash(result) ^ this._velocity.GetHashCode(); + result = GenerateHash(result) ^ this._mass.GetHashCode(); + result = GenerateHash(result) ^ this._location.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/CommentPdu.cs b/Libs/CSharpDis7/CommentPdu.cs new file mode 100644 index 0000000..1e6645a --- /dev/null +++ b/Libs/CSharpDis7/CommentPdu.cs @@ -0,0 +1,455 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Arbitrary messages can be entered into the data stream via use of this PDU. Section 7.5.13 COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(FixedDatum))] + [XmlInclude(typeof(VariableDatum))] + public partial class CommentPdu : SimulationManagementFamilyPdu, IEquatable + { + /// + /// Number of fixed datum records + /// + private uint _numberOfFixedDatumRecords; + + /// + /// Number of variable datum records + /// + private uint _numberOfVariableDatumRecords; + + /// + /// variable length list of fixed datums + /// + private List _fixedDatums = new List(); + + /// + /// variable length list of variable length datums + /// + private List _variableDatums = new List(); + + /// + /// Initializes a new instance of the class. + /// + public CommentPdu() + { + PduType = (byte)22; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(CommentPdu left, CommentPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(CommentPdu left, CommentPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 4; // this._numberOfFixedDatumRecords + marshalSize += 4; // this._numberOfVariableDatumRecords + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + FixedDatum listElement = (FixedDatum)this._fixedDatums[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + VariableDatum listElement = (VariableDatum)this._variableDatums[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] + public uint NumberOfFixedDatumRecords + { + get + { + return this._numberOfFixedDatumRecords; + } + + set + { + this._numberOfFixedDatumRecords = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] + public uint NumberOfVariableDatumRecords + { + get + { + return this._numberOfVariableDatumRecords; + } + + set + { + this._numberOfVariableDatumRecords = value; + } + } + + /// + /// Gets or sets the variable length list of fixed datums + /// + [XmlElement(ElementName = "fixedDatumsList", Type = typeof(List))] + public List FixedDatums + { + get + { + return this._fixedDatums; + } + } + + /// + /// Gets or sets the variable length list of variable length datums + /// + [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] + public List VariableDatums + { + get + { + return this._variableDatums; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._fixedDatums.Count); + dos.WriteUnsignedInt((uint)this._variableDatums.Count); + + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; + aFixedDatum.Marshal(dos); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; + aVariableDatum.Marshal(dos); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); + this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); + for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) + { + FixedDatum anX = new FixedDatum(); + anX.Unmarshal(dis); + this._fixedDatums.Add(anX); + }; + + for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) + { + VariableDatum anX = new VariableDatum(); + anX.Unmarshal(dis); + this._variableDatums.Add(anX); + }; + + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._fixedDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + sb.AppendLine(""); + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; + aFixedDatum.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + sb.AppendLine(""); + VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; + aVariableDatum.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as CommentPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(CommentPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) + { + ivarsEqual = false; + } + + if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) + { + ivarsEqual = false; + } + + if (this._fixedDatums.Count != obj._fixedDatums.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + if (!this._fixedDatums[idx].Equals(obj._fixedDatums[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._variableDatums.Count != obj._variableDatums.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); + + if (this._fixedDatums.Count > 0) + { + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + result = GenerateHash(result) ^ this._fixedDatums[idx].GetHashCode(); + } + } + + if (this._variableDatums.Count > 0) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/CommentReliablePdu.cs b/Libs/CSharpDis7/CommentReliablePdu.cs new file mode 100644 index 0000000..51b5b58 --- /dev/null +++ b/Libs/CSharpDis7/CommentReliablePdu.cs @@ -0,0 +1,455 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Section 5.3.12.12: Arbitrary messages. Only reliable this time. Neds manual intervention to fix padding in variable datums. UNFINISHED + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(FixedDatum))] + [XmlInclude(typeof(VariableDatum))] + public partial class CommentReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable + { + /// + /// Fixed datum record count + /// + private uint _numberOfFixedDatumRecords; + + /// + /// variable datum record count + /// + private uint _numberOfVariableDatumRecords; + + /// + /// Fixed datum records + /// + private List _fixedDatumRecords = new List(); + + /// + /// Variable datum records + /// + private List _variableDatumRecords = new List(); + + /// + /// Initializes a new instance of the class. + /// + public CommentReliablePdu() + { + PduType = (byte)62; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(CommentReliablePdu left, CommentReliablePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(CommentReliablePdu left, CommentReliablePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 4; // this._numberOfFixedDatumRecords + marshalSize += 4; // this._numberOfVariableDatumRecords + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + FixedDatum listElement = (FixedDatum)this._fixedDatumRecords[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + VariableDatum listElement = (VariableDatum)this._variableDatumRecords[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] + public uint NumberOfFixedDatumRecords + { + get + { + return this._numberOfFixedDatumRecords; + } + + set + { + this._numberOfFixedDatumRecords = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] + public uint NumberOfVariableDatumRecords + { + get + { + return this._numberOfVariableDatumRecords; + } + + set + { + this._numberOfVariableDatumRecords = value; + } + } + + /// + /// Gets or sets the Fixed datum records + /// + [XmlElement(ElementName = "fixedDatumRecordsList", Type = typeof(List))] + public List FixedDatumRecords + { + get + { + return this._fixedDatumRecords; + } + } + + /// + /// Gets or sets the Variable datum records + /// + [XmlElement(ElementName = "variableDatumRecordsList", Type = typeof(List))] + public List VariableDatumRecords + { + get + { + return this._variableDatumRecords; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._fixedDatumRecords.Count); + dos.WriteUnsignedInt((uint)this._variableDatumRecords.Count); + + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; + aFixedDatum.Marshal(dos); + } + + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; + aVariableDatum.Marshal(dos); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); + this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); + for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) + { + FixedDatum anX = new FixedDatum(); + anX.Unmarshal(dis); + this._fixedDatumRecords.Add(anX); + }; + + for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) + { + VariableDatum anX = new VariableDatum(); + anX.Unmarshal(dis); + this._variableDatumRecords.Add(anX); + }; + + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._fixedDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + sb.AppendLine(""); + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; + aFixedDatum.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + sb.AppendLine(""); + VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; + aVariableDatum.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as CommentReliablePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(CommentReliablePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) + { + ivarsEqual = false; + } + + if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) + { + ivarsEqual = false; + } + + if (this._fixedDatumRecords.Count != obj._fixedDatumRecords.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + if (!this._fixedDatumRecords[idx].Equals(obj._fixedDatumRecords[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._variableDatumRecords.Count != obj._variableDatumRecords.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + if (!this._variableDatumRecords[idx].Equals(obj._variableDatumRecords[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); + + if (this._fixedDatumRecords.Count > 0) + { + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + result = GenerateHash(result) ^ this._fixedDatumRecords[idx].GetHashCode(); + } + } + + if (this._variableDatumRecords.Count > 0) + { + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + result = GenerateHash(result) ^ this._variableDatumRecords[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/CommunicationsNodeID.cs b/Libs/CSharpDis7/CommunicationsNodeID.cs new file mode 100644 index 0000000..4d76215 --- /dev/null +++ b/Libs/CSharpDis7/CommunicationsNodeID.cs @@ -0,0 +1,300 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Identity of a communications node. Section 6.2.49.4 + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + public partial class CommunicationsNodeID + { + private EntityID _entityID = new EntityID(); + + private ushort _elementID; + + /// + /// Initializes a new instance of the class. + /// + public CommunicationsNodeID() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(CommunicationsNodeID left, CommunicationsNodeID right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(CommunicationsNodeID left, CommunicationsNodeID right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += this._entityID.GetMarshalledSize(); // this._entityID + marshalSize += 2; // this._elementID + return marshalSize; + } + + [XmlElement(Type = typeof(EntityID), ElementName = "entityID")] + public EntityID EntityID + { + get + { + return this._entityID; + } + + set + { + this._entityID = value; + } + } + + [XmlElement(Type = typeof(ushort), ElementName = "elementID")] + public ushort ElementID + { + get + { + return this._elementID; + } + + set + { + this._elementID = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + this._entityID.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._elementID); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._entityID.Unmarshal(dis); + this._elementID = dis.ReadUnsignedShort(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine(""); + this._entityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._elementID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as CommunicationsNodeID; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(CommunicationsNodeID obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (!this._entityID.Equals(obj._entityID)) + { + ivarsEqual = false; + } + + if (this._elementID != obj._elementID) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._entityID.GetHashCode(); + result = GenerateHash(result) ^ this._elementID.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/CreateEntityPdu.cs b/Libs/CSharpDis7/CreateEntityPdu.cs new file mode 100644 index 0000000..f8a1a5d --- /dev/null +++ b/Libs/CSharpDis7/CreateEntityPdu.cs @@ -0,0 +1,350 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Section 7.5.2. Create a new entity. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + public partial class CreateEntityPdu : SimulationManagementFamilyPdu, IEquatable + { + /// + /// Identifier for the request + /// + private EntityID _originatingID = new EntityID(); + + /// + /// Identifier for the request + /// + private EntityID _receivingID = new EntityID(); + + /// + /// Identifier for the request. See 6.2.75 + /// + private uint _requestID; + + /// + /// Initializes a new instance of the class. + /// + public CreateEntityPdu() + { + PduType = (byte)11; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(CreateEntityPdu left, CreateEntityPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(CreateEntityPdu left, CreateEntityPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._originatingID.GetMarshalledSize(); // this._originatingID + marshalSize += this._receivingID.GetMarshalledSize(); // this._receivingID + marshalSize += 4; // this._requestID + return marshalSize; + } + + /// + /// Gets or sets the Identifier for the request + /// + [XmlElement(Type = typeof(EntityID), ElementName = "originatingID")] + public EntityID OriginatingID + { + get + { + return this._originatingID; + } + + set + { + this._originatingID = value; + } + } + + /// + /// Gets or sets the Identifier for the request + /// + [XmlElement(Type = typeof(EntityID), ElementName = "receivingID")] + public EntityID ReceivingID + { + get + { + return this._receivingID; + } + + set + { + this._receivingID = value; + } + } + + /// + /// Gets or sets the Identifier for the request. See 6.2.75 + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._originatingID.Marshal(dos); + this._receivingID.Marshal(dos); + dos.WriteUnsignedInt((uint)this._requestID); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._originatingID.Unmarshal(dis); + this._receivingID.Unmarshal(dis); + this._requestID = dis.ReadUnsignedInt(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._originatingID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._receivingID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as CreateEntityPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(CreateEntityPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._originatingID.Equals(obj._originatingID)) + { + ivarsEqual = false; + } + + if (!this._receivingID.Equals(obj._receivingID)) + { + ivarsEqual = false; + } + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._originatingID.GetHashCode(); + result = GenerateHash(result) ^ this._receivingID.GetHashCode(); + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/CreateEntityReliablePdu.cs b/Libs/CSharpDis7/CreateEntityReliablePdu.cs new file mode 100644 index 0000000..b5ab76f --- /dev/null +++ b/Libs/CSharpDis7/CreateEntityReliablePdu.cs @@ -0,0 +1,377 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Section 5.3.12.1: creation of an entity , reliable. COMPLETE + /// + [Serializable] + [XmlRoot] + public partial class CreateEntityReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable + { + /// + /// level of reliability service used for this transaction + /// + private byte _requiredReliabilityService; + + /// + /// padding + /// + private ushort _pad1; + + /// + /// padding + /// + private byte _pad2; + + /// + /// Request ID + /// + private uint _requestID; + + /// + /// Initializes a new instance of the class. + /// + public CreateEntityReliablePdu() + { + PduType = (byte)51; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(CreateEntityReliablePdu left, CreateEntityReliablePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(CreateEntityReliablePdu left, CreateEntityReliablePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 1; // this._requiredReliabilityService + marshalSize += 2; // this._pad1 + marshalSize += 1; // this._pad2 + marshalSize += 4; // this._requestID + return marshalSize; + } + + /// + /// Gets or sets the level of reliability service used for this transaction + /// + [XmlElement(Type = typeof(byte), ElementName = "requiredReliabilityService")] + public byte RequiredReliabilityService + { + get + { + return this._requiredReliabilityService; + } + + set + { + this._requiredReliabilityService = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(ushort), ElementName = "pad1")] + public ushort Pad1 + { + get + { + return this._pad1; + } + + set + { + this._pad1 = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "pad2")] + public byte Pad2 + { + get + { + return this._pad2; + } + + set + { + this._pad2 = value; + } + } + + /// + /// Gets or sets the Request ID + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._requiredReliabilityService); + dos.WriteUnsignedShort((ushort)this._pad1); + dos.WriteUnsignedByte((byte)this._pad2); + dos.WriteUnsignedInt((uint)this._requestID); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._requiredReliabilityService = dis.ReadUnsignedByte(); + this._pad1 = dis.ReadUnsignedShort(); + this._pad2 = dis.ReadUnsignedByte(); + this._requestID = dis.ReadUnsignedInt(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._requiredReliabilityService.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as CreateEntityReliablePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(CreateEntityReliablePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._requiredReliabilityService != obj._requiredReliabilityService) + { + ivarsEqual = false; + } + + if (this._pad1 != obj._pad1) + { + ivarsEqual = false; + } + + if (this._pad2 != obj._pad2) + { + ivarsEqual = false; + } + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._requiredReliabilityService.GetHashCode(); + result = GenerateHash(result) ^ this._pad1.GetHashCode(); + result = GenerateHash(result) ^ this._pad2.GetHashCode(); + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/DataPdu.cs b/Libs/CSharpDis7/DataPdu.cs new file mode 100644 index 0000000..5586918 --- /dev/null +++ b/Libs/CSharpDis7/DataPdu.cs @@ -0,0 +1,519 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Information issued in response to a data query pdu or a set data pdu is communicated using a data pdu. Section 7.5.11 COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(FixedDatum))] + [XmlInclude(typeof(VariableDatum))] + public partial class DataPdu : SimulationManagementFamilyPdu, IEquatable + { + /// + /// ID of request + /// + private uint _requestID; + + /// + /// padding + /// + private uint _padding1; + + /// + /// Number of fixed datum records + /// + private uint _numberOfFixedDatumRecords; + + /// + /// Number of variable datum records + /// + private uint _numberOfVariableDatumRecords; + + /// + /// variable length list of fixed datums + /// + private List _fixedDatums = new List(); + + /// + /// variable length list of variable length datums + /// + private List _variableDatums = new List(); + + /// + /// Initializes a new instance of the class. + /// + public DataPdu() + { + PduType = (byte)20; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(DataPdu left, DataPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(DataPdu left, DataPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 4; // this._requestID + marshalSize += 4; // this._padding1 + marshalSize += 4; // this._numberOfFixedDatumRecords + marshalSize += 4; // this._numberOfVariableDatumRecords + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + FixedDatum listElement = (FixedDatum)this._fixedDatums[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + VariableDatum listElement = (VariableDatum)this._variableDatums[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the ID of request + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(uint), ElementName = "padding1")] + public uint Padding1 + { + get + { + return this._padding1; + } + + set + { + this._padding1 = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] + public uint NumberOfFixedDatumRecords + { + get + { + return this._numberOfFixedDatumRecords; + } + + set + { + this._numberOfFixedDatumRecords = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] + public uint NumberOfVariableDatumRecords + { + get + { + return this._numberOfVariableDatumRecords; + } + + set + { + this._numberOfVariableDatumRecords = value; + } + } + + /// + /// Gets or sets the variable length list of fixed datums + /// + [XmlElement(ElementName = "fixedDatumsList", Type = typeof(List))] + public List FixedDatums + { + get + { + return this._fixedDatums; + } + } + + /// + /// Gets or sets the variable length list of variable length datums + /// + [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] + public List VariableDatums + { + get + { + return this._variableDatums; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._requestID); + dos.WriteUnsignedInt((uint)this._padding1); + dos.WriteUnsignedInt((uint)this._fixedDatums.Count); + dos.WriteUnsignedInt((uint)this._variableDatums.Count); + + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; + aFixedDatum.Marshal(dos); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; + aVariableDatum.Marshal(dos); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._requestID = dis.ReadUnsignedInt(); + this._padding1 = dis.ReadUnsignedInt(); + this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); + this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); + for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) + { + FixedDatum anX = new FixedDatum(); + anX.Unmarshal(dis); + this._fixedDatums.Add(anX); + }; + + for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) + { + VariableDatum anX = new VariableDatum(); + anX.Unmarshal(dis); + this._variableDatums.Add(anX); + }; + + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fixedDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + sb.AppendLine(""); + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; + aFixedDatum.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + sb.AppendLine(""); + VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; + aVariableDatum.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as DataPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(DataPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + if (this._padding1 != obj._padding1) + { + ivarsEqual = false; + } + + if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) + { + ivarsEqual = false; + } + + if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) + { + ivarsEqual = false; + } + + if (this._fixedDatums.Count != obj._fixedDatums.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + if (!this._fixedDatums[idx].Equals(obj._fixedDatums[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._variableDatums.Count != obj._variableDatums.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + result = GenerateHash(result) ^ this._padding1.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); + + if (this._fixedDatums.Count > 0) + { + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + result = GenerateHash(result) ^ this._fixedDatums[idx].GetHashCode(); + } + } + + if (this._variableDatums.Count > 0) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/DataQueryDatumSpecification.cs b/Libs/CSharpDis7/DataQueryDatumSpecification.cs new file mode 100644 index 0000000..d2d4ef0 --- /dev/null +++ b/Libs/CSharpDis7/DataQueryDatumSpecification.cs @@ -0,0 +1,451 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// List of fixed and variable datum records. Section 6.2.18 + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(UnsignedDISInteger))] + [XmlInclude(typeof(UnsignedDISInteger))] + public partial class DataQueryDatumSpecification + { + /// + /// Number of fixed datums + /// + private uint _numberOfFixedDatums; + + /// + /// Number of variable datums + /// + private uint _numberOfVariableDatums; + + /// + /// variable length list fixed datum IDs + /// + private List _fixedDatumIDList = new List(); + + /// + /// variable length list variable datum IDs + /// + private List _variableDatumIDList = new List(); + + /// + /// Initializes a new instance of the class. + /// + public DataQueryDatumSpecification() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(DataQueryDatumSpecification left, DataQueryDatumSpecification right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(DataQueryDatumSpecification left, DataQueryDatumSpecification right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._numberOfFixedDatums + marshalSize += 4; // this._numberOfVariableDatums + for (int idx = 0; idx < this._fixedDatumIDList.Count; idx++) + { + UnsignedDISInteger listElement = (UnsignedDISInteger)this._fixedDatumIDList[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._variableDatumIDList.Count; idx++) + { + UnsignedDISInteger listElement = (UnsignedDISInteger)this._variableDatumIDList[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfFixedDatums method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatums")] + public uint NumberOfFixedDatums + { + get + { + return this._numberOfFixedDatums; + } + + set + { + this._numberOfFixedDatums = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfVariableDatums method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatums")] + public uint NumberOfVariableDatums + { + get + { + return this._numberOfVariableDatums; + } + + set + { + this._numberOfVariableDatums = value; + } + } + + /// + /// Gets or sets the variable length list fixed datum IDs + /// + [XmlElement(ElementName = "fixedDatumIDListList", Type = typeof(List))] + public List FixedDatumIDList + { + get + { + return this._fixedDatumIDList; + } + } + + /// + /// Gets or sets the variable length list variable datum IDs + /// + [XmlElement(ElementName = "variableDatumIDListList", Type = typeof(List))] + public List VariableDatumIDList + { + get + { + return this._variableDatumIDList; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._fixedDatumIDList.Count); + dos.WriteUnsignedInt((uint)this._variableDatumIDList.Count); + + for (int idx = 0; idx < this._fixedDatumIDList.Count; idx++) + { + UnsignedDISInteger aUnsignedDISInteger = (UnsignedDISInteger)this._fixedDatumIDList[idx]; + aUnsignedDISInteger.Marshal(dos); + } + + for (int idx = 0; idx < this._variableDatumIDList.Count; idx++) + { + UnsignedDISInteger aUnsignedDISInteger = (UnsignedDISInteger)this._variableDatumIDList[idx]; + aUnsignedDISInteger.Marshal(dos); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._numberOfFixedDatums = dis.ReadUnsignedInt(); + this._numberOfVariableDatums = dis.ReadUnsignedInt(); + for (int idx = 0; idx < this.NumberOfFixedDatums; idx++) + { + UnsignedDISInteger anX = new UnsignedDISInteger(); + anX.Unmarshal(dis); + this._fixedDatumIDList.Add(anX); + }; + + for (int idx = 0; idx < this.NumberOfVariableDatums; idx++) + { + UnsignedDISInteger anX = new UnsignedDISInteger(); + anX.Unmarshal(dis); + this._variableDatumIDList.Add(anX); + }; + + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._fixedDatumIDList.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableDatumIDList.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._fixedDatumIDList.Count; idx++) + { + sb.AppendLine(""); + UnsignedDISInteger aUnsignedDISInteger = (UnsignedDISInteger)this._fixedDatumIDList[idx]; + aUnsignedDISInteger.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._variableDatumIDList.Count; idx++) + { + sb.AppendLine(""); + UnsignedDISInteger aUnsignedDISInteger = (UnsignedDISInteger)this._variableDatumIDList[idx]; + aUnsignedDISInteger.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as DataQueryDatumSpecification; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(DataQueryDatumSpecification obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._numberOfFixedDatums != obj._numberOfFixedDatums) + { + ivarsEqual = false; + } + + if (this._numberOfVariableDatums != obj._numberOfVariableDatums) + { + ivarsEqual = false; + } + + if (this._fixedDatumIDList.Count != obj._fixedDatumIDList.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._fixedDatumIDList.Count; idx++) + { + if (!this._fixedDatumIDList[idx].Equals(obj._fixedDatumIDList[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._variableDatumIDList.Count != obj._variableDatumIDList.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._variableDatumIDList.Count; idx++) + { + if (!this._variableDatumIDList[idx].Equals(obj._variableDatumIDList[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._numberOfFixedDatums.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfVariableDatums.GetHashCode(); + + if (this._fixedDatumIDList.Count > 0) + { + for (int idx = 0; idx < this._fixedDatumIDList.Count; idx++) + { + result = GenerateHash(result) ^ this._fixedDatumIDList[idx].GetHashCode(); + } + } + + if (this._variableDatumIDList.Count > 0) + { + for (int idx = 0; idx < this._variableDatumIDList.Count; idx++) + { + result = GenerateHash(result) ^ this._variableDatumIDList[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/DataQueryPdu.cs b/Libs/CSharpDis7/DataQueryPdu.cs new file mode 100644 index 0000000..619fb99 --- /dev/null +++ b/Libs/CSharpDis7/DataQueryPdu.cs @@ -0,0 +1,519 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Section 7.5.9. Request for data from an entity. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(FixedDatum))] + [XmlInclude(typeof(VariableDatum))] + public partial class DataQueryPdu : SimulationManagementFamilyPdu, IEquatable + { + /// + /// ID of request + /// + private uint _requestID; + + /// + /// time issues between issues of Data PDUs. Zero means send once only. + /// + private uint _timeInterval; + + /// + /// Number of fixed datum records + /// + private uint _numberOfFixedDatumRecords; + + /// + /// Number of variable datum records + /// + private uint _numberOfVariableDatumRecords; + + /// + /// variable length list of fixed datums + /// + private List _fixedDatums = new List(); + + /// + /// variable length list of variable length datums + /// + private List _variableDatums = new List(); + + /// + /// Initializes a new instance of the class. + /// + public DataQueryPdu() + { + PduType = (byte)18; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(DataQueryPdu left, DataQueryPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(DataQueryPdu left, DataQueryPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 4; // this._requestID + marshalSize += 4; // this._timeInterval + marshalSize += 4; // this._numberOfFixedDatumRecords + marshalSize += 4; // this._numberOfVariableDatumRecords + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + FixedDatum listElement = (FixedDatum)this._fixedDatums[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + VariableDatum listElement = (VariableDatum)this._variableDatums[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the ID of request + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Gets or sets the time issues between issues of Data PDUs. Zero means send once only. + /// + [XmlElement(Type = typeof(uint), ElementName = "timeInterval")] + public uint TimeInterval + { + get + { + return this._timeInterval; + } + + set + { + this._timeInterval = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] + public uint NumberOfFixedDatumRecords + { + get + { + return this._numberOfFixedDatumRecords; + } + + set + { + this._numberOfFixedDatumRecords = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] + public uint NumberOfVariableDatumRecords + { + get + { + return this._numberOfVariableDatumRecords; + } + + set + { + this._numberOfVariableDatumRecords = value; + } + } + + /// + /// Gets or sets the variable length list of fixed datums + /// + [XmlElement(ElementName = "fixedDatumsList", Type = typeof(List))] + public List FixedDatums + { + get + { + return this._fixedDatums; + } + } + + /// + /// Gets or sets the variable length list of variable length datums + /// + [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] + public List VariableDatums + { + get + { + return this._variableDatums; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._requestID); + dos.WriteUnsignedInt((uint)this._timeInterval); + dos.WriteUnsignedInt((uint)this._fixedDatums.Count); + dos.WriteUnsignedInt((uint)this._variableDatums.Count); + + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; + aFixedDatum.Marshal(dos); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; + aVariableDatum.Marshal(dos); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._requestID = dis.ReadUnsignedInt(); + this._timeInterval = dis.ReadUnsignedInt(); + this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); + this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); + for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) + { + FixedDatum anX = new FixedDatum(); + anX.Unmarshal(dis); + this._fixedDatums.Add(anX); + }; + + for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) + { + VariableDatum anX = new VariableDatum(); + anX.Unmarshal(dis); + this._variableDatums.Add(anX); + }; + + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._timeInterval.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fixedDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + sb.AppendLine(""); + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; + aFixedDatum.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + sb.AppendLine(""); + VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; + aVariableDatum.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as DataQueryPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(DataQueryPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + if (this._timeInterval != obj._timeInterval) + { + ivarsEqual = false; + } + + if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) + { + ivarsEqual = false; + } + + if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) + { + ivarsEqual = false; + } + + if (this._fixedDatums.Count != obj._fixedDatums.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + if (!this._fixedDatums[idx].Equals(obj._fixedDatums[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._variableDatums.Count != obj._variableDatums.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + result = GenerateHash(result) ^ this._timeInterval.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); + + if (this._fixedDatums.Count > 0) + { + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + result = GenerateHash(result) ^ this._fixedDatums[idx].GetHashCode(); + } + } + + if (this._variableDatums.Count > 0) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/DataQueryReliablePdu.cs b/Libs/CSharpDis7/DataQueryReliablePdu.cs new file mode 100644 index 0000000..715efb2 --- /dev/null +++ b/Libs/CSharpDis7/DataQueryReliablePdu.cs @@ -0,0 +1,615 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Section 5.3.12.8: request for data from an entity. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(FixedDatum))] + [XmlInclude(typeof(VariableDatum))] + public partial class DataQueryReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable + { + /// + /// level of reliability service used for this transaction + /// + private byte _requiredReliabilityService; + + /// + /// padding + /// + private ushort _pad1; + + /// + /// padding + /// + private byte _pad2; + + /// + /// request ID + /// + private uint _requestID; + + /// + /// time interval between issuing data query PDUs + /// + private uint _timeInterval; + + /// + /// Fixed datum record count + /// + private uint _numberOfFixedDatumRecords; + + /// + /// variable datum record count + /// + private uint _numberOfVariableDatumRecords; + + /// + /// Fixed datum records + /// + private List _fixedDatumRecords = new List(); + + /// + /// Variable datum records + /// + private List _variableDatumRecords = new List(); + + /// + /// Initializes a new instance of the class. + /// + public DataQueryReliablePdu() + { + PduType = (byte)58; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(DataQueryReliablePdu left, DataQueryReliablePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(DataQueryReliablePdu left, DataQueryReliablePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 1; // this._requiredReliabilityService + marshalSize += 2; // this._pad1 + marshalSize += 1; // this._pad2 + marshalSize += 4; // this._requestID + marshalSize += 4; // this._timeInterval + marshalSize += 4; // this._numberOfFixedDatumRecords + marshalSize += 4; // this._numberOfVariableDatumRecords + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + FixedDatum listElement = (FixedDatum)this._fixedDatumRecords[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + VariableDatum listElement = (VariableDatum)this._variableDatumRecords[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the level of reliability service used for this transaction + /// + [XmlElement(Type = typeof(byte), ElementName = "requiredReliabilityService")] + public byte RequiredReliabilityService + { + get + { + return this._requiredReliabilityService; + } + + set + { + this._requiredReliabilityService = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(ushort), ElementName = "pad1")] + public ushort Pad1 + { + get + { + return this._pad1; + } + + set + { + this._pad1 = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "pad2")] + public byte Pad2 + { + get + { + return this._pad2; + } + + set + { + this._pad2 = value; + } + } + + /// + /// Gets or sets the request ID + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Gets or sets the time interval between issuing data query PDUs + /// + [XmlElement(Type = typeof(uint), ElementName = "timeInterval")] + public uint TimeInterval + { + get + { + return this._timeInterval; + } + + set + { + this._timeInterval = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] + public uint NumberOfFixedDatumRecords + { + get + { + return this._numberOfFixedDatumRecords; + } + + set + { + this._numberOfFixedDatumRecords = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] + public uint NumberOfVariableDatumRecords + { + get + { + return this._numberOfVariableDatumRecords; + } + + set + { + this._numberOfVariableDatumRecords = value; + } + } + + /// + /// Gets or sets the Fixed datum records + /// + [XmlElement(ElementName = "fixedDatumRecordsList", Type = typeof(List))] + public List FixedDatumRecords + { + get + { + return this._fixedDatumRecords; + } + } + + /// + /// Gets or sets the Variable datum records + /// + [XmlElement(ElementName = "variableDatumRecordsList", Type = typeof(List))] + public List VariableDatumRecords + { + get + { + return this._variableDatumRecords; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._requiredReliabilityService); + dos.WriteUnsignedShort((ushort)this._pad1); + dos.WriteUnsignedByte((byte)this._pad2); + dos.WriteUnsignedInt((uint)this._requestID); + dos.WriteUnsignedInt((uint)this._timeInterval); + dos.WriteUnsignedInt((uint)this._fixedDatumRecords.Count); + dos.WriteUnsignedInt((uint)this._variableDatumRecords.Count); + + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; + aFixedDatum.Marshal(dos); + } + + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; + aVariableDatum.Marshal(dos); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._requiredReliabilityService = dis.ReadUnsignedByte(); + this._pad1 = dis.ReadUnsignedShort(); + this._pad2 = dis.ReadUnsignedByte(); + this._requestID = dis.ReadUnsignedInt(); + this._timeInterval = dis.ReadUnsignedInt(); + this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); + this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); + for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) + { + FixedDatum anX = new FixedDatum(); + anX.Unmarshal(dis); + this._fixedDatumRecords.Add(anX); + }; + + for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) + { + VariableDatum anX = new VariableDatum(); + anX.Unmarshal(dis); + this._variableDatumRecords.Add(anX); + }; + + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._requiredReliabilityService.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._timeInterval.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fixedDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + sb.AppendLine(""); + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; + aFixedDatum.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + sb.AppendLine(""); + VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; + aVariableDatum.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as DataQueryReliablePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(DataQueryReliablePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._requiredReliabilityService != obj._requiredReliabilityService) + { + ivarsEqual = false; + } + + if (this._pad1 != obj._pad1) + { + ivarsEqual = false; + } + + if (this._pad2 != obj._pad2) + { + ivarsEqual = false; + } + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + if (this._timeInterval != obj._timeInterval) + { + ivarsEqual = false; + } + + if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) + { + ivarsEqual = false; + } + + if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) + { + ivarsEqual = false; + } + + if (this._fixedDatumRecords.Count != obj._fixedDatumRecords.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + if (!this._fixedDatumRecords[idx].Equals(obj._fixedDatumRecords[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._variableDatumRecords.Count != obj._variableDatumRecords.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + if (!this._variableDatumRecords[idx].Equals(obj._variableDatumRecords[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._requiredReliabilityService.GetHashCode(); + result = GenerateHash(result) ^ this._pad1.GetHashCode(); + result = GenerateHash(result) ^ this._pad2.GetHashCode(); + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + result = GenerateHash(result) ^ this._timeInterval.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); + + if (this._fixedDatumRecords.Count > 0) + { + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + result = GenerateHash(result) ^ this._fixedDatumRecords[idx].GetHashCode(); + } + } + + if (this._variableDatumRecords.Count > 0) + { + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + result = GenerateHash(result) ^ this._variableDatumRecords[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/DataReliablePdu.cs b/Libs/CSharpDis7/DataReliablePdu.cs new file mode 100644 index 0000000..02100a4 --- /dev/null +++ b/Libs/CSharpDis7/DataReliablePdu.cs @@ -0,0 +1,583 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Section 5.3.12.10: issued in response to a data query R or set dataR pdu. Needs manual intervention to fix padding on variable datums. UNFINSIHED + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(FixedDatum))] + [XmlInclude(typeof(VariableDatum))] + public partial class DataReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable + { + /// + /// Request ID + /// + private uint _requestID; + + /// + /// level of reliability service used for this transaction + /// + private byte _requiredReliabilityService; + + /// + /// padding + /// + private ushort _pad1; + + /// + /// padding + /// + private byte _pad2; + + /// + /// Fixed datum record count + /// + private uint _numberOfFixedDatumRecords; + + /// + /// variable datum record count + /// + private uint _numberOfVariableDatumRecords; + + /// + /// Fixed datum records + /// + private List _fixedDatumRecords = new List(); + + /// + /// Variable datum records + /// + private List _variableDatumRecords = new List(); + + /// + /// Initializes a new instance of the class. + /// + public DataReliablePdu() + { + PduType = (byte)60; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(DataReliablePdu left, DataReliablePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(DataReliablePdu left, DataReliablePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 4; // this._requestID + marshalSize += 1; // this._requiredReliabilityService + marshalSize += 2; // this._pad1 + marshalSize += 1; // this._pad2 + marshalSize += 4; // this._numberOfFixedDatumRecords + marshalSize += 4; // this._numberOfVariableDatumRecords + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + FixedDatum listElement = (FixedDatum)this._fixedDatumRecords[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + VariableDatum listElement = (VariableDatum)this._variableDatumRecords[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Request ID + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Gets or sets the level of reliability service used for this transaction + /// + [XmlElement(Type = typeof(byte), ElementName = "requiredReliabilityService")] + public byte RequiredReliabilityService + { + get + { + return this._requiredReliabilityService; + } + + set + { + this._requiredReliabilityService = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(ushort), ElementName = "pad1")] + public ushort Pad1 + { + get + { + return this._pad1; + } + + set + { + this._pad1 = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "pad2")] + public byte Pad2 + { + get + { + return this._pad2; + } + + set + { + this._pad2 = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] + public uint NumberOfFixedDatumRecords + { + get + { + return this._numberOfFixedDatumRecords; + } + + set + { + this._numberOfFixedDatumRecords = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] + public uint NumberOfVariableDatumRecords + { + get + { + return this._numberOfVariableDatumRecords; + } + + set + { + this._numberOfVariableDatumRecords = value; + } + } + + /// + /// Gets or sets the Fixed datum records + /// + [XmlElement(ElementName = "fixedDatumRecordsList", Type = typeof(List))] + public List FixedDatumRecords + { + get + { + return this._fixedDatumRecords; + } + } + + /// + /// Gets or sets the Variable datum records + /// + [XmlElement(ElementName = "variableDatumRecordsList", Type = typeof(List))] + public List VariableDatumRecords + { + get + { + return this._variableDatumRecords; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._requestID); + dos.WriteUnsignedByte((byte)this._requiredReliabilityService); + dos.WriteUnsignedShort((ushort)this._pad1); + dos.WriteUnsignedByte((byte)this._pad2); + dos.WriteUnsignedInt((uint)this._fixedDatumRecords.Count); + dos.WriteUnsignedInt((uint)this._variableDatumRecords.Count); + + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; + aFixedDatum.Marshal(dos); + } + + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; + aVariableDatum.Marshal(dos); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._requestID = dis.ReadUnsignedInt(); + this._requiredReliabilityService = dis.ReadUnsignedByte(); + this._pad1 = dis.ReadUnsignedShort(); + this._pad2 = dis.ReadUnsignedByte(); + this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); + this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); + for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) + { + FixedDatum anX = new FixedDatum(); + anX.Unmarshal(dis); + this._fixedDatumRecords.Add(anX); + }; + + for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) + { + VariableDatum anX = new VariableDatum(); + anX.Unmarshal(dis); + this._variableDatumRecords.Add(anX); + }; + + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._requiredReliabilityService.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fixedDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + sb.AppendLine(""); + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; + aFixedDatum.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + sb.AppendLine(""); + VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; + aVariableDatum.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as DataReliablePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(DataReliablePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + if (this._requiredReliabilityService != obj._requiredReliabilityService) + { + ivarsEqual = false; + } + + if (this._pad1 != obj._pad1) + { + ivarsEqual = false; + } + + if (this._pad2 != obj._pad2) + { + ivarsEqual = false; + } + + if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) + { + ivarsEqual = false; + } + + if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) + { + ivarsEqual = false; + } + + if (this._fixedDatumRecords.Count != obj._fixedDatumRecords.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + if (!this._fixedDatumRecords[idx].Equals(obj._fixedDatumRecords[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._variableDatumRecords.Count != obj._variableDatumRecords.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + if (!this._variableDatumRecords[idx].Equals(obj._variableDatumRecords[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + result = GenerateHash(result) ^ this._requiredReliabilityService.GetHashCode(); + result = GenerateHash(result) ^ this._pad1.GetHashCode(); + result = GenerateHash(result) ^ this._pad2.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); + + if (this._fixedDatumRecords.Count > 0) + { + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + result = GenerateHash(result) ^ this._fixedDatumRecords[idx].GetHashCode(); + } + } + + if (this._variableDatumRecords.Count > 0) + { + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + result = GenerateHash(result) ^ this._variableDatumRecords[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/DatumSpecification.cs b/Libs/CSharpDis7/DatumSpecification.cs new file mode 100644 index 0000000..815c1e4 --- /dev/null +++ b/Libs/CSharpDis7/DatumSpecification.cs @@ -0,0 +1,451 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// List of fixed and variable datum records. Section 6.2.19 + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(FixedDatum))] + [XmlInclude(typeof(VariableDatum))] + public partial class DatumSpecification + { + /// + /// Number of fixed datums + /// + private uint _numberOfFixedDatums; + + /// + /// Number of variable datums + /// + private uint _numberOfVariableDatums; + + /// + /// variable length list fixed datums + /// + private List _fixedDatumIDList = new List(); + + /// + /// variable length list variable datums + /// + private List _variableDatumIDList = new List(); + + /// + /// Initializes a new instance of the class. + /// + public DatumSpecification() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(DatumSpecification left, DatumSpecification right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(DatumSpecification left, DatumSpecification right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._numberOfFixedDatums + marshalSize += 4; // this._numberOfVariableDatums + for (int idx = 0; idx < this._fixedDatumIDList.Count; idx++) + { + FixedDatum listElement = (FixedDatum)this._fixedDatumIDList[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._variableDatumIDList.Count; idx++) + { + VariableDatum listElement = (VariableDatum)this._variableDatumIDList[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfFixedDatums method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatums")] + public uint NumberOfFixedDatums + { + get + { + return this._numberOfFixedDatums; + } + + set + { + this._numberOfFixedDatums = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfVariableDatums method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatums")] + public uint NumberOfVariableDatums + { + get + { + return this._numberOfVariableDatums; + } + + set + { + this._numberOfVariableDatums = value; + } + } + + /// + /// Gets or sets the variable length list fixed datums + /// + [XmlElement(ElementName = "fixedDatumIDListList", Type = typeof(List))] + public List FixedDatumIDList + { + get + { + return this._fixedDatumIDList; + } + } + + /// + /// Gets or sets the variable length list variable datums + /// + [XmlElement(ElementName = "variableDatumIDListList", Type = typeof(List))] + public List VariableDatumIDList + { + get + { + return this._variableDatumIDList; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._fixedDatumIDList.Count); + dos.WriteUnsignedInt((uint)this._variableDatumIDList.Count); + + for (int idx = 0; idx < this._fixedDatumIDList.Count; idx++) + { + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumIDList[idx]; + aFixedDatum.Marshal(dos); + } + + for (int idx = 0; idx < this._variableDatumIDList.Count; idx++) + { + VariableDatum aVariableDatum = (VariableDatum)this._variableDatumIDList[idx]; + aVariableDatum.Marshal(dos); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._numberOfFixedDatums = dis.ReadUnsignedInt(); + this._numberOfVariableDatums = dis.ReadUnsignedInt(); + for (int idx = 0; idx < this.NumberOfFixedDatums; idx++) + { + FixedDatum anX = new FixedDatum(); + anX.Unmarshal(dis); + this._fixedDatumIDList.Add(anX); + }; + + for (int idx = 0; idx < this.NumberOfVariableDatums; idx++) + { + VariableDatum anX = new VariableDatum(); + anX.Unmarshal(dis); + this._variableDatumIDList.Add(anX); + }; + + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._fixedDatumIDList.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableDatumIDList.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._fixedDatumIDList.Count; idx++) + { + sb.AppendLine(""); + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumIDList[idx]; + aFixedDatum.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._variableDatumIDList.Count; idx++) + { + sb.AppendLine(""); + VariableDatum aVariableDatum = (VariableDatum)this._variableDatumIDList[idx]; + aVariableDatum.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as DatumSpecification; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(DatumSpecification obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._numberOfFixedDatums != obj._numberOfFixedDatums) + { + ivarsEqual = false; + } + + if (this._numberOfVariableDatums != obj._numberOfVariableDatums) + { + ivarsEqual = false; + } + + if (this._fixedDatumIDList.Count != obj._fixedDatumIDList.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._fixedDatumIDList.Count; idx++) + { + if (!this._fixedDatumIDList[idx].Equals(obj._fixedDatumIDList[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._variableDatumIDList.Count != obj._variableDatumIDList.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._variableDatumIDList.Count; idx++) + { + if (!this._variableDatumIDList[idx].Equals(obj._variableDatumIDList[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._numberOfFixedDatums.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfVariableDatums.GetHashCode(); + + if (this._fixedDatumIDList.Count > 0) + { + for (int idx = 0; idx < this._fixedDatumIDList.Count; idx++) + { + result = GenerateHash(result) ^ this._fixedDatumIDList[idx].GetHashCode(); + } + } + + if (this._variableDatumIDList.Count > 0) + { + for (int idx = 0; idx < this._variableDatumIDList.Count; idx++) + { + result = GenerateHash(result) ^ this._variableDatumIDList[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/DeadReckoningParameters.cs b/Libs/CSharpDis7/DeadReckoningParameters.cs new file mode 100644 index 0000000..2e66b03 --- /dev/null +++ b/Libs/CSharpDis7/DeadReckoningParameters.cs @@ -0,0 +1,404 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Not specified in the standard. This is used by the ESPDU + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(Vector3Float))] + public partial class DeadReckoningParameters + { + /// + /// Algorithm to use in computing dead reckoning. See EBV doc. + /// + private byte _deadReckoningAlgorithm; + + /// + /// Dead reckoning parameters. Contents depends on algorithm. + /// + private byte[] _parameters = new byte[15]; + + /// + /// Linear acceleration of the entity + /// + private Vector3Float _entityLinearAcceleration = new Vector3Float(); + + /// + /// Angular velocity of the entity + /// + private Vector3Float _entityAngularVelocity = new Vector3Float(); + + /// + /// Initializes a new instance of the class. + /// + public DeadReckoningParameters() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(DeadReckoningParameters left, DeadReckoningParameters right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(DeadReckoningParameters left, DeadReckoningParameters right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._deadReckoningAlgorithm + marshalSize += 15 * 1; // _parameters + marshalSize += this._entityLinearAcceleration.GetMarshalledSize(); // this._entityLinearAcceleration + marshalSize += this._entityAngularVelocity.GetMarshalledSize(); // this._entityAngularVelocity + return marshalSize; + } + + /// + /// Gets or sets the Algorithm to use in computing dead reckoning. See EBV doc. + /// + [XmlElement(Type = typeof(byte), ElementName = "deadReckoningAlgorithm")] + public byte DeadReckoningAlgorithm + { + get + { + return this._deadReckoningAlgorithm; + } + + set + { + this._deadReckoningAlgorithm = value; + } + } + + /// + /// Gets or sets the Dead reckoning parameters. Contents depends on algorithm. + /// + [XmlArray(ElementName = "parameters")] + public byte[] Parameters + { + get + { + return this._parameters; + } + + set + { + this._parameters = value; + } +} + + /// + /// Gets or sets the Linear acceleration of the entity + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "entityLinearAcceleration")] + public Vector3Float EntityLinearAcceleration + { + get + { + return this._entityLinearAcceleration; + } + + set + { + this._entityLinearAcceleration = value; + } + } + + /// + /// Gets or sets the Angular velocity of the entity + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "entityAngularVelocity")] + public Vector3Float EntityAngularVelocity + { + get + { + return this._entityAngularVelocity; + } + + set + { + this._entityAngularVelocity = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._deadReckoningAlgorithm); + + for (int idx = 0; idx < this._parameters.Length; idx++) + { + dos.WriteUnsignedByte(this._parameters[idx]); + } + this._entityLinearAcceleration.Marshal(dos); + this._entityAngularVelocity.Marshal(dos); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._deadReckoningAlgorithm = dis.ReadUnsignedByte(); + for (int idx = 0; idx < this._parameters.Length; idx++) + { + this._parameters[idx] = dis.ReadUnsignedByte(); + } + this._entityLinearAcceleration.Unmarshal(dis); + this._entityAngularVelocity.Unmarshal(dis); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._deadReckoningAlgorithm.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._parameters.Length; idx++) + { + sb.AppendLine("" + this._parameters[idx] + ""); + } + + sb.AppendLine(""); + this._entityLinearAcceleration.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._entityAngularVelocity.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as DeadReckoningParameters; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(DeadReckoningParameters obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._deadReckoningAlgorithm != obj._deadReckoningAlgorithm) + { + ivarsEqual = false; + } + + if (obj._parameters.Length != 15) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < 15; idx++) + { + if (this._parameters[idx] != obj._parameters[idx]) + { + ivarsEqual = false; + } + } + } + + if (!this._entityLinearAcceleration.Equals(obj._entityLinearAcceleration)) + { + ivarsEqual = false; + } + + if (!this._entityAngularVelocity.Equals(obj._entityAngularVelocity)) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._deadReckoningAlgorithm.GetHashCode(); + + for (int idx = 0; idx < 15; idx++) + { + result = GenerateHash(result) ^ this._parameters[idx].GetHashCode(); + } + result = GenerateHash(result) ^ this._entityLinearAcceleration.GetHashCode(); + result = GenerateHash(result) ^ this._entityAngularVelocity.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/DesignatorPdu.cs b/Libs/CSharpDis7/DesignatorPdu.cs new file mode 100644 index 0000000..d7ecdd2 --- /dev/null +++ b/Libs/CSharpDis7/DesignatorPdu.cs @@ -0,0 +1,646 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Section 5.3.7.2. Handles designating operations. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(Vector3Float))] + [XmlInclude(typeof(Vector3Double))] + public partial class DesignatorPdu : DistributedEmissionsFamilyPdu, IEquatable + { + /// + /// ID of the entity designating + /// + private EntityID _designatingEntityID = new EntityID(); + + /// + /// This field shall specify a unique emitter database number assigned to differentiate between otherwise similar or identical emitter beams within an emitter system. + /// + private ushort _codeName; + + /// + /// ID of the entity being designated + /// + private EntityID _designatedEntityID = new EntityID(); + + /// + /// This field shall identify the designator code being used by the designating entity + /// + private ushort _designatorCode; + + /// + /// This field shall identify the designator output power in watts + /// + private float _designatorPower; + + /// + /// This field shall identify the designator wavelength in units of microns + /// + private float _designatorWavelength; + + /// + /// designtor spot wrt the designated entity + /// + private Vector3Float _designatorSpotWrtDesignated = new Vector3Float(); + + /// + /// designtor spot wrt the designated entity + /// + private Vector3Double _designatorSpotLocation = new Vector3Double(); + + /// + /// Dead reckoning algorithm + /// + private byte _deadReckoningAlgorithm; + + /// + /// padding + /// + private ushort _padding1; + + /// + /// padding + /// + private byte _padding2; + + /// + /// linear accelleration of entity + /// + private Vector3Float _entityLinearAcceleration = new Vector3Float(); + + /// + /// Initializes a new instance of the class. + /// + public DesignatorPdu() + { + PduType = (byte)24; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(DesignatorPdu left, DesignatorPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(DesignatorPdu left, DesignatorPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._designatingEntityID.GetMarshalledSize(); // this._designatingEntityID + marshalSize += 2; // this._codeName + marshalSize += this._designatedEntityID.GetMarshalledSize(); // this._designatedEntityID + marshalSize += 2; // this._designatorCode + marshalSize += 4; // this._designatorPower + marshalSize += 4; // this._designatorWavelength + marshalSize += this._designatorSpotWrtDesignated.GetMarshalledSize(); // this._designatorSpotWrtDesignated + marshalSize += this._designatorSpotLocation.GetMarshalledSize(); // this._designatorSpotLocation + marshalSize += 1; // this._deadReckoningAlgorithm + marshalSize += 2; // this._padding1 + marshalSize += 1; // this._padding2 + marshalSize += this._entityLinearAcceleration.GetMarshalledSize(); // this._entityLinearAcceleration + return marshalSize; + } + + /// + /// Gets or sets the ID of the entity designating + /// + [XmlElement(Type = typeof(EntityID), ElementName = "designatingEntityID")] + public EntityID DesignatingEntityID + { + get + { + return this._designatingEntityID; + } + + set + { + this._designatingEntityID = value; + } + } + + /// + /// Gets or sets the This field shall specify a unique emitter database number assigned to differentiate between otherwise similar or identical emitter beams within an emitter system. + /// + [XmlElement(Type = typeof(ushort), ElementName = "codeName")] + public ushort CodeName + { + get + { + return this._codeName; + } + + set + { + this._codeName = value; + } + } + + /// + /// Gets or sets the ID of the entity being designated + /// + [XmlElement(Type = typeof(EntityID), ElementName = "designatedEntityID")] + public EntityID DesignatedEntityID + { + get + { + return this._designatedEntityID; + } + + set + { + this._designatedEntityID = value; + } + } + + /// + /// Gets or sets the This field shall identify the designator code being used by the designating entity + /// + [XmlElement(Type = typeof(ushort), ElementName = "designatorCode")] + public ushort DesignatorCode + { + get + { + return this._designatorCode; + } + + set + { + this._designatorCode = value; + } + } + + /// + /// Gets or sets the This field shall identify the designator output power in watts + /// + [XmlElement(Type = typeof(float), ElementName = "designatorPower")] + public float DesignatorPower + { + get + { + return this._designatorPower; + } + + set + { + this._designatorPower = value; + } + } + + /// + /// Gets or sets the This field shall identify the designator wavelength in units of microns + /// + [XmlElement(Type = typeof(float), ElementName = "designatorWavelength")] + public float DesignatorWavelength + { + get + { + return this._designatorWavelength; + } + + set + { + this._designatorWavelength = value; + } + } + + /// + /// Gets or sets the designtor spot wrt the designated entity + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "designatorSpotWrtDesignated")] + public Vector3Float DesignatorSpotWrtDesignated + { + get + { + return this._designatorSpotWrtDesignated; + } + + set + { + this._designatorSpotWrtDesignated = value; + } + } + + /// + /// Gets or sets the designtor spot wrt the designated entity + /// + [XmlElement(Type = typeof(Vector3Double), ElementName = "designatorSpotLocation")] + public Vector3Double DesignatorSpotLocation + { + get + { + return this._designatorSpotLocation; + } + + set + { + this._designatorSpotLocation = value; + } + } + + /// + /// Gets or sets the Dead reckoning algorithm + /// + [XmlElement(Type = typeof(byte), ElementName = "deadReckoningAlgorithm")] + public byte DeadReckoningAlgorithm + { + get + { + return this._deadReckoningAlgorithm; + } + + set + { + this._deadReckoningAlgorithm = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(ushort), ElementName = "padding1")] + public ushort Padding1 + { + get + { + return this._padding1; + } + + set + { + this._padding1 = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "padding2")] + public byte Padding2 + { + get + { + return this._padding2; + } + + set + { + this._padding2 = value; + } + } + + /// + /// Gets or sets the linear accelleration of entity + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "entityLinearAcceleration")] + public Vector3Float EntityLinearAcceleration + { + get + { + return this._entityLinearAcceleration; + } + + set + { + this._entityLinearAcceleration = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._designatingEntityID.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._codeName); + this._designatedEntityID.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._designatorCode); + dos.WriteFloat((float)this._designatorPower); + dos.WriteFloat((float)this._designatorWavelength); + this._designatorSpotWrtDesignated.Marshal(dos); + this._designatorSpotLocation.Marshal(dos); + dos.WriteByte((byte)this._deadReckoningAlgorithm); + dos.WriteUnsignedShort((ushort)this._padding1); + dos.WriteByte((byte)this._padding2); + this._entityLinearAcceleration.Marshal(dos); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._designatingEntityID.Unmarshal(dis); + this._codeName = dis.ReadUnsignedShort(); + this._designatedEntityID.Unmarshal(dis); + this._designatorCode = dis.ReadUnsignedShort(); + this._designatorPower = dis.ReadFloat(); + this._designatorWavelength = dis.ReadFloat(); + this._designatorSpotWrtDesignated.Unmarshal(dis); + this._designatorSpotLocation.Unmarshal(dis); + this._deadReckoningAlgorithm = dis.ReadByte(); + this._padding1 = dis.ReadUnsignedShort(); + this._padding2 = dis.ReadByte(); + this._entityLinearAcceleration.Unmarshal(dis); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._designatingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._codeName.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._designatedEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._designatorCode.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._designatorPower.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._designatorWavelength.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._designatorSpotWrtDesignated.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._designatorSpotLocation.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._deadReckoningAlgorithm.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._entityLinearAcceleration.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as DesignatorPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(DesignatorPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._designatingEntityID.Equals(obj._designatingEntityID)) + { + ivarsEqual = false; + } + + if (this._codeName != obj._codeName) + { + ivarsEqual = false; + } + + if (!this._designatedEntityID.Equals(obj._designatedEntityID)) + { + ivarsEqual = false; + } + + if (this._designatorCode != obj._designatorCode) + { + ivarsEqual = false; + } + + if (this._designatorPower != obj._designatorPower) + { + ivarsEqual = false; + } + + if (this._designatorWavelength != obj._designatorWavelength) + { + ivarsEqual = false; + } + + if (!this._designatorSpotWrtDesignated.Equals(obj._designatorSpotWrtDesignated)) + { + ivarsEqual = false; + } + + if (!this._designatorSpotLocation.Equals(obj._designatorSpotLocation)) + { + ivarsEqual = false; + } + + if (this._deadReckoningAlgorithm != obj._deadReckoningAlgorithm) + { + ivarsEqual = false; + } + + if (this._padding1 != obj._padding1) + { + ivarsEqual = false; + } + + if (this._padding2 != obj._padding2) + { + ivarsEqual = false; + } + + if (!this._entityLinearAcceleration.Equals(obj._entityLinearAcceleration)) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._designatingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._codeName.GetHashCode(); + result = GenerateHash(result) ^ this._designatedEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._designatorCode.GetHashCode(); + result = GenerateHash(result) ^ this._designatorPower.GetHashCode(); + result = GenerateHash(result) ^ this._designatorWavelength.GetHashCode(); + result = GenerateHash(result) ^ this._designatorSpotWrtDesignated.GetHashCode(); + result = GenerateHash(result) ^ this._designatorSpotLocation.GetHashCode(); + result = GenerateHash(result) ^ this._deadReckoningAlgorithm.GetHashCode(); + result = GenerateHash(result) ^ this._padding1.GetHashCode(); + result = GenerateHash(result) ^ this._padding2.GetHashCode(); + result = GenerateHash(result) ^ this._entityLinearAcceleration.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/DetonationPdu.cs b/Libs/CSharpDis7/DetonationPdu.cs new file mode 100644 index 0000000..7fa0ebe --- /dev/null +++ b/Libs/CSharpDis7/DetonationPdu.cs @@ -0,0 +1,625 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Detonation or impact of munitions, as well as, non-munition explosions, the burst or initial bloom of chaff, and the ignition of a flare shall be indicated. Section 7.3.3 COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(EventIdentifier))] + [XmlInclude(typeof(Vector3Float))] + [XmlInclude(typeof(Vector3Double))] + [XmlInclude(typeof(MunitionDescriptor))] + [XmlInclude(typeof(VariableParameter))] + public partial class DetonationPdu : WarfareFamilyPdu, IEquatable + { + /// + /// ID of the expendable entity, Section 7.3.3 + /// + private EntityID _explodingEntityID = new EntityID(); + + /// + /// ID of event, Section 7.3.3 + /// + private EventIdentifier _eventID = new EventIdentifier(); + + /// + /// velocity of the munition immediately before detonation/impact, Section 7.3.3 + /// + private Vector3Float _velocity = new Vector3Float(); + + /// + /// location of the munition detonation, the expendable detonation, Section 7.3.3 + /// + private Vector3Double _locationInWorldCoordinates = new Vector3Double(); + + /// + /// Describes the detonation represented, Section 7.3.3 + /// + private MunitionDescriptor _descriptor = new MunitionDescriptor(); + + /// + /// Velocity of the ammunition, Section 7.3.3 + /// + private Vector3Float _locationOfEntityCoordinates = new Vector3Float(); + + /// + /// result of the detonation, Section 7.3.3 + /// + private byte _detonationResult; + + /// + /// How many articulation parameters we have, Section 7.3.3 + /// + private byte _numberOfVariableParameters; + + /// + /// padding + /// + private ushort _pad; + + /// + /// specify the parameter values for each Variable Parameter record, Section 7.3.3 + /// + private List _variableParameters = new List(); + + /// + /// Initializes a new instance of the class. + /// + public DetonationPdu() + { + PduType = (byte)3; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(DetonationPdu left, DetonationPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(DetonationPdu left, DetonationPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._explodingEntityID.GetMarshalledSize(); // this._explodingEntityID + marshalSize += this._eventID.GetMarshalledSize(); // this._eventID + marshalSize += this._velocity.GetMarshalledSize(); // this._velocity + marshalSize += this._locationInWorldCoordinates.GetMarshalledSize(); // this._locationInWorldCoordinates + marshalSize += this._descriptor.GetMarshalledSize(); // this._descriptor + marshalSize += this._locationOfEntityCoordinates.GetMarshalledSize(); // this._locationOfEntityCoordinates + marshalSize += 1; // this._detonationResult + marshalSize += 1; // this._numberOfVariableParameters + marshalSize += 2; // this._pad + for (int idx = 0; idx < this._variableParameters.Count; idx++) + { + VariableParameter listElement = (VariableParameter)this._variableParameters[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the ID of the expendable entity, Section 7.3.3 + /// + [XmlElement(Type = typeof(EntityID), ElementName = "explodingEntityID")] + public EntityID ExplodingEntityID + { + get + { + return this._explodingEntityID; + } + + set + { + this._explodingEntityID = value; + } + } + + /// + /// Gets or sets the ID of event, Section 7.3.3 + /// + [XmlElement(Type = typeof(EventIdentifier), ElementName = "eventID")] + public EventIdentifier EventID + { + get + { + return this._eventID; + } + + set + { + this._eventID = value; + } + } + + /// + /// Gets or sets the velocity of the munition immediately before detonation/impact, Section 7.3.3 + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "velocity")] + public Vector3Float Velocity + { + get + { + return this._velocity; + } + + set + { + this._velocity = value; + } + } + + /// + /// Gets or sets the location of the munition detonation, the expendable detonation, Section 7.3.3 + /// + [XmlElement(Type = typeof(Vector3Double), ElementName = "locationInWorldCoordinates")] + public Vector3Double LocationInWorldCoordinates + { + get + { + return this._locationInWorldCoordinates; + } + + set + { + this._locationInWorldCoordinates = value; + } + } + + /// + /// Gets or sets the Describes the detonation represented, Section 7.3.3 + /// + [XmlElement(Type = typeof(MunitionDescriptor), ElementName = "descriptor")] + public MunitionDescriptor Descriptor + { + get + { + return this._descriptor; + } + + set + { + this._descriptor = value; + } + } + + /// + /// Gets or sets the Velocity of the ammunition, Section 7.3.3 + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "locationOfEntityCoordinates")] + public Vector3Float LocationOfEntityCoordinates + { + get + { + return this._locationOfEntityCoordinates; + } + + set + { + this._locationOfEntityCoordinates = value; + } + } + + /// + /// Gets or sets the result of the detonation, Section 7.3.3 + /// + [XmlElement(Type = typeof(byte), ElementName = "detonationResult")] + public byte DetonationResult + { + get + { + return this._detonationResult; + } + + set + { + this._detonationResult = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfVariableParameters method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfVariableParameters")] + public byte NumberOfVariableParameters + { + get + { + return this._numberOfVariableParameters; + } + + set + { + this._numberOfVariableParameters = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(ushort), ElementName = "pad")] + public ushort Pad + { + get + { + return this._pad; + } + + set + { + this._pad = value; + } + } + + /// + /// Gets or sets the specify the parameter values for each Variable Parameter record, Section 7.3.3 + /// + [XmlElement(ElementName = "variableParametersList", Type = typeof(List))] + public List VariableParameters + { + get + { + return this._variableParameters; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._explodingEntityID.Marshal(dos); + this._eventID.Marshal(dos); + this._velocity.Marshal(dos); + this._locationInWorldCoordinates.Marshal(dos); + this._descriptor.Marshal(dos); + this._locationOfEntityCoordinates.Marshal(dos); + dos.WriteUnsignedByte((byte)this._detonationResult); + dos.WriteUnsignedByte((byte)this._variableParameters.Count); + dos.WriteUnsignedShort((ushort)this._pad); + + for (int idx = 0; idx < this._variableParameters.Count; idx++) + { + VariableParameter aVariableParameter = (VariableParameter)this._variableParameters[idx]; + aVariableParameter.Marshal(dos); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._explodingEntityID.Unmarshal(dis); + this._eventID.Unmarshal(dis); + this._velocity.Unmarshal(dis); + this._locationInWorldCoordinates.Unmarshal(dis); + this._descriptor.Unmarshal(dis); + this._locationOfEntityCoordinates.Unmarshal(dis); + this._detonationResult = dis.ReadUnsignedByte(); + this._numberOfVariableParameters = dis.ReadUnsignedByte(); + this._pad = dis.ReadUnsignedShort(); + for (int idx = 0; idx < this.NumberOfVariableParameters; idx++) + { + VariableParameter anX = new VariableParameter(); + anX.Unmarshal(dis); + this._variableParameters.Add(anX); + }; + + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._explodingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._eventID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._velocity.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._locationInWorldCoordinates.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._descriptor.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._locationOfEntityCoordinates.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._detonationResult.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableParameters.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._variableParameters.Count; idx++) + { + sb.AppendLine(""); + VariableParameter aVariableParameter = (VariableParameter)this._variableParameters[idx]; + aVariableParameter.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as DetonationPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(DetonationPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._explodingEntityID.Equals(obj._explodingEntityID)) + { + ivarsEqual = false; + } + + if (!this._eventID.Equals(obj._eventID)) + { + ivarsEqual = false; + } + + if (!this._velocity.Equals(obj._velocity)) + { + ivarsEqual = false; + } + + if (!this._locationInWorldCoordinates.Equals(obj._locationInWorldCoordinates)) + { + ivarsEqual = false; + } + + if (!this._descriptor.Equals(obj._descriptor)) + { + ivarsEqual = false; + } + + if (!this._locationOfEntityCoordinates.Equals(obj._locationOfEntityCoordinates)) + { + ivarsEqual = false; + } + + if (this._detonationResult != obj._detonationResult) + { + ivarsEqual = false; + } + + if (this._numberOfVariableParameters != obj._numberOfVariableParameters) + { + ivarsEqual = false; + } + + if (this._pad != obj._pad) + { + ivarsEqual = false; + } + + if (this._variableParameters.Count != obj._variableParameters.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._variableParameters.Count; idx++) + { + if (!this._variableParameters[idx].Equals(obj._variableParameters[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._explodingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._eventID.GetHashCode(); + result = GenerateHash(result) ^ this._velocity.GetHashCode(); + result = GenerateHash(result) ^ this._locationInWorldCoordinates.GetHashCode(); + result = GenerateHash(result) ^ this._descriptor.GetHashCode(); + result = GenerateHash(result) ^ this._locationOfEntityCoordinates.GetHashCode(); + result = GenerateHash(result) ^ this._detonationResult.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfVariableParameters.GetHashCode(); + result = GenerateHash(result) ^ this._pad.GetHashCode(); + + if (this._variableParameters.Count > 0) + { + for (int idx = 0; idx < this._variableParameters.Count; idx++) + { + result = GenerateHash(result) ^ this._variableParameters[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/DirectedEnergyAreaAimpoint.cs b/Libs/CSharpDis7/DirectedEnergyAreaAimpoint.cs new file mode 100644 index 0000000..aed713a --- /dev/null +++ b/Libs/CSharpDis7/DirectedEnergyAreaAimpoint.cs @@ -0,0 +1,547 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// DE Precision Aimpoint Record. NOT COMPLETE. Section 6.2.21.2 + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(BeamAntennaPattern))] + [XmlInclude(typeof(DirectedEnergyTargetEnergyDeposition))] + public partial class DirectedEnergyAreaAimpoint + { + /// + /// Type of Record + /// + private uint _recordType = 4001; + + /// + /// Length of Record + /// + private ushort _recordLength; + + /// + /// Padding + /// + private ushort _padding; + + /// + /// Number of beam antenna pattern records + /// + private ushort _beamAntennaPatternRecordCount; + + /// + /// Number of DE target energy depositon records + /// + private ushort _directedEnergyTargetEnergyDepositionRecordCount; + + /// + /// list of beam antenna records. See 6.2.9.2 + /// + private List _beamAntennaParameterList = new List(); + + /// + /// list of DE target deposition records. See 6.2.21.4 + /// + private List _directedEnergyTargetEnergyDepositionRecordList = new List(); + + /// + /// Initializes a new instance of the class. + /// + public DirectedEnergyAreaAimpoint() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(DirectedEnergyAreaAimpoint left, DirectedEnergyAreaAimpoint right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(DirectedEnergyAreaAimpoint left, DirectedEnergyAreaAimpoint right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._recordType + marshalSize += 2; // this._recordLength + marshalSize += 2; // this._padding + marshalSize += 2; // this._beamAntennaPatternRecordCount + marshalSize += 2; // this._directedEnergyTargetEnergyDepositionRecordCount + for (int idx = 0; idx < this._beamAntennaParameterList.Count; idx++) + { + BeamAntennaPattern listElement = (BeamAntennaPattern)this._beamAntennaParameterList[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._directedEnergyTargetEnergyDepositionRecordList.Count; idx++) + { + DirectedEnergyTargetEnergyDeposition listElement = (DirectedEnergyTargetEnergyDeposition)this._directedEnergyTargetEnergyDepositionRecordList[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Type of Record + /// + [XmlElement(Type = typeof(uint), ElementName = "recordType")] + public uint RecordType + { + get + { + return this._recordType; + } + + set + { + this._recordType = value; + } + } + + /// + /// Gets or sets the Length of Record + /// + [XmlElement(Type = typeof(ushort), ElementName = "recordLength")] + public ushort RecordLength + { + get + { + return this._recordLength; + } + + set + { + this._recordLength = value; + } + } + + /// + /// Gets or sets the Padding + /// + [XmlElement(Type = typeof(ushort), ElementName = "padding")] + public ushort Padding + { + get + { + return this._padding; + } + + set + { + this._padding = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getbeamAntennaPatternRecordCount method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(ushort), ElementName = "beamAntennaPatternRecordCount")] + public ushort BeamAntennaPatternRecordCount + { + get + { + return this._beamAntennaPatternRecordCount; + } + + set + { + this._beamAntennaPatternRecordCount = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getdirectedEnergyTargetEnergyDepositionRecordCount method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(ushort), ElementName = "directedEnergyTargetEnergyDepositionRecordCount")] + public ushort DirectedEnergyTargetEnergyDepositionRecordCount + { + get + { + return this._directedEnergyTargetEnergyDepositionRecordCount; + } + + set + { + this._directedEnergyTargetEnergyDepositionRecordCount = value; + } + } + + /// + /// Gets or sets the list of beam antenna records. See 6.2.9.2 + /// + [XmlElement(ElementName = "beamAntennaParameterListList", Type = typeof(List))] + public List BeamAntennaParameterList + { + get + { + return this._beamAntennaParameterList; + } + } + + /// + /// Gets or sets the list of DE target deposition records. See 6.2.21.4 + /// + [XmlElement(ElementName = "directedEnergyTargetEnergyDepositionRecordListList", Type = typeof(List))] + public List DirectedEnergyTargetEnergyDepositionRecordList + { + get + { + return this._directedEnergyTargetEnergyDepositionRecordList; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._recordType); + dos.WriteUnsignedShort((ushort)this._recordLength); + dos.WriteUnsignedShort((ushort)this._padding); + dos.WriteUnsignedShort((ushort)this._beamAntennaParameterList.Count); + dos.WriteUnsignedShort((ushort)this._directedEnergyTargetEnergyDepositionRecordList.Count); + + for (int idx = 0; idx < this._beamAntennaParameterList.Count; idx++) + { + BeamAntennaPattern aBeamAntennaPattern = (BeamAntennaPattern)this._beamAntennaParameterList[idx]; + aBeamAntennaPattern.Marshal(dos); + } + + for (int idx = 0; idx < this._directedEnergyTargetEnergyDepositionRecordList.Count; idx++) + { + DirectedEnergyTargetEnergyDeposition aDirectedEnergyTargetEnergyDeposition = (DirectedEnergyTargetEnergyDeposition)this._directedEnergyTargetEnergyDepositionRecordList[idx]; + aDirectedEnergyTargetEnergyDeposition.Marshal(dos); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._recordType = dis.ReadUnsignedInt(); + this._recordLength = dis.ReadUnsignedShort(); + this._padding = dis.ReadUnsignedShort(); + this._beamAntennaPatternRecordCount = dis.ReadUnsignedShort(); + this._directedEnergyTargetEnergyDepositionRecordCount = dis.ReadUnsignedShort(); + for (int idx = 0; idx < this.BeamAntennaPatternRecordCount; idx++) + { + BeamAntennaPattern anX = new BeamAntennaPattern(); + anX.Unmarshal(dis); + this._beamAntennaParameterList.Add(anX); + }; + + for (int idx = 0; idx < this.DirectedEnergyTargetEnergyDepositionRecordCount; idx++) + { + DirectedEnergyTargetEnergyDeposition anX = new DirectedEnergyTargetEnergyDeposition(); + anX.Unmarshal(dis); + this._directedEnergyTargetEnergyDepositionRecordList.Add(anX); + }; + + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._recordType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._recordLength.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._beamAntennaParameterList.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._directedEnergyTargetEnergyDepositionRecordList.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._beamAntennaParameterList.Count; idx++) + { + sb.AppendLine(""); + BeamAntennaPattern aBeamAntennaPattern = (BeamAntennaPattern)this._beamAntennaParameterList[idx]; + aBeamAntennaPattern.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._directedEnergyTargetEnergyDepositionRecordList.Count; idx++) + { + sb.AppendLine(""); + DirectedEnergyTargetEnergyDeposition aDirectedEnergyTargetEnergyDeposition = (DirectedEnergyTargetEnergyDeposition)this._directedEnergyTargetEnergyDepositionRecordList[idx]; + aDirectedEnergyTargetEnergyDeposition.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as DirectedEnergyAreaAimpoint; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(DirectedEnergyAreaAimpoint obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._recordType != obj._recordType) + { + ivarsEqual = false; + } + + if (this._recordLength != obj._recordLength) + { + ivarsEqual = false; + } + + if (this._padding != obj._padding) + { + ivarsEqual = false; + } + + if (this._beamAntennaPatternRecordCount != obj._beamAntennaPatternRecordCount) + { + ivarsEqual = false; + } + + if (this._directedEnergyTargetEnergyDepositionRecordCount != obj._directedEnergyTargetEnergyDepositionRecordCount) + { + ivarsEqual = false; + } + + if (this._beamAntennaParameterList.Count != obj._beamAntennaParameterList.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._beamAntennaParameterList.Count; idx++) + { + if (!this._beamAntennaParameterList[idx].Equals(obj._beamAntennaParameterList[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._directedEnergyTargetEnergyDepositionRecordList.Count != obj._directedEnergyTargetEnergyDepositionRecordList.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._directedEnergyTargetEnergyDepositionRecordList.Count; idx++) + { + if (!this._directedEnergyTargetEnergyDepositionRecordList[idx].Equals(obj._directedEnergyTargetEnergyDepositionRecordList[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._recordType.GetHashCode(); + result = GenerateHash(result) ^ this._recordLength.GetHashCode(); + result = GenerateHash(result) ^ this._padding.GetHashCode(); + result = GenerateHash(result) ^ this._beamAntennaPatternRecordCount.GetHashCode(); + result = GenerateHash(result) ^ this._directedEnergyTargetEnergyDepositionRecordCount.GetHashCode(); + + if (this._beamAntennaParameterList.Count > 0) + { + for (int idx = 0; idx < this._beamAntennaParameterList.Count; idx++) + { + result = GenerateHash(result) ^ this._beamAntennaParameterList[idx].GetHashCode(); + } + } + + if (this._directedEnergyTargetEnergyDepositionRecordList.Count > 0) + { + for (int idx = 0; idx < this._directedEnergyTargetEnergyDepositionRecordList.Count; idx++) + { + result = GenerateHash(result) ^ this._directedEnergyTargetEnergyDepositionRecordList[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/DirectedEnergyDamage.cs b/Libs/CSharpDis7/DirectedEnergyDamage.cs new file mode 100644 index 0000000..8d88db1 --- /dev/null +++ b/Libs/CSharpDis7/DirectedEnergyDamage.cs @@ -0,0 +1,635 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Damage sustained by an entity due to directed energy. Location of the damage based on a relative x,y,z location from the center of the entity. Section 6.2.17.2 + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(Vector3Float))] + [XmlInclude(typeof(EventIdentifier))] + public partial class DirectedEnergyDamage + { + /// + /// DE Record Type. + /// + private uint _recordType = 4500; + + /// + /// DE Record Length (bytes). + /// + private ushort _recordLength = 40; + + /// + /// padding. + /// + private ushort _padding; + + /// + /// location of damage, relative to center of entity + /// + private Vector3Float _damageLocation = new Vector3Float(); + + /// + /// Size of damaged area, in meters. + /// + private float _damageDiameter; + + /// + /// average temp of the damaged area, in degrees celsius. If firing entitty does not model this, use a value of -273.15 + /// + private float _temperature = -273.15; + + /// + /// enumeration + /// + private byte _componentIdentification; + + /// + /// enumeration + /// + private byte _componentDamageStatus; + + /// + /// enumeration + /// + private byte _componentVisualDamageStatus; + + /// + /// enumeration + /// + private byte _componentVisualSmokeColor; + + /// + /// For any component damage resulting this field shall be set to the fire event ID from that PDU. + /// + private EventIdentifier _fireEventID = new EventIdentifier(); + + /// + /// padding + /// + private ushort _padding2; + + /// + /// Initializes a new instance of the class. + /// + public DirectedEnergyDamage() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(DirectedEnergyDamage left, DirectedEnergyDamage right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(DirectedEnergyDamage left, DirectedEnergyDamage right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._recordType + marshalSize += 2; // this._recordLength + marshalSize += 2; // this._padding + marshalSize += this._damageLocation.GetMarshalledSize(); // this._damageLocation + marshalSize += 4; // this._damageDiameter + marshalSize += 4; // this._temperature + marshalSize += 1; // this._componentIdentification + marshalSize += 1; // this._componentDamageStatus + marshalSize += 1; // this._componentVisualDamageStatus + marshalSize += 1; // this._componentVisualSmokeColor + marshalSize += this._fireEventID.GetMarshalledSize(); // this._fireEventID + marshalSize += 2; // this._padding2 + return marshalSize; + } + + /// + /// Gets or sets the DE Record Type. + /// + [XmlElement(Type = typeof(uint), ElementName = "recordType")] + public uint RecordType + { + get + { + return this._recordType; + } + + set + { + this._recordType = value; + } + } + + /// + /// Gets or sets the DE Record Length (bytes). + /// + [XmlElement(Type = typeof(ushort), ElementName = "recordLength")] + public ushort RecordLength + { + get + { + return this._recordLength; + } + + set + { + this._recordLength = value; + } + } + + /// + /// Gets or sets the padding. + /// + [XmlElement(Type = typeof(ushort), ElementName = "padding")] + public ushort Padding + { + get + { + return this._padding; + } + + set + { + this._padding = value; + } + } + + /// + /// Gets or sets the location of damage, relative to center of entity + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "damageLocation")] + public Vector3Float DamageLocation + { + get + { + return this._damageLocation; + } + + set + { + this._damageLocation = value; + } + } + + /// + /// Gets or sets the Size of damaged area, in meters. + /// + [XmlElement(Type = typeof(float), ElementName = "damageDiameter")] + public float DamageDiameter + { + get + { + return this._damageDiameter; + } + + set + { + this._damageDiameter = value; + } + } + + /// + /// Gets or sets the average temp of the damaged area, in degrees celsius. If firing entitty does not model this, use a value of -273.15 + /// + [XmlElement(Type = typeof(float), ElementName = "temperature")] + public float Temperature + { + get + { + return this._temperature; + } + + set + { + this._temperature = value; + } + } + + /// + /// Gets or sets the enumeration + /// + [XmlElement(Type = typeof(byte), ElementName = "componentIdentification")] + public byte ComponentIdentification + { + get + { + return this._componentIdentification; + } + + set + { + this._componentIdentification = value; + } + } + + /// + /// Gets or sets the enumeration + /// + [XmlElement(Type = typeof(byte), ElementName = "componentDamageStatus")] + public byte ComponentDamageStatus + { + get + { + return this._componentDamageStatus; + } + + set + { + this._componentDamageStatus = value; + } + } + + /// + /// Gets or sets the enumeration + /// + [XmlElement(Type = typeof(byte), ElementName = "componentVisualDamageStatus")] + public byte ComponentVisualDamageStatus + { + get + { + return this._componentVisualDamageStatus; + } + + set + { + this._componentVisualDamageStatus = value; + } + } + + /// + /// Gets or sets the enumeration + /// + [XmlElement(Type = typeof(byte), ElementName = "componentVisualSmokeColor")] + public byte ComponentVisualSmokeColor + { + get + { + return this._componentVisualSmokeColor; + } + + set + { + this._componentVisualSmokeColor = value; + } + } + + /// + /// Gets or sets the For any component damage resulting this field shall be set to the fire event ID from that PDU. + /// + [XmlElement(Type = typeof(EventIdentifier), ElementName = "fireEventID")] + public EventIdentifier FireEventID + { + get + { + return this._fireEventID; + } + + set + { + this._fireEventID = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(ushort), ElementName = "padding2")] + public ushort Padding2 + { + get + { + return this._padding2; + } + + set + { + this._padding2 = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._recordType); + dos.WriteUnsignedShort((ushort)this._recordLength); + dos.WriteUnsignedShort((ushort)this._padding); + this._damageLocation.Marshal(dos); + dos.WriteFloat((float)this._damageDiameter); + dos.WriteFloat((float)this._temperature); + dos.WriteUnsignedByte((byte)this._componentIdentification); + dos.WriteUnsignedByte((byte)this._componentDamageStatus); + dos.WriteUnsignedByte((byte)this._componentVisualDamageStatus); + dos.WriteUnsignedByte((byte)this._componentVisualSmokeColor); + this._fireEventID.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._padding2); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._recordType = dis.ReadUnsignedInt(); + this._recordLength = dis.ReadUnsignedShort(); + this._padding = dis.ReadUnsignedShort(); + this._damageLocation.Unmarshal(dis); + this._damageDiameter = dis.ReadFloat(); + this._temperature = dis.ReadFloat(); + this._componentIdentification = dis.ReadUnsignedByte(); + this._componentDamageStatus = dis.ReadUnsignedByte(); + this._componentVisualDamageStatus = dis.ReadUnsignedByte(); + this._componentVisualSmokeColor = dis.ReadUnsignedByte(); + this._fireEventID.Unmarshal(dis); + this._padding2 = dis.ReadUnsignedShort(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._recordType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._recordLength.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._damageLocation.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._damageDiameter.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._temperature.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._componentIdentification.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._componentDamageStatus.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._componentVisualDamageStatus.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._componentVisualSmokeColor.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._fireEventID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as DirectedEnergyDamage; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(DirectedEnergyDamage obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._recordType != obj._recordType) + { + ivarsEqual = false; + } + + if (this._recordLength != obj._recordLength) + { + ivarsEqual = false; + } + + if (this._padding != obj._padding) + { + ivarsEqual = false; + } + + if (!this._damageLocation.Equals(obj._damageLocation)) + { + ivarsEqual = false; + } + + if (this._damageDiameter != obj._damageDiameter) + { + ivarsEqual = false; + } + + if (this._temperature != obj._temperature) + { + ivarsEqual = false; + } + + if (this._componentIdentification != obj._componentIdentification) + { + ivarsEqual = false; + } + + if (this._componentDamageStatus != obj._componentDamageStatus) + { + ivarsEqual = false; + } + + if (this._componentVisualDamageStatus != obj._componentVisualDamageStatus) + { + ivarsEqual = false; + } + + if (this._componentVisualSmokeColor != obj._componentVisualSmokeColor) + { + ivarsEqual = false; + } + + if (!this._fireEventID.Equals(obj._fireEventID)) + { + ivarsEqual = false; + } + + if (this._padding2 != obj._padding2) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._recordType.GetHashCode(); + result = GenerateHash(result) ^ this._recordLength.GetHashCode(); + result = GenerateHash(result) ^ this._padding.GetHashCode(); + result = GenerateHash(result) ^ this._damageLocation.GetHashCode(); + result = GenerateHash(result) ^ this._damageDiameter.GetHashCode(); + result = GenerateHash(result) ^ this._temperature.GetHashCode(); + result = GenerateHash(result) ^ this._componentIdentification.GetHashCode(); + result = GenerateHash(result) ^ this._componentDamageStatus.GetHashCode(); + result = GenerateHash(result) ^ this._componentVisualDamageStatus.GetHashCode(); + result = GenerateHash(result) ^ this._componentVisualSmokeColor.GetHashCode(); + result = GenerateHash(result) ^ this._fireEventID.GetHashCode(); + result = GenerateHash(result) ^ this._padding2.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/DirectedEnergyFirePdu.cs b/Libs/CSharpDis7/DirectedEnergyFirePdu.cs new file mode 100644 index 0000000..4ce5f99 --- /dev/null +++ b/Libs/CSharpDis7/DirectedEnergyFirePdu.cs @@ -0,0 +1,809 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Firing of a directed energy weapon shall be communicated by issuing a Directed Energy Fire PDU Section 7.3.4 COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityType))] + [XmlInclude(typeof(ClockTime))] + [XmlInclude(typeof(Vector3Float))] + [XmlInclude(typeof(StandardVariableSpecification))] + public partial class DirectedEnergyFirePdu : WarfareFamilyPdu, IEquatable + { + /// + /// Field shall identify the munition type enumeration for the DE weapon beam, Section 7.3.4 + /// + private EntityType _munitionType = new EntityType(); + + /// + /// Field shall indicate the simulation time at start of the shot, Section 7.3.4 + /// + private ClockTime _shotStartTime = new ClockTime(); + + /// + /// Field shall indicate the current cumulative duration of the shot, Section 7.3.4 + /// + private float _commulativeShotTime; + + /// + /// Field shall identify the location of the DE weapon aperture/emitter, Section 7.3.4 + /// + private Vector3Float _ApertureEmitterLocation = new Vector3Float(); + + /// + /// Field shall identify the beam diameter at the aperture/emitter, Section 7.3.4 + /// + private float _apertureDiameter; + + /// + /// Field shall identify the emissions wavelength in units of meters, Section 7.3.4 + /// + private float _wavelength; + + /// + /// Field shall identify the current peak irradiance of emissions in units of Watts per square meter, Section 7.3.4 + /// + private float _peakIrradiance; + + /// + /// field shall identify the current pulse repetition frequency in units of cycles per second (Hertz), Section 7.3.4 + /// + private float _pulseRepetitionFrequency; + + /// + /// field shall identify the pulse width emissions in units of seconds, Section 7.3.4 + /// + private int _pulseWidth; + + /// + /// 16bit Boolean field shall contain various flags to indicate status information needed to process a DE, Section 7.3.4 + /// + private int _flags; + + /// + /// Field shall identify the pulse shape and shall be represented as an 8-bit enumeration, Section 7.3.4 + /// + private byte _pulseShape; + + /// + /// padding, Section 7.3.4 + /// + private byte _padding1; + + /// + /// padding, Section 7.3.4 + /// + private uint _padding2; + + /// + /// padding, Section 7.3.4 + /// + private ushort _padding3; + + /// + /// Field shall specify the number of DE records, Section 7.3.4 + /// + private ushort _numberOfDERecords; + + /// + /// Fields shall contain one or more DE records, records shall conform to the variable record format (Section6.2.82), Section 7.3.4 + /// + private List _dERecords = new List(); + + /// + /// Initializes a new instance of the class. + /// + public DirectedEnergyFirePdu() + { + PduType = (byte)68; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(DirectedEnergyFirePdu left, DirectedEnergyFirePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(DirectedEnergyFirePdu left, DirectedEnergyFirePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._munitionType.GetMarshalledSize(); // this._munitionType + marshalSize += this._shotStartTime.GetMarshalledSize(); // this._shotStartTime + marshalSize += 4; // this._commulativeShotTime + marshalSize += this._ApertureEmitterLocation.GetMarshalledSize(); // this._ApertureEmitterLocation + marshalSize += 4; // this._apertureDiameter + marshalSize += 4; // this._wavelength + marshalSize += 4; // this._peakIrradiance + marshalSize += 4; // this._pulseRepetitionFrequency + marshalSize += 4; // this._pulseWidth + marshalSize += 4; // this._flags + marshalSize += 1; // this._pulseShape + marshalSize += 1; // this._padding1 + marshalSize += 4; // this._padding2 + marshalSize += 2; // this._padding3 + marshalSize += 2; // this._numberOfDERecords + for (int idx = 0; idx < this._dERecords.Count; idx++) + { + StandardVariableSpecification listElement = (StandardVariableSpecification)this._dERecords[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Field shall identify the munition type enumeration for the DE weapon beam, Section 7.3.4 + /// + [XmlElement(Type = typeof(EntityType), ElementName = "munitionType")] + public EntityType MunitionType + { + get + { + return this._munitionType; + } + + set + { + this._munitionType = value; + } + } + + /// + /// Gets or sets the Field shall indicate the simulation time at start of the shot, Section 7.3.4 + /// + [XmlElement(Type = typeof(ClockTime), ElementName = "shotStartTime")] + public ClockTime ShotStartTime + { + get + { + return this._shotStartTime; + } + + set + { + this._shotStartTime = value; + } + } + + /// + /// Gets or sets the Field shall indicate the current cumulative duration of the shot, Section 7.3.4 + /// + [XmlElement(Type = typeof(float), ElementName = "commulativeShotTime")] + public float CommulativeShotTime + { + get + { + return this._commulativeShotTime; + } + + set + { + this._commulativeShotTime = value; + } + } + + /// + /// Gets or sets the Field shall identify the location of the DE weapon aperture/emitter, Section 7.3.4 + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "ApertureEmitterLocation")] + public Vector3Float ApertureEmitterLocation + { + get + { + return this._ApertureEmitterLocation; + } + + set + { + this._ApertureEmitterLocation = value; + } + } + + /// + /// Gets or sets the Field shall identify the beam diameter at the aperture/emitter, Section 7.3.4 + /// + [XmlElement(Type = typeof(float), ElementName = "apertureDiameter")] + public float ApertureDiameter + { + get + { + return this._apertureDiameter; + } + + set + { + this._apertureDiameter = value; + } + } + + /// + /// Gets or sets the Field shall identify the emissions wavelength in units of meters, Section 7.3.4 + /// + [XmlElement(Type = typeof(float), ElementName = "wavelength")] + public float Wavelength + { + get + { + return this._wavelength; + } + + set + { + this._wavelength = value; + } + } + + /// + /// Gets or sets the Field shall identify the current peak irradiance of emissions in units of Watts per square meter, Section 7.3.4 + /// + [XmlElement(Type = typeof(float), ElementName = "peakIrradiance")] + public float PeakIrradiance + { + get + { + return this._peakIrradiance; + } + + set + { + this._peakIrradiance = value; + } + } + + /// + /// Gets or sets the field shall identify the current pulse repetition frequency in units of cycles per second (Hertz), Section 7.3.4 + /// + [XmlElement(Type = typeof(float), ElementName = "pulseRepetitionFrequency")] + public float PulseRepetitionFrequency + { + get + { + return this._pulseRepetitionFrequency; + } + + set + { + this._pulseRepetitionFrequency = value; + } + } + + /// + /// Gets or sets the field shall identify the pulse width emissions in units of seconds, Section 7.3.4 + /// + [XmlElement(Type = typeof(int), ElementName = "pulseWidth")] + public int PulseWidth + { + get + { + return this._pulseWidth; + } + + set + { + this._pulseWidth = value; + } + } + + /// + /// Gets or sets the 16bit Boolean field shall contain various flags to indicate status information needed to process a DE, Section 7.3.4 + /// + [XmlElement(Type = typeof(int), ElementName = "flags")] + public int Flags + { + get + { + return this._flags; + } + + set + { + this._flags = value; + } + } + + /// + /// Gets or sets the Field shall identify the pulse shape and shall be represented as an 8-bit enumeration, Section 7.3.4 + /// + [XmlElement(Type = typeof(byte), ElementName = "pulseShape")] + public byte PulseShape + { + get + { + return this._pulseShape; + } + + set + { + this._pulseShape = value; + } + } + + /// + /// Gets or sets the padding, Section 7.3.4 + /// + [XmlElement(Type = typeof(byte), ElementName = "padding1")] + public byte Padding1 + { + get + { + return this._padding1; + } + + set + { + this._padding1 = value; + } + } + + /// + /// Gets or sets the padding, Section 7.3.4 + /// + [XmlElement(Type = typeof(uint), ElementName = "padding2")] + public uint Padding2 + { + get + { + return this._padding2; + } + + set + { + this._padding2 = value; + } + } + + /// + /// Gets or sets the padding, Section 7.3.4 + /// + [XmlElement(Type = typeof(ushort), ElementName = "padding3")] + public ushort Padding3 + { + get + { + return this._padding3; + } + + set + { + this._padding3 = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfDERecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(ushort), ElementName = "numberOfDERecords")] + public ushort NumberOfDERecords + { + get + { + return this._numberOfDERecords; + } + + set + { + this._numberOfDERecords = value; + } + } + + /// + /// Gets or sets the Fields shall contain one or more DE records, records shall conform to the variable record format (Section6.2.82), Section 7.3.4 + /// + [XmlElement(ElementName = "dERecordsList", Type = typeof(List))] + public List DERecords + { + get + { + return this._dERecords; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._munitionType.Marshal(dos); + this._shotStartTime.Marshal(dos); + dos.WriteFloat((float)this._commulativeShotTime); + this._ApertureEmitterLocation.Marshal(dos); + dos.WriteFloat((float)this._apertureDiameter); + dos.WriteFloat((float)this._wavelength); + dos.WriteFloat((float)this._peakIrradiance); + dos.WriteFloat((float)this._pulseRepetitionFrequency); + dos.WriteInt((int)this._pulseWidth); + dos.WriteInt((int)this._flags); + dos.WriteByte((byte)this._pulseShape); + dos.WriteUnsignedByte((byte)this._padding1); + dos.WriteUnsignedInt((uint)this._padding2); + dos.WriteUnsignedShort((ushort)this._padding3); + dos.WriteUnsignedShort((ushort)this._dERecords.Count); + + for (int idx = 0; idx < this._dERecords.Count; idx++) + { + StandardVariableSpecification aStandardVariableSpecification = (StandardVariableSpecification)this._dERecords[idx]; + aStandardVariableSpecification.Marshal(dos); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._munitionType.Unmarshal(dis); + this._shotStartTime.Unmarshal(dis); + this._commulativeShotTime = dis.ReadFloat(); + this._ApertureEmitterLocation.Unmarshal(dis); + this._apertureDiameter = dis.ReadFloat(); + this._wavelength = dis.ReadFloat(); + this._peakIrradiance = dis.ReadFloat(); + this._pulseRepetitionFrequency = dis.ReadFloat(); + this._pulseWidth = dis.ReadInt(); + this._flags = dis.ReadInt(); + this._pulseShape = dis.ReadByte(); + this._padding1 = dis.ReadUnsignedByte(); + this._padding2 = dis.ReadUnsignedInt(); + this._padding3 = dis.ReadUnsignedShort(); + this._numberOfDERecords = dis.ReadUnsignedShort(); + for (int idx = 0; idx < this.NumberOfDERecords; idx++) + { + StandardVariableSpecification anX = new StandardVariableSpecification(); + anX.Unmarshal(dis); + this._dERecords.Add(anX); + }; + + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._munitionType.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._shotStartTime.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._commulativeShotTime.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._ApertureEmitterLocation.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._apertureDiameter.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._wavelength.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._peakIrradiance.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pulseRepetitionFrequency.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pulseWidth.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._flags.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pulseShape.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding3.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._dERecords.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._dERecords.Count; idx++) + { + sb.AppendLine(""); + StandardVariableSpecification aStandardVariableSpecification = (StandardVariableSpecification)this._dERecords[idx]; + aStandardVariableSpecification.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as DirectedEnergyFirePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(DirectedEnergyFirePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._munitionType.Equals(obj._munitionType)) + { + ivarsEqual = false; + } + + if (!this._shotStartTime.Equals(obj._shotStartTime)) + { + ivarsEqual = false; + } + + if (this._commulativeShotTime != obj._commulativeShotTime) + { + ivarsEqual = false; + } + + if (!this._ApertureEmitterLocation.Equals(obj._ApertureEmitterLocation)) + { + ivarsEqual = false; + } + + if (this._apertureDiameter != obj._apertureDiameter) + { + ivarsEqual = false; + } + + if (this._wavelength != obj._wavelength) + { + ivarsEqual = false; + } + + if (this._peakIrradiance != obj._peakIrradiance) + { + ivarsEqual = false; + } + + if (this._pulseRepetitionFrequency != obj._pulseRepetitionFrequency) + { + ivarsEqual = false; + } + + if (this._pulseWidth != obj._pulseWidth) + { + ivarsEqual = false; + } + + if (this._flags != obj._flags) + { + ivarsEqual = false; + } + + if (this._pulseShape != obj._pulseShape) + { + ivarsEqual = false; + } + + if (this._padding1 != obj._padding1) + { + ivarsEqual = false; + } + + if (this._padding2 != obj._padding2) + { + ivarsEqual = false; + } + + if (this._padding3 != obj._padding3) + { + ivarsEqual = false; + } + + if (this._numberOfDERecords != obj._numberOfDERecords) + { + ivarsEqual = false; + } + + if (this._dERecords.Count != obj._dERecords.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._dERecords.Count; idx++) + { + if (!this._dERecords[idx].Equals(obj._dERecords[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._munitionType.GetHashCode(); + result = GenerateHash(result) ^ this._shotStartTime.GetHashCode(); + result = GenerateHash(result) ^ this._commulativeShotTime.GetHashCode(); + result = GenerateHash(result) ^ this._ApertureEmitterLocation.GetHashCode(); + result = GenerateHash(result) ^ this._apertureDiameter.GetHashCode(); + result = GenerateHash(result) ^ this._wavelength.GetHashCode(); + result = GenerateHash(result) ^ this._peakIrradiance.GetHashCode(); + result = GenerateHash(result) ^ this._pulseRepetitionFrequency.GetHashCode(); + result = GenerateHash(result) ^ this._pulseWidth.GetHashCode(); + result = GenerateHash(result) ^ this._flags.GetHashCode(); + result = GenerateHash(result) ^ this._pulseShape.GetHashCode(); + result = GenerateHash(result) ^ this._padding1.GetHashCode(); + result = GenerateHash(result) ^ this._padding2.GetHashCode(); + result = GenerateHash(result) ^ this._padding3.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfDERecords.GetHashCode(); + + if (this._dERecords.Count > 0) + { + for (int idx = 0; idx < this._dERecords.Count; idx++) + { + result = GenerateHash(result) ^ this._dERecords[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/DirectedEnergyPrecisionAimpoint.cs b/Libs/CSharpDis7/DirectedEnergyPrecisionAimpoint.cs new file mode 100644 index 0000000..1eeda49 --- /dev/null +++ b/Libs/CSharpDis7/DirectedEnergyPrecisionAimpoint.cs @@ -0,0 +1,674 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// DE Precision Aimpoint Record. Section 6.2.21.3 + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(Vector3Double))] + [XmlInclude(typeof(Vector3Float))] + [XmlInclude(typeof(EntityID))] + public partial class DirectedEnergyPrecisionAimpoint + { + /// + /// Type of Record + /// + private uint _recordType = 4000; + + /// + /// Length of Record + /// + private ushort _recordLength = 88; + + /// + /// Padding + /// + private ushort _padding; + + /// + /// Position of Target Spot in World Coordinates. + /// + private Vector3Double _targetSpotLocation = new Vector3Double(); + + /// + /// Position (meters) of Target Spot relative to Entity Position. + /// + private Vector3Float _targetSpotEntityLocation = new Vector3Float(); + + /// + /// Velocity (meters/sec) of Target Spot. + /// + private Vector3Float _targetSpotVelocity = new Vector3Float(); + + /// + /// Acceleration (meters/sec/sec) of Target Spot. + /// + private Vector3Float _targetSpotAcceleration = new Vector3Float(); + + /// + /// Unique ID of the target entity. + /// + private EntityID _targetEntityID = new EntityID(); + + /// + /// Target Component ID ENUM, same as in DamageDescriptionRecord. + /// + private byte _targetComponentID; + + /// + /// Spot Shape ENUM. + /// + private byte _SpotShape; + + /// + /// Beam Spot Cross Section Semi-Major Axis. + /// + private float _BeamSpotXSecSemiMajorAxis; + + /// + /// Beam Spot Cross Section Semi-Major Axis. + /// + private float _BeamSpotCrossSectionSemiMinorAxis; + + /// + /// Beam Spot Cross Section Orientation Angle. + /// + private float _BeamSpotCrossSectionOrientAngle; + + /// + /// Initializes a new instance of the class. + /// + public DirectedEnergyPrecisionAimpoint() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(DirectedEnergyPrecisionAimpoint left, DirectedEnergyPrecisionAimpoint right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(DirectedEnergyPrecisionAimpoint left, DirectedEnergyPrecisionAimpoint right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._recordType + marshalSize += 2; // this._recordLength + marshalSize += 2; // this._padding + marshalSize += this._targetSpotLocation.GetMarshalledSize(); // this._targetSpotLocation + marshalSize += this._targetSpotEntityLocation.GetMarshalledSize(); // this._targetSpotEntityLocation + marshalSize += this._targetSpotVelocity.GetMarshalledSize(); // this._targetSpotVelocity + marshalSize += this._targetSpotAcceleration.GetMarshalledSize(); // this._targetSpotAcceleration + marshalSize += this._targetEntityID.GetMarshalledSize(); // this._targetEntityID + marshalSize += 1; // this._targetComponentID + marshalSize += 1; // this._SpotShape + marshalSize += 4; // this._BeamSpotXSecSemiMajorAxis + marshalSize += 4; // this._BeamSpotCrossSectionSemiMinorAxis + marshalSize += 4; // this._BeamSpotCrossSectionOrientAngle + return marshalSize; + } + + /// + /// Gets or sets the Type of Record + /// + [XmlElement(Type = typeof(uint), ElementName = "recordType")] + public uint RecordType + { + get + { + return this._recordType; + } + + set + { + this._recordType = value; + } + } + + /// + /// Gets or sets the Length of Record + /// + [XmlElement(Type = typeof(ushort), ElementName = "recordLength")] + public ushort RecordLength + { + get + { + return this._recordLength; + } + + set + { + this._recordLength = value; + } + } + + /// + /// Gets or sets the Padding + /// + [XmlElement(Type = typeof(ushort), ElementName = "padding")] + public ushort Padding + { + get + { + return this._padding; + } + + set + { + this._padding = value; + } + } + + /// + /// Gets or sets the Position of Target Spot in World Coordinates. + /// + [XmlElement(Type = typeof(Vector3Double), ElementName = "targetSpotLocation")] + public Vector3Double TargetSpotLocation + { + get + { + return this._targetSpotLocation; + } + + set + { + this._targetSpotLocation = value; + } + } + + /// + /// Gets or sets the Position (meters) of Target Spot relative to Entity Position. + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "targetSpotEntityLocation")] + public Vector3Float TargetSpotEntityLocation + { + get + { + return this._targetSpotEntityLocation; + } + + set + { + this._targetSpotEntityLocation = value; + } + } + + /// + /// Gets or sets the Velocity (meters/sec) of Target Spot. + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "targetSpotVelocity")] + public Vector3Float TargetSpotVelocity + { + get + { + return this._targetSpotVelocity; + } + + set + { + this._targetSpotVelocity = value; + } + } + + /// + /// Gets or sets the Acceleration (meters/sec/sec) of Target Spot. + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "targetSpotAcceleration")] + public Vector3Float TargetSpotAcceleration + { + get + { + return this._targetSpotAcceleration; + } + + set + { + this._targetSpotAcceleration = value; + } + } + + /// + /// Gets or sets the Unique ID of the target entity. + /// + [XmlElement(Type = typeof(EntityID), ElementName = "targetEntityID")] + public EntityID TargetEntityID + { + get + { + return this._targetEntityID; + } + + set + { + this._targetEntityID = value; + } + } + + /// + /// Gets or sets the Target Component ID ENUM, same as in DamageDescriptionRecord. + /// + [XmlElement(Type = typeof(byte), ElementName = "targetComponentID")] + public byte TargetComponentID + { + get + { + return this._targetComponentID; + } + + set + { + this._targetComponentID = value; + } + } + + /// + /// Gets or sets the Spot Shape ENUM. + /// + [XmlElement(Type = typeof(byte), ElementName = "SpotShape")] + public byte SpotShape + { + get + { + return this._SpotShape; + } + + set + { + this._SpotShape = value; + } + } + + /// + /// Gets or sets the Beam Spot Cross Section Semi-Major Axis. + /// + [XmlElement(Type = typeof(float), ElementName = "BeamSpotXSecSemiMajorAxis")] + public float BeamSpotXSecSemiMajorAxis + { + get + { + return this._BeamSpotXSecSemiMajorAxis; + } + + set + { + this._BeamSpotXSecSemiMajorAxis = value; + } + } + + /// + /// Gets or sets the Beam Spot Cross Section Semi-Major Axis. + /// + [XmlElement(Type = typeof(float), ElementName = "BeamSpotCrossSectionSemiMinorAxis")] + public float BeamSpotCrossSectionSemiMinorAxis + { + get + { + return this._BeamSpotCrossSectionSemiMinorAxis; + } + + set + { + this._BeamSpotCrossSectionSemiMinorAxis = value; + } + } + + /// + /// Gets or sets the Beam Spot Cross Section Orientation Angle. + /// + [XmlElement(Type = typeof(float), ElementName = "BeamSpotCrossSectionOrientAngle")] + public float BeamSpotCrossSectionOrientAngle + { + get + { + return this._BeamSpotCrossSectionOrientAngle; + } + + set + { + this._BeamSpotCrossSectionOrientAngle = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._recordType); + dos.WriteUnsignedShort((ushort)this._recordLength); + dos.WriteUnsignedShort((ushort)this._padding); + this._targetSpotLocation.Marshal(dos); + this._targetSpotEntityLocation.Marshal(dos); + this._targetSpotVelocity.Marshal(dos); + this._targetSpotAcceleration.Marshal(dos); + this._targetEntityID.Marshal(dos); + dos.WriteUnsignedByte((byte)this._targetComponentID); + dos.WriteUnsignedByte((byte)this._SpotShape); + dos.WriteFloat((float)this._BeamSpotXSecSemiMajorAxis); + dos.WriteFloat((float)this._BeamSpotCrossSectionSemiMinorAxis); + dos.WriteFloat((float)this._BeamSpotCrossSectionOrientAngle); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._recordType = dis.ReadUnsignedInt(); + this._recordLength = dis.ReadUnsignedShort(); + this._padding = dis.ReadUnsignedShort(); + this._targetSpotLocation.Unmarshal(dis); + this._targetSpotEntityLocation.Unmarshal(dis); + this._targetSpotVelocity.Unmarshal(dis); + this._targetSpotAcceleration.Unmarshal(dis); + this._targetEntityID.Unmarshal(dis); + this._targetComponentID = dis.ReadUnsignedByte(); + this._SpotShape = dis.ReadUnsignedByte(); + this._BeamSpotXSecSemiMajorAxis = dis.ReadFloat(); + this._BeamSpotCrossSectionSemiMinorAxis = dis.ReadFloat(); + this._BeamSpotCrossSectionOrientAngle = dis.ReadFloat(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._recordType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._recordLength.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._targetSpotLocation.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._targetSpotEntityLocation.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._targetSpotVelocity.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._targetSpotAcceleration.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._targetEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._targetComponentID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._SpotShape.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._BeamSpotXSecSemiMajorAxis.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._BeamSpotCrossSectionSemiMinorAxis.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._BeamSpotCrossSectionOrientAngle.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as DirectedEnergyPrecisionAimpoint; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(DirectedEnergyPrecisionAimpoint obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._recordType != obj._recordType) + { + ivarsEqual = false; + } + + if (this._recordLength != obj._recordLength) + { + ivarsEqual = false; + } + + if (this._padding != obj._padding) + { + ivarsEqual = false; + } + + if (!this._targetSpotLocation.Equals(obj._targetSpotLocation)) + { + ivarsEqual = false; + } + + if (!this._targetSpotEntityLocation.Equals(obj._targetSpotEntityLocation)) + { + ivarsEqual = false; + } + + if (!this._targetSpotVelocity.Equals(obj._targetSpotVelocity)) + { + ivarsEqual = false; + } + + if (!this._targetSpotAcceleration.Equals(obj._targetSpotAcceleration)) + { + ivarsEqual = false; + } + + if (!this._targetEntityID.Equals(obj._targetEntityID)) + { + ivarsEqual = false; + } + + if (this._targetComponentID != obj._targetComponentID) + { + ivarsEqual = false; + } + + if (this._SpotShape != obj._SpotShape) + { + ivarsEqual = false; + } + + if (this._BeamSpotXSecSemiMajorAxis != obj._BeamSpotXSecSemiMajorAxis) + { + ivarsEqual = false; + } + + if (this._BeamSpotCrossSectionSemiMinorAxis != obj._BeamSpotCrossSectionSemiMinorAxis) + { + ivarsEqual = false; + } + + if (this._BeamSpotCrossSectionOrientAngle != obj._BeamSpotCrossSectionOrientAngle) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._recordType.GetHashCode(); + result = GenerateHash(result) ^ this._recordLength.GetHashCode(); + result = GenerateHash(result) ^ this._padding.GetHashCode(); + result = GenerateHash(result) ^ this._targetSpotLocation.GetHashCode(); + result = GenerateHash(result) ^ this._targetSpotEntityLocation.GetHashCode(); + result = GenerateHash(result) ^ this._targetSpotVelocity.GetHashCode(); + result = GenerateHash(result) ^ this._targetSpotAcceleration.GetHashCode(); + result = GenerateHash(result) ^ this._targetEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._targetComponentID.GetHashCode(); + result = GenerateHash(result) ^ this._SpotShape.GetHashCode(); + result = GenerateHash(result) ^ this._BeamSpotXSecSemiMajorAxis.GetHashCode(); + result = GenerateHash(result) ^ this._BeamSpotCrossSectionSemiMinorAxis.GetHashCode(); + result = GenerateHash(result) ^ this._BeamSpotCrossSectionOrientAngle.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/DirectedEnergyTargetEnergyDeposition.cs b/Libs/CSharpDis7/DirectedEnergyTargetEnergyDeposition.cs new file mode 100644 index 0000000..1b0a133 --- /dev/null +++ b/Libs/CSharpDis7/DirectedEnergyTargetEnergyDeposition.cs @@ -0,0 +1,344 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// DE energy depostion properties for a target entity. Section 6.2.21.4 + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + public partial class DirectedEnergyTargetEnergyDeposition + { + /// + /// Unique ID of the target entity. + /// + private EntityID _targetEntityID = new EntityID(); + + /// + /// padding + /// + private ushort _padding; + + /// + /// Peak irrandiance + /// + private float _peakIrradiance; + + /// + /// Initializes a new instance of the class. + /// + public DirectedEnergyTargetEnergyDeposition() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(DirectedEnergyTargetEnergyDeposition left, DirectedEnergyTargetEnergyDeposition right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(DirectedEnergyTargetEnergyDeposition left, DirectedEnergyTargetEnergyDeposition right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += this._targetEntityID.GetMarshalledSize(); // this._targetEntityID + marshalSize += 2; // this._padding + marshalSize += 4; // this._peakIrradiance + return marshalSize; + } + + /// + /// Gets or sets the Unique ID of the target entity. + /// + [XmlElement(Type = typeof(EntityID), ElementName = "targetEntityID")] + public EntityID TargetEntityID + { + get + { + return this._targetEntityID; + } + + set + { + this._targetEntityID = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(ushort), ElementName = "padding")] + public ushort Padding + { + get + { + return this._padding; + } + + set + { + this._padding = value; + } + } + + /// + /// Gets or sets the Peak irrandiance + /// + [XmlElement(Type = typeof(float), ElementName = "peakIrradiance")] + public float PeakIrradiance + { + get + { + return this._peakIrradiance; + } + + set + { + this._peakIrradiance = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + this._targetEntityID.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._padding); + dos.WriteFloat((float)this._peakIrradiance); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._targetEntityID.Unmarshal(dis); + this._padding = dis.ReadUnsignedShort(); + this._peakIrradiance = dis.ReadFloat(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine(""); + this._targetEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._peakIrradiance.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as DirectedEnergyTargetEnergyDeposition; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(DirectedEnergyTargetEnergyDeposition obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (!this._targetEntityID.Equals(obj._targetEntityID)) + { + ivarsEqual = false; + } + + if (this._padding != obj._padding) + { + ivarsEqual = false; + } + + if (this._peakIrradiance != obj._peakIrradiance) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._targetEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._padding.GetHashCode(); + result = GenerateHash(result) ^ this._peakIrradiance.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/DistributedEmissionsFamilyPdu.cs b/Libs/CSharpDis7/DistributedEmissionsFamilyPdu.cs new file mode 100644 index 0000000..1afa67b --- /dev/null +++ b/Libs/CSharpDis7/DistributedEmissionsFamilyPdu.cs @@ -0,0 +1,248 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Section 5.3.7. Electronic Emissions. Abstract superclass for distirubted emissions PDU + /// + [Serializable] + [XmlRoot] + public partial class DistributedEmissionsFamilyPdu : Pdu, IEquatable + { + /// + /// Initializes a new instance of the class. + /// + public DistributedEmissionsFamilyPdu() + { + ProtocolFamily = (byte)6; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(DistributedEmissionsFamilyPdu left, DistributedEmissionsFamilyPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(DistributedEmissionsFamilyPdu left, DistributedEmissionsFamilyPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + return marshalSize; + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public virtual void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as DistributedEmissionsFamilyPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(DistributedEmissionsFamilyPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/EEFundamentalParameterData.cs b/Libs/CSharpDis7/EEFundamentalParameterData.cs new file mode 100644 index 0000000..d6d6483 --- /dev/null +++ b/Libs/CSharpDis7/EEFundamentalParameterData.cs @@ -0,0 +1,405 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Contains electromagnetic emmission regeneration parameters that are variable throught a scenario. Section 6.2.22. + /// + [Serializable] + [XmlRoot] + public partial class EEFundamentalParameterData + { + /// + /// center frequency of the emission in hertz. + /// + private float _frequency; + + /// + /// Bandwidth of the frequencies corresponding to the fequency field. + /// + private float _frequencyRange; + + /// + /// Effective radiated power for the emission in DdBm. For a radar noise jammer, indicates the peak of the transmitted power. + /// + private float _effectiveRadiatedPower; + + /// + /// Average repetition frequency of the emission in hertz. + /// + private float _pulseRepetitionFrequency; + + /// + /// Average pulse width of the emission in microseconds. + /// + private float _pulseWidth; + + /// + /// Initializes a new instance of the class. + /// + public EEFundamentalParameterData() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(EEFundamentalParameterData left, EEFundamentalParameterData right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(EEFundamentalParameterData left, EEFundamentalParameterData right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._frequency + marshalSize += 4; // this._frequencyRange + marshalSize += 4; // this._effectiveRadiatedPower + marshalSize += 4; // this._pulseRepetitionFrequency + marshalSize += 4; // this._pulseWidth + return marshalSize; + } + + /// + /// Gets or sets the center frequency of the emission in hertz. + /// + [XmlElement(Type = typeof(float), ElementName = "frequency")] + public float Frequency + { + get + { + return this._frequency; + } + + set + { + this._frequency = value; + } + } + + /// + /// Gets or sets the Bandwidth of the frequencies corresponding to the fequency field. + /// + [XmlElement(Type = typeof(float), ElementName = "frequencyRange")] + public float FrequencyRange + { + get + { + return this._frequencyRange; + } + + set + { + this._frequencyRange = value; + } + } + + /// + /// Gets or sets the Effective radiated power for the emission in DdBm. For a radar noise jammer, indicates the peak of the transmitted power. + /// + [XmlElement(Type = typeof(float), ElementName = "effectiveRadiatedPower")] + public float EffectiveRadiatedPower + { + get + { + return this._effectiveRadiatedPower; + } + + set + { + this._effectiveRadiatedPower = value; + } + } + + /// + /// Gets or sets the Average repetition frequency of the emission in hertz. + /// + [XmlElement(Type = typeof(float), ElementName = "pulseRepetitionFrequency")] + public float PulseRepetitionFrequency + { + get + { + return this._pulseRepetitionFrequency; + } + + set + { + this._pulseRepetitionFrequency = value; + } + } + + /// + /// Gets or sets the Average pulse width of the emission in microseconds. + /// + [XmlElement(Type = typeof(float), ElementName = "pulseWidth")] + public float PulseWidth + { + get + { + return this._pulseWidth; + } + + set + { + this._pulseWidth = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteFloat((float)this._frequency); + dos.WriteFloat((float)this._frequencyRange); + dos.WriteFloat((float)this._effectiveRadiatedPower); + dos.WriteFloat((float)this._pulseRepetitionFrequency); + dos.WriteFloat((float)this._pulseWidth); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._frequency = dis.ReadFloat(); + this._frequencyRange = dis.ReadFloat(); + this._effectiveRadiatedPower = dis.ReadFloat(); + this._pulseRepetitionFrequency = dis.ReadFloat(); + this._pulseWidth = dis.ReadFloat(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._frequency.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._frequencyRange.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._effectiveRadiatedPower.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pulseRepetitionFrequency.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pulseWidth.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as EEFundamentalParameterData; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(EEFundamentalParameterData obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._frequency != obj._frequency) + { + ivarsEqual = false; + } + + if (this._frequencyRange != obj._frequencyRange) + { + ivarsEqual = false; + } + + if (this._effectiveRadiatedPower != obj._effectiveRadiatedPower) + { + ivarsEqual = false; + } + + if (this._pulseRepetitionFrequency != obj._pulseRepetitionFrequency) + { + ivarsEqual = false; + } + + if (this._pulseWidth != obj._pulseWidth) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._frequency.GetHashCode(); + result = GenerateHash(result) ^ this._frequencyRange.GetHashCode(); + result = GenerateHash(result) ^ this._effectiveRadiatedPower.GetHashCode(); + result = GenerateHash(result) ^ this._pulseRepetitionFrequency.GetHashCode(); + result = GenerateHash(result) ^ this._pulseWidth.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/EightByteChunk.cs b/Libs/CSharpDis7/EightByteChunk.cs new file mode 100644 index 0000000..188fa8d --- /dev/null +++ b/Libs/CSharpDis7/EightByteChunk.cs @@ -0,0 +1,303 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// 64 bit piece of data + /// + [Serializable] + [XmlRoot] + public partial class EightByteChunk + { + /// + /// Eight bytes of arbitrary data + /// + private byte[] _otherParameters = new byte[8]; + + /// + /// Initializes a new instance of the class. + /// + public EightByteChunk() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(EightByteChunk left, EightByteChunk right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(EightByteChunk left, EightByteChunk right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 8 * 1; // _otherParameters + return marshalSize; + } + + /// + /// Gets or sets the Eight bytes of arbitrary data + /// + [XmlArray(ElementName = "otherParameters")] + public byte[] OtherParameters + { + get + { + return this._otherParameters; + } + + set + { + this._otherParameters = value; + } +} + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + + for (int idx = 0; idx < this._otherParameters.Length; idx++) + { + dos.WriteByte(this._otherParameters[idx]); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + for (int idx = 0; idx < this._otherParameters.Length; idx++) + { + this._otherParameters[idx] = dis.ReadByte(); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + for (int idx = 0; idx < this._otherParameters.Length; idx++) + { + sb.AppendLine("" + this._otherParameters[idx] + ""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as EightByteChunk; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(EightByteChunk obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (obj._otherParameters.Length != 8) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < 8; idx++) + { + if (this._otherParameters[idx] != obj._otherParameters[idx]) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + + for (int idx = 0; idx < 8; idx++) + { + result = GenerateHash(result) ^ this._otherParameters[idx].GetHashCode(); + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/ElectronicEmissionsPdu.cs b/Libs/CSharpDis7/ElectronicEmissionsPdu.cs new file mode 100644 index 0000000..35133a0 --- /dev/null +++ b/Libs/CSharpDis7/ElectronicEmissionsPdu.cs @@ -0,0 +1,620 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Section 5.3.7.1. Information about active electronic warfare (EW) emissions and active EW countermeasures shall be communicated using an Electromagnetic Emission PDU. NOT COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(EventIdentifier))] + [XmlInclude(typeof(EmitterSystem))] + [XmlInclude(typeof(Vector3Float))] + [XmlInclude(typeof(Vector3Float))] + public partial class ElectronicEmissionsPdu : DistributedEmissionsFamilyPdu, IEquatable + { + /// + /// ID of the entity emitting + /// + private EntityID _emittingEntityID = new EntityID(); + + /// + /// ID of event + /// + private EventIdentifier _eventID = new EventIdentifier(); + + /// + /// This field shall be used to indicate if the data in the PDU represents a state update or just data that has changed since issuance of the last Electromagnetic Emission PDU [relative to the identified entity and emission system(s)]. + /// + private byte _stateUpdateIndicator; + + /// + /// This field shall specify the number of emission systems being described in the current PDU. + /// + private byte _numberOfSystems; + + /// + /// padding + /// + private ushort _paddingForEmissionsPdu; + + /// + /// this field shall specify the length of this emitter system's data in 32-bit words. + /// + private byte _systemDataLength; + + /// + /// the number of beams being described in the current PDU for the emitter system being described. + /// + private byte _numberOfBeams; + + /// + /// information about a particular emitter system and shall be represented by an Emitter System record (see 6.2.23). + /// + private EmitterSystem _emitterSystem = new EmitterSystem(); + + /// + /// the location of the antenna beam source with respect to the emitting entity's coordinate system. This location shall be the origin of the emitter coordinate system that shall have the same orientation as the entity coordinate system. This field shall be represented by an Entity Coordinate Vector record see 6.2.95 + /// + private Vector3Float _location = new Vector3Float(); + + /// + /// Electronic emmissions systems THIS IS WRONG. It has the WRONG class type and will cause problems in any marshalling. + /// + private List _systems = new List(); + + /// + /// Initializes a new instance of the class. + /// + public ElectronicEmissionsPdu() + { + PduType = (byte)23; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ElectronicEmissionsPdu left, ElectronicEmissionsPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ElectronicEmissionsPdu left, ElectronicEmissionsPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._emittingEntityID.GetMarshalledSize(); // this._emittingEntityID + marshalSize += this._eventID.GetMarshalledSize(); // this._eventID + marshalSize += 1; // this._stateUpdateIndicator + marshalSize += 1; // this._numberOfSystems + marshalSize += 2; // this._paddingForEmissionsPdu + marshalSize += 1; // this._systemDataLength + marshalSize += 1; // this._numberOfBeams + marshalSize += this._emitterSystem.GetMarshalledSize(); // this._emitterSystem + marshalSize += this._location.GetMarshalledSize(); // this._location + for (int idx = 0; idx < this._systems.Count; idx++) + { + Vector3Float listElement = (Vector3Float)this._systems[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the ID of the entity emitting + /// + [XmlElement(Type = typeof(EntityID), ElementName = "emittingEntityID")] + public EntityID EmittingEntityID + { + get + { + return this._emittingEntityID; + } + + set + { + this._emittingEntityID = value; + } + } + + /// + /// Gets or sets the ID of event + /// + [XmlElement(Type = typeof(EventIdentifier), ElementName = "eventID")] + public EventIdentifier EventID + { + get + { + return this._eventID; + } + + set + { + this._eventID = value; + } + } + + /// + /// Gets or sets the This field shall be used to indicate if the data in the PDU represents a state update or just data that has changed since issuance of the last Electromagnetic Emission PDU [relative to the identified entity and emission system(s)]. + /// + [XmlElement(Type = typeof(byte), ElementName = "stateUpdateIndicator")] + public byte StateUpdateIndicator + { + get + { + return this._stateUpdateIndicator; + } + + set + { + this._stateUpdateIndicator = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfSystems method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfSystems")] + public byte NumberOfSystems + { + get + { + return this._numberOfSystems; + } + + set + { + this._numberOfSystems = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(ushort), ElementName = "paddingForEmissionsPdu")] + public ushort PaddingForEmissionsPdu + { + get + { + return this._paddingForEmissionsPdu; + } + + set + { + this._paddingForEmissionsPdu = value; + } + } + + /// + /// Gets or sets the this field shall specify the length of this emitter system's data in 32-bit words. + /// + [XmlElement(Type = typeof(byte), ElementName = "systemDataLength")] + public byte SystemDataLength + { + get + { + return this._systemDataLength; + } + + set + { + this._systemDataLength = value; + } + } + + /// + /// Gets or sets the the number of beams being described in the current PDU for the emitter system being described. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfBeams")] + public byte NumberOfBeams + { + get + { + return this._numberOfBeams; + } + + set + { + this._numberOfBeams = value; + } + } + + /// + /// Gets or sets the information about a particular emitter system and shall be represented by an Emitter System record (see 6.2.23). + /// + [XmlElement(Type = typeof(EmitterSystem), ElementName = "emitterSystem")] + public EmitterSystem EmitterSystem + { + get + { + return this._emitterSystem; + } + + set + { + this._emitterSystem = value; + } + } + + /// + /// Gets or sets the the location of the antenna beam source with respect to the emitting entity's coordinate system. This location shall be the origin of the emitter coordinate system that shall have the same orientation as the entity coordinate system. This field shall be represented by an Entity Coordinate Vector record see 6.2.95 + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "location")] + public Vector3Float Location + { + get + { + return this._location; + } + + set + { + this._location = value; + } + } + + /// + /// Gets or sets the Electronic emmissions systems THIS IS WRONG. It has the WRONG class type and will cause problems in any marshalling. + /// + [XmlElement(ElementName = "systemsList", Type = typeof(List))] + public List Systems + { + get + { + return this._systems; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._emittingEntityID.Marshal(dos); + this._eventID.Marshal(dos); + dos.WriteUnsignedByte((byte)this._stateUpdateIndicator); + dos.WriteUnsignedByte((byte)this._systems.Count); + dos.WriteUnsignedShort((ushort)this._paddingForEmissionsPdu); + dos.WriteUnsignedByte((byte)this._systemDataLength); + dos.WriteUnsignedByte((byte)this._numberOfBeams); + this._emitterSystem.Marshal(dos); + this._location.Marshal(dos); + + for (int idx = 0; idx < this._systems.Count; idx++) + { + Vector3Float aVector3Float = (Vector3Float)this._systems[idx]; + aVector3Float.Marshal(dos); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._emittingEntityID.Unmarshal(dis); + this._eventID.Unmarshal(dis); + this._stateUpdateIndicator = dis.ReadUnsignedByte(); + this._numberOfSystems = dis.ReadUnsignedByte(); + this._paddingForEmissionsPdu = dis.ReadUnsignedShort(); + this._systemDataLength = dis.ReadUnsignedByte(); + this._numberOfBeams = dis.ReadUnsignedByte(); + this._emitterSystem.Unmarshal(dis); + this._location.Unmarshal(dis); + for (int idx = 0; idx < this.NumberOfSystems; idx++) + { + Vector3Float anX = new Vector3Float(); + anX.Unmarshal(dis); + this._systems.Add(anX); + }; + + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._emittingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._eventID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._stateUpdateIndicator.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._systems.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._paddingForEmissionsPdu.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._systemDataLength.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._numberOfBeams.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._emitterSystem.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._location.Reflection(sb); + sb.AppendLine(""); + for (int idx = 0; idx < this._systems.Count; idx++) + { + sb.AppendLine(""); + Vector3Float aVector3Float = (Vector3Float)this._systems[idx]; + aVector3Float.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ElectronicEmissionsPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ElectronicEmissionsPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._emittingEntityID.Equals(obj._emittingEntityID)) + { + ivarsEqual = false; + } + + if (!this._eventID.Equals(obj._eventID)) + { + ivarsEqual = false; + } + + if (this._stateUpdateIndicator != obj._stateUpdateIndicator) + { + ivarsEqual = false; + } + + if (this._numberOfSystems != obj._numberOfSystems) + { + ivarsEqual = false; + } + + if (this._paddingForEmissionsPdu != obj._paddingForEmissionsPdu) + { + ivarsEqual = false; + } + + if (this._systemDataLength != obj._systemDataLength) + { + ivarsEqual = false; + } + + if (this._numberOfBeams != obj._numberOfBeams) + { + ivarsEqual = false; + } + + if (!this._emitterSystem.Equals(obj._emitterSystem)) + { + ivarsEqual = false; + } + + if (!this._location.Equals(obj._location)) + { + ivarsEqual = false; + } + + if (this._systems.Count != obj._systems.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._systems.Count; idx++) + { + if (!this._systems[idx].Equals(obj._systems[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._emittingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._eventID.GetHashCode(); + result = GenerateHash(result) ^ this._stateUpdateIndicator.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfSystems.GetHashCode(); + result = GenerateHash(result) ^ this._paddingForEmissionsPdu.GetHashCode(); + result = GenerateHash(result) ^ this._systemDataLength.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfBeams.GetHashCode(); + result = GenerateHash(result) ^ this._emitterSystem.GetHashCode(); + result = GenerateHash(result) ^ this._location.GetHashCode(); + + if (this._systems.Count > 0) + { + for (int idx = 0; idx < this._systems.Count; idx++) + { + result = GenerateHash(result) ^ this._systems[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/EmitterSystem.cs b/Libs/CSharpDis7/EmitterSystem.cs new file mode 100644 index 0000000..102f3f9 --- /dev/null +++ b/Libs/CSharpDis7/EmitterSystem.cs @@ -0,0 +1,341 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// This field shall specify information about a particular emitter system. Section 6.2.23. + /// + [Serializable] + [XmlRoot] + public partial class EmitterSystem + { + /// + /// Name of the emitter, 16 bit enumeration + /// + private ushort _emitterName; + + /// + /// function of the emitter, 8 bit enumeration + /// + private byte _function; + + /// + /// emitter ID, 8 bit enumeration + /// + private byte _emitterIdNumber; + + /// + /// Initializes a new instance of the class. + /// + public EmitterSystem() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(EmitterSystem left, EmitterSystem right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(EmitterSystem left, EmitterSystem right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 2; // this._emitterName + marshalSize += 1; // this._function + marshalSize += 1; // this._emitterIdNumber + return marshalSize; + } + + /// + /// Gets or sets the Name of the emitter, 16 bit enumeration + /// + [XmlElement(Type = typeof(ushort), ElementName = "emitterName")] + public ushort EmitterName + { + get + { + return this._emitterName; + } + + set + { + this._emitterName = value; + } + } + + /// + /// Gets or sets the function of the emitter, 8 bit enumeration + /// + [XmlElement(Type = typeof(byte), ElementName = "function")] + public byte Function + { + get + { + return this._function; + } + + set + { + this._function = value; + } + } + + /// + /// Gets or sets the emitter ID, 8 bit enumeration + /// + [XmlElement(Type = typeof(byte), ElementName = "emitterIdNumber")] + public byte EmitterIdNumber + { + get + { + return this._emitterIdNumber; + } + + set + { + this._emitterIdNumber = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._emitterName); + dos.WriteUnsignedByte((byte)this._function); + dos.WriteUnsignedByte((byte)this._emitterIdNumber); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._emitterName = dis.ReadUnsignedShort(); + this._function = dis.ReadUnsignedByte(); + this._emitterIdNumber = dis.ReadUnsignedByte(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._emitterName.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._function.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._emitterIdNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as EmitterSystem; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(EmitterSystem obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._emitterName != obj._emitterName) + { + ivarsEqual = false; + } + + if (this._function != obj._function) + { + ivarsEqual = false; + } + + if (this._emitterIdNumber != obj._emitterIdNumber) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._emitterName.GetHashCode(); + result = GenerateHash(result) ^ this._function.GetHashCode(); + result = GenerateHash(result) ^ this._emitterIdNumber.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/EngineFuel.cs b/Libs/CSharpDis7/EngineFuel.cs new file mode 100644 index 0000000..ee06643 --- /dev/null +++ b/Libs/CSharpDis7/EngineFuel.cs @@ -0,0 +1,405 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Information about an entity's engine fuel. Section 6.2.24. + /// + [Serializable] + [XmlRoot] + public partial class EngineFuel + { + /// + /// Fuel quantity, units specified by next field + /// + private uint _fuelQuantity; + + /// + /// Units in which the fuel is measured + /// + private byte _fuelMeasurementUnits; + + /// + /// Type of fuel + /// + private byte _fuelType; + + /// + /// Location of fuel as related to entity. See section 14 of EBV document + /// + private byte _fuelLocation; + + /// + /// padding + /// + private byte _padding; + + /// + /// Initializes a new instance of the class. + /// + public EngineFuel() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(EngineFuel left, EngineFuel right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(EngineFuel left, EngineFuel right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._fuelQuantity + marshalSize += 1; // this._fuelMeasurementUnits + marshalSize += 1; // this._fuelType + marshalSize += 1; // this._fuelLocation + marshalSize += 1; // this._padding + return marshalSize; + } + + /// + /// Gets or sets the Fuel quantity, units specified by next field + /// + [XmlElement(Type = typeof(uint), ElementName = "fuelQuantity")] + public uint FuelQuantity + { + get + { + return this._fuelQuantity; + } + + set + { + this._fuelQuantity = value; + } + } + + /// + /// Gets or sets the Units in which the fuel is measured + /// + [XmlElement(Type = typeof(byte), ElementName = "fuelMeasurementUnits")] + public byte FuelMeasurementUnits + { + get + { + return this._fuelMeasurementUnits; + } + + set + { + this._fuelMeasurementUnits = value; + } + } + + /// + /// Gets or sets the Type of fuel + /// + [XmlElement(Type = typeof(byte), ElementName = "fuelType")] + public byte FuelType + { + get + { + return this._fuelType; + } + + set + { + this._fuelType = value; + } + } + + /// + /// Gets or sets the Location of fuel as related to entity. See section 14 of EBV document + /// + [XmlElement(Type = typeof(byte), ElementName = "fuelLocation")] + public byte FuelLocation + { + get + { + return this._fuelLocation; + } + + set + { + this._fuelLocation = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "padding")] + public byte Padding + { + get + { + return this._padding; + } + + set + { + this._padding = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._fuelQuantity); + dos.WriteUnsignedByte((byte)this._fuelMeasurementUnits); + dos.WriteUnsignedByte((byte)this._fuelType); + dos.WriteUnsignedByte((byte)this._fuelLocation); + dos.WriteUnsignedByte((byte)this._padding); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._fuelQuantity = dis.ReadUnsignedInt(); + this._fuelMeasurementUnits = dis.ReadUnsignedByte(); + this._fuelType = dis.ReadUnsignedByte(); + this._fuelLocation = dis.ReadUnsignedByte(); + this._padding = dis.ReadUnsignedByte(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._fuelQuantity.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fuelMeasurementUnits.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fuelType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fuelLocation.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as EngineFuel; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(EngineFuel obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._fuelQuantity != obj._fuelQuantity) + { + ivarsEqual = false; + } + + if (this._fuelMeasurementUnits != obj._fuelMeasurementUnits) + { + ivarsEqual = false; + } + + if (this._fuelType != obj._fuelType) + { + ivarsEqual = false; + } + + if (this._fuelLocation != obj._fuelLocation) + { + ivarsEqual = false; + } + + if (this._padding != obj._padding) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._fuelQuantity.GetHashCode(); + result = GenerateHash(result) ^ this._fuelMeasurementUnits.GetHashCode(); + result = GenerateHash(result) ^ this._fuelType.GetHashCode(); + result = GenerateHash(result) ^ this._fuelLocation.GetHashCode(); + result = GenerateHash(result) ^ this._padding.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/EngineFuelReload.cs b/Libs/CSharpDis7/EngineFuelReload.cs new file mode 100644 index 0000000..9685423 --- /dev/null +++ b/Libs/CSharpDis7/EngineFuelReload.cs @@ -0,0 +1,469 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// For each type or location of engine fuell, this record specifies the type, location, fuel measurement units, and reload quantity and maximum quantity. Section 6.2.25. + /// + [Serializable] + [XmlRoot] + public partial class EngineFuelReload + { + /// + /// standard quantity of fuel loaded + /// + private uint _standardQuantity; + + /// + /// maximum quantity of fuel loaded + /// + private uint _maximumQuantity; + + /// + /// seconds normally required to to reload standard qty + /// + private uint _standardQuantityReloadTime; + + /// + /// seconds normally required to to reload maximum qty + /// + private uint _maximumQuantityReloadTime; + + /// + /// Units of measure + /// + private byte _fuelMeasurmentUnits; + + /// + /// fuel location as related to the entity + /// + private byte _fuelLocation; + + /// + /// padding + /// + private byte _padding; + + /// + /// Initializes a new instance of the class. + /// + public EngineFuelReload() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(EngineFuelReload left, EngineFuelReload right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(EngineFuelReload left, EngineFuelReload right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._standardQuantity + marshalSize += 4; // this._maximumQuantity + marshalSize += 4; // this._standardQuantityReloadTime + marshalSize += 4; // this._maximumQuantityReloadTime + marshalSize += 1; // this._fuelMeasurmentUnits + marshalSize += 1; // this._fuelLocation + marshalSize += 1; // this._padding + return marshalSize; + } + + /// + /// Gets or sets the standard quantity of fuel loaded + /// + [XmlElement(Type = typeof(uint), ElementName = "standardQuantity")] + public uint StandardQuantity + { + get + { + return this._standardQuantity; + } + + set + { + this._standardQuantity = value; + } + } + + /// + /// Gets or sets the maximum quantity of fuel loaded + /// + [XmlElement(Type = typeof(uint), ElementName = "maximumQuantity")] + public uint MaximumQuantity + { + get + { + return this._maximumQuantity; + } + + set + { + this._maximumQuantity = value; + } + } + + /// + /// Gets or sets the seconds normally required to to reload standard qty + /// + [XmlElement(Type = typeof(uint), ElementName = "standardQuantityReloadTime")] + public uint StandardQuantityReloadTime + { + get + { + return this._standardQuantityReloadTime; + } + + set + { + this._standardQuantityReloadTime = value; + } + } + + /// + /// Gets or sets the seconds normally required to to reload maximum qty + /// + [XmlElement(Type = typeof(uint), ElementName = "maximumQuantityReloadTime")] + public uint MaximumQuantityReloadTime + { + get + { + return this._maximumQuantityReloadTime; + } + + set + { + this._maximumQuantityReloadTime = value; + } + } + + /// + /// Gets or sets the Units of measure + /// + [XmlElement(Type = typeof(byte), ElementName = "fuelMeasurmentUnits")] + public byte FuelMeasurmentUnits + { + get + { + return this._fuelMeasurmentUnits; + } + + set + { + this._fuelMeasurmentUnits = value; + } + } + + /// + /// Gets or sets the fuel location as related to the entity + /// + [XmlElement(Type = typeof(byte), ElementName = "fuelLocation")] + public byte FuelLocation + { + get + { + return this._fuelLocation; + } + + set + { + this._fuelLocation = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "padding")] + public byte Padding + { + get + { + return this._padding; + } + + set + { + this._padding = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._standardQuantity); + dos.WriteUnsignedInt((uint)this._maximumQuantity); + dos.WriteUnsignedInt((uint)this._standardQuantityReloadTime); + dos.WriteUnsignedInt((uint)this._maximumQuantityReloadTime); + dos.WriteUnsignedByte((byte)this._fuelMeasurmentUnits); + dos.WriteUnsignedByte((byte)this._fuelLocation); + dos.WriteUnsignedByte((byte)this._padding); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._standardQuantity = dis.ReadUnsignedInt(); + this._maximumQuantity = dis.ReadUnsignedInt(); + this._standardQuantityReloadTime = dis.ReadUnsignedInt(); + this._maximumQuantityReloadTime = dis.ReadUnsignedInt(); + this._fuelMeasurmentUnits = dis.ReadUnsignedByte(); + this._fuelLocation = dis.ReadUnsignedByte(); + this._padding = dis.ReadUnsignedByte(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._standardQuantity.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._maximumQuantity.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._standardQuantityReloadTime.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._maximumQuantityReloadTime.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fuelMeasurmentUnits.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fuelLocation.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as EngineFuelReload; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(EngineFuelReload obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._standardQuantity != obj._standardQuantity) + { + ivarsEqual = false; + } + + if (this._maximumQuantity != obj._maximumQuantity) + { + ivarsEqual = false; + } + + if (this._standardQuantityReloadTime != obj._standardQuantityReloadTime) + { + ivarsEqual = false; + } + + if (this._maximumQuantityReloadTime != obj._maximumQuantityReloadTime) + { + ivarsEqual = false; + } + + if (this._fuelMeasurmentUnits != obj._fuelMeasurmentUnits) + { + ivarsEqual = false; + } + + if (this._fuelLocation != obj._fuelLocation) + { + ivarsEqual = false; + } + + if (this._padding != obj._padding) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._standardQuantity.GetHashCode(); + result = GenerateHash(result) ^ this._maximumQuantity.GetHashCode(); + result = GenerateHash(result) ^ this._standardQuantityReloadTime.GetHashCode(); + result = GenerateHash(result) ^ this._maximumQuantityReloadTime.GetHashCode(); + result = GenerateHash(result) ^ this._fuelMeasurmentUnits.GetHashCode(); + result = GenerateHash(result) ^ this._fuelLocation.GetHashCode(); + result = GenerateHash(result) ^ this._padding.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/EntityAssociation.cs b/Libs/CSharpDis7/EntityAssociation.cs new file mode 100644 index 0000000..4e89f43 --- /dev/null +++ b/Libs/CSharpDis7/EntityAssociation.cs @@ -0,0 +1,536 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Association or disassociation of two entities. Section 6.2.93.4 + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + public partial class EntityAssociation + { + /// + /// the identification of the Variable Parameter record. Enumeration from EBV + /// + private byte _recordType = 2; + + /// + /// Indicates if this VP has changed since last issuance + /// + private byte _changeIndicator; + + /// + /// Indicates association status between two entities; 8 bit enum + /// + private byte _associationStatus; + + /// + /// Type of association; 8 bit enum + /// + private byte _associationType; + + /// + /// Object ID of entity associated with this entity + /// + private EntityID _entityID = new EntityID(); + + /// + /// Station location on one's own entity. EBV doc. + /// + private ushort _owsSttionLocation; + + /// + /// Type of physical connection. EBV doc + /// + private ushort _physicalConnectionType; + + /// + /// Type of member the entity is within th egroup + /// + private byte _groupMemberType; + + /// + /// Group if any to which the entity belongs + /// + private ushort _groupNumber; + + /// + /// Initializes a new instance of the class. + /// + public EntityAssociation() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(EntityAssociation left, EntityAssociation right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(EntityAssociation left, EntityAssociation right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._recordType + marshalSize += 1; // this._changeIndicator + marshalSize += 1; // this._associationStatus + marshalSize += 1; // this._associationType + marshalSize += this._entityID.GetMarshalledSize(); // this._entityID + marshalSize += 2; // this._owsSttionLocation + marshalSize += 2; // this._physicalConnectionType + marshalSize += 1; // this._groupMemberType + marshalSize += 2; // this._groupNumber + return marshalSize; + } + + /// + /// Gets or sets the the identification of the Variable Parameter record. Enumeration from EBV + /// + [XmlElement(Type = typeof(byte), ElementName = "recordType")] + public byte RecordType + { + get + { + return this._recordType; + } + + set + { + this._recordType = value; + } + } + + /// + /// Gets or sets the Indicates if this VP has changed since last issuance + /// + [XmlElement(Type = typeof(byte), ElementName = "changeIndicator")] + public byte ChangeIndicator + { + get + { + return this._changeIndicator; + } + + set + { + this._changeIndicator = value; + } + } + + /// + /// Gets or sets the Indicates association status between two entities; 8 bit enum + /// + [XmlElement(Type = typeof(byte), ElementName = "associationStatus")] + public byte AssociationStatus + { + get + { + return this._associationStatus; + } + + set + { + this._associationStatus = value; + } + } + + /// + /// Gets or sets the Type of association; 8 bit enum + /// + [XmlElement(Type = typeof(byte), ElementName = "associationType")] + public byte AssociationType + { + get + { + return this._associationType; + } + + set + { + this._associationType = value; + } + } + + /// + /// Gets or sets the Object ID of entity associated with this entity + /// + [XmlElement(Type = typeof(EntityID), ElementName = "entityID")] + public EntityID EntityID + { + get + { + return this._entityID; + } + + set + { + this._entityID = value; + } + } + + /// + /// Gets or sets the Station location on one's own entity. EBV doc. + /// + [XmlElement(Type = typeof(ushort), ElementName = "owsSttionLocation")] + public ushort OwsSttionLocation + { + get + { + return this._owsSttionLocation; + } + + set + { + this._owsSttionLocation = value; + } + } + + /// + /// Gets or sets the Type of physical connection. EBV doc + /// + [XmlElement(Type = typeof(ushort), ElementName = "physicalConnectionType")] + public ushort PhysicalConnectionType + { + get + { + return this._physicalConnectionType; + } + + set + { + this._physicalConnectionType = value; + } + } + + /// + /// Gets or sets the Type of member the entity is within th egroup + /// + [XmlElement(Type = typeof(byte), ElementName = "groupMemberType")] + public byte GroupMemberType + { + get + { + return this._groupMemberType; + } + + set + { + this._groupMemberType = value; + } + } + + /// + /// Gets or sets the Group if any to which the entity belongs + /// + [XmlElement(Type = typeof(ushort), ElementName = "groupNumber")] + public ushort GroupNumber + { + get + { + return this._groupNumber; + } + + set + { + this._groupNumber = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._recordType); + dos.WriteUnsignedByte((byte)this._changeIndicator); + dos.WriteUnsignedByte((byte)this._associationStatus); + dos.WriteUnsignedByte((byte)this._associationType); + this._entityID.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._owsSttionLocation); + dos.WriteUnsignedShort((ushort)this._physicalConnectionType); + dos.WriteUnsignedByte((byte)this._groupMemberType); + dos.WriteUnsignedShort((ushort)this._groupNumber); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._recordType = dis.ReadUnsignedByte(); + this._changeIndicator = dis.ReadUnsignedByte(); + this._associationStatus = dis.ReadUnsignedByte(); + this._associationType = dis.ReadUnsignedByte(); + this._entityID.Unmarshal(dis); + this._owsSttionLocation = dis.ReadUnsignedShort(); + this._physicalConnectionType = dis.ReadUnsignedShort(); + this._groupMemberType = dis.ReadUnsignedByte(); + this._groupNumber = dis.ReadUnsignedShort(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._recordType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._changeIndicator.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._associationStatus.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._associationType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._entityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._owsSttionLocation.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._physicalConnectionType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._groupMemberType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._groupNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as EntityAssociation; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(EntityAssociation obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._recordType != obj._recordType) + { + ivarsEqual = false; + } + + if (this._changeIndicator != obj._changeIndicator) + { + ivarsEqual = false; + } + + if (this._associationStatus != obj._associationStatus) + { + ivarsEqual = false; + } + + if (this._associationType != obj._associationType) + { + ivarsEqual = false; + } + + if (!this._entityID.Equals(obj._entityID)) + { + ivarsEqual = false; + } + + if (this._owsSttionLocation != obj._owsSttionLocation) + { + ivarsEqual = false; + } + + if (this._physicalConnectionType != obj._physicalConnectionType) + { + ivarsEqual = false; + } + + if (this._groupMemberType != obj._groupMemberType) + { + ivarsEqual = false; + } + + if (this._groupNumber != obj._groupNumber) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._recordType.GetHashCode(); + result = GenerateHash(result) ^ this._changeIndicator.GetHashCode(); + result = GenerateHash(result) ^ this._associationStatus.GetHashCode(); + result = GenerateHash(result) ^ this._associationType.GetHashCode(); + result = GenerateHash(result) ^ this._entityID.GetHashCode(); + result = GenerateHash(result) ^ this._owsSttionLocation.GetHashCode(); + result = GenerateHash(result) ^ this._physicalConnectionType.GetHashCode(); + result = GenerateHash(result) ^ this._groupMemberType.GetHashCode(); + result = GenerateHash(result) ^ this._groupNumber.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/EntityDamageStatusPdu.cs b/Libs/CSharpDis7/EntityDamageStatusPdu.cs new file mode 100644 index 0000000..061469b --- /dev/null +++ b/Libs/CSharpDis7/EntityDamageStatusPdu.cs @@ -0,0 +1,451 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// shall be used to communicate detailed damage information sustained by an entity regardless of the source of the damage Section 7.3.5 COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(DirectedEnergyDamage))] + public partial class EntityDamageStatusPdu : WarfareFamilyPdu, IEquatable + { + /// + /// Field shall identify the damaged entity (see 6.2.28), Section 7.3.4 COMPLETE + /// + private EntityID _damagedEntityID = new EntityID(); + + /// + /// Padding. + /// + private ushort _padding1; + + /// + /// Padding. + /// + private ushort _padding2; + + /// + /// field shall specify the number of Damage Description records, Section 7.3.5 + /// + private ushort _numberOfDamageDescription; + + /// + /// Fields shall contain one or more Damage Description records (see 6.2.17) and may contain other Standard Variable records, Section 7.3.5 + /// + private List _damageDescriptionRecords = new List(); + + /// + /// Initializes a new instance of the class. + /// + public EntityDamageStatusPdu() + { + PduType = (byte)69; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(EntityDamageStatusPdu left, EntityDamageStatusPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(EntityDamageStatusPdu left, EntityDamageStatusPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._damagedEntityID.GetMarshalledSize(); // this._damagedEntityID + marshalSize += 2; // this._padding1 + marshalSize += 2; // this._padding2 + marshalSize += 2; // this._numberOfDamageDescription + for (int idx = 0; idx < this._damageDescriptionRecords.Count; idx++) + { + DirectedEnergyDamage listElement = (DirectedEnergyDamage)this._damageDescriptionRecords[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Field shall identify the damaged entity (see 6.2.28), Section 7.3.4 COMPLETE + /// + [XmlElement(Type = typeof(EntityID), ElementName = "damagedEntityID")] + public EntityID DamagedEntityID + { + get + { + return this._damagedEntityID; + } + + set + { + this._damagedEntityID = value; + } + } + + /// + /// Gets or sets the Padding. + /// + [XmlElement(Type = typeof(ushort), ElementName = "padding1")] + public ushort Padding1 + { + get + { + return this._padding1; + } + + set + { + this._padding1 = value; + } + } + + /// + /// Gets or sets the Padding. + /// + [XmlElement(Type = typeof(ushort), ElementName = "padding2")] + public ushort Padding2 + { + get + { + return this._padding2; + } + + set + { + this._padding2 = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfDamageDescription method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(ushort), ElementName = "numberOfDamageDescription")] + public ushort NumberOfDamageDescription + { + get + { + return this._numberOfDamageDescription; + } + + set + { + this._numberOfDamageDescription = value; + } + } + + /// + /// Gets or sets the Fields shall contain one or more Damage Description records (see 6.2.17) and may contain other Standard Variable records, Section 7.3.5 + /// + [XmlElement(ElementName = "damageDescriptionRecordsList", Type = typeof(List))] + public List DamageDescriptionRecords + { + get + { + return this._damageDescriptionRecords; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._damagedEntityID.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._padding1); + dos.WriteUnsignedShort((ushort)this._padding2); + dos.WriteUnsignedShort((ushort)this._damageDescriptionRecords.Count); + + for (int idx = 0; idx < this._damageDescriptionRecords.Count; idx++) + { + DirectedEnergyDamage aDirectedEnergyDamage = (DirectedEnergyDamage)this._damageDescriptionRecords[idx]; + aDirectedEnergyDamage.Marshal(dos); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._damagedEntityID.Unmarshal(dis); + this._padding1 = dis.ReadUnsignedShort(); + this._padding2 = dis.ReadUnsignedShort(); + this._numberOfDamageDescription = dis.ReadUnsignedShort(); + for (int idx = 0; idx < this.NumberOfDamageDescription; idx++) + { + DirectedEnergyDamage anX = new DirectedEnergyDamage(); + anX.Unmarshal(dis); + this._damageDescriptionRecords.Add(anX); + }; + + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._damagedEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._damageDescriptionRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._damageDescriptionRecords.Count; idx++) + { + sb.AppendLine(""); + DirectedEnergyDamage aDirectedEnergyDamage = (DirectedEnergyDamage)this._damageDescriptionRecords[idx]; + aDirectedEnergyDamage.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as EntityDamageStatusPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(EntityDamageStatusPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._damagedEntityID.Equals(obj._damagedEntityID)) + { + ivarsEqual = false; + } + + if (this._padding1 != obj._padding1) + { + ivarsEqual = false; + } + + if (this._padding2 != obj._padding2) + { + ivarsEqual = false; + } + + if (this._numberOfDamageDescription != obj._numberOfDamageDescription) + { + ivarsEqual = false; + } + + if (this._damageDescriptionRecords.Count != obj._damageDescriptionRecords.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._damageDescriptionRecords.Count; idx++) + { + if (!this._damageDescriptionRecords[idx].Equals(obj._damageDescriptionRecords[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._damagedEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._padding1.GetHashCode(); + result = GenerateHash(result) ^ this._padding2.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfDamageDescription.GetHashCode(); + + if (this._damageDescriptionRecords.Count > 0) + { + for (int idx = 0; idx < this._damageDescriptionRecords.Count; idx++) + { + result = GenerateHash(result) ^ this._damageDescriptionRecords[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/EntityID.cs b/Libs/CSharpDis7/EntityID.cs new file mode 100644 index 0000000..dcada8d --- /dev/null +++ b/Libs/CSharpDis7/EntityID.cs @@ -0,0 +1,312 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Entity Identifier. Unique ID for entities in the world. Consists of an simulation address and a entity number. Section 6.2.28. + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(SimulationAddress))] + public partial class EntityID + { + /// + /// Site and application IDs + /// + private SimulationAddress _simulationAddress = new SimulationAddress(); + + /// + /// Entity number + /// + private ushort _entityNumber; + + /// + /// Initializes a new instance of the class. + /// + public EntityID() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(EntityID left, EntityID right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(EntityID left, EntityID right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += this._simulationAddress.GetMarshalledSize(); // this._simulationAddress + marshalSize += 2; // this._entityNumber + return marshalSize; + } + + /// + /// Gets or sets the Site and application IDs + /// + [XmlElement(Type = typeof(SimulationAddress), ElementName = "simulationAddress")] + public SimulationAddress SimulationAddress + { + get + { + return this._simulationAddress; + } + + set + { + this._simulationAddress = value; + } + } + + /// + /// Gets or sets the Entity number + /// + [XmlElement(Type = typeof(ushort), ElementName = "entityNumber")] + public ushort EntityNumber + { + get + { + return this._entityNumber; + } + + set + { + this._entityNumber = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + this._simulationAddress.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._entityNumber); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._simulationAddress.Unmarshal(dis); + this._entityNumber = dis.ReadUnsignedShort(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine(""); + this._simulationAddress.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._entityNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as EntityID; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(EntityID obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (!this._simulationAddress.Equals(obj._simulationAddress)) + { + ivarsEqual = false; + } + + if (this._entityNumber != obj._entityNumber) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._simulationAddress.GetHashCode(); + result = GenerateHash(result) ^ this._entityNumber.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/EntityInformationFamilyPdu.cs b/Libs/CSharpDis7/EntityInformationFamilyPdu.cs new file mode 100644 index 0000000..1670732 --- /dev/null +++ b/Libs/CSharpDis7/EntityInformationFamilyPdu.cs @@ -0,0 +1,248 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Section 5.3.3. Common superclass for EntityState, Collision, collision-elastic, and entity state update PDUs. This should be abstract. COMPLETE + /// + [Serializable] + [XmlRoot] + public partial class EntityInformationFamilyPdu : Pdu, IEquatable + { + /// + /// Initializes a new instance of the class. + /// + public EntityInformationFamilyPdu() + { + ProtocolFamily = (byte)1; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(EntityInformationFamilyPdu left, EntityInformationFamilyPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(EntityInformationFamilyPdu left, EntityInformationFamilyPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + return marshalSize; + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public virtual void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as EntityInformationFamilyPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(EntityInformationFamilyPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/EntityManagementFamilyPdu.cs b/Libs/CSharpDis7/EntityManagementFamilyPdu.cs new file mode 100644 index 0000000..b7473c8 --- /dev/null +++ b/Libs/CSharpDis7/EntityManagementFamilyPdu.cs @@ -0,0 +1,248 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Managment of grouping of PDUs, and more. Section 7.8 + /// + [Serializable] + [XmlRoot] + public partial class EntityManagementFamilyPdu : Pdu, IEquatable + { + /// + /// Initializes a new instance of the class. + /// + public EntityManagementFamilyPdu() + { + ProtocolFamily = (byte)7; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(EntityManagementFamilyPdu left, EntityManagementFamilyPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(EntityManagementFamilyPdu left, EntityManagementFamilyPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + return marshalSize; + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public virtual void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as EntityManagementFamilyPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(EntityManagementFamilyPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/EntityMarking.cs b/Libs/CSharpDis7/EntityMarking.cs new file mode 100644 index 0000000..daa8304 --- /dev/null +++ b/Libs/CSharpDis7/EntityMarking.cs @@ -0,0 +1,335 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Specifies the character set used inthe first byte, followed by 11 characters of text data. Section 6.29 + /// + [Serializable] + [XmlRoot] + public partial class EntityMarking + { + /// + /// The character set + /// + private byte _characterSet; + + /// + /// The characters + /// + private byte[] _characters = new byte[11]; + + /// + /// Initializes a new instance of the class. + /// + public EntityMarking() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(EntityMarking left, EntityMarking right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(EntityMarking left, EntityMarking right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._characterSet + marshalSize += 11 * 1; // _characters + return marshalSize; + } + + /// + /// Gets or sets the The character set + /// + [XmlElement(Type = typeof(byte), ElementName = "characterSet")] + public byte CharacterSet + { + get + { + return this._characterSet; + } + + set + { + this._characterSet = value; + } + } + + /// + /// Gets or sets the The characters + /// + [XmlArray(ElementName = "characters")] + public byte[] Characters + { + get + { + return this._characters; + } + + set + { + this._characters = value; + } +} + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._characterSet); + + for (int idx = 0; idx < this._characters.Length; idx++) + { + dos.WriteByte(this._characters[idx]); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._characterSet = dis.ReadUnsignedByte(); + for (int idx = 0; idx < this._characters.Length; idx++) + { + this._characters[idx] = dis.ReadByte(); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._characterSet.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._characters.Length; idx++) + { + sb.AppendLine("" + this._characters[idx] + ""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as EntityMarking; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(EntityMarking obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._characterSet != obj._characterSet) + { + ivarsEqual = false; + } + + if (obj._characters.Length != 11) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < 11; idx++) + { + if (this._characters[idx] != obj._characters[idx]) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._characterSet.GetHashCode(); + + for (int idx = 0; idx < 11; idx++) + { + result = GenerateHash(result) ^ this._characters[idx].GetHashCode(); + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/EntityStatePdu.cs b/Libs/CSharpDis7/EntityStatePdu.cs new file mode 100644 index 0000000..e98b77d --- /dev/null +++ b/Libs/CSharpDis7/EntityStatePdu.cs @@ -0,0 +1,721 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Represents the postion and state of one entity in the world. Section 7.2.2. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(EntityType))] + [XmlInclude(typeof(Vector3Float))] + [XmlInclude(typeof(Vector3Double))] + [XmlInclude(typeof(EulerAngles))] + [XmlInclude(typeof(DeadReckoningParameters))] + [XmlInclude(typeof(EntityMarking))] + [XmlInclude(typeof(VariableParameter))] + public partial class EntityStatePdu : EntityInformationFamilyPdu, IEquatable + { + /// + /// Unique ID for an entity that is tied to this state information + /// + private EntityID _entityID = new EntityID(); + + /// + /// What force this entity is affiliated with, eg red, blue, neutral, etc + /// + private byte _forceId; + + /// + /// How many variable parameters are in the variable length list. In earlier versions of DIS these were known as articulation parameters + /// + private byte _numberOfVariableParameters; + + /// + /// Describes the type of entity in the world + /// + private EntityType _entityType = new EntityType(); + + private EntityType _alternativeEntityType = new EntityType(); + + /// + /// Describes the speed of the entity in the world + /// + private Vector3Float _entityLinearVelocity = new Vector3Float(); + + /// + /// describes the location of the entity in the world + /// + private Vector3Double _entityLocation = new Vector3Double(); + + /// + /// describes the orientation of the entity, in euler angles + /// + private EulerAngles _entityOrientation = new EulerAngles(); + + /// + /// a series of bit flags that are used to help draw the entity, such as smoking, on fire, etc. + /// + private uint _entityAppearance; + + /// + /// parameters used for dead reckoning + /// + private DeadReckoningParameters _deadReckoningParameters = new DeadReckoningParameters(); + + /// + /// characters that can be used for debugging, or to draw unique strings on the side of entities in the world + /// + private EntityMarking _marking = new EntityMarking(); + + /// + /// a series of bit flags + /// + private uint _capabilities; + + /// + /// variable length list of variable parameters. In earlier DIS versions this was articulation parameters. + /// + private List _variableParameters = new List(); + + /// + /// Initializes a new instance of the class. + /// + public EntityStatePdu() + { + PduType = (byte)1; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(EntityStatePdu left, EntityStatePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(EntityStatePdu left, EntityStatePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._entityID.GetMarshalledSize(); // this._entityID + marshalSize += 1; // this._forceId + marshalSize += 1; // this._numberOfVariableParameters + marshalSize += this._entityType.GetMarshalledSize(); // this._entityType + marshalSize += this._alternativeEntityType.GetMarshalledSize(); // this._alternativeEntityType + marshalSize += this._entityLinearVelocity.GetMarshalledSize(); // this._entityLinearVelocity + marshalSize += this._entityLocation.GetMarshalledSize(); // this._entityLocation + marshalSize += this._entityOrientation.GetMarshalledSize(); // this._entityOrientation + marshalSize += 4; // this._entityAppearance + marshalSize += this._deadReckoningParameters.GetMarshalledSize(); // this._deadReckoningParameters + marshalSize += this._marking.GetMarshalledSize(); // this._marking + marshalSize += 4; // this._capabilities + for (int idx = 0; idx < this._variableParameters.Count; idx++) + { + VariableParameter listElement = (VariableParameter)this._variableParameters[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Unique ID for an entity that is tied to this state information + /// + [XmlElement(Type = typeof(EntityID), ElementName = "entityID")] + public EntityID EntityID + { + get + { + return this._entityID; + } + + set + { + this._entityID = value; + } + } + + /// + /// Gets or sets the What force this entity is affiliated with, eg red, blue, neutral, etc + /// + [XmlElement(Type = typeof(byte), ElementName = "forceId")] + public byte ForceId + { + get + { + return this._forceId; + } + + set + { + this._forceId = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfVariableParameters method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfVariableParameters")] + public byte NumberOfVariableParameters + { + get + { + return this._numberOfVariableParameters; + } + + set + { + this._numberOfVariableParameters = value; + } + } + + /// + /// Gets or sets the Describes the type of entity in the world + /// + [XmlElement(Type = typeof(EntityType), ElementName = "entityType")] + public EntityType EntityType + { + get + { + return this._entityType; + } + + set + { + this._entityType = value; + } + } + + [XmlElement(Type = typeof(EntityType), ElementName = "alternativeEntityType")] + public EntityType AlternativeEntityType + { + get + { + return this._alternativeEntityType; + } + + set + { + this._alternativeEntityType = value; + } + } + + /// + /// Gets or sets the Describes the speed of the entity in the world + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "entityLinearVelocity")] + public Vector3Float EntityLinearVelocity + { + get + { + return this._entityLinearVelocity; + } + + set + { + this._entityLinearVelocity = value; + } + } + + /// + /// Gets or sets the describes the location of the entity in the world + /// + [XmlElement(Type = typeof(Vector3Double), ElementName = "entityLocation")] + public Vector3Double EntityLocation + { + get + { + return this._entityLocation; + } + + set + { + this._entityLocation = value; + } + } + + /// + /// Gets or sets the describes the orientation of the entity, in euler angles + /// + [XmlElement(Type = typeof(EulerAngles), ElementName = "entityOrientation")] + public EulerAngles EntityOrientation + { + get + { + return this._entityOrientation; + } + + set + { + this._entityOrientation = value; + } + } + + /// + /// Gets or sets the a series of bit flags that are used to help draw the entity, such as smoking, on fire, etc. + /// + [XmlElement(Type = typeof(uint), ElementName = "entityAppearance")] + public uint EntityAppearance + { + get + { + return this._entityAppearance; + } + + set + { + this._entityAppearance = value; + } + } + + /// + /// Gets or sets the parameters used for dead reckoning + /// + [XmlElement(Type = typeof(DeadReckoningParameters), ElementName = "deadReckoningParameters")] + public DeadReckoningParameters DeadReckoningParameters + { + get + { + return this._deadReckoningParameters; + } + + set + { + this._deadReckoningParameters = value; + } + } + + /// + /// Gets or sets the characters that can be used for debugging, or to draw unique strings on the side of entities in the world + /// + [XmlElement(Type = typeof(EntityMarking), ElementName = "marking")] + public EntityMarking Marking + { + get + { + return this._marking; + } + + set + { + this._marking = value; + } + } + + /// + /// Gets or sets the a series of bit flags + /// + [XmlElement(Type = typeof(uint), ElementName = "capabilities")] + public uint Capabilities + { + get + { + return this._capabilities; + } + + set + { + this._capabilities = value; + } + } + + /// + /// Gets or sets the variable length list of variable parameters. In earlier DIS versions this was articulation parameters. + /// + [XmlElement(ElementName = "variableParametersList", Type = typeof(List))] + public List VariableParameters + { + get + { + return this._variableParameters; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._entityID.Marshal(dos); + dos.WriteUnsignedByte((byte)this._forceId); + dos.WriteUnsignedByte((byte)this._variableParameters.Count); + this._entityType.Marshal(dos); + this._alternativeEntityType.Marshal(dos); + this._entityLinearVelocity.Marshal(dos); + this._entityLocation.Marshal(dos); + this._entityOrientation.Marshal(dos); + dos.WriteUnsignedInt((uint)this._entityAppearance); + this._deadReckoningParameters.Marshal(dos); + this._marking.Marshal(dos); + dos.WriteUnsignedInt((uint)this._capabilities); + + for (int idx = 0; idx < this._variableParameters.Count; idx++) + { + VariableParameter aVariableParameter = (VariableParameter)this._variableParameters[idx]; + aVariableParameter.Marshal(dos); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._entityID.Unmarshal(dis); + this._forceId = dis.ReadUnsignedByte(); + this._numberOfVariableParameters = dis.ReadUnsignedByte(); + this._entityType.Unmarshal(dis); + this._alternativeEntityType.Unmarshal(dis); + this._entityLinearVelocity.Unmarshal(dis); + this._entityLocation.Unmarshal(dis); + this._entityOrientation.Unmarshal(dis); + this._entityAppearance = dis.ReadUnsignedInt(); + this._deadReckoningParameters.Unmarshal(dis); + this._marking.Unmarshal(dis); + this._capabilities = dis.ReadUnsignedInt(); + for (int idx = 0; idx < this.NumberOfVariableParameters; idx++) + { + VariableParameter anX = new VariableParameter(); + anX.Unmarshal(dis); + this._variableParameters.Add(anX); + }; + + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._entityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._forceId.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableParameters.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._entityType.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._alternativeEntityType.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._entityLinearVelocity.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._entityLocation.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._entityOrientation.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._entityAppearance.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._deadReckoningParameters.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._marking.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._capabilities.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._variableParameters.Count; idx++) + { + sb.AppendLine(""); + VariableParameter aVariableParameter = (VariableParameter)this._variableParameters[idx]; + aVariableParameter.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as EntityStatePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(EntityStatePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._entityID.Equals(obj._entityID)) + { + ivarsEqual = false; + } + + if (this._forceId != obj._forceId) + { + ivarsEqual = false; + } + + if (this._numberOfVariableParameters != obj._numberOfVariableParameters) + { + ivarsEqual = false; + } + + if (!this._entityType.Equals(obj._entityType)) + { + ivarsEqual = false; + } + + if (!this._alternativeEntityType.Equals(obj._alternativeEntityType)) + { + ivarsEqual = false; + } + + if (!this._entityLinearVelocity.Equals(obj._entityLinearVelocity)) + { + ivarsEqual = false; + } + + if (!this._entityLocation.Equals(obj._entityLocation)) + { + ivarsEqual = false; + } + + if (!this._entityOrientation.Equals(obj._entityOrientation)) + { + ivarsEqual = false; + } + + if (this._entityAppearance != obj._entityAppearance) + { + ivarsEqual = false; + } + + if (!this._deadReckoningParameters.Equals(obj._deadReckoningParameters)) + { + ivarsEqual = false; + } + + if (!this._marking.Equals(obj._marking)) + { + ivarsEqual = false; + } + + if (this._capabilities != obj._capabilities) + { + ivarsEqual = false; + } + + if (this._variableParameters.Count != obj._variableParameters.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._variableParameters.Count; idx++) + { + if (!this._variableParameters[idx].Equals(obj._variableParameters[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._entityID.GetHashCode(); + result = GenerateHash(result) ^ this._forceId.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfVariableParameters.GetHashCode(); + result = GenerateHash(result) ^ this._entityType.GetHashCode(); + result = GenerateHash(result) ^ this._alternativeEntityType.GetHashCode(); + result = GenerateHash(result) ^ this._entityLinearVelocity.GetHashCode(); + result = GenerateHash(result) ^ this._entityLocation.GetHashCode(); + result = GenerateHash(result) ^ this._entityOrientation.GetHashCode(); + result = GenerateHash(result) ^ this._entityAppearance.GetHashCode(); + result = GenerateHash(result) ^ this._deadReckoningParameters.GetHashCode(); + result = GenerateHash(result) ^ this._marking.GetHashCode(); + result = GenerateHash(result) ^ this._capabilities.GetHashCode(); + + if (this._variableParameters.Count > 0) + { + for (int idx = 0; idx < this._variableParameters.Count; idx++) + { + result = GenerateHash(result) ^ this._variableParameters[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/EntityStateUpdatePdu.cs b/Libs/CSharpDis7/EntityStateUpdatePdu.cs new file mode 100644 index 0000000..5d4e53d --- /dev/null +++ b/Libs/CSharpDis7/EntityStateUpdatePdu.cs @@ -0,0 +1,557 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Nonstatic information about a particular entity may be communicated by issuing an Entity State Update PDU. Section 7.2.5. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(Vector3Float))] + [XmlInclude(typeof(Vector3Double))] + [XmlInclude(typeof(EulerAngles))] + [XmlInclude(typeof(VariableParameter))] + public partial class EntityStateUpdatePdu : EntityInformationFamilyPdu, IEquatable + { + /// + /// This field shall identify the entity issuing the PDU, and shall be represented by an Entity Identifier record (see 6.2.28). + /// + private EntityID _entityID = new EntityID(); + + /// + /// Padding + /// + private byte _padding1; + + /// + /// This field shall specify the number of variable parameters present. This field shall be represented by an 8-bit unsigned integer (see Annex I). + /// + private byte _numberOfVariableParameters; + + /// + /// This field shall specify an entity’s linear velocity. The coordinate system for an entity’s linear velocity depends on the dead reckoning algorithm used. This field shall be represented by a Linear Velocity Vector record [see 6.2.95 item c)]). + /// + private Vector3Float _entityLinearVelocity = new Vector3Float(); + + /// + /// This field shall specify an entity’s physical location in the simulated world and shall be represented by a World Coordinates record (see 6.2.97). + /// + private Vector3Double _entityLocation = new Vector3Double(); + + /// + /// This field shall specify an entity’s orientation and shall be represented by an Euler Angles record (see 6.2.33). + /// + private EulerAngles _entityOrientation = new EulerAngles(); + + /// + /// This field shall specify the dynamic changes to the entity’s appearance attributes. This field shall be represented by an Entity Appearance record (see 6.2.26). + /// + private uint _entityAppearance; + + /// + /// This field shall specify the parameter values for each Variable Parameter record that is included (see 6.2.93 and Annex I). + /// + private List _variableParameters = new List(); + + /// + /// Initializes a new instance of the class. + /// + public EntityStateUpdatePdu() + { + PduType = (byte)67; + ProtocolFamily = (byte)1; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(EntityStateUpdatePdu left, EntityStateUpdatePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(EntityStateUpdatePdu left, EntityStateUpdatePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._entityID.GetMarshalledSize(); // this._entityID + marshalSize += 1; // this._padding1 + marshalSize += 1; // this._numberOfVariableParameters + marshalSize += this._entityLinearVelocity.GetMarshalledSize(); // this._entityLinearVelocity + marshalSize += this._entityLocation.GetMarshalledSize(); // this._entityLocation + marshalSize += this._entityOrientation.GetMarshalledSize(); // this._entityOrientation + marshalSize += 4; // this._entityAppearance + for (int idx = 0; idx < this._variableParameters.Count; idx++) + { + VariableParameter listElement = (VariableParameter)this._variableParameters[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the This field shall identify the entity issuing the PDU, and shall be represented by an Entity Identifier record (see 6.2.28). + /// + [XmlElement(Type = typeof(EntityID), ElementName = "entityID")] + public EntityID EntityID + { + get + { + return this._entityID; + } + + set + { + this._entityID = value; + } + } + + /// + /// Gets or sets the Padding + /// + [XmlElement(Type = typeof(byte), ElementName = "padding1")] + public byte Padding1 + { + get + { + return this._padding1; + } + + set + { + this._padding1 = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfVariableParameters method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfVariableParameters")] + public byte NumberOfVariableParameters + { + get + { + return this._numberOfVariableParameters; + } + + set + { + this._numberOfVariableParameters = value; + } + } + + /// + /// Gets or sets the This field shall specify an entity’s linear velocity. The coordinate system for an entity’s linear velocity depends on the dead reckoning algorithm used. This field shall be represented by a Linear Velocity Vector record [see 6.2.95 item c)]). + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "entityLinearVelocity")] + public Vector3Float EntityLinearVelocity + { + get + { + return this._entityLinearVelocity; + } + + set + { + this._entityLinearVelocity = value; + } + } + + /// + /// Gets or sets the This field shall specify an entity’s physical location in the simulated world and shall be represented by a World Coordinates record (see 6.2.97). + /// + [XmlElement(Type = typeof(Vector3Double), ElementName = "entityLocation")] + public Vector3Double EntityLocation + { + get + { + return this._entityLocation; + } + + set + { + this._entityLocation = value; + } + } + + /// + /// Gets or sets the This field shall specify an entity’s orientation and shall be represented by an Euler Angles record (see 6.2.33). + /// + [XmlElement(Type = typeof(EulerAngles), ElementName = "entityOrientation")] + public EulerAngles EntityOrientation + { + get + { + return this._entityOrientation; + } + + set + { + this._entityOrientation = value; + } + } + + /// + /// Gets or sets the This field shall specify the dynamic changes to the entity’s appearance attributes. This field shall be represented by an Entity Appearance record (see 6.2.26). + /// + [XmlElement(Type = typeof(uint), ElementName = "entityAppearance")] + public uint EntityAppearance + { + get + { + return this._entityAppearance; + } + + set + { + this._entityAppearance = value; + } + } + + /// + /// Gets or sets the This field shall specify the parameter values for each Variable Parameter record that is included (see 6.2.93 and Annex I). + /// + [XmlElement(ElementName = "variableParametersList", Type = typeof(List))] + public List VariableParameters + { + get + { + return this._variableParameters; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._entityID.Marshal(dos); + dos.WriteByte((byte)this._padding1); + dos.WriteUnsignedByte((byte)this._variableParameters.Count); + this._entityLinearVelocity.Marshal(dos); + this._entityLocation.Marshal(dos); + this._entityOrientation.Marshal(dos); + dos.WriteUnsignedInt((uint)this._entityAppearance); + + for (int idx = 0; idx < this._variableParameters.Count; idx++) + { + VariableParameter aVariableParameter = (VariableParameter)this._variableParameters[idx]; + aVariableParameter.Marshal(dos); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._entityID.Unmarshal(dis); + this._padding1 = dis.ReadByte(); + this._numberOfVariableParameters = dis.ReadUnsignedByte(); + this._entityLinearVelocity.Unmarshal(dis); + this._entityLocation.Unmarshal(dis); + this._entityOrientation.Unmarshal(dis); + this._entityAppearance = dis.ReadUnsignedInt(); + for (int idx = 0; idx < this.NumberOfVariableParameters; idx++) + { + VariableParameter anX = new VariableParameter(); + anX.Unmarshal(dis); + this._variableParameters.Add(anX); + }; + + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._entityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableParameters.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._entityLinearVelocity.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._entityLocation.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._entityOrientation.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._entityAppearance.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._variableParameters.Count; idx++) + { + sb.AppendLine(""); + VariableParameter aVariableParameter = (VariableParameter)this._variableParameters[idx]; + aVariableParameter.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as EntityStateUpdatePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(EntityStateUpdatePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._entityID.Equals(obj._entityID)) + { + ivarsEqual = false; + } + + if (this._padding1 != obj._padding1) + { + ivarsEqual = false; + } + + if (this._numberOfVariableParameters != obj._numberOfVariableParameters) + { + ivarsEqual = false; + } + + if (!this._entityLinearVelocity.Equals(obj._entityLinearVelocity)) + { + ivarsEqual = false; + } + + if (!this._entityLocation.Equals(obj._entityLocation)) + { + ivarsEqual = false; + } + + if (!this._entityOrientation.Equals(obj._entityOrientation)) + { + ivarsEqual = false; + } + + if (this._entityAppearance != obj._entityAppearance) + { + ivarsEqual = false; + } + + if (this._variableParameters.Count != obj._variableParameters.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._variableParameters.Count; idx++) + { + if (!this._variableParameters[idx].Equals(obj._variableParameters[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._entityID.GetHashCode(); + result = GenerateHash(result) ^ this._padding1.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfVariableParameters.GetHashCode(); + result = GenerateHash(result) ^ this._entityLinearVelocity.GetHashCode(); + result = GenerateHash(result) ^ this._entityLocation.GetHashCode(); + result = GenerateHash(result) ^ this._entityOrientation.GetHashCode(); + result = GenerateHash(result) ^ this._entityAppearance.GetHashCode(); + + if (this._variableParameters.Count > 0) + { + for (int idx = 0; idx < this._variableParameters.Count; idx++) + { + result = GenerateHash(result) ^ this._variableParameters[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/EntityType.cs b/Libs/CSharpDis7/EntityType.cs new file mode 100644 index 0000000..b47ca07 --- /dev/null +++ b/Libs/CSharpDis7/EntityType.cs @@ -0,0 +1,463 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Identifies the type of entity, including kind of entity, domain (surface, subsurface, air, etc) country, category, etc. Section 6.2.30 + /// + [Serializable] + [XmlRoot] + public partial class EntityType + { + /// + /// Kind of entity + /// + private byte _entityKind; + + /// + /// Domain of entity (air, surface, subsurface, space, etc) + /// + private byte _domain; + + /// + /// country to which the design of the entity is attributed + /// + private ushort _country; + + /// + /// category of entity + /// + private byte _category; + + /// + /// subcategory of entity + /// + private byte _subcategory; + + /// + /// specific info based on subcategory field. Renamed from specific because that is a reserved word in SQL. + /// + private byte _specific; + + private byte _extra; + + /// + /// Initializes a new instance of the class. + /// + public EntityType() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(EntityType left, EntityType right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(EntityType left, EntityType right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._entityKind + marshalSize += 1; // this._domain + marshalSize += 2; // this._country + marshalSize += 1; // this._category + marshalSize += 1; // this._subcategory + marshalSize += 1; // this._specific + marshalSize += 1; // this._extra + return marshalSize; + } + + /// + /// Gets or sets the Kind of entity + /// + [XmlElement(Type = typeof(byte), ElementName = "entityKind")] + public byte EntityKind + { + get + { + return this._entityKind; + } + + set + { + this._entityKind = value; + } + } + + /// + /// Gets or sets the Domain of entity (air, surface, subsurface, space, etc) + /// + [XmlElement(Type = typeof(byte), ElementName = "domain")] + public byte Domain + { + get + { + return this._domain; + } + + set + { + this._domain = value; + } + } + + /// + /// Gets or sets the country to which the design of the entity is attributed + /// + [XmlElement(Type = typeof(ushort), ElementName = "country")] + public ushort Country + { + get + { + return this._country; + } + + set + { + this._country = value; + } + } + + /// + /// Gets or sets the category of entity + /// + [XmlElement(Type = typeof(byte), ElementName = "category")] + public byte Category + { + get + { + return this._category; + } + + set + { + this._category = value; + } + } + + /// + /// Gets or sets the subcategory of entity + /// + [XmlElement(Type = typeof(byte), ElementName = "subcategory")] + public byte Subcategory + { + get + { + return this._subcategory; + } + + set + { + this._subcategory = value; + } + } + + /// + /// Gets or sets the specific info based on subcategory field. Renamed from specific because that is a reserved word in SQL. + /// + [XmlElement(Type = typeof(byte), ElementName = "specific")] + public byte Specific + { + get + { + return this._specific; + } + + set + { + this._specific = value; + } + } + + [XmlElement(Type = typeof(byte), ElementName = "extra")] + public byte Extra + { + get + { + return this._extra; + } + + set + { + this._extra = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._entityKind); + dos.WriteUnsignedByte((byte)this._domain); + dos.WriteUnsignedShort((ushort)this._country); + dos.WriteUnsignedByte((byte)this._category); + dos.WriteUnsignedByte((byte)this._subcategory); + dos.WriteUnsignedByte((byte)this._specific); + dos.WriteUnsignedByte((byte)this._extra); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._entityKind = dis.ReadUnsignedByte(); + this._domain = dis.ReadUnsignedByte(); + this._country = dis.ReadUnsignedShort(); + this._category = dis.ReadUnsignedByte(); + this._subcategory = dis.ReadUnsignedByte(); + this._specific = dis.ReadUnsignedByte(); + this._extra = dis.ReadUnsignedByte(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._entityKind.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._domain.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._country.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._category.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._subcategory.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._specific.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._extra.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as EntityType; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(EntityType obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._entityKind != obj._entityKind) + { + ivarsEqual = false; + } + + if (this._domain != obj._domain) + { + ivarsEqual = false; + } + + if (this._country != obj._country) + { + ivarsEqual = false; + } + + if (this._category != obj._category) + { + ivarsEqual = false; + } + + if (this._subcategory != obj._subcategory) + { + ivarsEqual = false; + } + + if (this._specific != obj._specific) + { + ivarsEqual = false; + } + + if (this._extra != obj._extra) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._entityKind.GetHashCode(); + result = GenerateHash(result) ^ this._domain.GetHashCode(); + result = GenerateHash(result) ^ this._country.GetHashCode(); + result = GenerateHash(result) ^ this._category.GetHashCode(); + result = GenerateHash(result) ^ this._subcategory.GetHashCode(); + result = GenerateHash(result) ^ this._specific.GetHashCode(); + result = GenerateHash(result) ^ this._extra.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/EntityTypeVP.cs b/Libs/CSharpDis7/EntityTypeVP.cs new file mode 100644 index 0000000..7d6b6c8 --- /dev/null +++ b/Libs/CSharpDis7/EntityTypeVP.cs @@ -0,0 +1,408 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Association or disassociation of two entities. Section 6.2.93.5 + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityType))] + public partial class EntityTypeVP + { + /// + /// the identification of the Variable Parameter record. Enumeration from EBV + /// + private byte _recordType = 3; + + /// + /// Indicates if this VP has changed since last issuance + /// + private byte _changeIndicator; + + /// + /// + /// + private EntityType _entityType = new EntityType(); + + /// + /// padding + /// + private ushort _padding; + + /// + /// padding + /// + private uint _padding1; + + /// + /// Initializes a new instance of the class. + /// + public EntityTypeVP() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(EntityTypeVP left, EntityTypeVP right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(EntityTypeVP left, EntityTypeVP right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._recordType + marshalSize += 1; // this._changeIndicator + marshalSize += this._entityType.GetMarshalledSize(); // this._entityType + marshalSize += 2; // this._padding + marshalSize += 4; // this._padding1 + return marshalSize; + } + + /// + /// Gets or sets the the identification of the Variable Parameter record. Enumeration from EBV + /// + [XmlElement(Type = typeof(byte), ElementName = "recordType")] + public byte RecordType + { + get + { + return this._recordType; + } + + set + { + this._recordType = value; + } + } + + /// + /// Gets or sets the Indicates if this VP has changed since last issuance + /// + [XmlElement(Type = typeof(byte), ElementName = "changeIndicator")] + public byte ChangeIndicator + { + get + { + return this._changeIndicator; + } + + set + { + this._changeIndicator = value; + } + } + + /// + /// Gets or sets the + /// + [XmlElement(Type = typeof(EntityType), ElementName = "entityType")] + public EntityType EntityType + { + get + { + return this._entityType; + } + + set + { + this._entityType = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(ushort), ElementName = "padding")] + public ushort Padding + { + get + { + return this._padding; + } + + set + { + this._padding = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(uint), ElementName = "padding1")] + public uint Padding1 + { + get + { + return this._padding1; + } + + set + { + this._padding1 = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._recordType); + dos.WriteUnsignedByte((byte)this._changeIndicator); + this._entityType.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._padding); + dos.WriteUnsignedInt((uint)this._padding1); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._recordType = dis.ReadUnsignedByte(); + this._changeIndicator = dis.ReadUnsignedByte(); + this._entityType.Unmarshal(dis); + this._padding = dis.ReadUnsignedShort(); + this._padding1 = dis.ReadUnsignedInt(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._recordType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._changeIndicator.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._entityType.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as EntityTypeVP; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(EntityTypeVP obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._recordType != obj._recordType) + { + ivarsEqual = false; + } + + if (this._changeIndicator != obj._changeIndicator) + { + ivarsEqual = false; + } + + if (!this._entityType.Equals(obj._entityType)) + { + ivarsEqual = false; + } + + if (this._padding != obj._padding) + { + ivarsEqual = false; + } + + if (this._padding1 != obj._padding1) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._recordType.GetHashCode(); + result = GenerateHash(result) ^ this._changeIndicator.GetHashCode(); + result = GenerateHash(result) ^ this._entityType.GetHashCode(); + result = GenerateHash(result) ^ this._padding.GetHashCode(); + result = GenerateHash(result) ^ this._padding1.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/Environment.cs b/Libs/CSharpDis7/Environment.cs new file mode 100644 index 0000000..1e12306 --- /dev/null +++ b/Libs/CSharpDis7/Environment.cs @@ -0,0 +1,373 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Incomplete environment record; requires hand coding to fix. Section 6.2.31.1 + /// + [Serializable] + [XmlRoot] + public partial class Environment + { + /// + /// type + /// + private uint _environmentType; + + /// + /// length, in bits, of the record + /// + private ushort _length; + + /// + /// identifies the sequntially numbered record index + /// + private byte _index; + + /// + /// padding + /// + private byte _padding; + + /// + /// Initializes a new instance of the class. + /// + public Environment() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(Environment left, Environment right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(Environment left, Environment right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._environmentType + marshalSize += 2; // this._length + marshalSize += 1; // this._index + marshalSize += 1; // this._padding + return marshalSize; + } + + /// + /// Gets or sets the type + /// + [XmlElement(Type = typeof(uint), ElementName = "environmentType")] + public uint EnvironmentType + { + get + { + return this._environmentType; + } + + set + { + this._environmentType = value; + } + } + + /// + /// Gets or sets the length, in bits, of the record + /// + [XmlElement(Type = typeof(ushort), ElementName = "length")] + public ushort Length + { + get + { + return this._length; + } + + set + { + this._length = value; + } + } + + /// + /// Gets or sets the identifies the sequntially numbered record index + /// + [XmlElement(Type = typeof(byte), ElementName = "index")] + public byte Index + { + get + { + return this._index; + } + + set + { + this._index = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "padding")] + public byte Padding + { + get + { + return this._padding; + } + + set + { + this._padding = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._environmentType); + dos.WriteUnsignedShort((ushort)this._length); + dos.WriteUnsignedByte((byte)this._index); + dos.WriteUnsignedByte((byte)this._padding); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._environmentType = dis.ReadUnsignedInt(); + this._length = dis.ReadUnsignedShort(); + this._index = dis.ReadUnsignedByte(); + this._padding = dis.ReadUnsignedByte(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._environmentType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._length.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._index.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as Environment; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(Environment obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._environmentType != obj._environmentType) + { + ivarsEqual = false; + } + + if (this._length != obj._length) + { + ivarsEqual = false; + } + + if (this._index != obj._index) + { + ivarsEqual = false; + } + + if (this._padding != obj._padding) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._environmentType.GetHashCode(); + result = GenerateHash(result) ^ this._length.GetHashCode(); + result = GenerateHash(result) ^ this._index.GetHashCode(); + result = GenerateHash(result) ^ this._padding.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/EnvironmentGeneral.cs b/Libs/CSharpDis7/EnvironmentGeneral.cs new file mode 100644 index 0000000..1724b06 --- /dev/null +++ b/Libs/CSharpDis7/EnvironmentGeneral.cs @@ -0,0 +1,437 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Information about a geometry, a state associated with a geometry, a bounding volume, or an associated entity ID. NOTE: this class requires hand coding. 6.2.31 + /// + [Serializable] + [XmlRoot] + public partial class EnvironmentGeneral + { + /// + /// Record type + /// + private uint _environmentType; + + /// + /// length, in bits + /// + private byte _length; + + /// + /// Identify the sequentially numbered record index + /// + private byte _index; + + /// + /// padding + /// + private byte _padding1; + + /// + /// Geometry or state record + /// + private byte _geometry; + + /// + /// padding to bring the total size up to a 64 bit boundry + /// + private byte _padding2; + + /// + /// Initializes a new instance of the class. + /// + public EnvironmentGeneral() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(EnvironmentGeneral left, EnvironmentGeneral right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(EnvironmentGeneral left, EnvironmentGeneral right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._environmentType + marshalSize += 1; // this._length + marshalSize += 1; // this._index + marshalSize += 1; // this._padding1 + marshalSize += 1; // this._geometry + marshalSize += 1; // this._padding2 + return marshalSize; + } + + /// + /// Gets or sets the Record type + /// + [XmlElement(Type = typeof(uint), ElementName = "environmentType")] + public uint EnvironmentType + { + get + { + return this._environmentType; + } + + set + { + this._environmentType = value; + } + } + + /// + /// Gets or sets the length, in bits + /// + [XmlElement(Type = typeof(byte), ElementName = "length")] + public byte Length + { + get + { + return this._length; + } + + set + { + this._length = value; + } + } + + /// + /// Gets or sets the Identify the sequentially numbered record index + /// + [XmlElement(Type = typeof(byte), ElementName = "index")] + public byte Index + { + get + { + return this._index; + } + + set + { + this._index = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "padding1")] + public byte Padding1 + { + get + { + return this._padding1; + } + + set + { + this._padding1 = value; + } + } + + /// + /// Gets or sets the Geometry or state record + /// + [XmlElement(Type = typeof(byte), ElementName = "geometry")] + public byte Geometry + { + get + { + return this._geometry; + } + + set + { + this._geometry = value; + } + } + + /// + /// Gets or sets the padding to bring the total size up to a 64 bit boundry + /// + [XmlElement(Type = typeof(byte), ElementName = "padding2")] + public byte Padding2 + { + get + { + return this._padding2; + } + + set + { + this._padding2 = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._environmentType); + dos.WriteUnsignedByte((byte)this._length); + dos.WriteUnsignedByte((byte)this._index); + dos.WriteUnsignedByte((byte)this._padding1); + dos.WriteUnsignedByte((byte)this._geometry); + dos.WriteUnsignedByte((byte)this._padding2); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._environmentType = dis.ReadUnsignedInt(); + this._length = dis.ReadUnsignedByte(); + this._index = dis.ReadUnsignedByte(); + this._padding1 = dis.ReadUnsignedByte(); + this._geometry = dis.ReadUnsignedByte(); + this._padding2 = dis.ReadUnsignedByte(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._environmentType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._length.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._index.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._geometry.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as EnvironmentGeneral; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(EnvironmentGeneral obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._environmentType != obj._environmentType) + { + ivarsEqual = false; + } + + if (this._length != obj._length) + { + ivarsEqual = false; + } + + if (this._index != obj._index) + { + ivarsEqual = false; + } + + if (this._padding1 != obj._padding1) + { + ivarsEqual = false; + } + + if (this._geometry != obj._geometry) + { + ivarsEqual = false; + } + + if (this._padding2 != obj._padding2) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._environmentType.GetHashCode(); + result = GenerateHash(result) ^ this._length.GetHashCode(); + result = GenerateHash(result) ^ this._index.GetHashCode(); + result = GenerateHash(result) ^ this._padding1.GetHashCode(); + result = GenerateHash(result) ^ this._geometry.GetHashCode(); + result = GenerateHash(result) ^ this._padding2.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/EnvironmentType.cs b/Libs/CSharpDis7/EnvironmentType.cs new file mode 100644 index 0000000..94072fb --- /dev/null +++ b/Libs/CSharpDis7/EnvironmentType.cs @@ -0,0 +1,463 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Description of environmental data in environmental process and gridded data PDUs. Section 6.2.32 + /// + [Serializable] + [XmlRoot] + public partial class EnvironmentType + { + /// + /// Kind of entity + /// + private byte _entityKind; + + /// + /// Domain of entity (air, surface, subsurface, space, etc) + /// + private byte _domain; + + /// + /// class of environmental entity + /// + private ushort _entityClass; + + /// + /// category of entity + /// + private byte _category; + + /// + /// subcategory of entity + /// + private byte _subcategory; + + /// + /// specific info based on subcategory field + /// + private byte _specific; + + private byte _extra; + + /// + /// Initializes a new instance of the class. + /// + public EnvironmentType() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(EnvironmentType left, EnvironmentType right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(EnvironmentType left, EnvironmentType right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._entityKind + marshalSize += 1; // this._domain + marshalSize += 2; // this._entityClass + marshalSize += 1; // this._category + marshalSize += 1; // this._subcategory + marshalSize += 1; // this._specific + marshalSize += 1; // this._extra + return marshalSize; + } + + /// + /// Gets or sets the Kind of entity + /// + [XmlElement(Type = typeof(byte), ElementName = "entityKind")] + public byte EntityKind + { + get + { + return this._entityKind; + } + + set + { + this._entityKind = value; + } + } + + /// + /// Gets or sets the Domain of entity (air, surface, subsurface, space, etc) + /// + [XmlElement(Type = typeof(byte), ElementName = "domain")] + public byte Domain + { + get + { + return this._domain; + } + + set + { + this._domain = value; + } + } + + /// + /// Gets or sets the class of environmental entity + /// + [XmlElement(Type = typeof(ushort), ElementName = "entityClass")] + public ushort EntityClass + { + get + { + return this._entityClass; + } + + set + { + this._entityClass = value; + } + } + + /// + /// Gets or sets the category of entity + /// + [XmlElement(Type = typeof(byte), ElementName = "category")] + public byte Category + { + get + { + return this._category; + } + + set + { + this._category = value; + } + } + + /// + /// Gets or sets the subcategory of entity + /// + [XmlElement(Type = typeof(byte), ElementName = "subcategory")] + public byte Subcategory + { + get + { + return this._subcategory; + } + + set + { + this._subcategory = value; + } + } + + /// + /// Gets or sets the specific info based on subcategory field + /// + [XmlElement(Type = typeof(byte), ElementName = "specific")] + public byte Specific + { + get + { + return this._specific; + } + + set + { + this._specific = value; + } + } + + [XmlElement(Type = typeof(byte), ElementName = "extra")] + public byte Extra + { + get + { + return this._extra; + } + + set + { + this._extra = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._entityKind); + dos.WriteUnsignedByte((byte)this._domain); + dos.WriteUnsignedShort((ushort)this._entityClass); + dos.WriteUnsignedByte((byte)this._category); + dos.WriteUnsignedByte((byte)this._subcategory); + dos.WriteUnsignedByte((byte)this._specific); + dos.WriteUnsignedByte((byte)this._extra); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._entityKind = dis.ReadUnsignedByte(); + this._domain = dis.ReadUnsignedByte(); + this._entityClass = dis.ReadUnsignedShort(); + this._category = dis.ReadUnsignedByte(); + this._subcategory = dis.ReadUnsignedByte(); + this._specific = dis.ReadUnsignedByte(); + this._extra = dis.ReadUnsignedByte(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._entityKind.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._domain.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._entityClass.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._category.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._subcategory.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._specific.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._extra.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as EnvironmentType; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(EnvironmentType obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._entityKind != obj._entityKind) + { + ivarsEqual = false; + } + + if (this._domain != obj._domain) + { + ivarsEqual = false; + } + + if (this._entityClass != obj._entityClass) + { + ivarsEqual = false; + } + + if (this._category != obj._category) + { + ivarsEqual = false; + } + + if (this._subcategory != obj._subcategory) + { + ivarsEqual = false; + } + + if (this._specific != obj._specific) + { + ivarsEqual = false; + } + + if (this._extra != obj._extra) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._entityKind.GetHashCode(); + result = GenerateHash(result) ^ this._domain.GetHashCode(); + result = GenerateHash(result) ^ this._entityClass.GetHashCode(); + result = GenerateHash(result) ^ this._category.GetHashCode(); + result = GenerateHash(result) ^ this._subcategory.GetHashCode(); + result = GenerateHash(result) ^ this._specific.GetHashCode(); + result = GenerateHash(result) ^ this._extra.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/EulerAngles.cs b/Libs/CSharpDis7/EulerAngles.cs new file mode 100644 index 0000000..16d7243 --- /dev/null +++ b/Libs/CSharpDis7/EulerAngles.cs @@ -0,0 +1,323 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Three floating point values representing an orientation, psi, theta, and phi, aka the euler angles, in radians. Section 6.2.33 + /// + [Serializable] + [XmlRoot] + public partial class EulerAngles + { + private float _psi; + + private float _theta; + + private float _phi; + + /// + /// Initializes a new instance of the class. + /// + public EulerAngles() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(EulerAngles left, EulerAngles right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(EulerAngles left, EulerAngles right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._psi + marshalSize += 4; // this._theta + marshalSize += 4; // this._phi + return marshalSize; + } + + [XmlElement(Type = typeof(float), ElementName = "psi")] + public float Psi + { + get + { + return this._psi; + } + + set + { + this._psi = value; + } + } + + [XmlElement(Type = typeof(float), ElementName = "theta")] + public float Theta + { + get + { + return this._theta; + } + + set + { + this._theta = value; + } + } + + [XmlElement(Type = typeof(float), ElementName = "phi")] + public float Phi + { + get + { + return this._phi; + } + + set + { + this._phi = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteFloat((float)this._psi); + dos.WriteFloat((float)this._theta); + dos.WriteFloat((float)this._phi); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._psi = dis.ReadFloat(); + this._theta = dis.ReadFloat(); + this._phi = dis.ReadFloat(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._psi.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._theta.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._phi.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as EulerAngles; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(EulerAngles obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._psi != obj._psi) + { + ivarsEqual = false; + } + + if (this._theta != obj._theta) + { + ivarsEqual = false; + } + + if (this._phi != obj._phi) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._psi.GetHashCode(); + result = GenerateHash(result) ^ this._theta.GetHashCode(); + result = GenerateHash(result) ^ this._phi.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/EventIdentifier.cs b/Libs/CSharpDis7/EventIdentifier.cs new file mode 100644 index 0000000..7be27fa --- /dev/null +++ b/Libs/CSharpDis7/EventIdentifier.cs @@ -0,0 +1,306 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Identifies an event in the world. Use this format for every PDU EXCEPT the LiveEntityPdu. Section 6.2.34. + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(SimulationAddress))] + public partial class EventIdentifier + { + /// + /// Site and application IDs + /// + private SimulationAddress _simulationAddress = new SimulationAddress(); + + private ushort _eventNumber; + + /// + /// Initializes a new instance of the class. + /// + public EventIdentifier() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(EventIdentifier left, EventIdentifier right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(EventIdentifier left, EventIdentifier right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += this._simulationAddress.GetMarshalledSize(); // this._simulationAddress + marshalSize += 2; // this._eventNumber + return marshalSize; + } + + /// + /// Gets or sets the Site and application IDs + /// + [XmlElement(Type = typeof(SimulationAddress), ElementName = "simulationAddress")] + public SimulationAddress SimulationAddress + { + get + { + return this._simulationAddress; + } + + set + { + this._simulationAddress = value; + } + } + + [XmlElement(Type = typeof(ushort), ElementName = "eventNumber")] + public ushort EventNumber + { + get + { + return this._eventNumber; + } + + set + { + this._eventNumber = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + this._simulationAddress.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._eventNumber); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._simulationAddress.Unmarshal(dis); + this._eventNumber = dis.ReadUnsignedShort(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine(""); + this._simulationAddress.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._eventNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as EventIdentifier; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(EventIdentifier obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (!this._simulationAddress.Equals(obj._simulationAddress)) + { + ivarsEqual = false; + } + + if (this._eventNumber != obj._eventNumber) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._simulationAddress.GetHashCode(); + result = GenerateHash(result) ^ this._eventNumber.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/EventIdentifierLiveEntity.cs b/Libs/CSharpDis7/EventIdentifierLiveEntity.cs new file mode 100644 index 0000000..7d9bf3e --- /dev/null +++ b/Libs/CSharpDis7/EventIdentifierLiveEntity.cs @@ -0,0 +1,323 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Identifies an event in the world. Use this format for ONLY the LiveEntityPdu. Section 6.2.34. + /// + [Serializable] + [XmlRoot] + public partial class EventIdentifierLiveEntity + { + private byte _siteNumber; + + private byte _applicationNumber; + + private ushort _eventNumber; + + /// + /// Initializes a new instance of the class. + /// + public EventIdentifierLiveEntity() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(EventIdentifierLiveEntity left, EventIdentifierLiveEntity right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(EventIdentifierLiveEntity left, EventIdentifierLiveEntity right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._siteNumber + marshalSize += 1; // this._applicationNumber + marshalSize += 2; // this._eventNumber + return marshalSize; + } + + [XmlElement(Type = typeof(byte), ElementName = "siteNumber")] + public byte SiteNumber + { + get + { + return this._siteNumber; + } + + set + { + this._siteNumber = value; + } + } + + [XmlElement(Type = typeof(byte), ElementName = "applicationNumber")] + public byte ApplicationNumber + { + get + { + return this._applicationNumber; + } + + set + { + this._applicationNumber = value; + } + } + + [XmlElement(Type = typeof(ushort), ElementName = "eventNumber")] + public ushort EventNumber + { + get + { + return this._eventNumber; + } + + set + { + this._eventNumber = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._siteNumber); + dos.WriteUnsignedByte((byte)this._applicationNumber); + dos.WriteUnsignedShort((ushort)this._eventNumber); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._siteNumber = dis.ReadUnsignedByte(); + this._applicationNumber = dis.ReadUnsignedByte(); + this._eventNumber = dis.ReadUnsignedShort(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._siteNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._applicationNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._eventNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as EventIdentifierLiveEntity; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(EventIdentifierLiveEntity obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._siteNumber != obj._siteNumber) + { + ivarsEqual = false; + } + + if (this._applicationNumber != obj._applicationNumber) + { + ivarsEqual = false; + } + + if (this._eventNumber != obj._eventNumber) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._siteNumber.GetHashCode(); + result = GenerateHash(result) ^ this._applicationNumber.GetHashCode(); + result = GenerateHash(result) ^ this._eventNumber.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/EventReportPdu.cs b/Libs/CSharpDis7/EventReportPdu.cs new file mode 100644 index 0000000..84d3bfa --- /dev/null +++ b/Libs/CSharpDis7/EventReportPdu.cs @@ -0,0 +1,519 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Reports occurance of a significant event to the simulation manager. Section 7.5.12. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(FixedDatum))] + [XmlInclude(typeof(VariableDatum))] + public partial class EventReportPdu : SimulationManagementFamilyPdu, IEquatable + { + /// + /// Type of event + /// + private uint _eventType; + + /// + /// padding + /// + private uint _padding1; + + /// + /// Number of fixed datum records + /// + private uint _numberOfFixedDatumRecords; + + /// + /// Number of variable datum records + /// + private uint _numberOfVariableDatumRecords; + + /// + /// variable length list of fixed datums + /// + private List _fixedDatums = new List(); + + /// + /// variable length list of variable length datums + /// + private List _variableDatums = new List(); + + /// + /// Initializes a new instance of the class. + /// + public EventReportPdu() + { + PduType = (byte)21; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(EventReportPdu left, EventReportPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(EventReportPdu left, EventReportPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 4; // this._eventType + marshalSize += 4; // this._padding1 + marshalSize += 4; // this._numberOfFixedDatumRecords + marshalSize += 4; // this._numberOfVariableDatumRecords + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + FixedDatum listElement = (FixedDatum)this._fixedDatums[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + VariableDatum listElement = (VariableDatum)this._variableDatums[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Type of event + /// + [XmlElement(Type = typeof(uint), ElementName = "eventType")] + public uint EventType + { + get + { + return this._eventType; + } + + set + { + this._eventType = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(uint), ElementName = "padding1")] + public uint Padding1 + { + get + { + return this._padding1; + } + + set + { + this._padding1 = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] + public uint NumberOfFixedDatumRecords + { + get + { + return this._numberOfFixedDatumRecords; + } + + set + { + this._numberOfFixedDatumRecords = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] + public uint NumberOfVariableDatumRecords + { + get + { + return this._numberOfVariableDatumRecords; + } + + set + { + this._numberOfVariableDatumRecords = value; + } + } + + /// + /// Gets or sets the variable length list of fixed datums + /// + [XmlElement(ElementName = "fixedDatumsList", Type = typeof(List))] + public List FixedDatums + { + get + { + return this._fixedDatums; + } + } + + /// + /// Gets or sets the variable length list of variable length datums + /// + [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] + public List VariableDatums + { + get + { + return this._variableDatums; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._eventType); + dos.WriteUnsignedInt((uint)this._padding1); + dos.WriteUnsignedInt((uint)this._fixedDatums.Count); + dos.WriteUnsignedInt((uint)this._variableDatums.Count); + + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; + aFixedDatum.Marshal(dos); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; + aVariableDatum.Marshal(dos); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._eventType = dis.ReadUnsignedInt(); + this._padding1 = dis.ReadUnsignedInt(); + this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); + this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); + for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) + { + FixedDatum anX = new FixedDatum(); + anX.Unmarshal(dis); + this._fixedDatums.Add(anX); + }; + + for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) + { + VariableDatum anX = new VariableDatum(); + anX.Unmarshal(dis); + this._variableDatums.Add(anX); + }; + + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._eventType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fixedDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + sb.AppendLine(""); + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; + aFixedDatum.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + sb.AppendLine(""); + VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; + aVariableDatum.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as EventReportPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(EventReportPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._eventType != obj._eventType) + { + ivarsEqual = false; + } + + if (this._padding1 != obj._padding1) + { + ivarsEqual = false; + } + + if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) + { + ivarsEqual = false; + } + + if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) + { + ivarsEqual = false; + } + + if (this._fixedDatums.Count != obj._fixedDatums.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + if (!this._fixedDatums[idx].Equals(obj._fixedDatums[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._variableDatums.Count != obj._variableDatums.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._eventType.GetHashCode(); + result = GenerateHash(result) ^ this._padding1.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); + + if (this._fixedDatums.Count > 0) + { + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + result = GenerateHash(result) ^ this._fixedDatums[idx].GetHashCode(); + } + } + + if (this._variableDatums.Count > 0) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/EventReportReliablePdu.cs b/Libs/CSharpDis7/EventReportReliablePdu.cs new file mode 100644 index 0000000..a2c1d50 --- /dev/null +++ b/Libs/CSharpDis7/EventReportReliablePdu.cs @@ -0,0 +1,519 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Section 5.3.12.11: reports the occurance of a significatnt event to the simulation manager. Needs manual intervention to fix padding in variable datums. UNFINISHED. + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(FixedDatum))] + [XmlInclude(typeof(VariableDatum))] + public partial class EventReportReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable + { + /// + /// Event type + /// + private ushort _eventType; + + /// + /// padding + /// + private uint _pad1; + + /// + /// Fixed datum record count + /// + private uint _numberOfFixedDatumRecords; + + /// + /// variable datum record count + /// + private uint _numberOfVariableDatumRecords; + + /// + /// Fixed datum records + /// + private List _fixedDatumRecords = new List(); + + /// + /// Variable datum records + /// + private List _variableDatumRecords = new List(); + + /// + /// Initializes a new instance of the class. + /// + public EventReportReliablePdu() + { + PduType = (byte)61; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(EventReportReliablePdu left, EventReportReliablePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(EventReportReliablePdu left, EventReportReliablePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 2; // this._eventType + marshalSize += 4; // this._pad1 + marshalSize += 4; // this._numberOfFixedDatumRecords + marshalSize += 4; // this._numberOfVariableDatumRecords + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + FixedDatum listElement = (FixedDatum)this._fixedDatumRecords[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + VariableDatum listElement = (VariableDatum)this._variableDatumRecords[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Event type + /// + [XmlElement(Type = typeof(ushort), ElementName = "eventType")] + public ushort EventType + { + get + { + return this._eventType; + } + + set + { + this._eventType = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(uint), ElementName = "pad1")] + public uint Pad1 + { + get + { + return this._pad1; + } + + set + { + this._pad1 = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] + public uint NumberOfFixedDatumRecords + { + get + { + return this._numberOfFixedDatumRecords; + } + + set + { + this._numberOfFixedDatumRecords = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] + public uint NumberOfVariableDatumRecords + { + get + { + return this._numberOfVariableDatumRecords; + } + + set + { + this._numberOfVariableDatumRecords = value; + } + } + + /// + /// Gets or sets the Fixed datum records + /// + [XmlElement(ElementName = "fixedDatumRecordsList", Type = typeof(List))] + public List FixedDatumRecords + { + get + { + return this._fixedDatumRecords; + } + } + + /// + /// Gets or sets the Variable datum records + /// + [XmlElement(ElementName = "variableDatumRecordsList", Type = typeof(List))] + public List VariableDatumRecords + { + get + { + return this._variableDatumRecords; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._eventType); + dos.WriteUnsignedInt((uint)this._pad1); + dos.WriteUnsignedInt((uint)this._fixedDatumRecords.Count); + dos.WriteUnsignedInt((uint)this._variableDatumRecords.Count); + + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; + aFixedDatum.Marshal(dos); + } + + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; + aVariableDatum.Marshal(dos); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._eventType = dis.ReadUnsignedShort(); + this._pad1 = dis.ReadUnsignedInt(); + this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); + this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); + for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) + { + FixedDatum anX = new FixedDatum(); + anX.Unmarshal(dis); + this._fixedDatumRecords.Add(anX); + }; + + for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) + { + VariableDatum anX = new VariableDatum(); + anX.Unmarshal(dis); + this._variableDatumRecords.Add(anX); + }; + + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._eventType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fixedDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + sb.AppendLine(""); + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; + aFixedDatum.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + sb.AppendLine(""); + VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; + aVariableDatum.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as EventReportReliablePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(EventReportReliablePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._eventType != obj._eventType) + { + ivarsEqual = false; + } + + if (this._pad1 != obj._pad1) + { + ivarsEqual = false; + } + + if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) + { + ivarsEqual = false; + } + + if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) + { + ivarsEqual = false; + } + + if (this._fixedDatumRecords.Count != obj._fixedDatumRecords.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + if (!this._fixedDatumRecords[idx].Equals(obj._fixedDatumRecords[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._variableDatumRecords.Count != obj._variableDatumRecords.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + if (!this._variableDatumRecords[idx].Equals(obj._variableDatumRecords[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._eventType.GetHashCode(); + result = GenerateHash(result) ^ this._pad1.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); + + if (this._fixedDatumRecords.Count > 0) + { + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + result = GenerateHash(result) ^ this._fixedDatumRecords[idx].GetHashCode(); + } + } + + if (this._variableDatumRecords.Count > 0) + { + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + result = GenerateHash(result) ^ this._variableDatumRecords[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/Expendable.cs b/Libs/CSharpDis7/Expendable.cs new file mode 100644 index 0000000..7b8aeaa --- /dev/null +++ b/Libs/CSharpDis7/Expendable.cs @@ -0,0 +1,384 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// An entity's expendable (chaff, flares, etc) information. Section 6.2.36 + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityType))] + public partial class Expendable + { + /// + /// Type of expendable + /// + private EntityType _expendable = new EntityType(); + + private uint _station; + + private ushort _quantity; + + private byte _expendableStatus; + + private byte _padding; + + /// + /// Initializes a new instance of the class. + /// + public Expendable() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(Expendable left, Expendable right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(Expendable left, Expendable right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += this._expendable.GetMarshalledSize(); // this._expendable + marshalSize += 4; // this._station + marshalSize += 2; // this._quantity + marshalSize += 1; // this._expendableStatus + marshalSize += 1; // this._padding + return marshalSize; + } + + /// + /// Gets or sets the Type of expendable + /// + [XmlElement(Type = typeof(EntityType), ElementName = "expendable")] + public EntityType Expendable_ + { + get + { + return this._expendable; + } + + set + { + this._expendable = value; + } + } + + [XmlElement(Type = typeof(uint), ElementName = "station")] + public uint Station + { + get + { + return this._station; + } + + set + { + this._station = value; + } + } + + [XmlElement(Type = typeof(ushort), ElementName = "quantity")] + public ushort Quantity + { + get + { + return this._quantity; + } + + set + { + this._quantity = value; + } + } + + [XmlElement(Type = typeof(byte), ElementName = "expendableStatus")] + public byte ExpendableStatus + { + get + { + return this._expendableStatus; + } + + set + { + this._expendableStatus = value; + } + } + + [XmlElement(Type = typeof(byte), ElementName = "padding")] + public byte Padding + { + get + { + return this._padding; + } + + set + { + this._padding = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + this._expendable.Marshal(dos); + dos.WriteUnsignedInt((uint)this._station); + dos.WriteUnsignedShort((ushort)this._quantity); + dos.WriteUnsignedByte((byte)this._expendableStatus); + dos.WriteUnsignedByte((byte)this._padding); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._expendable.Unmarshal(dis); + this._station = dis.ReadUnsignedInt(); + this._quantity = dis.ReadUnsignedShort(); + this._expendableStatus = dis.ReadUnsignedByte(); + this._padding = dis.ReadUnsignedByte(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine(""); + this._expendable.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._station.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._quantity.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._expendableStatus.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as Expendable; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(Expendable obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (!this._expendable.Equals(obj._expendable)) + { + ivarsEqual = false; + } + + if (this._station != obj._station) + { + ivarsEqual = false; + } + + if (this._quantity != obj._quantity) + { + ivarsEqual = false; + } + + if (this._expendableStatus != obj._expendableStatus) + { + ivarsEqual = false; + } + + if (this._padding != obj._padding) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._expendable.GetHashCode(); + result = GenerateHash(result) ^ this._station.GetHashCode(); + result = GenerateHash(result) ^ this._quantity.GetHashCode(); + result = GenerateHash(result) ^ this._expendableStatus.GetHashCode(); + result = GenerateHash(result) ^ this._padding.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/ExpendableDescriptor.cs b/Libs/CSharpDis7/ExpendableDescriptor.cs new file mode 100644 index 0000000..0949309 --- /dev/null +++ b/Libs/CSharpDis7/ExpendableDescriptor.cs @@ -0,0 +1,312 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Burst of chaff or expendible device. Section 6.2.20.4 + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityType))] + public partial class ExpendableDescriptor + { + /// + /// Type of the object that exploded + /// + private EntityType _expendableType = new EntityType(); + + /// + /// Padding + /// + private long _padding; + + /// + /// Initializes a new instance of the class. + /// + public ExpendableDescriptor() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ExpendableDescriptor left, ExpendableDescriptor right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ExpendableDescriptor left, ExpendableDescriptor right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += this._expendableType.GetMarshalledSize(); // this._expendableType + marshalSize += 8; // this._padding + return marshalSize; + } + + /// + /// Gets or sets the Type of the object that exploded + /// + [XmlElement(Type = typeof(EntityType), ElementName = "expendableType")] + public EntityType ExpendableType + { + get + { + return this._expendableType; + } + + set + { + this._expendableType = value; + } + } + + /// + /// Gets or sets the Padding + /// + [XmlElement(Type = typeof(long), ElementName = "padding")] + public long Padding + { + get + { + return this._padding; + } + + set + { + this._padding = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + this._expendableType.Marshal(dos); + dos.WriteLong((long)this._padding); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._expendableType.Unmarshal(dis); + this._padding = dis.ReadLong(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine(""); + this._expendableType.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ExpendableDescriptor; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ExpendableDescriptor obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (!this._expendableType.Equals(obj._expendableType)) + { + ivarsEqual = false; + } + + if (this._padding != obj._padding) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._expendableType.GetHashCode(); + result = GenerateHash(result) ^ this._padding.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/ExpendableReload.cs b/Libs/CSharpDis7/ExpendableReload.cs new file mode 100644 index 0000000..4e12354 --- /dev/null +++ b/Libs/CSharpDis7/ExpendableReload.cs @@ -0,0 +1,410 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// An entity's expendable (chaff, flares, etc) information. Section 6.2.37 + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityType))] + public partial class ExpendableReload + { + /// + /// Type of expendable + /// + private EntityType _expendable = new EntityType(); + + private uint _station; + + private ushort _standardQuantity; + + private ushort _maximumQuantity; + + private uint _standardQuantityReloadTime; + + private uint _maximumQuantityReloadTime; + + /// + /// Initializes a new instance of the class. + /// + public ExpendableReload() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ExpendableReload left, ExpendableReload right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ExpendableReload left, ExpendableReload right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += this._expendable.GetMarshalledSize(); // this._expendable + marshalSize += 4; // this._station + marshalSize += 2; // this._standardQuantity + marshalSize += 2; // this._maximumQuantity + marshalSize += 4; // this._standardQuantityReloadTime + marshalSize += 4; // this._maximumQuantityReloadTime + return marshalSize; + } + + /// + /// Gets or sets the Type of expendable + /// + [XmlElement(Type = typeof(EntityType), ElementName = "expendable")] + public EntityType Expendable + { + get + { + return this._expendable; + } + + set + { + this._expendable = value; + } + } + + [XmlElement(Type = typeof(uint), ElementName = "station")] + public uint Station + { + get + { + return this._station; + } + + set + { + this._station = value; + } + } + + [XmlElement(Type = typeof(ushort), ElementName = "standardQuantity")] + public ushort StandardQuantity + { + get + { + return this._standardQuantity; + } + + set + { + this._standardQuantity = value; + } + } + + [XmlElement(Type = typeof(ushort), ElementName = "maximumQuantity")] + public ushort MaximumQuantity + { + get + { + return this._maximumQuantity; + } + + set + { + this._maximumQuantity = value; + } + } + + [XmlElement(Type = typeof(uint), ElementName = "standardQuantityReloadTime")] + public uint StandardQuantityReloadTime + { + get + { + return this._standardQuantityReloadTime; + } + + set + { + this._standardQuantityReloadTime = value; + } + } + + [XmlElement(Type = typeof(uint), ElementName = "maximumQuantityReloadTime")] + public uint MaximumQuantityReloadTime + { + get + { + return this._maximumQuantityReloadTime; + } + + set + { + this._maximumQuantityReloadTime = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + this._expendable.Marshal(dos); + dos.WriteUnsignedInt((uint)this._station); + dos.WriteUnsignedShort((ushort)this._standardQuantity); + dos.WriteUnsignedShort((ushort)this._maximumQuantity); + dos.WriteUnsignedInt((uint)this._standardQuantityReloadTime); + dos.WriteUnsignedInt((uint)this._maximumQuantityReloadTime); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._expendable.Unmarshal(dis); + this._station = dis.ReadUnsignedInt(); + this._standardQuantity = dis.ReadUnsignedShort(); + this._maximumQuantity = dis.ReadUnsignedShort(); + this._standardQuantityReloadTime = dis.ReadUnsignedInt(); + this._maximumQuantityReloadTime = dis.ReadUnsignedInt(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine(""); + this._expendable.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._station.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._standardQuantity.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._maximumQuantity.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._standardQuantityReloadTime.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._maximumQuantityReloadTime.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ExpendableReload; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ExpendableReload obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (!this._expendable.Equals(obj._expendable)) + { + ivarsEqual = false; + } + + if (this._station != obj._station) + { + ivarsEqual = false; + } + + if (this._standardQuantity != obj._standardQuantity) + { + ivarsEqual = false; + } + + if (this._maximumQuantity != obj._maximumQuantity) + { + ivarsEqual = false; + } + + if (this._standardQuantityReloadTime != obj._standardQuantityReloadTime) + { + ivarsEqual = false; + } + + if (this._maximumQuantityReloadTime != obj._maximumQuantityReloadTime) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._expendable.GetHashCode(); + result = GenerateHash(result) ^ this._station.GetHashCode(); + result = GenerateHash(result) ^ this._standardQuantity.GetHashCode(); + result = GenerateHash(result) ^ this._maximumQuantity.GetHashCode(); + result = GenerateHash(result) ^ this._standardQuantityReloadTime.GetHashCode(); + result = GenerateHash(result) ^ this._maximumQuantityReloadTime.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/ExplosionDescriptor.cs b/Libs/CSharpDis7/ExplosionDescriptor.cs new file mode 100644 index 0000000..41e58e6 --- /dev/null +++ b/Libs/CSharpDis7/ExplosionDescriptor.cs @@ -0,0 +1,376 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Explosion of a non-munition. Section 6.2.20.3 + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityType))] + public partial class ExplosionDescriptor + { + /// + /// Type of the object that exploded. See 6.2.30 + /// + private EntityType _explodingObject = new EntityType(); + + /// + /// Material that exploded. Can be grain dust, tnt, gasoline, etc. + /// + private ushort _explosiveMaterial; + + /// + /// padding + /// + private ushort _padding; + + /// + /// Force of explosion, in equivalent KG of TNT + /// + private float _explosiveForce; + + /// + /// Initializes a new instance of the class. + /// + public ExplosionDescriptor() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ExplosionDescriptor left, ExplosionDescriptor right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ExplosionDescriptor left, ExplosionDescriptor right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += this._explodingObject.GetMarshalledSize(); // this._explodingObject + marshalSize += 2; // this._explosiveMaterial + marshalSize += 2; // this._padding + marshalSize += 4; // this._explosiveForce + return marshalSize; + } + + /// + /// Gets or sets the Type of the object that exploded. See 6.2.30 + /// + [XmlElement(Type = typeof(EntityType), ElementName = "explodingObject")] + public EntityType ExplodingObject + { + get + { + return this._explodingObject; + } + + set + { + this._explodingObject = value; + } + } + + /// + /// Gets or sets the Material that exploded. Can be grain dust, tnt, gasoline, etc. + /// + [XmlElement(Type = typeof(ushort), ElementName = "explosiveMaterial")] + public ushort ExplosiveMaterial + { + get + { + return this._explosiveMaterial; + } + + set + { + this._explosiveMaterial = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(ushort), ElementName = "padding")] + public ushort Padding + { + get + { + return this._padding; + } + + set + { + this._padding = value; + } + } + + /// + /// Gets or sets the Force of explosion, in equivalent KG of TNT + /// + [XmlElement(Type = typeof(float), ElementName = "explosiveForce")] + public float ExplosiveForce + { + get + { + return this._explosiveForce; + } + + set + { + this._explosiveForce = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + this._explodingObject.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._explosiveMaterial); + dos.WriteUnsignedShort((ushort)this._padding); + dos.WriteFloat((float)this._explosiveForce); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._explodingObject.Unmarshal(dis); + this._explosiveMaterial = dis.ReadUnsignedShort(); + this._padding = dis.ReadUnsignedShort(); + this._explosiveForce = dis.ReadFloat(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine(""); + this._explodingObject.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._explosiveMaterial.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._explosiveForce.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ExplosionDescriptor; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ExplosionDescriptor obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (!this._explodingObject.Equals(obj._explodingObject)) + { + ivarsEqual = false; + } + + if (this._explosiveMaterial != obj._explosiveMaterial) + { + ivarsEqual = false; + } + + if (this._padding != obj._padding) + { + ivarsEqual = false; + } + + if (this._explosiveForce != obj._explosiveForce) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._explodingObject.GetHashCode(); + result = GenerateHash(result) ^ this._explosiveMaterial.GetHashCode(); + result = GenerateHash(result) ^ this._padding.GetHashCode(); + result = GenerateHash(result) ^ this._explosiveForce.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/FalseTargetsAttribute.cs b/Libs/CSharpDis7/FalseTargetsAttribute.cs new file mode 100644 index 0000000..35534c4 --- /dev/null +++ b/Libs/CSharpDis7/FalseTargetsAttribute.cs @@ -0,0 +1,609 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// 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 + /// + [Serializable] + [XmlRoot] + public partial class FalseTargetsAttribute + { + private uint _recordType = 3502; + + private ushort _recordLength = 40; + + private ushort _padding; + + private byte _emitterNumber; + + private byte _beamNumber; + + private byte _stateIndicator; + + private byte _padding2; + + private float _falseTargetCount; + + private float _walkSpeed; + + private float _walkAcceleration; + + private float _maximumWalkDistance; + + private float _keepTime; + + private float _echoSpacing; + + private uint _padding3; + + /// + /// Initializes a new instance of the class. + /// + public FalseTargetsAttribute() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(FalseTargetsAttribute left, FalseTargetsAttribute right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(FalseTargetsAttribute left, FalseTargetsAttribute right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._recordType + marshalSize += 2; // this._recordLength + marshalSize += 2; // this._padding + marshalSize += 1; // this._emitterNumber + marshalSize += 1; // this._beamNumber + marshalSize += 1; // this._stateIndicator + marshalSize += 1; // this._padding2 + marshalSize += 4; // this._falseTargetCount + marshalSize += 4; // this._walkSpeed + marshalSize += 4; // this._walkAcceleration + marshalSize += 4; // this._maximumWalkDistance + marshalSize += 4; // this._keepTime + marshalSize += 4; // this._echoSpacing + marshalSize += 4; // this._padding3 + return marshalSize; + } + + [XmlElement(Type = typeof(uint), ElementName = "recordType")] + public uint RecordType + { + get + { + return this._recordType; + } + + set + { + this._recordType = value; + } + } + + [XmlElement(Type = typeof(ushort), ElementName = "recordLength")] + public ushort RecordLength + { + get + { + return this._recordLength; + } + + set + { + this._recordLength = value; + } + } + + [XmlElement(Type = typeof(ushort), ElementName = "padding")] + public ushort Padding + { + get + { + return this._padding; + } + + set + { + this._padding = value; + } + } + + [XmlElement(Type = typeof(byte), ElementName = "emitterNumber")] + public byte EmitterNumber + { + get + { + return this._emitterNumber; + } + + set + { + this._emitterNumber = value; + } + } + + [XmlElement(Type = typeof(byte), ElementName = "beamNumber")] + public byte BeamNumber + { + get + { + return this._beamNumber; + } + + set + { + this._beamNumber = value; + } + } + + [XmlElement(Type = typeof(byte), ElementName = "stateIndicator")] + public byte StateIndicator + { + get + { + return this._stateIndicator; + } + + set + { + this._stateIndicator = value; + } + } + + [XmlElement(Type = typeof(byte), ElementName = "padding2")] + public byte Padding2 + { + get + { + return this._padding2; + } + + set + { + this._padding2 = value; + } + } + + [XmlElement(Type = typeof(float), ElementName = "falseTargetCount")] + public float FalseTargetCount + { + get + { + return this._falseTargetCount; + } + + set + { + this._falseTargetCount = value; + } + } + + [XmlElement(Type = typeof(float), ElementName = "walkSpeed")] + public float WalkSpeed + { + get + { + return this._walkSpeed; + } + + set + { + this._walkSpeed = value; + } + } + + [XmlElement(Type = typeof(float), ElementName = "walkAcceleration")] + public float WalkAcceleration + { + get + { + return this._walkAcceleration; + } + + set + { + this._walkAcceleration = value; + } + } + + [XmlElement(Type = typeof(float), ElementName = "maximumWalkDistance")] + public float MaximumWalkDistance + { + get + { + return this._maximumWalkDistance; + } + + set + { + this._maximumWalkDistance = value; + } + } + + [XmlElement(Type = typeof(float), ElementName = "keepTime")] + public float KeepTime + { + get + { + return this._keepTime; + } + + set + { + this._keepTime = value; + } + } + + [XmlElement(Type = typeof(float), ElementName = "echoSpacing")] + public float EchoSpacing + { + get + { + return this._echoSpacing; + } + + set + { + this._echoSpacing = value; + } + } + + [XmlElement(Type = typeof(uint), ElementName = "padding3")] + public uint Padding3 + { + get + { + return this._padding3; + } + + set + { + this._padding3 = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._recordType); + dos.WriteUnsignedShort((ushort)this._recordLength); + dos.WriteUnsignedShort((ushort)this._padding); + dos.WriteUnsignedByte((byte)this._emitterNumber); + dos.WriteUnsignedByte((byte)this._beamNumber); + dos.WriteUnsignedByte((byte)this._stateIndicator); + dos.WriteUnsignedByte((byte)this._padding2); + dos.WriteFloat((float)this._falseTargetCount); + dos.WriteFloat((float)this._walkSpeed); + dos.WriteFloat((float)this._walkAcceleration); + dos.WriteFloat((float)this._maximumWalkDistance); + dos.WriteFloat((float)this._keepTime); + dos.WriteFloat((float)this._echoSpacing); + dos.WriteUnsignedInt((uint)this._padding3); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._recordType = dis.ReadUnsignedInt(); + this._recordLength = dis.ReadUnsignedShort(); + this._padding = dis.ReadUnsignedShort(); + this._emitterNumber = dis.ReadUnsignedByte(); + this._beamNumber = dis.ReadUnsignedByte(); + this._stateIndicator = dis.ReadUnsignedByte(); + this._padding2 = dis.ReadUnsignedByte(); + this._falseTargetCount = dis.ReadFloat(); + this._walkSpeed = dis.ReadFloat(); + this._walkAcceleration = dis.ReadFloat(); + this._maximumWalkDistance = dis.ReadFloat(); + this._keepTime = dis.ReadFloat(); + this._echoSpacing = dis.ReadFloat(); + this._padding3 = dis.ReadUnsignedInt(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._recordType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._recordLength.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._emitterNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._beamNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._stateIndicator.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._falseTargetCount.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._walkSpeed.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._walkAcceleration.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._maximumWalkDistance.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._keepTime.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._echoSpacing.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding3.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as FalseTargetsAttribute; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(FalseTargetsAttribute obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._recordType != obj._recordType) + { + ivarsEqual = false; + } + + if (this._recordLength != obj._recordLength) + { + ivarsEqual = false; + } + + if (this._padding != obj._padding) + { + ivarsEqual = false; + } + + if (this._emitterNumber != obj._emitterNumber) + { + ivarsEqual = false; + } + + if (this._beamNumber != obj._beamNumber) + { + ivarsEqual = false; + } + + if (this._stateIndicator != obj._stateIndicator) + { + ivarsEqual = false; + } + + if (this._padding2 != obj._padding2) + { + ivarsEqual = false; + } + + if (this._falseTargetCount != obj._falseTargetCount) + { + ivarsEqual = false; + } + + if (this._walkSpeed != obj._walkSpeed) + { + ivarsEqual = false; + } + + if (this._walkAcceleration != obj._walkAcceleration) + { + ivarsEqual = false; + } + + if (this._maximumWalkDistance != obj._maximumWalkDistance) + { + ivarsEqual = false; + } + + if (this._keepTime != obj._keepTime) + { + ivarsEqual = false; + } + + if (this._echoSpacing != obj._echoSpacing) + { + ivarsEqual = false; + } + + if (this._padding3 != obj._padding3) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._recordType.GetHashCode(); + result = GenerateHash(result) ^ this._recordLength.GetHashCode(); + result = GenerateHash(result) ^ this._padding.GetHashCode(); + result = GenerateHash(result) ^ this._emitterNumber.GetHashCode(); + result = GenerateHash(result) ^ this._beamNumber.GetHashCode(); + result = GenerateHash(result) ^ this._stateIndicator.GetHashCode(); + result = GenerateHash(result) ^ this._padding2.GetHashCode(); + result = GenerateHash(result) ^ this._falseTargetCount.GetHashCode(); + result = GenerateHash(result) ^ this._walkSpeed.GetHashCode(); + result = GenerateHash(result) ^ this._walkAcceleration.GetHashCode(); + result = GenerateHash(result) ^ this._maximumWalkDistance.GetHashCode(); + result = GenerateHash(result) ^ this._keepTime.GetHashCode(); + result = GenerateHash(result) ^ this._echoSpacing.GetHashCode(); + result = GenerateHash(result) ^ this._padding3.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/FastEntityStatePdu.cs b/Libs/CSharpDis7/FastEntityStatePdu.cs new file mode 100644 index 0000000..4c45e08 --- /dev/null +++ b/Libs/CSharpDis7/FastEntityStatePdu.cs @@ -0,0 +1,1590 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Represents the postion and state of one entity in the world. This is identical in function to entity state pdu, but generates less garbage to collect in the Java world. Section 7.2.2. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(VariableParameter))] + public partial class FastEntityStatePdu : EntityInformationFamilyPdu, IEquatable + { + /// + /// The site ID + /// + private ushort _site; + + /// + /// The application ID + /// + private ushort _application; + + /// + /// the entity ID + /// + private ushort _entity; + + /// + /// what force this entity is affiliated with, eg red, blue, neutral, etc + /// + private byte _forceId; + + /// + /// How many variable (nee articulation) parameters are in the variable length list + /// + private byte _numberOfVariableParameters; + + /// + /// Kind of entity + /// + private byte _entityKind; + + /// + /// Domain of entity (air, surface, subsurface, space, etc) + /// + private byte _domain; + + /// + /// country to which the design of the entity is attributed + /// + private ushort _country; + + /// + /// category of entity + /// + private byte _category; + + /// + /// subcategory of entity + /// + private byte _subcategory; + + /// + /// specific info based on subcategory field + /// + private byte _specific; + + private byte _extra; + + /// + /// Kind of entity + /// + private byte _altEntityKind; + + /// + /// Domain of entity (air, surface, subsurface, space, etc) + /// + private byte _altDomain; + + /// + /// country to which the design of the entity is attributed + /// + private ushort _altCountry; + + /// + /// category of entity + /// + private byte _altCategory; + + /// + /// subcategory of entity + /// + private byte _altSubcategory; + + /// + /// specific info based on subcategory field + /// + private byte _altSpecific; + + private byte _altExtra; + + /// + /// X velo + /// + private float _xVelocity; + + /// + /// y Value + /// + private float _yVelocity; + + /// + /// Z value + /// + private float _zVelocity; + + /// + /// X value + /// + private double _xLocation; + + /// + /// y Value + /// + private double _yLocation; + + /// + /// Z value + /// + private double _zLocation; + + private float _psi; + + private float _theta; + + private float _phi; + + /// + /// a series of bit flags that are used to help draw the entity, such as smoking, on fire, etc. + /// + private int _entityAppearance; + + /// + /// enumeration of what dead reckoning algorighm to use + /// + private byte _deadReckoningAlgorithm; + + /// + /// other parameters to use in the dead reckoning algorithm + /// + private byte[] _otherParameters = new byte[15]; + + /// + /// X value + /// + private float _xAcceleration; + + /// + /// y Value + /// + private float _yAcceleration; + + /// + /// Z value + /// + private float _zAcceleration; + + /// + /// X value + /// + private float _xAngularVelocity; + + /// + /// y Value + /// + private float _yAngularVelocity; + + /// + /// Z value + /// + private float _zAngularVelocity; + + /// + /// characters that can be used for debugging, or to draw unique strings on the side of entities in the world + /// + private byte[] _marking = new byte[12]; + + /// + /// a series of bit flags + /// + private int _capabilities; + + /// + /// variable length list of variable parameters. In earlier versions of DIS these were known as articulation parameters + /// + private List _variableParameters = new List(); + + /// + /// Initializes a new instance of the class. + /// + public FastEntityStatePdu() + { + PduType = (byte)1; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(FastEntityStatePdu left, FastEntityStatePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(FastEntityStatePdu left, FastEntityStatePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 2; // this._site + marshalSize += 2; // this._application + marshalSize += 2; // this._entity + marshalSize += 1; // this._forceId + marshalSize += 1; // this._numberOfVariableParameters + marshalSize += 1; // this._entityKind + marshalSize += 1; // this._domain + marshalSize += 2; // this._country + marshalSize += 1; // this._category + marshalSize += 1; // this._subcategory + marshalSize += 1; // this._specific + marshalSize += 1; // this._extra + marshalSize += 1; // this._altEntityKind + marshalSize += 1; // this._altDomain + marshalSize += 2; // this._altCountry + marshalSize += 1; // this._altCategory + marshalSize += 1; // this._altSubcategory + marshalSize += 1; // this._altSpecific + marshalSize += 1; // this._altExtra + marshalSize += 4; // this._xVelocity + marshalSize += 4; // this._yVelocity + marshalSize += 4; // this._zVelocity + marshalSize += 8; // this._xLocation + marshalSize += 8; // this._yLocation + marshalSize += 8; // this._zLocation + marshalSize += 4; // this._psi + marshalSize += 4; // this._theta + marshalSize += 4; // this._phi + marshalSize += 4; // this._entityAppearance + marshalSize += 1; // this._deadReckoningAlgorithm + marshalSize += 15 * 1; // _otherParameters + marshalSize += 4; // this._xAcceleration + marshalSize += 4; // this._yAcceleration + marshalSize += 4; // this._zAcceleration + marshalSize += 4; // this._xAngularVelocity + marshalSize += 4; // this._yAngularVelocity + marshalSize += 4; // this._zAngularVelocity + marshalSize += 12 * 1; // _marking + marshalSize += 4; // this._capabilities + for (int idx = 0; idx < this._variableParameters.Count; idx++) + { + VariableParameter listElement = (VariableParameter)this._variableParameters[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the The site ID + /// + [XmlElement(Type = typeof(ushort), ElementName = "site")] + public ushort Site + { + get + { + return this._site; + } + + set + { + this._site = value; + } + } + + /// + /// Gets or sets the The application ID + /// + [XmlElement(Type = typeof(ushort), ElementName = "application")] + public ushort Application + { + get + { + return this._application; + } + + set + { + this._application = value; + } + } + + /// + /// Gets or sets the the entity ID + /// + [XmlElement(Type = typeof(ushort), ElementName = "entity")] + public ushort Entity + { + get + { + return this._entity; + } + + set + { + this._entity = value; + } + } + + /// + /// Gets or sets the what force this entity is affiliated with, eg red, blue, neutral, etc + /// + [XmlElement(Type = typeof(byte), ElementName = "forceId")] + public byte ForceId + { + get + { + return this._forceId; + } + + set + { + this._forceId = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfVariableParameters method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfVariableParameters")] + public byte NumberOfVariableParameters + { + get + { + return this._numberOfVariableParameters; + } + + set + { + this._numberOfVariableParameters = value; + } + } + + /// + /// Gets or sets the Kind of entity + /// + [XmlElement(Type = typeof(byte), ElementName = "entityKind")] + public byte EntityKind + { + get + { + return this._entityKind; + } + + set + { + this._entityKind = value; + } + } + + /// + /// Gets or sets the Domain of entity (air, surface, subsurface, space, etc) + /// + [XmlElement(Type = typeof(byte), ElementName = "domain")] + public byte Domain + { + get + { + return this._domain; + } + + set + { + this._domain = value; + } + } + + /// + /// Gets or sets the country to which the design of the entity is attributed + /// + [XmlElement(Type = typeof(ushort), ElementName = "country")] + public ushort Country + { + get + { + return this._country; + } + + set + { + this._country = value; + } + } + + /// + /// Gets or sets the category of entity + /// + [XmlElement(Type = typeof(byte), ElementName = "category")] + public byte Category + { + get + { + return this._category; + } + + set + { + this._category = value; + } + } + + /// + /// Gets or sets the subcategory of entity + /// + [XmlElement(Type = typeof(byte), ElementName = "subcategory")] + public byte Subcategory + { + get + { + return this._subcategory; + } + + set + { + this._subcategory = value; + } + } + + /// + /// Gets or sets the specific info based on subcategory field + /// + [XmlElement(Type = typeof(byte), ElementName = "specific")] + public byte Specific + { + get + { + return this._specific; + } + + set + { + this._specific = value; + } + } + + [XmlElement(Type = typeof(byte), ElementName = "extra")] + public byte Extra + { + get + { + return this._extra; + } + + set + { + this._extra = value; + } + } + + /// + /// Gets or sets the Kind of entity + /// + [XmlElement(Type = typeof(byte), ElementName = "altEntityKind")] + public byte AltEntityKind + { + get + { + return this._altEntityKind; + } + + set + { + this._altEntityKind = value; + } + } + + /// + /// Gets or sets the Domain of entity (air, surface, subsurface, space, etc) + /// + [XmlElement(Type = typeof(byte), ElementName = "altDomain")] + public byte AltDomain + { + get + { + return this._altDomain; + } + + set + { + this._altDomain = value; + } + } + + /// + /// Gets or sets the country to which the design of the entity is attributed + /// + [XmlElement(Type = typeof(ushort), ElementName = "altCountry")] + public ushort AltCountry + { + get + { + return this._altCountry; + } + + set + { + this._altCountry = value; + } + } + + /// + /// Gets or sets the category of entity + /// + [XmlElement(Type = typeof(byte), ElementName = "altCategory")] + public byte AltCategory + { + get + { + return this._altCategory; + } + + set + { + this._altCategory = value; + } + } + + /// + /// Gets or sets the subcategory of entity + /// + [XmlElement(Type = typeof(byte), ElementName = "altSubcategory")] + public byte AltSubcategory + { + get + { + return this._altSubcategory; + } + + set + { + this._altSubcategory = value; + } + } + + /// + /// Gets or sets the specific info based on subcategory field + /// + [XmlElement(Type = typeof(byte), ElementName = "altSpecific")] + public byte AltSpecific + { + get + { + return this._altSpecific; + } + + set + { + this._altSpecific = value; + } + } + + [XmlElement(Type = typeof(byte), ElementName = "altExtra")] + public byte AltExtra + { + get + { + return this._altExtra; + } + + set + { + this._altExtra = value; + } + } + + /// + /// Gets or sets the X velo + /// + [XmlElement(Type = typeof(float), ElementName = "xVelocity")] + public float XVelocity + { + get + { + return this._xVelocity; + } + + set + { + this._xVelocity = value; + } + } + + /// + /// Gets or sets the y Value + /// + [XmlElement(Type = typeof(float), ElementName = "yVelocity")] + public float YVelocity + { + get + { + return this._yVelocity; + } + + set + { + this._yVelocity = value; + } + } + + /// + /// Gets or sets the Z value + /// + [XmlElement(Type = typeof(float), ElementName = "zVelocity")] + public float ZVelocity + { + get + { + return this._zVelocity; + } + + set + { + this._zVelocity = value; + } + } + + /// + /// Gets or sets the X value + /// + [XmlElement(Type = typeof(double), ElementName = "xLocation")] + public double XLocation + { + get + { + return this._xLocation; + } + + set + { + this._xLocation = value; + } + } + + /// + /// Gets or sets the y Value + /// + [XmlElement(Type = typeof(double), ElementName = "yLocation")] + public double YLocation + { + get + { + return this._yLocation; + } + + set + { + this._yLocation = value; + } + } + + /// + /// Gets or sets the Z value + /// + [XmlElement(Type = typeof(double), ElementName = "zLocation")] + public double ZLocation + { + get + { + return this._zLocation; + } + + set + { + this._zLocation = value; + } + } + + [XmlElement(Type = typeof(float), ElementName = "psi")] + public float Psi + { + get + { + return this._psi; + } + + set + { + this._psi = value; + } + } + + [XmlElement(Type = typeof(float), ElementName = "theta")] + public float Theta + { + get + { + return this._theta; + } + + set + { + this._theta = value; + } + } + + [XmlElement(Type = typeof(float), ElementName = "phi")] + public float Phi + { + get + { + return this._phi; + } + + set + { + this._phi = value; + } + } + + /// + /// Gets or sets the a series of bit flags that are used to help draw the entity, such as smoking, on fire, etc. + /// + [XmlElement(Type = typeof(int), ElementName = "entityAppearance")] + public int EntityAppearance + { + get + { + return this._entityAppearance; + } + + set + { + this._entityAppearance = value; + } + } + + /// + /// Gets or sets the enumeration of what dead reckoning algorighm to use + /// + [XmlElement(Type = typeof(byte), ElementName = "deadReckoningAlgorithm")] + public byte DeadReckoningAlgorithm + { + get + { + return this._deadReckoningAlgorithm; + } + + set + { + this._deadReckoningAlgorithm = value; + } + } + + /// + /// Gets or sets the other parameters to use in the dead reckoning algorithm + /// + [XmlArray(ElementName = "otherParameters")] + public byte[] OtherParameters + { + get + { + return this._otherParameters; + } + + set + { + this._otherParameters = value; + } +} + + /// + /// Gets or sets the X value + /// + [XmlElement(Type = typeof(float), ElementName = "xAcceleration")] + public float XAcceleration + { + get + { + return this._xAcceleration; + } + + set + { + this._xAcceleration = value; + } + } + + /// + /// Gets or sets the y Value + /// + [XmlElement(Type = typeof(float), ElementName = "yAcceleration")] + public float YAcceleration + { + get + { + return this._yAcceleration; + } + + set + { + this._yAcceleration = value; + } + } + + /// + /// Gets or sets the Z value + /// + [XmlElement(Type = typeof(float), ElementName = "zAcceleration")] + public float ZAcceleration + { + get + { + return this._zAcceleration; + } + + set + { + this._zAcceleration = value; + } + } + + /// + /// Gets or sets the X value + /// + [XmlElement(Type = typeof(float), ElementName = "xAngularVelocity")] + public float XAngularVelocity + { + get + { + return this._xAngularVelocity; + } + + set + { + this._xAngularVelocity = value; + } + } + + /// + /// Gets or sets the y Value + /// + [XmlElement(Type = typeof(float), ElementName = "yAngularVelocity")] + public float YAngularVelocity + { + get + { + return this._yAngularVelocity; + } + + set + { + this._yAngularVelocity = value; + } + } + + /// + /// Gets or sets the Z value + /// + [XmlElement(Type = typeof(float), ElementName = "zAngularVelocity")] + public float ZAngularVelocity + { + get + { + return this._zAngularVelocity; + } + + set + { + this._zAngularVelocity = value; + } + } + + /// + /// Gets or sets the characters that can be used for debugging, or to draw unique strings on the side of entities in the world + /// + [XmlArray(ElementName = "marking")] + public byte[] Marking + { + get + { + return this._marking; + } + + set + { + this._marking = value; + } +} + + /// + /// Gets or sets the a series of bit flags + /// + [XmlElement(Type = typeof(int), ElementName = "capabilities")] + public int Capabilities + { + get + { + return this._capabilities; + } + + set + { + this._capabilities = value; + } + } + + /// + /// Gets or sets the variable length list of variable parameters. In earlier versions of DIS these were known as articulation parameters + /// + [XmlElement(ElementName = "variableParametersList", Type = typeof(List))] + public List VariableParameters + { + get + { + return this._variableParameters; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._site); + dos.WriteUnsignedShort((ushort)this._application); + dos.WriteUnsignedShort((ushort)this._entity); + dos.WriteUnsignedByte((byte)this._forceId); + dos.WriteByte((byte)this._variableParameters.Count); + dos.WriteUnsignedByte((byte)this._entityKind); + dos.WriteUnsignedByte((byte)this._domain); + dos.WriteUnsignedShort((ushort)this._country); + dos.WriteUnsignedByte((byte)this._category); + dos.WriteUnsignedByte((byte)this._subcategory); + dos.WriteUnsignedByte((byte)this._specific); + dos.WriteUnsignedByte((byte)this._extra); + dos.WriteUnsignedByte((byte)this._altEntityKind); + dos.WriteUnsignedByte((byte)this._altDomain); + dos.WriteUnsignedShort((ushort)this._altCountry); + dos.WriteUnsignedByte((byte)this._altCategory); + dos.WriteUnsignedByte((byte)this._altSubcategory); + dos.WriteUnsignedByte((byte)this._altSpecific); + dos.WriteUnsignedByte((byte)this._altExtra); + dos.WriteFloat((float)this._xVelocity); + dos.WriteFloat((float)this._yVelocity); + dos.WriteFloat((float)this._zVelocity); + dos.WriteDouble((double)this._xLocation); + dos.WriteDouble((double)this._yLocation); + dos.WriteDouble((double)this._zLocation); + dos.WriteFloat((float)this._psi); + dos.WriteFloat((float)this._theta); + dos.WriteFloat((float)this._phi); + dos.WriteInt((int)this._entityAppearance); + dos.WriteUnsignedByte((byte)this._deadReckoningAlgorithm); + + for (int idx = 0; idx < this._otherParameters.Length; idx++) + { + dos.WriteByte(this._otherParameters[idx]); + } + dos.WriteFloat((float)this._xAcceleration); + dos.WriteFloat((float)this._yAcceleration); + dos.WriteFloat((float)this._zAcceleration); + dos.WriteFloat((float)this._xAngularVelocity); + dos.WriteFloat((float)this._yAngularVelocity); + dos.WriteFloat((float)this._zAngularVelocity); + + for (int idx = 0; idx < this._marking.Length; idx++) + { + dos.WriteByte(this._marking[idx]); + } + dos.WriteInt((int)this._capabilities); + + for (int idx = 0; idx < this._variableParameters.Count; idx++) + { + VariableParameter aVariableParameter = (VariableParameter)this._variableParameters[idx]; + aVariableParameter.Marshal(dos); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._site = dis.ReadUnsignedShort(); + this._application = dis.ReadUnsignedShort(); + this._entity = dis.ReadUnsignedShort(); + this._forceId = dis.ReadUnsignedByte(); + this._numberOfVariableParameters = dis.ReadByte(); + this._entityKind = dis.ReadUnsignedByte(); + this._domain = dis.ReadUnsignedByte(); + this._country = dis.ReadUnsignedShort(); + this._category = dis.ReadUnsignedByte(); + this._subcategory = dis.ReadUnsignedByte(); + this._specific = dis.ReadUnsignedByte(); + this._extra = dis.ReadUnsignedByte(); + this._altEntityKind = dis.ReadUnsignedByte(); + this._altDomain = dis.ReadUnsignedByte(); + this._altCountry = dis.ReadUnsignedShort(); + this._altCategory = dis.ReadUnsignedByte(); + this._altSubcategory = dis.ReadUnsignedByte(); + this._altSpecific = dis.ReadUnsignedByte(); + this._altExtra = dis.ReadUnsignedByte(); + this._xVelocity = dis.ReadFloat(); + this._yVelocity = dis.ReadFloat(); + this._zVelocity = dis.ReadFloat(); + this._xLocation = dis.ReadDouble(); + this._yLocation = dis.ReadDouble(); + this._zLocation = dis.ReadDouble(); + this._psi = dis.ReadFloat(); + this._theta = dis.ReadFloat(); + this._phi = dis.ReadFloat(); + this._entityAppearance = dis.ReadInt(); + this._deadReckoningAlgorithm = dis.ReadUnsignedByte(); + for (int idx = 0; idx < this._otherParameters.Length; idx++) + { + this._otherParameters[idx] = dis.ReadByte(); + } + this._xAcceleration = dis.ReadFloat(); + this._yAcceleration = dis.ReadFloat(); + this._zAcceleration = dis.ReadFloat(); + this._xAngularVelocity = dis.ReadFloat(); + this._yAngularVelocity = dis.ReadFloat(); + this._zAngularVelocity = dis.ReadFloat(); + for (int idx = 0; idx < this._marking.Length; idx++) + { + this._marking[idx] = dis.ReadByte(); + } + this._capabilities = dis.ReadInt(); + for (int idx = 0; idx < this.NumberOfVariableParameters; idx++) + { + VariableParameter anX = new VariableParameter(); + anX.Unmarshal(dis); + this._variableParameters.Add(anX); + }; + + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._site.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._application.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._entity.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._forceId.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableParameters.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._entityKind.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._domain.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._country.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._category.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._subcategory.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._specific.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._extra.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._altEntityKind.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._altDomain.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._altCountry.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._altCategory.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._altSubcategory.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._altSpecific.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._altExtra.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._xVelocity.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._yVelocity.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._zVelocity.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._xLocation.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._yLocation.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._zLocation.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._psi.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._theta.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._phi.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._entityAppearance.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._deadReckoningAlgorithm.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._otherParameters.Length; idx++) + { + sb.AppendLine("" + this._otherParameters[idx] + ""); + } + + sb.AppendLine("" + this._xAcceleration.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._yAcceleration.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._zAcceleration.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._xAngularVelocity.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._yAngularVelocity.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._zAngularVelocity.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._marking.Length; idx++) + { + sb.AppendLine("" + this._marking[idx] + ""); + } + + sb.AppendLine("" + this._capabilities.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._variableParameters.Count; idx++) + { + sb.AppendLine(""); + VariableParameter aVariableParameter = (VariableParameter)this._variableParameters[idx]; + aVariableParameter.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as FastEntityStatePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(FastEntityStatePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._site != obj._site) + { + ivarsEqual = false; + } + + if (this._application != obj._application) + { + ivarsEqual = false; + } + + if (this._entity != obj._entity) + { + ivarsEqual = false; + } + + if (this._forceId != obj._forceId) + { + ivarsEqual = false; + } + + if (this._numberOfVariableParameters != obj._numberOfVariableParameters) + { + ivarsEqual = false; + } + + if (this._entityKind != obj._entityKind) + { + ivarsEqual = false; + } + + if (this._domain != obj._domain) + { + ivarsEqual = false; + } + + if (this._country != obj._country) + { + ivarsEqual = false; + } + + if (this._category != obj._category) + { + ivarsEqual = false; + } + + if (this._subcategory != obj._subcategory) + { + ivarsEqual = false; + } + + if (this._specific != obj._specific) + { + ivarsEqual = false; + } + + if (this._extra != obj._extra) + { + ivarsEqual = false; + } + + if (this._altEntityKind != obj._altEntityKind) + { + ivarsEqual = false; + } + + if (this._altDomain != obj._altDomain) + { + ivarsEqual = false; + } + + if (this._altCountry != obj._altCountry) + { + ivarsEqual = false; + } + + if (this._altCategory != obj._altCategory) + { + ivarsEqual = false; + } + + if (this._altSubcategory != obj._altSubcategory) + { + ivarsEqual = false; + } + + if (this._altSpecific != obj._altSpecific) + { + ivarsEqual = false; + } + + if (this._altExtra != obj._altExtra) + { + ivarsEqual = false; + } + + if (this._xVelocity != obj._xVelocity) + { + ivarsEqual = false; + } + + if (this._yVelocity != obj._yVelocity) + { + ivarsEqual = false; + } + + if (this._zVelocity != obj._zVelocity) + { + ivarsEqual = false; + } + + if (this._xLocation != obj._xLocation) + { + ivarsEqual = false; + } + + if (this._yLocation != obj._yLocation) + { + ivarsEqual = false; + } + + if (this._zLocation != obj._zLocation) + { + ivarsEqual = false; + } + + if (this._psi != obj._psi) + { + ivarsEqual = false; + } + + if (this._theta != obj._theta) + { + ivarsEqual = false; + } + + if (this._phi != obj._phi) + { + ivarsEqual = false; + } + + if (this._entityAppearance != obj._entityAppearance) + { + ivarsEqual = false; + } + + if (this._deadReckoningAlgorithm != obj._deadReckoningAlgorithm) + { + ivarsEqual = false; + } + + if (obj._otherParameters.Length != 15) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < 15; idx++) + { + if (this._otherParameters[idx] != obj._otherParameters[idx]) + { + ivarsEqual = false; + } + } + } + + if (this._xAcceleration != obj._xAcceleration) + { + ivarsEqual = false; + } + + if (this._yAcceleration != obj._yAcceleration) + { + ivarsEqual = false; + } + + if (this._zAcceleration != obj._zAcceleration) + { + ivarsEqual = false; + } + + if (this._xAngularVelocity != obj._xAngularVelocity) + { + ivarsEqual = false; + } + + if (this._yAngularVelocity != obj._yAngularVelocity) + { + ivarsEqual = false; + } + + if (this._zAngularVelocity != obj._zAngularVelocity) + { + ivarsEqual = false; + } + + if (obj._marking.Length != 12) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < 12; idx++) + { + if (this._marking[idx] != obj._marking[idx]) + { + ivarsEqual = false; + } + } + } + + if (this._capabilities != obj._capabilities) + { + ivarsEqual = false; + } + + if (this._variableParameters.Count != obj._variableParameters.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._variableParameters.Count; idx++) + { + if (!this._variableParameters[idx].Equals(obj._variableParameters[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._site.GetHashCode(); + result = GenerateHash(result) ^ this._application.GetHashCode(); + result = GenerateHash(result) ^ this._entity.GetHashCode(); + result = GenerateHash(result) ^ this._forceId.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfVariableParameters.GetHashCode(); + result = GenerateHash(result) ^ this._entityKind.GetHashCode(); + result = GenerateHash(result) ^ this._domain.GetHashCode(); + result = GenerateHash(result) ^ this._country.GetHashCode(); + result = GenerateHash(result) ^ this._category.GetHashCode(); + result = GenerateHash(result) ^ this._subcategory.GetHashCode(); + result = GenerateHash(result) ^ this._specific.GetHashCode(); + result = GenerateHash(result) ^ this._extra.GetHashCode(); + result = GenerateHash(result) ^ this._altEntityKind.GetHashCode(); + result = GenerateHash(result) ^ this._altDomain.GetHashCode(); + result = GenerateHash(result) ^ this._altCountry.GetHashCode(); + result = GenerateHash(result) ^ this._altCategory.GetHashCode(); + result = GenerateHash(result) ^ this._altSubcategory.GetHashCode(); + result = GenerateHash(result) ^ this._altSpecific.GetHashCode(); + result = GenerateHash(result) ^ this._altExtra.GetHashCode(); + result = GenerateHash(result) ^ this._xVelocity.GetHashCode(); + result = GenerateHash(result) ^ this._yVelocity.GetHashCode(); + result = GenerateHash(result) ^ this._zVelocity.GetHashCode(); + result = GenerateHash(result) ^ this._xLocation.GetHashCode(); + result = GenerateHash(result) ^ this._yLocation.GetHashCode(); + result = GenerateHash(result) ^ this._zLocation.GetHashCode(); + result = GenerateHash(result) ^ this._psi.GetHashCode(); + result = GenerateHash(result) ^ this._theta.GetHashCode(); + result = GenerateHash(result) ^ this._phi.GetHashCode(); + result = GenerateHash(result) ^ this._entityAppearance.GetHashCode(); + result = GenerateHash(result) ^ this._deadReckoningAlgorithm.GetHashCode(); + + for (int idx = 0; idx < 15; idx++) + { + result = GenerateHash(result) ^ this._otherParameters[idx].GetHashCode(); + } + result = GenerateHash(result) ^ this._xAcceleration.GetHashCode(); + result = GenerateHash(result) ^ this._yAcceleration.GetHashCode(); + result = GenerateHash(result) ^ this._zAcceleration.GetHashCode(); + result = GenerateHash(result) ^ this._xAngularVelocity.GetHashCode(); + result = GenerateHash(result) ^ this._yAngularVelocity.GetHashCode(); + result = GenerateHash(result) ^ this._zAngularVelocity.GetHashCode(); + + for (int idx = 0; idx < 12; idx++) + { + result = GenerateHash(result) ^ this._marking[idx].GetHashCode(); + } + result = GenerateHash(result) ^ this._capabilities.GetHashCode(); + + if (this._variableParameters.Count > 0) + { + for (int idx = 0; idx < this._variableParameters.Count; idx++) + { + result = GenerateHash(result) ^ this._variableParameters[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/FirePdu.cs b/Libs/CSharpDis7/FirePdu.cs new file mode 100644 index 0000000..9f8490e --- /dev/null +++ b/Libs/CSharpDis7/FirePdu.cs @@ -0,0 +1,488 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// The firing of a weapon or expendable shall be communicated by issuing a Fire PDU. Sectioin 7.3.2. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(EventIdentifier))] + [XmlInclude(typeof(Vector3Double))] + [XmlInclude(typeof(MunitionDescriptor))] + [XmlInclude(typeof(Vector3Float))] + public partial class FirePdu : WarfareFamilyPdu, IEquatable + { + /// + /// This field shall specify the entity identification of the fired munition or expendable. This field shall be represented by an Entity Identifier record (see 6.2.28). + /// + private EntityID _munitionExpendibleID = new EntityID(); + + /// + /// This field shall contain an identification generated by the firing entity to associate related firing and detonation events. This field shall be represented by an Event Identifier record (see 6.2.34). + /// + private EventIdentifier _eventID = new EventIdentifier(); + + /// + /// This field shall identify the fire mission (see 5.4.3.3). This field shall be representedby a 32-bit unsigned integer. + /// + private uint _fireMissionIndex; + + /// + /// This field shall specify the location, in world coordinates, from which the munition was launched, and shall be represented by a World Coordinates record (see 6.2.97). + /// + private Vector3Double _locationInWorldCoordinates = new Vector3Double(); + + /// + /// This field shall describe the firing or launch of a munition or expendable represented by one of the following types of Descriptor records: Munition Descriptor (6.2.20.2) or Expendable Descriptor (6.2.20.4). + /// + private MunitionDescriptor _descriptor = new MunitionDescriptor(); + + /// + /// This field shall specify the velocity of the fired munition at the point when the issuing simulation application intends the externally visible effects of the launch (e.g. exhaust plume or muzzle blast) to first become apparent. The velocity shall be represented in world coordinates. This field shall be represented by a Linear Velocity Vector record [see 6.2.95 item c)]. + /// + private Vector3Float _velocity = new Vector3Float(); + + /// + /// This field shall specify the range that an entity’s fire control system has assumed in computing the fire control solution. This field shall be represented by a 32-bit floating point number in meters. For systems where range is unknown or unavailable, this field shall contain a value of zero. + /// + private float _range; + + /// + /// Initializes a new instance of the class. + /// + public FirePdu() + { + PduType = (byte)2; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(FirePdu left, FirePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(FirePdu left, FirePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._munitionExpendibleID.GetMarshalledSize(); // this._munitionExpendibleID + marshalSize += this._eventID.GetMarshalledSize(); // this._eventID + marshalSize += 4; // this._fireMissionIndex + marshalSize += this._locationInWorldCoordinates.GetMarshalledSize(); // this._locationInWorldCoordinates + marshalSize += this._descriptor.GetMarshalledSize(); // this._descriptor + marshalSize += this._velocity.GetMarshalledSize(); // this._velocity + marshalSize += 4; // this._range + return marshalSize; + } + + /// + /// Gets or sets the This field shall specify the entity identification of the fired munition or expendable. This field shall be represented by an Entity Identifier record (see 6.2.28). + /// + [XmlElement(Type = typeof(EntityID), ElementName = "munitionExpendibleID")] + public EntityID MunitionExpendibleID + { + get + { + return this._munitionExpendibleID; + } + + set + { + this._munitionExpendibleID = value; + } + } + + /// + /// Gets or sets the This field shall contain an identification generated by the firing entity to associate related firing and detonation events. This field shall be represented by an Event Identifier record (see 6.2.34). + /// + [XmlElement(Type = typeof(EventIdentifier), ElementName = "eventID")] + public EventIdentifier EventID + { + get + { + return this._eventID; + } + + set + { + this._eventID = value; + } + } + + /// + /// Gets or sets the This field shall identify the fire mission (see 5.4.3.3). This field shall be representedby a 32-bit unsigned integer. + /// + [XmlElement(Type = typeof(uint), ElementName = "fireMissionIndex")] + public uint FireMissionIndex + { + get + { + return this._fireMissionIndex; + } + + set + { + this._fireMissionIndex = value; + } + } + + /// + /// Gets or sets the This field shall specify the location, in world coordinates, from which the munition was launched, and shall be represented by a World Coordinates record (see 6.2.97). + /// + [XmlElement(Type = typeof(Vector3Double), ElementName = "locationInWorldCoordinates")] + public Vector3Double LocationInWorldCoordinates + { + get + { + return this._locationInWorldCoordinates; + } + + set + { + this._locationInWorldCoordinates = value; + } + } + + /// + /// Gets or sets the This field shall describe the firing or launch of a munition or expendable represented by one of the following types of Descriptor records: Munition Descriptor (6.2.20.2) or Expendable Descriptor (6.2.20.4). + /// + [XmlElement(Type = typeof(MunitionDescriptor), ElementName = "descriptor")] + public MunitionDescriptor Descriptor + { + get + { + return this._descriptor; + } + + set + { + this._descriptor = value; + } + } + + /// + /// Gets or sets the This field shall specify the velocity of the fired munition at the point when the issuing simulation application intends the externally visible effects of the launch (e.g. exhaust plume or muzzle blast) to first become apparent. The velocity shall be represented in world coordinates. This field shall be represented by a Linear Velocity Vector record [see 6.2.95 item c)]. + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "velocity")] + public Vector3Float Velocity + { + get + { + return this._velocity; + } + + set + { + this._velocity = value; + } + } + + /// + /// Gets or sets the This field shall specify the range that an entity’s fire control system has assumed in computing the fire control solution. This field shall be represented by a 32-bit floating point number in meters. For systems where range is unknown or unavailable, this field shall contain a value of zero. + /// + [XmlElement(Type = typeof(float), ElementName = "range")] + public float Range + { + get + { + return this._range; + } + + set + { + this._range = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._munitionExpendibleID.Marshal(dos); + this._eventID.Marshal(dos); + dos.WriteUnsignedInt((uint)this._fireMissionIndex); + this._locationInWorldCoordinates.Marshal(dos); + this._descriptor.Marshal(dos); + this._velocity.Marshal(dos); + dos.WriteFloat((float)this._range); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._munitionExpendibleID.Unmarshal(dis); + this._eventID.Unmarshal(dis); + this._fireMissionIndex = dis.ReadUnsignedInt(); + this._locationInWorldCoordinates.Unmarshal(dis); + this._descriptor.Unmarshal(dis); + this._velocity.Unmarshal(dis); + this._range = dis.ReadFloat(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._munitionExpendibleID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._eventID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._fireMissionIndex.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._locationInWorldCoordinates.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._descriptor.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._velocity.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._range.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as FirePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(FirePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._munitionExpendibleID.Equals(obj._munitionExpendibleID)) + { + ivarsEqual = false; + } + + if (!this._eventID.Equals(obj._eventID)) + { + ivarsEqual = false; + } + + if (this._fireMissionIndex != obj._fireMissionIndex) + { + ivarsEqual = false; + } + + if (!this._locationInWorldCoordinates.Equals(obj._locationInWorldCoordinates)) + { + ivarsEqual = false; + } + + if (!this._descriptor.Equals(obj._descriptor)) + { + ivarsEqual = false; + } + + if (!this._velocity.Equals(obj._velocity)) + { + ivarsEqual = false; + } + + if (this._range != obj._range) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._munitionExpendibleID.GetHashCode(); + result = GenerateHash(result) ^ this._eventID.GetHashCode(); + result = GenerateHash(result) ^ this._fireMissionIndex.GetHashCode(); + result = GenerateHash(result) ^ this._locationInWorldCoordinates.GetHashCode(); + result = GenerateHash(result) ^ this._descriptor.GetHashCode(); + result = GenerateHash(result) ^ this._velocity.GetHashCode(); + result = GenerateHash(result) ^ this._range.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/FixedDatum.cs b/Libs/CSharpDis7/FixedDatum.cs new file mode 100644 index 0000000..8c840dc --- /dev/null +++ b/Libs/CSharpDis7/FixedDatum.cs @@ -0,0 +1,309 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Fixed Datum Record. Section 6.2.38 + /// + [Serializable] + [XmlRoot] + public partial class FixedDatum + { + /// + /// ID of the fixed datum, an enumeration + /// + private uint _fixedDatumID; + + /// + /// Value for the fixed datum + /// + private uint _fixedDatumValue; + + /// + /// Initializes a new instance of the class. + /// + public FixedDatum() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(FixedDatum left, FixedDatum right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(FixedDatum left, FixedDatum right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._fixedDatumID + marshalSize += 4; // this._fixedDatumValue + return marshalSize; + } + + /// + /// Gets or sets the ID of the fixed datum, an enumeration + /// + [XmlElement(Type = typeof(uint), ElementName = "fixedDatumID")] + public uint FixedDatumID + { + get + { + return this._fixedDatumID; + } + + set + { + this._fixedDatumID = value; + } + } + + /// + /// Gets or sets the Value for the fixed datum + /// + [XmlElement(Type = typeof(uint), ElementName = "fixedDatumValue")] + public uint FixedDatumValue + { + get + { + return this._fixedDatumValue; + } + + set + { + this._fixedDatumValue = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._fixedDatumID); + dos.WriteUnsignedInt((uint)this._fixedDatumValue); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._fixedDatumID = dis.ReadUnsignedInt(); + this._fixedDatumValue = dis.ReadUnsignedInt(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._fixedDatumID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fixedDatumValue.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as FixedDatum; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(FixedDatum obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._fixedDatumID != obj._fixedDatumID) + { + ivarsEqual = false; + } + + if (this._fixedDatumValue != obj._fixedDatumValue) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._fixedDatumID.GetHashCode(); + result = GenerateHash(result) ^ this._fixedDatumValue.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/FourByteChunk.cs b/Libs/CSharpDis7/FourByteChunk.cs new file mode 100644 index 0000000..b459c13 --- /dev/null +++ b/Libs/CSharpDis7/FourByteChunk.cs @@ -0,0 +1,303 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// 32 bit piece of data + /// + [Serializable] + [XmlRoot] + public partial class FourByteChunk + { + /// + /// four bytes of arbitrary data + /// + private byte[] _otherParameters = new byte[4]; + + /// + /// Initializes a new instance of the class. + /// + public FourByteChunk() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(FourByteChunk left, FourByteChunk right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(FourByteChunk left, FourByteChunk right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4 * 1; // _otherParameters + return marshalSize; + } + + /// + /// Gets or sets the four bytes of arbitrary data + /// + [XmlArray(ElementName = "otherParameters")] + public byte[] OtherParameters + { + get + { + return this._otherParameters; + } + + set + { + this._otherParameters = value; + } +} + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + + for (int idx = 0; idx < this._otherParameters.Length; idx++) + { + dos.WriteByte(this._otherParameters[idx]); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + for (int idx = 0; idx < this._otherParameters.Length; idx++) + { + this._otherParameters[idx] = dis.ReadByte(); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + for (int idx = 0; idx < this._otherParameters.Length; idx++) + { + sb.AppendLine("" + this._otherParameters[idx] + ""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as FourByteChunk; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(FourByteChunk obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (obj._otherParameters.Length != 4) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < 4; idx++) + { + if (this._otherParameters[idx] != obj._otherParameters[idx]) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + + for (int idx = 0; idx < 4; idx++) + { + result = GenerateHash(result) ^ this._otherParameters[idx].GetHashCode(); + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/FundamentalOperationalData.cs b/Libs/CSharpDis7/FundamentalOperationalData.cs new file mode 100644 index 0000000..64f43b3 --- /dev/null +++ b/Libs/CSharpDis7/FundamentalOperationalData.cs @@ -0,0 +1,565 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Basic operational data for IFF. Section 6.2.40. + /// + [Serializable] + [XmlRoot] + public partial class FundamentalOperationalData + { + /// + /// system status + /// + private byte _systemStatus; + + /// + /// data field 1 + /// + private byte _dataField1; + + /// + /// eight boolean fields + /// + private byte _informationLayers; + + /// + /// enumeration + /// + private byte _dataField2; + + /// + /// parameter, enumeration + /// + private ushort _parameter1; + + /// + /// parameter, enumeration + /// + private ushort _parameter2; + + /// + /// parameter, enumeration + /// + private ushort _parameter3; + + /// + /// parameter, enumeration + /// + private ushort _parameter4; + + /// + /// parameter, enumeration + /// + private ushort _parameter5; + + /// + /// parameter, enumeration + /// + private ushort _parameter6; + + /// + /// Initializes a new instance of the class. + /// + public FundamentalOperationalData() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(FundamentalOperationalData left, FundamentalOperationalData right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(FundamentalOperationalData left, FundamentalOperationalData right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._systemStatus + marshalSize += 1; // this._dataField1 + marshalSize += 1; // this._informationLayers + marshalSize += 1; // this._dataField2 + marshalSize += 2; // this._parameter1 + marshalSize += 2; // this._parameter2 + marshalSize += 2; // this._parameter3 + marshalSize += 2; // this._parameter4 + marshalSize += 2; // this._parameter5 + marshalSize += 2; // this._parameter6 + return marshalSize; + } + + /// + /// Gets or sets the system status + /// + [XmlElement(Type = typeof(byte), ElementName = "systemStatus")] + public byte SystemStatus + { + get + { + return this._systemStatus; + } + + set + { + this._systemStatus = value; + } + } + + /// + /// Gets or sets the data field 1 + /// + [XmlElement(Type = typeof(byte), ElementName = "dataField1")] + public byte DataField1 + { + get + { + return this._dataField1; + } + + set + { + this._dataField1 = value; + } + } + + /// + /// Gets or sets the eight boolean fields + /// + [XmlElement(Type = typeof(byte), ElementName = "informationLayers")] + public byte InformationLayers + { + get + { + return this._informationLayers; + } + + set + { + this._informationLayers = value; + } + } + + /// + /// Gets or sets the enumeration + /// + [XmlElement(Type = typeof(byte), ElementName = "dataField2")] + public byte DataField2 + { + get + { + return this._dataField2; + } + + set + { + this._dataField2 = value; + } + } + + /// + /// Gets or sets the parameter, enumeration + /// + [XmlElement(Type = typeof(ushort), ElementName = "parameter1")] + public ushort Parameter1 + { + get + { + return this._parameter1; + } + + set + { + this._parameter1 = value; + } + } + + /// + /// Gets or sets the parameter, enumeration + /// + [XmlElement(Type = typeof(ushort), ElementName = "parameter2")] + public ushort Parameter2 + { + get + { + return this._parameter2; + } + + set + { + this._parameter2 = value; + } + } + + /// + /// Gets or sets the parameter, enumeration + /// + [XmlElement(Type = typeof(ushort), ElementName = "parameter3")] + public ushort Parameter3 + { + get + { + return this._parameter3; + } + + set + { + this._parameter3 = value; + } + } + + /// + /// Gets or sets the parameter, enumeration + /// + [XmlElement(Type = typeof(ushort), ElementName = "parameter4")] + public ushort Parameter4 + { + get + { + return this._parameter4; + } + + set + { + this._parameter4 = value; + } + } + + /// + /// Gets or sets the parameter, enumeration + /// + [XmlElement(Type = typeof(ushort), ElementName = "parameter5")] + public ushort Parameter5 + { + get + { + return this._parameter5; + } + + set + { + this._parameter5 = value; + } + } + + /// + /// Gets or sets the parameter, enumeration + /// + [XmlElement(Type = typeof(ushort), ElementName = "parameter6")] + public ushort Parameter6 + { + get + { + return this._parameter6; + } + + set + { + this._parameter6 = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._systemStatus); + dos.WriteUnsignedByte((byte)this._dataField1); + dos.WriteUnsignedByte((byte)this._informationLayers); + dos.WriteUnsignedByte((byte)this._dataField2); + dos.WriteUnsignedShort((ushort)this._parameter1); + dos.WriteUnsignedShort((ushort)this._parameter2); + dos.WriteUnsignedShort((ushort)this._parameter3); + dos.WriteUnsignedShort((ushort)this._parameter4); + dos.WriteUnsignedShort((ushort)this._parameter5); + dos.WriteUnsignedShort((ushort)this._parameter6); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._systemStatus = dis.ReadUnsignedByte(); + this._dataField1 = dis.ReadUnsignedByte(); + this._informationLayers = dis.ReadUnsignedByte(); + this._dataField2 = dis.ReadUnsignedByte(); + this._parameter1 = dis.ReadUnsignedShort(); + this._parameter2 = dis.ReadUnsignedShort(); + this._parameter3 = dis.ReadUnsignedShort(); + this._parameter4 = dis.ReadUnsignedShort(); + this._parameter5 = dis.ReadUnsignedShort(); + this._parameter6 = dis.ReadUnsignedShort(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._systemStatus.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._dataField1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._informationLayers.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._dataField2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._parameter1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._parameter2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._parameter3.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._parameter4.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._parameter5.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._parameter6.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as FundamentalOperationalData; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(FundamentalOperationalData obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._systemStatus != obj._systemStatus) + { + ivarsEqual = false; + } + + if (this._dataField1 != obj._dataField1) + { + ivarsEqual = false; + } + + if (this._informationLayers != obj._informationLayers) + { + ivarsEqual = false; + } + + if (this._dataField2 != obj._dataField2) + { + ivarsEqual = false; + } + + if (this._parameter1 != obj._parameter1) + { + ivarsEqual = false; + } + + if (this._parameter2 != obj._parameter2) + { + ivarsEqual = false; + } + + if (this._parameter3 != obj._parameter3) + { + ivarsEqual = false; + } + + if (this._parameter4 != obj._parameter4) + { + ivarsEqual = false; + } + + if (this._parameter5 != obj._parameter5) + { + ivarsEqual = false; + } + + if (this._parameter6 != obj._parameter6) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._systemStatus.GetHashCode(); + result = GenerateHash(result) ^ this._dataField1.GetHashCode(); + result = GenerateHash(result) ^ this._informationLayers.GetHashCode(); + result = GenerateHash(result) ^ this._dataField2.GetHashCode(); + result = GenerateHash(result) ^ this._parameter1.GetHashCode(); + result = GenerateHash(result) ^ this._parameter2.GetHashCode(); + result = GenerateHash(result) ^ this._parameter3.GetHashCode(); + result = GenerateHash(result) ^ this._parameter4.GetHashCode(); + result = GenerateHash(result) ^ this._parameter5.GetHashCode(); + result = GenerateHash(result) ^ this._parameter6.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/GridAxis.cs b/Libs/CSharpDis7/GridAxis.cs new file mode 100644 index 0000000..661f51d --- /dev/null +++ b/Libs/CSharpDis7/GridAxis.cs @@ -0,0 +1,469 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Grid axis record for fixed data. Section 6.2.41 + /// + [Serializable] + [XmlRoot] + public partial class GridAxis + { + /// + /// coordinate of the grid origin or initial value + /// + private double _domainInitialXi; + + /// + /// coordinate of the endpoint or final value + /// + private double _domainFinalXi; + + /// + /// The number of grid points along the Xi domain axis for the enviornmental state data + /// + private ushort _domainPointsXi; + + /// + /// interleaf factor along the domain axis. + /// + private byte _interleafFactor; + + /// + /// type of grid axis + /// + private byte _axisType; + + /// + /// Number of grid locations along Xi axis + /// + private ushort _numberOfPointsOnXiAxis; + + /// + /// initial grid point for the current pdu + /// + private ushort _initialIndex; + + /// + /// Initializes a new instance of the class. + /// + public GridAxis() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(GridAxis left, GridAxis right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(GridAxis left, GridAxis right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 8; // this._domainInitialXi + marshalSize += 8; // this._domainFinalXi + marshalSize += 2; // this._domainPointsXi + marshalSize += 1; // this._interleafFactor + marshalSize += 1; // this._axisType + marshalSize += 2; // this._numberOfPointsOnXiAxis + marshalSize += 2; // this._initialIndex + return marshalSize; + } + + /// + /// Gets or sets the coordinate of the grid origin or initial value + /// + [XmlElement(Type = typeof(double), ElementName = "domainInitialXi")] + public double DomainInitialXi + { + get + { + return this._domainInitialXi; + } + + set + { + this._domainInitialXi = value; + } + } + + /// + /// Gets or sets the coordinate of the endpoint or final value + /// + [XmlElement(Type = typeof(double), ElementName = "domainFinalXi")] + public double DomainFinalXi + { + get + { + return this._domainFinalXi; + } + + set + { + this._domainFinalXi = value; + } + } + + /// + /// Gets or sets the The number of grid points along the Xi domain axis for the enviornmental state data + /// + [XmlElement(Type = typeof(ushort), ElementName = "domainPointsXi")] + public ushort DomainPointsXi + { + get + { + return this._domainPointsXi; + } + + set + { + this._domainPointsXi = value; + } + } + + /// + /// Gets or sets the interleaf factor along the domain axis. + /// + [XmlElement(Type = typeof(byte), ElementName = "interleafFactor")] + public byte InterleafFactor + { + get + { + return this._interleafFactor; + } + + set + { + this._interleafFactor = value; + } + } + + /// + /// Gets or sets the type of grid axis + /// + [XmlElement(Type = typeof(byte), ElementName = "axisType")] + public byte AxisType + { + get + { + return this._axisType; + } + + set + { + this._axisType = value; + } + } + + /// + /// Gets or sets the Number of grid locations along Xi axis + /// + [XmlElement(Type = typeof(ushort), ElementName = "numberOfPointsOnXiAxis")] + public ushort NumberOfPointsOnXiAxis + { + get + { + return this._numberOfPointsOnXiAxis; + } + + set + { + this._numberOfPointsOnXiAxis = value; + } + } + + /// + /// Gets or sets the initial grid point for the current pdu + /// + [XmlElement(Type = typeof(ushort), ElementName = "initialIndex")] + public ushort InitialIndex + { + get + { + return this._initialIndex; + } + + set + { + this._initialIndex = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteDouble((double)this._domainInitialXi); + dos.WriteDouble((double)this._domainFinalXi); + dos.WriteUnsignedShort((ushort)this._domainPointsXi); + dos.WriteUnsignedByte((byte)this._interleafFactor); + dos.WriteUnsignedByte((byte)this._axisType); + dos.WriteUnsignedShort((ushort)this._numberOfPointsOnXiAxis); + dos.WriteUnsignedShort((ushort)this._initialIndex); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._domainInitialXi = dis.ReadDouble(); + this._domainFinalXi = dis.ReadDouble(); + this._domainPointsXi = dis.ReadUnsignedShort(); + this._interleafFactor = dis.ReadUnsignedByte(); + this._axisType = dis.ReadUnsignedByte(); + this._numberOfPointsOnXiAxis = dis.ReadUnsignedShort(); + this._initialIndex = dis.ReadUnsignedShort(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._domainInitialXi.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._domainFinalXi.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._domainPointsXi.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._interleafFactor.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._axisType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._numberOfPointsOnXiAxis.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._initialIndex.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as GridAxis; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(GridAxis obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._domainInitialXi != obj._domainInitialXi) + { + ivarsEqual = false; + } + + if (this._domainFinalXi != obj._domainFinalXi) + { + ivarsEqual = false; + } + + if (this._domainPointsXi != obj._domainPointsXi) + { + ivarsEqual = false; + } + + if (this._interleafFactor != obj._interleafFactor) + { + ivarsEqual = false; + } + + if (this._axisType != obj._axisType) + { + ivarsEqual = false; + } + + if (this._numberOfPointsOnXiAxis != obj._numberOfPointsOnXiAxis) + { + ivarsEqual = false; + } + + if (this._initialIndex != obj._initialIndex) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._domainInitialXi.GetHashCode(); + result = GenerateHash(result) ^ this._domainFinalXi.GetHashCode(); + result = GenerateHash(result) ^ this._domainPointsXi.GetHashCode(); + result = GenerateHash(result) ^ this._interleafFactor.GetHashCode(); + result = GenerateHash(result) ^ this._axisType.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfPointsOnXiAxis.GetHashCode(); + result = GenerateHash(result) ^ this._initialIndex.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/GroupIdentifier.cs b/Libs/CSharpDis7/GroupIdentifier.cs new file mode 100644 index 0000000..02bc7a2 --- /dev/null +++ b/Libs/CSharpDis7/GroupIdentifier.cs @@ -0,0 +1,312 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Unique designation of a group of entities contained in the isGroupOfPdu. Represents a group of entities rather than a single entity. Section 6.2.43 + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityType))] + public partial class GroupIdentifier + { + /// + /// Simulation address (site and application number) + /// + private EntityType _simulationAddress = new EntityType(); + + /// + /// group number + /// + private ushort _groupNumber; + + /// + /// Initializes a new instance of the class. + /// + public GroupIdentifier() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(GroupIdentifier left, GroupIdentifier right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(GroupIdentifier left, GroupIdentifier right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += this._simulationAddress.GetMarshalledSize(); // this._simulationAddress + marshalSize += 2; // this._groupNumber + return marshalSize; + } + + /// + /// Gets or sets the Simulation address (site and application number) + /// + [XmlElement(Type = typeof(EntityType), ElementName = "simulationAddress")] + public EntityType SimulationAddress + { + get + { + return this._simulationAddress; + } + + set + { + this._simulationAddress = value; + } + } + + /// + /// Gets or sets the group number + /// + [XmlElement(Type = typeof(ushort), ElementName = "groupNumber")] + public ushort GroupNumber + { + get + { + return this._groupNumber; + } + + set + { + this._groupNumber = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + this._simulationAddress.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._groupNumber); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._simulationAddress.Unmarshal(dis); + this._groupNumber = dis.ReadUnsignedShort(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine(""); + this._simulationAddress.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._groupNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as GroupIdentifier; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(GroupIdentifier obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (!this._simulationAddress.Equals(obj._simulationAddress)) + { + ivarsEqual = false; + } + + if (this._groupNumber != obj._groupNumber) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._simulationAddress.GetHashCode(); + result = GenerateHash(result) ^ this._groupNumber.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/IFFFundamentalParameterData.cs b/Libs/CSharpDis7/IFFFundamentalParameterData.cs new file mode 100644 index 0000000..05c8e57 --- /dev/null +++ b/Libs/CSharpDis7/IFFFundamentalParameterData.cs @@ -0,0 +1,495 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Fundamental IFF atc data. Section 6.2.45 + /// + [Serializable] + [XmlRoot] + public partial class IFFFundamentalParameterData + { + /// + /// ERP + /// + private float _erp; + + /// + /// frequency + /// + private float _frequency; + + /// + /// pgrf + /// + private float _pgrf; + + /// + /// Pulse width + /// + private float _pulseWidth; + + /// + /// Burst length + /// + private uint _burstLength; + + /// + /// Applicable modes enumeration + /// + private byte _applicableModes; + + /// + /// System-specific data + /// + private byte[] _systemSpecificData = new byte[3]; + + /// + /// Initializes a new instance of the class. + /// + public IFFFundamentalParameterData() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(IFFFundamentalParameterData left, IFFFundamentalParameterData right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(IFFFundamentalParameterData left, IFFFundamentalParameterData right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._erp + marshalSize += 4; // this._frequency + marshalSize += 4; // this._pgrf + marshalSize += 4; // this._pulseWidth + marshalSize += 4; // this._burstLength + marshalSize += 1; // this._applicableModes + marshalSize += 3 * 1; // _systemSpecificData + return marshalSize; + } + + /// + /// Gets or sets the ERP + /// + [XmlElement(Type = typeof(float), ElementName = "erp")] + public float Erp + { + get + { + return this._erp; + } + + set + { + this._erp = value; + } + } + + /// + /// Gets or sets the frequency + /// + [XmlElement(Type = typeof(float), ElementName = "frequency")] + public float Frequency + { + get + { + return this._frequency; + } + + set + { + this._frequency = value; + } + } + + /// + /// Gets or sets the pgrf + /// + [XmlElement(Type = typeof(float), ElementName = "pgrf")] + public float Pgrf + { + get + { + return this._pgrf; + } + + set + { + this._pgrf = value; + } + } + + /// + /// Gets or sets the Pulse width + /// + [XmlElement(Type = typeof(float), ElementName = "pulseWidth")] + public float PulseWidth + { + get + { + return this._pulseWidth; + } + + set + { + this._pulseWidth = value; + } + } + + /// + /// Gets or sets the Burst length + /// + [XmlElement(Type = typeof(uint), ElementName = "burstLength")] + public uint BurstLength + { + get + { + return this._burstLength; + } + + set + { + this._burstLength = value; + } + } + + /// + /// Gets or sets the Applicable modes enumeration + /// + [XmlElement(Type = typeof(byte), ElementName = "applicableModes")] + public byte ApplicableModes + { + get + { + return this._applicableModes; + } + + set + { + this._applicableModes = value; + } + } + + /// + /// Gets or sets the System-specific data + /// + [XmlArray(ElementName = "systemSpecificData")] + public byte[] SystemSpecificData + { + get + { + return this._systemSpecificData; + } + + set + { + this._systemSpecificData = value; + } +} + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteFloat((float)this._erp); + dos.WriteFloat((float)this._frequency); + dos.WriteFloat((float)this._pgrf); + dos.WriteFloat((float)this._pulseWidth); + dos.WriteUnsignedInt((uint)this._burstLength); + dos.WriteUnsignedByte((byte)this._applicableModes); + + for (int idx = 0; idx < this._systemSpecificData.Length; idx++) + { + dos.WriteUnsignedByte(this._systemSpecificData[idx]); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._erp = dis.ReadFloat(); + this._frequency = dis.ReadFloat(); + this._pgrf = dis.ReadFloat(); + this._pulseWidth = dis.ReadFloat(); + this._burstLength = dis.ReadUnsignedInt(); + this._applicableModes = dis.ReadUnsignedByte(); + for (int idx = 0; idx < this._systemSpecificData.Length; idx++) + { + this._systemSpecificData[idx] = dis.ReadUnsignedByte(); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._erp.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._frequency.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pgrf.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pulseWidth.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._burstLength.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._applicableModes.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._systemSpecificData.Length; idx++) + { + sb.AppendLine("" + this._systemSpecificData[idx] + ""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as IFFFundamentalParameterData; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(IFFFundamentalParameterData obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._erp != obj._erp) + { + ivarsEqual = false; + } + + if (this._frequency != obj._frequency) + { + ivarsEqual = false; + } + + if (this._pgrf != obj._pgrf) + { + ivarsEqual = false; + } + + if (this._pulseWidth != obj._pulseWidth) + { + ivarsEqual = false; + } + + if (this._burstLength != obj._burstLength) + { + ivarsEqual = false; + } + + if (this._applicableModes != obj._applicableModes) + { + ivarsEqual = false; + } + + if (obj._systemSpecificData.Length != 3) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < 3; idx++) + { + if (this._systemSpecificData[idx] != obj._systemSpecificData[idx]) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._erp.GetHashCode(); + result = GenerateHash(result) ^ this._frequency.GetHashCode(); + result = GenerateHash(result) ^ this._pgrf.GetHashCode(); + result = GenerateHash(result) ^ this._pulseWidth.GetHashCode(); + result = GenerateHash(result) ^ this._burstLength.GetHashCode(); + result = GenerateHash(result) ^ this._applicableModes.GetHashCode(); + + for (int idx = 0; idx < 3; idx++) + { + result = GenerateHash(result) ^ this._systemSpecificData[idx].GetHashCode(); + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/IOCommunicationsNode.cs b/Libs/CSharpDis7/IOCommunicationsNode.cs new file mode 100644 index 0000000..9fcd7c4 --- /dev/null +++ b/Libs/CSharpDis7/IOCommunicationsNode.cs @@ -0,0 +1,404 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// A communications node that is part of a simulted communcations network. Section 6.2.49.2 + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + public partial class IOCommunicationsNode + { + private uint _recordType = 5501; + + private ushort _recordLength = 16; + + private byte _communcationsNodeType; + + private byte _padding; + + private EntityID _communicationsNode = new EntityID(); + + private ushort _elementID; + + /// + /// Initializes a new instance of the class. + /// + public IOCommunicationsNode() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(IOCommunicationsNode left, IOCommunicationsNode right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(IOCommunicationsNode left, IOCommunicationsNode right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._recordType + marshalSize += 2; // this._recordLength + marshalSize += 1; // this._communcationsNodeType + marshalSize += 1; // this._padding + marshalSize += this._communicationsNode.GetMarshalledSize(); // this._communicationsNode + marshalSize += 2; // this._elementID + return marshalSize; + } + + [XmlElement(Type = typeof(uint), ElementName = "recordType")] + public uint RecordType + { + get + { + return this._recordType; + } + + set + { + this._recordType = value; + } + } + + [XmlElement(Type = typeof(ushort), ElementName = "recordLength")] + public ushort RecordLength + { + get + { + return this._recordLength; + } + + set + { + this._recordLength = value; + } + } + + [XmlElement(Type = typeof(byte), ElementName = "communcationsNodeType")] + public byte CommuncationsNodeType + { + get + { + return this._communcationsNodeType; + } + + set + { + this._communcationsNodeType = value; + } + } + + [XmlElement(Type = typeof(byte), ElementName = "padding")] + public byte Padding + { + get + { + return this._padding; + } + + set + { + this._padding = value; + } + } + + [XmlElement(Type = typeof(EntityID), ElementName = "communicationsNode")] + public EntityID CommunicationsNode + { + get + { + return this._communicationsNode; + } + + set + { + this._communicationsNode = value; + } + } + + [XmlElement(Type = typeof(ushort), ElementName = "elementID")] + public ushort ElementID + { + get + { + return this._elementID; + } + + set + { + this._elementID = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._recordType); + dos.WriteUnsignedShort((ushort)this._recordLength); + dos.WriteUnsignedByte((byte)this._communcationsNodeType); + dos.WriteUnsignedByte((byte)this._padding); + this._communicationsNode.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._elementID); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._recordType = dis.ReadUnsignedInt(); + this._recordLength = dis.ReadUnsignedShort(); + this._communcationsNodeType = dis.ReadUnsignedByte(); + this._padding = dis.ReadUnsignedByte(); + this._communicationsNode.Unmarshal(dis); + this._elementID = dis.ReadUnsignedShort(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._recordType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._recordLength.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._communcationsNodeType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._communicationsNode.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._elementID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as IOCommunicationsNode; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(IOCommunicationsNode obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._recordType != obj._recordType) + { + ivarsEqual = false; + } + + if (this._recordLength != obj._recordLength) + { + ivarsEqual = false; + } + + if (this._communcationsNodeType != obj._communcationsNodeType) + { + ivarsEqual = false; + } + + if (this._padding != obj._padding) + { + ivarsEqual = false; + } + + if (!this._communicationsNode.Equals(obj._communicationsNode)) + { + ivarsEqual = false; + } + + if (this._elementID != obj._elementID) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._recordType.GetHashCode(); + result = GenerateHash(result) ^ this._recordLength.GetHashCode(); + result = GenerateHash(result) ^ this._communcationsNodeType.GetHashCode(); + result = GenerateHash(result) ^ this._padding.GetHashCode(); + result = GenerateHash(result) ^ this._communicationsNode.GetHashCode(); + result = GenerateHash(result) ^ this._elementID.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/IOEffect.cs b/Libs/CSharpDis7/IOEffect.cs new file mode 100644 index 0000000..326dd68 --- /dev/null +++ b/Libs/CSharpDis7/IOEffect.cs @@ -0,0 +1,482 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Effect of IO on an entity. Section 6.2.49.3 + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + public partial class IOEffect + { + private uint _recordType = 5500; + + private ushort _recordLength = 16; + + private byte _ioStatus; + + private byte _ioLinkType; + + private EntityID _ioEffect = new EntityID(); + + private byte _ioEffectDutyCycle; + + private ushort _ioEffectDuration; + + private ushort _ioProcess; + + private ushort _padding; + + /// + /// Initializes a new instance of the class. + /// + public IOEffect() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(IOEffect left, IOEffect right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(IOEffect left, IOEffect right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._recordType + marshalSize += 2; // this._recordLength + marshalSize += 1; // this._ioStatus + marshalSize += 1; // this._ioLinkType + marshalSize += this._ioEffect.GetMarshalledSize(); // this._ioEffect + marshalSize += 1; // this._ioEffectDutyCycle + marshalSize += 2; // this._ioEffectDuration + marshalSize += 2; // this._ioProcess + marshalSize += 2; // this._padding + return marshalSize; + } + + [XmlElement(Type = typeof(uint), ElementName = "recordType")] + public uint RecordType + { + get + { + return this._recordType; + } + + set + { + this._recordType = value; + } + } + + [XmlElement(Type = typeof(ushort), ElementName = "recordLength")] + public ushort RecordLength + { + get + { + return this._recordLength; + } + + set + { + this._recordLength = value; + } + } + + [XmlElement(Type = typeof(byte), ElementName = "ioStatus")] + public byte IoStatus + { + get + { + return this._ioStatus; + } + + set + { + this._ioStatus = value; + } + } + + [XmlElement(Type = typeof(byte), ElementName = "ioLinkType")] + public byte IoLinkType + { + get + { + return this._ioLinkType; + } + + set + { + this._ioLinkType = value; + } + } + + [XmlElement(Type = typeof(EntityID), ElementName = "ioEffect")] + public EntityID IoEffect + { + get + { + return this._ioEffect; + } + + set + { + this._ioEffect = value; + } + } + + [XmlElement(Type = typeof(byte), ElementName = "ioEffectDutyCycle")] + public byte IoEffectDutyCycle + { + get + { + return this._ioEffectDutyCycle; + } + + set + { + this._ioEffectDutyCycle = value; + } + } + + [XmlElement(Type = typeof(ushort), ElementName = "ioEffectDuration")] + public ushort IoEffectDuration + { + get + { + return this._ioEffectDuration; + } + + set + { + this._ioEffectDuration = value; + } + } + + [XmlElement(Type = typeof(ushort), ElementName = "ioProcess")] + public ushort IoProcess + { + get + { + return this._ioProcess; + } + + set + { + this._ioProcess = value; + } + } + + [XmlElement(Type = typeof(ushort), ElementName = "padding")] + public ushort Padding + { + get + { + return this._padding; + } + + set + { + this._padding = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._recordType); + dos.WriteUnsignedShort((ushort)this._recordLength); + dos.WriteUnsignedByte((byte)this._ioStatus); + dos.WriteUnsignedByte((byte)this._ioLinkType); + this._ioEffect.Marshal(dos); + dos.WriteUnsignedByte((byte)this._ioEffectDutyCycle); + dos.WriteUnsignedShort((ushort)this._ioEffectDuration); + dos.WriteUnsignedShort((ushort)this._ioProcess); + dos.WriteUnsignedShort((ushort)this._padding); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._recordType = dis.ReadUnsignedInt(); + this._recordLength = dis.ReadUnsignedShort(); + this._ioStatus = dis.ReadUnsignedByte(); + this._ioLinkType = dis.ReadUnsignedByte(); + this._ioEffect.Unmarshal(dis); + this._ioEffectDutyCycle = dis.ReadUnsignedByte(); + this._ioEffectDuration = dis.ReadUnsignedShort(); + this._ioProcess = dis.ReadUnsignedShort(); + this._padding = dis.ReadUnsignedShort(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._recordType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._recordLength.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._ioStatus.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._ioLinkType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._ioEffect.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._ioEffectDutyCycle.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._ioEffectDuration.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._ioProcess.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as IOEffect; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(IOEffect obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._recordType != obj._recordType) + { + ivarsEqual = false; + } + + if (this._recordLength != obj._recordLength) + { + ivarsEqual = false; + } + + if (this._ioStatus != obj._ioStatus) + { + ivarsEqual = false; + } + + if (this._ioLinkType != obj._ioLinkType) + { + ivarsEqual = false; + } + + if (!this._ioEffect.Equals(obj._ioEffect)) + { + ivarsEqual = false; + } + + if (this._ioEffectDutyCycle != obj._ioEffectDutyCycle) + { + ivarsEqual = false; + } + + if (this._ioEffectDuration != obj._ioEffectDuration) + { + ivarsEqual = false; + } + + if (this._ioProcess != obj._ioProcess) + { + ivarsEqual = false; + } + + if (this._padding != obj._padding) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._recordType.GetHashCode(); + result = GenerateHash(result) ^ this._recordLength.GetHashCode(); + result = GenerateHash(result) ^ this._ioStatus.GetHashCode(); + result = GenerateHash(result) ^ this._ioLinkType.GetHashCode(); + result = GenerateHash(result) ^ this._ioEffect.GetHashCode(); + result = GenerateHash(result) ^ this._ioEffectDutyCycle.GetHashCode(); + result = GenerateHash(result) ^ this._ioEffectDuration.GetHashCode(); + result = GenerateHash(result) ^ this._ioProcess.GetHashCode(); + result = GenerateHash(result) ^ this._padding.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/IffDataSpecification.cs b/Libs/CSharpDis7/IffDataSpecification.cs new file mode 100644 index 0000000..74e753d --- /dev/null +++ b/Libs/CSharpDis7/IffDataSpecification.cs @@ -0,0 +1,280 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Requires hand coding to be useful. Section 6.2.44 + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityType))] + public partial class IffDataSpecification + { + /// + /// Number of iff records + /// + private EntityType _numberOfIffDataRecords = new EntityType(); + + /// + /// Initializes a new instance of the class. + /// + public IffDataSpecification() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(IffDataSpecification left, IffDataSpecification right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(IffDataSpecification left, IffDataSpecification right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += this._numberOfIffDataRecords.GetMarshalledSize(); // this._numberOfIffDataRecords + return marshalSize; + } + + /// + /// Gets or sets the Number of iff records + /// + [XmlElement(Type = typeof(EntityType), ElementName = "numberOfIffDataRecords")] + public EntityType NumberOfIffDataRecords + { + get + { + return this._numberOfIffDataRecords; + } + + set + { + this._numberOfIffDataRecords = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + this._numberOfIffDataRecords.Marshal(dos); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._numberOfIffDataRecords.Unmarshal(dis); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine(""); + this._numberOfIffDataRecords.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as IffDataSpecification; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(IffDataSpecification obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (!this._numberOfIffDataRecords.Equals(obj._numberOfIffDataRecords)) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._numberOfIffDataRecords.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/IntercomCommunicationsParameters.cs b/Libs/CSharpDis7/IntercomCommunicationsParameters.cs new file mode 100644 index 0000000..bfb68d8 --- /dev/null +++ b/Libs/CSharpDis7/IntercomCommunicationsParameters.cs @@ -0,0 +1,341 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Intercom communcations parameters. Section 6.2.47. This requires hand coding + /// + [Serializable] + [XmlRoot] + public partial class IntercomCommunicationsParameters + { + /// + /// Type of intercom parameters record + /// + private ushort _recordType; + + /// + /// length of record + /// + private ushort _recordLength; + + /// + /// This is a placeholder. + /// + private uint _recordSpecificField; + + /// + /// Initializes a new instance of the class. + /// + public IntercomCommunicationsParameters() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(IntercomCommunicationsParameters left, IntercomCommunicationsParameters right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(IntercomCommunicationsParameters left, IntercomCommunicationsParameters right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 2; // this._recordType + marshalSize += 2; // this._recordLength + marshalSize += 4; // this._recordSpecificField + return marshalSize; + } + + /// + /// Gets or sets the Type of intercom parameters record + /// + [XmlElement(Type = typeof(ushort), ElementName = "recordType")] + public ushort RecordType + { + get + { + return this._recordType; + } + + set + { + this._recordType = value; + } + } + + /// + /// Gets or sets the length of record + /// + [XmlElement(Type = typeof(ushort), ElementName = "recordLength")] + public ushort RecordLength + { + get + { + return this._recordLength; + } + + set + { + this._recordLength = value; + } + } + + /// + /// Gets or sets the This is a placeholder. + /// + [XmlElement(Type = typeof(uint), ElementName = "recordSpecificField")] + public uint RecordSpecificField + { + get + { + return this._recordSpecificField; + } + + set + { + this._recordSpecificField = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._recordType); + dos.WriteUnsignedShort((ushort)this._recordLength); + dos.WriteUnsignedInt((uint)this._recordSpecificField); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._recordType = dis.ReadUnsignedShort(); + this._recordLength = dis.ReadUnsignedShort(); + this._recordSpecificField = dis.ReadUnsignedInt(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._recordType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._recordLength.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._recordSpecificField.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as IntercomCommunicationsParameters; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(IntercomCommunicationsParameters obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._recordType != obj._recordType) + { + ivarsEqual = false; + } + + if (this._recordLength != obj._recordLength) + { + ivarsEqual = false; + } + + if (this._recordSpecificField != obj._recordSpecificField) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._recordType.GetHashCode(); + result = GenerateHash(result) ^ this._recordLength.GetHashCode(); + result = GenerateHash(result) ^ this._recordSpecificField.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/IntercomIdentifier.cs b/Libs/CSharpDis7/IntercomIdentifier.cs new file mode 100644 index 0000000..68a1a3b --- /dev/null +++ b/Libs/CSharpDis7/IntercomIdentifier.cs @@ -0,0 +1,349 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Unique designation of an attached or unattached intercom in an event or exercirse. Section 6.2.48 + /// + [Serializable] + [XmlRoot] + public partial class IntercomIdentifier + { + private ushort _siteNumber; + + private ushort _applicationNumber; + + private ushort _referenceNumber; + + private ushort _intercomNumber; + + /// + /// Initializes a new instance of the class. + /// + public IntercomIdentifier() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(IntercomIdentifier left, IntercomIdentifier right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(IntercomIdentifier left, IntercomIdentifier right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 2; // this._siteNumber + marshalSize += 2; // this._applicationNumber + marshalSize += 2; // this._referenceNumber + marshalSize += 2; // this._intercomNumber + return marshalSize; + } + + [XmlElement(Type = typeof(ushort), ElementName = "siteNumber")] + public ushort SiteNumber + { + get + { + return this._siteNumber; + } + + set + { + this._siteNumber = value; + } + } + + [XmlElement(Type = typeof(ushort), ElementName = "applicationNumber")] + public ushort ApplicationNumber + { + get + { + return this._applicationNumber; + } + + set + { + this._applicationNumber = value; + } + } + + [XmlElement(Type = typeof(ushort), ElementName = "referenceNumber")] + public ushort ReferenceNumber + { + get + { + return this._referenceNumber; + } + + set + { + this._referenceNumber = value; + } + } + + [XmlElement(Type = typeof(ushort), ElementName = "intercomNumber")] + public ushort IntercomNumber + { + get + { + return this._intercomNumber; + } + + set + { + this._intercomNumber = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._siteNumber); + dos.WriteUnsignedShort((ushort)this._applicationNumber); + dos.WriteUnsignedShort((ushort)this._referenceNumber); + dos.WriteUnsignedShort((ushort)this._intercomNumber); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._siteNumber = dis.ReadUnsignedShort(); + this._applicationNumber = dis.ReadUnsignedShort(); + this._referenceNumber = dis.ReadUnsignedShort(); + this._intercomNumber = dis.ReadUnsignedShort(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._siteNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._applicationNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._referenceNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._intercomNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as IntercomIdentifier; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(IntercomIdentifier obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._siteNumber != obj._siteNumber) + { + ivarsEqual = false; + } + + if (this._applicationNumber != obj._applicationNumber) + { + ivarsEqual = false; + } + + if (this._referenceNumber != obj._referenceNumber) + { + ivarsEqual = false; + } + + if (this._intercomNumber != obj._intercomNumber) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._siteNumber.GetHashCode(); + result = GenerateHash(result) ^ this._applicationNumber.GetHashCode(); + result = GenerateHash(result) ^ this._referenceNumber.GetHashCode(); + result = GenerateHash(result) ^ this._intercomNumber.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/IntercomSignalPdu.cs b/Libs/CSharpDis7/IntercomSignalPdu.cs new file mode 100644 index 0000000..e4e952e --- /dev/null +++ b/Libs/CSharpDis7/IntercomSignalPdu.cs @@ -0,0 +1,525 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Actual transmission of intercome voice data. Section 7.7.5. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(OneByteChunk))] + public partial class IntercomSignalPdu : RadioCommunicationsFamilyPdu, IEquatable + { + /// + /// entity ID + /// + private EntityID _entityID = new EntityID(); + + /// + /// ID of communications device + /// + private ushort _communicationsDeviceID; + + /// + /// encoding scheme + /// + private ushort _encodingScheme; + + /// + /// tactical data link type + /// + private ushort _tdlType; + + /// + /// sample rate + /// + private uint _sampleRate; + + /// + /// data length + /// + private ushort _dataLength; + + /// + /// samples + /// + private ushort _samples; + + /// + /// data bytes + /// + private byte[] _data; + + /// + /// Initializes a new instance of the class. + /// + public IntercomSignalPdu() + { + PduType = (byte)31; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(IntercomSignalPdu left, IntercomSignalPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(IntercomSignalPdu left, IntercomSignalPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._entityID.GetMarshalledSize(); // this._entityID + marshalSize += 2; // this._communicationsDeviceID + marshalSize += 2; // this._encodingScheme + marshalSize += 2; // this._tdlType + marshalSize += 4; // this._sampleRate + marshalSize += 2; // this._dataLength + marshalSize += 2; // this._samples + marshalSize += this._data.Length; + return marshalSize; + } + + /// + /// Gets or sets the entity ID + /// + [XmlElement(Type = typeof(EntityID), ElementName = "entityID")] + public EntityID EntityID + { + get + { + return this._entityID; + } + + set + { + this._entityID = value; + } + } + + /// + /// Gets or sets the ID of communications device + /// + [XmlElement(Type = typeof(ushort), ElementName = "communicationsDeviceID")] + public ushort CommunicationsDeviceID + { + get + { + return this._communicationsDeviceID; + } + + set + { + this._communicationsDeviceID = value; + } + } + + /// + /// Gets or sets the encoding scheme + /// + [XmlElement(Type = typeof(ushort), ElementName = "encodingScheme")] + public ushort EncodingScheme + { + get + { + return this._encodingScheme; + } + + set + { + this._encodingScheme = value; + } + } + + /// + /// Gets or sets the tactical data link type + /// + [XmlElement(Type = typeof(ushort), ElementName = "tdlType")] + public ushort TdlType + { + get + { + return this._tdlType; + } + + set + { + this._tdlType = value; + } + } + + /// + /// Gets or sets the sample rate + /// + [XmlElement(Type = typeof(uint), ElementName = "sampleRate")] + public uint SampleRate + { + get + { + return this._sampleRate; + } + + set + { + this._sampleRate = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getdataLength method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(ushort), ElementName = "dataLength")] + public ushort DataLength + { + get + { + return this._dataLength; + } + + set + { + this._dataLength = value; + } + } + + /// + /// Gets or sets the samples + /// + [XmlElement(Type = typeof(ushort), ElementName = "samples")] + public ushort Samples + { + get + { + return this._samples; + } + + set + { + this._samples = value; + } + } + + /// + /// Gets or sets the data bytes + /// + [XmlElement(ElementName = "dataList", DataType = "hexBinary")] + public byte[] Data + { + get + { + return this._data; + } + + set + { + this._data = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._entityID.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._communicationsDeviceID); + dos.WriteUnsignedShort((ushort)this._encodingScheme); + dos.WriteUnsignedShort((ushort)this._tdlType); + dos.WriteUnsignedInt((uint)this._sampleRate); + dos.WriteUnsignedShort((ushort)this._data.Length); + dos.WriteUnsignedShort((ushort)this._samples); + dos.WriteByte (this._data); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._entityID.Unmarshal(dis); + this._communicationsDeviceID = dis.ReadUnsignedShort(); + this._encodingScheme = dis.ReadUnsignedShort(); + this._tdlType = dis.ReadUnsignedShort(); + this._sampleRate = dis.ReadUnsignedInt(); + this._dataLength = dis.ReadUnsignedShort(); + this._samples = dis.ReadUnsignedShort(); + this._data = dis.ReadByteArray(this._dataLength); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._entityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._communicationsDeviceID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._encodingScheme.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._tdlType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._sampleRate.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._data.Length.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._samples.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + foreach (byte b in this._data) + { + sb.Append(b.ToString("X2", CultureInfo.InvariantCulture)); + } + + sb.AppendLine(""); + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as IntercomSignalPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(IntercomSignalPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._entityID.Equals(obj._entityID)) + { + ivarsEqual = false; + } + + if (this._communicationsDeviceID != obj._communicationsDeviceID) + { + ivarsEqual = false; + } + + if (this._encodingScheme != obj._encodingScheme) + { + ivarsEqual = false; + } + + if (this._tdlType != obj._tdlType) + { + ivarsEqual = false; + } + + if (this._sampleRate != obj._sampleRate) + { + ivarsEqual = false; + } + + if (this._dataLength != obj._dataLength) + { + ivarsEqual = false; + } + + if (this._samples != obj._samples) + { + ivarsEqual = false; + } + + if (!this._data.Equals(obj._data)) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._entityID.GetHashCode(); + result = GenerateHash(result) ^ this._communicationsDeviceID.GetHashCode(); + result = GenerateHash(result) ^ this._encodingScheme.GetHashCode(); + result = GenerateHash(result) ^ this._tdlType.GetHashCode(); + result = GenerateHash(result) ^ this._sampleRate.GetHashCode(); + result = GenerateHash(result) ^ this._dataLength.GetHashCode(); + result = GenerateHash(result) ^ this._samples.GetHashCode(); + + if (this._data.Length > 0) + { + for (int idx = 0; idx < this._data.Length; idx++) + { + result = GenerateHash(result) ^ this._data[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/IsPartOfPdu.cs b/Libs/CSharpDis7/IsPartOfPdu.cs new file mode 100644 index 0000000..de30790 --- /dev/null +++ b/Libs/CSharpDis7/IsPartOfPdu.cs @@ -0,0 +1,458 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// The joining of two or more simulation entities is communicated by this PDU. Section 7.8.5 COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(Relationship))] + [XmlInclude(typeof(Vector3Float))] + [XmlInclude(typeof(NamedLocationIdentification))] + [XmlInclude(typeof(EntityType))] + public partial class IsPartOfPdu : EntityManagementFamilyPdu, IEquatable + { + /// + /// ID of entity originating PDU + /// + private EntityID _orginatingEntityID = new EntityID(); + + /// + /// ID of entity receiving PDU + /// + private EntityID _receivingEntityID = new EntityID(); + + /// + /// relationship of joined parts + /// + private Relationship _relationship = new Relationship(); + + /// + /// location of part; centroid of part in host's coordinate system. x=range, y=bearing, z=0 + /// + private Vector3Float _partLocation = new Vector3Float(); + + /// + /// named location + /// + private NamedLocationIdentification _namedLocationID = new NamedLocationIdentification(); + + /// + /// entity type + /// + private EntityType _partEntityType = new EntityType(); + + /// + /// Initializes a new instance of the class. + /// + public IsPartOfPdu() + { + PduType = (byte)36; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(IsPartOfPdu left, IsPartOfPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(IsPartOfPdu left, IsPartOfPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._orginatingEntityID.GetMarshalledSize(); // this._orginatingEntityID + marshalSize += this._receivingEntityID.GetMarshalledSize(); // this._receivingEntityID + marshalSize += this._relationship.GetMarshalledSize(); // this._relationship + marshalSize += this._partLocation.GetMarshalledSize(); // this._partLocation + marshalSize += this._namedLocationID.GetMarshalledSize(); // this._namedLocationID + marshalSize += this._partEntityType.GetMarshalledSize(); // this._partEntityType + return marshalSize; + } + + /// + /// Gets or sets the ID of entity originating PDU + /// + [XmlElement(Type = typeof(EntityID), ElementName = "orginatingEntityID")] + public EntityID OrginatingEntityID + { + get + { + return this._orginatingEntityID; + } + + set + { + this._orginatingEntityID = value; + } + } + + /// + /// Gets or sets the ID of entity receiving PDU + /// + [XmlElement(Type = typeof(EntityID), ElementName = "receivingEntityID")] + public EntityID ReceivingEntityID + { + get + { + return this._receivingEntityID; + } + + set + { + this._receivingEntityID = value; + } + } + + /// + /// Gets or sets the relationship of joined parts + /// + [XmlElement(Type = typeof(Relationship), ElementName = "relationship")] + public Relationship Relationship + { + get + { + return this._relationship; + } + + set + { + this._relationship = value; + } + } + + /// + /// Gets or sets the location of part; centroid of part in host's coordinate system. x=range, y=bearing, z=0 + /// + [XmlElement(Type = typeof(Vector3Float), ElementName = "partLocation")] + public Vector3Float PartLocation + { + get + { + return this._partLocation; + } + + set + { + this._partLocation = value; + } + } + + /// + /// Gets or sets the named location + /// + [XmlElement(Type = typeof(NamedLocationIdentification), ElementName = "namedLocationID")] + public NamedLocationIdentification NamedLocationID + { + get + { + return this._namedLocationID; + } + + set + { + this._namedLocationID = value; + } + } + + /// + /// Gets or sets the entity type + /// + [XmlElement(Type = typeof(EntityType), ElementName = "partEntityType")] + public EntityType PartEntityType + { + get + { + return this._partEntityType; + } + + set + { + this._partEntityType = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._orginatingEntityID.Marshal(dos); + this._receivingEntityID.Marshal(dos); + this._relationship.Marshal(dos); + this._partLocation.Marshal(dos); + this._namedLocationID.Marshal(dos); + this._partEntityType.Marshal(dos); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._orginatingEntityID.Unmarshal(dis); + this._receivingEntityID.Unmarshal(dis); + this._relationship.Unmarshal(dis); + this._partLocation.Unmarshal(dis); + this._namedLocationID.Unmarshal(dis); + this._partEntityType.Unmarshal(dis); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._orginatingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._receivingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._relationship.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._partLocation.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._namedLocationID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._partEntityType.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as IsPartOfPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(IsPartOfPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._orginatingEntityID.Equals(obj._orginatingEntityID)) + { + ivarsEqual = false; + } + + if (!this._receivingEntityID.Equals(obj._receivingEntityID)) + { + ivarsEqual = false; + } + + if (!this._relationship.Equals(obj._relationship)) + { + ivarsEqual = false; + } + + if (!this._partLocation.Equals(obj._partLocation)) + { + ivarsEqual = false; + } + + if (!this._namedLocationID.Equals(obj._namedLocationID)) + { + ivarsEqual = false; + } + + if (!this._partEntityType.Equals(obj._partEntityType)) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._orginatingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._receivingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._relationship.GetHashCode(); + result = GenerateHash(result) ^ this._partLocation.GetHashCode(); + result = GenerateHash(result) ^ this._namedLocationID.GetHashCode(); + result = GenerateHash(result) ^ this._partEntityType.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/JammingTechnique.cs b/Libs/CSharpDis7/JammingTechnique.cs new file mode 100644 index 0000000..bed5994 --- /dev/null +++ b/Libs/CSharpDis7/JammingTechnique.cs @@ -0,0 +1,349 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Jamming technique. Section 6.2.50 + /// + [Serializable] + [XmlRoot] + public partial class JammingTechnique + { + private byte _kind; + + private byte _category; + + private byte _subcategory; + + private byte _specific; + + /// + /// Initializes a new instance of the class. + /// + public JammingTechnique() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(JammingTechnique left, JammingTechnique right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(JammingTechnique left, JammingTechnique right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._kind + marshalSize += 1; // this._category + marshalSize += 1; // this._subcategory + marshalSize += 1; // this._specific + return marshalSize; + } + + [XmlElement(Type = typeof(byte), ElementName = "kind")] + public byte Kind + { + get + { + return this._kind; + } + + set + { + this._kind = value; + } + } + + [XmlElement(Type = typeof(byte), ElementName = "category")] + public byte Category + { + get + { + return this._category; + } + + set + { + this._category = value; + } + } + + [XmlElement(Type = typeof(byte), ElementName = "subcategory")] + public byte Subcategory + { + get + { + return this._subcategory; + } + + set + { + this._subcategory = value; + } + } + + [XmlElement(Type = typeof(byte), ElementName = "specific")] + public byte Specific + { + get + { + return this._specific; + } + + set + { + this._specific = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._kind); + dos.WriteUnsignedByte((byte)this._category); + dos.WriteUnsignedByte((byte)this._subcategory); + dos.WriteUnsignedByte((byte)this._specific); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._kind = dis.ReadUnsignedByte(); + this._category = dis.ReadUnsignedByte(); + this._subcategory = dis.ReadUnsignedByte(); + this._specific = dis.ReadUnsignedByte(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._kind.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._category.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._subcategory.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._specific.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as JammingTechnique; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(JammingTechnique obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._kind != obj._kind) + { + ivarsEqual = false; + } + + if (this._category != obj._category) + { + ivarsEqual = false; + } + + if (this._subcategory != obj._subcategory) + { + ivarsEqual = false; + } + + if (this._specific != obj._specific) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._kind.GetHashCode(); + result = GenerateHash(result) ^ this._category.GetHashCode(); + result = GenerateHash(result) ^ this._subcategory.GetHashCode(); + result = GenerateHash(result) ^ this._specific.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/LaunchedMunitionRecord.cs b/Libs/CSharpDis7/LaunchedMunitionRecord.cs new file mode 100644 index 0000000..8bbb052 --- /dev/null +++ b/Libs/CSharpDis7/LaunchedMunitionRecord.cs @@ -0,0 +1,437 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Identity of a communications node. Section 6.2.51 + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EventIdentifier))] + [XmlInclude(typeof(Vector3Double))] + public partial class LaunchedMunitionRecord + { + private EventIdentifier _fireEventID = new EventIdentifier(); + + private ushort _padding; + + private EventIdentifier _firingEntityID = new EventIdentifier(); + + private ushort _padding2; + + private EventIdentifier _targetEntityID = new EventIdentifier(); + + private ushort _padding3; + + private Vector3Double _targetLocation = new Vector3Double(); + + /// + /// Initializes a new instance of the class. + /// + public LaunchedMunitionRecord() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(LaunchedMunitionRecord left, LaunchedMunitionRecord right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(LaunchedMunitionRecord left, LaunchedMunitionRecord right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += this._fireEventID.GetMarshalledSize(); // this._fireEventID + marshalSize += 2; // this._padding + marshalSize += this._firingEntityID.GetMarshalledSize(); // this._firingEntityID + marshalSize += 2; // this._padding2 + marshalSize += this._targetEntityID.GetMarshalledSize(); // this._targetEntityID + marshalSize += 2; // this._padding3 + marshalSize += this._targetLocation.GetMarshalledSize(); // this._targetLocation + return marshalSize; + } + + [XmlElement(Type = typeof(EventIdentifier), ElementName = "fireEventID")] + public EventIdentifier FireEventID + { + get + { + return this._fireEventID; + } + + set + { + this._fireEventID = value; + } + } + + [XmlElement(Type = typeof(ushort), ElementName = "padding")] + public ushort Padding + { + get + { + return this._padding; + } + + set + { + this._padding = value; + } + } + + [XmlElement(Type = typeof(EventIdentifier), ElementName = "firingEntityID")] + public EventIdentifier FiringEntityID + { + get + { + return this._firingEntityID; + } + + set + { + this._firingEntityID = value; + } + } + + [XmlElement(Type = typeof(ushort), ElementName = "padding2")] + public ushort Padding2 + { + get + { + return this._padding2; + } + + set + { + this._padding2 = value; + } + } + + [XmlElement(Type = typeof(EventIdentifier), ElementName = "targetEntityID")] + public EventIdentifier TargetEntityID + { + get + { + return this._targetEntityID; + } + + set + { + this._targetEntityID = value; + } + } + + [XmlElement(Type = typeof(ushort), ElementName = "padding3")] + public ushort Padding3 + { + get + { + return this._padding3; + } + + set + { + this._padding3 = value; + } + } + + [XmlElement(Type = typeof(Vector3Double), ElementName = "targetLocation")] + public Vector3Double TargetLocation + { + get + { + return this._targetLocation; + } + + set + { + this._targetLocation = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + this._fireEventID.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._padding); + this._firingEntityID.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._padding2); + this._targetEntityID.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._padding3); + this._targetLocation.Marshal(dos); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._fireEventID.Unmarshal(dis); + this._padding = dis.ReadUnsignedShort(); + this._firingEntityID.Unmarshal(dis); + this._padding2 = dis.ReadUnsignedShort(); + this._targetEntityID.Unmarshal(dis); + this._padding3 = dis.ReadUnsignedShort(); + this._targetLocation.Unmarshal(dis); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine(""); + this._fireEventID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._firingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._targetEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._padding3.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._targetLocation.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as LaunchedMunitionRecord; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(LaunchedMunitionRecord obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (!this._fireEventID.Equals(obj._fireEventID)) + { + ivarsEqual = false; + } + + if (this._padding != obj._padding) + { + ivarsEqual = false; + } + + if (!this._firingEntityID.Equals(obj._firingEntityID)) + { + ivarsEqual = false; + } + + if (this._padding2 != obj._padding2) + { + ivarsEqual = false; + } + + if (!this._targetEntityID.Equals(obj._targetEntityID)) + { + ivarsEqual = false; + } + + if (this._padding3 != obj._padding3) + { + ivarsEqual = false; + } + + if (!this._targetLocation.Equals(obj._targetLocation)) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._fireEventID.GetHashCode(); + result = GenerateHash(result) ^ this._padding.GetHashCode(); + result = GenerateHash(result) ^ this._firingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._padding2.GetHashCode(); + result = GenerateHash(result) ^ this._targetEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._padding3.GetHashCode(); + result = GenerateHash(result) ^ this._targetLocation.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/LayerHeader.cs b/Libs/CSharpDis7/LayerHeader.cs new file mode 100644 index 0000000..aedfeaf --- /dev/null +++ b/Libs/CSharpDis7/LayerHeader.cs @@ -0,0 +1,335 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// The identification of the additional information layer number, layer-specific information, and the length of the layer. Section 6.2.52 + /// + [Serializable] + [XmlRoot] + public partial class LayerHeader + { + private byte _layerNumber; + + /// + /// field shall specify layer-specific information that varies by System Type (see 6.2.86) and Layer Number. + /// + private byte _layerSpecificInformation; + + /// + /// This field shall specify the length in octets of the layer, including the Layer Header record + /// + private ushort _length; + + /// + /// Initializes a new instance of the class. + /// + public LayerHeader() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(LayerHeader left, LayerHeader right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(LayerHeader left, LayerHeader right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._layerNumber + marshalSize += 1; // this._layerSpecificInformation + marshalSize += 2; // this._length + return marshalSize; + } + + [XmlElement(Type = typeof(byte), ElementName = "layerNumber")] + public byte LayerNumber + { + get + { + return this._layerNumber; + } + + set + { + this._layerNumber = value; + } + } + + /// + /// Gets or sets the field shall specify layer-specific information that varies by System Type (see 6.2.86) and Layer Number. + /// + [XmlElement(Type = typeof(byte), ElementName = "layerSpecificInformation")] + public byte LayerSpecificInformation + { + get + { + return this._layerSpecificInformation; + } + + set + { + this._layerSpecificInformation = value; + } + } + + /// + /// Gets or sets the This field shall specify the length in octets of the layer, including the Layer Header record + /// + [XmlElement(Type = typeof(ushort), ElementName = "length")] + public ushort Length + { + get + { + return this._length; + } + + set + { + this._length = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._layerNumber); + dos.WriteUnsignedByte((byte)this._layerSpecificInformation); + dos.WriteUnsignedShort((ushort)this._length); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._layerNumber = dis.ReadUnsignedByte(); + this._layerSpecificInformation = dis.ReadUnsignedByte(); + this._length = dis.ReadUnsignedShort(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._layerNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._layerSpecificInformation.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._length.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as LayerHeader; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(LayerHeader obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._layerNumber != obj._layerNumber) + { + ivarsEqual = false; + } + + if (this._layerSpecificInformation != obj._layerSpecificInformation) + { + ivarsEqual = false; + } + + if (this._length != obj._length) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._layerNumber.GetHashCode(); + result = GenerateHash(result) ^ this._layerSpecificInformation.GetHashCode(); + result = GenerateHash(result) ^ this._length.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/LinearObjectStatePdu.cs b/Libs/CSharpDis7/LinearObjectStatePdu.cs new file mode 100644 index 0000000..d73ebc9 --- /dev/null +++ b/Libs/CSharpDis7/LinearObjectStatePdu.cs @@ -0,0 +1,589 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// : Information abut the addition or modification of a synthecic enviroment object that is anchored to the terrain with a single point and has size or orientation. Section 7.10.5 COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(SimulationAddress))] + [XmlInclude(typeof(ObjectType))] + [XmlInclude(typeof(LinearSegmentParameter))] + public partial class LinearObjectStatePdu : SyntheticEnvironmentFamilyPdu, IEquatable + { + /// + /// Object in synthetic environment + /// + private EntityID _objectID = new EntityID(); + + /// + /// Object with which this point object is associated + /// + private EntityID _referencedObjectID = new EntityID(); + + /// + /// unique update number of each state transition of an object + /// + private ushort _updateNumber; + + /// + /// force ID + /// + private byte _forceID; + + /// + /// number of linear segment parameters + /// + private byte _numberOfSegments; + + /// + /// requesterID + /// + private SimulationAddress _requesterID = new SimulationAddress(); + + /// + /// receiver ID + /// + private SimulationAddress _receivingID = new SimulationAddress(); + + /// + /// Object type + /// + private ObjectType _objectType = new ObjectType(); + + /// + /// Linear segment parameters + /// + private List _linearSegmentParameters = new List(); + + /// + /// Initializes a new instance of the class. + /// + public LinearObjectStatePdu() + { + PduType = (byte)44; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(LinearObjectStatePdu left, LinearObjectStatePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(LinearObjectStatePdu left, LinearObjectStatePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._objectID.GetMarshalledSize(); // this._objectID + marshalSize += this._referencedObjectID.GetMarshalledSize(); // this._referencedObjectID + marshalSize += 2; // this._updateNumber + marshalSize += 1; // this._forceID + marshalSize += 1; // this._numberOfSegments + marshalSize += this._requesterID.GetMarshalledSize(); // this._requesterID + marshalSize += this._receivingID.GetMarshalledSize(); // this._receivingID + marshalSize += this._objectType.GetMarshalledSize(); // this._objectType + for (int idx = 0; idx < this._linearSegmentParameters.Count; idx++) + { + LinearSegmentParameter listElement = (LinearSegmentParameter)this._linearSegmentParameters[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Object in synthetic environment + /// + [XmlElement(Type = typeof(EntityID), ElementName = "objectID")] + public EntityID ObjectID + { + get + { + return this._objectID; + } + + set + { + this._objectID = value; + } + } + + /// + /// Gets or sets the Object with which this point object is associated + /// + [XmlElement(Type = typeof(EntityID), ElementName = "referencedObjectID")] + public EntityID ReferencedObjectID + { + get + { + return this._referencedObjectID; + } + + set + { + this._referencedObjectID = value; + } + } + + /// + /// Gets or sets the unique update number of each state transition of an object + /// + [XmlElement(Type = typeof(ushort), ElementName = "updateNumber")] + public ushort UpdateNumber + { + get + { + return this._updateNumber; + } + + set + { + this._updateNumber = value; + } + } + + /// + /// Gets or sets the force ID + /// + [XmlElement(Type = typeof(byte), ElementName = "forceID")] + public byte ForceID + { + get + { + return this._forceID; + } + + set + { + this._forceID = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfSegments method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfSegments")] + public byte NumberOfSegments + { + get + { + return this._numberOfSegments; + } + + set + { + this._numberOfSegments = value; + } + } + + /// + /// Gets or sets the requesterID + /// + [XmlElement(Type = typeof(SimulationAddress), ElementName = "requesterID")] + public SimulationAddress RequesterID + { + get + { + return this._requesterID; + } + + set + { + this._requesterID = value; + } + } + + /// + /// Gets or sets the receiver ID + /// + [XmlElement(Type = typeof(SimulationAddress), ElementName = "receivingID")] + public SimulationAddress ReceivingID + { + get + { + return this._receivingID; + } + + set + { + this._receivingID = value; + } + } + + /// + /// Gets or sets the Object type + /// + [XmlElement(Type = typeof(ObjectType), ElementName = "objectType")] + public ObjectType ObjectType + { + get + { + return this._objectType; + } + + set + { + this._objectType = value; + } + } + + /// + /// Gets or sets the Linear segment parameters + /// + [XmlElement(ElementName = "linearSegmentParametersList", Type = typeof(List))] + public List LinearSegmentParameters + { + get + { + return this._linearSegmentParameters; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._objectID.Marshal(dos); + this._referencedObjectID.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._updateNumber); + dos.WriteUnsignedByte((byte)this._forceID); + dos.WriteUnsignedByte((byte)this._linearSegmentParameters.Count); + this._requesterID.Marshal(dos); + this._receivingID.Marshal(dos); + this._objectType.Marshal(dos); + + for (int idx = 0; idx < this._linearSegmentParameters.Count; idx++) + { + LinearSegmentParameter aLinearSegmentParameter = (LinearSegmentParameter)this._linearSegmentParameters[idx]; + aLinearSegmentParameter.Marshal(dos); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._objectID.Unmarshal(dis); + this._referencedObjectID.Unmarshal(dis); + this._updateNumber = dis.ReadUnsignedShort(); + this._forceID = dis.ReadUnsignedByte(); + this._numberOfSegments = dis.ReadUnsignedByte(); + this._requesterID.Unmarshal(dis); + this._receivingID.Unmarshal(dis); + this._objectType.Unmarshal(dis); + for (int idx = 0; idx < this.NumberOfSegments; idx++) + { + LinearSegmentParameter anX = new LinearSegmentParameter(); + anX.Unmarshal(dis); + this._linearSegmentParameters.Add(anX); + }; + + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._objectID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._referencedObjectID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._updateNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._forceID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._linearSegmentParameters.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._requesterID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._receivingID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._objectType.Reflection(sb); + sb.AppendLine(""); + for (int idx = 0; idx < this._linearSegmentParameters.Count; idx++) + { + sb.AppendLine(""); + LinearSegmentParameter aLinearSegmentParameter = (LinearSegmentParameter)this._linearSegmentParameters[idx]; + aLinearSegmentParameter.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as LinearObjectStatePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(LinearObjectStatePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._objectID.Equals(obj._objectID)) + { + ivarsEqual = false; + } + + if (!this._referencedObjectID.Equals(obj._referencedObjectID)) + { + ivarsEqual = false; + } + + if (this._updateNumber != obj._updateNumber) + { + ivarsEqual = false; + } + + if (this._forceID != obj._forceID) + { + ivarsEqual = false; + } + + if (this._numberOfSegments != obj._numberOfSegments) + { + ivarsEqual = false; + } + + if (!this._requesterID.Equals(obj._requesterID)) + { + ivarsEqual = false; + } + + if (!this._receivingID.Equals(obj._receivingID)) + { + ivarsEqual = false; + } + + if (!this._objectType.Equals(obj._objectType)) + { + ivarsEqual = false; + } + + if (this._linearSegmentParameters.Count != obj._linearSegmentParameters.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._linearSegmentParameters.Count; idx++) + { + if (!this._linearSegmentParameters[idx].Equals(obj._linearSegmentParameters[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._objectID.GetHashCode(); + result = GenerateHash(result) ^ this._referencedObjectID.GetHashCode(); + result = GenerateHash(result) ^ this._updateNumber.GetHashCode(); + result = GenerateHash(result) ^ this._forceID.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfSegments.GetHashCode(); + result = GenerateHash(result) ^ this._requesterID.GetHashCode(); + result = GenerateHash(result) ^ this._receivingID.GetHashCode(); + result = GenerateHash(result) ^ this._objectType.GetHashCode(); + + if (this._linearSegmentParameters.Count > 0) + { + for (int idx = 0; idx < this._linearSegmentParameters.Count; idx++) + { + result = GenerateHash(result) ^ this._linearSegmentParameters[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/LinearSegmentParameter.cs b/Libs/CSharpDis7/LinearSegmentParameter.cs new file mode 100644 index 0000000..7e037b5 --- /dev/null +++ b/Libs/CSharpDis7/LinearSegmentParameter.cs @@ -0,0 +1,571 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// The specification of an individual segment of a linear segment synthetic environment object in a Linear Object State PDU Section 6.2.53 + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(Vector3Double))] + [XmlInclude(typeof(EulerAngles))] + public partial class LinearSegmentParameter + { + /// + /// the individual segment of the linear segment + /// + private byte _segmentNumber; + + /// + /// whether a modification has been made to the point object’s location or orientation + /// + private byte _segmentModification; + + /// + /// general dynamic appearance attributes of the segment. This record shall be defined as a 16-bit record of enumerations. The values defined for this record are included in Section 12 of SISO-REF-010. + /// + private ushort _generalSegmentAppearance; + + /// + /// This field shall specify specific dynamic appearance attributes of the segment. This record shall be defined as a 32-bit record of enumerations. + /// + private ushort _specificSegmentAppearance; + + /// + /// This field shall specify the location of the linear segment in the simulated world and shall be represented by a World Coordinates record + /// + private Vector3Double _segmentLocation = new Vector3Double(); + + /// + /// orientation of the linear segment about the segment location and shall be represented by a Euler Angles record + /// + private EulerAngles _segmentOrientation = new EulerAngles(); + + /// + /// length of the linear segment, in meters, extending in the positive X direction + /// + private ushort _segmentLength; + + /// + /// The total width of the linear segment, in meters, shall be specified by a 16-bit unsigned integer. One-half of the width shall extend in the positive Y direction, and one-half of the width shall extend in the negative Y direction. + /// + private ushort _segmentWidth; + + /// + /// The height of the linear segment, in meters, above ground shall be specified by a 16-bit unsigned integer. + /// + private ushort _segmentHeight; + + /// + /// The depth of the linear segment, in meters, below ground level + /// + private ushort _segmentDepth; + + /// + /// Initializes a new instance of the class. + /// + public LinearSegmentParameter() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(LinearSegmentParameter left, LinearSegmentParameter right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(LinearSegmentParameter left, LinearSegmentParameter right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._segmentNumber + marshalSize += 1; // this._segmentModification + marshalSize += 2; // this._generalSegmentAppearance + marshalSize += 2; // this._specificSegmentAppearance + marshalSize += this._segmentLocation.GetMarshalledSize(); // this._segmentLocation + marshalSize += this._segmentOrientation.GetMarshalledSize(); // this._segmentOrientation + marshalSize += 2; // this._segmentLength + marshalSize += 2; // this._segmentWidth + marshalSize += 2; // this._segmentHeight + marshalSize += 2; // this._segmentDepth + return marshalSize; + } + + /// + /// Gets or sets the the individual segment of the linear segment + /// + [XmlElement(Type = typeof(byte), ElementName = "segmentNumber")] + public byte SegmentNumber + { + get + { + return this._segmentNumber; + } + + set + { + this._segmentNumber = value; + } + } + + /// + /// Gets or sets the whether a modification has been made to the point object’s location or orientation + /// + [XmlElement(Type = typeof(byte), ElementName = "segmentModification")] + public byte SegmentModification + { + get + { + return this._segmentModification; + } + + set + { + this._segmentModification = value; + } + } + + /// + /// Gets or sets the general dynamic appearance attributes of the segment. This record shall be defined as a 16-bit record of enumerations. The values defined for this record are included in Section 12 of SISO-REF-010. + /// + [XmlElement(Type = typeof(ushort), ElementName = "generalSegmentAppearance")] + public ushort GeneralSegmentAppearance + { + get + { + return this._generalSegmentAppearance; + } + + set + { + this._generalSegmentAppearance = value; + } + } + + /// + /// Gets or sets the This field shall specify specific dynamic appearance attributes of the segment. This record shall be defined as a 32-bit record of enumerations. + /// + [XmlElement(Type = typeof(ushort), ElementName = "specificSegmentAppearance")] + public ushort SpecificSegmentAppearance + { + get + { + return this._specificSegmentAppearance; + } + + set + { + this._specificSegmentAppearance = value; + } + } + + /// + /// Gets or sets the This field shall specify the location of the linear segment in the simulated world and shall be represented by a World Coordinates record + /// + [XmlElement(Type = typeof(Vector3Double), ElementName = "segmentLocation")] + public Vector3Double SegmentLocation + { + get + { + return this._segmentLocation; + } + + set + { + this._segmentLocation = value; + } + } + + /// + /// Gets or sets the orientation of the linear segment about the segment location and shall be represented by a Euler Angles record + /// + [XmlElement(Type = typeof(EulerAngles), ElementName = "segmentOrientation")] + public EulerAngles SegmentOrientation + { + get + { + return this._segmentOrientation; + } + + set + { + this._segmentOrientation = value; + } + } + + /// + /// Gets or sets the length of the linear segment, in meters, extending in the positive X direction + /// + [XmlElement(Type = typeof(ushort), ElementName = "segmentLength")] + public ushort SegmentLength + { + get + { + return this._segmentLength; + } + + set + { + this._segmentLength = value; + } + } + + /// + /// Gets or sets the The total width of the linear segment, in meters, shall be specified by a 16-bit unsigned integer. One-half of the width shall extend in the positive Y direction, and one-half of the width shall extend in the negative Y direction. + /// + [XmlElement(Type = typeof(ushort), ElementName = "segmentWidth")] + public ushort SegmentWidth + { + get + { + return this._segmentWidth; + } + + set + { + this._segmentWidth = value; + } + } + + /// + /// Gets or sets the The height of the linear segment, in meters, above ground shall be specified by a 16-bit unsigned integer. + /// + [XmlElement(Type = typeof(ushort), ElementName = "segmentHeight")] + public ushort SegmentHeight + { + get + { + return this._segmentHeight; + } + + set + { + this._segmentHeight = value; + } + } + + /// + /// Gets or sets the The depth of the linear segment, in meters, below ground level + /// + [XmlElement(Type = typeof(ushort), ElementName = "segmentDepth")] + public ushort SegmentDepth + { + get + { + return this._segmentDepth; + } + + set + { + this._segmentDepth = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._segmentNumber); + dos.WriteUnsignedByte((byte)this._segmentModification); + dos.WriteUnsignedShort((ushort)this._generalSegmentAppearance); + dos.WriteUnsignedShort((ushort)this._specificSegmentAppearance); + this._segmentLocation.Marshal(dos); + this._segmentOrientation.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._segmentLength); + dos.WriteUnsignedShort((ushort)this._segmentWidth); + dos.WriteUnsignedShort((ushort)this._segmentHeight); + dos.WriteUnsignedShort((ushort)this._segmentDepth); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._segmentNumber = dis.ReadUnsignedByte(); + this._segmentModification = dis.ReadUnsignedByte(); + this._generalSegmentAppearance = dis.ReadUnsignedShort(); + this._specificSegmentAppearance = dis.ReadUnsignedShort(); + this._segmentLocation.Unmarshal(dis); + this._segmentOrientation.Unmarshal(dis); + this._segmentLength = dis.ReadUnsignedShort(); + this._segmentWidth = dis.ReadUnsignedShort(); + this._segmentHeight = dis.ReadUnsignedShort(); + this._segmentDepth = dis.ReadUnsignedShort(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._segmentNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._segmentModification.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._generalSegmentAppearance.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._specificSegmentAppearance.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._segmentLocation.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._segmentOrientation.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._segmentLength.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._segmentWidth.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._segmentHeight.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._segmentDepth.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as LinearSegmentParameter; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(LinearSegmentParameter obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._segmentNumber != obj._segmentNumber) + { + ivarsEqual = false; + } + + if (this._segmentModification != obj._segmentModification) + { + ivarsEqual = false; + } + + if (this._generalSegmentAppearance != obj._generalSegmentAppearance) + { + ivarsEqual = false; + } + + if (this._specificSegmentAppearance != obj._specificSegmentAppearance) + { + ivarsEqual = false; + } + + if (!this._segmentLocation.Equals(obj._segmentLocation)) + { + ivarsEqual = false; + } + + if (!this._segmentOrientation.Equals(obj._segmentOrientation)) + { + ivarsEqual = false; + } + + if (this._segmentLength != obj._segmentLength) + { + ivarsEqual = false; + } + + if (this._segmentWidth != obj._segmentWidth) + { + ivarsEqual = false; + } + + if (this._segmentHeight != obj._segmentHeight) + { + ivarsEqual = false; + } + + if (this._segmentDepth != obj._segmentDepth) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._segmentNumber.GetHashCode(); + result = GenerateHash(result) ^ this._segmentModification.GetHashCode(); + result = GenerateHash(result) ^ this._generalSegmentAppearance.GetHashCode(); + result = GenerateHash(result) ^ this._specificSegmentAppearance.GetHashCode(); + result = GenerateHash(result) ^ this._segmentLocation.GetHashCode(); + result = GenerateHash(result) ^ this._segmentOrientation.GetHashCode(); + result = GenerateHash(result) ^ this._segmentLength.GetHashCode(); + result = GenerateHash(result) ^ this._segmentWidth.GetHashCode(); + result = GenerateHash(result) ^ this._segmentHeight.GetHashCode(); + result = GenerateHash(result) ^ this._segmentDepth.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/LiveEntityIdentifier.cs b/Libs/CSharpDis7/LiveEntityIdentifier.cs new file mode 100644 index 0000000..0e93889 --- /dev/null +++ b/Libs/CSharpDis7/LiveEntityIdentifier.cs @@ -0,0 +1,312 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// The unique designation of each entity in an event or exercise that is contained in a Live Entity PDU. Section 6.2.54 + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(LiveSimulationAddress))] + public partial class LiveEntityIdentifier + { + /// + /// Live Simulation Address record (see 6.2.55) + /// + private LiveSimulationAddress _liveSimulationAddress = new LiveSimulationAddress(); + + /// + /// Live entity number + /// + private ushort _entityNumber; + + /// + /// Initializes a new instance of the class. + /// + public LiveEntityIdentifier() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(LiveEntityIdentifier left, LiveEntityIdentifier right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(LiveEntityIdentifier left, LiveEntityIdentifier right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += this._liveSimulationAddress.GetMarshalledSize(); // this._liveSimulationAddress + marshalSize += 2; // this._entityNumber + return marshalSize; + } + + /// + /// Gets or sets the Live Simulation Address record (see 6.2.55) + /// + [XmlElement(Type = typeof(LiveSimulationAddress), ElementName = "liveSimulationAddress")] + public LiveSimulationAddress LiveSimulationAddress + { + get + { + return this._liveSimulationAddress; + } + + set + { + this._liveSimulationAddress = value; + } + } + + /// + /// Gets or sets the Live entity number + /// + [XmlElement(Type = typeof(ushort), ElementName = "entityNumber")] + public ushort EntityNumber + { + get + { + return this._entityNumber; + } + + set + { + this._entityNumber = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + this._liveSimulationAddress.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._entityNumber); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._liveSimulationAddress.Unmarshal(dis); + this._entityNumber = dis.ReadUnsignedShort(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine(""); + this._liveSimulationAddress.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._entityNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as LiveEntityIdentifier; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(LiveEntityIdentifier obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (!this._liveSimulationAddress.Equals(obj._liveSimulationAddress)) + { + ivarsEqual = false; + } + + if (this._entityNumber != obj._entityNumber) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._liveSimulationAddress.GetHashCode(); + result = GenerateHash(result) ^ this._entityNumber.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/LiveEntityPdu.cs b/Libs/CSharpDis7/LiveEntityPdu.cs new file mode 100644 index 0000000..3affe6b --- /dev/null +++ b/Libs/CSharpDis7/LiveEntityPdu.cs @@ -0,0 +1,301 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// The live entity PDUs have a header with some different field names, but the same length. Section 9.3.2 + /// + [Serializable] + [XmlRoot] + public partial class LiveEntityPdu : PduSuperclass, IEquatable + { + /// + /// Subprotocol used to decode the PDU. Section 13 of EBV. + /// + private ushort _subprotocolNumber; + + /// + /// zero-filled array of padding + /// + private byte _padding; + + /// + /// Initializes a new instance of the class. + /// + public LiveEntityPdu() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(LiveEntityPdu left, LiveEntityPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(LiveEntityPdu left, LiveEntityPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 2; // this._subprotocolNumber + marshalSize += 1; // this._padding + return marshalSize; + } + + /// + /// Gets or sets the Subprotocol used to decode the PDU. Section 13 of EBV. + /// + [XmlElement(Type = typeof(ushort), ElementName = "subprotocolNumber")] + public ushort SubprotocolNumber + { + get + { + return this._subprotocolNumber; + } + + set + { + this._subprotocolNumber = value; + } + } + + /// + /// Gets or sets the zero-filled array of padding + /// + [XmlElement(Type = typeof(byte), ElementName = "padding")] + public byte Padding + { + get + { + return this._padding; + } + + set + { + this._padding = value; + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._subprotocolNumber); + dos.WriteUnsignedByte((byte)this._padding); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._subprotocolNumber = dis.ReadUnsignedShort(); + this._padding = dis.ReadUnsignedByte(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._subprotocolNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as LiveEntityPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(LiveEntityPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._subprotocolNumber != obj._subprotocolNumber) + { + ivarsEqual = false; + } + + if (this._padding != obj._padding) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._subprotocolNumber.GetHashCode(); + result = GenerateHash(result) ^ this._padding.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/LiveSimulationAddress.cs b/Libs/CSharpDis7/LiveSimulationAddress.cs new file mode 100644 index 0000000..bde7892 --- /dev/null +++ b/Libs/CSharpDis7/LiveSimulationAddress.cs @@ -0,0 +1,309 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// A simulation's designation associated with all Live Entity IDs contained in Live Entity PDUs. Section 6.2.55 + /// + [Serializable] + [XmlRoot] + public partial class LiveSimulationAddress + { + /// + /// facility, installation, organizational unit or geographic location may have multiple sites associated with it. The Site Number is the first component of the Live Simulation Address, which defines a live simulation. + /// + private byte _liveSiteNumber; + + /// + /// An application associated with a live site is termed a live application. Each live application participating in an event + /// + private ushort _liveApplicationNumber; + + /// + /// Initializes a new instance of the class. + /// + public LiveSimulationAddress() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(LiveSimulationAddress left, LiveSimulationAddress right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(LiveSimulationAddress left, LiveSimulationAddress right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._liveSiteNumber + marshalSize += 2; // this._liveApplicationNumber + return marshalSize; + } + + /// + /// Gets or sets the facility, installation, organizational unit or geographic location may have multiple sites associated with it. The Site Number is the first component of the Live Simulation Address, which defines a live simulation. + /// + [XmlElement(Type = typeof(byte), ElementName = "liveSiteNumber")] + public byte LiveSiteNumber + { + get + { + return this._liveSiteNumber; + } + + set + { + this._liveSiteNumber = value; + } + } + + /// + /// Gets or sets the An application associated with a live site is termed a live application. Each live application participating in an event + /// + [XmlElement(Type = typeof(ushort), ElementName = "liveApplicationNumber")] + public ushort LiveApplicationNumber + { + get + { + return this._liveApplicationNumber; + } + + set + { + this._liveApplicationNumber = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._liveSiteNumber); + dos.WriteUnsignedShort((ushort)this._liveApplicationNumber); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._liveSiteNumber = dis.ReadUnsignedByte(); + this._liveApplicationNumber = dis.ReadUnsignedShort(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._liveSiteNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._liveApplicationNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as LiveSimulationAddress; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(LiveSimulationAddress obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._liveSiteNumber != obj._liveSiteNumber) + { + ivarsEqual = false; + } + + if (this._liveApplicationNumber != obj._liveApplicationNumber) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._liveSiteNumber.GetHashCode(); + result = GenerateHash(result) ^ this._liveApplicationNumber.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/LogisticsFamilyPdu.cs b/Libs/CSharpDis7/LogisticsFamilyPdu.cs new file mode 100644 index 0000000..08d35a9 --- /dev/null +++ b/Libs/CSharpDis7/LogisticsFamilyPdu.cs @@ -0,0 +1,248 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Abstract superclass for logistics PDUs. Section 7.4 COMPLETE + /// + [Serializable] + [XmlRoot] + public partial class LogisticsFamilyPdu : Pdu, IEquatable + { + /// + /// Initializes a new instance of the class. + /// + public LogisticsFamilyPdu() + { + ProtocolFamily = (byte)3; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(LogisticsFamilyPdu left, LogisticsFamilyPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(LogisticsFamilyPdu left, LogisticsFamilyPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + return marshalSize; + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public virtual void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as LogisticsFamilyPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(LogisticsFamilyPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/MineEntityIdentifier.cs b/Libs/CSharpDis7/MineEntityIdentifier.cs new file mode 100644 index 0000000..ed07d91 --- /dev/null +++ b/Libs/CSharpDis7/MineEntityIdentifier.cs @@ -0,0 +1,312 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// The unique designation of a mine contained in the Minefield Data PDU. No espdus are issued for mine entities. Section 6.2.56 + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(SimulationAddress))] + public partial class MineEntityIdentifier + { + /// + /// + /// + private SimulationAddress _simulationAddress = new SimulationAddress(); + + /// + /// + /// + private ushort _mineEntityNumber; + + /// + /// Initializes a new instance of the class. + /// + public MineEntityIdentifier() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(MineEntityIdentifier left, MineEntityIdentifier right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(MineEntityIdentifier left, MineEntityIdentifier right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += this._simulationAddress.GetMarshalledSize(); // this._simulationAddress + marshalSize += 2; // this._mineEntityNumber + return marshalSize; + } + + /// + /// Gets or sets the + /// + [XmlElement(Type = typeof(SimulationAddress), ElementName = "simulationAddress")] + public SimulationAddress SimulationAddress + { + get + { + return this._simulationAddress; + } + + set + { + this._simulationAddress = value; + } + } + + /// + /// Gets or sets the + /// + [XmlElement(Type = typeof(ushort), ElementName = "mineEntityNumber")] + public ushort MineEntityNumber + { + get + { + return this._mineEntityNumber; + } + + set + { + this._mineEntityNumber = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + this._simulationAddress.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._mineEntityNumber); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._simulationAddress.Unmarshal(dis); + this._mineEntityNumber = dis.ReadUnsignedShort(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine(""); + this._simulationAddress.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._mineEntityNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as MineEntityIdentifier; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(MineEntityIdentifier obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (!this._simulationAddress.Equals(obj._simulationAddress)) + { + ivarsEqual = false; + } + + if (this._mineEntityNumber != obj._mineEntityNumber) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._simulationAddress.GetHashCode(); + result = GenerateHash(result) ^ this._mineEntityNumber.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/MinefieldFamilyPdu.cs b/Libs/CSharpDis7/MinefieldFamilyPdu.cs new file mode 100644 index 0000000..222ae64 --- /dev/null +++ b/Libs/CSharpDis7/MinefieldFamilyPdu.cs @@ -0,0 +1,248 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Abstract superclass for PDUs relating to minefields. Section 7.9 + /// + [Serializable] + [XmlRoot] + public partial class MinefieldFamilyPdu : Pdu, IEquatable + { + /// + /// Initializes a new instance of the class. + /// + public MinefieldFamilyPdu() + { + ProtocolFamily = (byte)8; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(MinefieldFamilyPdu left, MinefieldFamilyPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(MinefieldFamilyPdu left, MinefieldFamilyPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + return marshalSize; + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public virtual void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as MinefieldFamilyPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(MinefieldFamilyPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/MinefieldIdentifier.cs b/Libs/CSharpDis7/MinefieldIdentifier.cs new file mode 100644 index 0000000..31a9856 --- /dev/null +++ b/Libs/CSharpDis7/MinefieldIdentifier.cs @@ -0,0 +1,312 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// The unique designation of a minefield Section 6.2.57 + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(SimulationAddress))] + public partial class MinefieldIdentifier + { + /// + /// + /// + private SimulationAddress _simulationAddress = new SimulationAddress(); + + /// + /// + /// + private ushort _minefieldNumber; + + /// + /// Initializes a new instance of the class. + /// + public MinefieldIdentifier() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(MinefieldIdentifier left, MinefieldIdentifier right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(MinefieldIdentifier left, MinefieldIdentifier right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += this._simulationAddress.GetMarshalledSize(); // this._simulationAddress + marshalSize += 2; // this._minefieldNumber + return marshalSize; + } + + /// + /// Gets or sets the + /// + [XmlElement(Type = typeof(SimulationAddress), ElementName = "simulationAddress")] + public SimulationAddress SimulationAddress + { + get + { + return this._simulationAddress; + } + + set + { + this._simulationAddress = value; + } + } + + /// + /// Gets or sets the + /// + [XmlElement(Type = typeof(ushort), ElementName = "minefieldNumber")] + public ushort MinefieldNumber + { + get + { + return this._minefieldNumber; + } + + set + { + this._minefieldNumber = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + this._simulationAddress.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._minefieldNumber); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._simulationAddress.Unmarshal(dis); + this._minefieldNumber = dis.ReadUnsignedShort(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine(""); + this._simulationAddress.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._minefieldNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as MinefieldIdentifier; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(MinefieldIdentifier obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (!this._simulationAddress.Equals(obj._simulationAddress)) + { + ivarsEqual = false; + } + + if (this._minefieldNumber != obj._minefieldNumber) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._simulationAddress.GetHashCode(); + result = GenerateHash(result) ^ this._minefieldNumber.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/MinefieldResponseNackPdu.cs b/Libs/CSharpDis7/MinefieldResponseNackPdu.cs new file mode 100644 index 0000000..0a3d64e --- /dev/null +++ b/Libs/CSharpDis7/MinefieldResponseNackPdu.cs @@ -0,0 +1,453 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// proivde the means to request a retransmit of a minefield data pdu. Section 7.9.5 COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(EightByteChunk))] + public partial class MinefieldResponseNackPdu : MinefieldFamilyPdu, IEquatable + { + /// + /// Minefield ID + /// + private EntityID _minefieldID = new EntityID(); + + /// + /// entity ID making the request + /// + private EntityID _requestingEntityID = new EntityID(); + + /// + /// request ID + /// + private byte _requestID; + + /// + /// how many pdus were missing + /// + private byte _numberOfMissingPdus; + + /// + /// PDU sequence numbers that were missing + /// + private List _missingPduSequenceNumbers = new List(); + + /// + /// Initializes a new instance of the class. + /// + public MinefieldResponseNackPdu() + { + PduType = (byte)40; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(MinefieldResponseNackPdu left, MinefieldResponseNackPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(MinefieldResponseNackPdu left, MinefieldResponseNackPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._minefieldID.GetMarshalledSize(); // this._minefieldID + marshalSize += this._requestingEntityID.GetMarshalledSize(); // this._requestingEntityID + marshalSize += 1; // this._requestID + marshalSize += 1; // this._numberOfMissingPdus + for (int idx = 0; idx < this._missingPduSequenceNumbers.Count; idx++) + { + EightByteChunk listElement = (EightByteChunk)this._missingPduSequenceNumbers[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Minefield ID + /// + [XmlElement(Type = typeof(EntityID), ElementName = "minefieldID")] + public EntityID MinefieldID + { + get + { + return this._minefieldID; + } + + set + { + this._minefieldID = value; + } + } + + /// + /// Gets or sets the entity ID making the request + /// + [XmlElement(Type = typeof(EntityID), ElementName = "requestingEntityID")] + public EntityID RequestingEntityID + { + get + { + return this._requestingEntityID; + } + + set + { + this._requestingEntityID = value; + } + } + + /// + /// Gets or sets the request ID + /// + [XmlElement(Type = typeof(byte), ElementName = "requestID")] + public byte RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfMissingPdus method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfMissingPdus")] + public byte NumberOfMissingPdus + { + get + { + return this._numberOfMissingPdus; + } + + set + { + this._numberOfMissingPdus = value; + } + } + + /// + /// Gets or sets the PDU sequence numbers that were missing + /// + [XmlElement(ElementName = "missingPduSequenceNumbersList", Type = typeof(List))] + public List MissingPduSequenceNumbers + { + get + { + return this._missingPduSequenceNumbers; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._minefieldID.Marshal(dos); + this._requestingEntityID.Marshal(dos); + dos.WriteUnsignedByte((byte)this._requestID); + dos.WriteUnsignedByte((byte)this._missingPduSequenceNumbers.Count); + + for (int idx = 0; idx < this._missingPduSequenceNumbers.Count; idx++) + { + EightByteChunk aEightByteChunk = (EightByteChunk)this._missingPduSequenceNumbers[idx]; + aEightByteChunk.Marshal(dos); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._minefieldID.Unmarshal(dis); + this._requestingEntityID.Unmarshal(dis); + this._requestID = dis.ReadUnsignedByte(); + this._numberOfMissingPdus = dis.ReadUnsignedByte(); + for (int idx = 0; idx < this.NumberOfMissingPdus; idx++) + { + EightByteChunk anX = new EightByteChunk(); + anX.Unmarshal(dis); + this._missingPduSequenceNumbers.Add(anX); + }; + + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._minefieldID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._requestingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._missingPduSequenceNumbers.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._missingPduSequenceNumbers.Count; idx++) + { + sb.AppendLine(""); + EightByteChunk aEightByteChunk = (EightByteChunk)this._missingPduSequenceNumbers[idx]; + aEightByteChunk.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as MinefieldResponseNackPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(MinefieldResponseNackPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._minefieldID.Equals(obj._minefieldID)) + { + ivarsEqual = false; + } + + if (!this._requestingEntityID.Equals(obj._requestingEntityID)) + { + ivarsEqual = false; + } + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + if (this._numberOfMissingPdus != obj._numberOfMissingPdus) + { + ivarsEqual = false; + } + + if (this._missingPduSequenceNumbers.Count != obj._missingPduSequenceNumbers.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._missingPduSequenceNumbers.Count; idx++) + { + if (!this._missingPduSequenceNumbers[idx].Equals(obj._missingPduSequenceNumbers[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._minefieldID.GetHashCode(); + result = GenerateHash(result) ^ this._requestingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfMissingPdus.GetHashCode(); + + if (this._missingPduSequenceNumbers.Count > 0) + { + for (int idx = 0; idx < this._missingPduSequenceNumbers.Count; idx++) + { + result = GenerateHash(result) ^ this._missingPduSequenceNumbers[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/MinefieldStatePdu.cs b/Libs/CSharpDis7/MinefieldStatePdu.cs new file mode 100644 index 0000000..7ba480f --- /dev/null +++ b/Libs/CSharpDis7/MinefieldStatePdu.cs @@ -0,0 +1,723 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// information about the complete minefield. The minefield presence, perimiter, etc. Section 7.9.2 COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(MinefieldIdentifier))] + [XmlInclude(typeof(EntityType))] + [XmlInclude(typeof(Vector3Double))] + [XmlInclude(typeof(EulerAngles))] + [XmlInclude(typeof(Vector2Float))] + [XmlInclude(typeof(EntityType))] + public partial class MinefieldStatePdu : MinefieldFamilyPdu, IEquatable + { + /// + /// Minefield ID + /// + private MinefieldIdentifier _minefieldID = new MinefieldIdentifier(); + + /// + /// Minefield sequence + /// + private ushort _minefieldSequence; + + /// + /// force ID + /// + private byte _forceID; + + /// + /// Number of permieter points + /// + private byte _numberOfPerimeterPoints; + + /// + /// type of minefield + /// + private EntityType _minefieldType = new EntityType(); + + /// + /// how many mine types + /// + private ushort _numberOfMineTypes; + + /// + /// location of center of minefield in world coords + /// + private Vector3Double _minefieldLocation = new Vector3Double(); + + /// + /// orientation of minefield + /// + private EulerAngles _minefieldOrientation = new EulerAngles(); + + /// + /// appearance bitflags + /// + private ushort _appearance; + + /// + /// protocolMode. First two bits are the protocol mode, 14 bits reserved. + /// + private ushort _protocolMode; + + /// + /// perimeter points for the minefield + /// + private List _perimeterPoints = new List(); + + /// + /// Type of mines + /// + private List _mineType = new List(); + + /// + /// Initializes a new instance of the class. + /// + public MinefieldStatePdu() + { + PduType = (byte)37; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(MinefieldStatePdu left, MinefieldStatePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(MinefieldStatePdu left, MinefieldStatePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._minefieldID.GetMarshalledSize(); // this._minefieldID + marshalSize += 2; // this._minefieldSequence + marshalSize += 1; // this._forceID + marshalSize += 1; // this._numberOfPerimeterPoints + marshalSize += this._minefieldType.GetMarshalledSize(); // this._minefieldType + marshalSize += 2; // this._numberOfMineTypes + marshalSize += this._minefieldLocation.GetMarshalledSize(); // this._minefieldLocation + marshalSize += this._minefieldOrientation.GetMarshalledSize(); // this._minefieldOrientation + marshalSize += 2; // this._appearance + marshalSize += 2; // this._protocolMode + for (int idx = 0; idx < this._perimeterPoints.Count; idx++) + { + Vector2Float listElement = (Vector2Float)this._perimeterPoints[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._mineType.Count; idx++) + { + EntityType listElement = (EntityType)this._mineType[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Minefield ID + /// + [XmlElement(Type = typeof(MinefieldIdentifier), ElementName = "minefieldID")] + public MinefieldIdentifier MinefieldID + { + get + { + return this._minefieldID; + } + + set + { + this._minefieldID = value; + } + } + + /// + /// Gets or sets the Minefield sequence + /// + [XmlElement(Type = typeof(ushort), ElementName = "minefieldSequence")] + public ushort MinefieldSequence + { + get + { + return this._minefieldSequence; + } + + set + { + this._minefieldSequence = value; + } + } + + /// + /// Gets or sets the force ID + /// + [XmlElement(Type = typeof(byte), ElementName = "forceID")] + public byte ForceID + { + get + { + return this._forceID; + } + + set + { + this._forceID = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfPerimeterPoints method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfPerimeterPoints")] + public byte NumberOfPerimeterPoints + { + get + { + return this._numberOfPerimeterPoints; + } + + set + { + this._numberOfPerimeterPoints = value; + } + } + + /// + /// Gets or sets the type of minefield + /// + [XmlElement(Type = typeof(EntityType), ElementName = "minefieldType")] + public EntityType MinefieldType + { + get + { + return this._minefieldType; + } + + set + { + this._minefieldType = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfMineTypes method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(ushort), ElementName = "numberOfMineTypes")] + public ushort NumberOfMineTypes + { + get + { + return this._numberOfMineTypes; + } + + set + { + this._numberOfMineTypes = value; + } + } + + /// + /// Gets or sets the location of center of minefield in world coords + /// + [XmlElement(Type = typeof(Vector3Double), ElementName = "minefieldLocation")] + public Vector3Double MinefieldLocation + { + get + { + return this._minefieldLocation; + } + + set + { + this._minefieldLocation = value; + } + } + + /// + /// Gets or sets the orientation of minefield + /// + [XmlElement(Type = typeof(EulerAngles), ElementName = "minefieldOrientation")] + public EulerAngles MinefieldOrientation + { + get + { + return this._minefieldOrientation; + } + + set + { + this._minefieldOrientation = value; + } + } + + /// + /// Gets or sets the appearance bitflags + /// + [XmlElement(Type = typeof(ushort), ElementName = "appearance")] + public ushort Appearance + { + get + { + return this._appearance; + } + + set + { + this._appearance = value; + } + } + + /// + /// Gets or sets the protocolMode. First two bits are the protocol mode, 14 bits reserved. + /// + [XmlElement(Type = typeof(ushort), ElementName = "protocolMode")] + public ushort ProtocolMode + { + get + { + return this._protocolMode; + } + + set + { + this._protocolMode = value; + } + } + + /// + /// Gets or sets the perimeter points for the minefield + /// + [XmlElement(ElementName = "perimeterPointsList", Type = typeof(List))] + public List PerimeterPoints + { + get + { + return this._perimeterPoints; + } + } + + /// + /// Gets or sets the Type of mines + /// + [XmlElement(ElementName = "mineTypeList", Type = typeof(List))] + public List MineType + { + get + { + return this._mineType; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._minefieldID.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._minefieldSequence); + dos.WriteUnsignedByte((byte)this._forceID); + dos.WriteUnsignedByte((byte)this._perimeterPoints.Count); + this._minefieldType.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._mineType.Count); + this._minefieldLocation.Marshal(dos); + this._minefieldOrientation.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._appearance); + dos.WriteUnsignedShort((ushort)this._protocolMode); + + for (int idx = 0; idx < this._perimeterPoints.Count; idx++) + { + Vector2Float aVector2Float = (Vector2Float)this._perimeterPoints[idx]; + aVector2Float.Marshal(dos); + } + + for (int idx = 0; idx < this._mineType.Count; idx++) + { + EntityType aEntityType = (EntityType)this._mineType[idx]; + aEntityType.Marshal(dos); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._minefieldID.Unmarshal(dis); + this._minefieldSequence = dis.ReadUnsignedShort(); + this._forceID = dis.ReadUnsignedByte(); + this._numberOfPerimeterPoints = dis.ReadUnsignedByte(); + this._minefieldType.Unmarshal(dis); + this._numberOfMineTypes = dis.ReadUnsignedShort(); + this._minefieldLocation.Unmarshal(dis); + this._minefieldOrientation.Unmarshal(dis); + this._appearance = dis.ReadUnsignedShort(); + this._protocolMode = dis.ReadUnsignedShort(); + for (int idx = 0; idx < this.NumberOfPerimeterPoints; idx++) + { + Vector2Float anX = new Vector2Float(); + anX.Unmarshal(dis); + this._perimeterPoints.Add(anX); + }; + + for (int idx = 0; idx < this.NumberOfMineTypes; idx++) + { + EntityType anX = new EntityType(); + anX.Unmarshal(dis); + this._mineType.Add(anX); + }; + + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._minefieldID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._minefieldSequence.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._forceID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._perimeterPoints.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._minefieldType.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._mineType.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._minefieldLocation.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._minefieldOrientation.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._appearance.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._protocolMode.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._perimeterPoints.Count; idx++) + { + sb.AppendLine(""); + Vector2Float aVector2Float = (Vector2Float)this._perimeterPoints[idx]; + aVector2Float.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._mineType.Count; idx++) + { + sb.AppendLine(""); + EntityType aEntityType = (EntityType)this._mineType[idx]; + aEntityType.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as MinefieldStatePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(MinefieldStatePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._minefieldID.Equals(obj._minefieldID)) + { + ivarsEqual = false; + } + + if (this._minefieldSequence != obj._minefieldSequence) + { + ivarsEqual = false; + } + + if (this._forceID != obj._forceID) + { + ivarsEqual = false; + } + + if (this._numberOfPerimeterPoints != obj._numberOfPerimeterPoints) + { + ivarsEqual = false; + } + + if (!this._minefieldType.Equals(obj._minefieldType)) + { + ivarsEqual = false; + } + + if (this._numberOfMineTypes != obj._numberOfMineTypes) + { + ivarsEqual = false; + } + + if (!this._minefieldLocation.Equals(obj._minefieldLocation)) + { + ivarsEqual = false; + } + + if (!this._minefieldOrientation.Equals(obj._minefieldOrientation)) + { + ivarsEqual = false; + } + + if (this._appearance != obj._appearance) + { + ivarsEqual = false; + } + + if (this._protocolMode != obj._protocolMode) + { + ivarsEqual = false; + } + + if (this._perimeterPoints.Count != obj._perimeterPoints.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._perimeterPoints.Count; idx++) + { + if (!this._perimeterPoints[idx].Equals(obj._perimeterPoints[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._mineType.Count != obj._mineType.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._mineType.Count; idx++) + { + if (!this._mineType[idx].Equals(obj._mineType[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._minefieldID.GetHashCode(); + result = GenerateHash(result) ^ this._minefieldSequence.GetHashCode(); + result = GenerateHash(result) ^ this._forceID.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfPerimeterPoints.GetHashCode(); + result = GenerateHash(result) ^ this._minefieldType.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfMineTypes.GetHashCode(); + result = GenerateHash(result) ^ this._minefieldLocation.GetHashCode(); + result = GenerateHash(result) ^ this._minefieldOrientation.GetHashCode(); + result = GenerateHash(result) ^ this._appearance.GetHashCode(); + result = GenerateHash(result) ^ this._protocolMode.GetHashCode(); + + if (this._perimeterPoints.Count > 0) + { + for (int idx = 0; idx < this._perimeterPoints.Count; idx++) + { + result = GenerateHash(result) ^ this._perimeterPoints[idx].GetHashCode(); + } + } + + if (this._mineType.Count > 0) + { + for (int idx = 0; idx < this._mineType.Count; idx++) + { + result = GenerateHash(result) ^ this._mineType[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/ModulationParameters.cs b/Libs/CSharpDis7/ModulationParameters.cs new file mode 100644 index 0000000..1604180 --- /dev/null +++ b/Libs/CSharpDis7/ModulationParameters.cs @@ -0,0 +1,245 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Modulation parameters associated with a specific radio system. INCOMPLETE. 6.2.58 + /// + [Serializable] + [XmlRoot] + public partial class ModulationParameters + { + /// + /// Initializes a new instance of the class. + /// + public ModulationParameters() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ModulationParameters left, ModulationParameters right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ModulationParameters left, ModulationParameters right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + return marshalSize; + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ModulationParameters; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ModulationParameters obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + + return result; + } + } +} diff --git a/Libs/CSharpDis7/ModulationType.cs b/Libs/CSharpDis7/ModulationType.cs new file mode 100644 index 0000000..c0357e3 --- /dev/null +++ b/Libs/CSharpDis7/ModulationType.cs @@ -0,0 +1,373 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Information about the type of modulation used for radio transmission. 6.2.59 + /// + [Serializable] + [XmlRoot] + public partial class ModulationType + { + /// + /// This field shall indicate the spread spectrum technique or combination of spread spectrum techniques in use. Bt field. + /// + private ushort _spreadSpectrum; + + /// + /// the major classification of the modulation type. + /// + private ushort _majorModulation; + + /// + /// provide certain detailed information depending upon the major modulation type + /// + private ushort _detail; + + /// + /// the radio system associated with this Transmitter PDU and shall be used as the basis to interpret other fields whose values depend on a specific radio system. + /// + private ushort _radioSystem; + + /// + /// Initializes a new instance of the class. + /// + public ModulationType() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ModulationType left, ModulationType right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ModulationType left, ModulationType right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 2; // this._spreadSpectrum + marshalSize += 2; // this._majorModulation + marshalSize += 2; // this._detail + marshalSize += 2; // this._radioSystem + return marshalSize; + } + + /// + /// Gets or sets the This field shall indicate the spread spectrum technique or combination of spread spectrum techniques in use. Bt field. + /// + [XmlElement(Type = typeof(ushort), ElementName = "spreadSpectrum")] + public ushort SpreadSpectrum + { + get + { + return this._spreadSpectrum; + } + + set + { + this._spreadSpectrum = value; + } + } + + /// + /// Gets or sets the the major classification of the modulation type. + /// + [XmlElement(Type = typeof(ushort), ElementName = "majorModulation")] + public ushort MajorModulation + { + get + { + return this._majorModulation; + } + + set + { + this._majorModulation = value; + } + } + + /// + /// Gets or sets the provide certain detailed information depending upon the major modulation type + /// + [XmlElement(Type = typeof(ushort), ElementName = "detail")] + public ushort Detail + { + get + { + return this._detail; + } + + set + { + this._detail = value; + } + } + + /// + /// Gets or sets the the radio system associated with this Transmitter PDU and shall be used as the basis to interpret other fields whose values depend on a specific radio system. + /// + [XmlElement(Type = typeof(ushort), ElementName = "radioSystem")] + public ushort RadioSystem + { + get + { + return this._radioSystem; + } + + set + { + this._radioSystem = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._spreadSpectrum); + dos.WriteUnsignedShort((ushort)this._majorModulation); + dos.WriteUnsignedShort((ushort)this._detail); + dos.WriteUnsignedShort((ushort)this._radioSystem); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._spreadSpectrum = dis.ReadUnsignedShort(); + this._majorModulation = dis.ReadUnsignedShort(); + this._detail = dis.ReadUnsignedShort(); + this._radioSystem = dis.ReadUnsignedShort(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._spreadSpectrum.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._majorModulation.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._detail.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._radioSystem.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ModulationType; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ModulationType obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._spreadSpectrum != obj._spreadSpectrum) + { + ivarsEqual = false; + } + + if (this._majorModulation != obj._majorModulation) + { + ivarsEqual = false; + } + + if (this._detail != obj._detail) + { + ivarsEqual = false; + } + + if (this._radioSystem != obj._radioSystem) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._spreadSpectrum.GetHashCode(); + result = GenerateHash(result) ^ this._majorModulation.GetHashCode(); + result = GenerateHash(result) ^ this._detail.GetHashCode(); + result = GenerateHash(result) ^ this._radioSystem.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/Munition.cs b/Libs/CSharpDis7/Munition.cs new file mode 100644 index 0000000..329ed6c --- /dev/null +++ b/Libs/CSharpDis7/Munition.cs @@ -0,0 +1,408 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// An entity's munition (e.g., bomb, missile) information shall be represented by one or more Munition records. For each type or location of munition, this record shall specify the type, location, quantity and status of munitions that an entity contains. Section 6.2.60 + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityType))] + public partial class Munition + { + /// + /// This field shall identify the entity type of the munition. See section 6.2.30. + /// + private EntityType _munitionType = new EntityType(); + + /// + /// the station or launcher to which the munition is assigned. See Annex I + /// + private uint _station; + + /// + /// the quantity remaining of this munition. + /// + private ushort _quantity; + + /// + /// the status of the munition. It shall be represented by an 8-bit enumeration. + /// + private byte _munitionStatus; + + /// + /// padding + /// + private byte _padding; + + /// + /// Initializes a new instance of the class. + /// + public Munition() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(Munition left, Munition right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(Munition left, Munition right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += this._munitionType.GetMarshalledSize(); // this._munitionType + marshalSize += 4; // this._station + marshalSize += 2; // this._quantity + marshalSize += 1; // this._munitionStatus + marshalSize += 1; // this._padding + return marshalSize; + } + + /// + /// Gets or sets the This field shall identify the entity type of the munition. See section 6.2.30. + /// + [XmlElement(Type = typeof(EntityType), ElementName = "munitionType")] + public EntityType MunitionType + { + get + { + return this._munitionType; + } + + set + { + this._munitionType = value; + } + } + + /// + /// Gets or sets the the station or launcher to which the munition is assigned. See Annex I + /// + [XmlElement(Type = typeof(uint), ElementName = "station")] + public uint Station + { + get + { + return this._station; + } + + set + { + this._station = value; + } + } + + /// + /// Gets or sets the the quantity remaining of this munition. + /// + [XmlElement(Type = typeof(ushort), ElementName = "quantity")] + public ushort Quantity + { + get + { + return this._quantity; + } + + set + { + this._quantity = value; + } + } + + /// + /// Gets or sets the the status of the munition. It shall be represented by an 8-bit enumeration. + /// + [XmlElement(Type = typeof(byte), ElementName = "munitionStatus")] + public byte MunitionStatus + { + get + { + return this._munitionStatus; + } + + set + { + this._munitionStatus = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "padding")] + public byte Padding + { + get + { + return this._padding; + } + + set + { + this._padding = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + this._munitionType.Marshal(dos); + dos.WriteUnsignedInt((uint)this._station); + dos.WriteUnsignedShort((ushort)this._quantity); + dos.WriteUnsignedByte((byte)this._munitionStatus); + dos.WriteUnsignedByte((byte)this._padding); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._munitionType.Unmarshal(dis); + this._station = dis.ReadUnsignedInt(); + this._quantity = dis.ReadUnsignedShort(); + this._munitionStatus = dis.ReadUnsignedByte(); + this._padding = dis.ReadUnsignedByte(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine(""); + this._munitionType.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._station.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._quantity.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._munitionStatus.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as Munition; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(Munition obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (!this._munitionType.Equals(obj._munitionType)) + { + ivarsEqual = false; + } + + if (this._station != obj._station) + { + ivarsEqual = false; + } + + if (this._quantity != obj._quantity) + { + ivarsEqual = false; + } + + if (this._munitionStatus != obj._munitionStatus) + { + ivarsEqual = false; + } + + if (this._padding != obj._padding) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._munitionType.GetHashCode(); + result = GenerateHash(result) ^ this._station.GetHashCode(); + result = GenerateHash(result) ^ this._quantity.GetHashCode(); + result = GenerateHash(result) ^ this._munitionStatus.GetHashCode(); + result = GenerateHash(result) ^ this._padding.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/MunitionDescriptor.cs b/Libs/CSharpDis7/MunitionDescriptor.cs new file mode 100644 index 0000000..6d4ba12 --- /dev/null +++ b/Libs/CSharpDis7/MunitionDescriptor.cs @@ -0,0 +1,408 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Represents the firing or detonation of a munition. Section 6.2.20.2 + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityType))] + public partial class MunitionDescriptor + { + /// + /// What munition was used in the burst + /// + private EntityType _munitionType = new EntityType(); + + /// + /// type of warhead + /// + private ushort _warhead; + + /// + /// type of fuse used + /// + private ushort _fuse; + + /// + /// how many of the munition were fired + /// + private ushort _quantity; + + /// + /// rate at which the munition was fired + /// + private ushort _rate; + + /// + /// Initializes a new instance of the class. + /// + public MunitionDescriptor() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(MunitionDescriptor left, MunitionDescriptor right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(MunitionDescriptor left, MunitionDescriptor right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += this._munitionType.GetMarshalledSize(); // this._munitionType + marshalSize += 2; // this._warhead + marshalSize += 2; // this._fuse + marshalSize += 2; // this._quantity + marshalSize += 2; // this._rate + return marshalSize; + } + + /// + /// Gets or sets the What munition was used in the burst + /// + [XmlElement(Type = typeof(EntityType), ElementName = "munitionType")] + public EntityType MunitionType + { + get + { + return this._munitionType; + } + + set + { + this._munitionType = value; + } + } + + /// + /// Gets or sets the type of warhead + /// + [XmlElement(Type = typeof(ushort), ElementName = "warhead")] + public ushort Warhead + { + get + { + return this._warhead; + } + + set + { + this._warhead = value; + } + } + + /// + /// Gets or sets the type of fuse used + /// + [XmlElement(Type = typeof(ushort), ElementName = "fuse")] + public ushort Fuse + { + get + { + return this._fuse; + } + + set + { + this._fuse = value; + } + } + + /// + /// Gets or sets the how many of the munition were fired + /// + [XmlElement(Type = typeof(ushort), ElementName = "quantity")] + public ushort Quantity + { + get + { + return this._quantity; + } + + set + { + this._quantity = value; + } + } + + /// + /// Gets or sets the rate at which the munition was fired + /// + [XmlElement(Type = typeof(ushort), ElementName = "rate")] + public ushort Rate + { + get + { + return this._rate; + } + + set + { + this._rate = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + this._munitionType.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._warhead); + dos.WriteUnsignedShort((ushort)this._fuse); + dos.WriteUnsignedShort((ushort)this._quantity); + dos.WriteUnsignedShort((ushort)this._rate); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._munitionType.Unmarshal(dis); + this._warhead = dis.ReadUnsignedShort(); + this._fuse = dis.ReadUnsignedShort(); + this._quantity = dis.ReadUnsignedShort(); + this._rate = dis.ReadUnsignedShort(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine(""); + this._munitionType.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._warhead.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fuse.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._quantity.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._rate.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as MunitionDescriptor; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(MunitionDescriptor obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (!this._munitionType.Equals(obj._munitionType)) + { + ivarsEqual = false; + } + + if (this._warhead != obj._warhead) + { + ivarsEqual = false; + } + + if (this._fuse != obj._fuse) + { + ivarsEqual = false; + } + + if (this._quantity != obj._quantity) + { + ivarsEqual = false; + } + + if (this._rate != obj._rate) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._munitionType.GetHashCode(); + result = GenerateHash(result) ^ this._warhead.GetHashCode(); + result = GenerateHash(result) ^ this._fuse.GetHashCode(); + result = GenerateHash(result) ^ this._quantity.GetHashCode(); + result = GenerateHash(result) ^ this._rate.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/MunitionReload.cs b/Libs/CSharpDis7/MunitionReload.cs new file mode 100644 index 0000000..e946bd3 --- /dev/null +++ b/Libs/CSharpDis7/MunitionReload.cs @@ -0,0 +1,440 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// indicate weapons (munitions) previously communicated via the Munition record. Section 6.2.61 + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityType))] + public partial class MunitionReload + { + /// + /// This field shall identify the entity type of the munition. See section 6.2.30. + /// + private EntityType _munitionType = new EntityType(); + + /// + /// the station or launcher to which the munition is assigned. See Annex I + /// + private uint _station; + + /// + /// the standard quantity of this munition type normally loaded at this station/launcher if a station/launcher is specified. + /// + private ushort _standardQuantity; + + /// + /// the maximum quantity of this munition type that this station/launcher is capable of holding when a station/launcher is specified + /// + private ushort _maximumQuantity; + + /// + /// the station name within the host at which the part entity is located. + /// + private ushort _stationName; + + /// + /// the number of the particular wing station, cargo hold etc., at which the part is attached. + /// + private ushort _stationNumber; + + /// + /// Initializes a new instance of the class. + /// + public MunitionReload() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(MunitionReload left, MunitionReload right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(MunitionReload left, MunitionReload right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += this._munitionType.GetMarshalledSize(); // this._munitionType + marshalSize += 4; // this._station + marshalSize += 2; // this._standardQuantity + marshalSize += 2; // this._maximumQuantity + marshalSize += 2; // this._stationName + marshalSize += 2; // this._stationNumber + return marshalSize; + } + + /// + /// Gets or sets the This field shall identify the entity type of the munition. See section 6.2.30. + /// + [XmlElement(Type = typeof(EntityType), ElementName = "munitionType")] + public EntityType MunitionType + { + get + { + return this._munitionType; + } + + set + { + this._munitionType = value; + } + } + + /// + /// Gets or sets the the station or launcher to which the munition is assigned. See Annex I + /// + [XmlElement(Type = typeof(uint), ElementName = "station")] + public uint Station + { + get + { + return this._station; + } + + set + { + this._station = value; + } + } + + /// + /// Gets or sets the the standard quantity of this munition type normally loaded at this station/launcher if a station/launcher is specified. + /// + [XmlElement(Type = typeof(ushort), ElementName = "standardQuantity")] + public ushort StandardQuantity + { + get + { + return this._standardQuantity; + } + + set + { + this._standardQuantity = value; + } + } + + /// + /// Gets or sets the the maximum quantity of this munition type that this station/launcher is capable of holding when a station/launcher is specified + /// + [XmlElement(Type = typeof(ushort), ElementName = "maximumQuantity")] + public ushort MaximumQuantity + { + get + { + return this._maximumQuantity; + } + + set + { + this._maximumQuantity = value; + } + } + + /// + /// Gets or sets the the station name within the host at which the part entity is located. + /// + [XmlElement(Type = typeof(ushort), ElementName = "stationName")] + public ushort StationName + { + get + { + return this._stationName; + } + + set + { + this._stationName = value; + } + } + + /// + /// Gets or sets the the number of the particular wing station, cargo hold etc., at which the part is attached. + /// + [XmlElement(Type = typeof(ushort), ElementName = "stationNumber")] + public ushort StationNumber + { + get + { + return this._stationNumber; + } + + set + { + this._stationNumber = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + this._munitionType.Marshal(dos); + dos.WriteUnsignedInt((uint)this._station); + dos.WriteUnsignedShort((ushort)this._standardQuantity); + dos.WriteUnsignedShort((ushort)this._maximumQuantity); + dos.WriteUnsignedShort((ushort)this._stationName); + dos.WriteUnsignedShort((ushort)this._stationNumber); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._munitionType.Unmarshal(dis); + this._station = dis.ReadUnsignedInt(); + this._standardQuantity = dis.ReadUnsignedShort(); + this._maximumQuantity = dis.ReadUnsignedShort(); + this._stationName = dis.ReadUnsignedShort(); + this._stationNumber = dis.ReadUnsignedShort(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine(""); + this._munitionType.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._station.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._standardQuantity.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._maximumQuantity.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._stationName.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._stationNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as MunitionReload; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(MunitionReload obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (!this._munitionType.Equals(obj._munitionType)) + { + ivarsEqual = false; + } + + if (this._station != obj._station) + { + ivarsEqual = false; + } + + if (this._standardQuantity != obj._standardQuantity) + { + ivarsEqual = false; + } + + if (this._maximumQuantity != obj._maximumQuantity) + { + ivarsEqual = false; + } + + if (this._stationName != obj._stationName) + { + ivarsEqual = false; + } + + if (this._stationNumber != obj._stationNumber) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._munitionType.GetHashCode(); + result = GenerateHash(result) ^ this._station.GetHashCode(); + result = GenerateHash(result) ^ this._standardQuantity.GetHashCode(); + result = GenerateHash(result) ^ this._maximumQuantity.GetHashCode(); + result = GenerateHash(result) ^ this._stationName.GetHashCode(); + result = GenerateHash(result) ^ this._stationNumber.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/NamedLocationIdentification.cs b/Libs/CSharpDis7/NamedLocationIdentification.cs new file mode 100644 index 0000000..78f943b --- /dev/null +++ b/Libs/CSharpDis7/NamedLocationIdentification.cs @@ -0,0 +1,309 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Information about the discrete positional relationship of the part entity with respect to the its host entity Section 6.2.62 + /// + [Serializable] + [XmlRoot] + public partial class NamedLocationIdentification + { + /// + /// the station name within the host at which the part entity is located. If the part entity is On Station, this field shall specify the representation of the part’s location data fields. This field shall be specified by a 16-bit enumeration + /// + private ushort _stationName; + + /// + /// the number of the particular wing station, cargo hold etc., at which the part is attached. + /// + private ushort _stationNumber; + + /// + /// Initializes a new instance of the class. + /// + public NamedLocationIdentification() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(NamedLocationIdentification left, NamedLocationIdentification right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(NamedLocationIdentification left, NamedLocationIdentification right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 2; // this._stationName + marshalSize += 2; // this._stationNumber + return marshalSize; + } + + /// + /// Gets or sets the the station name within the host at which the part entity is located. If the part entity is On Station, this field shall specify the representation of the part’s location data fields. This field shall be specified by a 16-bit enumeration + /// + [XmlElement(Type = typeof(ushort), ElementName = "stationName")] + public ushort StationName + { + get + { + return this._stationName; + } + + set + { + this._stationName = value; + } + } + + /// + /// Gets or sets the the number of the particular wing station, cargo hold etc., at which the part is attached. + /// + [XmlElement(Type = typeof(ushort), ElementName = "stationNumber")] + public ushort StationNumber + { + get + { + return this._stationNumber; + } + + set + { + this._stationNumber = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._stationName); + dos.WriteUnsignedShort((ushort)this._stationNumber); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._stationName = dis.ReadUnsignedShort(); + this._stationNumber = dis.ReadUnsignedShort(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._stationName.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._stationNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as NamedLocationIdentification; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(NamedLocationIdentification obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._stationName != obj._stationName) + { + ivarsEqual = false; + } + + if (this._stationNumber != obj._stationNumber) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._stationName.GetHashCode(); + result = GenerateHash(result) ^ this._stationNumber.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/ObjectIdentifier.cs b/Libs/CSharpDis7/ObjectIdentifier.cs new file mode 100644 index 0000000..0bc1a50 --- /dev/null +++ b/Libs/CSharpDis7/ObjectIdentifier.cs @@ -0,0 +1,312 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// The unique designation of an environmental object. Section 6.2.63 + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(SimulationAddress))] + public partial class ObjectIdentifier + { + /// + /// Simulation Address + /// + private SimulationAddress _simulationAddress = new SimulationAddress(); + + /// + /// + /// + private ushort _objectNumber; + + /// + /// Initializes a new instance of the class. + /// + public ObjectIdentifier() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ObjectIdentifier left, ObjectIdentifier right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ObjectIdentifier left, ObjectIdentifier right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += this._simulationAddress.GetMarshalledSize(); // this._simulationAddress + marshalSize += 2; // this._objectNumber + return marshalSize; + } + + /// + /// Gets or sets the Simulation Address + /// + [XmlElement(Type = typeof(SimulationAddress), ElementName = "simulationAddress")] + public SimulationAddress SimulationAddress + { + get + { + return this._simulationAddress; + } + + set + { + this._simulationAddress = value; + } + } + + /// + /// Gets or sets the + /// + [XmlElement(Type = typeof(ushort), ElementName = "objectNumber")] + public ushort ObjectNumber + { + get + { + return this._objectNumber; + } + + set + { + this._objectNumber = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + this._simulationAddress.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._objectNumber); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._simulationAddress.Unmarshal(dis); + this._objectNumber = dis.ReadUnsignedShort(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine(""); + this._simulationAddress.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._objectNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ObjectIdentifier; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ObjectIdentifier obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (!this._simulationAddress.Equals(obj._simulationAddress)) + { + ivarsEqual = false; + } + + if (this._objectNumber != obj._objectNumber) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._simulationAddress.GetHashCode(); + result = GenerateHash(result) ^ this._objectNumber.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/ObjectType.cs b/Libs/CSharpDis7/ObjectType.cs new file mode 100644 index 0000000..037f713 --- /dev/null +++ b/Libs/CSharpDis7/ObjectType.cs @@ -0,0 +1,373 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// The unique designation of an environmental object. Section 6.2.64 + /// + [Serializable] + [XmlRoot] + public partial class ObjectType + { + /// + /// Domain of entity (air, surface, subsurface, space, etc) + /// + private byte _domain; + + /// + /// country to which the design of the entity is attributed + /// + private byte _objectKind; + + /// + /// category of entity + /// + private byte _category; + + /// + /// subcategory of entity + /// + private byte _subcategory; + + /// + /// Initializes a new instance of the class. + /// + public ObjectType() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ObjectType left, ObjectType right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ObjectType left, ObjectType right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._domain + marshalSize += 1; // this._objectKind + marshalSize += 1; // this._category + marshalSize += 1; // this._subcategory + return marshalSize; + } + + /// + /// Gets or sets the Domain of entity (air, surface, subsurface, space, etc) + /// + [XmlElement(Type = typeof(byte), ElementName = "domain")] + public byte Domain + { + get + { + return this._domain; + } + + set + { + this._domain = value; + } + } + + /// + /// Gets or sets the country to which the design of the entity is attributed + /// + [XmlElement(Type = typeof(byte), ElementName = "objectKind")] + public byte ObjectKind + { + get + { + return this._objectKind; + } + + set + { + this._objectKind = value; + } + } + + /// + /// Gets or sets the category of entity + /// + [XmlElement(Type = typeof(byte), ElementName = "category")] + public byte Category + { + get + { + return this._category; + } + + set + { + this._category = value; + } + } + + /// + /// Gets or sets the subcategory of entity + /// + [XmlElement(Type = typeof(byte), ElementName = "subcategory")] + public byte Subcategory + { + get + { + return this._subcategory; + } + + set + { + this._subcategory = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._domain); + dos.WriteUnsignedByte((byte)this._objectKind); + dos.WriteUnsignedByte((byte)this._category); + dos.WriteUnsignedByte((byte)this._subcategory); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._domain = dis.ReadUnsignedByte(); + this._objectKind = dis.ReadUnsignedByte(); + this._category = dis.ReadUnsignedByte(); + this._subcategory = dis.ReadUnsignedByte(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._domain.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._objectKind.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._category.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._subcategory.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ObjectType; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ObjectType obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._domain != obj._domain) + { + ivarsEqual = false; + } + + if (this._objectKind != obj._objectKind) + { + ivarsEqual = false; + } + + if (this._category != obj._category) + { + ivarsEqual = false; + } + + if (this._subcategory != obj._subcategory) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._domain.GetHashCode(); + result = GenerateHash(result) ^ this._objectKind.GetHashCode(); + result = GenerateHash(result) ^ this._category.GetHashCode(); + result = GenerateHash(result) ^ this._subcategory.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/OneByteChunk.cs b/Libs/CSharpDis7/OneByteChunk.cs new file mode 100644 index 0000000..6b45bd8 --- /dev/null +++ b/Libs/CSharpDis7/OneByteChunk.cs @@ -0,0 +1,303 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// 8 bit piece of data + /// + [Serializable] + [XmlRoot] + public partial class OneByteChunk + { + /// + /// one byte of arbitrary data + /// + private byte[] _otherParameters = new byte[1]; + + /// + /// Initializes a new instance of the class. + /// + public OneByteChunk() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(OneByteChunk left, OneByteChunk right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(OneByteChunk left, OneByteChunk right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1 * 1; // _otherParameters + return marshalSize; + } + + /// + /// Gets or sets the one byte of arbitrary data + /// + [XmlArray(ElementName = "otherParameters")] + public byte[] OtherParameters + { + get + { + return this._otherParameters; + } + + set + { + this._otherParameters = value; + } +} + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + + for (int idx = 0; idx < this._otherParameters.Length; idx++) + { + dos.WriteByte(this._otherParameters[idx]); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + for (int idx = 0; idx < this._otherParameters.Length; idx++) + { + this._otherParameters[idx] = dis.ReadByte(); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + for (int idx = 0; idx < this._otherParameters.Length; idx++) + { + sb.AppendLine("" + this._otherParameters[idx] + ""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as OneByteChunk; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(OneByteChunk obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (obj._otherParameters.Length != 1) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < 1; idx++) + { + if (this._otherParameters[idx] != obj._otherParameters[idx]) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + + for (int idx = 0; idx < 1; idx++) + { + result = GenerateHash(result) ^ this._otherParameters[idx].GetHashCode(); + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/OwnershipStatus.cs b/Libs/CSharpDis7/OwnershipStatus.cs new file mode 100644 index 0000000..d14ac6c --- /dev/null +++ b/Libs/CSharpDis7/OwnershipStatus.cs @@ -0,0 +1,344 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// used to convey entity and conflict status information associated with transferring ownership of an entity. Section 6.2.65 + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + public partial class OwnershipStatus + { + /// + /// EntityID + /// + private EntityID _entityId = new EntityID(); + + /// + /// The ownership and/or ownership conflict status of the entity represented by the Entity ID field. + /// + private byte _ownershipStatus; + + /// + /// padding + /// + private byte _padding; + + /// + /// Initializes a new instance of the class. + /// + public OwnershipStatus() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(OwnershipStatus left, OwnershipStatus right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(OwnershipStatus left, OwnershipStatus right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += this._entityId.GetMarshalledSize(); // this._entityId + marshalSize += 1; // this._ownershipStatus + marshalSize += 1; // this._padding + return marshalSize; + } + + /// + /// Gets or sets the EntityID + /// + [XmlElement(Type = typeof(EntityID), ElementName = "entityId")] + public EntityID EntityId + { + get + { + return this._entityId; + } + + set + { + this._entityId = value; + } + } + + /// + /// Gets or sets the The ownership and/or ownership conflict status of the entity represented by the Entity ID field. + /// + [XmlElement(Type = typeof(byte), ElementName = "ownershipStatus")] + public byte OwnershipStatus_ + { + get + { + return this._ownershipStatus; + } + + set + { + this._ownershipStatus = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "padding")] + public byte Padding + { + get + { + return this._padding; + } + + set + { + this._padding = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + this._entityId.Marshal(dos); + dos.WriteUnsignedByte((byte)this._ownershipStatus); + dos.WriteUnsignedByte((byte)this._padding); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._entityId.Unmarshal(dis); + this._ownershipStatus = dis.ReadUnsignedByte(); + this._padding = dis.ReadUnsignedByte(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine(""); + this._entityId.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._ownershipStatus.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as OwnershipStatus; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(OwnershipStatus obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (!this._entityId.Equals(obj._entityId)) + { + ivarsEqual = false; + } + + if (this._ownershipStatus != obj._ownershipStatus) + { + ivarsEqual = false; + } + + if (this._padding != obj._padding) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._entityId.GetHashCode(); + result = GenerateHash(result) ^ this._ownershipStatus.GetHashCode(); + result = GenerateHash(result) ^ this._padding.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/Pdu.cs b/Libs/CSharpDis7/Pdu.cs new file mode 100644 index 0000000..d6e238c --- /dev/null +++ b/Libs/CSharpDis7/Pdu.cs @@ -0,0 +1,301 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Adds some fields to the the classic PDU + /// + [Serializable] + [XmlRoot] + public partial class Pdu : PduSuperclass, IEquatable + { + /// + /// PDU Status Record. Described in 6.2.67. This field is not present in earlier DIS versions + /// + private byte _pduStatus; + + /// + /// zero-filled array of padding + /// + private byte _padding; + + /// + /// Initializes a new instance of the class. + /// + public Pdu() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(Pdu left, Pdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(Pdu left, Pdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 1; // this._pduStatus + marshalSize += 1; // this._padding + return marshalSize; + } + + /// + /// Gets or sets the PDU Status Record. Described in 6.2.67. This field is not present in earlier DIS versions + /// + [XmlElement(Type = typeof(byte), ElementName = "pduStatus")] + public byte PduStatus + { + get + { + return this._pduStatus; + } + + set + { + this._pduStatus = value; + } + } + + /// + /// Gets or sets the zero-filled array of padding + /// + [XmlElement(Type = typeof(byte), ElementName = "padding")] + public byte Padding + { + get + { + return this._padding; + } + + set + { + this._padding = value; + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._pduStatus); + dos.WriteUnsignedByte((byte)this._padding); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._pduStatus = dis.ReadUnsignedByte(); + this._padding = dis.ReadUnsignedByte(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._pduStatus.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as Pdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(Pdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._pduStatus != obj._pduStatus) + { + ivarsEqual = false; + } + + if (this._padding != obj._padding) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._pduStatus.GetHashCode(); + result = GenerateHash(result) ^ this._padding.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/PduContainer.cs b/Libs/CSharpDis7/PduContainer.cs new file mode 100644 index 0000000..75a0ccc --- /dev/null +++ b/Libs/CSharpDis7/PduContainer.cs @@ -0,0 +1,348 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Used for XML compatability. A container that holds PDUs + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(Pdu))] + public partial class PduContainer + { + /// + /// Number of PDUs in the container list + /// + private int _numberOfPdus; + + /// + /// record sets + /// + private List _pdus = new List(); + + /// + /// Initializes a new instance of the class. + /// + public PduContainer() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(PduContainer left, PduContainer right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(PduContainer left, PduContainer right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._numberOfPdus + for (int idx = 0; idx < this._pdus.Count; idx++) + { + Pdu listElement = (Pdu)this._pdus[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfPdus method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(int), ElementName = "numberOfPdus")] + public int NumberOfPdus + { + get + { + return this._numberOfPdus; + } + + set + { + this._numberOfPdus = value; + } + } + + /// + /// Gets or sets the record sets + /// + [XmlElement(ElementName = "pdusList", Type = typeof(List))] + public List Pdus + { + get + { + return this._pdus; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteInt((int)this._pdus.Count); + + for (int idx = 0; idx < this._pdus.Count; idx++) + { + Pdu aPdu = (Pdu)this._pdus[idx]; + aPdu.Marshal(dos); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._numberOfPdus = dis.ReadInt(); + for (int idx = 0; idx < this.NumberOfPdus; idx++) + { + Pdu anX = new Pdu(); + anX.Unmarshal(dis); + this._pdus.Add(anX); + }; + + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._pdus.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._pdus.Count; idx++) + { + sb.AppendLine(""); + Pdu aPdu = (Pdu)this._pdus[idx]; + aPdu.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as PduContainer; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(PduContainer obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._numberOfPdus != obj._numberOfPdus) + { + ivarsEqual = false; + } + + if (this._pdus.Count != obj._pdus.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._pdus.Count; idx++) + { + if (!this._pdus[idx].Equals(obj._pdus[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._numberOfPdus.GetHashCode(); + + if (this._pdus.Count > 0) + { + for (int idx = 0; idx < this._pdus.Count; idx++) + { + result = GenerateHash(result) ^ this._pdus[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/PduHeader.cs b/Libs/CSharpDis7/PduHeader.cs new file mode 100644 index 0000000..11ee605 --- /dev/null +++ b/Libs/CSharpDis7/PduHeader.cs @@ -0,0 +1,501 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Not used. The PDU Header Record is directly incoroporated into the PDU class. Here for completness only. Section 6.2.66 + /// + [Serializable] + [XmlRoot] + public partial class PduHeader + { + /// + /// The version of the protocol. 5=DIS-1995, 6=DIS-1998, 7=DIS-2009. + /// + private byte _protocolVersion = 7; + + /// + /// Exercise ID + /// + private byte _exerciseID; + + /// + /// Type of pdu, unique for each PDU class + /// + private byte _pduType; + + /// + /// value that refers to the protocol family, eg SimulationManagement, etc + /// + private byte _protocolFamily; + + /// + /// Timestamp value + /// + private uint _timestamp; + + /// + /// Length, in bytes, of the PDU. Changed name from length to avoid use of Hibernate QL reserved word. + /// + private byte _pduLength; + + /// + /// PDU Status Record. Described in 6.2.67. This field is not present in earlier DIS versions + /// + private ushort _pduStatus; + + /// + /// zero filled array of padding + /// + private byte _padding; + + /// + /// Initializes a new instance of the class. + /// + public PduHeader() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(PduHeader left, PduHeader right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(PduHeader left, PduHeader right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._protocolVersion + marshalSize += 1; // this._exerciseID + marshalSize += 1; // this._pduType + marshalSize += 1; // this._protocolFamily + marshalSize += 4; // this._timestamp + marshalSize += 1; // this._pduLength + marshalSize += 2; // this._pduStatus + marshalSize += 1; // this._padding + return marshalSize; + } + + /// + /// Gets or sets the The version of the protocol. 5=DIS-1995, 6=DIS-1998, 7=DIS-2009. + /// + [XmlElement(Type = typeof(byte), ElementName = "protocolVersion")] + public byte ProtocolVersion + { + get + { + return this._protocolVersion; + } + + set + { + this._protocolVersion = value; + } + } + + /// + /// Gets or sets the Exercise ID + /// + [XmlElement(Type = typeof(byte), ElementName = "exerciseID")] + public byte ExerciseID + { + get + { + return this._exerciseID; + } + + set + { + this._exerciseID = value; + } + } + + /// + /// Gets or sets the Type of pdu, unique for each PDU class + /// + [XmlElement(Type = typeof(byte), ElementName = "pduType")] + public byte PduType + { + get + { + return this._pduType; + } + + set + { + this._pduType = value; + } + } + + /// + /// Gets or sets the value that refers to the protocol family, eg SimulationManagement, etc + /// + [XmlElement(Type = typeof(byte), ElementName = "protocolFamily")] + public byte ProtocolFamily + { + get + { + return this._protocolFamily; + } + + set + { + this._protocolFamily = value; + } + } + + /// + /// Gets or sets the Timestamp value + /// + [XmlElement(Type = typeof(uint), ElementName = "timestamp")] + public uint Timestamp + { + get + { + return this._timestamp; + } + + set + { + this._timestamp = value; + } + } + + /// + /// Gets or sets the Length, in bytes, of the PDU. Changed name from length to avoid use of Hibernate QL reserved word. + /// + [XmlElement(Type = typeof(byte), ElementName = "pduLength")] + public byte PduLength + { + get + { + return this._pduLength; + } + + set + { + this._pduLength = value; + } + } + + /// + /// Gets or sets the PDU Status Record. Described in 6.2.67. This field is not present in earlier DIS versions + /// + [XmlElement(Type = typeof(ushort), ElementName = "pduStatus")] + public ushort PduStatus + { + get + { + return this._pduStatus; + } + + set + { + this._pduStatus = value; + } + } + + /// + /// Gets or sets the zero filled array of padding + /// + [XmlElement(Type = typeof(byte), ElementName = "padding")] + public byte Padding + { + get + { + return this._padding; + } + + set + { + this._padding = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._protocolVersion); + dos.WriteUnsignedByte((byte)this._exerciseID); + dos.WriteUnsignedByte((byte)this._pduType); + dos.WriteUnsignedByte((byte)this._protocolFamily); + dos.WriteUnsignedInt((uint)this._timestamp); + dos.WriteUnsignedByte((byte)this._pduLength); + dos.WriteUnsignedShort((ushort)this._pduStatus); + dos.WriteUnsignedByte((byte)this._padding); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._protocolVersion = dis.ReadUnsignedByte(); + this._exerciseID = dis.ReadUnsignedByte(); + this._pduType = dis.ReadUnsignedByte(); + this._protocolFamily = dis.ReadUnsignedByte(); + this._timestamp = dis.ReadUnsignedInt(); + this._pduLength = dis.ReadUnsignedByte(); + this._pduStatus = dis.ReadUnsignedShort(); + this._padding = dis.ReadUnsignedByte(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._protocolVersion.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._exerciseID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pduType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._protocolFamily.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._timestamp.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pduLength.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pduStatus.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as PduHeader; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(PduHeader obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._protocolVersion != obj._protocolVersion) + { + ivarsEqual = false; + } + + if (this._exerciseID != obj._exerciseID) + { + ivarsEqual = false; + } + + if (this._pduType != obj._pduType) + { + ivarsEqual = false; + } + + if (this._protocolFamily != obj._protocolFamily) + { + ivarsEqual = false; + } + + if (this._timestamp != obj._timestamp) + { + ivarsEqual = false; + } + + if (this._pduLength != obj._pduLength) + { + ivarsEqual = false; + } + + if (this._pduStatus != obj._pduStatus) + { + ivarsEqual = false; + } + + if (this._padding != obj._padding) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._protocolVersion.GetHashCode(); + result = GenerateHash(result) ^ this._exerciseID.GetHashCode(); + result = GenerateHash(result) ^ this._pduType.GetHashCode(); + result = GenerateHash(result) ^ this._protocolFamily.GetHashCode(); + result = GenerateHash(result) ^ this._timestamp.GetHashCode(); + result = GenerateHash(result) ^ this._pduLength.GetHashCode(); + result = GenerateHash(result) ^ this._pduStatus.GetHashCode(); + result = GenerateHash(result) ^ this._padding.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/PduStatus.cs b/Libs/CSharpDis7/PduStatus.cs new file mode 100644 index 0000000..f028bca --- /dev/null +++ b/Libs/CSharpDis7/PduStatus.cs @@ -0,0 +1,277 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// PDU Status. These are a series of bit fields. Represented here as just a byte. Section 6.2.67 + /// + [Serializable] + [XmlRoot] + public partial class PduStatus + { + /// + /// Bit fields + /// + private byte _pduStatus; + + /// + /// Initializes a new instance of the class. + /// + public PduStatus() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(PduStatus left, PduStatus right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(PduStatus left, PduStatus right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._pduStatus + return marshalSize; + } + + /// + /// Gets or sets the Bit fields + /// + [XmlElement(Type = typeof(byte), ElementName = "pduStatus")] + public byte PduStatus_ + { + get + { + return this._pduStatus; + } + + set + { + this._pduStatus = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._pduStatus); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._pduStatus = dis.ReadUnsignedByte(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._pduStatus.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as PduStatus; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(PduStatus obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._pduStatus != obj._pduStatus) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._pduStatus.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/PduSuperclass.cs b/Libs/CSharpDis7/PduSuperclass.cs new file mode 100644 index 0000000..ba223c8 --- /dev/null +++ b/Libs/CSharpDis7/PduSuperclass.cs @@ -0,0 +1,437 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// The superclass for all PDUs, including classic and Live Entity (LE) PDUs. This incorporates the PduHeader record, section 7.2.2 + /// + [Serializable] + [XmlRoot] + public partial class PduSuperclass + { + /// + /// The version of the protocol. 5=DIS-1995, 6=DIS-1998, 7=DIS-2009. + /// + private byte _protocolVersion = 7; + + /// + /// Exercise ID + /// + private byte _exerciseID; + + /// + /// Type of pdu, unique for each PDU class + /// + private byte _pduType; + + /// + /// value that refers to the protocol family, eg SimulationManagement, et + /// + private byte _protocolFamily; + + /// + /// Timestamp value + /// + private uint _timestamp; + + /// + /// Length, in bytes, of the PDU + /// + private ushort _length; + + /// + /// Initializes a new instance of the class. + /// + public PduSuperclass() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(PduSuperclass left, PduSuperclass right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(PduSuperclass left, PduSuperclass right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._protocolVersion + marshalSize += 1; // this._exerciseID + marshalSize += 1; // this._pduType + marshalSize += 1; // this._protocolFamily + marshalSize += 4; // this._timestamp + marshalSize += 2; // this._length + return marshalSize; + } + + /// + /// Gets or sets the The version of the protocol. 5=DIS-1995, 6=DIS-1998, 7=DIS-2009. + /// + [XmlElement(Type = typeof(byte), ElementName = "protocolVersion")] + public byte ProtocolVersion + { + get + { + return this._protocolVersion; + } + + set + { + this._protocolVersion = value; + } + } + + /// + /// Gets or sets the Exercise ID + /// + [XmlElement(Type = typeof(byte), ElementName = "exerciseID")] + public byte ExerciseID + { + get + { + return this._exerciseID; + } + + set + { + this._exerciseID = value; + } + } + + /// + /// Gets or sets the Type of pdu, unique for each PDU class + /// + [XmlElement(Type = typeof(byte), ElementName = "pduType")] + public byte PduType + { + get + { + return this._pduType; + } + + set + { + this._pduType = value; + } + } + + /// + /// Gets or sets the value that refers to the protocol family, eg SimulationManagement, et + /// + [XmlElement(Type = typeof(byte), ElementName = "protocolFamily")] + public byte ProtocolFamily + { + get + { + return this._protocolFamily; + } + + set + { + this._protocolFamily = value; + } + } + + /// + /// Gets or sets the Timestamp value + /// + [XmlElement(Type = typeof(uint), ElementName = "timestamp")] + public uint Timestamp + { + get + { + return this._timestamp; + } + + set + { + this._timestamp = value; + } + } + + /// + /// Gets or sets the Length, in bytes, of the PDU + /// + [XmlElement(Type = typeof(ushort), ElementName = "length")] + public ushort Length + { + get + { + return this._length; + } + + set + { + this._length = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._protocolVersion); + dos.WriteUnsignedByte((byte)this._exerciseID); + dos.WriteUnsignedByte((byte)this._pduType); + dos.WriteUnsignedByte((byte)this._protocolFamily); + dos.WriteUnsignedInt((uint)this._timestamp); + dos.WriteUnsignedShort((ushort)this._length); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._protocolVersion = dis.ReadUnsignedByte(); + this._exerciseID = dis.ReadUnsignedByte(); + this._pduType = dis.ReadUnsignedByte(); + this._protocolFamily = dis.ReadUnsignedByte(); + this._timestamp = dis.ReadUnsignedInt(); + this._length = dis.ReadUnsignedShort(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._protocolVersion.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._exerciseID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pduType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._protocolFamily.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._timestamp.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._length.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as PduSuperclass; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(PduSuperclass obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._protocolVersion != obj._protocolVersion) + { + ivarsEqual = false; + } + + if (this._exerciseID != obj._exerciseID) + { + ivarsEqual = false; + } + + if (this._pduType != obj._pduType) + { + ivarsEqual = false; + } + + if (this._protocolFamily != obj._protocolFamily) + { + ivarsEqual = false; + } + + if (this._timestamp != obj._timestamp) + { + ivarsEqual = false; + } + + if (this._length != obj._length) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._protocolVersion.GetHashCode(); + result = GenerateHash(result) ^ this._exerciseID.GetHashCode(); + result = GenerateHash(result) ^ this._pduType.GetHashCode(); + result = GenerateHash(result) ^ this._protocolFamily.GetHashCode(); + result = GenerateHash(result) ^ this._timestamp.GetHashCode(); + result = GenerateHash(result) ^ this._length.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/PointObjectStatePdu.cs b/Libs/CSharpDis7/PointObjectStatePdu.cs new file mode 100644 index 0000000..963ea88 --- /dev/null +++ b/Libs/CSharpDis7/PointObjectStatePdu.cs @@ -0,0 +1,652 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// : Inormation abut the addition or modification of a synthecic enviroment object that is anchored to the terrain with a single point. Section 7.10.4 COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(ObjectType))] + [XmlInclude(typeof(Vector3Double))] + [XmlInclude(typeof(EulerAngles))] + [XmlInclude(typeof(SimulationAddress))] + public partial class PointObjectStatePdu : SyntheticEnvironmentFamilyPdu, IEquatable + { + /// + /// Object in synthetic environment + /// + private EntityID _objectID = new EntityID(); + + /// + /// Object with which this point object is associated + /// + private EntityID _referencedObjectID = new EntityID(); + + /// + /// unique update number of each state transition of an object + /// + private ushort _updateNumber; + + /// + /// force ID + /// + private byte _forceID; + + /// + /// modifications + /// + private byte _modifications; + + /// + /// Object type + /// + private ObjectType _objectType = new ObjectType(); + + /// + /// Object location + /// + private Vector3Double _objectLocation = new Vector3Double(); + + /// + /// Object orientation + /// + private EulerAngles _objectOrientation = new EulerAngles(); + + /// + /// Object apperance + /// + private double _objectAppearance; + + /// + /// requesterID + /// + private SimulationAddress _requesterID = new SimulationAddress(); + + /// + /// receiver ID + /// + private SimulationAddress _receivingID = new SimulationAddress(); + + /// + /// padding + /// + private uint _pad2; + + /// + /// Initializes a new instance of the class. + /// + public PointObjectStatePdu() + { + PduType = (byte)43; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(PointObjectStatePdu left, PointObjectStatePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(PointObjectStatePdu left, PointObjectStatePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._objectID.GetMarshalledSize(); // this._objectID + marshalSize += this._referencedObjectID.GetMarshalledSize(); // this._referencedObjectID + marshalSize += 2; // this._updateNumber + marshalSize += 1; // this._forceID + marshalSize += 1; // this._modifications + marshalSize += this._objectType.GetMarshalledSize(); // this._objectType + marshalSize += this._objectLocation.GetMarshalledSize(); // this._objectLocation + marshalSize += this._objectOrientation.GetMarshalledSize(); // this._objectOrientation + marshalSize += 8; // this._objectAppearance + marshalSize += this._requesterID.GetMarshalledSize(); // this._requesterID + marshalSize += this._receivingID.GetMarshalledSize(); // this._receivingID + marshalSize += 4; // this._pad2 + return marshalSize; + } + + /// + /// Gets or sets the Object in synthetic environment + /// + [XmlElement(Type = typeof(EntityID), ElementName = "objectID")] + public EntityID ObjectID + { + get + { + return this._objectID; + } + + set + { + this._objectID = value; + } + } + + /// + /// Gets or sets the Object with which this point object is associated + /// + [XmlElement(Type = typeof(EntityID), ElementName = "referencedObjectID")] + public EntityID ReferencedObjectID + { + get + { + return this._referencedObjectID; + } + + set + { + this._referencedObjectID = value; + } + } + + /// + /// Gets or sets the unique update number of each state transition of an object + /// + [XmlElement(Type = typeof(ushort), ElementName = "updateNumber")] + public ushort UpdateNumber + { + get + { + return this._updateNumber; + } + + set + { + this._updateNumber = value; + } + } + + /// + /// Gets or sets the force ID + /// + [XmlElement(Type = typeof(byte), ElementName = "forceID")] + public byte ForceID + { + get + { + return this._forceID; + } + + set + { + this._forceID = value; + } + } + + /// + /// Gets or sets the modifications + /// + [XmlElement(Type = typeof(byte), ElementName = "modifications")] + public byte Modifications + { + get + { + return this._modifications; + } + + set + { + this._modifications = value; + } + } + + /// + /// Gets or sets the Object type + /// + [XmlElement(Type = typeof(ObjectType), ElementName = "objectType")] + public ObjectType ObjectType + { + get + { + return this._objectType; + } + + set + { + this._objectType = value; + } + } + + /// + /// Gets or sets the Object location + /// + [XmlElement(Type = typeof(Vector3Double), ElementName = "objectLocation")] + public Vector3Double ObjectLocation + { + get + { + return this._objectLocation; + } + + set + { + this._objectLocation = value; + } + } + + /// + /// Gets or sets the Object orientation + /// + [XmlElement(Type = typeof(EulerAngles), ElementName = "objectOrientation")] + public EulerAngles ObjectOrientation + { + get + { + return this._objectOrientation; + } + + set + { + this._objectOrientation = value; + } + } + + /// + /// Gets or sets the Object apperance + /// + [XmlElement(Type = typeof(double), ElementName = "objectAppearance")] + public double ObjectAppearance + { + get + { + return this._objectAppearance; + } + + set + { + this._objectAppearance = value; + } + } + + /// + /// Gets or sets the requesterID + /// + [XmlElement(Type = typeof(SimulationAddress), ElementName = "requesterID")] + public SimulationAddress RequesterID + { + get + { + return this._requesterID; + } + + set + { + this._requesterID = value; + } + } + + /// + /// Gets or sets the receiver ID + /// + [XmlElement(Type = typeof(SimulationAddress), ElementName = "receivingID")] + public SimulationAddress ReceivingID + { + get + { + return this._receivingID; + } + + set + { + this._receivingID = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(uint), ElementName = "pad2")] + public uint Pad2 + { + get + { + return this._pad2; + } + + set + { + this._pad2 = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._objectID.Marshal(dos); + this._referencedObjectID.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._updateNumber); + dos.WriteUnsignedByte((byte)this._forceID); + dos.WriteUnsignedByte((byte)this._modifications); + this._objectType.Marshal(dos); + this._objectLocation.Marshal(dos); + this._objectOrientation.Marshal(dos); + dos.WriteDouble((double)this._objectAppearance); + this._requesterID.Marshal(dos); + this._receivingID.Marshal(dos); + dos.WriteUnsignedInt((uint)this._pad2); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._objectID.Unmarshal(dis); + this._referencedObjectID.Unmarshal(dis); + this._updateNumber = dis.ReadUnsignedShort(); + this._forceID = dis.ReadUnsignedByte(); + this._modifications = dis.ReadUnsignedByte(); + this._objectType.Unmarshal(dis); + this._objectLocation.Unmarshal(dis); + this._objectOrientation.Unmarshal(dis); + this._objectAppearance = dis.ReadDouble(); + this._requesterID.Unmarshal(dis); + this._receivingID.Unmarshal(dis); + this._pad2 = dis.ReadUnsignedInt(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._objectID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._referencedObjectID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._updateNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._forceID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._modifications.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._objectType.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._objectLocation.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._objectOrientation.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._objectAppearance.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._requesterID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._receivingID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as PointObjectStatePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(PointObjectStatePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._objectID.Equals(obj._objectID)) + { + ivarsEqual = false; + } + + if (!this._referencedObjectID.Equals(obj._referencedObjectID)) + { + ivarsEqual = false; + } + + if (this._updateNumber != obj._updateNumber) + { + ivarsEqual = false; + } + + if (this._forceID != obj._forceID) + { + ivarsEqual = false; + } + + if (this._modifications != obj._modifications) + { + ivarsEqual = false; + } + + if (!this._objectType.Equals(obj._objectType)) + { + ivarsEqual = false; + } + + if (!this._objectLocation.Equals(obj._objectLocation)) + { + ivarsEqual = false; + } + + if (!this._objectOrientation.Equals(obj._objectOrientation)) + { + ivarsEqual = false; + } + + if (this._objectAppearance != obj._objectAppearance) + { + ivarsEqual = false; + } + + if (!this._requesterID.Equals(obj._requesterID)) + { + ivarsEqual = false; + } + + if (!this._receivingID.Equals(obj._receivingID)) + { + ivarsEqual = false; + } + + if (this._pad2 != obj._pad2) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._objectID.GetHashCode(); + result = GenerateHash(result) ^ this._referencedObjectID.GetHashCode(); + result = GenerateHash(result) ^ this._updateNumber.GetHashCode(); + result = GenerateHash(result) ^ this._forceID.GetHashCode(); + result = GenerateHash(result) ^ this._modifications.GetHashCode(); + result = GenerateHash(result) ^ this._objectType.GetHashCode(); + result = GenerateHash(result) ^ this._objectLocation.GetHashCode(); + result = GenerateHash(result) ^ this._objectOrientation.GetHashCode(); + result = GenerateHash(result) ^ this._objectAppearance.GetHashCode(); + result = GenerateHash(result) ^ this._requesterID.GetHashCode(); + result = GenerateHash(result) ^ this._receivingID.GetHashCode(); + result = GenerateHash(result) ^ this._pad2.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/PropulsionSystemData.cs b/Libs/CSharpDis7/PropulsionSystemData.cs new file mode 100644 index 0000000..b7360e5 --- /dev/null +++ b/Libs/CSharpDis7/PropulsionSystemData.cs @@ -0,0 +1,309 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// contains information describing the propulsion systems of the entity. This information shall be provided for each active propulsion system defined. Section 6.2.68 + /// + [Serializable] + [XmlRoot] + public partial class PropulsionSystemData + { + /// + /// powerSetting + /// + private float _powerSetting; + + /// + /// engine RPMs + /// + private float _engineRpm; + + /// + /// Initializes a new instance of the class. + /// + public PropulsionSystemData() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(PropulsionSystemData left, PropulsionSystemData right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(PropulsionSystemData left, PropulsionSystemData right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._powerSetting + marshalSize += 4; // this._engineRpm + return marshalSize; + } + + /// + /// Gets or sets the powerSetting + /// + [XmlElement(Type = typeof(float), ElementName = "powerSetting")] + public float PowerSetting + { + get + { + return this._powerSetting; + } + + set + { + this._powerSetting = value; + } + } + + /// + /// Gets or sets the engine RPMs + /// + [XmlElement(Type = typeof(float), ElementName = "engineRpm")] + public float EngineRpm + { + get + { + return this._engineRpm; + } + + set + { + this._engineRpm = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteFloat((float)this._powerSetting); + dos.WriteFloat((float)this._engineRpm); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._powerSetting = dis.ReadFloat(); + this._engineRpm = dis.ReadFloat(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._powerSetting.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._engineRpm.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as PropulsionSystemData; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(PropulsionSystemData obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._powerSetting != obj._powerSetting) + { + ivarsEqual = false; + } + + if (this._engineRpm != obj._engineRpm) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._powerSetting.GetHashCode(); + result = GenerateHash(result) ^ this._engineRpm.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/RadioCommunicationsFamilyPdu.cs b/Libs/CSharpDis7/RadioCommunicationsFamilyPdu.cs new file mode 100644 index 0000000..ed02477 --- /dev/null +++ b/Libs/CSharpDis7/RadioCommunicationsFamilyPdu.cs @@ -0,0 +1,316 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Abstract superclass for radio communications PDUs. Section 7.7 + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + public partial class RadioCommunicationsFamilyPdu : Pdu, IEquatable + { + /// + /// ID of the entitythat is the source of the communication + /// + private EntityID _entityId = new EntityID(); + + /// + /// particular radio within an entity + /// + private ushort _radioId; + + /// + /// Initializes a new instance of the class. + /// + public RadioCommunicationsFamilyPdu() + { + ProtocolFamily = (byte)4; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(RadioCommunicationsFamilyPdu left, RadioCommunicationsFamilyPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(RadioCommunicationsFamilyPdu left, RadioCommunicationsFamilyPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._entityId.GetMarshalledSize(); // this._entityId + marshalSize += 2; // this._radioId + return marshalSize; + } + + /// + /// Gets or sets the ID of the entitythat is the source of the communication + /// + [XmlElement(Type = typeof(EntityID), ElementName = "entityId")] + public EntityID EntityId + { + get + { + return this._entityId; + } + + set + { + this._entityId = value; + } + } + + /// + /// Gets or sets the particular radio within an entity + /// + [XmlElement(Type = typeof(ushort), ElementName = "radioId")] + public ushort RadioId + { + get + { + return this._radioId; + } + + set + { + this._radioId = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public virtual void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._entityId.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._radioId); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._entityId.Unmarshal(dis); + this._radioId = dis.ReadUnsignedShort(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._entityId.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._radioId.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as RadioCommunicationsFamilyPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(RadioCommunicationsFamilyPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._entityId.Equals(obj._entityId)) + { + ivarsEqual = false; + } + + if (this._radioId != obj._radioId) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._entityId.GetHashCode(); + result = GenerateHash(result) ^ this._radioId.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/RadioIdentifier.cs b/Libs/CSharpDis7/RadioIdentifier.cs new file mode 100644 index 0000000..1b543c9 --- /dev/null +++ b/Libs/CSharpDis7/RadioIdentifier.cs @@ -0,0 +1,373 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// The unique designation of an attached or unattached radio in an event or exercise Section 6.2.69 + /// + [Serializable] + [XmlRoot] + public partial class RadioIdentifier + { + /// + /// site + /// + private ushort _siteNumber; + + /// + /// application number + /// + private ushort _applicationNumber; + + /// + /// reference number + /// + private ushort _referenceNumber; + + /// + /// Radio number + /// + private ushort _radioNumber; + + /// + /// Initializes a new instance of the class. + /// + public RadioIdentifier() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(RadioIdentifier left, RadioIdentifier right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(RadioIdentifier left, RadioIdentifier right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 2; // this._siteNumber + marshalSize += 2; // this._applicationNumber + marshalSize += 2; // this._referenceNumber + marshalSize += 2; // this._radioNumber + return marshalSize; + } + + /// + /// Gets or sets the site + /// + [XmlElement(Type = typeof(ushort), ElementName = "siteNumber")] + public ushort SiteNumber + { + get + { + return this._siteNumber; + } + + set + { + this._siteNumber = value; + } + } + + /// + /// Gets or sets the application number + /// + [XmlElement(Type = typeof(ushort), ElementName = "applicationNumber")] + public ushort ApplicationNumber + { + get + { + return this._applicationNumber; + } + + set + { + this._applicationNumber = value; + } + } + + /// + /// Gets or sets the reference number + /// + [XmlElement(Type = typeof(ushort), ElementName = "referenceNumber")] + public ushort ReferenceNumber + { + get + { + return this._referenceNumber; + } + + set + { + this._referenceNumber = value; + } + } + + /// + /// Gets or sets the Radio number + /// + [XmlElement(Type = typeof(ushort), ElementName = "radioNumber")] + public ushort RadioNumber + { + get + { + return this._radioNumber; + } + + set + { + this._radioNumber = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._siteNumber); + dos.WriteUnsignedShort((ushort)this._applicationNumber); + dos.WriteUnsignedShort((ushort)this._referenceNumber); + dos.WriteUnsignedShort((ushort)this._radioNumber); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._siteNumber = dis.ReadUnsignedShort(); + this._applicationNumber = dis.ReadUnsignedShort(); + this._referenceNumber = dis.ReadUnsignedShort(); + this._radioNumber = dis.ReadUnsignedShort(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._siteNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._applicationNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._referenceNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._radioNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as RadioIdentifier; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(RadioIdentifier obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._siteNumber != obj._siteNumber) + { + ivarsEqual = false; + } + + if (this._applicationNumber != obj._applicationNumber) + { + ivarsEqual = false; + } + + if (this._referenceNumber != obj._referenceNumber) + { + ivarsEqual = false; + } + + if (this._radioNumber != obj._radioNumber) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._siteNumber.GetHashCode(); + result = GenerateHash(result) ^ this._applicationNumber.GetHashCode(); + result = GenerateHash(result) ^ this._referenceNumber.GetHashCode(); + result = GenerateHash(result) ^ this._radioNumber.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/RadioType.cs b/Libs/CSharpDis7/RadioType.cs new file mode 100644 index 0000000..77f87f1 --- /dev/null +++ b/Libs/CSharpDis7/RadioType.cs @@ -0,0 +1,457 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Identifies the type of radio. Section 6.2.70 + /// + [Serializable] + [XmlRoot] + public partial class RadioType + { + /// + /// Kind of entity + /// + private byte _entityKind; + + /// + /// Domain of entity (air, surface, subsurface, space, etc) + /// + private byte _domain; + + /// + /// country to which the design of the entity is attributed + /// + private ushort _country; + + /// + /// category of entity + /// + private byte _category; + + /// + /// specific info based on subcategory field + /// + private byte _subcategory; + + private byte _specific; + + private byte _extra; + + /// + /// Initializes a new instance of the class. + /// + public RadioType() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(RadioType left, RadioType right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(RadioType left, RadioType right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._entityKind + marshalSize += 1; // this._domain + marshalSize += 2; // this._country + marshalSize += 1; // this._category + marshalSize += 1; // this._subcategory + marshalSize += 1; // this._specific + marshalSize += 1; // this._extra + return marshalSize; + } + + /// + /// Gets or sets the Kind of entity + /// + [XmlElement(Type = typeof(byte), ElementName = "entityKind")] + public byte EntityKind + { + get + { + return this._entityKind; + } + + set + { + this._entityKind = value; + } + } + + /// + /// Gets or sets the Domain of entity (air, surface, subsurface, space, etc) + /// + [XmlElement(Type = typeof(byte), ElementName = "domain")] + public byte Domain + { + get + { + return this._domain; + } + + set + { + this._domain = value; + } + } + + /// + /// Gets or sets the country to which the design of the entity is attributed + /// + [XmlElement(Type = typeof(ushort), ElementName = "country")] + public ushort Country + { + get + { + return this._country; + } + + set + { + this._country = value; + } + } + + /// + /// Gets or sets the category of entity + /// + [XmlElement(Type = typeof(byte), ElementName = "category")] + public byte Category + { + get + { + return this._category; + } + + set + { + this._category = value; + } + } + + /// + /// Gets or sets the specific info based on subcategory field + /// + [XmlElement(Type = typeof(byte), ElementName = "subcategory")] + public byte Subcategory + { + get + { + return this._subcategory; + } + + set + { + this._subcategory = value; + } + } + + [XmlElement(Type = typeof(byte), ElementName = "specific")] + public byte Specific + { + get + { + return this._specific; + } + + set + { + this._specific = value; + } + } + + [XmlElement(Type = typeof(byte), ElementName = "extra")] + public byte Extra + { + get + { + return this._extra; + } + + set + { + this._extra = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._entityKind); + dos.WriteUnsignedByte((byte)this._domain); + dos.WriteUnsignedShort((ushort)this._country); + dos.WriteUnsignedByte((byte)this._category); + dos.WriteUnsignedByte((byte)this._subcategory); + dos.WriteUnsignedByte((byte)this._specific); + dos.WriteUnsignedByte((byte)this._extra); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._entityKind = dis.ReadUnsignedByte(); + this._domain = dis.ReadUnsignedByte(); + this._country = dis.ReadUnsignedShort(); + this._category = dis.ReadUnsignedByte(); + this._subcategory = dis.ReadUnsignedByte(); + this._specific = dis.ReadUnsignedByte(); + this._extra = dis.ReadUnsignedByte(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._entityKind.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._domain.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._country.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._category.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._subcategory.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._specific.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._extra.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as RadioType; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(RadioType obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._entityKind != obj._entityKind) + { + ivarsEqual = false; + } + + if (this._domain != obj._domain) + { + ivarsEqual = false; + } + + if (this._country != obj._country) + { + ivarsEqual = false; + } + + if (this._category != obj._category) + { + ivarsEqual = false; + } + + if (this._subcategory != obj._subcategory) + { + ivarsEqual = false; + } + + if (this._specific != obj._specific) + { + ivarsEqual = false; + } + + if (this._extra != obj._extra) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._entityKind.GetHashCode(); + result = GenerateHash(result) ^ this._domain.GetHashCode(); + result = GenerateHash(result) ^ this._country.GetHashCode(); + result = GenerateHash(result) ^ this._category.GetHashCode(); + result = GenerateHash(result) ^ this._subcategory.GetHashCode(); + result = GenerateHash(result) ^ this._specific.GetHashCode(); + result = GenerateHash(result) ^ this._extra.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/ReceiverPdu.cs b/Libs/CSharpDis7/ReceiverPdu.cs new file mode 100644 index 0000000..169879d --- /dev/null +++ b/Libs/CSharpDis7/ReceiverPdu.cs @@ -0,0 +1,412 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Communication of a receiver state. Section 7.7.4 COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + public partial class ReceiverPdu : RadioCommunicationsFamilyPdu, IEquatable + { + /// + /// encoding scheme used, and enumeration + /// + private ushort _receiverState; + + /// + /// padding + /// + private ushort _padding1; + + /// + /// received power + /// + private float _receivedPoser; + + /// + /// ID of transmitter + /// + private EntityID _transmitterEntityId = new EntityID(); + + /// + /// ID of transmitting radio + /// + private ushort _transmitterRadioId; + + /// + /// Initializes a new instance of the class. + /// + public ReceiverPdu() + { + PduType = (byte)27; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ReceiverPdu left, ReceiverPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ReceiverPdu left, ReceiverPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 2; // this._receiverState + marshalSize += 2; // this._padding1 + marshalSize += 4; // this._receivedPoser + marshalSize += this._transmitterEntityId.GetMarshalledSize(); // this._transmitterEntityId + marshalSize += 2; // this._transmitterRadioId + return marshalSize; + } + + /// + /// Gets or sets the encoding scheme used, and enumeration + /// + [XmlElement(Type = typeof(ushort), ElementName = "receiverState")] + public ushort ReceiverState + { + get + { + return this._receiverState; + } + + set + { + this._receiverState = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(ushort), ElementName = "padding1")] + public ushort Padding1 + { + get + { + return this._padding1; + } + + set + { + this._padding1 = value; + } + } + + /// + /// Gets or sets the received power + /// + [XmlElement(Type = typeof(float), ElementName = "receivedPoser")] + public float ReceivedPoser + { + get + { + return this._receivedPoser; + } + + set + { + this._receivedPoser = value; + } + } + + /// + /// Gets or sets the ID of transmitter + /// + [XmlElement(Type = typeof(EntityID), ElementName = "transmitterEntityId")] + public EntityID TransmitterEntityId + { + get + { + return this._transmitterEntityId; + } + + set + { + this._transmitterEntityId = value; + } + } + + /// + /// Gets or sets the ID of transmitting radio + /// + [XmlElement(Type = typeof(ushort), ElementName = "transmitterRadioId")] + public ushort TransmitterRadioId + { + get + { + return this._transmitterRadioId; + } + + set + { + this._transmitterRadioId = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._receiverState); + dos.WriteUnsignedShort((ushort)this._padding1); + dos.WriteFloat((float)this._receivedPoser); + this._transmitterEntityId.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._transmitterRadioId); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._receiverState = dis.ReadUnsignedShort(); + this._padding1 = dis.ReadUnsignedShort(); + this._receivedPoser = dis.ReadFloat(); + this._transmitterEntityId.Unmarshal(dis); + this._transmitterRadioId = dis.ReadUnsignedShort(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._receiverState.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._receivedPoser.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._transmitterEntityId.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._transmitterRadioId.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ReceiverPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ReceiverPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._receiverState != obj._receiverState) + { + ivarsEqual = false; + } + + if (this._padding1 != obj._padding1) + { + ivarsEqual = false; + } + + if (this._receivedPoser != obj._receivedPoser) + { + ivarsEqual = false; + } + + if (!this._transmitterEntityId.Equals(obj._transmitterEntityId)) + { + ivarsEqual = false; + } + + if (this._transmitterRadioId != obj._transmitterRadioId) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._receiverState.GetHashCode(); + result = GenerateHash(result) ^ this._padding1.GetHashCode(); + result = GenerateHash(result) ^ this._receivedPoser.GetHashCode(); + result = GenerateHash(result) ^ this._transmitterEntityId.GetHashCode(); + result = GenerateHash(result) ^ this._transmitterRadioId.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/RecordQueryReliablePdu.cs b/Libs/CSharpDis7/RecordQueryReliablePdu.cs new file mode 100644 index 0000000..2406e53 --- /dev/null +++ b/Libs/CSharpDis7/RecordQueryReliablePdu.cs @@ -0,0 +1,544 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Section 5.3.12.13: A request for one or more records of data from an entity. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(FourByteChunk))] + public partial class RecordQueryReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable + { + /// + /// request ID + /// + private uint _requestID; + + /// + /// level of reliability service used for this transaction + /// + private byte _requiredReliabilityService; + + /// + /// padding. The spec is unclear and contradictory here. + /// + private ushort _pad1; + + /// + /// padding + /// + private byte _pad2; + + /// + /// event type + /// + private ushort _eventType; + + /// + /// time + /// + private uint _time; + + /// + /// numberOfRecords + /// + private uint _numberOfRecords; + + /// + /// record IDs + /// + private List _recordIDs = new List(); + + /// + /// Initializes a new instance of the class. + /// + public RecordQueryReliablePdu() + { + PduType = (byte)63; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(RecordQueryReliablePdu left, RecordQueryReliablePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(RecordQueryReliablePdu left, RecordQueryReliablePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 4; // this._requestID + marshalSize += 1; // this._requiredReliabilityService + marshalSize += 2; // this._pad1 + marshalSize += 1; // this._pad2 + marshalSize += 2; // this._eventType + marshalSize += 4; // this._time + marshalSize += 4; // this._numberOfRecords + for (int idx = 0; idx < this._recordIDs.Count; idx++) + { + FourByteChunk listElement = (FourByteChunk)this._recordIDs[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the request ID + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Gets or sets the level of reliability service used for this transaction + /// + [XmlElement(Type = typeof(byte), ElementName = "requiredReliabilityService")] + public byte RequiredReliabilityService + { + get + { + return this._requiredReliabilityService; + } + + set + { + this._requiredReliabilityService = value; + } + } + + /// + /// Gets or sets the padding. The spec is unclear and contradictory here. + /// + [XmlElement(Type = typeof(ushort), ElementName = "pad1")] + public ushort Pad1 + { + get + { + return this._pad1; + } + + set + { + this._pad1 = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "pad2")] + public byte Pad2 + { + get + { + return this._pad2; + } + + set + { + this._pad2 = value; + } + } + + /// + /// Gets or sets the event type + /// + [XmlElement(Type = typeof(ushort), ElementName = "eventType")] + public ushort EventType + { + get + { + return this._eventType; + } + + set + { + this._eventType = value; + } + } + + /// + /// Gets or sets the time + /// + [XmlElement(Type = typeof(uint), ElementName = "time")] + public uint Time + { + get + { + return this._time; + } + + set + { + this._time = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfRecords")] + public uint NumberOfRecords + { + get + { + return this._numberOfRecords; + } + + set + { + this._numberOfRecords = value; + } + } + + /// + /// Gets or sets the record IDs + /// + [XmlElement(ElementName = "recordIDsList", Type = typeof(List))] + public List RecordIDs + { + get + { + return this._recordIDs; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._requestID); + dos.WriteUnsignedByte((byte)this._requiredReliabilityService); + dos.WriteUnsignedShort((ushort)this._pad1); + dos.WriteUnsignedByte((byte)this._pad2); + dos.WriteUnsignedShort((ushort)this._eventType); + dos.WriteUnsignedInt((uint)this._time); + dos.WriteUnsignedInt((uint)this._recordIDs.Count); + + for (int idx = 0; idx < this._recordIDs.Count; idx++) + { + FourByteChunk aFourByteChunk = (FourByteChunk)this._recordIDs[idx]; + aFourByteChunk.Marshal(dos); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._requestID = dis.ReadUnsignedInt(); + this._requiredReliabilityService = dis.ReadUnsignedByte(); + this._pad1 = dis.ReadUnsignedShort(); + this._pad2 = dis.ReadUnsignedByte(); + this._eventType = dis.ReadUnsignedShort(); + this._time = dis.ReadUnsignedInt(); + this._numberOfRecords = dis.ReadUnsignedInt(); + for (int idx = 0; idx < this.NumberOfRecords; idx++) + { + FourByteChunk anX = new FourByteChunk(); + anX.Unmarshal(dis); + this._recordIDs.Add(anX); + }; + + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._requiredReliabilityService.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._eventType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + sb.AppendLine("" + this._recordIDs.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._recordIDs.Count; idx++) + { + sb.AppendLine(""); + FourByteChunk aFourByteChunk = (FourByteChunk)this._recordIDs[idx]; + aFourByteChunk.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as RecordQueryReliablePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(RecordQueryReliablePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + if (this._requiredReliabilityService != obj._requiredReliabilityService) + { + ivarsEqual = false; + } + + if (this._pad1 != obj._pad1) + { + ivarsEqual = false; + } + + if (this._pad2 != obj._pad2) + { + ivarsEqual = false; + } + + if (this._eventType != obj._eventType) + { + ivarsEqual = false; + } + + if (this._time != obj._time) + { + ivarsEqual = false; + } + + if (this._numberOfRecords != obj._numberOfRecords) + { + ivarsEqual = false; + } + + if (this._recordIDs.Count != obj._recordIDs.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._recordIDs.Count; idx++) + { + if (!this._recordIDs[idx].Equals(obj._recordIDs[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + result = GenerateHash(result) ^ this._requiredReliabilityService.GetHashCode(); + result = GenerateHash(result) ^ this._pad1.GetHashCode(); + result = GenerateHash(result) ^ this._pad2.GetHashCode(); + result = GenerateHash(result) ^ this._eventType.GetHashCode(); + result = GenerateHash(result) ^ this._time.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfRecords.GetHashCode(); + + if (this._recordIDs.Count > 0) + { + for (int idx = 0; idx < this._recordIDs.Count; idx++) + { + result = GenerateHash(result) ^ this._recordIDs[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/RecordQuerySpecification.cs b/Libs/CSharpDis7/RecordQuerySpecification.cs new file mode 100644 index 0000000..095e8b5 --- /dev/null +++ b/Libs/CSharpDis7/RecordQuerySpecification.cs @@ -0,0 +1,345 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// The identification of the records being queried 6.2.71 + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(FourByteChunk))] + public partial class RecordQuerySpecification + { + private uint _numberOfRecords; + + /// + /// variable length list of 32 bit records + /// + private List _records = new List(); + + /// + /// Initializes a new instance of the class. + /// + public RecordQuerySpecification() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(RecordQuerySpecification left, RecordQuerySpecification right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(RecordQuerySpecification left, RecordQuerySpecification right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._numberOfRecords + for (int idx = 0; idx < this._records.Count; idx++) + { + FourByteChunk listElement = (FourByteChunk)this._records[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfRecords")] + public uint NumberOfRecords + { + get + { + return this._numberOfRecords; + } + + set + { + this._numberOfRecords = value; + } + } + + /// + /// Gets or sets the variable length list of 32 bit records + /// + [XmlElement(ElementName = "recordsList", Type = typeof(List))] + public List Records + { + get + { + return this._records; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._records.Count); + + for (int idx = 0; idx < this._records.Count; idx++) + { + FourByteChunk aFourByteChunk = (FourByteChunk)this._records[idx]; + aFourByteChunk.Marshal(dos); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._numberOfRecords = dis.ReadUnsignedInt(); + for (int idx = 0; idx < this.NumberOfRecords; idx++) + { + FourByteChunk anX = new FourByteChunk(); + anX.Unmarshal(dis); + this._records.Add(anX); + }; + + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._records.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._records.Count; idx++) + { + sb.AppendLine(""); + FourByteChunk aFourByteChunk = (FourByteChunk)this._records[idx]; + aFourByteChunk.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as RecordQuerySpecification; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(RecordQuerySpecification obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._numberOfRecords != obj._numberOfRecords) + { + ivarsEqual = false; + } + + if (this._records.Count != obj._records.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._records.Count; idx++) + { + if (!this._records[idx].Equals(obj._records[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._numberOfRecords.GetHashCode(); + + if (this._records.Count > 0) + { + for (int idx = 0; idx < this._records.Count; idx++) + { + result = GenerateHash(result) ^ this._records[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/RecordSpecification.cs b/Libs/CSharpDis7/RecordSpecification.cs new file mode 100644 index 0000000..b8404bc --- /dev/null +++ b/Libs/CSharpDis7/RecordSpecification.cs @@ -0,0 +1,348 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// This record shall specify the number of record sets contained in the Record Specification record and the record details. Section 6.2.72. + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(RecordSpecificationElement))] + public partial class RecordSpecification + { + /// + /// The number of record sets + /// + private uint _numberOfRecordSets; + + /// + /// variable length list record specifications. + /// + private List _recordSets = new List(); + + /// + /// Initializes a new instance of the class. + /// + public RecordSpecification() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(RecordSpecification left, RecordSpecification right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(RecordSpecification left, RecordSpecification right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._numberOfRecordSets + for (int idx = 0; idx < this._recordSets.Count; idx++) + { + RecordSpecificationElement listElement = (RecordSpecificationElement)this._recordSets[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfRecordSets method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfRecordSets")] + public uint NumberOfRecordSets + { + get + { + return this._numberOfRecordSets; + } + + set + { + this._numberOfRecordSets = value; + } + } + + /// + /// Gets or sets the variable length list record specifications. + /// + [XmlElement(ElementName = "recordSetsList", Type = typeof(List))] + public List RecordSets + { + get + { + return this._recordSets; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._recordSets.Count); + + for (int idx = 0; idx < this._recordSets.Count; idx++) + { + RecordSpecificationElement aRecordSpecificationElement = (RecordSpecificationElement)this._recordSets[idx]; + aRecordSpecificationElement.Marshal(dos); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._numberOfRecordSets = dis.ReadUnsignedInt(); + for (int idx = 0; idx < this.NumberOfRecordSets; idx++) + { + RecordSpecificationElement anX = new RecordSpecificationElement(); + anX.Unmarshal(dis); + this._recordSets.Add(anX); + }; + + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._recordSets.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._recordSets.Count; idx++) + { + sb.AppendLine(""); + RecordSpecificationElement aRecordSpecificationElement = (RecordSpecificationElement)this._recordSets[idx]; + aRecordSpecificationElement.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as RecordSpecification; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(RecordSpecification obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._numberOfRecordSets != obj._numberOfRecordSets) + { + ivarsEqual = false; + } + + if (this._recordSets.Count != obj._recordSets.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._recordSets.Count; idx++) + { + if (!this._recordSets[idx].Equals(obj._recordSets[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._numberOfRecordSets.GetHashCode(); + + if (this._recordSets.Count > 0) + { + for (int idx = 0; idx < this._recordSets.Count; idx++) + { + result = GenerateHash(result) ^ this._recordSets[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/RecordSpecificationElement.cs b/Libs/CSharpDis7/RecordSpecificationElement.cs new file mode 100644 index 0000000..67f348d --- /dev/null +++ b/Libs/CSharpDis7/RecordSpecificationElement.cs @@ -0,0 +1,437 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Synthetic record, made up from section 6.2.72. This is used to acheive a repeating variable list element. + /// + [Serializable] + [XmlRoot] + public partial class RecordSpecificationElement + { + /// + /// the data structure used to convey the parameter values of the record for each record. 32 bit enumeration. + /// + private uint _recordID; + + /// + /// the serial number of the first record in the block of records + /// + private uint _recordSetSerialNumber; + + /// + /// the length, in bits, of the record. Note, bits, not bytes. + /// + private ushort _recordLength; + + /// + /// the number of records included in the record set + /// + private ushort _recordCount; + + /// + /// the concatenated records of the format specified by the Record ID field. The length of this field is the Record Length multiplied by the Record Count, in units of bits. ^^^This is wrong--variable sized data records, bit values. THis MUST be patched after generation. + /// + private ushort _recordValues; + + /// + /// Padding of 0 to 31 unused bits as required for 32-bit alignment of the Record Set field. ^^^This is wrong--variable sized padding. MUST be patched post-code generation + /// + private byte _pad4; + + /// + /// Initializes a new instance of the class. + /// + public RecordSpecificationElement() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(RecordSpecificationElement left, RecordSpecificationElement right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(RecordSpecificationElement left, RecordSpecificationElement right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._recordID + marshalSize += 4; // this._recordSetSerialNumber + marshalSize += 2; // this._recordLength + marshalSize += 2; // this._recordCount + marshalSize += 2; // this._recordValues + marshalSize += 1; // this._pad4 + return marshalSize; + } + + /// + /// Gets or sets the the data structure used to convey the parameter values of the record for each record. 32 bit enumeration. + /// + [XmlElement(Type = typeof(uint), ElementName = "recordID")] + public uint RecordID + { + get + { + return this._recordID; + } + + set + { + this._recordID = value; + } + } + + /// + /// Gets or sets the the serial number of the first record in the block of records + /// + [XmlElement(Type = typeof(uint), ElementName = "recordSetSerialNumber")] + public uint RecordSetSerialNumber + { + get + { + return this._recordSetSerialNumber; + } + + set + { + this._recordSetSerialNumber = value; + } + } + + /// + /// Gets or sets the the length, in bits, of the record. Note, bits, not bytes. + /// + [XmlElement(Type = typeof(ushort), ElementName = "recordLength")] + public ushort RecordLength + { + get + { + return this._recordLength; + } + + set + { + this._recordLength = value; + } + } + + /// + /// Gets or sets the the number of records included in the record set + /// + [XmlElement(Type = typeof(ushort), ElementName = "recordCount")] + public ushort RecordCount + { + get + { + return this._recordCount; + } + + set + { + this._recordCount = value; + } + } + + /// + /// Gets or sets the the concatenated records of the format specified by the Record ID field. The length of this field is the Record Length multiplied by the Record Count, in units of bits. ^^^This is wrong--variable sized data records, bit values. THis MUST be patched after generation. + /// + [XmlElement(Type = typeof(ushort), ElementName = "recordValues")] + public ushort RecordValues + { + get + { + return this._recordValues; + } + + set + { + this._recordValues = value; + } + } + + /// + /// Gets or sets the Padding of 0 to 31 unused bits as required for 32-bit alignment of the Record Set field. ^^^This is wrong--variable sized padding. MUST be patched post-code generation + /// + [XmlElement(Type = typeof(byte), ElementName = "pad4")] + public byte Pad4 + { + get + { + return this._pad4; + } + + set + { + this._pad4 = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._recordID); + dos.WriteUnsignedInt((uint)this._recordSetSerialNumber); + dos.WriteUnsignedShort((ushort)this._recordLength); + dos.WriteUnsignedShort((ushort)this._recordCount); + dos.WriteUnsignedShort((ushort)this._recordValues); + dos.WriteUnsignedByte((byte)this._pad4); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._recordID = dis.ReadUnsignedInt(); + this._recordSetSerialNumber = dis.ReadUnsignedInt(); + this._recordLength = dis.ReadUnsignedShort(); + this._recordCount = dis.ReadUnsignedShort(); + this._recordValues = dis.ReadUnsignedShort(); + this._pad4 = dis.ReadUnsignedByte(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._recordID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._recordSetSerialNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._recordLength.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._recordCount.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._recordValues.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad4.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as RecordSpecificationElement; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(RecordSpecificationElement obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._recordID != obj._recordID) + { + ivarsEqual = false; + } + + if (this._recordSetSerialNumber != obj._recordSetSerialNumber) + { + ivarsEqual = false; + } + + if (this._recordLength != obj._recordLength) + { + ivarsEqual = false; + } + + if (this._recordCount != obj._recordCount) + { + ivarsEqual = false; + } + + if (this._recordValues != obj._recordValues) + { + ivarsEqual = false; + } + + if (this._pad4 != obj._pad4) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._recordID.GetHashCode(); + result = GenerateHash(result) ^ this._recordSetSerialNumber.GetHashCode(); + result = GenerateHash(result) ^ this._recordLength.GetHashCode(); + result = GenerateHash(result) ^ this._recordCount.GetHashCode(); + result = GenerateHash(result) ^ this._recordValues.GetHashCode(); + result = GenerateHash(result) ^ this._pad4.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/Relationship.cs b/Libs/CSharpDis7/Relationship.cs new file mode 100644 index 0000000..025cc14 --- /dev/null +++ b/Libs/CSharpDis7/Relationship.cs @@ -0,0 +1,309 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// The relationship of the part entity to its host entity. Section 6.2.73. + /// + [Serializable] + [XmlRoot] + public partial class Relationship + { + /// + /// the nature or purpose for joining of the part entity to the host entity and shall be represented by a 16-bit enumeration + /// + private ushort _nature; + + /// + /// the position of the part entity with respect to the host entity and shall be represented by a 16-bit enumeration + /// + private ushort _position; + + /// + /// Initializes a new instance of the class. + /// + public Relationship() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(Relationship left, Relationship right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(Relationship left, Relationship right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 2; // this._nature + marshalSize += 2; // this._position + return marshalSize; + } + + /// + /// Gets or sets the the nature or purpose for joining of the part entity to the host entity and shall be represented by a 16-bit enumeration + /// + [XmlElement(Type = typeof(ushort), ElementName = "nature")] + public ushort Nature + { + get + { + return this._nature; + } + + set + { + this._nature = value; + } + } + + /// + /// Gets or sets the the position of the part entity with respect to the host entity and shall be represented by a 16-bit enumeration + /// + [XmlElement(Type = typeof(ushort), ElementName = "position")] + public ushort Position + { + get + { + return this._position; + } + + set + { + this._position = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._nature); + dos.WriteUnsignedShort((ushort)this._position); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._nature = dis.ReadUnsignedShort(); + this._position = dis.ReadUnsignedShort(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._nature.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._position.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as Relationship; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(Relationship obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._nature != obj._nature) + { + ivarsEqual = false; + } + + if (this._position != obj._position) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._nature.GetHashCode(); + result = GenerateHash(result) ^ this._position.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/RemoveEntityPdu.cs b/Libs/CSharpDis7/RemoveEntityPdu.cs new file mode 100644 index 0000000..fa02d58 --- /dev/null +++ b/Libs/CSharpDis7/RemoveEntityPdu.cs @@ -0,0 +1,350 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Section 7.5.3 The removal of an entity from an exercise shall be communicated with a Remove Entity PDU. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + public partial class RemoveEntityPdu : SimulationManagementFamilyPdu, IEquatable + { + /// + /// Identifier for originating entity(or simulation) + /// + private EntityID _originatingID = new EntityID(); + + /// + /// Identifier for the receiving entity(or simulation) + /// + private EntityID _receivingID = new EntityID(); + + /// + /// This field shall identify the specific and unique start/resume request being made by the SM + /// + private uint _requestID; + + /// + /// Initializes a new instance of the class. + /// + public RemoveEntityPdu() + { + PduType = (byte)12; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(RemoveEntityPdu left, RemoveEntityPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(RemoveEntityPdu left, RemoveEntityPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._originatingID.GetMarshalledSize(); // this._originatingID + marshalSize += this._receivingID.GetMarshalledSize(); // this._receivingID + marshalSize += 4; // this._requestID + return marshalSize; + } + + /// + /// Gets or sets the Identifier for originating entity(or simulation) + /// + [XmlElement(Type = typeof(EntityID), ElementName = "originatingID")] + public EntityID OriginatingID + { + get + { + return this._originatingID; + } + + set + { + this._originatingID = value; + } + } + + /// + /// Gets or sets the Identifier for the receiving entity(or simulation) + /// + [XmlElement(Type = typeof(EntityID), ElementName = "receivingID")] + public EntityID ReceivingID + { + get + { + return this._receivingID; + } + + set + { + this._receivingID = value; + } + } + + /// + /// Gets or sets the This field shall identify the specific and unique start/resume request being made by the SM + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._originatingID.Marshal(dos); + this._receivingID.Marshal(dos); + dos.WriteUnsignedInt((uint)this._requestID); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._originatingID.Unmarshal(dis); + this._receivingID.Unmarshal(dis); + this._requestID = dis.ReadUnsignedInt(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._originatingID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._receivingID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as RemoveEntityPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(RemoveEntityPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._originatingID.Equals(obj._originatingID)) + { + ivarsEqual = false; + } + + if (!this._receivingID.Equals(obj._receivingID)) + { + ivarsEqual = false; + } + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._originatingID.GetHashCode(); + result = GenerateHash(result) ^ this._receivingID.GetHashCode(); + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/RemoveEntityReliablePdu.cs b/Libs/CSharpDis7/RemoveEntityReliablePdu.cs new file mode 100644 index 0000000..836e9ff --- /dev/null +++ b/Libs/CSharpDis7/RemoveEntityReliablePdu.cs @@ -0,0 +1,377 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Section 5.3.12.2: Removal of an entity , reliable. COMPLETE + /// + [Serializable] + [XmlRoot] + public partial class RemoveEntityReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable + { + /// + /// level of reliability service used for this transaction + /// + private byte _requiredReliabilityService; + + /// + /// padding + /// + private ushort _pad1; + + /// + /// padding + /// + private byte _pad2; + + /// + /// Request ID + /// + private uint _requestID; + + /// + /// Initializes a new instance of the class. + /// + public RemoveEntityReliablePdu() + { + PduType = (byte)52; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(RemoveEntityReliablePdu left, RemoveEntityReliablePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(RemoveEntityReliablePdu left, RemoveEntityReliablePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 1; // this._requiredReliabilityService + marshalSize += 2; // this._pad1 + marshalSize += 1; // this._pad2 + marshalSize += 4; // this._requestID + return marshalSize; + } + + /// + /// Gets or sets the level of reliability service used for this transaction + /// + [XmlElement(Type = typeof(byte), ElementName = "requiredReliabilityService")] + public byte RequiredReliabilityService + { + get + { + return this._requiredReliabilityService; + } + + set + { + this._requiredReliabilityService = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(ushort), ElementName = "pad1")] + public ushort Pad1 + { + get + { + return this._pad1; + } + + set + { + this._pad1 = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "pad2")] + public byte Pad2 + { + get + { + return this._pad2; + } + + set + { + this._pad2 = value; + } + } + + /// + /// Gets or sets the Request ID + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._requiredReliabilityService); + dos.WriteUnsignedShort((ushort)this._pad1); + dos.WriteUnsignedByte((byte)this._pad2); + dos.WriteUnsignedInt((uint)this._requestID); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._requiredReliabilityService = dis.ReadUnsignedByte(); + this._pad1 = dis.ReadUnsignedShort(); + this._pad2 = dis.ReadUnsignedByte(); + this._requestID = dis.ReadUnsignedInt(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._requiredReliabilityService.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as RemoveEntityReliablePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(RemoveEntityReliablePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._requiredReliabilityService != obj._requiredReliabilityService) + { + ivarsEqual = false; + } + + if (this._pad1 != obj._pad1) + { + ivarsEqual = false; + } + + if (this._pad2 != obj._pad2) + { + ivarsEqual = false; + } + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._requiredReliabilityService.GetHashCode(); + result = GenerateHash(result) ^ this._pad1.GetHashCode(); + result = GenerateHash(result) ^ this._pad2.GetHashCode(); + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/RepairCompletePdu.cs b/Libs/CSharpDis7/RepairCompletePdu.cs new file mode 100644 index 0000000..59999d3 --- /dev/null +++ b/Libs/CSharpDis7/RepairCompletePdu.cs @@ -0,0 +1,382 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Section 7.4.6. Service Request PDU is received and repair is complete. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + public partial class RepairCompletePdu : LogisticsFamilyPdu, IEquatable + { + /// + /// Entity that is receiving service. See 6.2.28 + /// + private EntityID _receivingEntityID = new EntityID(); + + /// + /// Entity that is supplying. See 6.2.28 + /// + private EntityID _repairingEntityID = new EntityID(); + + /// + /// Enumeration for type of repair. See 6.2.74 + /// + private ushort _repair; + + /// + /// padding, number prevents conflict with superclass ivar name + /// + private short _padding4; + + /// + /// Initializes a new instance of the class. + /// + public RepairCompletePdu() + { + PduType = (byte)9; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(RepairCompletePdu left, RepairCompletePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(RepairCompletePdu left, RepairCompletePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._receivingEntityID.GetMarshalledSize(); // this._receivingEntityID + marshalSize += this._repairingEntityID.GetMarshalledSize(); // this._repairingEntityID + marshalSize += 2; // this._repair + marshalSize += 2; // this._padding4 + return marshalSize; + } + + /// + /// Gets or sets the Entity that is receiving service. See 6.2.28 + /// + [XmlElement(Type = typeof(EntityID), ElementName = "receivingEntityID")] + public EntityID ReceivingEntityID + { + get + { + return this._receivingEntityID; + } + + set + { + this._receivingEntityID = value; + } + } + + /// + /// Gets or sets the Entity that is supplying. See 6.2.28 + /// + [XmlElement(Type = typeof(EntityID), ElementName = "repairingEntityID")] + public EntityID RepairingEntityID + { + get + { + return this._repairingEntityID; + } + + set + { + this._repairingEntityID = value; + } + } + + /// + /// Gets or sets the Enumeration for type of repair. See 6.2.74 + /// + [XmlElement(Type = typeof(ushort), ElementName = "repair")] + public ushort Repair + { + get + { + return this._repair; + } + + set + { + this._repair = value; + } + } + + /// + /// Gets or sets the padding, number prevents conflict with superclass ivar name + /// + [XmlElement(Type = typeof(short), ElementName = "padding4")] + public short Padding4 + { + get + { + return this._padding4; + } + + set + { + this._padding4 = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._receivingEntityID.Marshal(dos); + this._repairingEntityID.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._repair); + dos.WriteShort((short)this._padding4); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._receivingEntityID.Unmarshal(dis); + this._repairingEntityID.Unmarshal(dis); + this._repair = dis.ReadUnsignedShort(); + this._padding4 = dis.ReadShort(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._receivingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._repairingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._repair.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding4.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as RepairCompletePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(RepairCompletePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._receivingEntityID.Equals(obj._receivingEntityID)) + { + ivarsEqual = false; + } + + if (!this._repairingEntityID.Equals(obj._repairingEntityID)) + { + ivarsEqual = false; + } + + if (this._repair != obj._repair) + { + ivarsEqual = false; + } + + if (this._padding4 != obj._padding4) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._receivingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._repairingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._repair.GetHashCode(); + result = GenerateHash(result) ^ this._padding4.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/RepairResponsePdu.cs b/Libs/CSharpDis7/RepairResponsePdu.cs new file mode 100644 index 0000000..3976fa1 --- /dev/null +++ b/Libs/CSharpDis7/RepairResponsePdu.cs @@ -0,0 +1,414 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Section 7.4.7. Sent after repair complete PDU. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + public partial class RepairResponsePdu : LogisticsFamilyPdu, IEquatable + { + /// + /// Entity that requested repairs. See 6.2.28 + /// + private EntityID _receivingEntityID = new EntityID(); + + /// + /// Entity that is repairing. See 6.2.28 + /// + private EntityID _repairingEntityID = new EntityID(); + + /// + /// Result of repair operation + /// + private byte _repairResult; + + /// + /// padding + /// + private short _padding1; + + /// + /// padding + /// + private byte _padding2; + + /// + /// Initializes a new instance of the class. + /// + public RepairResponsePdu() + { + PduType = (byte)10; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(RepairResponsePdu left, RepairResponsePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(RepairResponsePdu left, RepairResponsePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._receivingEntityID.GetMarshalledSize(); // this._receivingEntityID + marshalSize += this._repairingEntityID.GetMarshalledSize(); // this._repairingEntityID + marshalSize += 1; // this._repairResult + marshalSize += 2; // this._padding1 + marshalSize += 1; // this._padding2 + return marshalSize; + } + + /// + /// Gets or sets the Entity that requested repairs. See 6.2.28 + /// + [XmlElement(Type = typeof(EntityID), ElementName = "receivingEntityID")] + public EntityID ReceivingEntityID + { + get + { + return this._receivingEntityID; + } + + set + { + this._receivingEntityID = value; + } + } + + /// + /// Gets or sets the Entity that is repairing. See 6.2.28 + /// + [XmlElement(Type = typeof(EntityID), ElementName = "repairingEntityID")] + public EntityID RepairingEntityID + { + get + { + return this._repairingEntityID; + } + + set + { + this._repairingEntityID = value; + } + } + + /// + /// Gets or sets the Result of repair operation + /// + [XmlElement(Type = typeof(byte), ElementName = "repairResult")] + public byte RepairResult + { + get + { + return this._repairResult; + } + + set + { + this._repairResult = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(short), ElementName = "padding1")] + public short Padding1 + { + get + { + return this._padding1; + } + + set + { + this._padding1 = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "padding2")] + public byte Padding2 + { + get + { + return this._padding2; + } + + set + { + this._padding2 = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._receivingEntityID.Marshal(dos); + this._repairingEntityID.Marshal(dos); + dos.WriteUnsignedByte((byte)this._repairResult); + dos.WriteShort((short)this._padding1); + dos.WriteByte((byte)this._padding2); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._receivingEntityID.Unmarshal(dis); + this._repairingEntityID.Unmarshal(dis); + this._repairResult = dis.ReadUnsignedByte(); + this._padding1 = dis.ReadShort(); + this._padding2 = dis.ReadByte(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._receivingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._repairingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._repairResult.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as RepairResponsePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(RepairResponsePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._receivingEntityID.Equals(obj._receivingEntityID)) + { + ivarsEqual = false; + } + + if (!this._repairingEntityID.Equals(obj._repairingEntityID)) + { + ivarsEqual = false; + } + + if (this._repairResult != obj._repairResult) + { + ivarsEqual = false; + } + + if (this._padding1 != obj._padding1) + { + ivarsEqual = false; + } + + if (this._padding2 != obj._padding2) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._receivingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._repairingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._repairResult.GetHashCode(); + result = GenerateHash(result) ^ this._padding1.GetHashCode(); + result = GenerateHash(result) ^ this._padding2.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/ResupplyOfferPdu.cs b/Libs/CSharpDis7/ResupplyOfferPdu.cs new file mode 100644 index 0000000..52bc92d --- /dev/null +++ b/Libs/CSharpDis7/ResupplyOfferPdu.cs @@ -0,0 +1,485 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Information used to communicate the offer of supplies by a supplying entity to a receiving entity. Section 7.4.3 COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(SupplyQuantity))] + public partial class ResupplyOfferPdu : LogisticsFamilyPdu, IEquatable + { + /// + /// Field identifies the Entity and respective Entity Record ID that is receiving service (see 6.2.28), Section 7.4.3 + /// + private EntityID _receivingEntityID = new EntityID(); + + /// + /// Identifies the Entity and respective Entity ID Record that is supplying (see 6.2.28), Section 7.4.3 + /// + private EntityID _supplyingEntityID = new EntityID(); + + /// + /// How many supplies types are being offered, Section 7.4.3 + /// + private byte _numberOfSupplyTypes; + + /// + /// padding + /// + private byte _padding1; + + /// + /// padding + /// + private short _padding2; + + /// + /// A Reord that Specifies the type of supply and the amount of that supply for each of the supply types in numberOfSupplyTypes (see 6.2.85), Section 7.4.3 + /// + private List _supplies = new List(); + + /// + /// Initializes a new instance of the class. + /// + public ResupplyOfferPdu() + { + PduType = (byte)6; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ResupplyOfferPdu left, ResupplyOfferPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ResupplyOfferPdu left, ResupplyOfferPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._receivingEntityID.GetMarshalledSize(); // this._receivingEntityID + marshalSize += this._supplyingEntityID.GetMarshalledSize(); // this._supplyingEntityID + marshalSize += 1; // this._numberOfSupplyTypes + marshalSize += 1; // this._padding1 + marshalSize += 2; // this._padding2 + for (int idx = 0; idx < this._supplies.Count; idx++) + { + SupplyQuantity listElement = (SupplyQuantity)this._supplies[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Field identifies the Entity and respective Entity Record ID that is receiving service (see 6.2.28), Section 7.4.3 + /// + [XmlElement(Type = typeof(EntityID), ElementName = "receivingEntityID")] + public EntityID ReceivingEntityID + { + get + { + return this._receivingEntityID; + } + + set + { + this._receivingEntityID = value; + } + } + + /// + /// Gets or sets the Identifies the Entity and respective Entity ID Record that is supplying (see 6.2.28), Section 7.4.3 + /// + [XmlElement(Type = typeof(EntityID), ElementName = "supplyingEntityID")] + public EntityID SupplyingEntityID + { + get + { + return this._supplyingEntityID; + } + + set + { + this._supplyingEntityID = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfSupplyTypes method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfSupplyTypes")] + public byte NumberOfSupplyTypes + { + get + { + return this._numberOfSupplyTypes; + } + + set + { + this._numberOfSupplyTypes = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "padding1")] + public byte Padding1 + { + get + { + return this._padding1; + } + + set + { + this._padding1 = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(short), ElementName = "padding2")] + public short Padding2 + { + get + { + return this._padding2; + } + + set + { + this._padding2 = value; + } + } + + /// + /// Gets or sets the A Reord that Specifies the type of supply and the amount of that supply for each of the supply types in numberOfSupplyTypes (see 6.2.85), Section 7.4.3 + /// + [XmlElement(ElementName = "suppliesList", Type = typeof(List))] + public List Supplies + { + get + { + return this._supplies; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._receivingEntityID.Marshal(dos); + this._supplyingEntityID.Marshal(dos); + dos.WriteUnsignedByte((byte)this._supplies.Count); + dos.WriteByte((byte)this._padding1); + dos.WriteShort((short)this._padding2); + + for (int idx = 0; idx < this._supplies.Count; idx++) + { + SupplyQuantity aSupplyQuantity = (SupplyQuantity)this._supplies[idx]; + aSupplyQuantity.Marshal(dos); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._receivingEntityID.Unmarshal(dis); + this._supplyingEntityID.Unmarshal(dis); + this._numberOfSupplyTypes = dis.ReadUnsignedByte(); + this._padding1 = dis.ReadByte(); + this._padding2 = dis.ReadShort(); + for (int idx = 0; idx < this.NumberOfSupplyTypes; idx++) + { + SupplyQuantity anX = new SupplyQuantity(); + anX.Unmarshal(dis); + this._supplies.Add(anX); + }; + + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._receivingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._supplyingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._supplies.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._supplies.Count; idx++) + { + sb.AppendLine(""); + SupplyQuantity aSupplyQuantity = (SupplyQuantity)this._supplies[idx]; + aSupplyQuantity.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ResupplyOfferPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ResupplyOfferPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._receivingEntityID.Equals(obj._receivingEntityID)) + { + ivarsEqual = false; + } + + if (!this._supplyingEntityID.Equals(obj._supplyingEntityID)) + { + ivarsEqual = false; + } + + if (this._numberOfSupplyTypes != obj._numberOfSupplyTypes) + { + ivarsEqual = false; + } + + if (this._padding1 != obj._padding1) + { + ivarsEqual = false; + } + + if (this._padding2 != obj._padding2) + { + ivarsEqual = false; + } + + if (this._supplies.Count != obj._supplies.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._supplies.Count; idx++) + { + if (!this._supplies[idx].Equals(obj._supplies[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._receivingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._supplyingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfSupplyTypes.GetHashCode(); + result = GenerateHash(result) ^ this._padding1.GetHashCode(); + result = GenerateHash(result) ^ this._padding2.GetHashCode(); + + if (this._supplies.Count > 0) + { + for (int idx = 0; idx < this._supplies.Count; idx++) + { + result = GenerateHash(result) ^ this._supplies[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/ResupplyReceivedPdu.cs b/Libs/CSharpDis7/ResupplyReceivedPdu.cs new file mode 100644 index 0000000..db6d460 --- /dev/null +++ b/Libs/CSharpDis7/ResupplyReceivedPdu.cs @@ -0,0 +1,485 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Section 7.4.4. Receipt of supplies is communicated by issuing Resupply Received PDU. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(SupplyQuantity))] + public partial class ResupplyReceivedPdu : LogisticsFamilyPdu, IEquatable + { + /// + /// Entity that is receiving service. Shall be represented by Entity Identifier record (see 6.2.28) + /// + private EntityID _receivingEntityID = new EntityID(); + + /// + /// Entity that is supplying. Shall be represented by Entity Identifier record (see 6.2.28) + /// + private EntityID _supplyingEntityID = new EntityID(); + + /// + /// How many supplies are taken by receiving entity + /// + private byte _numberOfSupplyTypes; + + /// + /// padding + /// + private short _padding1; + + /// + /// padding + /// + private byte _padding2; + + /// + /// Type and amount of supplies for each specified supply type. See 6.2.85 for supply quantity record. + /// + private List _supplies = new List(); + + /// + /// Initializes a new instance of the class. + /// + public ResupplyReceivedPdu() + { + PduType = (byte)7; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ResupplyReceivedPdu left, ResupplyReceivedPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ResupplyReceivedPdu left, ResupplyReceivedPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._receivingEntityID.GetMarshalledSize(); // this._receivingEntityID + marshalSize += this._supplyingEntityID.GetMarshalledSize(); // this._supplyingEntityID + marshalSize += 1; // this._numberOfSupplyTypes + marshalSize += 2; // this._padding1 + marshalSize += 1; // this._padding2 + for (int idx = 0; idx < this._supplies.Count; idx++) + { + SupplyQuantity listElement = (SupplyQuantity)this._supplies[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Entity that is receiving service. Shall be represented by Entity Identifier record (see 6.2.28) + /// + [XmlElement(Type = typeof(EntityID), ElementName = "receivingEntityID")] + public EntityID ReceivingEntityID + { + get + { + return this._receivingEntityID; + } + + set + { + this._receivingEntityID = value; + } + } + + /// + /// Gets or sets the Entity that is supplying. Shall be represented by Entity Identifier record (see 6.2.28) + /// + [XmlElement(Type = typeof(EntityID), ElementName = "supplyingEntityID")] + public EntityID SupplyingEntityID + { + get + { + return this._supplyingEntityID; + } + + set + { + this._supplyingEntityID = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfSupplyTypes method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfSupplyTypes")] + public byte NumberOfSupplyTypes + { + get + { + return this._numberOfSupplyTypes; + } + + set + { + this._numberOfSupplyTypes = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(short), ElementName = "padding1")] + public short Padding1 + { + get + { + return this._padding1; + } + + set + { + this._padding1 = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "padding2")] + public byte Padding2 + { + get + { + return this._padding2; + } + + set + { + this._padding2 = value; + } + } + + /// + /// Gets or sets the Type and amount of supplies for each specified supply type. See 6.2.85 for supply quantity record. + /// + [XmlElement(ElementName = "suppliesList", Type = typeof(List))] + public List Supplies + { + get + { + return this._supplies; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._receivingEntityID.Marshal(dos); + this._supplyingEntityID.Marshal(dos); + dos.WriteUnsignedByte((byte)this._supplies.Count); + dos.WriteShort((short)this._padding1); + dos.WriteByte((byte)this._padding2); + + for (int idx = 0; idx < this._supplies.Count; idx++) + { + SupplyQuantity aSupplyQuantity = (SupplyQuantity)this._supplies[idx]; + aSupplyQuantity.Marshal(dos); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._receivingEntityID.Unmarshal(dis); + this._supplyingEntityID.Unmarshal(dis); + this._numberOfSupplyTypes = dis.ReadUnsignedByte(); + this._padding1 = dis.ReadShort(); + this._padding2 = dis.ReadByte(); + for (int idx = 0; idx < this.NumberOfSupplyTypes; idx++) + { + SupplyQuantity anX = new SupplyQuantity(); + anX.Unmarshal(dis); + this._supplies.Add(anX); + }; + + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._receivingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._supplyingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._supplies.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._supplies.Count; idx++) + { + sb.AppendLine(""); + SupplyQuantity aSupplyQuantity = (SupplyQuantity)this._supplies[idx]; + aSupplyQuantity.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ResupplyReceivedPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ResupplyReceivedPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._receivingEntityID.Equals(obj._receivingEntityID)) + { + ivarsEqual = false; + } + + if (!this._supplyingEntityID.Equals(obj._supplyingEntityID)) + { + ivarsEqual = false; + } + + if (this._numberOfSupplyTypes != obj._numberOfSupplyTypes) + { + ivarsEqual = false; + } + + if (this._padding1 != obj._padding1) + { + ivarsEqual = false; + } + + if (this._padding2 != obj._padding2) + { + ivarsEqual = false; + } + + if (this._supplies.Count != obj._supplies.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._supplies.Count; idx++) + { + if (!this._supplies[idx].Equals(obj._supplies[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._receivingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._supplyingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfSupplyTypes.GetHashCode(); + result = GenerateHash(result) ^ this._padding1.GetHashCode(); + result = GenerateHash(result) ^ this._padding2.GetHashCode(); + + if (this._supplies.Count > 0) + { + for (int idx = 0; idx < this._supplies.Count; idx++) + { + result = GenerateHash(result) ^ this._supplies[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/SecondaryOperationalData.cs b/Libs/CSharpDis7/SecondaryOperationalData.cs new file mode 100644 index 0000000..8c65209 --- /dev/null +++ b/Libs/CSharpDis7/SecondaryOperationalData.cs @@ -0,0 +1,341 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Additional operational data for an IFF emitting system and the number of IFF Fundamental Parameter Data records Section 6.2.76. + /// + [Serializable] + [XmlRoot] + public partial class SecondaryOperationalData + { + /// + /// additional operational characteristics of the IFF emitting system. Each 8-bit field will vary depending on the system type. + /// + private byte _operationalData1; + + /// + /// additional operational characteristics of the IFF emitting system. Each 8-bit field will vary depending on the system type. + /// + private byte _operationalData2; + + /// + /// the number of IFF Fundamental Parameter Data records that follow + /// + private ushort _numberOfIFFFundamentalParameterRecords; + + /// + /// Initializes a new instance of the class. + /// + public SecondaryOperationalData() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(SecondaryOperationalData left, SecondaryOperationalData right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(SecondaryOperationalData left, SecondaryOperationalData right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._operationalData1 + marshalSize += 1; // this._operationalData2 + marshalSize += 2; // this._numberOfIFFFundamentalParameterRecords + return marshalSize; + } + + /// + /// Gets or sets the additional operational characteristics of the IFF emitting system. Each 8-bit field will vary depending on the system type. + /// + [XmlElement(Type = typeof(byte), ElementName = "operationalData1")] + public byte OperationalData1 + { + get + { + return this._operationalData1; + } + + set + { + this._operationalData1 = value; + } + } + + /// + /// Gets or sets the additional operational characteristics of the IFF emitting system. Each 8-bit field will vary depending on the system type. + /// + [XmlElement(Type = typeof(byte), ElementName = "operationalData2")] + public byte OperationalData2 + { + get + { + return this._operationalData2; + } + + set + { + this._operationalData2 = value; + } + } + + /// + /// Gets or sets the the number of IFF Fundamental Parameter Data records that follow + /// + [XmlElement(Type = typeof(ushort), ElementName = "numberOfIFFFundamentalParameterRecords")] + public ushort NumberOfIFFFundamentalParameterRecords + { + get + { + return this._numberOfIFFFundamentalParameterRecords; + } + + set + { + this._numberOfIFFFundamentalParameterRecords = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._operationalData1); + dos.WriteUnsignedByte((byte)this._operationalData2); + dos.WriteUnsignedShort((ushort)this._numberOfIFFFundamentalParameterRecords); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._operationalData1 = dis.ReadUnsignedByte(); + this._operationalData2 = dis.ReadUnsignedByte(); + this._numberOfIFFFundamentalParameterRecords = dis.ReadUnsignedShort(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._operationalData1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._operationalData2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._numberOfIFFFundamentalParameterRecords.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as SecondaryOperationalData; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(SecondaryOperationalData obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._operationalData1 != obj._operationalData1) + { + ivarsEqual = false; + } + + if (this._operationalData2 != obj._operationalData2) + { + ivarsEqual = false; + } + + if (this._numberOfIFFFundamentalParameterRecords != obj._numberOfIFFFundamentalParameterRecords) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._operationalData1.GetHashCode(); + result = GenerateHash(result) ^ this._operationalData2.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfIFFFundamentalParameterRecords.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/SeesPdu.cs b/Libs/CSharpDis7/SeesPdu.cs new file mode 100644 index 0000000..75bc0ff --- /dev/null +++ b/Libs/CSharpDis7/SeesPdu.cs @@ -0,0 +1,586 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// SEES PDU, supplemental emissions entity state information. Section 7.6.6 COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(PropulsionSystemData))] + [XmlInclude(typeof(VectoringNozzleSystem))] + public partial class SeesPdu : DistributedEmissionsFamilyPdu, IEquatable + { + /// + /// Originating entity ID + /// + private EntityID _orginatingEntityID = new EntityID(); + + /// + /// IR Signature representation index + /// + private ushort _infraredSignatureRepresentationIndex; + + /// + /// acoustic Signature representation index + /// + private ushort _acousticSignatureRepresentationIndex; + + /// + /// radar cross section representation index + /// + private ushort _radarCrossSectionSignatureRepresentationIndex; + + /// + /// how many propulsion systems + /// + private ushort _numberOfPropulsionSystems; + + /// + /// how many vectoring nozzle systems + /// + private ushort _numberOfVectoringNozzleSystems; + + /// + /// variable length list of propulsion system data + /// + private List _propulsionSystemData = new List(); + + /// + /// variable length list of vectoring system data + /// + private List _vectoringSystemData = new List(); + + /// + /// Initializes a new instance of the class. + /// + public SeesPdu() + { + PduType = (byte)30; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(SeesPdu left, SeesPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(SeesPdu left, SeesPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._orginatingEntityID.GetMarshalledSize(); // this._orginatingEntityID + marshalSize += 2; // this._infraredSignatureRepresentationIndex + marshalSize += 2; // this._acousticSignatureRepresentationIndex + marshalSize += 2; // this._radarCrossSectionSignatureRepresentationIndex + marshalSize += 2; // this._numberOfPropulsionSystems + marshalSize += 2; // this._numberOfVectoringNozzleSystems + for (int idx = 0; idx < this._propulsionSystemData.Count; idx++) + { + PropulsionSystemData listElement = (PropulsionSystemData)this._propulsionSystemData[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._vectoringSystemData.Count; idx++) + { + VectoringNozzleSystem listElement = (VectoringNozzleSystem)this._vectoringSystemData[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Originating entity ID + /// + [XmlElement(Type = typeof(EntityID), ElementName = "orginatingEntityID")] + public EntityID OrginatingEntityID + { + get + { + return this._orginatingEntityID; + } + + set + { + this._orginatingEntityID = value; + } + } + + /// + /// Gets or sets the IR Signature representation index + /// + [XmlElement(Type = typeof(ushort), ElementName = "infraredSignatureRepresentationIndex")] + public ushort InfraredSignatureRepresentationIndex + { + get + { + return this._infraredSignatureRepresentationIndex; + } + + set + { + this._infraredSignatureRepresentationIndex = value; + } + } + + /// + /// Gets or sets the acoustic Signature representation index + /// + [XmlElement(Type = typeof(ushort), ElementName = "acousticSignatureRepresentationIndex")] + public ushort AcousticSignatureRepresentationIndex + { + get + { + return this._acousticSignatureRepresentationIndex; + } + + set + { + this._acousticSignatureRepresentationIndex = value; + } + } + + /// + /// Gets or sets the radar cross section representation index + /// + [XmlElement(Type = typeof(ushort), ElementName = "radarCrossSectionSignatureRepresentationIndex")] + public ushort RadarCrossSectionSignatureRepresentationIndex + { + get + { + return this._radarCrossSectionSignatureRepresentationIndex; + } + + set + { + this._radarCrossSectionSignatureRepresentationIndex = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfPropulsionSystems method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(ushort), ElementName = "numberOfPropulsionSystems")] + public ushort NumberOfPropulsionSystems + { + get + { + return this._numberOfPropulsionSystems; + } + + set + { + this._numberOfPropulsionSystems = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfVectoringNozzleSystems method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(ushort), ElementName = "numberOfVectoringNozzleSystems")] + public ushort NumberOfVectoringNozzleSystems + { + get + { + return this._numberOfVectoringNozzleSystems; + } + + set + { + this._numberOfVectoringNozzleSystems = value; + } + } + + /// + /// Gets or sets the variable length list of propulsion system data + /// + [XmlElement(ElementName = "propulsionSystemDataList", Type = typeof(List))] + public List PropulsionSystemData + { + get + { + return this._propulsionSystemData; + } + } + + /// + /// Gets or sets the variable length list of vectoring system data + /// + [XmlElement(ElementName = "vectoringSystemDataList", Type = typeof(List))] + public List VectoringSystemData + { + get + { + return this._vectoringSystemData; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._orginatingEntityID.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._infraredSignatureRepresentationIndex); + dos.WriteUnsignedShort((ushort)this._acousticSignatureRepresentationIndex); + dos.WriteUnsignedShort((ushort)this._radarCrossSectionSignatureRepresentationIndex); + dos.WriteUnsignedShort((ushort)this._propulsionSystemData.Count); + dos.WriteUnsignedShort((ushort)this._vectoringSystemData.Count); + + for (int idx = 0; idx < this._propulsionSystemData.Count; idx++) + { + PropulsionSystemData aPropulsionSystemData = (PropulsionSystemData)this._propulsionSystemData[idx]; + aPropulsionSystemData.Marshal(dos); + } + + for (int idx = 0; idx < this._vectoringSystemData.Count; idx++) + { + VectoringNozzleSystem aVectoringNozzleSystem = (VectoringNozzleSystem)this._vectoringSystemData[idx]; + aVectoringNozzleSystem.Marshal(dos); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._orginatingEntityID.Unmarshal(dis); + this._infraredSignatureRepresentationIndex = dis.ReadUnsignedShort(); + this._acousticSignatureRepresentationIndex = dis.ReadUnsignedShort(); + this._radarCrossSectionSignatureRepresentationIndex = dis.ReadUnsignedShort(); + this._numberOfPropulsionSystems = dis.ReadUnsignedShort(); + this._numberOfVectoringNozzleSystems = dis.ReadUnsignedShort(); + for (int idx = 0; idx < this.NumberOfPropulsionSystems; idx++) + { + PropulsionSystemData anX = new PropulsionSystemData(); + anX.Unmarshal(dis); + this._propulsionSystemData.Add(anX); + }; + + for (int idx = 0; idx < this.NumberOfVectoringNozzleSystems; idx++) + { + VectoringNozzleSystem anX = new VectoringNozzleSystem(); + anX.Unmarshal(dis); + this._vectoringSystemData.Add(anX); + }; + + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._orginatingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._infraredSignatureRepresentationIndex.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._acousticSignatureRepresentationIndex.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._radarCrossSectionSignatureRepresentationIndex.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._propulsionSystemData.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._vectoringSystemData.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._propulsionSystemData.Count; idx++) + { + sb.AppendLine(""); + PropulsionSystemData aPropulsionSystemData = (PropulsionSystemData)this._propulsionSystemData[idx]; + aPropulsionSystemData.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._vectoringSystemData.Count; idx++) + { + sb.AppendLine(""); + VectoringNozzleSystem aVectoringNozzleSystem = (VectoringNozzleSystem)this._vectoringSystemData[idx]; + aVectoringNozzleSystem.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as SeesPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(SeesPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._orginatingEntityID.Equals(obj._orginatingEntityID)) + { + ivarsEqual = false; + } + + if (this._infraredSignatureRepresentationIndex != obj._infraredSignatureRepresentationIndex) + { + ivarsEqual = false; + } + + if (this._acousticSignatureRepresentationIndex != obj._acousticSignatureRepresentationIndex) + { + ivarsEqual = false; + } + + if (this._radarCrossSectionSignatureRepresentationIndex != obj._radarCrossSectionSignatureRepresentationIndex) + { + ivarsEqual = false; + } + + if (this._numberOfPropulsionSystems != obj._numberOfPropulsionSystems) + { + ivarsEqual = false; + } + + if (this._numberOfVectoringNozzleSystems != obj._numberOfVectoringNozzleSystems) + { + ivarsEqual = false; + } + + if (this._propulsionSystemData.Count != obj._propulsionSystemData.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._propulsionSystemData.Count; idx++) + { + if (!this._propulsionSystemData[idx].Equals(obj._propulsionSystemData[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._vectoringSystemData.Count != obj._vectoringSystemData.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._vectoringSystemData.Count; idx++) + { + if (!this._vectoringSystemData[idx].Equals(obj._vectoringSystemData[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._orginatingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._infraredSignatureRepresentationIndex.GetHashCode(); + result = GenerateHash(result) ^ this._acousticSignatureRepresentationIndex.GetHashCode(); + result = GenerateHash(result) ^ this._radarCrossSectionSignatureRepresentationIndex.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfPropulsionSystems.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfVectoringNozzleSystems.GetHashCode(); + + if (this._propulsionSystemData.Count > 0) + { + for (int idx = 0; idx < this._propulsionSystemData.Count; idx++) + { + result = GenerateHash(result) ^ this._propulsionSystemData[idx].GetHashCode(); + } + } + + if (this._vectoringSystemData.Count > 0) + { + for (int idx = 0; idx < this._vectoringSystemData.Count; idx++) + { + result = GenerateHash(result) ^ this._vectoringSystemData[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/Sensor.cs b/Libs/CSharpDis7/Sensor.cs new file mode 100644 index 0000000..e6efef8 --- /dev/null +++ b/Libs/CSharpDis7/Sensor.cs @@ -0,0 +1,437 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// An entity's sensor information. Section 6.2.77. + /// + [Serializable] + [XmlRoot] + public partial class Sensor + { + /// + /// the source of the Sensor Type field + /// + private byte _sensorTypeSource; + + /// + /// the on/off status of the sensor + /// + private byte _sensorOnOffStatus; + + /// + /// the sensor type and shall be represented by a 16-bit enumeration. + /// + private ushort _sensorType; + + /// + /// the station to which the sensor is assigned. A zero value shall indi- cate that this Sensor record is not associated with any particular station and represents the total quan- tity of this sensor for this entity. If this field is non-zero, it shall either reference an attached part or an articulated part + /// + private uint _station; + + /// + /// quantity of the sensor + /// + private ushort _quantity; + + /// + /// padding + /// + private ushort _padding; + + /// + /// Initializes a new instance of the class. + /// + public Sensor() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(Sensor left, Sensor right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(Sensor left, Sensor right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._sensorTypeSource + marshalSize += 1; // this._sensorOnOffStatus + marshalSize += 2; // this._sensorType + marshalSize += 4; // this._station + marshalSize += 2; // this._quantity + marshalSize += 2; // this._padding + return marshalSize; + } + + /// + /// Gets or sets the the source of the Sensor Type field + /// + [XmlElement(Type = typeof(byte), ElementName = "sensorTypeSource")] + public byte SensorTypeSource + { + get + { + return this._sensorTypeSource; + } + + set + { + this._sensorTypeSource = value; + } + } + + /// + /// Gets or sets the the on/off status of the sensor + /// + [XmlElement(Type = typeof(byte), ElementName = "sensorOnOffStatus")] + public byte SensorOnOffStatus + { + get + { + return this._sensorOnOffStatus; + } + + set + { + this._sensorOnOffStatus = value; + } + } + + /// + /// Gets or sets the the sensor type and shall be represented by a 16-bit enumeration. + /// + [XmlElement(Type = typeof(ushort), ElementName = "sensorType")] + public ushort SensorType + { + get + { + return this._sensorType; + } + + set + { + this._sensorType = value; + } + } + + /// + /// Gets or sets the the station to which the sensor is assigned. A zero value shall indi- cate that this Sensor record is not associated with any particular station and represents the total quan- tity of this sensor for this entity. If this field is non-zero, it shall either reference an attached part or an articulated part + /// + [XmlElement(Type = typeof(uint), ElementName = "station")] + public uint Station + { + get + { + return this._station; + } + + set + { + this._station = value; + } + } + + /// + /// Gets or sets the quantity of the sensor + /// + [XmlElement(Type = typeof(ushort), ElementName = "quantity")] + public ushort Quantity + { + get + { + return this._quantity; + } + + set + { + this._quantity = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(ushort), ElementName = "padding")] + public ushort Padding + { + get + { + return this._padding; + } + + set + { + this._padding = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._sensorTypeSource); + dos.WriteUnsignedByte((byte)this._sensorOnOffStatus); + dos.WriteUnsignedShort((ushort)this._sensorType); + dos.WriteUnsignedInt((uint)this._station); + dos.WriteUnsignedShort((ushort)this._quantity); + dos.WriteUnsignedShort((ushort)this._padding); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._sensorTypeSource = dis.ReadUnsignedByte(); + this._sensorOnOffStatus = dis.ReadUnsignedByte(); + this._sensorType = dis.ReadUnsignedShort(); + this._station = dis.ReadUnsignedInt(); + this._quantity = dis.ReadUnsignedShort(); + this._padding = dis.ReadUnsignedShort(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._sensorTypeSource.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._sensorOnOffStatus.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._sensorType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._station.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._quantity.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as Sensor; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(Sensor obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._sensorTypeSource != obj._sensorTypeSource) + { + ivarsEqual = false; + } + + if (this._sensorOnOffStatus != obj._sensorOnOffStatus) + { + ivarsEqual = false; + } + + if (this._sensorType != obj._sensorType) + { + ivarsEqual = false; + } + + if (this._station != obj._station) + { + ivarsEqual = false; + } + + if (this._quantity != obj._quantity) + { + ivarsEqual = false; + } + + if (this._padding != obj._padding) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._sensorTypeSource.GetHashCode(); + result = GenerateHash(result) ^ this._sensorOnOffStatus.GetHashCode(); + result = GenerateHash(result) ^ this._sensorType.GetHashCode(); + result = GenerateHash(result) ^ this._station.GetHashCode(); + result = GenerateHash(result) ^ this._quantity.GetHashCode(); + result = GenerateHash(result) ^ this._padding.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/SeparationVP.cs b/Libs/CSharpDis7/SeparationVP.cs new file mode 100644 index 0000000..00a6a2f --- /dev/null +++ b/Libs/CSharpDis7/SeparationVP.cs @@ -0,0 +1,472 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Physical separation of an entity from another entity. Section 6.2.93.6 + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + public partial class SeparationVP + { + /// + /// the identification of the Variable Parameter record. Enumeration from EBV + /// + private byte _recordType = 4; + + /// + /// Reason for separation. EBV + /// + private byte _reasonForSeparation; + + /// + /// Whether the entity existed prior to separation EBV + /// + private byte _preEntityIndicator; + + /// + /// padding + /// + private byte _padding1; + + /// + /// ID of parent + /// + private EntityID _parentEntityID = new EntityID(); + + /// + /// padding + /// + private ushort _padding2; + + /// + /// Station separated from + /// + private uint _stationLocation; + + /// + /// Initializes a new instance of the class. + /// + public SeparationVP() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(SeparationVP left, SeparationVP right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(SeparationVP left, SeparationVP right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._recordType + marshalSize += 1; // this._reasonForSeparation + marshalSize += 1; // this._preEntityIndicator + marshalSize += 1; // this._padding1 + marshalSize += this._parentEntityID.GetMarshalledSize(); // this._parentEntityID + marshalSize += 2; // this._padding2 + marshalSize += 4; // this._stationLocation + return marshalSize; + } + + /// + /// Gets or sets the the identification of the Variable Parameter record. Enumeration from EBV + /// + [XmlElement(Type = typeof(byte), ElementName = "recordType")] + public byte RecordType + { + get + { + return this._recordType; + } + + set + { + this._recordType = value; + } + } + + /// + /// Gets or sets the Reason for separation. EBV + /// + [XmlElement(Type = typeof(byte), ElementName = "reasonForSeparation")] + public byte ReasonForSeparation + { + get + { + return this._reasonForSeparation; + } + + set + { + this._reasonForSeparation = value; + } + } + + /// + /// Gets or sets the Whether the entity existed prior to separation EBV + /// + [XmlElement(Type = typeof(byte), ElementName = "preEntityIndicator")] + public byte PreEntityIndicator + { + get + { + return this._preEntityIndicator; + } + + set + { + this._preEntityIndicator = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "padding1")] + public byte Padding1 + { + get + { + return this._padding1; + } + + set + { + this._padding1 = value; + } + } + + /// + /// Gets or sets the ID of parent + /// + [XmlElement(Type = typeof(EntityID), ElementName = "parentEntityID")] + public EntityID ParentEntityID + { + get + { + return this._parentEntityID; + } + + set + { + this._parentEntityID = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(ushort), ElementName = "padding2")] + public ushort Padding2 + { + get + { + return this._padding2; + } + + set + { + this._padding2 = value; + } + } + + /// + /// Gets or sets the Station separated from + /// + [XmlElement(Type = typeof(uint), ElementName = "stationLocation")] + public uint StationLocation + { + get + { + return this._stationLocation; + } + + set + { + this._stationLocation = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._recordType); + dos.WriteUnsignedByte((byte)this._reasonForSeparation); + dos.WriteUnsignedByte((byte)this._preEntityIndicator); + dos.WriteUnsignedByte((byte)this._padding1); + this._parentEntityID.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._padding2); + dos.WriteUnsignedInt((uint)this._stationLocation); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._recordType = dis.ReadUnsignedByte(); + this._reasonForSeparation = dis.ReadUnsignedByte(); + this._preEntityIndicator = dis.ReadUnsignedByte(); + this._padding1 = dis.ReadUnsignedByte(); + this._parentEntityID.Unmarshal(dis); + this._padding2 = dis.ReadUnsignedShort(); + this._stationLocation = dis.ReadUnsignedInt(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._recordType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._reasonForSeparation.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._preEntityIndicator.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._parentEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._padding2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._stationLocation.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as SeparationVP; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(SeparationVP obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._recordType != obj._recordType) + { + ivarsEqual = false; + } + + if (this._reasonForSeparation != obj._reasonForSeparation) + { + ivarsEqual = false; + } + + if (this._preEntityIndicator != obj._preEntityIndicator) + { + ivarsEqual = false; + } + + if (this._padding1 != obj._padding1) + { + ivarsEqual = false; + } + + if (!this._parentEntityID.Equals(obj._parentEntityID)) + { + ivarsEqual = false; + } + + if (this._padding2 != obj._padding2) + { + ivarsEqual = false; + } + + if (this._stationLocation != obj._stationLocation) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._recordType.GetHashCode(); + result = GenerateHash(result) ^ this._reasonForSeparation.GetHashCode(); + result = GenerateHash(result) ^ this._preEntityIndicator.GetHashCode(); + result = GenerateHash(result) ^ this._padding1.GetHashCode(); + result = GenerateHash(result) ^ this._parentEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._padding2.GetHashCode(); + result = GenerateHash(result) ^ this._stationLocation.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/ServiceRequestPdu.cs b/Libs/CSharpDis7/ServiceRequestPdu.cs new file mode 100644 index 0000000..3740c90 --- /dev/null +++ b/Libs/CSharpDis7/ServiceRequestPdu.cs @@ -0,0 +1,479 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Service Request PDU shall be used to communicate information associated with one entity requesting a service from another). Section 7.4.2 COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(SupplyQuantity))] + public partial class ServiceRequestPdu : LogisticsFamilyPdu, IEquatable + { + /// + /// Entity that is requesting service (see 6.2.28), Section 7.4.2 + /// + private EntityID _requestingEntityID = new EntityID(); + + /// + /// Entity that is providing the service (see 6.2.28), Section 7.4.2 + /// + private EntityID _servicingEntityID = new EntityID(); + + /// + /// Type of service requested, Section 7.4.2 + /// + private byte _serviceTypeRequested; + + /// + /// How many requested, Section 7.4.2 + /// + private byte _numberOfSupplyTypes; + + /// + /// padding + /// + private short _serviceRequestPadding; + + private List _supplies = new List(); + + /// + /// Initializes a new instance of the class. + /// + public ServiceRequestPdu() + { + PduType = (byte)5; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(ServiceRequestPdu left, ServiceRequestPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(ServiceRequestPdu left, ServiceRequestPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._requestingEntityID.GetMarshalledSize(); // this._requestingEntityID + marshalSize += this._servicingEntityID.GetMarshalledSize(); // this._servicingEntityID + marshalSize += 1; // this._serviceTypeRequested + marshalSize += 1; // this._numberOfSupplyTypes + marshalSize += 2; // this._serviceRequestPadding + for (int idx = 0; idx < this._supplies.Count; idx++) + { + SupplyQuantity listElement = (SupplyQuantity)this._supplies[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the Entity that is requesting service (see 6.2.28), Section 7.4.2 + /// + [XmlElement(Type = typeof(EntityID), ElementName = "requestingEntityID")] + public EntityID RequestingEntityID + { + get + { + return this._requestingEntityID; + } + + set + { + this._requestingEntityID = value; + } + } + + /// + /// Gets or sets the Entity that is providing the service (see 6.2.28), Section 7.4.2 + /// + [XmlElement(Type = typeof(EntityID), ElementName = "servicingEntityID")] + public EntityID ServicingEntityID + { + get + { + return this._servicingEntityID; + } + + set + { + this._servicingEntityID = value; + } + } + + /// + /// Gets or sets the Type of service requested, Section 7.4.2 + /// + [XmlElement(Type = typeof(byte), ElementName = "serviceTypeRequested")] + public byte ServiceTypeRequested + { + get + { + return this._serviceTypeRequested; + } + + set + { + this._serviceTypeRequested = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfSupplyTypes method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfSupplyTypes")] + public byte NumberOfSupplyTypes + { + get + { + return this._numberOfSupplyTypes; + } + + set + { + this._numberOfSupplyTypes = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(short), ElementName = "serviceRequestPadding")] + public short ServiceRequestPadding + { + get + { + return this._serviceRequestPadding; + } + + set + { + this._serviceRequestPadding = value; + } + } + + [XmlElement(ElementName = "suppliesList", Type = typeof(List))] + public List Supplies + { + get + { + return this._supplies; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._requestingEntityID.Marshal(dos); + this._servicingEntityID.Marshal(dos); + dos.WriteUnsignedByte((byte)this._serviceTypeRequested); + dos.WriteUnsignedByte((byte)this._supplies.Count); + dos.WriteShort((short)this._serviceRequestPadding); + + for (int idx = 0; idx < this._supplies.Count; idx++) + { + SupplyQuantity aSupplyQuantity = (SupplyQuantity)this._supplies[idx]; + aSupplyQuantity.Marshal(dos); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._requestingEntityID.Unmarshal(dis); + this._servicingEntityID.Unmarshal(dis); + this._serviceTypeRequested = dis.ReadUnsignedByte(); + this._numberOfSupplyTypes = dis.ReadUnsignedByte(); + this._serviceRequestPadding = dis.ReadShort(); + for (int idx = 0; idx < this.NumberOfSupplyTypes; idx++) + { + SupplyQuantity anX = new SupplyQuantity(); + anX.Unmarshal(dis); + this._supplies.Add(anX); + }; + + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._requestingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._servicingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._serviceTypeRequested.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._supplies.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._serviceRequestPadding.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._supplies.Count; idx++) + { + sb.AppendLine(""); + SupplyQuantity aSupplyQuantity = (SupplyQuantity)this._supplies[idx]; + aSupplyQuantity.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as ServiceRequestPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(ServiceRequestPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._requestingEntityID.Equals(obj._requestingEntityID)) + { + ivarsEqual = false; + } + + if (!this._servicingEntityID.Equals(obj._servicingEntityID)) + { + ivarsEqual = false; + } + + if (this._serviceTypeRequested != obj._serviceTypeRequested) + { + ivarsEqual = false; + } + + if (this._numberOfSupplyTypes != obj._numberOfSupplyTypes) + { + ivarsEqual = false; + } + + if (this._serviceRequestPadding != obj._serviceRequestPadding) + { + ivarsEqual = false; + } + + if (this._supplies.Count != obj._supplies.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._supplies.Count; idx++) + { + if (!this._supplies[idx].Equals(obj._supplies[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._requestingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._servicingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._serviceTypeRequested.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfSupplyTypes.GetHashCode(); + result = GenerateHash(result) ^ this._serviceRequestPadding.GetHashCode(); + + if (this._supplies.Count > 0) + { + for (int idx = 0; idx < this._supplies.Count; idx++) + { + result = GenerateHash(result) ^ this._supplies[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/SetDataPdu.cs b/Libs/CSharpDis7/SetDataPdu.cs new file mode 100644 index 0000000..906bc69 --- /dev/null +++ b/Libs/CSharpDis7/SetDataPdu.cs @@ -0,0 +1,519 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Section 7.5.10. Change state information with the data contained in this. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(FixedDatum))] + [XmlInclude(typeof(VariableDatum))] + public partial class SetDataPdu : SimulationManagementFamilyPdu, IEquatable + { + /// + /// ID of request + /// + private uint _requestID; + + /// + /// padding + /// + private uint _padding1; + + /// + /// Number of fixed datum records + /// + private uint _numberOfFixedDatumRecords; + + /// + /// Number of variable datum records + /// + private uint _numberOfVariableDatumRecords; + + /// + /// variable length list of fixed datums + /// + private List _fixedDatums = new List(); + + /// + /// variable length list of variable length datums + /// + private List _variableDatums = new List(); + + /// + /// Initializes a new instance of the class. + /// + public SetDataPdu() + { + PduType = (byte)19; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(SetDataPdu left, SetDataPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(SetDataPdu left, SetDataPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 4; // this._requestID + marshalSize += 4; // this._padding1 + marshalSize += 4; // this._numberOfFixedDatumRecords + marshalSize += 4; // this._numberOfVariableDatumRecords + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + FixedDatum listElement = (FixedDatum)this._fixedDatums[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + VariableDatum listElement = (VariableDatum)this._variableDatums[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the ID of request + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(uint), ElementName = "padding1")] + public uint Padding1 + { + get + { + return this._padding1; + } + + set + { + this._padding1 = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] + public uint NumberOfFixedDatumRecords + { + get + { + return this._numberOfFixedDatumRecords; + } + + set + { + this._numberOfFixedDatumRecords = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] + public uint NumberOfVariableDatumRecords + { + get + { + return this._numberOfVariableDatumRecords; + } + + set + { + this._numberOfVariableDatumRecords = value; + } + } + + /// + /// Gets or sets the variable length list of fixed datums + /// + [XmlElement(ElementName = "fixedDatumsList", Type = typeof(List))] + public List FixedDatums + { + get + { + return this._fixedDatums; + } + } + + /// + /// Gets or sets the variable length list of variable length datums + /// + [XmlElement(ElementName = "variableDatumsList", Type = typeof(List))] + public List VariableDatums + { + get + { + return this._variableDatums; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._requestID); + dos.WriteUnsignedInt((uint)this._padding1); + dos.WriteUnsignedInt((uint)this._fixedDatums.Count); + dos.WriteUnsignedInt((uint)this._variableDatums.Count); + + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; + aFixedDatum.Marshal(dos); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; + aVariableDatum.Marshal(dos); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._requestID = dis.ReadUnsignedInt(); + this._padding1 = dis.ReadUnsignedInt(); + this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); + this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); + for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) + { + FixedDatum anX = new FixedDatum(); + anX.Unmarshal(dis); + this._fixedDatums.Add(anX); + }; + + for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) + { + VariableDatum anX = new VariableDatum(); + anX.Unmarshal(dis); + this._variableDatums.Add(anX); + }; + + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fixedDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableDatums.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + sb.AppendLine(""); + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatums[idx]; + aFixedDatum.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + sb.AppendLine(""); + VariableDatum aVariableDatum = (VariableDatum)this._variableDatums[idx]; + aVariableDatum.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as SetDataPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(SetDataPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + if (this._padding1 != obj._padding1) + { + ivarsEqual = false; + } + + if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) + { + ivarsEqual = false; + } + + if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) + { + ivarsEqual = false; + } + + if (this._fixedDatums.Count != obj._fixedDatums.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + if (!this._fixedDatums[idx].Equals(obj._fixedDatums[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._variableDatums.Count != obj._variableDatums.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + if (!this._variableDatums[idx].Equals(obj._variableDatums[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + result = GenerateHash(result) ^ this._padding1.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); + + if (this._fixedDatums.Count > 0) + { + for (int idx = 0; idx < this._fixedDatums.Count; idx++) + { + result = GenerateHash(result) ^ this._fixedDatums[idx].GetHashCode(); + } + } + + if (this._variableDatums.Count > 0) + { + for (int idx = 0; idx < this._variableDatums.Count; idx++) + { + result = GenerateHash(result) ^ this._variableDatums[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/SetDataReliablePdu.cs b/Libs/CSharpDis7/SetDataReliablePdu.cs new file mode 100644 index 0000000..af94644 --- /dev/null +++ b/Libs/CSharpDis7/SetDataReliablePdu.cs @@ -0,0 +1,583 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Section 5.3.12.9: initializing or chaning internal state information, reliable. Needs manual intervention to fix padding on variable datums. UNFINISHED + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(FixedDatum))] + [XmlInclude(typeof(VariableDatum))] + public partial class SetDataReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable + { + /// + /// level of reliability service used for this transaction + /// + private byte _requiredReliabilityService; + + /// + /// padding + /// + private ushort _pad1; + + /// + /// padding + /// + private byte _pad2; + + /// + /// Request ID + /// + private uint _requestID; + + /// + /// Fixed datum record count + /// + private uint _numberOfFixedDatumRecords; + + /// + /// variable datum record count + /// + private uint _numberOfVariableDatumRecords; + + /// + /// Fixed datum records + /// + private List _fixedDatumRecords = new List(); + + /// + /// Variable datum records + /// + private List _variableDatumRecords = new List(); + + /// + /// Initializes a new instance of the class. + /// + public SetDataReliablePdu() + { + PduType = (byte)59; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(SetDataReliablePdu left, SetDataReliablePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(SetDataReliablePdu left, SetDataReliablePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += 1; // this._requiredReliabilityService + marshalSize += 2; // this._pad1 + marshalSize += 1; // this._pad2 + marshalSize += 4; // this._requestID + marshalSize += 4; // this._numberOfFixedDatumRecords + marshalSize += 4; // this._numberOfVariableDatumRecords + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + FixedDatum listElement = (FixedDatum)this._fixedDatumRecords[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + VariableDatum listElement = (VariableDatum)this._variableDatumRecords[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the level of reliability service used for this transaction + /// + [XmlElement(Type = typeof(byte), ElementName = "requiredReliabilityService")] + public byte RequiredReliabilityService + { + get + { + return this._requiredReliabilityService; + } + + set + { + this._requiredReliabilityService = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(ushort), ElementName = "pad1")] + public ushort Pad1 + { + get + { + return this._pad1; + } + + set + { + this._pad1 = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "pad2")] + public byte Pad2 + { + get + { + return this._pad2; + } + + set + { + this._pad2 = value; + } + } + + /// + /// Gets or sets the Request ID + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfFixedDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfFixedDatumRecords")] + public uint NumberOfFixedDatumRecords + { + get + { + return this._numberOfFixedDatumRecords; + } + + set + { + this._numberOfFixedDatumRecords = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfVariableDatumRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(uint), ElementName = "numberOfVariableDatumRecords")] + public uint NumberOfVariableDatumRecords + { + get + { + return this._numberOfVariableDatumRecords; + } + + set + { + this._numberOfVariableDatumRecords = value; + } + } + + /// + /// Gets or sets the Fixed datum records + /// + [XmlElement(ElementName = "fixedDatumRecordsList", Type = typeof(List))] + public List FixedDatumRecords + { + get + { + return this._fixedDatumRecords; + } + } + + /// + /// Gets or sets the Variable datum records + /// + [XmlElement(ElementName = "variableDatumRecordsList", Type = typeof(List))] + public List VariableDatumRecords + { + get + { + return this._variableDatumRecords; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._requiredReliabilityService); + dos.WriteUnsignedShort((ushort)this._pad1); + dos.WriteUnsignedByte((byte)this._pad2); + dos.WriteUnsignedInt((uint)this._requestID); + dos.WriteUnsignedInt((uint)this._fixedDatumRecords.Count); + dos.WriteUnsignedInt((uint)this._variableDatumRecords.Count); + + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; + aFixedDatum.Marshal(dos); + } + + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; + aVariableDatum.Marshal(dos); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._requiredReliabilityService = dis.ReadUnsignedByte(); + this._pad1 = dis.ReadUnsignedShort(); + this._pad2 = dis.ReadUnsignedByte(); + this._requestID = dis.ReadUnsignedInt(); + this._numberOfFixedDatumRecords = dis.ReadUnsignedInt(); + this._numberOfVariableDatumRecords = dis.ReadUnsignedInt(); + for (int idx = 0; idx < this.NumberOfFixedDatumRecords; idx++) + { + FixedDatum anX = new FixedDatum(); + anX.Unmarshal(dis); + this._fixedDatumRecords.Add(anX); + }; + + for (int idx = 0; idx < this.NumberOfVariableDatumRecords; idx++) + { + VariableDatum anX = new VariableDatum(); + anX.Unmarshal(dis); + this._variableDatumRecords.Add(anX); + }; + + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine("" + this._requiredReliabilityService.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fixedDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableDatumRecords.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + sb.AppendLine(""); + FixedDatum aFixedDatum = (FixedDatum)this._fixedDatumRecords[idx]; + aFixedDatum.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + sb.AppendLine(""); + VariableDatum aVariableDatum = (VariableDatum)this._variableDatumRecords[idx]; + aVariableDatum.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as SetDataReliablePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(SetDataReliablePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (this._requiredReliabilityService != obj._requiredReliabilityService) + { + ivarsEqual = false; + } + + if (this._pad1 != obj._pad1) + { + ivarsEqual = false; + } + + if (this._pad2 != obj._pad2) + { + ivarsEqual = false; + } + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + if (this._numberOfFixedDatumRecords != obj._numberOfFixedDatumRecords) + { + ivarsEqual = false; + } + + if (this._numberOfVariableDatumRecords != obj._numberOfVariableDatumRecords) + { + ivarsEqual = false; + } + + if (this._fixedDatumRecords.Count != obj._fixedDatumRecords.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + if (!this._fixedDatumRecords[idx].Equals(obj._fixedDatumRecords[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._variableDatumRecords.Count != obj._variableDatumRecords.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + if (!this._variableDatumRecords[idx].Equals(obj._variableDatumRecords[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._requiredReliabilityService.GetHashCode(); + result = GenerateHash(result) ^ this._pad1.GetHashCode(); + result = GenerateHash(result) ^ this._pad2.GetHashCode(); + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfFixedDatumRecords.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfVariableDatumRecords.GetHashCode(); + + if (this._fixedDatumRecords.Count > 0) + { + for (int idx = 0; idx < this._fixedDatumRecords.Count; idx++) + { + result = GenerateHash(result) ^ this._fixedDatumRecords[idx].GetHashCode(); + } + } + + if (this._variableDatumRecords.Count > 0) + { + for (int idx = 0; idx < this._variableDatumRecords.Count; idx++) + { + result = GenerateHash(result) ^ this._variableDatumRecords[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/SimulationAddress.cs b/Libs/CSharpDis7/SimulationAddress.cs new file mode 100644 index 0000000..d63c7e4 --- /dev/null +++ b/Libs/CSharpDis7/SimulationAddress.cs @@ -0,0 +1,309 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// A Simulation Address record shall consist of the Site Identification number and the Application Identification number. Section 6.2.79 + /// + [Serializable] + [XmlRoot] + public partial class SimulationAddress + { + /// + /// A site is defined as a facility, installation, organizational unit or a geographic location that has one or more simulation applications capable of participating in a distributed event. + /// + private ushort _site; + + /// + /// An application is defined as a software program that is used to generate and process distributed simulation data including live, virtual and constructive data. + /// + private ushort _application; + + /// + /// Initializes a new instance of the class. + /// + public SimulationAddress() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(SimulationAddress left, SimulationAddress right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(SimulationAddress left, SimulationAddress right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 2; // this._site + marshalSize += 2; // this._application + return marshalSize; + } + + /// + /// Gets or sets the A site is defined as a facility, installation, organizational unit or a geographic location that has one or more simulation applications capable of participating in a distributed event. + /// + [XmlElement(Type = typeof(ushort), ElementName = "site")] + public ushort Site + { + get + { + return this._site; + } + + set + { + this._site = value; + } + } + + /// + /// Gets or sets the An application is defined as a software program that is used to generate and process distributed simulation data including live, virtual and constructive data. + /// + [XmlElement(Type = typeof(ushort), ElementName = "application")] + public ushort Application + { + get + { + return this._application; + } + + set + { + this._application = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._site); + dos.WriteUnsignedShort((ushort)this._application); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._site = dis.ReadUnsignedShort(); + this._application = dis.ReadUnsignedShort(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._site.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._application.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as SimulationAddress; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(SimulationAddress obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._site != obj._site) + { + ivarsEqual = false; + } + + if (this._application != obj._application) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._site.GetHashCode(); + result = GenerateHash(result) ^ this._application.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/SimulationIdentifier.cs b/Libs/CSharpDis7/SimulationIdentifier.cs new file mode 100644 index 0000000..c43cb1a --- /dev/null +++ b/Libs/CSharpDis7/SimulationIdentifier.cs @@ -0,0 +1,312 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// The unique designation of a simulation when using the 48-bit identifier format shall be specified by the Sim- ulation Identifier record. The reason that the 48-bit format is required in addition to the 32-bit simulation address format that actually identifies a specific simulation is because some 48-bit identifier fields in PDUs may contain either an Object Identifier, such as an Entity ID, or a Simulation Identifier. Section 6.2.80 + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(SimulationAddress))] + public partial class SimulationIdentifier + { + /// + /// Simulation address + /// + private SimulationAddress _simulationAddress = new SimulationAddress(); + + /// + /// This field shall be set to zero as there is no reference number associated with a Simulation Identifier. + /// + private ushort _referenceNumber; + + /// + /// Initializes a new instance of the class. + /// + public SimulationIdentifier() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(SimulationIdentifier left, SimulationIdentifier right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(SimulationIdentifier left, SimulationIdentifier right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += this._simulationAddress.GetMarshalledSize(); // this._simulationAddress + marshalSize += 2; // this._referenceNumber + return marshalSize; + } + + /// + /// Gets or sets the Simulation address + /// + [XmlElement(Type = typeof(SimulationAddress), ElementName = "simulationAddress")] + public SimulationAddress SimulationAddress + { + get + { + return this._simulationAddress; + } + + set + { + this._simulationAddress = value; + } + } + + /// + /// Gets or sets the This field shall be set to zero as there is no reference number associated with a Simulation Identifier. + /// + [XmlElement(Type = typeof(ushort), ElementName = "referenceNumber")] + public ushort ReferenceNumber + { + get + { + return this._referenceNumber; + } + + set + { + this._referenceNumber = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + this._simulationAddress.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._referenceNumber); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._simulationAddress.Unmarshal(dis); + this._referenceNumber = dis.ReadUnsignedShort(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine(""); + this._simulationAddress.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._referenceNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as SimulationIdentifier; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(SimulationIdentifier obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (!this._simulationAddress.Equals(obj._simulationAddress)) + { + ivarsEqual = false; + } + + if (this._referenceNumber != obj._referenceNumber) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._simulationAddress.GetHashCode(); + result = GenerateHash(result) ^ this._referenceNumber.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/SimulationManagementFamilyPdu.cs b/Libs/CSharpDis7/SimulationManagementFamilyPdu.cs new file mode 100644 index 0000000..81b653d --- /dev/null +++ b/Libs/CSharpDis7/SimulationManagementFamilyPdu.cs @@ -0,0 +1,318 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Section 7.5 Abstract superclass for PDUs relating to the simulation itself. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + public partial class SimulationManagementFamilyPdu : Pdu, IEquatable + { + /// + /// Entity that is sending message + /// + private EntityID _originatingEntityID = new EntityID(); + + /// + /// Entity that is intended to receive message + /// + private EntityID _receivingEntityID = new EntityID(); + + /// + /// Initializes a new instance of the class. + /// + public SimulationManagementFamilyPdu() + { + ProtocolFamily = (byte)5; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(SimulationManagementFamilyPdu left, SimulationManagementFamilyPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(SimulationManagementFamilyPdu left, SimulationManagementFamilyPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._originatingEntityID.GetMarshalledSize(); // this._originatingEntityID + marshalSize += this._receivingEntityID.GetMarshalledSize(); // this._receivingEntityID + return marshalSize; + } + + /// + /// Gets or sets the Entity that is sending message + /// + [XmlElement(Type = typeof(EntityID), ElementName = "originatingEntityID")] + public EntityID OriginatingEntityID + { + get + { + return this._originatingEntityID; + } + + set + { + this._originatingEntityID = value; + } + } + + /// + /// Gets or sets the Entity that is intended to receive message + /// + [XmlElement(Type = typeof(EntityID), ElementName = "receivingEntityID")] + public EntityID ReceivingEntityID + { + get + { + return this._receivingEntityID; + } + + set + { + this._receivingEntityID = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public virtual void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._originatingEntityID.Marshal(dos); + this._receivingEntityID.Marshal(dos); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._originatingEntityID.Unmarshal(dis); + this._receivingEntityID.Unmarshal(dis); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._originatingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._receivingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as SimulationManagementFamilyPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(SimulationManagementFamilyPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._originatingEntityID.Equals(obj._originatingEntityID)) + { + ivarsEqual = false; + } + + if (!this._receivingEntityID.Equals(obj._receivingEntityID)) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._originatingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._receivingEntityID.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/SimulationManagementPduHeader.cs b/Libs/CSharpDis7/SimulationManagementPduHeader.cs new file mode 100644 index 0000000..863e4f3 --- /dev/null +++ b/Libs/CSharpDis7/SimulationManagementPduHeader.cs @@ -0,0 +1,349 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// First part of a simulation management (SIMAN) PDU and SIMAN-Reliability (SIMAN-R) PDU. Sectionn 6.2.81 + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(PduHeader))] + [XmlInclude(typeof(EntityID))] + public partial class SimulationManagementPduHeader + { + /// + /// Conventional PDU header + /// + private PduHeader _pduHeader = new PduHeader(); + + /// + /// IDs the simulation or entity, etiehr a simulation or an entity. Either 6.2.80 or 6.2.28 + /// + private EntityID _originatingID = new EntityID(); + + /// + /// simulation, all simulations, a special ID, or an entity. See 5.6.5 and 5.12.4 + /// + private EntityID _recevingID = new EntityID(); + + /// + /// Initializes a new instance of the class. + /// + public SimulationManagementPduHeader() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(SimulationManagementPduHeader left, SimulationManagementPduHeader right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(SimulationManagementPduHeader left, SimulationManagementPduHeader right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += this._pduHeader.GetMarshalledSize(); // this._pduHeader + marshalSize += this._originatingID.GetMarshalledSize(); // this._originatingID + marshalSize += this._recevingID.GetMarshalledSize(); // this._recevingID + return marshalSize; + } + + /// + /// Gets or sets the Conventional PDU header + /// + [XmlElement(Type = typeof(PduHeader), ElementName = "pduHeader")] + public PduHeader PduHeader + { + get + { + return this._pduHeader; + } + + set + { + this._pduHeader = value; + } + } + + /// + /// Gets or sets the IDs the simulation or entity, etiehr a simulation or an entity. Either 6.2.80 or 6.2.28 + /// + [XmlElement(Type = typeof(EntityID), ElementName = "originatingID")] + public EntityID OriginatingID + { + get + { + return this._originatingID; + } + + set + { + this._originatingID = value; + } + } + + /// + /// Gets or sets the simulation, all simulations, a special ID, or an entity. See 5.6.5 and 5.12.4 + /// + [XmlElement(Type = typeof(EntityID), ElementName = "recevingID")] + public EntityID RecevingID + { + get + { + return this._recevingID; + } + + set + { + this._recevingID = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + this._pduHeader.Marshal(dos); + this._originatingID.Marshal(dos); + this._recevingID.Marshal(dos); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._pduHeader.Unmarshal(dis); + this._originatingID.Unmarshal(dis); + this._recevingID.Unmarshal(dis); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine(""); + this._pduHeader.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._originatingID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._recevingID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as SimulationManagementPduHeader; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(SimulationManagementPduHeader obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (!this._pduHeader.Equals(obj._pduHeader)) + { + ivarsEqual = false; + } + + if (!this._originatingID.Equals(obj._originatingID)) + { + ivarsEqual = false; + } + + if (!this._recevingID.Equals(obj._recevingID)) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._pduHeader.GetHashCode(); + result = GenerateHash(result) ^ this._originatingID.GetHashCode(); + result = GenerateHash(result) ^ this._recevingID.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/SimulationManagementWithReliabilityFamilyPdu.cs b/Libs/CSharpDis7/SimulationManagementWithReliabilityFamilyPdu.cs new file mode 100644 index 0000000..f21b6d3 --- /dev/null +++ b/Libs/CSharpDis7/SimulationManagementWithReliabilityFamilyPdu.cs @@ -0,0 +1,318 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Section 5.3.12: Abstract superclass for reliable simulation management PDUs + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + public partial class SimulationManagementWithReliabilityFamilyPdu : Pdu, IEquatable + { + /// + /// Object originatig the request + /// + private EntityID _originatingEntityID = new EntityID(); + + /// + /// Object with which this point object is associated + /// + private EntityID _receivingEntityID = new EntityID(); + + /// + /// Initializes a new instance of the class. + /// + public SimulationManagementWithReliabilityFamilyPdu() + { + ProtocolFamily = (byte)10; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(SimulationManagementWithReliabilityFamilyPdu left, SimulationManagementWithReliabilityFamilyPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(SimulationManagementWithReliabilityFamilyPdu left, SimulationManagementWithReliabilityFamilyPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._originatingEntityID.GetMarshalledSize(); // this._originatingEntityID + marshalSize += this._receivingEntityID.GetMarshalledSize(); // this._receivingEntityID + return marshalSize; + } + + /// + /// Gets or sets the Object originatig the request + /// + [XmlElement(Type = typeof(EntityID), ElementName = "originatingEntityID")] + public EntityID OriginatingEntityID + { + get + { + return this._originatingEntityID; + } + + set + { + this._originatingEntityID = value; + } + } + + /// + /// Gets or sets the Object with which this point object is associated + /// + [XmlElement(Type = typeof(EntityID), ElementName = "receivingEntityID")] + public EntityID ReceivingEntityID + { + get + { + return this._receivingEntityID; + } + + set + { + this._receivingEntityID = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public virtual void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._originatingEntityID.Marshal(dos); + this._receivingEntityID.Marshal(dos); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._originatingEntityID.Unmarshal(dis); + this._receivingEntityID.Unmarshal(dis); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._originatingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._receivingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as SimulationManagementWithReliabilityFamilyPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(SimulationManagementWithReliabilityFamilyPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._originatingEntityID.Equals(obj._originatingEntityID)) + { + ivarsEqual = false; + } + + if (!this._receivingEntityID.Equals(obj._receivingEntityID)) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._originatingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._receivingEntityID.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/StandardVariableSpecification.cs b/Libs/CSharpDis7/StandardVariableSpecification.cs new file mode 100644 index 0000000..831a909 --- /dev/null +++ b/Libs/CSharpDis7/StandardVariableSpecification.cs @@ -0,0 +1,348 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Does not work, and causes failure in anything it is embedded in. Section 6.2.82 + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(SimulationManagementPduHeader))] + public partial class StandardVariableSpecification + { + /// + /// Number of static variable records + /// + private ushort _numberOfStandardVariableRecords; + + /// + /// variable length list of standard variables, The class type and length here are WRONG and will cause the incorrect serialization of any class in whihc it is embedded. + /// + private List _standardVariables = new List(); + + /// + /// Initializes a new instance of the class. + /// + public StandardVariableSpecification() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(StandardVariableSpecification left, StandardVariableSpecification right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(StandardVariableSpecification left, StandardVariableSpecification right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 2; // this._numberOfStandardVariableRecords + for (int idx = 0; idx < this._standardVariables.Count; idx++) + { + SimulationManagementPduHeader listElement = (SimulationManagementPduHeader)this._standardVariables[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfStandardVariableRecords method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(ushort), ElementName = "numberOfStandardVariableRecords")] + public ushort NumberOfStandardVariableRecords + { + get + { + return this._numberOfStandardVariableRecords; + } + + set + { + this._numberOfStandardVariableRecords = value; + } + } + + /// + /// Gets or sets the variable length list of standard variables, The class type and length here are WRONG and will cause the incorrect serialization of any class in whihc it is embedded. + /// + [XmlElement(ElementName = "standardVariablesList", Type = typeof(List))] + public List StandardVariables + { + get + { + return this._standardVariables; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._standardVariables.Count); + + for (int idx = 0; idx < this._standardVariables.Count; idx++) + { + SimulationManagementPduHeader aSimulationManagementPduHeader = (SimulationManagementPduHeader)this._standardVariables[idx]; + aSimulationManagementPduHeader.Marshal(dos); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._numberOfStandardVariableRecords = dis.ReadUnsignedShort(); + for (int idx = 0; idx < this.NumberOfStandardVariableRecords; idx++) + { + SimulationManagementPduHeader anX = new SimulationManagementPduHeader(); + anX.Unmarshal(dis); + this._standardVariables.Add(anX); + }; + + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._standardVariables.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._standardVariables.Count; idx++) + { + sb.AppendLine(""); + SimulationManagementPduHeader aSimulationManagementPduHeader = (SimulationManagementPduHeader)this._standardVariables[idx]; + aSimulationManagementPduHeader.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as StandardVariableSpecification; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(StandardVariableSpecification obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._numberOfStandardVariableRecords != obj._numberOfStandardVariableRecords) + { + ivarsEqual = false; + } + + if (this._standardVariables.Count != obj._standardVariables.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._standardVariables.Count; idx++) + { + if (!this._standardVariables[idx].Equals(obj._standardVariables[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._numberOfStandardVariableRecords.GetHashCode(); + + if (this._standardVariables.Count > 0) + { + for (int idx = 0; idx < this._standardVariables.Count; idx++) + { + result = GenerateHash(result) ^ this._standardVariables[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/StartResumePdu.cs b/Libs/CSharpDis7/StartResumePdu.cs new file mode 100644 index 0000000..988dd1e --- /dev/null +++ b/Libs/CSharpDis7/StartResumePdu.cs @@ -0,0 +1,419 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Section 7.5.4. Start or resume an exercise. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(ClockTime))] + public partial class StartResumePdu : SimulationManagementFamilyPdu, IEquatable + { + /// + /// Identifier for originating entity(or simulation) + /// + private EntityID _originatingID = new EntityID(); + + /// + /// Identifier for the receiving entity(or simulation) + /// + private EntityID _receivingID = new EntityID(); + + /// + /// This field shall specify the real-world time (UTC) at which the entity is to start/resume in the exercise. This information shall be used by the participating simulation applications to start/resume an exercise synchronously. This field shall be represented by a Clock Time record (see 6.2.16). + /// + private ClockTime _realWorldTime = new ClockTime(); + + /// + /// The reference time within a simulation exercise. This time is established ahead of time by simulation management and is common to all participants in a particular exercise. Simulation time may be either Absolute Time or Relative Time. This field shall be represented by a Clock Time record (see 6.2.16) + /// + private ClockTime _simulationTime = new ClockTime(); + + /// + /// Identifier for the specific and unique start/resume request + /// + private uint _requestID; + + /// + /// Initializes a new instance of the class. + /// + public StartResumePdu() + { + PduType = (byte)13; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(StartResumePdu left, StartResumePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(StartResumePdu left, StartResumePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._originatingID.GetMarshalledSize(); // this._originatingID + marshalSize += this._receivingID.GetMarshalledSize(); // this._receivingID + marshalSize += this._realWorldTime.GetMarshalledSize(); // this._realWorldTime + marshalSize += this._simulationTime.GetMarshalledSize(); // this._simulationTime + marshalSize += 4; // this._requestID + return marshalSize; + } + + /// + /// Gets or sets the Identifier for originating entity(or simulation) + /// + [XmlElement(Type = typeof(EntityID), ElementName = "originatingID")] + public EntityID OriginatingID + { + get + { + return this._originatingID; + } + + set + { + this._originatingID = value; + } + } + + /// + /// Gets or sets the Identifier for the receiving entity(or simulation) + /// + [XmlElement(Type = typeof(EntityID), ElementName = "receivingID")] + public EntityID ReceivingID + { + get + { + return this._receivingID; + } + + set + { + this._receivingID = value; + } + } + + /// + /// Gets or sets the This field shall specify the real-world time (UTC) at which the entity is to start/resume in the exercise. This information shall be used by the participating simulation applications to start/resume an exercise synchronously. This field shall be represented by a Clock Time record (see 6.2.16). + /// + [XmlElement(Type = typeof(ClockTime), ElementName = "realWorldTime")] + public ClockTime RealWorldTime + { + get + { + return this._realWorldTime; + } + + set + { + this._realWorldTime = value; + } + } + + /// + /// Gets or sets the The reference time within a simulation exercise. This time is established ahead of time by simulation management and is common to all participants in a particular exercise. Simulation time may be either Absolute Time or Relative Time. This field shall be represented by a Clock Time record (see 6.2.16) + /// + [XmlElement(Type = typeof(ClockTime), ElementName = "simulationTime")] + public ClockTime SimulationTime + { + get + { + return this._simulationTime; + } + + set + { + this._simulationTime = value; + } + } + + /// + /// Gets or sets the Identifier for the specific and unique start/resume request + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._originatingID.Marshal(dos); + this._receivingID.Marshal(dos); + this._realWorldTime.Marshal(dos); + this._simulationTime.Marshal(dos); + dos.WriteUnsignedInt((uint)this._requestID); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._originatingID.Unmarshal(dis); + this._receivingID.Unmarshal(dis); + this._realWorldTime.Unmarshal(dis); + this._simulationTime.Unmarshal(dis); + this._requestID = dis.ReadUnsignedInt(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._originatingID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._receivingID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._realWorldTime.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._simulationTime.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as StartResumePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(StartResumePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._originatingID.Equals(obj._originatingID)) + { + ivarsEqual = false; + } + + if (!this._receivingID.Equals(obj._receivingID)) + { + ivarsEqual = false; + } + + if (!this._realWorldTime.Equals(obj._realWorldTime)) + { + ivarsEqual = false; + } + + if (!this._simulationTime.Equals(obj._simulationTime)) + { + ivarsEqual = false; + } + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._originatingID.GetHashCode(); + result = GenerateHash(result) ^ this._receivingID.GetHashCode(); + result = GenerateHash(result) ^ this._realWorldTime.GetHashCode(); + result = GenerateHash(result) ^ this._simulationTime.GetHashCode(); + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/StartResumeReliablePdu.cs b/Libs/CSharpDis7/StartResumeReliablePdu.cs new file mode 100644 index 0000000..9f1cdb3 --- /dev/null +++ b/Libs/CSharpDis7/StartResumeReliablePdu.cs @@ -0,0 +1,446 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Section 5.3.12.3: Start resume simulation, relaible. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(ClockTime))] + public partial class StartResumeReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable + { + /// + /// time in real world for this operation to happen + /// + private ClockTime _realWorldTime = new ClockTime(); + + /// + /// time in simulation for the simulation to resume + /// + private ClockTime _simulationTime = new ClockTime(); + + /// + /// level of reliability service used for this transaction + /// + private byte _requiredReliabilityService; + + /// + /// padding + /// + private ushort _pad1; + + /// + /// padding + /// + private byte _pad2; + + /// + /// Request ID + /// + private uint _requestID; + + /// + /// Initializes a new instance of the class. + /// + public StartResumeReliablePdu() + { + PduType = (byte)53; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(StartResumeReliablePdu left, StartResumeReliablePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(StartResumeReliablePdu left, StartResumeReliablePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._realWorldTime.GetMarshalledSize(); // this._realWorldTime + marshalSize += this._simulationTime.GetMarshalledSize(); // this._simulationTime + marshalSize += 1; // this._requiredReliabilityService + marshalSize += 2; // this._pad1 + marshalSize += 1; // this._pad2 + marshalSize += 4; // this._requestID + return marshalSize; + } + + /// + /// Gets or sets the time in real world for this operation to happen + /// + [XmlElement(Type = typeof(ClockTime), ElementName = "realWorldTime")] + public ClockTime RealWorldTime + { + get + { + return this._realWorldTime; + } + + set + { + this._realWorldTime = value; + } + } + + /// + /// Gets or sets the time in simulation for the simulation to resume + /// + [XmlElement(Type = typeof(ClockTime), ElementName = "simulationTime")] + public ClockTime SimulationTime + { + get + { + return this._simulationTime; + } + + set + { + this._simulationTime = value; + } + } + + /// + /// Gets or sets the level of reliability service used for this transaction + /// + [XmlElement(Type = typeof(byte), ElementName = "requiredReliabilityService")] + public byte RequiredReliabilityService + { + get + { + return this._requiredReliabilityService; + } + + set + { + this._requiredReliabilityService = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(ushort), ElementName = "pad1")] + public ushort Pad1 + { + get + { + return this._pad1; + } + + set + { + this._pad1 = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "pad2")] + public byte Pad2 + { + get + { + return this._pad2; + } + + set + { + this._pad2 = value; + } + } + + /// + /// Gets or sets the Request ID + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._realWorldTime.Marshal(dos); + this._simulationTime.Marshal(dos); + dos.WriteUnsignedByte((byte)this._requiredReliabilityService); + dos.WriteUnsignedShort((ushort)this._pad1); + dos.WriteUnsignedByte((byte)this._pad2); + dos.WriteUnsignedInt((uint)this._requestID); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._realWorldTime.Unmarshal(dis); + this._simulationTime.Unmarshal(dis); + this._requiredReliabilityService = dis.ReadUnsignedByte(); + this._pad1 = dis.ReadUnsignedShort(); + this._pad2 = dis.ReadUnsignedByte(); + this._requestID = dis.ReadUnsignedInt(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._realWorldTime.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._simulationTime.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._requiredReliabilityService.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as StartResumeReliablePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(StartResumeReliablePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._realWorldTime.Equals(obj._realWorldTime)) + { + ivarsEqual = false; + } + + if (!this._simulationTime.Equals(obj._simulationTime)) + { + ivarsEqual = false; + } + + if (this._requiredReliabilityService != obj._requiredReliabilityService) + { + ivarsEqual = false; + } + + if (this._pad1 != obj._pad1) + { + ivarsEqual = false; + } + + if (this._pad2 != obj._pad2) + { + ivarsEqual = false; + } + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._realWorldTime.GetHashCode(); + result = GenerateHash(result) ^ this._simulationTime.GetHashCode(); + result = GenerateHash(result) ^ this._requiredReliabilityService.GetHashCode(); + result = GenerateHash(result) ^ this._pad1.GetHashCode(); + result = GenerateHash(result) ^ this._pad2.GetHashCode(); + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/StopFreezePdu.cs b/Libs/CSharpDis7/StopFreezePdu.cs new file mode 100644 index 0000000..c779db0 --- /dev/null +++ b/Libs/CSharpDis7/StopFreezePdu.cs @@ -0,0 +1,481 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Section 7.5.5. Stop or freeze an enity (or exercise). COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(ClockTime))] + public partial class StopFreezePdu : SimulationManagementFamilyPdu, IEquatable + { + /// + /// Identifier for originating entity(or simulation) + /// + private EntityID _originatingID = new EntityID(); + + /// + /// Identifier for the receiving entity(or simulation) + /// + private EntityID _receivingID = new EntityID(); + + /// + /// real-world(UTC) time at which the entity shall stop or freeze in the exercise + /// + private ClockTime _realWorldTime = new ClockTime(); + + /// + /// Reason the simulation was stopped or frozen (see section 7 of SISO-REF-010) represented by an 8-bit enumeration + /// + private byte _reason; + + /// + /// Internal behavior of the entity(or simulation) and its appearance while frozen to the other participants + /// + private byte _frozenBehavior; + + /// + /// padding + /// + private short _padding1; + + /// + /// Request ID that is unique + /// + private uint _requestID; + + /// + /// Initializes a new instance of the class. + /// + public StopFreezePdu() + { + PduType = (byte)14; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(StopFreezePdu left, StopFreezePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(StopFreezePdu left, StopFreezePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._originatingID.GetMarshalledSize(); // this._originatingID + marshalSize += this._receivingID.GetMarshalledSize(); // this._receivingID + marshalSize += this._realWorldTime.GetMarshalledSize(); // this._realWorldTime + marshalSize += 1; // this._reason + marshalSize += 1; // this._frozenBehavior + marshalSize += 2; // this._padding1 + marshalSize += 4; // this._requestID + return marshalSize; + } + + /// + /// Gets or sets the Identifier for originating entity(or simulation) + /// + [XmlElement(Type = typeof(EntityID), ElementName = "originatingID")] + public EntityID OriginatingID + { + get + { + return this._originatingID; + } + + set + { + this._originatingID = value; + } + } + + /// + /// Gets or sets the Identifier for the receiving entity(or simulation) + /// + [XmlElement(Type = typeof(EntityID), ElementName = "receivingID")] + public EntityID ReceivingID + { + get + { + return this._receivingID; + } + + set + { + this._receivingID = value; + } + } + + /// + /// Gets or sets the real-world(UTC) time at which the entity shall stop or freeze in the exercise + /// + [XmlElement(Type = typeof(ClockTime), ElementName = "realWorldTime")] + public ClockTime RealWorldTime + { + get + { + return this._realWorldTime; + } + + set + { + this._realWorldTime = value; + } + } + + /// + /// Gets or sets the Reason the simulation was stopped or frozen (see section 7 of SISO-REF-010) represented by an 8-bit enumeration + /// + [XmlElement(Type = typeof(byte), ElementName = "reason")] + public byte Reason + { + get + { + return this._reason; + } + + set + { + this._reason = value; + } + } + + /// + /// Gets or sets the Internal behavior of the entity(or simulation) and its appearance while frozen to the other participants + /// + [XmlElement(Type = typeof(byte), ElementName = "frozenBehavior")] + public byte FrozenBehavior + { + get + { + return this._frozenBehavior; + } + + set + { + this._frozenBehavior = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(short), ElementName = "padding1")] + public short Padding1 + { + get + { + return this._padding1; + } + + set + { + this._padding1 = value; + } + } + + /// + /// Gets or sets the Request ID that is unique + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._originatingID.Marshal(dos); + this._receivingID.Marshal(dos); + this._realWorldTime.Marshal(dos); + dos.WriteUnsignedByte((byte)this._reason); + dos.WriteUnsignedByte((byte)this._frozenBehavior); + dos.WriteShort((short)this._padding1); + dos.WriteUnsignedInt((uint)this._requestID); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._originatingID.Unmarshal(dis); + this._receivingID.Unmarshal(dis); + this._realWorldTime.Unmarshal(dis); + this._reason = dis.ReadUnsignedByte(); + this._frozenBehavior = dis.ReadUnsignedByte(); + this._padding1 = dis.ReadShort(); + this._requestID = dis.ReadUnsignedInt(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._originatingID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._receivingID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._realWorldTime.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._reason.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._frozenBehavior.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as StopFreezePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(StopFreezePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._originatingID.Equals(obj._originatingID)) + { + ivarsEqual = false; + } + + if (!this._receivingID.Equals(obj._receivingID)) + { + ivarsEqual = false; + } + + if (!this._realWorldTime.Equals(obj._realWorldTime)) + { + ivarsEqual = false; + } + + if (this._reason != obj._reason) + { + ivarsEqual = false; + } + + if (this._frozenBehavior != obj._frozenBehavior) + { + ivarsEqual = false; + } + + if (this._padding1 != obj._padding1) + { + ivarsEqual = false; + } + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._originatingID.GetHashCode(); + result = GenerateHash(result) ^ this._receivingID.GetHashCode(); + result = GenerateHash(result) ^ this._realWorldTime.GetHashCode(); + result = GenerateHash(result) ^ this._reason.GetHashCode(); + result = GenerateHash(result) ^ this._frozenBehavior.GetHashCode(); + result = GenerateHash(result) ^ this._padding1.GetHashCode(); + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/StopFreezeReliablePdu.cs b/Libs/CSharpDis7/StopFreezeReliablePdu.cs new file mode 100644 index 0000000..c3b7535 --- /dev/null +++ b/Libs/CSharpDis7/StopFreezeReliablePdu.cs @@ -0,0 +1,444 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Section 5.3.12.4: Stop freeze simulation, relaible. COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(ClockTime))] + public partial class StopFreezeReliablePdu : SimulationManagementWithReliabilityFamilyPdu, IEquatable + { + /// + /// time in real world for this operation to happen + /// + private ClockTime _realWorldTime = new ClockTime(); + + /// + /// Reason for stopping/freezing simulation + /// + private byte _reason; + + /// + /// internal behvior of the simulation while frozen + /// + private byte _frozenBehavior; + + /// + /// reliablity level + /// + private byte _requiredReliablityService; + + /// + /// padding + /// + private byte _pad1; + + /// + /// Request ID + /// + private uint _requestID; + + /// + /// Initializes a new instance of the class. + /// + public StopFreezeReliablePdu() + { + PduType = (byte)54; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(StopFreezeReliablePdu left, StopFreezeReliablePdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(StopFreezeReliablePdu left, StopFreezeReliablePdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._realWorldTime.GetMarshalledSize(); // this._realWorldTime + marshalSize += 1; // this._reason + marshalSize += 1; // this._frozenBehavior + marshalSize += 1; // this._requiredReliablityService + marshalSize += 1; // this._pad1 + marshalSize += 4; // this._requestID + return marshalSize; + } + + /// + /// Gets or sets the time in real world for this operation to happen + /// + [XmlElement(Type = typeof(ClockTime), ElementName = "realWorldTime")] + public ClockTime RealWorldTime + { + get + { + return this._realWorldTime; + } + + set + { + this._realWorldTime = value; + } + } + + /// + /// Gets or sets the Reason for stopping/freezing simulation + /// + [XmlElement(Type = typeof(byte), ElementName = "reason")] + public byte Reason + { + get + { + return this._reason; + } + + set + { + this._reason = value; + } + } + + /// + /// Gets or sets the internal behvior of the simulation while frozen + /// + [XmlElement(Type = typeof(byte), ElementName = "frozenBehavior")] + public byte FrozenBehavior + { + get + { + return this._frozenBehavior; + } + + set + { + this._frozenBehavior = value; + } + } + + /// + /// Gets or sets the reliablity level + /// + [XmlElement(Type = typeof(byte), ElementName = "requiredReliablityService")] + public byte RequiredReliablityService + { + get + { + return this._requiredReliablityService; + } + + set + { + this._requiredReliablityService = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "pad1")] + public byte Pad1 + { + get + { + return this._pad1; + } + + set + { + this._pad1 = value; + } + } + + /// + /// Gets or sets the Request ID + /// + [XmlElement(Type = typeof(uint), ElementName = "requestID")] + public uint RequestID + { + get + { + return this._requestID; + } + + set + { + this._requestID = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._realWorldTime.Marshal(dos); + dos.WriteUnsignedByte((byte)this._reason); + dos.WriteUnsignedByte((byte)this._frozenBehavior); + dos.WriteUnsignedByte((byte)this._requiredReliablityService); + dos.WriteUnsignedByte((byte)this._pad1); + dos.WriteUnsignedInt((uint)this._requestID); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._realWorldTime.Unmarshal(dis); + this._reason = dis.ReadUnsignedByte(); + this._frozenBehavior = dis.ReadUnsignedByte(); + this._requiredReliablityService = dis.ReadUnsignedByte(); + this._pad1 = dis.ReadUnsignedByte(); + this._requestID = dis.ReadUnsignedInt(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._realWorldTime.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._reason.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._frozenBehavior.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._requiredReliablityService.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._requestID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as StopFreezeReliablePdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(StopFreezeReliablePdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._realWorldTime.Equals(obj._realWorldTime)) + { + ivarsEqual = false; + } + + if (this._reason != obj._reason) + { + ivarsEqual = false; + } + + if (this._frozenBehavior != obj._frozenBehavior) + { + ivarsEqual = false; + } + + if (this._requiredReliablityService != obj._requiredReliablityService) + { + ivarsEqual = false; + } + + if (this._pad1 != obj._pad1) + { + ivarsEqual = false; + } + + if (this._requestID != obj._requestID) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._realWorldTime.GetHashCode(); + result = GenerateHash(result) ^ this._reason.GetHashCode(); + result = GenerateHash(result) ^ this._frozenBehavior.GetHashCode(); + result = GenerateHash(result) ^ this._requiredReliablityService.GetHashCode(); + result = GenerateHash(result) ^ this._pad1.GetHashCode(); + result = GenerateHash(result) ^ this._requestID.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/StorageFuel.cs b/Libs/CSharpDis7/StorageFuel.cs new file mode 100644 index 0000000..2f24cd2 --- /dev/null +++ b/Libs/CSharpDis7/StorageFuel.cs @@ -0,0 +1,405 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Information about an entity's engine fuel. Section 6.2.83. + /// + [Serializable] + [XmlRoot] + public partial class StorageFuel + { + /// + /// Fuel quantity, units specified by next field + /// + private uint _fuelQuantity; + + /// + /// Units in which the fuel is measured + /// + private byte _fuelMeasurementUnits; + + /// + /// Type of fuel + /// + private byte _fuelType; + + /// + /// Location of fuel as related to entity. See section 14 of EBV document + /// + private byte _fuelLocation; + + /// + /// padding + /// + private byte _padding; + + /// + /// Initializes a new instance of the class. + /// + public StorageFuel() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(StorageFuel left, StorageFuel right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(StorageFuel left, StorageFuel right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._fuelQuantity + marshalSize += 1; // this._fuelMeasurementUnits + marshalSize += 1; // this._fuelType + marshalSize += 1; // this._fuelLocation + marshalSize += 1; // this._padding + return marshalSize; + } + + /// + /// Gets or sets the Fuel quantity, units specified by next field + /// + [XmlElement(Type = typeof(uint), ElementName = "fuelQuantity")] + public uint FuelQuantity + { + get + { + return this._fuelQuantity; + } + + set + { + this._fuelQuantity = value; + } + } + + /// + /// Gets or sets the Units in which the fuel is measured + /// + [XmlElement(Type = typeof(byte), ElementName = "fuelMeasurementUnits")] + public byte FuelMeasurementUnits + { + get + { + return this._fuelMeasurementUnits; + } + + set + { + this._fuelMeasurementUnits = value; + } + } + + /// + /// Gets or sets the Type of fuel + /// + [XmlElement(Type = typeof(byte), ElementName = "fuelType")] + public byte FuelType + { + get + { + return this._fuelType; + } + + set + { + this._fuelType = value; + } + } + + /// + /// Gets or sets the Location of fuel as related to entity. See section 14 of EBV document + /// + [XmlElement(Type = typeof(byte), ElementName = "fuelLocation")] + public byte FuelLocation + { + get + { + return this._fuelLocation; + } + + set + { + this._fuelLocation = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "padding")] + public byte Padding + { + get + { + return this._padding; + } + + set + { + this._padding = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._fuelQuantity); + dos.WriteUnsignedByte((byte)this._fuelMeasurementUnits); + dos.WriteUnsignedByte((byte)this._fuelType); + dos.WriteUnsignedByte((byte)this._fuelLocation); + dos.WriteUnsignedByte((byte)this._padding); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._fuelQuantity = dis.ReadUnsignedInt(); + this._fuelMeasurementUnits = dis.ReadUnsignedByte(); + this._fuelType = dis.ReadUnsignedByte(); + this._fuelLocation = dis.ReadUnsignedByte(); + this._padding = dis.ReadUnsignedByte(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._fuelQuantity.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fuelMeasurementUnits.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fuelType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fuelLocation.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as StorageFuel; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(StorageFuel obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._fuelQuantity != obj._fuelQuantity) + { + ivarsEqual = false; + } + + if (this._fuelMeasurementUnits != obj._fuelMeasurementUnits) + { + ivarsEqual = false; + } + + if (this._fuelType != obj._fuelType) + { + ivarsEqual = false; + } + + if (this._fuelLocation != obj._fuelLocation) + { + ivarsEqual = false; + } + + if (this._padding != obj._padding) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._fuelQuantity.GetHashCode(); + result = GenerateHash(result) ^ this._fuelMeasurementUnits.GetHashCode(); + result = GenerateHash(result) ^ this._fuelType.GetHashCode(); + result = GenerateHash(result) ^ this._fuelLocation.GetHashCode(); + result = GenerateHash(result) ^ this._padding.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/StorageFuelReload.cs b/Libs/CSharpDis7/StorageFuelReload.cs new file mode 100644 index 0000000..1f94c9f --- /dev/null +++ b/Libs/CSharpDis7/StorageFuelReload.cs @@ -0,0 +1,501 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// For each type or location of Storage Fuel, this record shall specify the type, location, fuel measure- ment units, reload quantity and maximum quantity for storage fuel either for the whole entity or a specific storage fuel location (tank). Section 6.2.84. + /// + [Serializable] + [XmlRoot] + public partial class StorageFuelReload + { + /// + /// the standard quantity of this fuel type normally loaded at this station/launcher if a station/launcher is specified. If the Station/Launcher field is set to zero, then this is the total quantity of this fuel type that would be present in a standard reload of all appli- cable stations/launchers associated with this entity. + /// + private uint _standardQuantity; + + /// + /// the maximum quantity of this fuel type that this sta- tion/launcher is capable of holding when a station/launcher is specified. This would be the value used when a maximum reload was desired to be set for this station/launcher. If the Station/launcher field is set to zero, then this is the maximum quantity of this fuel type that would be present on this entity at all stations/launchers that can accept this fuel type. + /// + private uint _maximumQuantity; + + /// + /// the seconds normally required to reload the standard quantity of this fuel type at this specific station/launcher. When the Station/Launcher field is set to zero, this shall be the time it takes to perform a standard quantity reload of this fuel type at all applicable stations/launchers for this entity. + /// + private byte _standardQuantityReloadTime; + + /// + /// the seconds normally required to reload the maximum possible quantity of this fuel type at this station/launcher. When the Station/Launcher field is set to zero, this shall be the time it takes to perform a maximum quantity load/reload of this fuel type at all applicable stations/launchers for this entity. + /// + private byte _maximumQuantityReloadTime; + + /// + /// the fuel measurement units. Enumeration + /// + private byte _fuelMeasurementUnits; + + /// + /// Fuel type. Enumeration + /// + private byte _fuelType; + + /// + /// Location of fuel as related to entity. See section 14 of EBV document + /// + private byte _fuelLocation; + + /// + /// padding + /// + private byte _padding; + + /// + /// Initializes a new instance of the class. + /// + public StorageFuelReload() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(StorageFuelReload left, StorageFuelReload right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(StorageFuelReload left, StorageFuelReload right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._standardQuantity + marshalSize += 4; // this._maximumQuantity + marshalSize += 1; // this._standardQuantityReloadTime + marshalSize += 1; // this._maximumQuantityReloadTime + marshalSize += 1; // this._fuelMeasurementUnits + marshalSize += 1; // this._fuelType + marshalSize += 1; // this._fuelLocation + marshalSize += 1; // this._padding + return marshalSize; + } + + /// + /// Gets or sets the the standard quantity of this fuel type normally loaded at this station/launcher if a station/launcher is specified. If the Station/Launcher field is set to zero, then this is the total quantity of this fuel type that would be present in a standard reload of all appli- cable stations/launchers associated with this entity. + /// + [XmlElement(Type = typeof(uint), ElementName = "standardQuantity")] + public uint StandardQuantity + { + get + { + return this._standardQuantity; + } + + set + { + this._standardQuantity = value; + } + } + + /// + /// Gets or sets the the maximum quantity of this fuel type that this sta- tion/launcher is capable of holding when a station/launcher is specified. This would be the value used when a maximum reload was desired to be set for this station/launcher. If the Station/launcher field is set to zero, then this is the maximum quantity of this fuel type that would be present on this entity at all stations/launchers that can accept this fuel type. + /// + [XmlElement(Type = typeof(uint), ElementName = "maximumQuantity")] + public uint MaximumQuantity + { + get + { + return this._maximumQuantity; + } + + set + { + this._maximumQuantity = value; + } + } + + /// + /// Gets or sets the the seconds normally required to reload the standard quantity of this fuel type at this specific station/launcher. When the Station/Launcher field is set to zero, this shall be the time it takes to perform a standard quantity reload of this fuel type at all applicable stations/launchers for this entity. + /// + [XmlElement(Type = typeof(byte), ElementName = "standardQuantityReloadTime")] + public byte StandardQuantityReloadTime + { + get + { + return this._standardQuantityReloadTime; + } + + set + { + this._standardQuantityReloadTime = value; + } + } + + /// + /// Gets or sets the the seconds normally required to reload the maximum possible quantity of this fuel type at this station/launcher. When the Station/Launcher field is set to zero, this shall be the time it takes to perform a maximum quantity load/reload of this fuel type at all applicable stations/launchers for this entity. + /// + [XmlElement(Type = typeof(byte), ElementName = "maximumQuantityReloadTime")] + public byte MaximumQuantityReloadTime + { + get + { + return this._maximumQuantityReloadTime; + } + + set + { + this._maximumQuantityReloadTime = value; + } + } + + /// + /// Gets or sets the the fuel measurement units. Enumeration + /// + [XmlElement(Type = typeof(byte), ElementName = "fuelMeasurementUnits")] + public byte FuelMeasurementUnits + { + get + { + return this._fuelMeasurementUnits; + } + + set + { + this._fuelMeasurementUnits = value; + } + } + + /// + /// Gets or sets the Fuel type. Enumeration + /// + [XmlElement(Type = typeof(byte), ElementName = "fuelType")] + public byte FuelType + { + get + { + return this._fuelType; + } + + set + { + this._fuelType = value; + } + } + + /// + /// Gets or sets the Location of fuel as related to entity. See section 14 of EBV document + /// + [XmlElement(Type = typeof(byte), ElementName = "fuelLocation")] + public byte FuelLocation + { + get + { + return this._fuelLocation; + } + + set + { + this._fuelLocation = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "padding")] + public byte Padding + { + get + { + return this._padding; + } + + set + { + this._padding = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._standardQuantity); + dos.WriteUnsignedInt((uint)this._maximumQuantity); + dos.WriteUnsignedByte((byte)this._standardQuantityReloadTime); + dos.WriteUnsignedByte((byte)this._maximumQuantityReloadTime); + dos.WriteUnsignedByte((byte)this._fuelMeasurementUnits); + dos.WriteUnsignedByte((byte)this._fuelType); + dos.WriteUnsignedByte((byte)this._fuelLocation); + dos.WriteUnsignedByte((byte)this._padding); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._standardQuantity = dis.ReadUnsignedInt(); + this._maximumQuantity = dis.ReadUnsignedInt(); + this._standardQuantityReloadTime = dis.ReadUnsignedByte(); + this._maximumQuantityReloadTime = dis.ReadUnsignedByte(); + this._fuelMeasurementUnits = dis.ReadUnsignedByte(); + this._fuelType = dis.ReadUnsignedByte(); + this._fuelLocation = dis.ReadUnsignedByte(); + this._padding = dis.ReadUnsignedByte(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._standardQuantity.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._maximumQuantity.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._standardQuantityReloadTime.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._maximumQuantityReloadTime.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fuelMeasurementUnits.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fuelType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._fuelLocation.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as StorageFuelReload; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(StorageFuelReload obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._standardQuantity != obj._standardQuantity) + { + ivarsEqual = false; + } + + if (this._maximumQuantity != obj._maximumQuantity) + { + ivarsEqual = false; + } + + if (this._standardQuantityReloadTime != obj._standardQuantityReloadTime) + { + ivarsEqual = false; + } + + if (this._maximumQuantityReloadTime != obj._maximumQuantityReloadTime) + { + ivarsEqual = false; + } + + if (this._fuelMeasurementUnits != obj._fuelMeasurementUnits) + { + ivarsEqual = false; + } + + if (this._fuelType != obj._fuelType) + { + ivarsEqual = false; + } + + if (this._fuelLocation != obj._fuelLocation) + { + ivarsEqual = false; + } + + if (this._padding != obj._padding) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._standardQuantity.GetHashCode(); + result = GenerateHash(result) ^ this._maximumQuantity.GetHashCode(); + result = GenerateHash(result) ^ this._standardQuantityReloadTime.GetHashCode(); + result = GenerateHash(result) ^ this._maximumQuantityReloadTime.GetHashCode(); + result = GenerateHash(result) ^ this._fuelMeasurementUnits.GetHashCode(); + result = GenerateHash(result) ^ this._fuelType.GetHashCode(); + result = GenerateHash(result) ^ this._fuelLocation.GetHashCode(); + result = GenerateHash(result) ^ this._padding.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/SupplyQuantity.cs b/Libs/CSharpDis7/SupplyQuantity.cs new file mode 100644 index 0000000..5d564b5 --- /dev/null +++ b/Libs/CSharpDis7/SupplyQuantity.cs @@ -0,0 +1,312 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// A supply, and the amount of that supply. Section 6.2.85 + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityType))] + public partial class SupplyQuantity + { + /// + /// Type of supply + /// + private EntityType _supplyType = new EntityType(); + + /// + /// the number of units of a supply type. + /// + private float _quantity; + + /// + /// Initializes a new instance of the class. + /// + public SupplyQuantity() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(SupplyQuantity left, SupplyQuantity right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(SupplyQuantity left, SupplyQuantity right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += this._supplyType.GetMarshalledSize(); // this._supplyType + marshalSize += 4; // this._quantity + return marshalSize; + } + + /// + /// Gets or sets the Type of supply + /// + [XmlElement(Type = typeof(EntityType), ElementName = "supplyType")] + public EntityType SupplyType + { + get + { + return this._supplyType; + } + + set + { + this._supplyType = value; + } + } + + /// + /// Gets or sets the the number of units of a supply type. + /// + [XmlElement(Type = typeof(float), ElementName = "quantity")] + public float Quantity + { + get + { + return this._quantity; + } + + set + { + this._quantity = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + this._supplyType.Marshal(dos); + dos.WriteFloat((float)this._quantity); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._supplyType.Unmarshal(dis); + this._quantity = dis.ReadFloat(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine(""); + this._supplyType.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._quantity.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as SupplyQuantity; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(SupplyQuantity obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (!this._supplyType.Equals(obj._supplyType)) + { + ivarsEqual = false; + } + + if (this._quantity != obj._quantity) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._supplyType.GetHashCode(); + result = GenerateHash(result) ^ this._quantity.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/SyntheticEnvironmentFamilyPdu.cs b/Libs/CSharpDis7/SyntheticEnvironmentFamilyPdu.cs new file mode 100644 index 0000000..b9c288d --- /dev/null +++ b/Libs/CSharpDis7/SyntheticEnvironmentFamilyPdu.cs @@ -0,0 +1,248 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Section 5.3.11: Abstract superclass for synthetic environment PDUs + /// + [Serializable] + [XmlRoot] + public partial class SyntheticEnvironmentFamilyPdu : Pdu, IEquatable + { + /// + /// Initializes a new instance of the class. + /// + public SyntheticEnvironmentFamilyPdu() + { + ProtocolFamily = (byte)9; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(SyntheticEnvironmentFamilyPdu left, SyntheticEnvironmentFamilyPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(SyntheticEnvironmentFamilyPdu left, SyntheticEnvironmentFamilyPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + return marshalSize; + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public virtual void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as SyntheticEnvironmentFamilyPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(SyntheticEnvironmentFamilyPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/SystemIdentifier.cs b/Libs/CSharpDis7/SystemIdentifier.cs new file mode 100644 index 0000000..db1c2a6 --- /dev/null +++ b/Libs/CSharpDis7/SystemIdentifier.cs @@ -0,0 +1,376 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// The ID of the IFF emitting system. NOT COMPLETE. Section 6.2.86 + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(ChangeOptions))] + public partial class SystemIdentifier + { + /// + /// general type of emitting system, an enumeration + /// + private ushort _systemType; + + /// + /// named type of system, an enumeration + /// + private ushort _systemName; + + /// + /// mode of operation for the system, an enumeration + /// + private ushort _systemMode; + + /// + /// status of this PDU, see section 6.2.15 + /// + private ChangeOptions _changeOptions = new ChangeOptions(); + + /// + /// Initializes a new instance of the class. + /// + public SystemIdentifier() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(SystemIdentifier left, SystemIdentifier right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(SystemIdentifier left, SystemIdentifier right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 2; // this._systemType + marshalSize += 2; // this._systemName + marshalSize += 2; // this._systemMode + marshalSize += this._changeOptions.GetMarshalledSize(); // this._changeOptions + return marshalSize; + } + + /// + /// Gets or sets the general type of emitting system, an enumeration + /// + [XmlElement(Type = typeof(ushort), ElementName = "systemType")] + public ushort SystemType + { + get + { + return this._systemType; + } + + set + { + this._systemType = value; + } + } + + /// + /// Gets or sets the named type of system, an enumeration + /// + [XmlElement(Type = typeof(ushort), ElementName = "systemName")] + public ushort SystemName + { + get + { + return this._systemName; + } + + set + { + this._systemName = value; + } + } + + /// + /// Gets or sets the mode of operation for the system, an enumeration + /// + [XmlElement(Type = typeof(ushort), ElementName = "systemMode")] + public ushort SystemMode + { + get + { + return this._systemMode; + } + + set + { + this._systemMode = value; + } + } + + /// + /// Gets or sets the status of this PDU, see section 6.2.15 + /// + [XmlElement(Type = typeof(ChangeOptions), ElementName = "changeOptions")] + public ChangeOptions ChangeOptions + { + get + { + return this._changeOptions; + } + + set + { + this._changeOptions = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._systemType); + dos.WriteUnsignedShort((ushort)this._systemName); + dos.WriteUnsignedShort((ushort)this._systemMode); + this._changeOptions.Marshal(dos); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._systemType = dis.ReadUnsignedShort(); + this._systemName = dis.ReadUnsignedShort(); + this._systemMode = dis.ReadUnsignedShort(); + this._changeOptions.Unmarshal(dis); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._systemType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._systemName.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._systemMode.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + this._changeOptions.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as SystemIdentifier; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(SystemIdentifier obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._systemType != obj._systemType) + { + ivarsEqual = false; + } + + if (this._systemName != obj._systemName) + { + ivarsEqual = false; + } + + if (this._systemMode != obj._systemMode) + { + ivarsEqual = false; + } + + if (!this._changeOptions.Equals(obj._changeOptions)) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._systemType.GetHashCode(); + result = GenerateHash(result) ^ this._systemName.GetHashCode(); + result = GenerateHash(result) ^ this._systemMode.GetHashCode(); + result = GenerateHash(result) ^ this._changeOptions.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/TotalRecordSets.cs b/Libs/CSharpDis7/TotalRecordSets.cs new file mode 100644 index 0000000..a7d9d4f --- /dev/null +++ b/Libs/CSharpDis7/TotalRecordSets.cs @@ -0,0 +1,309 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Total number of record sets contained in a logical set of one or more PDUs. Used to transfer ownership, etc Section 6.2.88 + /// + [Serializable] + [XmlRoot] + public partial class TotalRecordSets + { + /// + /// Total number of record sets + /// + private ushort _totalRecordSets; + + /// + /// padding + /// + private ushort _padding; + + /// + /// Initializes a new instance of the class. + /// + public TotalRecordSets() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(TotalRecordSets left, TotalRecordSets right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(TotalRecordSets left, TotalRecordSets right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 2; // this._totalRecordSets + marshalSize += 2; // this._padding + return marshalSize; + } + + /// + /// Gets or sets the Total number of record sets + /// + [XmlElement(Type = typeof(ushort), ElementName = "totalRecordSets")] + public ushort TotalRecordSets_ + { + get + { + return this._totalRecordSets; + } + + set + { + this._totalRecordSets = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(ushort), ElementName = "padding")] + public ushort Padding + { + get + { + return this._padding; + } + + set + { + this._padding = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._totalRecordSets); + dos.WriteUnsignedShort((ushort)this._padding); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._totalRecordSets = dis.ReadUnsignedShort(); + this._padding = dis.ReadUnsignedShort(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._totalRecordSets.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as TotalRecordSets; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(TotalRecordSets obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._totalRecordSets != obj._totalRecordSets) + { + ivarsEqual = false; + } + + if (this._padding != obj._padding) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._totalRecordSets.GetHashCode(); + result = GenerateHash(result) ^ this._padding.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/TrackJamData.cs b/Libs/CSharpDis7/TrackJamData.cs new file mode 100644 index 0000000..da7cf75 --- /dev/null +++ b/Libs/CSharpDis7/TrackJamData.cs @@ -0,0 +1,344 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Track-Jam data Section 6.2.89 + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + public partial class TrackJamData + { + /// + /// the entity tracked or illumated, or an emitter beam targeted with jamming + /// + private EntityID _entityID = new EntityID(); + + /// + /// Emitter system associated with the entity + /// + private byte _emitterNumber; + + /// + /// Beam associated with the entity + /// + private byte _beamNumber; + + /// + /// Initializes a new instance of the class. + /// + public TrackJamData() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(TrackJamData left, TrackJamData right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(TrackJamData left, TrackJamData right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += this._entityID.GetMarshalledSize(); // this._entityID + marshalSize += 1; // this._emitterNumber + marshalSize += 1; // this._beamNumber + return marshalSize; + } + + /// + /// Gets or sets the the entity tracked or illumated, or an emitter beam targeted with jamming + /// + [XmlElement(Type = typeof(EntityID), ElementName = "entityID")] + public EntityID EntityID + { + get + { + return this._entityID; + } + + set + { + this._entityID = value; + } + } + + /// + /// Gets or sets the Emitter system associated with the entity + /// + [XmlElement(Type = typeof(byte), ElementName = "emitterNumber")] + public byte EmitterNumber + { + get + { + return this._emitterNumber; + } + + set + { + this._emitterNumber = value; + } + } + + /// + /// Gets or sets the Beam associated with the entity + /// + [XmlElement(Type = typeof(byte), ElementName = "beamNumber")] + public byte BeamNumber + { + get + { + return this._beamNumber; + } + + set + { + this._beamNumber = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + this._entityID.Marshal(dos); + dos.WriteUnsignedByte((byte)this._emitterNumber); + dos.WriteUnsignedByte((byte)this._beamNumber); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._entityID.Unmarshal(dis); + this._emitterNumber = dis.ReadUnsignedByte(); + this._beamNumber = dis.ReadUnsignedByte(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine(""); + this._entityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._emitterNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._beamNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as TrackJamData; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(TrackJamData obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (!this._entityID.Equals(obj._entityID)) + { + ivarsEqual = false; + } + + if (this._emitterNumber != obj._emitterNumber) + { + ivarsEqual = false; + } + + if (this._beamNumber != obj._beamNumber) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._entityID.GetHashCode(); + result = GenerateHash(result) ^ this._emitterNumber.GetHashCode(); + result = GenerateHash(result) ^ this._beamNumber.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/TwoByteChunk.cs b/Libs/CSharpDis7/TwoByteChunk.cs new file mode 100644 index 0000000..a92f68a --- /dev/null +++ b/Libs/CSharpDis7/TwoByteChunk.cs @@ -0,0 +1,303 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// 16 bit piece of data + /// + [Serializable] + [XmlRoot] + public partial class TwoByteChunk + { + /// + /// two bytes of arbitrary data + /// + private byte[] _otherParameters = new byte[2]; + + /// + /// Initializes a new instance of the class. + /// + public TwoByteChunk() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(TwoByteChunk left, TwoByteChunk right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(TwoByteChunk left, TwoByteChunk right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 2 * 1; // _otherParameters + return marshalSize; + } + + /// + /// Gets or sets the two bytes of arbitrary data + /// + [XmlArray(ElementName = "otherParameters")] + public byte[] OtherParameters + { + get + { + return this._otherParameters; + } + + set + { + this._otherParameters = value; + } +} + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + + for (int idx = 0; idx < this._otherParameters.Length; idx++) + { + dos.WriteByte(this._otherParameters[idx]); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + for (int idx = 0; idx < this._otherParameters.Length; idx++) + { + this._otherParameters[idx] = dis.ReadByte(); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + for (int idx = 0; idx < this._otherParameters.Length; idx++) + { + sb.AppendLine("" + this._otherParameters[idx] + ""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as TwoByteChunk; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(TwoByteChunk obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (obj._otherParameters.Length != 2) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < 2; idx++) + { + if (this._otherParameters[idx] != obj._otherParameters[idx]) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + + for (int idx = 0; idx < 2; idx++) + { + result = GenerateHash(result) ^ this._otherParameters[idx].GetHashCode(); + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/UAFundamentalParameter.cs b/Libs/CSharpDis7/UAFundamentalParameter.cs new file mode 100644 index 0000000..f70d8c4 --- /dev/null +++ b/Libs/CSharpDis7/UAFundamentalParameter.cs @@ -0,0 +1,437 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Regeneration parameters for active emission systems that are variable throughout a scenario. Section 6.2.90 + /// + [Serializable] + [XmlRoot] + public partial class UAFundamentalParameter + { + /// + /// Which database record shall be used. An enumeration from EBV document + /// + private ushort _activeEmissionParameterIndex; + + /// + /// The type of scan pattern, If not used, zero. An enumeration from EBV document + /// + private ushort _scanPattern; + + /// + /// center azimuth bearing of th emain beam. In radians. + /// + private float _beamCenterAzimuthHorizontal; + + /// + /// Horizontal beamwidth of th emain beam Meastued at the 3dB down point of peak radiated power. In radians. + /// + private float _azimuthalBeamwidthHorizontal; + + /// + /// center of the d/e angle of th emain beam relative to the stablised de angle of the target. In radians. + /// + private float _beamCenterDepressionElevation; + + /// + /// vertical beamwidth of the main beam. Meastured at the 3dB down point of peak radiated power. In radians. + /// + private float _beamwidthDownElevation; + + /// + /// Initializes a new instance of the class. + /// + public UAFundamentalParameter() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(UAFundamentalParameter left, UAFundamentalParameter right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(UAFundamentalParameter left, UAFundamentalParameter right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 2; // this._activeEmissionParameterIndex + marshalSize += 2; // this._scanPattern + marshalSize += 4; // this._beamCenterAzimuthHorizontal + marshalSize += 4; // this._azimuthalBeamwidthHorizontal + marshalSize += 4; // this._beamCenterDepressionElevation + marshalSize += 4; // this._beamwidthDownElevation + return marshalSize; + } + + /// + /// Gets or sets the Which database record shall be used. An enumeration from EBV document + /// + [XmlElement(Type = typeof(ushort), ElementName = "activeEmissionParameterIndex")] + public ushort ActiveEmissionParameterIndex + { + get + { + return this._activeEmissionParameterIndex; + } + + set + { + this._activeEmissionParameterIndex = value; + } + } + + /// + /// Gets or sets the The type of scan pattern, If not used, zero. An enumeration from EBV document + /// + [XmlElement(Type = typeof(ushort), ElementName = "scanPattern")] + public ushort ScanPattern + { + get + { + return this._scanPattern; + } + + set + { + this._scanPattern = value; + } + } + + /// + /// Gets or sets the center azimuth bearing of th emain beam. In radians. + /// + [XmlElement(Type = typeof(float), ElementName = "beamCenterAzimuthHorizontal")] + public float BeamCenterAzimuthHorizontal + { + get + { + return this._beamCenterAzimuthHorizontal; + } + + set + { + this._beamCenterAzimuthHorizontal = value; + } + } + + /// + /// Gets or sets the Horizontal beamwidth of th emain beam Meastued at the 3dB down point of peak radiated power. In radians. + /// + [XmlElement(Type = typeof(float), ElementName = "azimuthalBeamwidthHorizontal")] + public float AzimuthalBeamwidthHorizontal + { + get + { + return this._azimuthalBeamwidthHorizontal; + } + + set + { + this._azimuthalBeamwidthHorizontal = value; + } + } + + /// + /// Gets or sets the center of the d/e angle of th emain beam relative to the stablised de angle of the target. In radians. + /// + [XmlElement(Type = typeof(float), ElementName = "beamCenterDepressionElevation")] + public float BeamCenterDepressionElevation + { + get + { + return this._beamCenterDepressionElevation; + } + + set + { + this._beamCenterDepressionElevation = value; + } + } + + /// + /// Gets or sets the vertical beamwidth of the main beam. Meastured at the 3dB down point of peak radiated power. In radians. + /// + [XmlElement(Type = typeof(float), ElementName = "beamwidthDownElevation")] + public float BeamwidthDownElevation + { + get + { + return this._beamwidthDownElevation; + } + + set + { + this._beamwidthDownElevation = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedShort((ushort)this._activeEmissionParameterIndex); + dos.WriteUnsignedShort((ushort)this._scanPattern); + dos.WriteFloat((float)this._beamCenterAzimuthHorizontal); + dos.WriteFloat((float)this._azimuthalBeamwidthHorizontal); + dos.WriteFloat((float)this._beamCenterDepressionElevation); + dos.WriteFloat((float)this._beamwidthDownElevation); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._activeEmissionParameterIndex = dis.ReadUnsignedShort(); + this._scanPattern = dis.ReadUnsignedShort(); + this._beamCenterAzimuthHorizontal = dis.ReadFloat(); + this._azimuthalBeamwidthHorizontal = dis.ReadFloat(); + this._beamCenterDepressionElevation = dis.ReadFloat(); + this._beamwidthDownElevation = dis.ReadFloat(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._activeEmissionParameterIndex.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._scanPattern.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._beamCenterAzimuthHorizontal.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._azimuthalBeamwidthHorizontal.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._beamCenterDepressionElevation.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._beamwidthDownElevation.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as UAFundamentalParameter; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(UAFundamentalParameter obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._activeEmissionParameterIndex != obj._activeEmissionParameterIndex) + { + ivarsEqual = false; + } + + if (this._scanPattern != obj._scanPattern) + { + ivarsEqual = false; + } + + if (this._beamCenterAzimuthHorizontal != obj._beamCenterAzimuthHorizontal) + { + ivarsEqual = false; + } + + if (this._azimuthalBeamwidthHorizontal != obj._azimuthalBeamwidthHorizontal) + { + ivarsEqual = false; + } + + if (this._beamCenterDepressionElevation != obj._beamCenterDepressionElevation) + { + ivarsEqual = false; + } + + if (this._beamwidthDownElevation != obj._beamwidthDownElevation) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._activeEmissionParameterIndex.GetHashCode(); + result = GenerateHash(result) ^ this._scanPattern.GetHashCode(); + result = GenerateHash(result) ^ this._beamCenterAzimuthHorizontal.GetHashCode(); + result = GenerateHash(result) ^ this._azimuthalBeamwidthHorizontal.GetHashCode(); + result = GenerateHash(result) ^ this._beamCenterDepressionElevation.GetHashCode(); + result = GenerateHash(result) ^ this._beamwidthDownElevation.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/UaPdu.cs b/Libs/CSharpDis7/UaPdu.cs new file mode 100644 index 0000000..95784b1 --- /dev/null +++ b/Libs/CSharpDis7/UaPdu.cs @@ -0,0 +1,756 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Information about underwater acoustic emmissions. This requires manual cleanup. The beam data records should ALL be a the finish, rather than attached to each emitter system. Section 7.6.4. UNFINISHED + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + [XmlInclude(typeof(EventIdentifier))] + [XmlInclude(typeof(Vector3Float))] + [XmlInclude(typeof(Vector3Float))] + [XmlInclude(typeof(Vector3Float))] + public partial class UaPdu : DistributedEmissionsFamilyPdu, IEquatable + { + /// + /// ID of the entity that is the source of the emission + /// + private EntityID _emittingEntityID = new EntityID(); + + /// + /// ID of event + /// + private EventIdentifier _eventID = new EventIdentifier(); + + /// + /// This field shall be used to indicate whether the data in the UA PDU represent a state update or data that have changed since issuance of the last UA PDU + /// + private byte _stateChangeIndicator; + + /// + /// padding + /// + private byte _pad; + + /// + /// This field indicates which database record (or file) shall be used in the definition of passive signature (unintentional) emissions of the entity. The indicated database record (or file) shall define all noise generated as a function of propulsion plant configurations and associated auxiliaries. + /// + private ushort _passiveParameterIndex; + + /// + /// This field shall specify the entity propulsion plant configuration. This field is used to determine the passive signature characteristics of an entity. + /// + private byte _propulsionPlantConfiguration; + + /// + /// This field shall represent the number of shafts on a platform + /// + private byte _numberOfShafts; + + /// + /// This field shall indicate the number of APAs described in the current UA PDU + /// + private byte _numberOfAPAs; + + /// + /// This field shall specify the number of UA emitter systems being described in the current UA PDU + /// + private byte _numberOfUAEmitterSystems; + + /// + /// shaft RPM values. THIS IS WRONG. It has the wrong class in the list. + /// + private List _shaftRPMs = new List(); + + /// + /// apaData. THIS IS WRONG. It has the worng class in the list. + /// + private List _apaData = new List(); + + /// + /// THIS IS WRONG. It has the wrong class in the list. + /// + private List _emitterSystems = new List(); + + /// + /// Initializes a new instance of the class. + /// + public UaPdu() + { + PduType = (byte)29; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(UaPdu left, UaPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(UaPdu left, UaPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._emittingEntityID.GetMarshalledSize(); // this._emittingEntityID + marshalSize += this._eventID.GetMarshalledSize(); // this._eventID + marshalSize += 1; // this._stateChangeIndicator + marshalSize += 1; // this._pad + marshalSize += 2; // this._passiveParameterIndex + marshalSize += 1; // this._propulsionPlantConfiguration + marshalSize += 1; // this._numberOfShafts + marshalSize += 1; // this._numberOfAPAs + marshalSize += 1; // this._numberOfUAEmitterSystems + for (int idx = 0; idx < this._shaftRPMs.Count; idx++) + { + Vector3Float listElement = (Vector3Float)this._shaftRPMs[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._apaData.Count; idx++) + { + Vector3Float listElement = (Vector3Float)this._apaData[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + for (int idx = 0; idx < this._emitterSystems.Count; idx++) + { + Vector3Float listElement = (Vector3Float)this._emitterSystems[idx]; + marshalSize += listElement.GetMarshalledSize(); + } + + return marshalSize; + } + + /// + /// Gets or sets the ID of the entity that is the source of the emission + /// + [XmlElement(Type = typeof(EntityID), ElementName = "emittingEntityID")] + public EntityID EmittingEntityID + { + get + { + return this._emittingEntityID; + } + + set + { + this._emittingEntityID = value; + } + } + + /// + /// Gets or sets the ID of event + /// + [XmlElement(Type = typeof(EventIdentifier), ElementName = "eventID")] + public EventIdentifier EventID + { + get + { + return this._eventID; + } + + set + { + this._eventID = value; + } + } + + /// + /// Gets or sets the This field shall be used to indicate whether the data in the UA PDU represent a state update or data that have changed since issuance of the last UA PDU + /// + [XmlElement(Type = typeof(byte), ElementName = "stateChangeIndicator")] + public byte StateChangeIndicator + { + get + { + return this._stateChangeIndicator; + } + + set + { + this._stateChangeIndicator = value; + } + } + + /// + /// Gets or sets the padding + /// + [XmlElement(Type = typeof(byte), ElementName = "pad")] + public byte Pad + { + get + { + return this._pad; + } + + set + { + this._pad = value; + } + } + + /// + /// Gets or sets the This field indicates which database record (or file) shall be used in the definition of passive signature (unintentional) emissions of the entity. The indicated database record (or file) shall define all noise generated as a function of propulsion plant configurations and associated auxiliaries. + /// + [XmlElement(Type = typeof(ushort), ElementName = "passiveParameterIndex")] + public ushort PassiveParameterIndex + { + get + { + return this._passiveParameterIndex; + } + + set + { + this._passiveParameterIndex = value; + } + } + + /// + /// Gets or sets the This field shall specify the entity propulsion plant configuration. This field is used to determine the passive signature characteristics of an entity. + /// + [XmlElement(Type = typeof(byte), ElementName = "propulsionPlantConfiguration")] + public byte PropulsionPlantConfiguration + { + get + { + return this._propulsionPlantConfiguration; + } + + set + { + this._propulsionPlantConfiguration = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfShafts method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfShafts")] + public byte NumberOfShafts + { + get + { + return this._numberOfShafts; + } + + set + { + this._numberOfShafts = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfAPAs method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfAPAs")] + public byte NumberOfAPAs + { + get + { + return this._numberOfAPAs; + } + + set + { + this._numberOfAPAs = value; + } + } + + /// + /// Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. + /// The getnumberOfUAEmitterSystems method will also be based on the actual list length rather than this value. + /// The method is simply here for completeness and should not be used for any computations. + /// + [XmlElement(Type = typeof(byte), ElementName = "numberOfUAEmitterSystems")] + public byte NumberOfUAEmitterSystems + { + get + { + return this._numberOfUAEmitterSystems; + } + + set + { + this._numberOfUAEmitterSystems = value; + } + } + + /// + /// Gets or sets the shaft RPM values. THIS IS WRONG. It has the wrong class in the list. + /// + [XmlElement(ElementName = "shaftRPMsList", Type = typeof(List))] + public List ShaftRPMs + { + get + { + return this._shaftRPMs; + } + } + + /// + /// Gets or sets the apaData. THIS IS WRONG. It has the worng class in the list. + /// + [XmlElement(ElementName = "apaDataList", Type = typeof(List))] + public List ApaData + { + get + { + return this._apaData; + } + } + + /// + /// Gets or sets the THIS IS WRONG. It has the wrong class in the list. + /// + [XmlElement(ElementName = "emitterSystemsList", Type = typeof(List))] + public List EmitterSystems + { + get + { + return this._emitterSystems; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public override void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._emittingEntityID.Marshal(dos); + this._eventID.Marshal(dos); + dos.WriteByte((byte)this._stateChangeIndicator); + dos.WriteByte((byte)this._pad); + dos.WriteUnsignedShort((ushort)this._passiveParameterIndex); + dos.WriteUnsignedByte((byte)this._propulsionPlantConfiguration); + dos.WriteUnsignedByte((byte)this._shaftRPMs.Count); + dos.WriteUnsignedByte((byte)this._apaData.Count); + dos.WriteUnsignedByte((byte)this._emitterSystems.Count); + + for (int idx = 0; idx < this._shaftRPMs.Count; idx++) + { + Vector3Float aVector3Float = (Vector3Float)this._shaftRPMs[idx]; + aVector3Float.Marshal(dos); + } + + for (int idx = 0; idx < this._apaData.Count; idx++) + { + Vector3Float aVector3Float = (Vector3Float)this._apaData[idx]; + aVector3Float.Marshal(dos); + } + + for (int idx = 0; idx < this._emitterSystems.Count; idx++) + { + Vector3Float aVector3Float = (Vector3Float)this._emitterSystems[idx]; + aVector3Float.Marshal(dos); + } + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._emittingEntityID.Unmarshal(dis); + this._eventID.Unmarshal(dis); + this._stateChangeIndicator = dis.ReadByte(); + this._pad = dis.ReadByte(); + this._passiveParameterIndex = dis.ReadUnsignedShort(); + this._propulsionPlantConfiguration = dis.ReadUnsignedByte(); + this._numberOfShafts = dis.ReadUnsignedByte(); + this._numberOfAPAs = dis.ReadUnsignedByte(); + this._numberOfUAEmitterSystems = dis.ReadUnsignedByte(); + for (int idx = 0; idx < this.NumberOfShafts; idx++) + { + Vector3Float anX = new Vector3Float(); + anX.Unmarshal(dis); + this._shaftRPMs.Add(anX); + }; + + for (int idx = 0; idx < this.NumberOfAPAs; idx++) + { + Vector3Float anX = new Vector3Float(); + anX.Unmarshal(dis); + this._apaData.Add(anX); + }; + + for (int idx = 0; idx < this.NumberOfUAEmitterSystems; idx++) + { + Vector3Float anX = new Vector3Float(); + anX.Unmarshal(dis); + this._emitterSystems.Add(anX); + }; + + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._emittingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._eventID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._stateChangeIndicator.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._pad.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._passiveParameterIndex.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._propulsionPlantConfiguration.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._shaftRPMs.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._apaData.Count.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._emitterSystems.Count.ToString(CultureInfo.InvariantCulture) + ""); + for (int idx = 0; idx < this._shaftRPMs.Count; idx++) + { + sb.AppendLine(""); + Vector3Float aVector3Float = (Vector3Float)this._shaftRPMs[idx]; + aVector3Float.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._apaData.Count; idx++) + { + sb.AppendLine(""); + Vector3Float aVector3Float = (Vector3Float)this._apaData[idx]; + aVector3Float.Reflection(sb); + sb.AppendLine(""); + } + + for (int idx = 0; idx < this._emitterSystems.Count; idx++) + { + sb.AppendLine(""); + Vector3Float aVector3Float = (Vector3Float)this._emitterSystems[idx]; + aVector3Float.Reflection(sb); + sb.AppendLine(""); + } + + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as UaPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(UaPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._emittingEntityID.Equals(obj._emittingEntityID)) + { + ivarsEqual = false; + } + + if (!this._eventID.Equals(obj._eventID)) + { + ivarsEqual = false; + } + + if (this._stateChangeIndicator != obj._stateChangeIndicator) + { + ivarsEqual = false; + } + + if (this._pad != obj._pad) + { + ivarsEqual = false; + } + + if (this._passiveParameterIndex != obj._passiveParameterIndex) + { + ivarsEqual = false; + } + + if (this._propulsionPlantConfiguration != obj._propulsionPlantConfiguration) + { + ivarsEqual = false; + } + + if (this._numberOfShafts != obj._numberOfShafts) + { + ivarsEqual = false; + } + + if (this._numberOfAPAs != obj._numberOfAPAs) + { + ivarsEqual = false; + } + + if (this._numberOfUAEmitterSystems != obj._numberOfUAEmitterSystems) + { + ivarsEqual = false; + } + + if (this._shaftRPMs.Count != obj._shaftRPMs.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._shaftRPMs.Count; idx++) + { + if (!this._shaftRPMs[idx].Equals(obj._shaftRPMs[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._apaData.Count != obj._apaData.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._apaData.Count; idx++) + { + if (!this._apaData[idx].Equals(obj._apaData[idx])) + { + ivarsEqual = false; + } + } + } + + if (this._emitterSystems.Count != obj._emitterSystems.Count) + { + ivarsEqual = false; + } + + if (ivarsEqual) + { + for (int idx = 0; idx < this._emitterSystems.Count; idx++) + { + if (!this._emitterSystems[idx].Equals(obj._emitterSystems[idx])) + { + ivarsEqual = false; + } + } + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._emittingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._eventID.GetHashCode(); + result = GenerateHash(result) ^ this._stateChangeIndicator.GetHashCode(); + result = GenerateHash(result) ^ this._pad.GetHashCode(); + result = GenerateHash(result) ^ this._passiveParameterIndex.GetHashCode(); + result = GenerateHash(result) ^ this._propulsionPlantConfiguration.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfShafts.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfAPAs.GetHashCode(); + result = GenerateHash(result) ^ this._numberOfUAEmitterSystems.GetHashCode(); + + if (this._shaftRPMs.Count > 0) + { + for (int idx = 0; idx < this._shaftRPMs.Count; idx++) + { + result = GenerateHash(result) ^ this._shaftRPMs[idx].GetHashCode(); + } + } + + if (this._apaData.Count > 0) + { + for (int idx = 0; idx < this._apaData.Count; idx++) + { + result = GenerateHash(result) ^ this._apaData[idx].GetHashCode(); + } + } + + if (this._emitterSystems.Count > 0) + { + for (int idx = 0; idx < this._emitterSystems.Count; idx++) + { + result = GenerateHash(result) ^ this._emitterSystems[idx].GetHashCode(); + } + } + + return result; + } + } +} diff --git a/Libs/CSharpDis7/UnattachedIdentifier.cs b/Libs/CSharpDis7/UnattachedIdentifier.cs new file mode 100644 index 0000000..7c6c000 --- /dev/null +++ b/Libs/CSharpDis7/UnattachedIdentifier.cs @@ -0,0 +1,312 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// The unique designation of one or more unattached radios in an event or exercise Section 6.2.91 + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(SimulationAddress))] + public partial class UnattachedIdentifier + { + /// + /// See 6.2.79 + /// + private SimulationAddress _simulationAddress = new SimulationAddress(); + + /// + /// Reference number + /// + private ushort _referenceNumber; + + /// + /// Initializes a new instance of the class. + /// + public UnattachedIdentifier() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(UnattachedIdentifier left, UnattachedIdentifier right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(UnattachedIdentifier left, UnattachedIdentifier right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += this._simulationAddress.GetMarshalledSize(); // this._simulationAddress + marshalSize += 2; // this._referenceNumber + return marshalSize; + } + + /// + /// Gets or sets the See 6.2.79 + /// + [XmlElement(Type = typeof(SimulationAddress), ElementName = "simulationAddress")] + public SimulationAddress SimulationAddress + { + get + { + return this._simulationAddress; + } + + set + { + this._simulationAddress = value; + } + } + + /// + /// Gets or sets the Reference number + /// + [XmlElement(Type = typeof(ushort), ElementName = "referenceNumber")] + public ushort ReferenceNumber + { + get + { + return this._referenceNumber; + } + + set + { + this._referenceNumber = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + this._simulationAddress.Marshal(dos); + dos.WriteUnsignedShort((ushort)this._referenceNumber); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._simulationAddress.Unmarshal(dis); + this._referenceNumber = dis.ReadUnsignedShort(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine(""); + this._simulationAddress.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine("" + this._referenceNumber.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as UnattachedIdentifier; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(UnattachedIdentifier obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (!this._simulationAddress.Equals(obj._simulationAddress)) + { + ivarsEqual = false; + } + + if (this._referenceNumber != obj._referenceNumber) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._simulationAddress.GetHashCode(); + result = GenerateHash(result) ^ this._referenceNumber.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/UnsignedDISInteger.cs b/Libs/CSharpDis7/UnsignedDISInteger.cs new file mode 100644 index 0000000..a09f68f --- /dev/null +++ b/Libs/CSharpDis7/UnsignedDISInteger.cs @@ -0,0 +1,277 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// container class not in specification + /// + [Serializable] + [XmlRoot] + public partial class UnsignedDISInteger + { + /// + /// unsigned integer + /// + private uint _val; + + /// + /// Initializes a new instance of the class. + /// + public UnsignedDISInteger() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(UnsignedDISInteger left, UnsignedDISInteger right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(UnsignedDISInteger left, UnsignedDISInteger right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._val + return marshalSize; + } + + /// + /// Gets or sets the unsigned integer + /// + [XmlElement(Type = typeof(uint), ElementName = "val")] + public uint Val + { + get + { + return this._val; + } + + set + { + this._val = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._val); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._val = dis.ReadUnsignedInt(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._val.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as UnsignedDISInteger; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(UnsignedDISInteger obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._val != obj._val) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._val.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/VariableDatum.cs b/Libs/CSharpDis7/VariableDatum.cs new file mode 100644 index 0000000..0b26932 --- /dev/null +++ b/Libs/CSharpDis7/VariableDatum.cs @@ -0,0 +1,373 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// the variable datum type, the datum length, and the value for that variable datum type. NOT COMPLETE. Section 6.2.92 + /// + [Serializable] + [XmlRoot] + public partial class VariableDatum + { + /// + /// Type of variable datum to be transmitted. 32 bit enumeration defined in EBV + /// + private uint _variableDatumID; + + /// + /// Length, in bits, of the variable datum. + /// + private uint _variableDatumLength; + + /// + /// Variable datum. This can be any number of bits long, depending on the datum. + /// + private uint _variableDatumBits; + + /// + /// padding to put the record on a 64 bit boundary + /// + private uint _padding; + + /// + /// Initializes a new instance of the class. + /// + public VariableDatum() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(VariableDatum left, VariableDatum right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(VariableDatum left, VariableDatum right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._variableDatumID + marshalSize += 4; // this._variableDatumLength + marshalSize += 4; // this._variableDatumBits + marshalSize += 4; // this._padding + return marshalSize; + } + + /// + /// Gets or sets the Type of variable datum to be transmitted. 32 bit enumeration defined in EBV + /// + [XmlElement(Type = typeof(uint), ElementName = "variableDatumID")] + public uint VariableDatumID + { + get + { + return this._variableDatumID; + } + + set + { + this._variableDatumID = value; + } + } + + /// + /// Gets or sets the Length, in bits, of the variable datum. + /// + [XmlElement(Type = typeof(uint), ElementName = "variableDatumLength")] + public uint VariableDatumLength + { + get + { + return this._variableDatumLength; + } + + set + { + this._variableDatumLength = value; + } + } + + /// + /// Gets or sets the Variable datum. This can be any number of bits long, depending on the datum. + /// + [XmlElement(Type = typeof(uint), ElementName = "variableDatumBits")] + public uint VariableDatumBits + { + get + { + return this._variableDatumBits; + } + + set + { + this._variableDatumBits = value; + } + } + + /// + /// Gets or sets the padding to put the record on a 64 bit boundary + /// + [XmlElement(Type = typeof(uint), ElementName = "padding")] + public uint Padding + { + get + { + return this._padding; + } + + set + { + this._padding = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._variableDatumID); + dos.WriteUnsignedInt((uint)this._variableDatumLength); + dos.WriteUnsignedInt((uint)this._variableDatumBits); + dos.WriteUnsignedInt((uint)this._padding); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._variableDatumID = dis.ReadUnsignedInt(); + this._variableDatumLength = dis.ReadUnsignedInt(); + this._variableDatumBits = dis.ReadUnsignedInt(); + this._padding = dis.ReadUnsignedInt(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._variableDatumID.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableDatumLength.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableDatumBits.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._padding.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as VariableDatum; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(VariableDatum obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._variableDatumID != obj._variableDatumID) + { + ivarsEqual = false; + } + + if (this._variableDatumLength != obj._variableDatumLength) + { + ivarsEqual = false; + } + + if (this._variableDatumBits != obj._variableDatumBits) + { + ivarsEqual = false; + } + + if (this._padding != obj._padding) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._variableDatumID.GetHashCode(); + result = GenerateHash(result) ^ this._variableDatumLength.GetHashCode(); + result = GenerateHash(result) ^ this._variableDatumBits.GetHashCode(); + result = GenerateHash(result) ^ this._padding.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/VariableParameter.cs b/Libs/CSharpDis7/VariableParameter.cs new file mode 100644 index 0000000..b589e23 --- /dev/null +++ b/Libs/CSharpDis7/VariableParameter.cs @@ -0,0 +1,405 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// specification of additional information associated with an entity or detonation, not otherwise accounted for in a PDU 6.2.93.1 + /// + [Serializable] + [XmlRoot] + public partial class VariableParameter + { + /// + /// the identification of the Variable Parameter record. Enumeration from EBV + /// + private byte _recordType; + + /// + /// Variable parameter data fields. Two doubles minus one byte + /// + private double _variableParameterFields1; + + /// + /// Variable parameter data fields. + /// + private uint _variableParameterFields2; + + /// + /// Variable parameter data fields. + /// + private ushort _variableParameterFields3; + + /// + /// Variable parameter data fields. + /// + private byte _variableParameterFields4; + + /// + /// Initializes a new instance of the class. + /// + public VariableParameter() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(VariableParameter left, VariableParameter right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(VariableParameter left, VariableParameter right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 1; // this._recordType + marshalSize += 8; // this._variableParameterFields1 + marshalSize += 4; // this._variableParameterFields2 + marshalSize += 2; // this._variableParameterFields3 + marshalSize += 1; // this._variableParameterFields4 + return marshalSize; + } + + /// + /// Gets or sets the the identification of the Variable Parameter record. Enumeration from EBV + /// + [XmlElement(Type = typeof(byte), ElementName = "recordType")] + public byte RecordType + { + get + { + return this._recordType; + } + + set + { + this._recordType = value; + } + } + + /// + /// Gets or sets the Variable parameter data fields. Two doubles minus one byte + /// + [XmlElement(Type = typeof(double), ElementName = "variableParameterFields1")] + public double VariableParameterFields1 + { + get + { + return this._variableParameterFields1; + } + + set + { + this._variableParameterFields1 = value; + } + } + + /// + /// Gets or sets the Variable parameter data fields. + /// + [XmlElement(Type = typeof(uint), ElementName = "variableParameterFields2")] + public uint VariableParameterFields2 + { + get + { + return this._variableParameterFields2; + } + + set + { + this._variableParameterFields2 = value; + } + } + + /// + /// Gets or sets the Variable parameter data fields. + /// + [XmlElement(Type = typeof(ushort), ElementName = "variableParameterFields3")] + public ushort VariableParameterFields3 + { + get + { + return this._variableParameterFields3; + } + + set + { + this._variableParameterFields3 = value; + } + } + + /// + /// Gets or sets the Variable parameter data fields. + /// + [XmlElement(Type = typeof(byte), ElementName = "variableParameterFields4")] + public byte VariableParameterFields4 + { + get + { + return this._variableParameterFields4; + } + + set + { + this._variableParameterFields4 = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedByte((byte)this._recordType); + dos.WriteDouble((double)this._variableParameterFields1); + dos.WriteUnsignedInt((uint)this._variableParameterFields2); + dos.WriteUnsignedShort((ushort)this._variableParameterFields3); + dos.WriteUnsignedByte((byte)this._variableParameterFields4); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._recordType = dis.ReadUnsignedByte(); + this._variableParameterFields1 = dis.ReadDouble(); + this._variableParameterFields2 = dis.ReadUnsignedInt(); + this._variableParameterFields3 = dis.ReadUnsignedShort(); + this._variableParameterFields4 = dis.ReadUnsignedByte(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._recordType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableParameterFields1.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableParameterFields2.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableParameterFields3.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._variableParameterFields4.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as VariableParameter; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(VariableParameter obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._recordType != obj._recordType) + { + ivarsEqual = false; + } + + if (this._variableParameterFields1 != obj._variableParameterFields1) + { + ivarsEqual = false; + } + + if (this._variableParameterFields2 != obj._variableParameterFields2) + { + ivarsEqual = false; + } + + if (this._variableParameterFields3 != obj._variableParameterFields3) + { + ivarsEqual = false; + } + + if (this._variableParameterFields4 != obj._variableParameterFields4) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._recordType.GetHashCode(); + result = GenerateHash(result) ^ this._variableParameterFields1.GetHashCode(); + result = GenerateHash(result) ^ this._variableParameterFields2.GetHashCode(); + result = GenerateHash(result) ^ this._variableParameterFields3.GetHashCode(); + result = GenerateHash(result) ^ this._variableParameterFields4.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/VariableTransmitterParameters.cs b/Libs/CSharpDis7/VariableTransmitterParameters.cs new file mode 100644 index 0000000..26f8411 --- /dev/null +++ b/Libs/CSharpDis7/VariableTransmitterParameters.cs @@ -0,0 +1,309 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Relates to radios. NOT COMPLETE. Section 6.2.94 + /// + [Serializable] + [XmlRoot] + public partial class VariableTransmitterParameters + { + /// + /// Type of VTP. Enumeration from EBV + /// + private uint _recordType = 4; + + /// + /// Length, in bytes + /// + private uint _recordLength = 4; + + /// + /// Initializes a new instance of the class. + /// + public VariableTransmitterParameters() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(VariableTransmitterParameters left, VariableTransmitterParameters right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(VariableTransmitterParameters left, VariableTransmitterParameters right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._recordType + marshalSize += 4; // this._recordLength + return marshalSize; + } + + /// + /// Gets or sets the Type of VTP. Enumeration from EBV + /// + [XmlElement(Type = typeof(uint), ElementName = "recordType")] + public uint RecordType + { + get + { + return this._recordType; + } + + set + { + this._recordType = value; + } + } + + /// + /// Gets or sets the Length, in bytes + /// + [XmlElement(Type = typeof(uint), ElementName = "recordLength")] + public uint RecordLength + { + get + { + return this._recordLength; + } + + set + { + this._recordLength = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteUnsignedInt((uint)this._recordType); + dos.WriteUnsignedInt((uint)this._recordLength); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._recordType = dis.ReadUnsignedInt(); + this._recordLength = dis.ReadUnsignedInt(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._recordType.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._recordLength.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as VariableTransmitterParameters; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(VariableTransmitterParameters obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._recordType != obj._recordType) + { + ivarsEqual = false; + } + + if (this._recordLength != obj._recordLength) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._recordType.GetHashCode(); + result = GenerateHash(result) ^ this._recordLength.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/Vector2Float.cs b/Libs/CSharpDis7/Vector2Float.cs new file mode 100644 index 0000000..2184d38 --- /dev/null +++ b/Libs/CSharpDis7/Vector2Float.cs @@ -0,0 +1,309 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Two floating point values, x, y + /// + [Serializable] + [XmlRoot] + public partial class Vector2Float + { + /// + /// X value + /// + private float _x; + + /// + /// y Value + /// + private float _y; + + /// + /// Initializes a new instance of the class. + /// + public Vector2Float() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(Vector2Float left, Vector2Float right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(Vector2Float left, Vector2Float right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._x + marshalSize += 4; // this._y + return marshalSize; + } + + /// + /// Gets or sets the X value + /// + [XmlElement(Type = typeof(float), ElementName = "x")] + public float X + { + get + { + return this._x; + } + + set + { + this._x = value; + } + } + + /// + /// Gets or sets the y Value + /// + [XmlElement(Type = typeof(float), ElementName = "y")] + public float Y + { + get + { + return this._y; + } + + set + { + this._y = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteFloat((float)this._x); + dos.WriteFloat((float)this._y); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._x = dis.ReadFloat(); + this._y = dis.ReadFloat(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._x.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._y.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as Vector2Float; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(Vector2Float obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._x != obj._x) + { + ivarsEqual = false; + } + + if (this._y != obj._y) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._x.GetHashCode(); + result = GenerateHash(result) ^ this._y.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/Vector3Double.cs b/Libs/CSharpDis7/Vector3Double.cs new file mode 100644 index 0000000..8784efa --- /dev/null +++ b/Libs/CSharpDis7/Vector3Double.cs @@ -0,0 +1,341 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Three double precision floating point values, x, y, and z. Used for world coordinates Section 6.2.97. + /// + [Serializable] + [XmlRoot] + public partial class Vector3Double + { + /// + /// X value + /// + private double _x; + + /// + /// y Value + /// + private double _y; + + /// + /// Z value + /// + private double _z; + + /// + /// Initializes a new instance of the class. + /// + public Vector3Double() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(Vector3Double left, Vector3Double right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(Vector3Double left, Vector3Double right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 8; // this._x + marshalSize += 8; // this._y + marshalSize += 8; // this._z + return marshalSize; + } + + /// + /// Gets or sets the X value + /// + [XmlElement(Type = typeof(double), ElementName = "x")] + public double X + { + get + { + return this._x; + } + + set + { + this._x = value; + } + } + + /// + /// Gets or sets the y Value + /// + [XmlElement(Type = typeof(double), ElementName = "y")] + public double Y + { + get + { + return this._y; + } + + set + { + this._y = value; + } + } + + /// + /// Gets or sets the Z value + /// + [XmlElement(Type = typeof(double), ElementName = "z")] + public double Z + { + get + { + return this._z; + } + + set + { + this._z = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteDouble((double)this._x); + dos.WriteDouble((double)this._y); + dos.WriteDouble((double)this._z); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._x = dis.ReadDouble(); + this._y = dis.ReadDouble(); + this._z = dis.ReadDouble(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._x.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._y.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._z.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as Vector3Double; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(Vector3Double obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._x != obj._x) + { + ivarsEqual = false; + } + + if (this._y != obj._y) + { + ivarsEqual = false; + } + + if (this._z != obj._z) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._x.GetHashCode(); + result = GenerateHash(result) ^ this._y.GetHashCode(); + result = GenerateHash(result) ^ this._z.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/Vector3Float.cs b/Libs/CSharpDis7/Vector3Float.cs new file mode 100644 index 0000000..82689bc --- /dev/null +++ b/Libs/CSharpDis7/Vector3Float.cs @@ -0,0 +1,341 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Three floating point values, x, y, and z. Section 6.2.95 + /// + [Serializable] + [XmlRoot] + public partial class Vector3Float + { + /// + /// X value + /// + private float _x; + + /// + /// y Value + /// + private float _y; + + /// + /// Z value + /// + private float _z; + + /// + /// Initializes a new instance of the class. + /// + public Vector3Float() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(Vector3Float left, Vector3Float right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(Vector3Float left, Vector3Float right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._x + marshalSize += 4; // this._y + marshalSize += 4; // this._z + return marshalSize; + } + + /// + /// Gets or sets the X value + /// + [XmlElement(Type = typeof(float), ElementName = "x")] + public float X + { + get + { + return this._x; + } + + set + { + this._x = value; + } + } + + /// + /// Gets or sets the y Value + /// + [XmlElement(Type = typeof(float), ElementName = "y")] + public float Y + { + get + { + return this._y; + } + + set + { + this._y = value; + } + } + + /// + /// Gets or sets the Z value + /// + [XmlElement(Type = typeof(float), ElementName = "z")] + public float Z + { + get + { + return this._z; + } + + set + { + this._z = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteFloat((float)this._x); + dos.WriteFloat((float)this._y); + dos.WriteFloat((float)this._z); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._x = dis.ReadFloat(); + this._y = dis.ReadFloat(); + this._z = dis.ReadFloat(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._x.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._y.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._z.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as Vector3Float; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(Vector3Float obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._x != obj._x) + { + ivarsEqual = false; + } + + if (this._y != obj._y) + { + ivarsEqual = false; + } + + if (this._z != obj._z) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._x.GetHashCode(); + result = GenerateHash(result) ^ this._y.GetHashCode(); + result = GenerateHash(result) ^ this._z.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/VectoringNozzleSystem.cs b/Libs/CSharpDis7/VectoringNozzleSystem.cs new file mode 100644 index 0000000..5bd7e4d --- /dev/null +++ b/Libs/CSharpDis7/VectoringNozzleSystem.cs @@ -0,0 +1,309 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// Operational data for describing the vectoring nozzle systems Section 6.2.96 + /// + [Serializable] + [XmlRoot] + public partial class VectoringNozzleSystem + { + /// + /// In degrees + /// + private float _horizontalDeflectionAngle; + + /// + /// In degrees + /// + private float _verticalDeflectionAngle; + + /// + /// Initializes a new instance of the class. + /// + public VectoringNozzleSystem() + { + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(VectoringNozzleSystem left, VectoringNozzleSystem right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(VectoringNozzleSystem left, VectoringNozzleSystem right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public virtual int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize += 4; // this._horizontalDeflectionAngle + marshalSize += 4; // this._verticalDeflectionAngle + return marshalSize; + } + + /// + /// Gets or sets the In degrees + /// + [XmlElement(Type = typeof(float), ElementName = "horizontalDeflectionAngle")] + public float HorizontalDeflectionAngle + { + get + { + return this._horizontalDeflectionAngle; + } + + set + { + this._horizontalDeflectionAngle = value; + } + } + + /// + /// Gets or sets the In degrees + /// + [XmlElement(Type = typeof(float), ElementName = "verticalDeflectionAngle")] + public float VerticalDeflectionAngle + { + get + { + return this._verticalDeflectionAngle; + } + + set + { + this._verticalDeflectionAngle = value; + } + } + + /// + /// Occurs when exception when processing PDU is caught. + /// + public event Action Exception; + + /// + /// Called when exception occurs (raises the event). + /// + /// The exception. + protected void OnException(Exception e) + { + if (this.Exception != null) + { + this.Exception(e); + } + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Marshal(DataOutputStream dos) + { + if (dos != null) + { + try + { + dos.WriteFloat((float)this._horizontalDeflectionAngle); + dos.WriteFloat((float)this._verticalDeflectionAngle); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Unmarshal(DataInputStream dis) + { + if (dis != null) + { + try + { + this._horizontalDeflectionAngle = dis.ReadFloat(); + this._verticalDeflectionAngle = dis.ReadFloat(); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public virtual void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + try + { + sb.AppendLine("" + this._horizontalDeflectionAngle.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine("" + this._verticalDeflectionAngle.ToString(CultureInfo.InvariantCulture) + ""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as VectoringNozzleSystem; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(VectoringNozzleSystem obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + if (this._horizontalDeflectionAngle != obj._horizontalDeflectionAngle) + { + ivarsEqual = false; + } + + if (this._verticalDeflectionAngle != obj._verticalDeflectionAngle) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ this._horizontalDeflectionAngle.GetHashCode(); + result = GenerateHash(result) ^ this._verticalDeflectionAngle.GetHashCode(); + + return result; + } + } +} diff --git a/Libs/CSharpDis7/WarfareFamilyPdu.cs b/Libs/CSharpDis7/WarfareFamilyPdu.cs new file mode 100644 index 0000000..86a8974 --- /dev/null +++ b/Libs/CSharpDis7/WarfareFamilyPdu.cs @@ -0,0 +1,318 @@ +// Copyright (c) 1995-2009 held by the author(s). All rights reserved. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the names of the Naval Postgraduate School (NPS) +// Modeling Virtual Environments and Simulation (MOVES) Institute +// (http://www.nps.edu and http://www.MovesInstitute.org) +// nor the names of its contributors may be used to endorse or +// promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Copyright (c) 2008, MOVES Institute, Naval Postgraduate School. All +// rights reserved. This work is licensed under the BSD open source license, +// available at https://www.movesinstitute.org/licenses/bsd.html +// +// Author: DMcG +// Modified for use with C#: +// - Peter Smith (Naval Air Warfare Center - Training Systems Division) +// - Zvonko Bostjancic (Blubit d.o.o. - zvonko.bostjancic@blubit.si) + +using System; +using System.Collections.Generic; +using System.Text; +using System.Diagnostics; +using System.Xml.Serialization; +using DISnet.DataStreamUtilities; + +namespace DISnet +{ + /// + /// abstract superclass for fire and detonation pdus that have shared information. Section 7.3 COMPLETE + /// + [Serializable] + [XmlRoot] + [XmlInclude(typeof(EntityID))] + public partial class WarfareFamilyPdu : Pdu, IEquatable + { + /// + /// ID of the entity that shot + /// + private EntityID _firingEntityID = new EntityID(); + + /// + /// ID of the entity that is being shot at + /// + private EntityID _targetEntityID = new EntityID(); + + /// + /// Initializes a new instance of the class. + /// + public WarfareFamilyPdu() + { + ProtocolFamily = (byte)2; + } + + /// + /// Implements the operator !=. + /// + /// The left operand. + /// The right operand. + /// + /// true if operands are not equal; otherwise, false. + /// + public static bool operator !=(WarfareFamilyPdu left, WarfareFamilyPdu right) + { + return !(left == right); + } + + /// + /// Implements the operator ==. + /// + /// The left operand. + /// The right operand. + /// + /// true if both operands are equal; otherwise, false. + /// + public static bool operator ==(WarfareFamilyPdu left, WarfareFamilyPdu right) + { + if (object.ReferenceEquals(left, right)) + { + return true; + } + + if (((object)left == null) || ((object)right == null)) + { + return false; + } + + return left.Equals(right); + } + + public override int GetMarshalledSize() + { + int marshalSize = 0; + + marshalSize = base.GetMarshalledSize(); + marshalSize += this._firingEntityID.GetMarshalledSize(); // this._firingEntityID + marshalSize += this._targetEntityID.GetMarshalledSize(); // this._targetEntityID + return marshalSize; + } + + /// + /// Gets or sets the ID of the entity that shot + /// + [XmlElement(Type = typeof(EntityID), ElementName = "firingEntityID")] + public EntityID FiringEntityID + { + get + { + return this._firingEntityID; + } + + set + { + this._firingEntityID = value; + } + } + + /// + /// Gets or sets the ID of the entity that is being shot at + /// + [XmlElement(Type = typeof(EntityID), ElementName = "targetEntityID")] + public EntityID TargetEntityID + { + get + { + return this._targetEntityID; + } + + set + { + this._targetEntityID = value; + } + } + + /// + /// Automatically sets the length of the marshalled data, then calls the marshal method. + /// + /// The DataOutputStream instance to which the PDU is marshaled. + public virtual void MarshalAutoLengthSet(DataOutputStream dos) + { + // Set the length prior to marshalling data + this.Length = (ushort)this.GetMarshalledSize(); + this.Marshal(dos); + } + + /// + /// Marshal the data to the DataOutputStream. Note: Length needs to be set before calling this method + /// + /// The DataOutputStream instance to which the PDU is marshaled. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Marshal(DataOutputStream dos) + { + base.Marshal(dos); + if (dos != null) + { + try + { + this._firingEntityID.Marshal(dos); + this._targetEntityID.Marshal(dos); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Unmarshal(DataInputStream dis) + { + base.Unmarshal(dis); + + if (dis != null) + { + try + { + this._firingEntityID.Unmarshal(dis); + this._targetEntityID.Unmarshal(dis); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + } + + /// + /// This allows for a quick display of PDU data. The current format is unacceptable and only used for debugging. + /// This will be modified in the future to provide a better display. Usage: + /// pdu.GetType().InvokeMember("Reflection", System.Reflection.BindingFlags.InvokeMethod, null, pdu, new object[] { sb }); + /// where pdu is an object representing a single pdu and sb is a StringBuilder. + /// Note: The supplied Utilities folder contains a method called 'DecodePDU' in the PDUProcessor Class that provides this functionality + /// + /// The StringBuilder instance to which the PDU is written to. + [SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Due to ignoring errors.")] + public override void Reflection(StringBuilder sb) + { + sb.AppendLine(""); + base.Reflection(sb); + try + { + sb.AppendLine(""); + this._firingEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + this._targetEntityID.Reflection(sb); + sb.AppendLine(""); + sb.AppendLine(""); + } + catch (Exception e) + { +#if DEBUG + Trace.WriteLine(e); + Trace.Flush(); +#endif + this.OnException(e); + } + } + + /// + /// Determines whether the specified is equal to this instance. + /// + /// The to compare with this instance. + /// + /// true if the specified is equal to this instance; otherwise, false. + /// + public override bool Equals(object obj) + { + return this == obj as WarfareFamilyPdu; + } + + /// + /// Compares for reference AND value equality. + /// + /// The object to compare with this instance. + /// + /// true if both operands are equal; otherwise, false. + /// + public bool Equals(WarfareFamilyPdu obj) + { + bool ivarsEqual = true; + + if (obj.GetType() != this.GetType()) + { + return false; + } + + ivarsEqual = base.Equals(obj); + + if (!this._firingEntityID.Equals(obj._firingEntityID)) + { + ivarsEqual = false; + } + + if (!this._targetEntityID.Equals(obj._targetEntityID)) + { + ivarsEqual = false; + } + + return ivarsEqual; + } + + /// + /// HashCode Helper + /// + /// The hash value. + /// The new hash value. + private static int GenerateHash(int hash) + { + hash = hash << (5 + hash); + return hash; + } + + /// + /// Gets the hash code. + /// + /// The hash code. + public override int GetHashCode() + { + int result = 0; + + result = GenerateHash(result) ^ base.GetHashCode(); + + result = GenerateHash(result) ^ this._firingEntityID.GetHashCode(); + result = GenerateHash(result) ^ this._targetEntityID.GetHashCode(); + + return result; + } + } +} From 15549601c9fe33af4b22be436f82aaa72ed1859d Mon Sep 17 00:00:00 2001 From: Nicolas Baudrey Date: Sun, 10 Oct 2021 21:17:52 +0200 Subject: [PATCH 16/25] [QLTY] Clean directories --- .gitignore | 1 + .vs/OpenDis/DesignTimeBuild/.dtbcache.v2 | Bin 84205 -> 0 bytes 2 files changed, 1 insertion(+) delete mode 100644 .vs/OpenDis/DesignTimeBuild/.dtbcache.v2 diff --git a/.gitignore b/.gitignore index aab5d79..4b8325c 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ v16/ Release/ *.cache *.i.cs +.vs/ diff --git a/.vs/OpenDis/DesignTimeBuild/.dtbcache.v2 b/.vs/OpenDis/DesignTimeBuild/.dtbcache.v2 deleted file mode 100644 index 67a8723c82645f90697b0d236a68e4f4a091bd8e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 84205 zcmd6Q349!7{r)WXePg)_C8b<#bEi#;71A7S=oPX_%dt=yA|mpC-fL&xnRkkvN zQa*2Gim@d~p~|E6l$Xua3(qykza+jE&HSiUEEog9M{OK3N#w>3mFQ=8Wm72><)PeQ z7De3Z8nfc-`!Xnd-Buwvni)){Eo1h8Rmi3`Se=D}l^#xw51>3l(YRG`kxun05=&%@ zD15P;8DC#;rN^qC!LDrHs_)F@>Jd^5r4!{dk58hgx}=ZN(#^`swj-?SMZKQ$W{DJC z%)+T}oHwhhlq#0;*5Zs+D(219yjlIF;Z!od+!`OuuD3FahZ|c)+C~Tr@) z2aotrp@wV;BOlf#GcC>a{rO}%Sxj!Q3M?N^b#(ChJBrj^yoLhHhIApG&8L#XOzP$G znxB!=ws_lurjC|YtFgVqI5998QHcvhGm|j$2`1($*AI@Q&Gk)FlQbS* zINa1SG7?WTClZOaCgZfgB#n+2idLH1A==hkn~F@{LEq1g)U}s^Q-YRyNofQ|n3vxZ zgvjEz8szn*@)<$PE7}<}eFYf6Oq@5BEX7Y3;_E3jXyY^R>%!EATEQW|3PH%73{&nt zbYF_*aEiA@>--wjR~SL)5^9NBmCY=*GFBd~E6omFiE=1GXtO@doQdYFIEEa_vn*~x zO-%>30|LcE}KDbcx5(WrRqB~nQYN4vg%KBC{ac&JDHpO%gX1|m>$1Vh7p*+A<0E>t6k-sXnZaw8 z8A*{*K69C>T6_rZ-cDk&<4)2m!R zIFe31WxZpfz-^b1B=aiHJ35<{O=7!^|Bz5h~_X`!XY0mQR)@ zpFF%8^zyZ3!Oi$-VsFftgM}?D{I_82tA@f*CE=0>Ekjx^3~qU3VamNoi{hiw3VX> z@mnqOdSBU%1f8BzUeCZfCX0no$MJTwsJ)jJ4_u4!jG4wH=s+n`#G6}IvQLsKsD44n ze|pgJ_h$2H6MfvyLZ*oczeWh}_NYN}Uk@s9JGnHK9i~&Ze8k^nrY!mjj9YwZC#!I3 z(8t$v3Va4bm6ci>IfJ421R;AW=u)IeSnnCJ4vP|1jTD4NfsX|HR?~TdTps;bx_D$s zK3hyBSp|_JK`o;eUA(g(fzL8~B&9`5&N8cBK}a9?Jgh2WJskvz0!0;(^RQJ}j!w0= z)q#&LJkp+=%u%&i@sgtpJ;l*x>TRI6e60z(_Cr*f6)Qxx^sTN%N^gH7aQg}=J!MDQ zSH&j?*#mFu6bb9Q^H@kznJJKMT@_9c`UKuysIod;JXVfmdr^%PghpYs7p~H^)+}N{ zD<4z4+6zA;2wej2nIqx*@InHM6BE&5HgAq{%Orc|e(xZ(7z@EFt+dkF{P;>Um$MQy z?Rn?$w2Gao_Ys27Bo=}u{mGn=e!!8Q{TPJAVbt%TOxnz#=p=X=M~ivOOnd9MmK20W zfxp98k<6UQq?hk7=np|inh3hIFiCqh$*wCe^Cyc^zW zYQ-lA*#qxuGYL;9S^4qGLND3ZR=t9d{^X#`4zH^$$@@i#;XlBsnn`Z@+~tM-7=*-u_ZVri(ybh9+e(QpI%I`L_89%% zHE7|RfeU<8&cw8e8?$+A$QfZ1qf!$&D%Vqj&?b~p)GuEMxJwcJF$jqRZ#!w?dd7mX z?Nq&jkUsF4bSmP2b!N#bh$SO(Cf)7v|E=Uv3mXKmwT{(Wx8%|z2+2dS^-(LoAsM&& zv)B~Mq<7nTw`UC+_*$#LSE$j#5zWTeV-F7#UhZpf{a%CIK3f?|4`Hn}+?7gV(Jzx+ z_R*>26`vYp_oaE@vuQ%YWtN$+^3EO@riGkMtHP;4A75UCVtJ6_SZ=e)Uw@@X4U+qE zBJf!=k;<|HxJr|pHPbR`(8ZSvp|oB|Y^jU;EsLr|5Yh+VTPUUJW*%;YD!m2qqa*Ru zM^)ap4#C@gDe)TYrp}5NzZKi>@pLq(eUufr?O#1i&otoMb!c&sw%_%85ON1TyN5mG zbO$@_8{_nY9G&ZSY>%A1uSN<&qri8hx`d?}A$O!YKL;Uo;A>AD@#=f9yPCCMa_x!7 zF9`VqU)}4GvA%Bw+fwLk;gG9)Cn5%+S>UUCy#lXDj*b;KTJ%55CHV$>0$vb$1>Rn} z@*Co0nU1=4~1l=k^E5BTqsPPX%k1+GZGkDhIiNgp&m%!J0xYC?% zIrA(el50JxvVzbl@O}!N6QlbT3YZMMe)}O;oYG}#c((J^F#K&odIHZivym;%9<6VOmzWKYr=e%S&Tam5wY~&jo)vE^SeKU5!_W?w0UnM7t zXcemT%sie!Xb^ngUkC{!z>cqRhR&6~zmDPPQu};fXzjhK3*UwUOULVnx4o}Mb~LPg zzAx|-dSsPQg{~~IkSFw1rv;(aH07H!(A4(R)Fg1oL1-BK_(xZV>Q7Ab1sav{Pc>E$ zItAVflCO2^yHaK{%`2De1$q2}kU#KJ=g62J&lR&cNH#Y%Uf-D-&EhTgm{3Ssi^<4A zXc%~@(+k~I;LFHlsjJEgLZ`q_jM7WnlZj^&a;1tqF=}FJ5ZX;snRJYsVhQ#7IpiQT zJS*tFx?boL+ZsE%aE4TJBpJu10d7okqMtssM}p8c@OPpW(P_U>z7v%{IucL459M9A z8ThC|3P+bwW#Y-4$(txSs_=U|TGZZ83cOca5tDteuysHh2idFDGJ?=0@G%BDI&^gs zf60sG0n7%-F^1RE(O}ADD*Q7Fg^=#UT;v!}^{PR7-xx3O*%EqsNqwb(>B7;N{n(Vk zO_ZE1slsvesl9FlzV1qul^Q0w?n?0qLiWJd4JZ;;+a+F&6of{B+gnB00$ujT>bJDF ze(xHz@Xg``ckaJvqM4YLVQAF*YY;MrQ?CcC(NfCHdpA2N_1e#=K_8!;3ce(bVSgO! z1b2;@nT#clE~=CypLY#fOhZYkh)FF|r6kE;YmnKO@`3LY9hB15uf{>BDYjXZ)nd6% zR7VIxli=-ZMUz3Zu)a`Fk69c^Wj8Wy#c!i~l&zZ8%9$k9ppnl81l~(`WdN%~N-y2(8H5HQS}`teKTf}^ zV#ORn5SoNp=W(DGUt^-F^VBa0`2$~#k2CJD0D~=$<--iQo5tfKUS@n(<(%3rL*5ytz-uR!lkR06Dkf8MyO^w<9zRF^+Dk{^Yi@AeR3f{PS4_F) zM*QZ;JM}v0P4B?Vg?!5-%LTsIBB$4O1U^?vXD*(No zjs{aM%f4Pq;HTYEAu$E#dGjw%yY=}xI!wKMd&^DW^I25N6T7on6 z4=U1mO1|8Apz#kvkKoQk5)CH3>xU)#D%TH=q*JyszIPb%`cu4fpgZKS-rsloX|r*d z?jluwi?8dF)Wg`36dN$>A777&|85Ic_9k$XYErpM^#Bo8FYcqY==l#$l*Yc!U6rnj zRE@1WF&8mMY*@0QrCctHTXYhG?3UR|IGw4aSul3ZSVi0;X<=>&moOT;)+3-<^itAU z?5o?iN%h57$G2I1mVI^mD$nA+NA=lecgW54`06~1PO#gTeRcaPA-5pp?cfVbjC*aV zD)f^~!p@AD8b1r`wOpA{bvn7Fn#R$m{(rUM?d>uy{6 zMu$aNNaD&4etYdIt5}hOmCvf@=?5IYFX9=ZT*=ax-Iz&Xsbs;JDLlH+>fxL#;V&+M zC>S_fgJ%|QtT;qSGa!Ku_2R7iAz_UqGuEQPfzGa;W4e2m3@tqd z)sLcWT_bh6RuA-a_Vj%(=!H z4U9*x%U)EsMMZwHJF@GHV#slMZ>gr{tj@?zW2`K~u+>EW!FNe?oiQAWn(`87o|IN7 zaiDc{U&&l&tPdp`@upV2Pr1$*3o|m;HOO_w#xP?N?FZ_<_X6WOBQ;$Sv*N#Dx?-!` z|H}*Kv?Z@|RWFZt({w59x>T3Pe0I1oSG)U`M}FQkMowSOdTz1}%diVGLAx@p3xZk6 zo=%NDm%j2OKWiG3+*w@9<34v9<5q4^<Z1kV+!q1RXlSLeUBj>)b3`GTFUU9Kzoskc-8o1-FT!L9=gj(~J zI4gGqMk|+A)*0tam&)|ed(X|1VU1Zt?Q|>eS~47V^{FJY_qN75<*|iP7gDunUM^&4V5?Iv6u>B>LO$E z_K0$!Myg(i$2%qIFk^JzVaKBjwMM8HoGCZb)fu7o_SBeJ`56y0Vb%E5^FZp1P>0L7 zeTEKX^1h4NLLNPN;$>+Z>fpr_q3iA-7I&y~1D?2D_mkBb@h}S(B4*l!T3Zl_H#I}G z3u=7I?Ok<7sP$Bh*=y~?uBWaWnkPOiUJyXDd<2%{GftE{x|X8P2O6(Q#(+DVGz~8KYsQsdJxD zoskGLBD{H@hWbWhkr(-dTr?_C$$fbtmwp+a`_`N~BUI}}qm=hHuBcg=33cYt6`8y!A>?;J-Wa`C z8-)B0$Q!-q{(+Efkvn$fmVl7oJ-Om_pXfh*+Io9Jq0SGwwDq5rAF^ent7g4t+SeH& ztLsF`Ke-N}pEh-!tzvb?`Juj8l&64-1<1PN-Rq1C{%=HZoxmRQYD1X{tc?hD-cZKm zeVGw%!z9iOb)7{Xa)(%|={+`^CGe%wQk=X|3z0kreTO_F;7SMA`P(6nmSv>QaoJ%T zE>XVRCtQc!9BPljWyNcHtd-o($j`!7&yTJ%LS0`f^H&wYnZf(NNPy|>lV~%a?q>|Y zlV6#paZWT2yMc6~tbPb_$lW5n2;!9BIwREez52K-hb>M+o!3j?E%FzK+N|ki(4C1J z^0aS75SH+vc9tqpA*r2nWdI-Mbs=q76z_alq)rzk)P*iAF8_g> zyzvh=X)8w`x{uEcJ83JCvSJ(R3KQoLI`x#wke7Wp(W<9KPD6jr8#PPgP`mHm7`?_J zT)R{$OgyF4Wg(%yb#&=nIsGu?1ykNA<#B~|MyT^Gu4v`if+4>K#QJpQG{BIjHI(Qo zNBD*OF2^}qkDG;1SNhOH=9no6wV=>gJjdLHJku$T(3yr5tPICPeNRhcnWmL{G%D{& zZXs{Dp;4-{JgiKHx@?)osT`FSvaw|GsmGg5L#iTHnXvpovXDD*OiOuySjaCZowz*t z7|!}x*Qs3GtZa`HWQI$lb8%)0`>==}G-D2@EMvEZ5o{GSQ_0cHqPC`H97~hU6_e@Y zS=M}GPD8d-Tr}x%JoD)KPAwC^$5!Lqt?p!DKF+$KvOofUu+t)(e3Lix0~BZC??}`jXfIZ0WdhOy@1mp7IonGsWlDqbSQo{ z&&2Y|W4jV7qx9UNL{B1F%;vE%6{q^tTkH!D#`tK&8*tSlWu|bLl$5a$8>Z35cqB1- zfYl0XgOys>wyxV6F-xhUB1xU`F-Mf@=h{p`hyYI1sxvP9KM)3Mjg)h}>Wm#R*IOtw z)yE6Q?p@iu73;E!>{PnS4=8hk=;~3%-i*rzX)~E&2a^?X zbnU!=G^Qv6Vfi=CIynICn@3GZI)oX+OQX&8G$xu%YeHi%lp zS-gGSOcwcLrHscqiK@I7*@*gF9No%do3C)>t^d z39|7OR8+phbljqq$(XdeD$`gOA}$z<dTh*3(8zg0Jvpj04J4YGuSn&Bx9Y9TtI_hB4I>;T23(w zilh8IO*k;yydos9{;EJzsvts~?PvGkIIrT8@uJl=R?4iWIjqs6hb~;pLyLG%8bP{3 z)W}E|eW4JD88HMnQxmJJ4jon1J2R5ar`_7>kkV*s93!jwpb-a^ z#Y&>5AtKd_;E z*<5elvd)qmT|g`|PAHkoNKlP5BsPn~ZC3Tz)|fc?8-4dm71l_^o86Y~YzagfnWo+f zPA?87EmpBbYt8(KiBoqFz`im?A(*QxQmLiB7-z@_yzz+MOS`W3(jJ?r_aZ8O71Dr( zGk2k`NI6j@RC2aN#}TxbAPrg@7qc2oXA5a^2y>u&Of))_C3-Uxu$-o;zPcbvGbRPs z>PL;IT0w<?&xUV8bxEt8#|polCjdvucwE7 zAW3xsN}9Xr6_r98p=^Y7*)vJ^RSA!GG~L}-(HJYNoGG(Rm|w*gy}uM+{O^`tC)p(3 zV0WncZm{V5c!^RvO_8qNOLhmM^pZ6?((@cyPpt=oHdH@RL4`?DLXu2D5v_|#ardXi z5I{rlls}DfnvS<+YtD?xs7s3dIwbMt(~5urvm;d$NAN z61%1E_p2OFzrWdUxbTaw-`{Jdlc{l$IHK)yhwJbCH~0f~_x|~K!fnen>iZv%9mA%n zgwD+~O=)U-G&V&s&6K05WW1}%t(;CLJ^*n>7)nZM3@s1O>GLRjUCR2#C7OcA17$X7 zD3|aJVU(O=;YlN^vFtsW4M_~q*v%eD5>2ggG0+p_t6fCV(9|mbkVp|{gOx!SjZSHb zAav!xA$jVI#)S03Ou5pdx?ui+mRm4&prt81m}1H+<6TW-t?Piu^4RDv!qw<~BO|nQ zYD&k_d@|9wDOtb(Ae&E6lBPndBqTPvX88&mbnejAFpg@9+Xr<}Z$gV_}S)=JzvT4G2HtiXv$`Ljj<>F;TGY-l3)z`)61*_J*E>kZ^ZbHT^4|VbZv3iqGndrPwS@ z@zKxZxXY?gSQ9*a@H(c5iF7{6dw}1@^|KxFC>@%5n|(o_v@m06kcv|D0g#SYG^9Wy^S`IA&q&?do_dX{s5vaI>hqiEyV3J%Dxn@n(9EU3^8&iDsz6 zCNwesOiemEFY45kMj8JEs3x-qH)fU0)-(}AvPsuuK(+Z(w{pJOOpO@cc}CDkF-IP#78!CC?zY|%0_Q}4g2m}evK!?fOP&X|_%B7Z+V zA#0G%5!0yj$-yqB7)iz{W41Q7XlWR)m?~+e38tx0N!2<2U|fs=ENEf!XcC{&swO`7 zoH+40M<)IOdO_IRZ%xk8hw~NjG&u*tggHn3WzK0zkMyoYp~*LJyt&(;)xyn^@Ac8Q zquF@Wqz_aiIC@fQ6t$U`pDA!LKrXQscPd=$sA4nR6Q)9?^fqcG?US{6bzXj&M7KVc zL#y-5sc`j0w$Gi&G-ay@;ih@=qRJDp)~(LVPZd!X=oNLxL)qurDm6Zr=49<$zaZ`Gf z@uhmMaH#yvQwo7MV01&=<~~D*p7fd4&4`B%d3p8O9O>lHb!urs*-f1(x>AVFdCIwm zRx0bFDap!0pqr0It<`L)7|W5isXvS4OkyU2S>Yv9e+&yNc~kCMrNO4vwlEAf&DJ}0 zIVx$^M9W1JUH;}|TrJ@=({P%%Je(F9PRo{u(@Mi>-STkSXgFP49?k+9PE-wN>V>^| ziwk?Rudq+O#5D&{YPDgoQoCx(rMB5qYT4XrK8v@}*}PMFYYC5+-r&OHr8v0ocxetU zJYK5x;Z42vJNcn2-BUNjEn84FTLLJX+AucLqPBR-rdrddo~BMXTV_$6aJI~%I^k@Y zMRmg2GK=bj!^)he<(hh#Yu$n}*BU^X(}uyy+`=i_!&axv(VkB&57r!GORX`oPFgLZ zw$&Qrg3ap|wrxSlXbYfZXv1LnH1!s{%_$iJ154!OJWYq_q@`;pld$p|(XY;T#`(%S zY)L3$Q7u+Yu*Kk&u=~K=L<2pora%+exr4zz?Fl2?4Hk<9yAS-~Pi{UnLW@Nnc+Csx z`JBRvTI3Yc`K78UDV-Ns{n!*$#1tzwF_rk3fF|YSd8|=28aJ`YqOx=1gj&?39Vo2f zrz0Z1lmxj;S7q~U7M(Q(IbOh)8##!aw9dymllgcaZ#;T3qj-_npWVoZSCft-WBk5% zDl2VvX)>zw51L`Q=NT#FF_Y;T6Kj*w<|sA~(ftf;vjQ7Fwom@Bs6ur8le=I}I>3&} z%IAJ+(z%Bic1b1U*c)i&J!v|HN3pM?+sYJBA=yiV)p@)&ph-KqmaHgg3Q^0X=`(0% z)_WvXi;bAMbkBoS-p$8wvo;nl&=vMn&dqp`t|q|sH%O+heiMq? zTPlc&Lp3=kd}syTZ|Ov*memQLTq#Pc^RPPhocLjEZcG+(bO(=#-M&&=wXZc{2y}`C zYxtdKH$&-uEGj5Q<6{<|irNgN`^Ux$YP4#ppHO7j>0&mXP0?Yyztm6oC{_`eu58*2 zU3mi0xhai3nJ~^M+EG`Ws`>LjDc%57*7(ZlH`NY_=bSZ*u}-;Yn;+CDnpJgfe}bo$ zCo^oVnzo|oqLK5SGzZj4=m}zB=7&C^O$BW<&P+6Y?gNUQ^2a1rVll@`aDO>*PoJMm zJ@GucWkqM&qJEM{(f`2Ou2q;^56A{_GO^gZU%V@p zCFuPcHF$N{=#-S^Rz-AFYI#0~>tgjb4SA1U47BDmPr?vqDV+XQE&^j zUzNpL@Hk9?=%Y+h0)5Y{;YY+!@g^yON}J|Rfl1Vgy4x}ukFHbXN(NR=N9cX&?zGeO zy_AQP)@};w3@xuxx+Y16A)U>j@l}-&Eg{BYbf>nJpdG%-9A4GZ=6wQN(+hlgQ`OQI z>ns*c4B1!=%&u20J(!1a9dXf_!lE`TB4rZ|RkKo#Ud)_1Oc$CadD~H49A3>}SL0S+ z)d2|0z!=hmpH)IFj%?-m@ZOuI&UPuf(FU7YVwlY<6w&(9?=%;@!ztYpSo@u%s~Gqy z4f>SV8u_21^A+lL9x5$;*4rU;o^>s+r!5oPB-)ut(6LA+!M@Sw)frM(6H%``@7@2} zJ%n*G)w4YY0Siq@Mt=_p6TqhGWuASTG*T5 z?ewqo7&ZN){!KAe^j$Z#;IgA#IA5i67>QL7eHfe}l}wol3ppY?aJ}?k6-*Mjhj89X zs+YGiBS!PU+Z~(a5wuqp?dIsFUaJ)co;kAHF|{J(+wxH*NvBpM29m?W*~}7DJH9H@ z+t<=7O=laslg0QLQXN${ZoxEW%(Xa&g(lpps+lRaKEe!D!maFwq!p3&;Felw3(*bd zOZ{nh%eN>zW}TeCygk;6Ah_R?okH#wjy}tmWU1w+vMDRpS=xl+mmfz}#D)WL_6eW( zQtPnu2)h^^qyHq1F5qXSaK1Vj>i8tY@i-y_INg)99D8mPReu8lH2+ zkd#eT(Dw-2`XIS#lkDN5mq6_Xot>dA1*@qp(bR5<=UHB(Wi)CJ!$V~=ZFt*MiGwDf zTE6)cl88nXXBE1SRg>|kRnGrZ7Y>)q(|3UxD@9|Ol+P|yae6QVnp|^B)oo#`AWpbL zr$L+<1dG{;vzC&@5^DoH>2htym&%~di}+=pI7~Gx^?mYG!}80ttQI}H%skG_%J+}q zZBBG7Il}h+sg33oB|;$^76mT={ra)5(v#*jNi~#7^K5nJFU>)9r0mzRFN4!VqwJ@8Be){o6YzmK#V^mKMmOG2pKUVkX!;|GOd$>|0(aRcS2bR)iJefvAi1cKgfXQ;W zYB;#{B#S8$CnTMPstACZy3#x&n^&_@ZRGtaz<%Ky$9pnybinymgvnyURg@N;4RH-Q zbcV+*TogwKm|S>1HN!id4bvlHnmvZ^Lq zw~f+$1ZZ!{9Q9Y8Do@cSh!1epIrRzXPFLZ~lJY)E?aOFGz%aCwmapho{c}2~YLlUT zoE;D%lV6>O(eiuq*|V(75^K!dkmMusV-@?WeTZ&eM28-yXwq}W*tS&B-=V3hR+TCN z@E!j$Bh*T%eZ;*H)GY8>adoSS*fNO84|yyP@2XLm4pNkoOe`2+21)HPNnf~QsG#)m z15ik@$$(CZ#5xNFD?OYVr^_X%-@YzCS10SBp`w^ZiLpaGF&4rRil{5BQ#-@u%RK1r zdm37u+e1!c@MqZxpG+BtLnke`i7&#Kuo<42s_$xcesr|r?TVQ`?0D?&JlEen1f}S` zOQJ|*htEK=;@s>Q*5|aFTW#^-1szsvdq-<~OH*50 zN5{gBmiETsh3#z}t*r}3nwwi%7g&kbMC-!#c)ZbSZ(3*^I^ika>`d+>8>VoAH)9TX z55=ygVm%*2VQO&FleUkn8iqHCR&_6mA&bsH+fj)1qfljID4?172_$K}FlOd+u@%YT zLaYnB-Sasl^nw_AHEJG;EMVFkR5fOLQh9aXTw>TbsA|a6cjvysa%-HILSy${bgfeS z3q5e&*aHV-U|pJ-q8l@*)iZYDyQrD(4!syrvQOI&WV6NYWZu{TONy)v2AIZ%LUmoT|FOb=ufo)HY*B9Bsd{n=$sNbUr8r!5Vw^p!LM07tBpIM_YpePdNI~ z*kKtK|L|1BEyhW_a582{i_R0jA^^=jC!U>PEV9_aO;z7bT=Xf$*`6;Tu#DYh+a-PW z?kn`sQ3%e!PK~ovq)F0=mZJc%wqc>|DpH6R^I`$%gr!j_bDa6@)s@YS59J24Fjrz0 z&Dcd28?FXw0%rOwV^1zVo!_HJ$&BASgyEVSk=jk() zN58jOd%54WIcPsdHz+D8;aF2mY|NcGOFo^LX5+PfWt;sh3-ivH| zW#kI7T_@R|>_E07I|4hAoyjg_SF)RpFT0aH$ev^`viFsdPm+DEjQsaAWZxw=d7o{Q z8Dw9Z>}Oa0@Rj|M{RQCwvcF2$Ul0xygoDU|D&asum?;PclbI@ErXU<52(!o`D&Y`8 zI8+eo$e}9XP(he22#1l`Dq*%D%n^jc$sCn1M-Yw>gd@ojD&Yu0I7$$XCP%4+qXc2D zAj~6kRl;0Bm@f$RWWGw6F9;2S&`26oLW3YQ2|_bzQVC6h&>{$}q(vpP2tu16EFf(v zp-m7L3PL+ss1ge!4iZKVyOg65Jm-IjEt&;Q9(!w!Wkr~5|V9awMw~vVw4?AmquJD&b5)C;N_3&JIW@G)|UO1MN2E)|52lS@^? zrGjvoAbf&crV=g_gv$ltljL%haJe8{AqZEJD^$W2f^d}}e2QG960Q=2s|DfHsDx_-;aWlXEV))CTq_9I3Bu>dbt>UHLAYKJK2NS!3D*n44TA6ma)U~^ zK@e^fgfEgCRl<#eaFZZ>iQJ?TZW4r>1>wu&W|eTWAlxDdUm>@sgj)pRRzdhGxm6|H zDhRg;!q>=cD&aOkxLpvwPHtBTw+q4@g76J;hf26Z5bhL&Z<0Gz!kvO}mmqwL+@%uk z5`?=2;oIbHm2kHp+#?9zA@`_+dj#QLLHI7YS0&sl2=@uX_sD%J;XXmQUl6`e?pF!- z3&I0}@B{LIN_apJ9u$Nhk_T17gM#poApD3tq!Jzygog#;$K+v^@US2}A_zYrkEn!4 z1mRIZ_$hf*B|It!j|sxh$YUzuF+q4-5PnV`R|$^`!V`k<3-W|YctQ}K6og-rCso3e zg7B0e{E9rK5}p!-rv>5H-eq2)`lEsDx((;aNfWEqPWYJSzy#3BvElb1LCE zL3myeeovlP3C|0{3xeiM*r|UJ`_t1>w)+WtH%< zAiN?7e<81^gjWRNRYCYGc~vF6DhRI$!r#biD&aLjcwG?wPF`0DuM5H(foehMF?*R!oSH|D&Z|bcv}$uL*7;iZwtaZ zg79DRj!Jk(5Z)Dp|B-i9!n=a-9w(HI2zgIsyvG^kNJLP!ir}-tq2JkGd2319CW6l@ z3Ew$sTS?k3Qr^}>!go&EUXpf*l(+Yg@ST%(l%$;^dS9fx zuZM*1oHRp{_KTEfcu4rpN&8FE0g>|l9umHD(t(n6P^5gIhlKB(G*glej+AG5Nchf4 zhe*<_Ncj*C3Ew&CP)Vwbln?cg@ST%pOVVMH@@x+Y-#KZHBpn_p&+(A(os*7`q$4Bc zBRnL0=cJ<~>F7xLC=UtWIccsW&5M-hdPw-rN%JMCK2o0VA>lhGHAqrpq}<>k;X5Za zNm6s9+~gtQJ14bBQfs8#;vwNXC$&k^f=Ic|L&A4XS|~~Fk@7+h3Ew%XLy{In${ijO zzH`zslJx#a`4|rg-#KZqBz+)KUhE;^J0~40NykOX$9hQk&Pkn;v?NmQ^pNnKle#3S zJ5uiQkno+8dL*egQtt7P@ST&EMlfMmUdI0SvH!>8{}tusk*@NJNO>i`e5SlA(p_F1 zDfh!UAyOWI6OEJy;S5E}Yv8Pnluv|nQlxw`oKqs@7@Sih<tlSMVm{>Sm3PFMEYbfR*9IQ!e=KsX25WG0-MHaP^&AvQS_&Y?D$4QIAZ=D?X_ zlOy09VUwfa9A%TaaOT=%KAibBX@JvUlO{M#Hfe#=Vv{yFZ8lj5XQ53x;B?sJ7&yn+ zWHFq@HaQl~u{P<1(`l0~I9)dBfzxA?rEr$oqz_J?O_sx1Zj+U8R@!7WoYgit0nQ0F ziNcB6WC+fXP1eF$Ym<}UoMe+z;GANUQ{kLylXY;`*~Eln+9VDqZW9ZRWs^}jqc%yx zN!nyRob@(I!%5pD3ny!nGvSn#I9J)^ zYB*QhIQQA)emM8r zuiE4_IIr2{bvUovocC<>S9<9`8+{af*cuSkJBANvywFzR0~#o_NBDq72yG5NprJv#f)8j+(01Sh8Vs}#_<%+MZ2&&N z@WamI1B^RtIX=LE!(QV9j5KUAKEM#e?&1TCEo>`3z@Wl@;scB(Y$QIwFv1Sv1B_oe z0i#2$+)^9=$`*bZp>}DMS)?)cKZ*aJB0DUz?eZBB`hPw9pJM;hjFQ3scdy#2oQ)h; z&H-lvd7uCkffBF**a&O_#(}edvw?GfbAb;6=K<#f7XTjuE(AUdTm*asxES~-a0&1+ z;8Nh@z-7QEfXjhT0#^W60#^Z_0{9tM64JOca#cog_4@EGtj;BnyRz!ShPfG2@p0#5t$}TTZGr88?SUPD z9f6&Ioq=6|U4h+z-GM!TJ%PP|y@7pzeS!A@Gl2bo{ec631A&8pnZUuoA;2u)P@oQ& z4IBo{0S*U_0FDHX0*(ge0`q|RKt0d^Gy+XPGtdIG0&TzoU?I>BbO4KhV}SPqi-8XS z#{$Ozoxl>H3+M)VfL>rJungz}jt7z z7zfS*&IZl_&ILXQoCll_TmXCsxDfa-a1rnk;9}sTz$L)PfJ=do1D64x04@hU30whO z30wty3b-2hG;j^@8Q@yrv%q!0=YZ>h&jU9AUjS|dz6jg|dsx4?72?||ol z-vciIe*j(t{s_DT{0Vp&_%rYd@E71!;IF`Iz~6w^fxiQ900bxl{{U>@pTL{Izks)Z ze*OhD0QLj+2Mz!Z1P%gb0tW+!0JDHYfjVF|a2PNLI2 z%md~F^*{sA2s8oBKnu_cv;hl%g+M#d0W1QJ0p1TR20j2B3mgY@0!x4{pd07`dV!_D zGN2DQ9#{^n09FF4fYm@hZ~`y@M1etI2v`HG1x^G`0!{`_0b;$QhJiSc z04!hx7zM_FBya|>9!LRcAOmE99B?L(2MRzDC;=OQjld>g95@R&8#o6z7x*A>9&kQz z0q`N_$F`{ z@GanO;M>4Gz;}Rqf$swM0pA1e2fhzH0Q>-W5cnbR5bz`5Vc^HWBfw99M}eOLj{!de z9tVC7JOTUycoO&}@D%VX;A!C3z%#&afM Date: Wed, 24 Nov 2021 11:03:02 +0100 Subject: [PATCH 17/25] Create first pipeline with Github action First try of actions --- .github/workflows/dotnet.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/dotnet.yml diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml new file mode 100644 index 0000000..a73cc8b --- /dev/null +++ b/.github/workflows/dotnet.yml @@ -0,0 +1,25 @@ +name: .NET + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Setup .NET + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 5.0.x + - name: Restore dependencies + run: dotnet restore + - name: Build + run: dotnet build --no-restore + - name: Test + run: dotnet test --no-build --verbosity normal From d5f21234d3b4ed30cff30f67d0375ec49dcfd7ca Mon Sep 17 00:00:00 2001 From: Nicolas Baudrey Date: Wed, 24 Nov 2021 11:05:54 +0100 Subject: [PATCH 18/25] Update dotnet.yml Change script --- .github/workflows/dotnet.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index a73cc8b..b85356b 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -17,9 +17,6 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: 5.0.x - - name: Restore dependencies - run: dotnet restore - name: Build - run: dotnet build --no-restore - - name: Test - run: dotnet test --no-build --verbosity normal + run: build.sh + From 5e6eed999fba853074680fc947598713cefba0f6 Mon Sep 17 00:00:00 2001 From: Nicolas Baudrey Date: Wed, 24 Nov 2021 11:34:29 +0100 Subject: [PATCH 19/25] Update dotnet.yml Update dotnet.yml --- .github/workflows/dotnet.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index b85356b..4e73acb 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -18,5 +18,6 @@ jobs: with: dotnet-version: 5.0.x - name: Build - run: build.sh + shell: bash + run: ./build.sh --target release --verbosity verbose From a791ad9bc020e83c1509636ff049f62678052107 Mon Sep 17 00:00:00 2001 From: Nicolas Baudrey Date: Wed, 24 Nov 2021 11:39:07 +0100 Subject: [PATCH 20/25] Update dotnet.yml --- .github/workflows/dotnet.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 4e73acb..1ba2bd2 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -17,7 +17,10 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: 5.0.x - - name: Build + - name: Restore dependencies shell: bash - run: ./build.sh --target release --verbosity verbose + run: ./build.sh --target Restore --verbosity verbose + - name: Build with Nuke + shell: bash + run: ./build.sh --target Compile --configuration release --verbosity verbose From cab0d37a78baf7312a62978874c9215ea1fa0069 Mon Sep 17 00:00:00 2001 From: Nicolas Baudrey Date: Wed, 24 Nov 2021 22:51:46 +0100 Subject: [PATCH 21/25] [BLD] Unshallow mode --- .github/workflows/dotnet.yml | 4 ++++ .gitignore | 2 ++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 1ba2bd2..179433a 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -6,6 +6,10 @@ on: pull_request: branches: [ master ] + +variables: + fetch-depth: '1' + jobs: build: diff --git a/.gitignore b/.gitignore index 4b8325c..1a44dac 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,5 @@ Release/ *.cache *.i.cs .vs/ + +.nuke/temp/build-attempt.log From dfc391ea4b99833067d686d0d0a10c89bc2dfe82 Mon Sep 17 00:00:00 2001 From: Nicolas Baudrey Date: Wed, 24 Nov 2021 22:53:14 +0100 Subject: [PATCH 22/25] [BLD] Unshallow mode --- .github/workflows/dotnet.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 179433a..50c56a5 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -7,8 +7,7 @@ on: branches: [ master ] -variables: - fetch-depth: '1' + jobs: build: @@ -22,9 +21,13 @@ jobs: with: dotnet-version: 5.0.x - name: Restore dependencies + variables: + fetch-depth: '1' shell: bash run: ./build.sh --target Restore --verbosity verbose - name: Build with Nuke + variables: + fetch-depth: '1' shell: bash run: ./build.sh --target Compile --configuration release --verbosity verbose From fdab4eed719a99a7322ef6191d75360592e857c8 Mon Sep 17 00:00:00 2001 From: Nicolas Baudrey Date: Wed, 24 Nov 2021 22:54:58 +0100 Subject: [PATCH 23/25] [BLD] Unshallow mode --- .github/workflows/dotnet.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 50c56a5..5c21762 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -16,18 +16,16 @@ jobs: steps: - uses: actions/checkout@v2 + with: + fetch-depth: 1 - name: Setup .NET uses: actions/setup-dotnet@v1 with: dotnet-version: 5.0.x - name: Restore dependencies - variables: - fetch-depth: '1' shell: bash run: ./build.sh --target Restore --verbosity verbose - name: Build with Nuke - variables: - fetch-depth: '1' shell: bash run: ./build.sh --target Compile --configuration release --verbosity verbose From 28361dc450eb608e20342cef478ccadc25239d8d Mon Sep 17 00:00:00 2001 From: Nicolas Baudrey Date: Wed, 24 Nov 2021 22:56:24 +0100 Subject: [PATCH 24/25] [BLD] Unshallow mode --- .github/workflows/dotnet.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 5c21762..b4ff374 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -16,8 +16,8 @@ jobs: steps: - uses: actions/checkout@v2 - with: - fetch-depth: 1 + with: + fetch-depth: 0 - name: Setup .NET uses: actions/setup-dotnet@v1 with: From 3c28c018a10cb53f6b5f9cabf45d14768bf26605 Mon Sep 17 00:00:00 2001 From: Nicolas Baudrey Date: Wed, 24 Nov 2021 23:02:05 +0100 Subject: [PATCH 25/25] Update dotnet.yml --- .github/workflows/dotnet.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index b4ff374..70ef4a4 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -6,8 +6,8 @@ on: pull_request: branches: [ master ] - - +env: + MY_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} jobs: build: